How to use gotoandplay scene link using the property of the class (external code.as)

Hello

I use "gotoandplay" scene by scene link using this code. If I use it in the same line of (internal) time, it works correctly, but when I use this code as a class, I got this error

Call to a method may not set MovieClip.

I use this code in the timeline of the time

b_enter.addEventListener (MouseEvent.CLICK, fl_ClickToGoToScene_enter1);

function fl_ClickToGoToScene_enter1(event:MouseEvent):void

{

MovieClip (this.root) .gotoAndPlay "(menu p,"Menu");

}

I use this code in the class

package {}

to import flash.display.SimpleButton;

SerializableAttribute public class extends then SimpleButton {}

public function next() {}

the constructor code

MovieClip (this.root) .gotoAndStop ("p2", "2")

}

}

}

You can download the flash file using this link

http://www.Delta-Adv.com/nav/NP.rar

:

package {}

to import flash.display.SimpleButton;

import flash.display.MovieClip;

import flash.events.MouseEvent;

import flash.events.Event;

public class np extends SimpleButton {}

var _root:MovieClip;

public void np() {}

this.addEventListener (Event.ADDED_TO_STAGE, init);

this.addEventListener (MouseEvent.CLICK, nextF);

}

private void init(e:Event):void {}

_root = MovieClip (this.root);

}

private void nextF(e:MouseEvent):void {}

_root.addEventListener (Event.Render, renderF);

internship. Invalidate();

_root.nextScene ();

}

private void renderF(e:Event):void {}

_root.gotoAndStop (5);

}

}

}

Tags: Adobe Animate

