Using gotoAndStop in my Main.as

Hi,
I've been struggeling for hours to use the function gotoAndStop in my Main.as file to start on frame 5 from the beginning on my script. On frame 5 there is a screen I want to begin with so I want to use gotoAndStop. But when I use stop(); on the timeline it doesn't work and in the Main.as it doesn't work ether.
package {
    import flash.display.*;
    import flash.events.*;
    public class Main extends Sprite {
        public var movieClip:Clip;
        public var myKnop1, myTerugknop1, myKnop2, myTerugknop2, myKnop3, myTerugknop3, myKnop4, myTerugknop4, myKnop5, myKnop6, myKnop7, myKnop8:Knop;
        public var myKnoptekst1, myKnoptekst2, myKnoptekst3, myKnoptekst4, myKnoptekst5, myKnoptekst6, myKnoptekst7, myKnoptekst8, myTerugknoptekst1, myTerugknoptekst2, myTerugknoptekst3, myTerugknoptekst4, myIntrotekst1, myIntrotekst2, myIntrotekst3, myIntrotekst4, myIntrotekst5, myIntrotekst6:Tekst;
        public function Main() {
            Clip.gotoAndStop("Start");
Som

It's like this.
On frame 1, I want to show some text and explanation about the game you're about to start. I'm showing this text using an external Main.as script and that script connects to Text.as. On my stage I only have some designs. The first frame is a screen with a white board with text on it generated by AS3. When you click "Next" it should go to frame 2 and play an animation and stop at the end of the animation. Something like this:
public function Main() {
     Next.addEventListener(MouseEvent.MOUSE_UP, frame(2));
Sorry, I'm still a starting AS3 user, so I don't know everything yet ;-)!
With kind regards,
Rubenos

Similar Messages

  • Use of distinct in main query

    Hi All,
    I am creating a report based on two tables Invoice Header and Invoice Line. These two table have the following fields in relation :
    Invoice_Dept|| Invoice_Pfx||Invoice_No
    My question is whether I can use distinct in the main query for this. Coz, when I don't I get repeated records as one Invoice header can have multiple line items in the Invoice Line tables.
    Please suggest.
    Thanks

    Hi Omer Farooq,
    Firstly you can use Distinct in main query.
    Secondly I feel you need to use Groups in the data model rather then using distinct.
    If you will create groups then your first that is top group will contain fields related to Invoice Header
    and second group will contain Invoice Line fields.
    Hope this helps.
    If this does not help please post your query and what output you want on the report.
    Best Regards
    Arif Khadas

  • Is it possible to use External HD as main boot drive? (Help!)

    Hi all
    I am about to buy a Seagate FreeAgent Pro (link: http://www.bhphotovideo.com/c/product/478636-REG/SeagateST305004FPA1E3_RK_FreeAgent_Pro_500GB_eSATA.html) with 500Gb and FW400/USB2.0/eSATA. I have a Mac Mini, and its internal HD is too small for me (80Gb total for about 70Gb of data).
    What I'd like to do is install OS X on the External HD and use it as my main boot drive, and perhaps the Mini's internal HD for data backup. Would that be possible/legal (I only have the install discs that came with it - my first Mac :D)? If it is complicated, could you guys explain me how to do it?
    I'd also like to know whether the performance would be better or worse. The Mini's got a 5400 RPM drive, and the external is 7200 RPM and would be connected through FW400 (plus a lot of free space for now).
    One last question: if it is indeed possible/legal to use the External HD as my main boot drive, would it be possible to install and boot Windows on the external HD using Boot Camp or Parallels?
    Cheers
    Daniel
    Mac Mini 1.83 GHz Core Duo 1 GB Ram 80 GB HDD Mac OS X (10.4.9)

    Performance will be worse because FW400 is considerably slower than the internal bus. For startup I would continue using the internal drive. You can use the external drive for data storage as well as off-loading any music, picture, and movie files to free up space on the internal drive. You can also partition a chunk of the external drive (80 GBs) to use as a backup partition for the internal hard drive. You can clone your internal drive to the external (partition) which will give you a bootable backup. Here's how:
    How to Clone Using Restore Option of Disk Utility
    1. Open Disk Utility from the Utilities folder.
    2. Select the backup or destination volume from the left side list.
    3. Click on the Erase tab in the DU main window. Set the format type to Mac OS Extended (journaled, if available) and click on the Erase button. This step can be skipped if the destination has already been freshly erased.
    4. Click on the Restore tab in the DU main window.
    5. Select the backup or destination volume from the left side list and drag it to the Destination entry field.
    6. Select the startup or source volume from the left side list and drag it to the Source entry field.
    7. Double-check you got it right, then click on the Restore button.
    8. Select the destination drive on the Desktop and press COMMAND-I to open the Get Info window. At the bottom in the Ownership and Permissions section be sure the box labeled "Ignore Permissions on this Volume" is unchecked. Verify the settings for Ownership and Permissions as follows: Owner=system with read/write; Group=admin with read/write; Other with read-only. If they are not correct then reset them.

  • Flash Player use to execute the main class entry point before rendering. Now it does not

    Adobe Flash Player use to execute the main class entry point before rendering the first frame. Now using the latest browsers and Flash Player 11.8 (11.8.800.94, or 11.8.800.97 for Chrome).
    With one of our swf apps, there are visual display objects on the first frame of the timeline. When the main class constructor is executed, those display objects are set to visible = false. So previously those display objects were never displayed because the first frame did not render until after the main class code was ran.
    Now when we browse to the our website, we find that those display objects are visible for a split moment of time (such as a quarter of a second).
    It appears that this may be a bug. We are wondering this could be new behavior based on loading/unloading the swf to optimize CPU usage and that Flash Player is taking a snapshot of the internal state of the first frame and displaying the cached snapshot before it actually loads.
    So...Chris (or other Adobe representative), is Flash Player supposed to be rendering the display before any code executes it runs the main class?

    Not that I'm aware of.  If this is something that just started with 11.8, then we could be running into some sort of bug injection.  Could you please open a new bug report on this over at bugbase.adobe.com?  When adding the bug, please include sample code, application or URL so we can quickly test this out internally.  If you'd like to keep this private, feel free to email the attachment to me directly ([email protected]). 
    Once added, please post back with the bug number and we'll investigate from there.

  • The Ipod I have been using for years no longer will hold a charge. My wife doesn't use hers so I would like to use it as my main ipod now. How do I get it to sync my play lists?

    The Ipod I have been using for years no longer will hold a charge. My wife doesn't use hers so I would like to use it as my main ipod now. How do I get it to sync my play lists?

    Hi BFW29,
    Thanks for visiting Apple Support Communities.
    You can use these steps in this article to set up syncing with your computer and the new iPod:
    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad
    http://support.apple.com/kb/PH12313
    Regards,
    Jeremy

  • I am using Endorange as my main mail, but every time i wannt to send open pdf docement as e-mail my computer comes up with other mail softwere called mail, how do I chance that?

    I am using Endorange as my main mail, but every time i wannt to send open pdf docement as e-mail my computer comes up with other mail softwere called mail, how do I chance that?

    I am using Endorange as my main mail, but every time i wannt to send open pdf docement as e-mail my computer comes up with other mail softwere called mail, how do I chance that?

  • Use BADI to enhance main screen of T-CODE XK02

    Hi everybody!
    I want use badi to enhance main screen of XK02. (add button!)
    I already found method of BADI.
    But i make out!
    I don't know how to using that method.
    Please help me !
    Thanks in Advance !

    Hi,
    Try this..
    Re: SE19 (BAdI Builder) Help for Vendor Master Screen Enhancement

  • If I download google chrome can i still use safari as my main web browser

    If I download Google Chrome can I still use safari as my main web browser?

    Yes.
    Go to the Safari menu bar (top of your screen). Click Safari / Preferences then select the General tab.
    Select Safari from the pop up menu where you see:  Default web browser

  • The hard drive in my iMac is on its way out. I have an EHD (2TB), can i use this as my main (only) drive?

    The hard drive in my iMac is on its way out. I have an EHD (2TB), can i use this as my main (only) drive? ie unmount the 'C' drive and use the external hard drive as 'Macintosh HD'?

    If the EHD was, originally, formatted as an Mac OS extended (journaled) format with GUID partition scheme, then you can designate this drive as the startup drive in OS X preferences panel.

  • Can I use Safari as my main web browser and Firefox when Safari isn't supported?

    Can I use Safari as my main web browser and Firefox when Safari isn't supported?

    www.apple.com/support/safari
    Also use the User Agent and see if that works on those sitess.
    Safari keeps a lot of web history and cache on disk and it tends to be RAM hungry (even FF has gotten a big larger on RAM footprint)
    There are other browsers and sometimes Opea is a good choice or there is OmniWeb which I still after 10 yrs? still favor.

  • Page break not applying when using sub report inside main report

    I have a main report inside which there is subreport (using SQL Server 2012). I placed some page breaks inside subreport but they were not working. I read on technet forums that this is a a known issue with SSRS. 
    One solution I found is to put a table inside main report, then in first row add a rectangle and set its property "Add a page break after" and then add subreport after this rectangle in that table in main report. I did that and now in some cases
    it does show sub report on a separate page but sometimes it shows subreport on same page.
    Could it be because in some case sub report has no or less data (hence it cannot cover whole page) and in that case it will always show on one page? How can I show empty subreport on a separate page?

    I fixed it by clicking both "Add a page break before" and "Add a page break after" in rectangle.

  • How to use progress bar for Main and Subsequences in teststand

    HI,
    I have one main sequence in that I am calling different subsequences (Containing many steps and for loop).
    I am trying to use progress bar for this sequence, but my requirement is progressbar is able to show the progress of all the steps containing in Main and subsequences.
    I have developed sequence in that I am able to show the progress for only Main sequence steps not for subsequences steps.
    Is it possible? If yes please let me know the suggestions.
    Thank You

    Hi Santosh
    Here you are
    Greetings
    Juergen
    never Double Click on Submit
    Message Edited by j_dodek on 08-05-2008 08:05 AM
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=
    Attachments:
    Progress_ts351.seq ‏52 KB

  • Using external display as main display-how?

    My subject line says it all. I want to use an external LCD display as my main display while keeping my MacBook Pro closed w/o powering down to sleep. I know this can be done because I've seen posts where other users do it, but I've never learned how it's done. Please let me know what needs to be done in order to use an external display as the main display with the MacBook Pro closed and still running. Thanks so much!
    Stoneman

    I know you can do it, but do you really want to do it... the heat from the lack of ventilation will ruin the macbook's display... or so I'm told.

  • Use apple tv as MAIN storage for music

    I want to use the apple tv to store all my mp3's but i don't want the mp3 files left on my macbook (main computer). I tried to add some files by syncing with apple tv after i had erased some off my macbook and it erased them off my apple tv as well. How do I get around this?

    You don't, really. AppleTV was never intended to be a permanent storage solution for your media, as has been discussed at length in these forums.
    If you really insist on doing this I suggest you get a large external drive, back up all your music, sync it to AppleTV then never sync again because anything that is not in your iTunes library will be removed from AppleTV.

  • Can we use shared variable in main report's crosstab

    Post Author: sangi
    CA Forum: General
    Hi,
    I have a main report with subreport (in Group footer), crosstab (in Group header).
    For cross tab calculation, I need a value from subreport to be passed to main report's crosstab.
    I could pass the value using shared variable.. but since the crosstab is in group header , I am not able to get the values .. .it is all 0....
    Please help me

    Post Author: wapper
    CA Forum: General
    To my best knowledge, what you ask for is impossible. The subreport in group footer is going to be evaluated during the last pass, so you are too late to get values into the group header. I could suggest creating a copy of your subreport and placing it (possibly hidden) into the group header just to get the values you need... But this would be the last measure if you really can't do anything else to achieve same goal. Wapper

Maybe you are looking for

  • Is it possible to extend the title of a "DATE" column?

    Hi I have made a table; SQL> SELECT * FROM BookCopy; BCID BTID DATEACQUI DATEDESTR 120 9 09-FEB-06 But the title is meant to say "DATEACQUIRED" but it only says "DATEACQUI" Does anyone know if it is possible to extend the title without using VARCHAR,

  • Labels in graphics GFW

    Hello to all. I'm trying to use labels in graphics columns but the text that I want don´t appear in output collumns. For example, if I execute the standard program GFW_PROG_POINT_WITH_LABEL the label for the second collumn is "40", but the code have

  • Plants abroad: Customizing for stock transfer between plants, EC Sales list

    Hello, Please advice how the customizing for tax codes (output and input tax) should be done in order to get the SJ documents (stock transfer proformas) listed correctly in EC Sales list. Now the SJ documents are listed correctly in VAT report (S_ALR

  • Data Modeler Difference script

    I don't find in Data Modeler function to alter existing object in database. For example i have table in database, which contains two columns (ID, NAME). I add third column ADDRESS in project in Data Modeler, how can i add to database using Data Model

  • 85 watts not enough?

    I recently purchased an early 2011 15" MacBook Pro. I am finding that when I work it hard (mostly using and rendering video from Motion), my battery actually drains while plugged in. Like just now my battery we fully charged 100% and I let Motion ren