frameworks for moviclips with as3?

Hello

Is there a way to convert keyframes to external SWF loaded movieclip instances? I can´t use Flash for this, it must be done DURATION...

For example

-J' I load SWF with 6 keyframes (frames 1,2,3,4,5,6).

-I would like to create dynamically 6 movieclips

- and add them to the right of the scene after loading of SWF has finished...

Any ideas?

Try using:

function magLoaded(e:Event) {}
e.target.content.gotoAndStop (currentFrame + 1);
}

I doubt currentFrame + 1 is what you want to use, but do operate as is the first, and then solve how update the value of the image that you intend.

Tags: Adobe Animate

Similar Questions

  • Building application kiosk with AS3 of ios for iPad?

    Hello

    How to build a stand iPad IOS App with AS3? I won't need the updates for this app. It will be just a pdf magazine inside, same content forever.

    I can't find any tutorials/introduction on how to build it.

    I got the idea on how to create normal ios App, but creating kiosk App really confussed me.

    Hopefully I can get a good start here

    Help is appreciated!

    This should give it a read:

    http://www.Adobe.com/aboutadobe/pressroom/pressreleases/201110/101211AdobeDPSNewsstand.htm l

  • Update version 1.11 of the framework for Windows drivers installed then reverts changes (KB2761494)

    Compter starting December 14, 2012, framework for drivers Windows Update version 1.11 installed then reverts the changes made after the reboot. My computer is Vista SP2, x 86 32-bit. All other updates were up-to-date.

    I uninstalled all versions of .NET 3.5 and 4.0 and then performed the "aggressive" MS Fixit 50202. I then ran that Windows update manually to reinstall .NET and subsequent updates except framework for drivers Windows version 1.11 by hiding. Then I restored the driver framework hidden update and run this update. The update has been successfully installed, a reboot is required.

    After the reboot, Windows open and reported "configuration of updates: stage 3 of 3 to 65% (pause loooong, 2 minutes), then moved to 71% (another long pause, approx. 1.5 minutes), moved to 78% (about 1 minute), moved to 100% then quickly pointed out that the update failed and returning from changes.»

    During this attempt, Windows did not start. It was frozen on a black screen! No hard drive, no display activity. Manual AC offshore and under tension. Windows started and reported "updates were not correctly configured. Returning from the changes. "And finally, Windows starts normally.

    Event Viewer error Windows Servicing 26 times at the time of the recovery. "Servicing Windows could not complete the process in a State of package Package_for_KB971286... in tiered (tiered)" the other KBs referenced in other errors are 2685813, 2685811, 2761494. Associated USB driver are all these KBs.

    I have winusb.dll version 6.0.6001.18000 created 10/23,2008 16.0 KB.

    Apparently, the impossible framework for drivers Windows version 1.11 update this winusb.dll. Please advise or refine this update.

    Thank you.

    Hi Georgeatech,

    Welcome to the Microsoft community.

    According to the description, it looks that you are not able to install Windows Driver Framework version 1.11.

    However, we need more information about the issue to help you better.

    Please help me to answer these questions.

    1. What is the "Windows Driver Framework version 1.11" error?

    2 have had any changes made to the computer before the question.

    I have a couple of steps that should help you to solve this problem.

    Method 1:

    Follow these steps to see the updates of Windows are omitted.

    a. open Windows Update by clicking the Start button, all programsand then click Windows Update.

    (b) in the left pane, click on view update history.

    Method 2:

    In addition , visit this link and see "How to avoid this problem" of this link and check:

    http://support.Microsoft.com/kb/949358

    Note: Try the steps mentioned in the 949358 KB if you get this message even after execution of method 2.

    Also, try the steps mentioned in this link and check:

    Important this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-the-registry

    Cannot install updates in Windows Vista, Windows 7, Windows Server 2008 and Windows Server 2008 R2

    http://support.Microsoft.com/kb/2509997

    Note These files are not at risk of infection. If analyze you these files, serious performance problems may occur because some files may be locked. If a specific set of files is identified by its name, exclude only files instead of the entire file. Sometimes, the complete file should be excluded. Do not exclude any of these items, based on the file name extension. For example, don't exclude all files that have a said. Microsoft has no control over other files that may use the same as these files extensions.

    Important: Running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data can be lost.

    I hope this helps. If you have questions more related to Windows, feel free to post here at Microsoft Community.

  • is it possible to make a timer with AS3, which is accurate to a millisecond.

    I am new to AS3. I have somehow developed an auditory and Visual reaction timer taking the script from here and elsewhere. I know that his is not accurate and I also know that I'll write it correctly when I heard the script carefully.

    But I was checking the net about the timer class and various positions on this issue and I am annoyed by a question "if its possible to make a precise timer with AS3?" can someone please tell me with certainty. and I will be grateful if I know how to do it properly. I can post the code I wrote (assembled).

    the answer is, maybe. but for most of the coders, the answer is, no.

    getTimer() is accurate to 1ms.  but to determine the elapsed time / and don't call or to run code on a timed basis. It can be used with the Timer class events or enterframe to do certain things with precision.

    However, the timer class is not accurate in the way of thinking of beginning coders.  It will be, on average, to allow the call of a function near the designated interval so there is no performance problem with your swf file.  It does not allow each function call to occur at regular intervals.

  • Adjust the order of the layers with AS3

    I want to load an external SWF into my project. I do this by adding a charger to the scene. It seems above all, there are 16 layers in my FLA, and I want to put it between the second and the third to the lower layers. How can I do this? I looked at some things online but they are all to change the order of objects on the same layer, and they usually invole do 2 or three objects with AS3 then change the order on the same layer, always above the objects that are actually on the stage of the FLA. I want to put the SWF loaded under Of OBJECTS ALREADY EXISTING that are on different layers.

    My code:

    var pageLoader:Loader = new Loader;

    addChild (pageLoader);

    pageLoader.x = 98;

    pageLoader.y = 121;

    pageLoader.z <-as far as I know it works in a single layer, it won't jump from layer to layer.

    Some have suggested to load my swf in a clip from movie ampty bt when I do this I lose interactivity for swf file, why is this and is there away around this?

    My code:

    var pageLoader:Loader = new Loader;

    pageContainer.addChild (pageLoader);

    pageContainer is an empty movie clip

    I want to load directly to the scene and just change the layer (first method), but if this cannot be done so I need a way to get SWFs loaded into a clip vacuum film and keep their own interactive.

    I dound in connection addChildAt, which is different from addChild, because it has 2 parameters, the name of the object and its z-index. So I was able to do:

    addChildAt(pageLoader,4);

    Then I met the same problem with movie clip method is empty, I lost interactivity. Then I noticed that there movieclips above because one of them is used as a blending mode by covering it. So, I realized that the empty movie clip method did not work because there are video clips above it. So I did mouseEnabled = false. And it works, so YAY!

  • Change the text with AS3 makes the invisible text

    Hi all

    Even for a total n00b like me, this is awkward: I can't even change a text on the stage with as3.

    I place a text on my stage, assign the dynamics, incorporate the police and give it an instance name. When I change the text, he evacuated the scene or if it remains invisible, I don't know.

    I thought it would be as simple as this: myText.text = "new text";   but apparently I am doing something wrong. When I put a trace (myText.text);  before and after, I see the old and the new text in the output window. Then he changes correctly, but why he disappears it? Also tried in a new white project, to ensure that it was not something somewhere.

    I'm totally distraught...

    BTW I use Flash CS5.5 on Win7

    do not enter text in the ide.  Use actionscript to assign the original text of your textfield and also change.

  • Newbie request for assistance with several drag-and-drop &amp; multiple targets

    I know that this question has been asked a million times, but I get always very well the solution.  I know that the solution called for me the use of tables in a part of my code, but I have problems understanding how to implement it.  I use Flash CS 5.5 with AS3.

    I have a flash drag-and-drop file which is divided into 4 distinct zones on the stage.  On each box, there are 7 places, for 7 different "puzzle pieces".  The first two spaces on each quadrant have very a very specific order for the correct puzzle pieces, while the 5 additional places on each quadrant also have specific parts, but the order is not important.  I have included my code below for reference (note that I have not all instances, finished yet).

    Basically, in code that's been created, the following bodies have specific targets with specific command:

    D1_1_mc, D1_2_mc, D1_1_mc, D2_2_mc, D3_1_mc, D3_2_mc, D4_1_mc and D4_2_mc.

    All other instances, such as D1_3_mc, D2_3_mc, D2_4_mc, etc. have specific quadrants on which they need to fall, but what about the last 5 'spaces' in each quadrant, the order does not matter.  I know that I can continue to do what I do, but I would have preferred that the last 5 pieces on each quandrant do not have to be in a specific order.

    You can provide any assistance is greatly appreciated!

    var startX:Number;

    var startY: number;

    var counter: Number = 0;

    D1_1_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D1_1_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D1_2_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D1_2_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D1_3_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D1_3_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D2_1_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D2_1_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D2_2_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D2_2_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D2_3_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D2_3_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D2_4_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D2_4_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D3_1_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D3_1_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D3_2_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D3_2_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D3_3_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D3_3_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D4_1_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D4_1_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D4_2_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D4_2_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D4_3_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D4_3_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    D4_4_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    D4_4_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    function pickUp(event:MouseEvent):void {}

    event.target.startDrag (true);

    reply_txt. Text = "";

    event.target.parent.addChild (event.target);

    startX = event.target.x;

    startY = event.target.y;

    }

    function dropIt(event:MouseEvent):void {}

    event.target.stopDrag ();

    var myTargetName:String = "target_" + event.target.name;

    var myTarget:DisplayObject = getChildByName (myTargetName);

    If (event.target.dropTarget! = null & & event.target.dropTarget.parent == myTarget) {}

    reply_txt. Text = "Good Job!"

    event.target.removeEventListener (MouseEvent.MOUSE_DOWN, Pick-up);

    event.target.removeEventListener (MouseEvent.MOUSE_UP, dropIt);

    event.target.buttonMode = false;

    Event.Target.x = myTarget.x;

    Event.Target.y = myTarget.y;

    counter ++;

    } else {}

    reply_txt. Text = "Try Again!";

    Event.Target.x = startX;

    Event.Target.y = startY;

    }

    if(Counter == 5) {}

    reply_txt. Text = "congratulations, you did!"

    }

    }

    D1_1_mc.buttonMode = true;

    D1_2_mc.buttonMode = true;

    D1_3_mc.buttonMode = true;

    D2_1_mc.buttonMode = true;

    D2_2_mc.buttonMode = true;

    D2_3_mc.buttonMode = true;

    D2_4_mc.buttonMode = true;

    D3_1_mc.buttonMode = true;

    D3_2_mc.buttonMode = true;

    D3_2_mc.buttonMode = true;

    D4_1_mc.buttonMode = true;

    D4_2_mc.buttonMode = true;

    D4_3_mc.buttonMode = true;

    D4_4_mc.buttonMode = true;

    Since it seems to afew possible gaps in the code you showed, and what I offer myself in response to your questions, I spent a little time get a working model of what I guess you just using the three targets and the fall of four objects.  If you want, I can make the file available for you, but for now, here's the code that works...

    var startX:Number;
    var startY: number;
    var counter: Number = 0;

    target_D2_1_mc.allowed = new Array (D2_1_mc);
    target_D2_2_mc.allowed = new Array (D2_2_mc);
    target_D2_3_mc.allowed = new Array (D2_3_mc, D2_4_mc);

    D2_1_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
    D2_1_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
    D2_2_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
    D2_2_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
    D2_3_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
    D2_3_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);
    D2_4_mc.addEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
    D2_4_mc.addEventListener (MouseEvent.MOUSE_UP, dropIt);

    function pickUp(event:MouseEvent):void {}

    reply_txt. Text = "Good Luck."
    event.target.startDrag (true);
    event.target.parent.addChild (event.target);
    startX = event.target.x;
    startY = event.target.y;
    }

    function dropIt(event:MouseEvent):void {}

    event.target.stopDrag ();

    If (event.target.dropTarget! = null & MovieClip (event.target.dropTarget.parent).allowed.indexOf (event.target) >-1) {}
    reply_txt. Text = "Good Job!"
    event.target.removeEventListener (MouseEvent.MOUSE_DOWN, Pick-up);
    event.target.removeEventListener (MouseEvent.MOUSE_UP, dropIt);
    event.target.buttonMode = false;
    Event.Target.x = MovieClip (event.target.dropTarget.parent) .x;
    Event.Target.y = there MovieClip (event.target.dropTarget.parent);
    counter ++;
    } else {}
    reply_txt. Text = "Try Again!";
    Event.Target.x = startX;
    Event.Target.y = startY;
    }

    if(Counter == 5) {}
    reply_txt. Text = "congratulations, you did!"
    }
    }

    D2_1_mc.buttonMode = true;
    D2_2_mc.buttonMode = true;
    D2_3_mc.buttonMode = true;
    D2_4_mc.buttonMode = true;

  • How to write Save function based on the drop-down list box selection data in app mxml flex4 with as3

    Hi all

    I'm working on the application web flex4 with as3.

    I have a doubt, I've created a mxml it has two text boxes, except the button and a combo box that is has two option as a percentage and the amount.

    my needs are I gave here.

    need 1: when I choose option amount that two text boxes does not have to be editable.when I select text tat box two percentage option will be editable.

    need 2: when I select the percentage in combox option and two text boxes are empty, and then click the button Save-> I want to display warning msg

    need 3: when I select the option amount combox and the two boxes are emptu click the button Save-> I don't want any warning messages.

    How to validate it and how to write backup for this function.

    This is my sample code:

    list box ID = baseAmtPer

    ID TextBox1 = maxCommAmt.text

    ID = baseAmtPer.text text box

    If (((baseAmtPer.editable!=true) & & (maxCommAmt.editable! = true)) & & ((baseAmtPer.text=="") & &(ma xCommAmt.text=="")) |) (baseAmtPer.text == "") | (maxCommAmt.Text=="")) -> This condition not allowing while I'm selecing amount in combo box. How the TWO TEXT BOX WILL BE EMPTY for this problem

    {

    Alert.Show ("enter in all areas", "Information");

    }

    on the other

    {

    some encodings

    }

    Hello

    Please go through the following Code:

    http://ns.Adobe.com/MXML/2009.

    xmlns:s = "library://ns.adobe.com/flex/spark".

    xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = "955" = "600" minHeight >

    Import mx.collections.ArrayCollection;

    Import mx.controls.Alert;

    Import spark.events.IndexChangeEvent;

    protected function button1_clickHandler(event:MouseEvent):void

    {

    If (comboBox.selectedItem == "Percentage" & textBox1.text == "" & textBox2.text == "") {}

    Alert.Show ("enter the values");

    }

    }

    protected function comboBox_changeHandler(event:IndexChangeEvent):void

    {

    {if(ComboBox.SelectedItem=="Amount")}

    textBox1.editable = false;

    textBox2.editable = false;

    }

    else {if(comboBox.selectedItem=="Percentage")

    textBox1.editable = true;

    textBox2.editable = true;

    }

    }

    ]]>

    Amount

    Percentage

    Thank you and best regards,

    ------------------------------------------------------------------------------------------ --

    Vibhuti Gosavi . [email protected] | www.infocepts.com

    ------------------------------------------------------------------------------------------ --

  • How to validate and save the values to a combo box and two text boxes in flex4 mxml application with as3

    helllo all,.

    I'm working on the application web flex4 with as3.

    I have a doubt, I've created a mxml it has two text boxes, except the button and a combo box that is has two option as a percentage and the amount.

    my needs are I gave here.

    need 1: when I choose option amount that two text boxes does not have to be editable.when I select text tat box two percentage option will be editable.

    need 2: when I select the percentage in combox option and two text boxes are empty, and then click the button Save-> I want to display warning msg

    need 3: when I select the option amount combox and the two boxes are emptu click the button Save-> I don't want any warning messages.

    How to validate it and how to write backup for this function.

    any suggession or extract code is welcome.

    Thanks in advance,

    B.Venkatesan

    Looks like you are trying to do too much at once. Try to hang the events correctly

    The close event of the comboBox can do something like this

    protected function toggleTextEditing(event:DropDownEvent):void

    {

    If (this.optionCmb.selectedItem.label is "Percentage")

    {

    This.Text1.editable = true;

    This.Text2.editable = true;

    }

    Else if (this.optionCmb.selectedItem.label == "Number")

    {

    This.Text1.editable = false;

    This.Text2.editable = false;

    }

    }

    The button's click event can do something like

    protected function save(event:MouseEvent):void

    {

    If (this.optionCmb.selectedItem.label is "Percentage")

    {

    If (this.text1.text == "" & this.text2.text == "")

    {

    Alert.Show ("text is empty");

    return;

    }

    on the other

    {

    }

    }

    Else if (this.optionCmb.selectedItem.label == "Number")

    {

    }

    }

    If you can put in your entire code, maybe I can have a look to see if I can find something wrong with that.

    -Pramod

    http://www.flexmycode.com

  • Parental and child control with AS3

    Hello

    I am new to AS3 and although I can see some good practices and functionality, I'm constantly stuck and can still do the things I would do if easily with AS2 - I almost it relearn from scratch!. I would still appreciate little help and advice on this...

    I did a class that creates a "sort" menu with data from an XML file, and basically is what he does when he is called to create an emptyMC (a container), add a childMC (a square) and add another child (a text label). When I create the container, I am trying to add a MouseEvent that can act on each instance of container, but all I can get is a MouseEvent on the object that contains all the MCs added. The code follows.

    Can someone enlight me with that issue or explain what I am doing wrong.

    I do not understand the parental dynamics with AS3 and the absence of the use of instance names and parenting dot does not help.

    Thanks in advance.

    Note to Adobe: previous versions of Flash and as a reference Help files were far more useful than in CS4!

    In the timeline:

    Import assets.myDynMenu;

    var theMenu:myDynMenu = new myDynMenu ("menu.xml");
    stage.addChild (theMenu)

    Stop();

    In the class:

    package assets

    {

    import flash.display. *;
    import flash.events.Event;
    import flash.events.MouseEvent;
    import flash.text.TextField;
    flash.net import. *;

    public class myDynMenu extends Sprite {}

    LOADING EXTERNAL INIT DATA

    public void myDynMenu (theData) {}

    LOADS MENU DATA FROM PREFORMATTED XML
    var loader: URLLoader = new URLLoader();
    var url: URLRequest = new URLRequest (theData);
    loader.addEventListener (Event.COMPLETE, buildTheMenu);
    Loader.Load (URL);
    }

    FULL CHECK LOAD XML MENU DATA - OBJECT BUILDING AND CHILDREN

    public void buildTheMenu(event:Event):void {}

    var xml = new XML (event.target.data);

    for (var i = 0; I < xml.menuData.menuItem.length (); i ++) {}

    ADDS A CONTAINER

    var itemContainer:MovieClip = new MovieClip();
    itemContainer.name = "menu" + i;
    //

    THE NEXT LINE IS NOT DO WHAT I WANTED?
    IN THE FUNCTION BEING CALLED, I NEED TO CONTROL THIS ELEMENT AND ITS CHILDREN

    itemContainer.addEventListener (MouseEvent.MOUSE_OVER, onMouseOver);

    //

    itemContainer.x = 100 * i;
    itemContainer.y = 0;
    itemContainer.mouseEnabled = true;
    itemContainer.mouseChildren = false;
    addChild (itemContainer);

    ADDS A CHILD OF CONTAINER (a square)

    var itemBase:MovieClip = new MovieClip();
    itemBase.graphics.beginFill (xml.menuData.mConfig.mainItemColor);
    itemBase.graphics.drawRect (0,0,xml.menuData.mConfig.mainItemW,xml.menuData.mConfig.mainIt emH);
    itemBase.graphics.endFill ();
    itemBase.name = "basic" + i;
    itemBase.mouseEnabled = false;
    itemBase.mouseChildren = false;
    itemContainer.addChild (itemBase);

    ADDS a CHILD OTHER to CONTAINER (a text label)

    var theLabel:TextField = new TextField();
    theLabel.x = 5;
    theLabel.y = 5;
    theLabel.selectable = false;
    theLabel.mouseEnabled = false;
    theLabel.border = true;
    theLabel.text = xml.menuData.menuItem [i] .mName;
    itemContainer.addChild (theLabel);

    }

    }

    It IS THE MOUSE ON WHICH I NEED law to EACH itemContainer (AND CHILDREN)
    private void onMouseOver(event:MouseEvent):void {}

    event.stopPropagation ();
    trace ("you're on" + myIdName);
    }


    }

    }

    use:

    package assets

    {

    import flash.display. *;
    import flash.events.Event;
    import flash.events.MouseEvent;
    import flash.text.TextField;
    flash.net import. *;

    public class myDynMenu extends Sprite {}

    LOADING EXTERNAL INIT DATA

    public void myDynMenu (theData) {}

    LOADS MENU DATA FROM PREFORMATTED XML


    var loader: URLLoader = new URLLoader();
    var url: URLRequest = new URLRequest (theData);
    loader.addEventListener (Event.COMPLETE, buildTheMenu);
    Loader.Load (URL);
    }

    FULL CHECK LOAD XML MENU DATA - OBJECT BUILDING AND CHILDREN

    public void buildTheMenu(event:Event):void {}

    var xml = new XML (event.target.data);

    for (var i = 0; i)

    ADDS A CONTAINER

    var itemContainer:MovieClip = new MovieClip();
    itemContainer.name = "menu" + i;
    //

    THE NEXT LINE IS NOT DO WHAT I WANTED?
    IN THE FUNCTION BEING CALLED, I NEED TO CONTROL THIS ELEMENT AND ITS CHILDREN

    itemContainer.addEventListener (MouseEvent.MOUSE_OVER, onMouseOver);

    //

    itemContainer.x = 100 * i;
    itemContainer.y = 0;
    itemContainer.mouseEnabled = true;
    itemContainer.mouseChildren = false;
    addChild (itemContainer);

    ADDS A CHILD OF CONTAINER (a square)

    var itemBase:MovieClip = new MovieClip();
    itemBase.graphics.beginFill (xml.menuData.mConfig.mainItemColor);
    itemBase.graphics.drawRect (0,0,xml.menuData.mConfig.mainItemW,xml.menuData.mCon fig.mainItemH);
    itemBase.graphics.endFill ();
    itemBase.name = "basic" + i;
    itemBase.mouseEnabled = false;
    itemBase.mouseChildren = false;
    itemContainer.addChild (itemBase);

    ADDS a CHILD OTHER to CONTAINER (a text label)

    var theLabel:TextField = new TextField();
    theLabel.x = 5;
    theLabel.y = 5;
    theLabel.selectable = false;
    theLabel.mouseEnabled = false;
    theLabel.border = true;
    theLabel.text = xml.menuData.menuItem [i] .mName;
    itemContainer.addChild (theLabel);

    }
      
    }

    It IS THE MOUSE ON WHICH I NEED law to EACH itemContainer (AND CHILDREN)
    private void onMouseOver(event:MouseEvent):void {}

    event.stopPropagation ();
             trace ("you're on" + event.currentTarget.name);
    }

    }

    }

  • Create an XML with AS3 object

    I want to create an XML object based in AS3, but don't know how to do this.

    I first tried to create a string that represents my XML elements and their values, but then I don't know how to convert this string into an XML object.

    Secondly, in my view, there are other ways to create XML objects in AS without doing anything with strings.

    Can someone please recommend a way to do this?

    An example XML to create with AS3 is:

    I got the solution to my problem. For anyone interested, see me the code below (the names of xml elements are different, but the concept is the same).

  • Select all the text in the control with AS3

    Does anyone know how to select all the text in a text control (text, textarea, etc.) with AS3?

    Thank you.

    Answered my own question.

    Set the properties selectionBeginIndex and selectionEndIndex of text controls.

    For example, this selects all the text in a text box:
    yourTextArea.selectionBeginIndex = 0;
    yourTextArea.selectionEndIndex = yourTextArea.text.length;

  • Apple TV is compatible for use with HDMI Panasonic plasma TV model TH 50PX70A 2007?

    Apple TV is compatible for use with HDMI Panasonic plasma TV model TH 50PX70A 2007?

    Yes

  • External hard drive for use with FCPX Thunderbolt

    I got a new iMac, but the SSD in it's tiny, so I need to invest in an external drive at least some of TB.  Should I go Thunderbolt because I think it's faster?  I'm looking at Fantom and Lacie but I'm not sure what would work best for use with FCPX.

    Any tips or suggestions for these two manufacturers?

    Thanks in advance for the help.

    Well, a disc of Tb2 (which takes care of your iMac) will offer excellent performances. If you need these speeds depends on really how ask your projects are. A USB3 drive will be fast enough for the vast majority of HD projects. Expect to spend more for the readers of Thunderbolt2.

    Here is a good article on configuring systems with external drives.

    Good luck.

    Russ

  • What is the best HDMI switch for use with Apple tv 4

    What is the best HDMI switch for use with Apple tv 4. I heard some do not work and the automatic switch has problems because Apple tv is still using power?

    I installed on a cutting and not because the automatic switch works because it isn't always. It came with a remote control that is almost as good, so don't mind the fact that automatic switching does not work well. The reason why I chose cutting is because it was the first device that gave me the good picture and sound quality with my AppleTV, the Xbox 360 and the PS4. (Don't ask!)

Maybe you are looking for