Similar Questions

  • How to use the ota installation cod file

    Using the webworks platform, we have the standard and ota install files, I need to know how the cod in the ota installation file can be used.

    Put the web in an accessible location OTA files and point the browser on your phone to the URL.

    That is to say.

    If you download the OTA cod files in a directory named "/ ota/appname" on your server web you acceding to http://your-url.ca/ota/appname/cod-name.cod in the BlackBerry browser to install the application

    Rory

  • How to use the synchronization recovery Code?

    Hi, my name is Furkan. Sync deleted my membership. Recovery, I want to use my code. Where I write the recovery code? Thank you, cordially...

    Firefox 29 and later have a new synchronization version that uses an account of Firefox and use only the name and the password and no longer use a sync (recovery) separated key (the key of synchronization is derived automatically the Firefox account password).

  • How to use the class IIA for LabVIEW driver wrappers?

    Hi all

    I've read some texts on IVI compliance, but I have not quite how I wrap an IVI - COM to an IVI - C. Where is this done?

    In MAX, I see:

    -Configuration-> software-> IVI Compliance Package 3.3

    But no properties in there...

    I have an analizer spectrum available drivers are only IVI - COM, but I want to wrap them up in IVI - C...

    can someone tell me step by step how can I do this?

    or maybe tell me some beginner tutorial?

    Kind regards

    JPLO

    Hello JPLO,

    Before trying to communicate with your instrument using any sort of instrument drivers, you must confirm that you can connect at a lower level.  In most cases, this means through VISA, using MAX.  IVI - COM driver installation program should add a software module to the IVI Configuration, which is the MAX.  Most installers IVI - C also adds a pilot session, but you'll need to create a.

    We include adaptors IVI - COM for class IVI - C with PKI pilots.  Here's a knockout who talk about them: IVI-C class for specific drivers IVI-COM driver Support

    You can also simply treat the IVI - COM driver like any other ActiveX object.

    What type of instrument you are using?

    See you soon,.

    NathanT

  • How to use the class ApplicationMenu

    Hi, there are new class SDK 3.2.0 - ApplicationMenu. Sounds interesting, but how can I use it? All of the examples available somewhere?

    That's how I work (entire sample):

          var appMenu:ApplicationMenu=new ApplicationMenu();
            appMenu.width=stage.stageWidth;
            appMenu.helpAction=new Action(bundle.getResource("help"), Icons.help, 6);
            appMenu.settingsAction=new Action(bundle.getResource("settings"), Icons.settings, 7);
            appMenu.addEventListener(ActionEvent.ACTION_SELECTED, actionSelected);
            QNXApplication.qnxApplication.addEventListener(QNXApplicationEvent.SWIPE_DOWN, onApplicationSwipeDown);
    
            private function actionSelected(e:ActionEvent):void{
                trace("ACTIONSELECT "+e.action.data);
                switch(e.action.data){
                    case 6: //help
                        break;
                                    case 7: //settings                                         break;           }
            }
    
            private function onApplicationSwipeDown(event:QNXApplicationEvent) : void
            {
                var to:int=0;
                if(this.contains(appMenu)){
                    to = -appMenu.height;
                }else{
                    appMenu.y=-appMenu.height;
                    this.addChild(appMenu);
                    to = 0;
                }
                Tweener.addTween(appMenu, {y: to, time: 0.5, transition:"linear", onComplete: function():void{
                    if(appMenu.y<0){
                        removeChild(appMenu);
                    }
                }, onUpdate: function():void{
                    maincontainer.y=maincontainer.y=appMenu.y+appMenu.height;
                }});
            }
    
  • No links to the local area network connection. But how to use the Internet again, please help establish a LAN connection.

    Original title: no local network connection

    No links to the local area network connection. But how to use the Internet again, please help establish a LAN connection.

    Hi H.mustafaakyurek,

    ·         What operating system is installed on your computer?

    You can view the following items on the creation of a network connection:

    Setting up a network home

    http://Windows.Microsoft.com/en-us/Windows7/setting-up-a-home-network

     

    Start here to set up a home network in Windows 7

    http://Windows.Microsoft.com/en-us/Windows7/start-here-to-set-up-a-home-network-in-Windows-7

     

    Setting up a wireless network

    http://Windows.Microsoft.com/en-us/Windows7/setting-up-a-wireless-network

    Also see the following articles on the connection of an Internet connection:

    What do I need to connect to the Internet?

    http://Windows.Microsoft.com/en-us/Windows7/what-do-I-need-to-connect-to-the-Internet

     

    Allows to connect to the Internet mobile broadband

    http://Windows.Microsoft.com/en-us/Windows7/use-mobile-broadband-to-connect-to-the-Internet

    Hope this information helps.

  • How to use the platform of character even in the same scene several backgrounds without looping the platform of character chronology

    How to use the platform of character even in the same scene several backgrounds without looping chronology of the platform of character? Is it still possible without having to do the scene with another background on another file? To better explain the situation, I have a flash file which has a background and a rig which passes to another context and drilling on another layer and keyframe, but when I go back to the previous background and chronology of this drilling rig repeats, rather than leave, you are doing a new time for this platform. Do I need more than one file?

    In order to reuse assets to animate, you need to duplicate each symbol in the scene who will be the new animation. So, copy and paste the stage on a new layer, right-click on it and select double symbol, then double-click inside the symbol and select each symbol that is going to change, so that the background and the rigging and also select symbol duplicated for those files as well. usually, when I animation I do not use the main platform in the scenes, duplicate as 'Guy1_sc 1', then place it in the scene so that the path I never uses the master file. 'Guy1_sc 2' is a different file. Also if you lipsync and stalled the head separately you will need to reproduce, so, for each scene, is also unique. I hope this makes sense.

  • SOLUTION - How to use the remote on the Satellite X 200 with Win7 64 bit

    Here is the description how to use the remote control on the Satellite X 200-2 b with Windows 7 64 bit.

    Thanks for the link.

    It will be fine if some owner of Satellite X 200 can confirm.

  • How to use the webcam

    I have an Acer laptop AS 5740, I'm useless with all the technology, can someone tell me how to use the web cam it please?

    Hello

    If it is a built-in webcam, the instructions for use of the device will vary between manufacturers.

    Your best resource for this information is Support of Acer.

    Here is a link to the product page for your computer. This page contains all the documentation for this system and devices.

    Acer support: downloads & Documents - Support Notebook / sucks / Aspire 5740:
    http://support.Acer.com/us/en/product/default.aspx?tab=2&modelId=1870

    If you cannot find the information in this location, use the following link to request to Acer.

    Acer Support - answers, E-Mail, Chat - find answers: http://acer.custhelp.com/app/answers/list

    Concerning

  • Is there an online class to learn exactly how to use the command prompt which is quite through. OR y at - it clear a book that explains in detail for this? Who should I contact?

    I would like to know how to use the command prompt.  The nethodology type in the cmd prompt with the syntax and the Liposuction, in other words, the real return to a command prompt. I downloaded about evertthing I can find about this, but can't seem to put it all.

    My OS is Windows XP Pro sp3, lots of RAM, my address is * address email is removed from the privacy *.   I would like to take a rough online study if one is available if it is not too expensive.

    It really depends on what you mean by "to a command prompt."

    If you open a command prompt window (for example, in start > run > cmd > OK), you can enter a number of orders.  The list of available commands, including their syntax, is here--> http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?mfr=true

    You can also follow the links here:http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds_o.mspx

    If you want to get more sophisticated - automating command-line tasks - you can start here: http://technet.microsoft.com/en-us/scriptcenter/default.aspx

  • How to use the Go buyback program?

    There is a program that restores your computer exactly what he had on it a while ago. I've used it before, but I don't remember how I got him. Can someone tell me the name of the program if it has changed, or how to access it?

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-system-restore

    What is system restore?

    http://www.bleepingcomputer.com/tutorials/tutorial143.html

    A very good tutorial on how to use the system restore is at the link above.

    Restore point:

    Do Safe Mode system restore, if it is impossible to do in Normal Mode.

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    See you soon.

    Mick Murphy - Microsoft partner

  • How to use the recovery on USB media?

    Kindly tell me how to use the recovery on USB media? I deleted the my laptop's recovery partition and I am facing problem to restore previous windows during the upgrade to windows 8.1.

    Hello

    I'm really sorry, I made a mistake and posted the link to your subject (subject) here at the forum.

    The real link for this problem is-> http://support.hp.com/us-en/document/c03489643

    The instructions are the same

  • I am runing vista and do not know how to use the fax machine

    I am runing vista and do not know how to use the fax machine

    Here's how to set up Windows Fax and Scan: http://windows.microsoft.com/en-us/windows-vista/Set-up-your-computer-to-send-and-receive-faxes.  Navigate the reference links on the right for more information on how to send faxes and other information.  If you do this on every page you just, you can see all the articles on how to fax and scan and configure the system and solve problems, and many other subjects that may be necessary, useful or informative.  After that, you must be an expert on this subject.

    Here is a quick and easy way to send a fax in Vista: http://www.ehow.com/how_2029566_send-fax-vista.html.

    Unfortunately, the foregoing is available in Business, Enterprise, and Ultimate - not Basic or Home Premium.  In the latter, you need a 3rd party program.  If this is the case, here are some options:

    With the compliments of Bob F. http://www.vistax64.com/vista-print-fax-scan/127986-how-do-i-download-windows-fax-scan.html:

    Not available in Vista Home Premium Basic FAX. It is available in complete edition,
    Extreme and business.

    You might want to consider Snappy Fax at a low cost:
    http://www.snappysoftware.com/

    or the free version of BVRP:
    http://www.usr.com/BVRP/bvrp.asp

    or a full BVRP Classic Phone Tools 9: $29.90
    http://www.shop.Avanquest.com/USA/PR...S_CPT_homepage

    Look screen kinda gross but the product Snappy fax
    actually, is quite rich in features and works very well. BVRP also works very well,
    screen looks a bit better. Other that that, there are minor differences
    performance between the two.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to use the scan on a 4215i function all in one printer

    How to use the function scan with this printer with windows 8. I did the installation but the scan function is not wwork

    You have the printer Officejet 4215 all-in-one?

    If so, then there is no complete features in the printer driver.  The printer is using the Windows printer drivers Update menu.  For more information on using the driver from Windows Update, click here.

    You have this printer connected via USB?  If so, then there is workaround methods to get the printer to scan, as the old software package is not available on Windows 8.  In the above linked document, scroll down to the section on how to scan with updated driver for information about how to perform these types of scans.  I hope this helps.

  • How to use the queue data Structures stack?

    Hi all, you can tell me how to use the queue, stack, the link in the list... Structures of data in the project of BlackBerry? Thanks for any suggestions!

    BlackBerry devices are not java desktop running. you are limited to the blackberry api, basically j2me + rim extensions, based on java 1.3/1.4 (no enums, no generic, many collections not impl etc.).

    Remove your JRE6 and change your code until there is no more error.

Maybe you are looking for

  • All PQQ30A in a PX30t Qosmio - 01 G provide remote too?

    PX30t - 01 G PQQ30A all-in-one computer It has a cap on the back to connect a TV cableThere the ArcSoft software to see / record TV programsThere a CIR detector at the front to detect signals from the remote controlIt has software Nuvoton to treat Bu

  • Keep get disconnected

    I've just updated Skype to the latest version and when I go to connect it automatically signs me back off. I don't know what the problem is. I even went and changed my password and tried new and same problem!

  • Pavilion dv6 3104sl: HP bundled SW/Suites after upgrade to win 10?

    Hello everyone, After weeks and weeks of indecision, I (enough) finally decided to upgrade my laptop for Windows 10. There are still a lot of dark on the process, for example the reason why MS is so soft gift us with their precious and final OS... Bu

  • To replace the DVD drive with the second HARD drive on the Probook 6570 b as for the BIOS setting

    After you replace CD/DVD player with HARD drive in the Bay of correspondence, I had a problem with the BIOS. After starting, I received a message 'there is not a boot manager' and CTRL + ALT + DELETE. So is that posible F9 and start to use Option man

  • HP Color Laserjet M476nw MFP: Printer unavailable

    I am now unable to print wireless from my laptop computer on our home network printer after upgrade Windows 8 to 10 of Windows. Now, everything that I try to print from Microsoft Word by default OneNote 2016. Indeed, original default printer HP Color