Dynamic Movieclips

Hi
I am writing an application which manipulates triangles and
squares. I wish to give user control to the number of triangles and
sqaures created and allow the user to manipulate each object.
Now I am using attachmovieclip e.g.
_level0.attachMovie("MyTRA_mc_link", MyMc,
_level0.getNextHighestDepth(), {_x:412.5, _y:225, _alpha:78});
and i have a list of names an array which allow me to name up
to 26 variables - MCA, MCB, MCC ... MCZ.
Now the user functions i have are:
use of THIS for drag and drop
then to move x or y or rotate i have to write the actual code
for each function so i have MOVE_MCA(key_press), which is selected
by a case statement and then depending on the key pressed i have
movement in x, y or a roatation.
Now my question is - is their a simplier and more dynamic way
to do this. I tried writing functions which use the movieclip as a
function but could not get this to work ?

Hi
Ok!, I think I understand what you want to do, so let's see
I take it that the Triangle and Square are MC's in the
Library? and you want the user to create as many of each as they
wish or do you define a fixed amount?
Once created they can rotate CW or CCW and move around on the
x and y plane?.
I will write some code, while I wait for your reply. This is
relatively simple and shouldn't take more than 15 minutes to
complete.
Back soon

Similar Messages

  • Accessing Dynamic Movieclip Children

    There is a lot of code that I have but here is snippet to get to the point.  I have created a Movicelip called via actionscript called "McButton".  Then I created 10 MovieClips within that MovieClip ("McDot0", "mcDot1", etc).  I need to know how to access mcButton.mcDot3 to change its color when button3 (mc already on stage) is clicked but can not figure it out.
    I have tried both of these below but it does not work:
    mcButton.mcDot3.transform.colorTransform = cityColor;
    getChildByName("mcButton").getChildByName("mcDot3").transform.colorTransform = cityColor;
    This is the code below that I have used to create the Dynamic Movieclips:
    var button:Container = new Container();
    button.name = "mcButton";
    this.addChild(button);
    for (var a:int = 0; a < 10; a++) {
         var dot:Dot = new Dot();
          dot.name = "mcDot" + a;
        MovieClip(getChildByName("mcButton")).addChild(dot);
    Can someone please help me see the light.
    Thanks

    In order to change a color using color transform, first you must create a new ColorTransform object and than assign it to transform.colorTransform property.
    i,e,
    var cityColor: ColorTransform = new ColorTransform();
    getChildByName("mcButton").getChildByName("mcDot3").transform.colorTransform = cityColor

  • Dynamic MovieClip reference

    Okay, how does one reference a MovieClip instance dynamically in AS 3.0?
    Example, I create a new instance of a "marker" MovieClip class that inherently has within it a series of embedded MovieClips labeled: "m1", "m2", "m3" etc ... and I want to be able to dynamically reference those embedded MCs.  I used to do this all the time in AS 2.0, and can't recall how to do it in AS 3.0.
    I know it is something like this:
    number = 1;
    marker = new StaticMarker();
    var thisMarker = this.marker.m[number];
    thisMarker.visible = true;

    Try:
    var thisMarker:MovieClip = this.marker["m"+number];

  • Dynamic movieclip duplication

    Hi Everyone,
    I am working on dynamic duplication of movieclip when the button is pressed one by one.
    In that movieclip there are two buttons ok and cancel.
    Here is the piece of code:
    var new_panel:please_wait = new please_wait;
    click_btn.addEventListener(MouseEvent.MOUSE_DOWN, generate);
    function generate(e:MouseEvent):void{
        new_panel = new please_wait;
        addChild(new_panel);
        new_panel.addEventListener(MouseEvent.MOUSE_OVER , over_evt);
        new_panel.addEventListener(MouseEvent.MOUSE_DOWN , start_evt);
        new_panel.addEventListener(MouseEvent.MOUSE_UP , stop_evt);
        new_panel.ok_btn.addEventListener(MouseEvent.MOUSE_DOWN , ok_evt);
        new_panel.cancel_btn.addEventListener(MouseEvent.MOUSE_DOWN , cancel_evt);
    function start_evt(e:MouseEvent){
        new_panel.startDrag();
    function stop_evt(e:MouseEvent){
        new_panel.stopDrag();
    function ok_evt(e:MouseEvent){
    function cancel_evt(e:MouseEvent){
        removeChild(new_panel);
    if i create two movieclip, then how i remove a particular movieclip.
    i also attached the screen shot for reference..
    Anyone Knows reply..
    Thanks in advance..
    Regards
    Saransoft

    I guess the problem with your code is your message box is getting duplicated twice.
    You want to remove the previous instance if it is already on the stage.
    If I am correct you can use the following code:
    var new_panel:please_wait = null;
    click_btn.addEventListener(MouseEvent.MOUSE_DOWN, generate);
    function generate(e:MouseEvent):void{
        if(new_panel.parent)
              removeChild(new_panel);
        new_panel = new please_wait;
        addChild(new_panel);
        new_panel.addEventListener(MouseEvent.MOUSE_OVER , over_evt);
        new_panel.addEventListener(MouseEvent.MOUSE_DOWN , start_evt);
        new_panel.addEventListener(MouseEvent.MOUSE_UP , stop_evt);
        new_panel.ok_btn.addEventListener(MouseEvent.MOUSE_DOWN , ok_evt);
        new_panel.cancel_btn.addEventListener(MouseEvent.MOUSE_DOWN , cancel_evt);
    function start_evt(e:MouseEvent){
        new_panel.startDrag();
    function stop_evt(e:MouseEvent){
        new_panel.stopDrag();
    function ok_evt(e:MouseEvent){
    function cancel_evt(e:MouseEvent){
        removeChild(new_panel);

  • Dynamic MovieClip (Loader) Names

    I have an array of data that I'm using to create thumbnails and labels.  I'm using "Loader" to load the thumbnails (sample code below) but what I'm wondering is how I can make the name of the loader dynamic so that each child gets named "image1, image2, ...".  I tried adding "[i]" after the "image" for each item in the code but it complained about missing semicolon before left bracket.
    var image:Loader = new Loader();
    var target_image:URLRequest = new URLRequest("images/" + xmlData.Product[i].id + ".png");
    image.name = "image_"+[i];
    image.load(target_image);
    image.x = 80;
    image.y = 60;
    addChild(image);
    I saw an example for MovieClip which looks like it's exactly what I want to do but it doesn't work for Loader (and I don't know if it works at all).  In the example I saw, the last line in the above code would be:
    image.addChild(this["image"+i]);
    Also, if I can't make the names of the loaders dynamic, how would I add event listeners to each of the thumbnails so that when one is clicked it executes code specific to that particular image (such as open up a large version of it).  Usually you have the listeners linked to the names of the children, but if you have 10 children named "image" then that makes it a bit tough.
    Any help would be greatly appreciated.  Thanks!

    you can do any one of a few things.  the two most commonly used techniques:
    1.
    var mc:MovieClip=new MovieClip();
    addChild(mc);
    mc["image"+i] = new Loader();
    var target_image:URLRequest = new URLRequest("images/" + xmlData.Product[i].id + ".png"); mc["image"+i].load(target_image);
    mc["image"+i].x = 80;
    mc["image"+i].y = 60;
    mc["image"+i].ivar = i;  // probably needed at some point
    mc["image"+i].whateverProperty = whatever;  // this is the most flexible technique
    mc["image"+i].addEventListener(MouseEvent.CLICK,clickF);
    function clickF(e:MouseEvent){
    //do something with e.currentTarget.ivar
    //do something with e.currentTarget.whateverProperty
    2.
    var image:Loader = new Loader();
    var target_image:URLRequest = new URLRequest("images/" + xmlData.Product[i].id + ".png");
    image.name = i;  // this is more useful than the name you were using
    image.load(target_image);
    image.x = 80;
    image.y = 60;
    addChild(image);
    image.addEventListener(MouseEvent.CLICK,clickF);
    function clickF(e:MouseEvent){
    //do something with e.currentTarget.name
    //you can do most things with the above but this can sometimes be awkward.

  • Attach eventlisteners to dynamic movieclips and pass a variable.

    Hi there,
    I have a mc (changeColorMc) and three movieclips. The three
    movieclips are created on the fly (so there could be more
    movieclips) and filled with a color from an Array. This works fine.
    Now I want to add an eventlistener for each movieclip, so
    when someone push one of the movieclips the movieclip with the name
    "changeColorMc" gets that same color from the colorArray.
    My question is: How can I pass the color value from the
    colorArray to the buttonPressed function? Is this possible?
    I was also thinking that I had to create three buttonPressed
    functions ie. buttonPressed1, buttonPressed2 and buttonPressed3 and
    attach these to the created movieclips.. but how? Because I don't
    know up front how many movieclips there will be..
    Thanks Peter.
    My code:

    Frankly, I am yet to see any piece of code that could be
    considered perfect and the only way to deal with a task. There are
    so many dependencies that what looks perfect today may turn out to
    be a total failure tomorrow and vise versa.
    My question about better way was purely conceptual. What
    would be the perfect code if it was written in English?
    Congratulations on purchasing Moock's book. So far I think it
    is the best single piece about AS3. I am sure you will be up to
    speed in no time.

  • Dynamic MovieClip Names

    I have an array that houses the names of six movieclips. I randomly select three of them. I am trying to get my randomly chosen movieClips to do what I want them to do. I have tried the following code to get the first to fade in:
    stop();
    // import tween classes
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    var FirstPersonAnimation:Object;
    trace("mc"+[_global.FirstPerson]);
    FirstPersonAnimation = new Tween("mc"+[_global.FirstPerson], "_alpha", Regular.easeInOut, 0, 100, _global.FadeInTime, true);
    FirstPersonAnimation.onMotionFinished = function() {
    _root.nextFrame();
    But it does not work. The trace comes back with the full movie clip name ex: mcTom, but even though that value comes up in the trace, the AS doesn't see it as a movie clip. Any thoughts on how I can correct this?
    -Kirk

    I'm not sure what is involved with _global.FirstPerson, but when you use it the way you do, you are just feeding a string into the Tween.  You need to convert that string into an object using array notation:
    this["mc_"+_global.FirstPerson]

  • Accessing Child Dynamic MovieClips

    Dev Environment: Flash 9 Pro
    Alright, I have a movie that has one movieclip (imageHolder,
    this is defined in the Library and is an empty movieClip used as a
    place holder) which is on the stage. I read in and load images to
    the flash file, and create them in their own movie clips WITHIN
    imageHolder like so:
    ========================
    var nm= imageHolder.createEmptyMovieClip("swfHolder"+i,-(i *
    10));
    nm.loadMovie(filename);
    ========================
    Obviously this is a code snippet, I am using the LoadVars
    object to load these files. Once everything is loaded, it is
    displayed on the stage, with a depth in order from first image to
    last (first image on top, last image on the bottom). After this, I
    have an interval set, to call a function called "selectImage" which
    gets a variable called photonum, and changes images to the number
    you have passed in. In selectImage, I ensure that the image that is
    coming up next is one depth level below the currently displayed
    image using swapDepths, and I am constantly incrementing a variable
    called "curdepth" which is global, and always assigning that depth
    to the currently displayed image to that depth. So, the current
    image will be displayed at depth 30, and the next image up will be
    displayed at depth 29. Then I fade the current image out using the
    tween object, and it works like a charm! To reference these
    MovieClips I use the following code:
    ====================
    var cmc:MovieClip = eval("imageHolder.swfHolder" + (curpho +
    1));
    var nmc:MovieClip = eval("imageHolder.swfHolder" + (nexpho +
    1));
    // Force current clip to front
    cmc.swapDepths(curdep);
    // Force next clip to one below front
    nmc.swapDepths(curdepth - 1);
    ====================
    and this works perfectly... in flash. Once it's on the page,
    or displayed within the standalone movie player, everything goes
    south. I assigned the typeof cmc and nmc to a textbox, and i got
    "movieclip", in flash and on the page. However, if I store
    "cmc.getDepth()" to the textbox, I get "[type function]" in flash,
    but, on the page "undefined" It seems anything that is specific to
    the MovieClip object, such as getDepth(), or swapDepths() is
    undefined when I plug it into the textbox, but, things that are
    inherited, such as enabled, _x, or _y are all available for my
    perusal and setting.
    Does anyone have any idea how to remedy this? I can attach
    all my code in a couple of hours if necessary. I have tried not
    putting the loaded images into the imageHolder, and I found that
    didn't help. I have also tried a combination of adding "_level0."
    and "_root." to my cmc and nmc references to no avail. Any help
    would be greatly appreciated.

    Seems it had something to do with my Flash Installation...
    Tried it on another computer and everything was fine. What a
    pain!

  • Dynamic movieclip creation from library

    Version: Flash CS3, AS3
    To add a new movieclip to the stage from the library you can
    do something like this:
    var newMC:libraryMC = new libraryMC();
    this.addChild(newMC);
    To do this, however, I need to know the name of the library
    movieclip beforehand (in this case, libraryMC). What do I do when I
    only receive the name at runtime?
    ie:
    randomMC = "libraryMC";
    In AS2, you could use this.attachMovie(randomMC,"newMC",x),
    but that is no longer supported in AS3.
    So how is this situation handled now?
    Thanks
    Rick

    Thanks kglad - that's what I wanted.

  • Dynamic MovieClip and TextField

    Hi, I'm begginer in as3, and I want to ask you  my problem.
    I'm creating a lot of MovieClip in for cicle, and i want to add at every  MovieClip a textField.
    I try in this way
    for (var i:int = 0; i < 100; i++)
    var giorno:MovieClip;
    giorno = new MovieClip();
    giorno.graphics.beginFill(Math.random() * 0xFFFFFF);
    giorno.graphics.drawRect(i*(boxWidth+boxMargin),  0, boxWidth, boxWidth);
    var nameGiorno:String = "giorno" + String(i);
    giorno.name = nameGiorno;
    giorno.alpha = 0.6;
    var numGiorno:TextField = new TextField();
    numGiorno.text = String(i);
    giorno.addChild(numGiorno);
    addChild(giorno);
    but the textfield is only in the first movieclip.
    Somebody can help me?
    Thank a lot !!!

    yes, but i'dont find the error. under i post the code entirely
    package
        import flash.display.MovieClip;
        import flash.display.Sprite;
        import flash.events.Event;
        import flash.events.MouseEvent;
        import caurina.transitions.Tweener;
        import flash.text.TextField;
        public class Main extends Sprite
            private const boxCount:int = 10;
            private const boxCount_ok:int = 365;
            private const boxWidth:int = 300;
            private const boxMargin:int = 0;
            private const startPoint:int = 50;
            private const boxesWidth:int = boxCount * (boxWidth + boxMargin);
            private const endPoint:int = boxesWidth + startPoint;
            private const zeroPoint:int = stage.stageWidth / 2 + startPoint;
            private var container:MovieClip;
            private var targetX:Number;
            private var speed:Number = 0;
            public function Main():void
                    if (stage) init();
                    else addEventListener(Event.ADDED_TO_STAGE, init);
            private function init(e:Event = null):void
                    removeEventListener(Event.ADDED_TO_STAGE, init);
                    container = new MovieClip();
                    addChild(container);
                    container.x = 150;
                    container.y = 0;
                    for (var i:int = 0; i < boxCount_ok; i++)
                            var giorno:MovieClip;
                            giorno = new MovieClip();
                            giorno.graphics.beginFill(Math.random() * 0xFFFFFF);
                            giorno.graphics.drawRect(i*(boxWidth+boxMargin), 0, boxWidth, boxWidth);
                            var ok:String = "giorno" + String(i);
                            giorno.name = ok;
                            giorno.alpha = 0.6;
                            var numGiorno:TextField = new TextField();
                            numGiorno.text = String(i);
                            //trace(giorno.name);
                            giorno.addChild(numGiorno);
                            giorno.addEventListener(MouseEvent.MOUSE_OVER, illumina);
                            giorno.addEventListener(MouseEvent.MOUSE_OUT, spegni);
                            giorno.addEventListener(MouseEvent.CLICK, tracciaNome);
                            function tracciaNome(e:MouseEvent):void{
                                //Per tracciare il nome del MovieClip corrente sul quale si applica l' evento
                                //bisogna usare il nome della variabile evento della funziona (e:MouseEvent)
                                //e applicare la funzione currentTarget
                                trace(e.currentTarget.name);
                            function illumina(e:MouseEvent):void{
                                Tweener.addTween(e.currentTarget, {alpha:1, time:1});
                            function spegni(e:MouseEvent):void{
                                Tweener.addTween(e.currentTarget, {alpha:0.6, time:0.5});
                            container.addChild(giorno);
                    addEventListener(Event.ENTER_FRAME, enterFrameHandler);
                    stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveHandler);
            private function mouseMoveHandler(e:MouseEvent):void
                    var distanceFromCenter:int = stage.mouseX - zeroPoint;
                    speed = distanceFromCenter * -0.05; // Bring number into a good range, and invert it.
            private function enterFrameHandler(e:Event):void
                    container.x += speed;
    Thank a lot!

  • Dynamic MovieClip "Grid"

    Hello everyone!
    It's been i while since my last post, I wish I could be more
    active in this forums, but Flash it's just my sparetime activity,
    much like crosswords and since I'm bored here on vacation I decided
    to start a new simple project.
    I want to create a PhotoGallery application, nothing very
    complicate, but still a bit challenging (at least for me!!).
    Basically I want a "grid" of thumbnails from which I can enlarge
    the selected picture. I was able to create the "grid" using two
    "for" statements (one for the rows and one for the colums), plus I
    experimented the tween class, which I never used before. I have had
    no problem creating the "grid" because I hard coded the values for
    rows and columns, but a true photogallery application has to use an
    external XML file don't you think?
    Well, I thought it was a piece of cake, but the "double" for
    statement kinda block me. First of all, I haven't figure out how to
    hide the thumbnails that are in excess. For example, if I have 16
    pictures and I set a fixed number of columns (Let's say 5), I would
    need 4 rows, but the last one has to have just one thumbnail on the
    first columns and not an entire line of 5. Second of all, I can't
    loop the XML nodes inside the "double" for stament because
    obviously I get wrong values. Could anyone give me some hints in
    order to " fix" these problems?
    Sorry, for the long post, I hope you haven't fallen asleep!
    Thank you in advance for any help!!
    Test.fla

    Thank you very much for your reply. I understand the theory
    behind what you are saying; It makes perfectly sense. The problem
    is that it doesn't work. I'm sure I'm missing something and
    probably I didn't get exactly what you meant. I tried with this
    code:
    for (var i = 0; i<10; i++) {
    matrix = grid.thumb.duplicateMovieClip("thumb"+i, i+1);
    matrix._x = i*25;
    if (i%4) {
    matrix._x = 0;
    matrix._y = 80;
    the fourth thumb the goes down, but the other just stay on
    top of each other in the new line. I tried to add a new _x value,
    but then it would ignore the if statement and make a straight line
    of clips. Would be so kind to post an example?
    Thank you again!

  • Is there any way to save an image from a nested movieclip as a .png using PNGEncoder

    Hello all,
    I am new to AIR and AS3 and I am developing a small AIR desktop application in Flash CS5 that saves a user generated image locally to their computer. 
    The image is generated from a series of user choices based on .png files that are loaded dynamically into a series of nested movieclips via XML.  The final image is constructed by a series of these "user choices".
    Sourcing alot of code examples from here and there, I have managed to build a "working" example of the application.  I am able to "draw" the parent movieclip to which all the other dynamic movieclips reside and can then encode it using PNGEncoder.  The problem is that the images loaded dynamically into the nested movieclips show as blank in the final .png generated by the user.
    Is there a way to "draw" and encode these nested movieclips or do I need to find another way?  I can provide my clumsy code if required but would like to know if this concept is viable before moving any further.....
    Thanks in advance....

    Thanks for the files.......
    Yeah I'm doing it in Flash but importing the images via an xml document.  The problem isn't in being able to view the eyes (based on the selection of the user) its when I go to save the resulting image as a .png.  When I open up the saved .png the eyes are blank even though they are visible in the swf
    Even when the user clicks on the option to copy the image to the clipboard, it works as intended.
    My only guess is there is an issue with the way my xml is loading (but this appears to work fine) or when the file is converted and saved.....
    As I said I'm still learning but surely there must be a simple answer to this....
    I have included the xml code I am using and also the save code to see if anyone spots an issue..... (I hope I copied it all)
    // XML
    import flash.net.URLRequest;
    import flash.net.URLLoader;
    var xmlRequest:URLRequest = new URLRequest("imageData.xml");
    var xmlLoader:URLLoader = new URLLoader(xmlRequest);
    var imgData:XML;
    var imageLoader:Loader;
    var imgNum:Number = 0;
    var numberOfChildren:Number;
    function packaged():void
    rawImage = imgData.image[imgNum].imgURL;
    numberOfChildren = imgData.*.length();
    imageLoader = new Loader  ;
    imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadedImage);
    imageLoader.load(new URLRequest(rawImage));
    faceBG_mc.Eyes.addChild(imageLoader);
    function loadedImage(event:Event):void
    imageLoader.x = -186;
    imageLoader.y = -94;
    imageLoader.width = 373;
    imageLoader.height = 186;
    //  Clipboard
    btn_Copy.addEventListener(MouseEvent.CLICK, onCopyClick);
    function onCopyClick(event:MouseEvent):void
    var bd:BitmapData = renderBitmapData();
    Clipboard.generalClipboard.setData(ClipboardFormats.BITMAP_FORMAT, bd);
    function renderBitmapData():BitmapData
    var bd:BitmapData = new BitmapData(faceBG_mc.width,faceBG_mc.height);
    bd.draw(faceBG_mc);
    return bd;
    // Save faceBG_mc as .png 
    var fileRef:FileReference = new FileReference();
    var myBitmapData:BitmapData = new BitmapData (faceBG_mc.width,faceBG_mc.height, true, 0);
    myBitmapData.draw(faceBG_mc);
    var myPNG:ByteArray = PNGEncoder.encode(myBitmapData);
    function onSaveClickPNG(e:Event)
    fileRef.save(myPNG, "myPNG.png");
    So my problem is....
    The final image is copied to the clipboard with the eyes visible - yes
    The eyes appear in the image in the swf as intended - yes
    When the image is saved as a .png and is meant to include the eyes, they are blank (see picture above)
    I hope this helps.....
    Thanks in advance

  • Attaching dynamic movie clips in a static moviclip

    I have a problem regarding attahing these movieclips(images)
    to a label (movieclip) on the stage and when i will move label the
    all images shoild move with label which attched to that label , i
    have tried lot through hit test but not working because i have lots
    of dynamic movieclips(images) and how to attach these movieclips on
    the label movieclip which is static movieclip in my case do u have
    any sample or any question regarding this ??? pl help me out .
    Thnx

    In as2, you can't dynamically alter the parent - child
    relationships of movieclips.
    When you mean a 'static' movieclip do you just mean one
    that's not attached at runtime... I'm assuming its still a
    movieclip ...e.g. its not for example 'static text'. just checking.
    So long as it is ... here's how I would try to do it:
    have each label clip contain an array of 'linked' image
    clips. Whenever you move the label clip then have the event or
    enterFrame handler for that label clip loop through the array of
    'linked' clips and move them by the same x and y values. I think
    this would work - its the way I would try to do it anyhow. Others
    may have a better idea.
    This approach would be more complicated if there was
    different scaling or rotation etc applied to the container clips of
    the images or the labels.

  • Dynamic mc names

    Hi there,
    Im having a litlle issue. ill try to explain:
    I have a function that creates dynamic movieclips after
    making a query by flash remoting. It calls this function for each
    record.
    Here it is:
    function createPictures(b) {
    this.createEmptyMovieClip("l"+b,
    this.getNextHighestDepth());
    this["l"+b].attachMovie("picture", "lod",
    this["l"+b].getNextHighestDepth());
    meuLod.loadClip(path for picture,this["l"+b].lod);
    this["l"+b]._x = 2000;
    the "b" its a dynamic value that begins with 0 and goes
    increasing. When the person visit this sesson of the website she
    will see a picture that can be draged through the screen. When one
    of these pictures reach the screen corner she goes away and the
    next picture shows on the screen.
    So, in the action script i must tell the next movieclip to
    move. that is how im doing:
    this["l"+b].onRelease = this["l"+b].onReleaseOutside =
    function(){
    //the movieclip goes away here
    this.tween("_x",this._xmouse - inicioX,2);
    this.tween("_y",this._ymouse - inicioY,2);
    //and the next should come here
    NEXTMOVIECLIPNAME.tween............
    My problem its to tell flash the name of the next movieclip.
    As the function its called many times, even if i say
    this["l"+(b+1)] it would not work because the next movieclip still
    doesnt exist |o|
    I already tried to separete like one function to create the
    movieclips and another to tell their actions, but it didnt worked.
    Im sorry one more time if my english its not so nice. Just
    tell me if its confusing.
    Thanks, and good day.

    when's the next movieclip created?

  • Painfully slow - nested movieclips?

    Hi folks, I'm not a programmer by any stretch so apologies for any blind ignorance in advance...
    I'm converting my old AS1 website to AS3 and testing it out as an iPhone App - basically it consists of adding dynamic movieclips to a stage, each one having multiple animated nested clips inside it - basically it's this: www.instantkamasutra.co.uk
    The problem is it's ridiculously slow - could it be because I'm rendering multiple nested vector graphics per frame? If I can help matters by caching a bitmap for each nested vector graphic, how would I do this?
    Would it help if I imported each nested clip as a bitmap graphic into Flash intstead of a relying on a Flash vector? Would this reduce the load on the processor?
    Thanks
    Neil

    Here are two good links on optimizing flash applications for mobile devices.  I think if you read through all of it you'll find several useful tips on how to optimize your code. You definitely need to use cacheAsBitmap for your vectors when possible.  However, this can cause problems if you are doing that  where the visual content changes often.  Also, you need need to remove all event listeners when you no longer need them. This will free up a lot of memory in your application. Pay close attention to the second link (Part 2) as it directly addresses some of the issues you are having.
    http://insideria.com/2010/11/flash-player-101-mobile-optimi.html
    http://insideria.com/2010/11/optimize-flash-content-and-imp.html

Maybe you are looking for

  • PO mail output sender set as po release person, how to changet mail sender?

    Hi expert Now we setup po mail output. But we found when po released, the release person become the po mail sender. this is not we wanted. We checked with sap, they mentioned this is current sap logic. there is one function which need add some progra

  • Inspection type in OPL8 (order type dependent parameters)

    HI,       Inspection type we are giving in material master in inspection type field, why we need inspection type field in OPL8 transaction. Is there any specific reason the field having in OPL8. Please advise me if any one knows the reason. Srini

  • CS 5.5 VST plugins

    Several  32-bit plugins that worked in AA 3 now show as disabled in CS 5.5.  Additionally, CS 5.5 identifies these plugins as 7.1 plugins.  They work with stereo tracks and should be enabled under the stereo grouping.  Is  this a bug, or does CS 5.5

  • JSF vs Struts - both with tiles

    I'm running in the problem migrating from Struts to JSF. In struts I have the following fragments: jsp (actualy in the resulting html): log4j struts-config: <forward name="log4j-page" path="doc.log4j"/> tiles-config: <definition name="doc.log4j" exte

  • Service call report - overdue ??

    Hi, Experts, On the main menu [service] -> [service reports] -> [service call'] the first report. After executing it, the report has one column named "overdue", could you pls advise how to tell it's overdue or not?  what's the date the report used to