Place clips on the stage

Hello
I'm trying to place the movieclips of the librari onstage, but I only have one line.
It's wat I want archieve. (for example M = a movieclip).
M M M M M M
M M M M M M
M M M M M M
M M M M M M

If I also learn the FLF the result looks like this.

M
.. M
..... M
........ M
............. M


now, it looks like this:

M M M M M M

This is the code I used:

var tegelhouder:MovieClip = this.createEmptyMovieClip ("tegelhouder", this.getNextHighestDepth ());
tegelhouder._x = - 70;
tegelhouder._y = 0;


for (i = 1; i < 9; i ++) {}
tegelhouder.attachMovie ("tegelanim", "tegels" + I, i);
tegelhouder ['tegels' + i] ._x = i * 70;
}


The first thing I'm trying to archive is to place the movieclips vertical as horizontal.

Can someone help me with this?

Kind regards

Micheal

It is very simple
Everything you need in the lines one by one
to do this
for (var a: number = 1;)<=30; a++)="">
attachMovie ("dd", "dd" + a, an);
If you want the 5 clips on so
trace (a %5);
If (a == 1) {}
to place one at a time
_root ["dd" + a] ._x = 100;
_root ["dd" + a] ._y = 100;
} else {}
If (a % 5 == 1) {}
_root ["dd" + a] ._y = _root ["dd" +(a-1)] ._y + _root ["dd" +(a-1)] ._height + 2;
_root ["dd" + a] ._x = 100;
} else {}
_root ["dd" + a] ._y = _root ["dd" +(a-1)] ._y;
_root ["dd" + a] ._x = _root ["dd" +(a-1)] ._x + _root ["dd" +(a-1)] ._width + 2;
}
}
}

I hope you enjoy

Tags: Adobe Animate

