AS3 help?

I have XML file with data and I am loading this to text filed.
How can check the length of values (like value1, value2…)? And
The text field has to accept only 20 chars from each value.  If it’s more than 20 chars then it should remove (delete) 21, 22 …. chars.
XML code:
<?xml version="1.0" encoding="utf-8" ?>
<data>
<Header1>        
<option>
<value1> Adobe Photoshop</value1>
<value2> Adobe Flash Professional </value2>
<value3> Adobe Acrobat Professional </value3>
<value4> Adobe Premiere Pro </value1>
</option>
</Header1>
</data>
Please help me!
Thanks
jafy

Look at the String class and the properties and methods that support it.  You can use the length property (String.length) to determine how many characters are in the String.  And you can use the slice() or substr() method to capture a particular section of the String for appending to the TextField.

Similar Messages

  • RemotingMessage vs. RemoteObject in AS3 help needed

    Hi,
    Could someone clarify the difference between using RemotingMessage and RemotObject to invoke RPC in AS3 code? I found two different examples online and I don't know, which one is preferable.
    --first example http://www.ghost23.de/blogarchive/2008/10/connecting-flas.html --
    var remotingMsg:RemotingMessage = new RemotingMessage();
    remotingMsg.operation = "multiply";
    remotingMsg.body = methodArguments;
    remotingMsg.destination = "calculate";
    remotingMsg.headers = {DSEndpoint: "java-amf"};
    var respnd:Responder = new Responder(onResult, onFault);
    netConnection.call(null, respnd, remotingMsg);
    --end of first example--
    --second example http://www.flasher.ru/forum/blog.php?b=44 --
    amfChannel= new AMFChannel("my-amf", "http://192.168.10.38:8080/samples/messagebroker/amf");
    amfChannel.requestTimeout = 3;
    amfChannel.connectTimeout = 3;
    channelSet = new ChannelSet();
    channelSet.addChannel( amfChannel );
    amfChannel.addEventListener(ChannelFaultEvent.FAULT, handleChannelFault);
    amfChannel.addEventListener(ChannelEvent.CONNECT, handleChannelConnect);
    amfChannel.addEventListener(ChannelEvent.DISCONNECT, handleChannelDisconnect);              
    ro = new RemoteObject();
    ro.destination = "hello";
    ro.channelSet = channelSet;
    ro.addEventListener(ResultEvent.RESULT, onResult);
    ro.addEventListener(FaultEvent.FAULT, onFault);
    ro.getOperation("hello").send("Piter2");
    --end of second example--
    The first one is shorter but it is not clear to me what are the implications of choosing one way over another.
    Thanks

    If you have a button on the same timeline as your code with
    the instance name of abt_mgn_btn, then, when this button is
    released, the playback head will jump to frame 10 of the current
    timeline and continue to play.
    If you want the playback head to jump to that frame and stop
    then, either use gotoAndStop(10), or put a stop(); command at frame
    10. GotoAndStop() will work more reliably.
    Have you gone through the tutorials that come with Flash?
    These tutorials may help you to understand the basics of working in
    Flash CS3. You may also benefit from a book or two on Flash. Try
    "Foundation Flash CS3 for Designers" by Tom Green and David Stiller
    from friends of Ed, ISBN 159059861X and/or "Adobe Flash CS3
    Professional, Classroom in a Book" from Adobe Press, ISBN
    0321499824.

  • Rotating knob from AS2 -- AS3 help please

    I'm trying to create a rotating knob that a User can turn
    with the mouse. The initial code worked in AS2 but the rest of my
    project is in AS3. so I started to convert it over (with help) Can
    anybody help make it work in AS3?
    I'm sure the "update Advent" is incorrect. also i would like
    to have the knob only able to rotate 180 deg from initial position.
    I'm thinking i need to fid the initial x,y position and the final
    x, y position and use those as bounderies but not sure if there is
    a way to do it with rotation<180 type of thing. thank you in
    advance for any help, or direction.

    kglad
    can you help me with something so simple that im embarrised
    to mention it :) i can't figure out what i'm doing wrong i have a
    button in a child movie clip and im trying to control another movie
    movie clip, that is also a child of the same main moive clip with
    no luck, i use the "insert target path" but when i try to run test
    the flash it gives me a error " the Toggle_up button was clicked
    TypeError: Error #1010: A term is undefined and has no
    properties.
    at controlpanel_demo_fla::Switch_Air_18/clickButton()"
    any ideas sorry to bother you again

  • Good morning, AS3 help needed for building my own site in flash

    Good morning to all,
    I am creating a site in Flash, I am using AS3 to create a
    site that stops/starts the movie on my home page and I have a
    series of buttons that play a head (or are supposed to) to the a
    frame for each additional page. Do I need A.S. for each button as
    well? I didn't think I did. The script below is the first one in
    the layer titled actions, this I thought is supposed to stop/start
    the movie at the beginning and the button abt_mgn_btn is supposed
    to bring it to frame 10 to play my about page. ?? at my frame
    number 10 should I put the stop(); script there as well? And at
    every frame break for the next pages? I am hopelessly in need of
    guidance. Thank you to anyone helping me out.
    import flash.events.EventDispatcher;
    import flash.display.MovieClip;
    this.stop();
    function startMovie(event:MouseEvent):void {
    this.gotoAndPlay(10);
    abt_mgn_btn.addEventListener(MouseEvent.click,startMovie);

    If you have a button on the same timeline as your code with
    the instance name of abt_mgn_btn, then, when this button is
    released, the playback head will jump to frame 10 of the current
    timeline and continue to play.
    If you want the playback head to jump to that frame and stop
    then, either use gotoAndStop(10), or put a stop(); command at frame
    10. GotoAndStop() will work more reliably.
    Have you gone through the tutorials that come with Flash?
    These tutorials may help you to understand the basics of working in
    Flash CS3. You may also benefit from a book or two on Flash. Try
    "Foundation Flash CS3 for Designers" by Tom Green and David Stiller
    from friends of Ed, ISBN 159059861X and/or "Adobe Flash CS3
    Professional, Classroom in a Book" from Adobe Press, ISBN
    0321499824.

  • AS3 Help- Reloading a tween movieclip

    Hi everyone,
    I'm having the toughest time with my portfolio website. It's still pretty rough but getting there.
    Here is a link to the swf so you could see the problem and maybe help me fix it.
    http://tanyamendiola.com/pages/assets/flas/indexnew.swf
    Once you get to my portfolio menu homepage, click on Print design. Everything there loads fine.
    The trouble is going back to the portfolio movieclip and having it display those menu buttons again.
    As you can see, if you try to click the view portfolio button at the top, it loads that movieclip to wherever you left off at.
    Basically, my question is: How can I have my "view portfolio" button reload/refresh the movieclip (page1) from the beginning in my pagecontainer_mc?
    page1 is a movieclip that shows my portfolio buttons.
    page2 is a movieclip that show the "about me" section.
    pagecontainer_mc is an empty movieclip that loads page1 or page2.
    import fl.transitions.*;
    import fl.transitions.easing.*;
    var p1=new page1;
    var p2=new page2;
    pagecontainer_mc.addChild(p1);
    var pageMoveTween:Tween=new Tween(pagecontainer_mc,"alpha",Strong.easeOut,0,1,2,true);
    mainmenu_mc.portfolio_btn.addEventListener(MouseEvent.CLICK,portCLICK);
    mainmenu_mc.aboutme_btn.addEventListener(MouseEvent.CLICK,aboutCLICK);
    function portCLICK(event:MouseEvent):void{
         p1.gotoAndStop(0);
         var btn1Outro:Tween=new Tween(pagecontainer_mc, "alpha",Strong.easeOut,1,0,1,true);
         btn1Outro.addEventListener(TweenEvent.MOTION_FINISH, runBtn1Transition);
         function runBtn1Transition(event:TweenEvent):void{
              pagecontainer_mc.removeChildAt(0);
              pagecontainer_mc.addChild(p1);
              var btn1Intro:Tween=new Tween(pagecontainer_mc,"alpha",Strong.easeOut,0,1,1,true);
    function aboutCLICK(event:MouseEvent):void{
         var btn2Outro:Tween=new Tween(pagecontainer_mc,"alpha",Strong.easeOut,1,0,1,true);
         btn2Outro.addEventListener(TweenEvent.MOTION_FINISH, runBtn2Transition);
         function runBtn2Transition(event:TweenEvent):void{
              pagecontainer_mc.removeChildAt(0);
              pagecontainer_mc.addChild(p2);
              var btn2Intro:Tween=new Tween(pagecontainer_mc,"alpha",Strong.easeOut,0,1,1,true);

    I've figured out the problem! (After spending several days looking for the right code and trying different angles.)
    I followed the coding off of this tutorial (http://www.demetri-media.com/FlashTalker/ExternalSWFCommunication.html) and took a specific feature (the cyan ball) and applied it to my file. It works perfectly now! Thank you for your help.
    Here's how I did it. The back button from within the loaded swf closes pefectly. Now I can move on to putting my portfolio together.
    If you have time and would like to help me, how would I/where would I place a loader to this to show how much of the swf file has been loaded/is being loaded? My swfs are pretty big files. I'm still pretty new to AS3.
    var myCLip:MovieClip = root as MovieClip;
    var container_mc:MovieClip;
    var myLoader:Loader = new Loader();
    myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderCompletedHandler);
    function loaderCompletedHandler(evt:Event):void { container_mc = myLoader.content as MovieClip;
    container_mc.back_btn.addEventListener(MouseEvent.CLICK, extCommunicate);
    function extCommunicate(evt:MouseEvent):void{
    container_mc.back_btn.alpha=.25; removeChild(myLoader);}
    var loadPRINT:String = "print.swf";
    var urlPRINT:URLRequest = new URLRequest(loadPRINT);
    printdesign_btn.addEventListener(MouseEvent.CLICK, swfLoads);
    function swfLoads(evt:MouseEvent):void {
    addChild(myLoader);
    myLoader.load(urlPRINT);
    var loadIDENTITY:String = "identity.swf";
    var urlIDENTITY:URLRequest = new URLRequest(loadIDENTITY);
    identity_btn.addEventListener(MouseEvent.CLICK, swfLoads);
    function swfLoads(evt:MouseEvent):void {
    addChild(myLoader);
    myLoader.load(urlIDENTITY);
    var loadPACK:String = "packaging.swf";
    var urlPACK:URLRequest = new URLRequest(loadPACK);
    pack_btn.addEventListener(MouseEvent.CLICK, swfLoads);
    function swfLoads(evt:MouseEvent):void {
    addChild(myLoader);
    myLoader.load(urlPCK);
    var loadWEB:String = "webdesign.swf";
    var urlWEB:URLRequest = new URLRequest(loadWEB);
    web_btn.addEventListener(MouseEvent.CLICK, swfLoads);
    function swfLoads(evt:MouseEvent):void {
    addChild(myLoader);
    myLoader.load(urlWEB);
    var loadPHOTO:String = "photography.swf";
    var urlPHOTO:URLRequest = new URLRequest(loadPHOTO);
    photo_btn.addEventListener(MouseEvent.CLICK, swfLoads);
    function swfLoads(evt:MouseEvent):void {
    addChild(myLoader);
    myLoader.load(urlPHOTO);

  • Port AS2 datagrid filter to AS3, help

    I am trying to port an AS2 filter script to AS3. I was
    wondering if someone could help with this. Still very new to AS3
    and only know the basics. Thanks!!!!
    [Bindable]
    public var filterBy:Array = ["movie_id","upc","title"];
    private function actionFilter():void {
    if(_global.arrMembers == undefined) _global.arrMembers =
    data.dataProvider.slice(0);
    var arrMembers = _global.arrMembers;
    var arrDisplay:Array = [];
    var fortext = forInput.text.toLowerCase();
    var selected = column.selectedItem.data;
    for(var i = 0; i < arrMembers.length; i++)
    if(arrMembers
    [selected].substr(0,fortext.length).toLowerCase() == fortext)
    arrDisplay.push(arrMembers);
    data.dataProvider = arrDisplay;
    New data form elements:
    <mx:Label x="10" y="25" text="Filter by:"/>
    <mx:TextInput x="72" y="23" change="actionFilter()"
    id="forInput"/>
    <mx:Label x="240" y="25" text="in:"/>
    <mx:ComboBox x="268" y="23" id="column"
    dataProvider="{filterBy}" change="forInput.text=''"/>
    <mx:DataGrid dataProvider="{dvds}" name="data" x="10"
    y="51" width="669" height="218">
    <mx:columns>
    <mx:DataGridColumn headerText="" dataField="active"
    width="75"/>
    <mx:DataGridColumn headerText="Movie ID"
    dataField="movie_id" width="100"/>
    <mx:DataGridColumn headerText="Title"
    dataField="title"/>
    </mx:columns>
    </mx:DataGrid>

    You should use a Collection, such as ArrayCollection as the
    dataProvider to the DataGrid. Then you can use the Collection's
    filterFunction to hide and show values.
    [Bindable] public var dvds:ArrayCollection = new
    ArrayCollection();
    // place all of the data into this collection.
    function filterBy( item:Object ) : Boolean
    // determine if the item is something you want to show and
    return true, otherwise return false
    // associate the function with the Collection:
    dvds.filterFunction = filterBy;
    // now tell the Collection to refresh itself:
    dvds.refresh();
    Check the Flex 2 documentation on ICollectionView to see how
    it works.

  • Draw and erase in AS3 help needed

    Hello all
    I have a 200x200 movie clip in a certain position I am trying
    to draw in as3, and then erase it to reveal another clip
    underneath. I am not able to specify the erase brush to be active
    just on top of that clip not on all over the stage.
    Here what I have so far , scratch is the name of my original
    clip I am drawing back
    var bitmap:Bitmap=new Bitmap();
    var bd:BitmapData=new
    BitmapData(scratch.width,scratch.height,true,0x00FFFFFF);
    bd.draw(scratch);
    bitmap.bitmapData=bd;
    addChild(bitmap);
    bitmap.x = 200;
    bitmap.y = 200;
    removeChild(scratch);
    but when I start erasing I have to start from 0,0 to erase my
    bitmap.
    THanks for your help

    Lgeee wrote:
    And how would i go about doing that?By making a proper design.
    This way, I can easily do what the object itself is made to do, without writing alot of code that checks what kind of object was sendt.
    The first way I did this was:
    Psudo Code:
    Object obj = input.readObject();
    String type = obj.getClass().toString();
    if (type.contains("logonObject")) {
    } else if (type.contains("playerObject")) {
    I don't think that's relevant. I don't see where that code uses anything which is specific to the server and to the client. Those class names look like they belong in the server, so that code shouldn't be in a "shared" class. It should be in a "server" class.
    As for the issue of having to tell what kind of object was sent, I'm sure there are better ways than just sending an object and then having the receiver inspect the object to see what kind of object it was.

  • AS3 Help with hyperlinking

    Hi All
    Hoping you can help me, I have 2 websites both built entirely in flash.
    My problem is that I have created a button on one of the sites that has to link to a particular scene and frame within the second website.
    I know I need some actionscript 3 to do this, but have no idea how to code this.
    Can anyone help me? Or point me in the right direction?
    Many Thanks
    N

    append a query string to your ulrrequest string that indicates the frame/scene.   in the loaded swf, use the _url property and string methods to isolate those values and use them in a goto.  if you're loading a html, use javascript to parse the url and the externalinterface class to retrieve the javascript results in flash.

  • AS3 help with buttonClickHandler

    Ok, so i am getting the following error:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at file_Scene1_fla::MainTimeline/buttonClickHandler()
    So here is the code
    At frame 75 (intro before hand, works perfectly, with only a
    play command)
    note: 30fps
    var nextSection:String="home";
    stop();
    firstButtons.firstButton.addEventListener(MouseEvent.CLICK,
    buttonClickHandler)
    function buttonClickHandler(event:MouseEvent):void {
    if ( event.target == firstButtons.firstButton ) {
    nextSection="home";
    gotoAndStop(nextSection);
    } else if ( event.target == home_btn ) {
    nextSection="home";
    gotoAndStop(nextSection);
    } else if ( event.target == collections_btn ) {
    nextSection="collections";
    gottoAndStop(nextSection);
    } else if ( event.target == orders_btn ) {
    nextSection="orders";
    gottoAndStop(nextSection);
    } else if ( event.target == about_btn ) {
    nextSection="about";
    gottoAndStop(nextSection);
    } else if ( event.target == contact_btn ) {
    nextSection="contact";
    gottoAndStop(nextSection);
    } else if ( event.target == americas_btn ) {
    nextSection="americas";
    gottoAndStop(nextSection);
    } else if ( event.target == europe_btn ) {
    nextSection="europe";
    gottoAndStop(nextSection);
    } else if ( event.target == asia_btn ) {
    nextSection="asia";
    gottoAndStop(nextSection);
    } else if ( event.target == oceania_btn ) {
    nextSection="oceania";
    gottoAndStop(nextSection);
    then, i have more objects enter the stage at frame 80
    home_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    collections_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    orders_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    about_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    contact_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    stop();
    and finally at frame 95
    americas_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    europe_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    asia_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    oceania_btn.addEventListener(MouseEvent.CLICK,
    buttonClickHandler);
    stop();
    the error comes, when i try to click on the buttons that
    enter in frame 80 (also, the button works as in the up and down
    state changes, but it does not move on to the next section of the
    website)
    from what i got, i have to list the function and all its
    possibilities the first time (as in AS3, you can only list a
    function once or else get error 1114 (i think thats the # might be
    wrong))
    then later you list the items entering (as they enter the
    stage) or get error 1009, which i still am getting
    thank you very much in advance
    PS: i only learned Flash this week and have looked through
    dark world wide webs for many errors but am finally stumped

    ok, the firstButtons.firstButton is a button called
    firstButton in a movie clip firstButtons however, the movie plays
    (i said a simple play command in the post plays it) and if i click
    on it, it takes me to the next section of the website, so i dont
    think that's it (note: from what i understand you have to list the
    button in that order or else it wont identify it (am i wrong))
    the problem starts at frame 80 with the new buttons that dont
    forward me on to their given sections
    if you can explain what to do next (ie: trouble shoot x or
    y...) that would be greatly appreciated as im way way out of my
    league
    thanks alot

  • Color external loaded swf in AS3 Help Urgent!

    Hi i have loaded swf from an external path using the following command.
    var cviewer:Loader=new Loader();
    var curlRequest:URLRequest=new URLRequest("clipArts/"+evt.target.name);
    So this is the scenario.
    Suppose say i load Movie1.swf
    I have three movie clips inside Movie1.swf called step0, step1, step2
    I need to change the color of step0, step1 and step 2 from the parent flash file which loads movie1. All the inner movie clips color may be different from each other.
    I am able to change the color of the whole movie clip by using
    var colorInfo:ColorTransform = cviewer.transform.colorTransform;
    colorInfo.color=evt.target.selectedColor;
    cviewer.transform.colorTransform=colorInfo;
    But not of individual ones. I even tried cviewer.step0.transform.colortransform and other stuff to see if it would work. But nothing worked. Help at fastest would be deeply appreciated.
    Regards and thanks in advance.

    try:
    var colorInfo:ColorTransform = MovieClip(cviewer.content).step0.transform.colorTransform;
    colorInfo.color=evt.target.selectedColor;
    MovieClip(cviewer.content).step0.transform.colorTransform=colorInfo;

  • Simple preloader in AS3 - HELP

    Hi,
    Could anyone please point me in the direction or tell me how
    to build a simple preloader in AS3/PlashPlayer 9.
    I'd just like to have a movie clip in frame one which
    animates until the rest of the timeline has loaded, then once
    loaded go to frame 2.
    I've had a look in the doucumentation and around the web to
    find something but can't find anything that works and I'm finding
    it quite hard.
    Thanks in advance

    These screen captures show the library of the movie. As you can see I export the most of them. However I have doubts about if I must convert to symbol the graphics. I have the preloader in the "presentación" folder without any exportation.
    Please, Could you correct the website?. Please, tell me an e-mail address and I send you the website via WeTransfer.

  • AS3 Help - Rollover Panel

    Hello
    Right here is the problem, I have used a bit of code which works on the other parts of the site, but for some stupid reason one of them does not work.
    I have created a sliding rollover panel so that a user can hover over an invisible button to reveal the panel itself. The panel itself is under a movie clip which basically motion tweens the panel to slide in and out effectively. Then there is the panel_mc inside the movie clip which contains an img. The one panel can slide out but for some reason cannot slide back, even when you rollover the button(popUp_btn)!!!! The compiler errors does not even display this error!!!
    Here is the code for the main AS timeline in the site:
    stop();
    panel_mc_arrangement.panelInner_mc_arrangement.popUp_btn.addEventListener(MouseEvent.ROLL_ OVER,rollFarrange);
    function rollFarrange(event:MouseEvent):void{
    if(panel_mc_arrangement.currentFrame <<2){
      panel_mc_arrangement.play();
    }else{
      panel_mc_arrangement.gotoAndPlay(20);
    Help will be much appreciated

    there's no such thing as <<
    change that to <
    whether that fixes your problem or not is not possible to determine from the supplied info.

  • Pop-Up in as3 HELP

    Hello, I'm getting an extra blank pop-up window along with my
    pop-up window that I want. any ideas what could be causing the
    problem? Also, can I code more than one button on the same
    keyframe?
    Thanks
    function jspopupWindow(event:MouseEvent):void {
    var desiredURL:URLRequest = new
    URLRequest("javascript:NewWindow=window.open('page.html','newWin','width=900,height=602,l eft=400,top=300,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No' );
    void(0);");
    navigateToURL(desiredURL, "_self");
    btn_salinas2.addEventListener(MouseEvent.CLICK,
    jspopupWindow);

    the same thing happens to mine
    i was listening to it on my dock today
    and it just stopped playing
    i went over to it
    and the screen was black, it won't turn on, my computer won;t recognize it, and i have tried the 5 r's
    the dock still works
    i have no idea what to do
    please help

  • Fullscreen and noscale using AS3.0

    I'm attempting to create a projector that will go fullscreen
    and without scaling using AS 3.0
    In AS 2.0 I simply did this:
    fscommand("allowscale", false);
    fscommand('fullscreen",true);
    Worked every time...
    I've tried a few things, like the following:
    import flash.display.Sprite;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.events.Event;
    stage.scaleMode = StageScaleMode.NO_BORDER;
    stage.align = StageAlign.EXACT_FIT;
    But it ignors the code.
    I have had success with the following:
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.align = StageAlign.TOP_LEFT;
    Suggestions???

    fscommand still exists in AS3. try this for your AS3
    projector
    import flash.system.fscommand;
    fscommand("allowscale", false);
    fscommand('fullscreen",true);
    Edit: Thought I might post a link to the LiveDocs for
    fscommand since people on the forums keep getting confused about
    this pretty much undocumented function in AS3. I'm sure it is
    simply because the Flash team is intending to deprecate it
    completely but either way, it is still there and it's use is no
    different that it was in AS2. The only difference is that now you
    MUST import the flash.system package to use it.
    AS3
    Help - fscommand on LiveDocs

  • Delegate in as3

    This probably is trivial but I am not sure what the problem is. I am trying to call an event listener for a button. The problem is I have many buttons each with a string variable attached to them so that the click function can go to the frame name that is attached to the button. normally I would use the delegate class so that I could just call gotoAndPlay(this.frame) but as I understand it, as3 does not have the delegate class and basically does it automatically. So I call gotoAndPlay(this.frame) without using delegate. This results in a runtime error "ArgumentError: Error #2109: Frame label null not found in scene Scene 1." Does anyone know what the problem is? Here is my code:
    import flash.events.MouseEvent;
    button0.addEventListener(MouseEvent.CLICK,click);
    button0.frame = "scene_1";
    button1.addEventListener(MouseEvent.CLICK,click);
    button1.frame = "scene_2";
    button2.addEventListener(MouseEvent.CLICK,click);
    button2.frame = "scene_3";
    function click(event:MouseEvent):void{
        gotoAndPlay(this.frame);

    In case you are interested about why Delegate (which was a workaround in AS2) is no longer needed in AS3:
    Help Files: ActionScript 3.0 enables a method closure to automatically remember its original  object instance. This feature is useful for event handling. In ActionScript 2.0,  method closures would not remember what object instance they were extracted  from, leading to unexpected behavior when the method closure was invoked. The  mx.utils.Delegate class was a popular workaround, but it is no longer needed.

Maybe you are looking for

  • Storing a conditional formatting formula in a variable

    I have a conditional formatting formula that exceeds the 393 character limit for Word fields. I've placed the formula directly into the template table, and it works correctly. But now, of course, there are several hundred characters of formatting inf

  • How to completely uninstall Drive Genius, OS-X 10.6.8

    Mac Pro running OS-X 10.6.8. In February 2012 I purchased Drive Genius 3.1.1 from Other World Computing. Tried it. Not much use to me, so I forgot about it. In September 2014 I "upgraded" to Drive Genius v.3.2.5 but it would not run on my machine, so

  • ITUNES STOPS WORKING WHILE SYNC.

    i have an iphone 4 ,windows 7 os .my itunes stops working just when it completes the 2nd step of backing up during sync.i reinatalled itunes 10.5.3.3 many times but no use. HELP....!!!

  • Vendor balance profit center wise

    Dear friends my client need profit center wise vendor report but its not in the standard report fbl5n can any body help me to get the solution

  • Find A Point In number

    here is Query Select 23.25 from dual How can i Select only 23 from this number or 25 from this number .I mean to find the value after a point or before a point i number