Similar Questions

  • problem of interpolation with clip on the stage of the root

    The basic gist: I have a swf loaded into a movieclip on the stage. He plays well, I can refer to it without any problems. When I the holder clip on the stage of the root motion tween, however, it seems to unload the film loaded... I checked with a variable that I loaded in the film loaded; as soon as the thing is interpolated, this variable is zero. Don't want .swf to disappear.

    I can't find any unfortunate place with unloadMovie() action, there is nothing obvious that would be unloading the film... I am doing something stupid? I know something I should? I'm authoring in Flash 8, Flash 6 export, for the record.

    Thanks for any help.

    -Yes, he has the same instance at the end of the Tween (and all the other keyframes) name she has when charged.

    We mask applied to it also. Then, who turns out be the question I just thought of now. When I took that out it worked fine. It is a problem with the mask.

    Thanks for responding.

  • Play a clip on the stage

    I created a simple clip (48 images long). I want to play this movie on the stage. I created enough executives, but the movie does not play. I have not used real Flash for a long time, so probably miss me something simple. A movieclip can play within a single framework?

    If you select the control-> test movie in the main toolbar, it must run the file.

  • Tracing a clips on the stage, based on XML

    Hi all
    I'm having a problem drawing a clip with AS2 on the stage based on XML. I think her looping thought the XML, but for some reason any its not draw all the clips on the timeline...

    So what I'm trying to do, is to trace a clip online based on its < note_position > and < note_height >, which he does very well. But its not trace all nodes < note >... trace 2 clips of < comment > < line tNom = "Name 1" color = "0 x 336633" > then it trace clips < note > 1 < line tNom = "Name 2" color = "0 x 333366" > then he traces 2 clips of < comment > < line tNom = "Name 3" color = '0 x 663366' >

    what he must do, is to trace all the clips of < comment > < line tNom = "Name 1" color = "0 x 336633" > then draw all the clips of < comment > < line tNom = "Name 2" color = "0 x 333366" > and last but not least draw all clips from < comment > < line tNom = "Name 3" color = '0 x 663366' >...

    So all in all it does is plotted 5 < note > clips in total instead of the 10 < note > clips must be traced on the stage...

    OK well I think I'm going to loos, my mind... Is more, I think that it is thought looping the XML that is the problem. I think that its so be it I enclose the clip of the plot or something I don't see thought the fog...

    Any ideas? Ive been battaling this for two days and I am at a total loss... so any help would be greatly apprecated.

    I thank in advance
    Scott: eek:

    OK, I got this work here is my fix...

    function attachXMLNodes () {}
    Attach the clip and insert my data
    var newPlot = attachMovie ("plot", "plot" + h + "" + i, this.getNextHighestDepth ());
    duplicateMovieClip ("plot", "plot" + i, depth);
    Assign the values...
    This ["conspiracy" + h + "" + i].entry_clip.entry_date = "" + entry_date + ""; "
    Finally, set the position
    This ['plot' + h + ' ' + i] ._y = 685;
    This ['plot' + h + ' ' + i] ._x = number (entry_pos).

    }

  • loading movie clip to the stage with AS3 button click

    I'm trying to figure out how to load a clip to the scene with a click of a button and have the movieclip close again with a close button. Does anyone have a step by step on how to do this or links to tutorials.

    Here is an example of what I'm trying to do.

    http://i30.photobucket.com/albums/c316/good_snow/FlashBoxSample_zps4e655414.jpg

    Looks like you are using a 'el' and a 'single '.  they are similar, but they are not the same.

    copy and paste from your code to your properties panel or vice versa to correct.

  • Button video Clip to the stage setting

    I need help. I'm doing my menu as a clip separated for simplicity and fewer keyframes. I can't understand, however, how do I get my menu buttons to go to the image tag in scene 1. If I could get some advice on how to solve this problem, I would be very happy.

    I found my answer. Thank you for helping. For those who want also solved the problem

    _root.gotoAndStop ("FrameLabel")

  • How to remove a clip of the scene through an event to send?

    I have a video clip that is added to the scene. There is a Close button on this clip from movie I'd like to close and remove the clip from the stage. But the close button does not work when clicked, nothing happens.


    Here is the flow with the code:

    Add the clip to the scene

    var myPlayCredits:mc_playCredits = new mc_playCredits();

    stage.addEventListener (MouseEvent.MOUSE_DOWN, goButtons);

    function goButtons(event:MouseEvent):void

    {

    If (event.target is Credits_bnt)

    {

    SoundMixer.stopAll ();

    addChild (myPlayCredits);

    myPlayCredits.x = 511;

    myPlayCredits.y = 386;

    }

    This is the code on the button inside the clip that calls the sending

    import flash.events.Event;

    Stop();

    closeCredit.addEventListener (MouseEvent.MOUSE_DOWN, closeCreditPopupScreen);

    function closeCreditPopupScreen (event: MouseEvent): void

    {

    dispatchEvent (new Event ("RemoveMCcredit"));

    }

    Delete (is supposed to remove) the MovieClip from the stage when the user clicks the close button in the MovieClip.

    stage.addEventListener ("RemoveMCcredit", RemoveCreditClip);

    function RemoveCreditClip(e:Event):void

    {

    removeChild (myPlayCredits);

    }

    Anyone have any ideas?

    Why don't you simply assign the event listener for the closeCredit button after you instantiate myPlayCredits and have just the event listener to call the RemoveCreditClip function directly...

    var myPlayCredits:mc_playCredits = new mc_playCredits();

    myPlayCredits.loseCredit.addEventListener (MouseEvent.CLICK, RemoveCreditClip); \

    If you want to use the shipping event approach, try to assign the listener to the mc myPlayCredits, not the scene. (Or set of argument spread of the true event if you assign it to the scene)

  • Investment assets on the stage

    Hi all!

    I'm just getting started with Air 2.7 and Flash Builder 4.5.1. I have a simple Actionscript Mobile Application(for iOS) that loads some assets from an external SWC and places them on the scene. Can someone explain why all assets appear heaved on a quarter turn toward the bottom of the screen? It seems that the point 0 on the y axis starts lower than expected. I also noticed that the graphics are scaled to fit the width of the screen.

    Is there something I need to know when you place assets on the stage for a mobile application? I would be extremely grateful to anyone who can point me in the right direction...

    Thank you and have a great weekend!

    You did together the stage align and ScaleMode (ScaleMode) properties? These influence the original location, sometimes in surprising ways.

    I usually recommend (ScaleMode) ScaleMode = StageScaleMode.NO_SCALE and align = StageAlign.TOP_LEFT (unless you want your updated graphics to scale to fit the screen, of course).

  • How to "call" a movieclip on the stage of in a movieclip?

    Hey,.

    I have therefore 2 video clips on the stage, and I have to call the 2nd movieclip of in that 1.

    Ive tried to use;

    "stage.popUp_mc.gotoAndStop (1);

    "root.popUp_mc.gotoAndStop (1);

    and it keeps bringing the errors

    Thanks :)

    Ollie.

    If you are using AS3 and the two movieclips live time on the root timeline, so you can try...

    MovieClip (root).popUp_mc.gotoAndStop (1);

    You could possibly use.

    MovieClip (parent).popUp_mc.gotoAndStop (1);

    A correct way more OO to do this would be to have an event listener in the main storyline that is assigned to the movieclip and listening to an event that distributes the movieclip.  The event in the main storyline listener would call a function in the main timeline that targets the second movieclip.

  • bringing a video clip at the top of the order of the layers on mouse.

    I have 3 video clips on the stage in separate keyframes: mag1, mag2 & mag3

    trying to bring each mc on mouse up.

    mag1.addEventListener (MouseEvent.MOUSE_OVER, up, false, 0, true);

    function up(evt:MouseEvent):void
    {
    setChildIndex (MovieClip (evt.target), numChildren-1)
    }

    GETTING THIS ERROR.

    ArgumentError: Error #2025: the supplied DisplayObject must be a child of the caller.
    at flash.display::DisplayObjectContainer/setChildIndex()
    at skate_fla::MainTimeline/up()

    Thanks in advance for the help!

    It is possible, you should use "evt.currentTarget' instead of"evt.target"I think that if you use instead of MOUSE_OVER ROLL_OVER it wouldn't matter that you used.

    In addition, you can simply use addChild() to bring an object to the top...

    function up(evt:MouseEvent):void
    {
    addChild (MovieClip (evt.currentTarget));
    }

  • How do all the buttons on the stage unclickable, while keeping a certain clip visible?

    Hello

    I have a button on the stage that opens a pop-up window (video clip is popup + several other buttons). The clip and buttons on that deal with the scene.

    The problem is that the buttons that are on the stage and behind the clip, remain clickable (you can click in the clip of film!). How can I disable this?

    Basically, I need to do that you can not click in the clip.

    Thanks in advance!

    PS I use CS5 and AS2.

    One way would be to make the clickable movieclip.  This would block other objects behind it...

    mc.onRelease = function() {}

    mc.useHandCursor = false; to hide the hand cursor

    Another way would be to disable the buttons while the movieclip is present...

    BTN. Enabled = false;

    Another way would be to generate the conditional code to the button by clicking code does not work if the movieclip is visible.

    btn.onRelease = function() {}

    {if (!) MC._visible)}

    good to do things

    }

    }

  • trying to create a clip that bounces off all four sides of the stage

    using the syntax below I have created a video called "BALL" bouncing to the left 'x' and moves to the right of the scene 'x.520' and bounces in the beginning 'x '.

    HOW CAN I CREATE A CLIP THAT BOUNCES OF THE FOUR SIDES OF THE STAGE AND STOPS ON THE BOUNCE FOURTH?

    var ballTween:Tween = new Tween (ball, "x", Bounce.easeInOut, ball.x, 520, 5, true);

    ballTween.addEventListener (TweenEvent.MOTION_FINISH, tweenFinishedF);

    function tweenFinishedF(e:TweenEvent):void {}

    new Tween(ball,"x",Bounce.easeOut,ball.x,0,5,true);

    }

    Thank you very much!!!

  • How can I view a clip from the library onto the stage in AS3?

    Hello

    I have a clip in my library and I want to display on the stage using AS3.

    what I define as a variable? Do I need to use this code: addchild (movieclip);

    can I use the 'x' and 'y' to position?

    What the code would look like?

    Ben.

    Steps to follow:

    1. Click Moviclip library and click on: link...
    2. Check the box export for ActionScript.
    3. Assign to the class "mov_clip".
    var movie:mov_clip = new mov_clip;movie.x = 50;movie.y = 50;addChild:(movie);
    
  • Place clip or graphic symbol where the mouse is clicked.

    Hello

    I am trying to allow the user to set a button and then place a sybmol (video or graphics clip) where the user clicks. I would use AS2. The project is simply to label a graph of supply curve and the demand and user needs of intrigue, or points place wherever he wants on the canvas.

    Thanks for your time,

    Scott

    Use a movieclip, give it an id of liaison and attachMovie() to fix this movieclip from your library onto the scene.

  • Load the clip from the library in target on stage

    Hello. Don't bother anyone with this but have been at it for hours and am at max of frustration level. I am using Flash CS3. I want to flip a button on the stage which will load a clip from my library in a clip that is currently sitting on the stage.

    The desired effect would be comperable using the loadmovie command and by loading an external .swf into a target on the stage. Except in my case I want to load a clip in my library in the target, rather than having to load an external swf file. Make sense? The goal of making this way is I want the loaded clip to stand on the stage, while the cursor mills. But when the cursor rolls over another button, I would like a different clip in the library to replace the already loaded by the first button.

    Any suggestions would be greatly appreciated. Be precise because I tend to get lost easily with this stuff. Thank you in advance.

    If you want to replace what has already been placed with something new, and then specify a depth rather than using... target.getNextHighestDepth (...) which always goes to the top depth value

    If the target is not a wild animal that would put you in danger, just use... 1 (I think). In all cases, you can find the best value before setting this value in stone using... trace (target.getNextHighestDepth ()); before fixing anything.

    on {(overview)
    target.attachMovie ("Area1Web1", "anyName", 1);
    }

    Shit!... I forgot if that simply pushes the element formerly loaded at a different depth, is probably with my luck. If so, use target.removeMovieClip (); before attaching a new. The bottom line, I always try to offer... look in the files to help... they are your friend (once you get familiar with them).

    Cool!... I spent some time with this friend, I just mentioned and found this diamond in the rough... "If you create or join a new clip on a depth has already a clip, the clip again or attached replaces existing content."

Maybe you are looking for

  • Sending fax M1212nf

    Hello have a printer M1212nf all-in-one. If I run the utility of fax send, it crashes. I can't start. reinstall it but no luck XP user

  • White compared to Ice white color Options

    Hi all I noticed that a retailer in the United Kingdom had a color option for the Sony Xperia Z5 called white ice instead of just white and that this color is exclusive to the Distributor. I can't quite see the differences. What is the difference bet

  • 'Favorites' folder disappeared, cannot save Favorites more

    After the updates of my "Favorites" folder disappeared and I can save is more websites to your Favorites.  I do not lose what I've done, I would like to just correct so I can save to your favorites now.

  • HP deskjet 3055 has

    I have moved and have a new wireless network and need to connect my printer and so a new router... What should I do? Without wireless is turned on, but it says not connected.Thanks in advance

  • Try to install VLC says its not signed, is it safe?

    Download VLC I bought an online security camera when I'm missing. In order to view the records on the SD card I need to download VLC Media Player. However my computer says that it will hurt it. He was not editor isn't a way to get something of a safe