Help on Flash Navigation

Could anyone help me out with this?
I have a button that is buryed in an "movie" object and I cannot get it to go to a labeled frame on the main movie timeline.  I have used the code below in the past, but its not working.
Anyone?
I have named the instance of the button "CLbtn"
this.CLbtn.addEventListener(MouseEvent.CLICK,CLbtnClick);
function CLbtnClick(event:MouseEvent):void {
(parent as MovieClip).gotoAndPlay("top");

Hmmm, I'm not sure what an NE_24 object is exactly.
Can you access the stage directly? Instead of using "(parent as MovieClip)" try just using "stage" in its place. So it would look like:
stage.gotoAndPlay("top");
If that doesn't work, then maybe you can reach the stage from the NE_24 by accessing its parent.
If you go that route let me know what these traces return, so we can see if you can find the stage that way:
trace(parent.parent);
trace(parent.parent.parent);
I've had instances where I've needed to do this to reach back to the stage (when the stage was not directly accessible)
[EDIT]
Just so I am clear in understanding what you want. You are trying to play the main timeline, correct? Or are you trying to play the timeline of a movieclip that is on the stage?
If you're trying to play the timeline of a movieclip on the stage then we'll be looking for a "object MovieClip" instead of "object Stage" in the parent structure.
~Plystire
Message was edited by: Plystire

Similar Messages

  • Need help for flash builder

    i need help for flash builder 4 and papervison 3d. I need to create a slider with it ranges of value from 10 to 50 to adjust the camera values for the camera.fov and also need to create it for the yaw of the object from 0 to 360. I try to look for any slider event and classes in this program but cant find any, btw, i need to use the AS only project file.
    here is my codes:
    can you please tell me how i should modify the codes?
    package
        import flash.display.BitmapData;
        import flash.display.Sprite;
        import flash.events.Event;
        import org.papervision3d.materials.BitmapFileMaterial;
        import org.papervision3d.materials.BitmapMaterial;
        import org.papervision3d.objects.primitives.Sphere;
        import org.papervision3d.view.BasicView;
        [SWF (width="800", height="600", backgroundColor="0x000000",frameRate="30")]
        public class EarthBitmap extends BasicView
            private var sphere:Sphere;
            public function EarthBitmap()
                super(800 , 600);
                var earthmaterial:BitmapFileMaterial = new BitmapFileMaterial("../assets/Earth.jpg");
                sphere = new Sphere(earthmaterial,100,20,18);
                camera.fov = 25;
                scene.addChild(sphere);
                addEventListener(Event.ENTER_FRAME,rotateSphere);
            public function rotateSphere(evt:Event):void
                sphere.yaw(0.2);
                singleRender();

    Turn the click handler into a full on separate function. Then store all the views in an array and use Math.rand() to randomly choose one.
    Something like this:
    <fx:Script>
         <![CDATA[
              var questionsArray:Array = {question2,question3,question5,questionRed,questionGeography};
              function buttonClickHandler(event:MouseEvent){
                   var randomProblem:int = Math.floor(Math.random()*(questionsArray.length));     //generates a random integer between 0 and the total number of questions in the array (arrays are 0-based)
                   navigator.pushView(questionsArray[randomProblem]);
         ]]>
    </fx:Script>
    <s:Button id="randomProblemButton" label="Next Problem" click="buttonClickHandler(event)" />
    Haven't tested that, but something along that line should work

  • Problems with Flash Navigation

    I'm trying to edit a horizontal flash navigation that I found
    on the internet but i'm having some issues. The original file can
    be found
    here.
    The flash pulls menu information from an XML file. To add a
    menu block all I should have to do is add the text to the flash
    file and then add a block of code to the XML file. The issue I'm
    having is that when I attempt to add a 9th main menu item, its
    submenu doesn't display correctly.
    I've been wracking my brain on this one for days and can't
    figure it out. Any help anyone could offer would be greatly
    appreciated.

    JodiBurgess wrote:
    > I have a frameset, the navigation frame uses flash for
    the navigation - basic
    > getURL code with target frame "MAIN" (which is the name
    of the frame I want to
    > target). This worked fine in IE6, but when I upgraded to
    IE7 clicking on the
    > navigation caused it to fire off a new window (as if I
    had given it a target
    > "_blank").
    Try another name, words like Main or mainFrame are reserved
    and always caused
    problems. Give the frame some unique name Jodi_frame etc...
    Also, don't forget to test it on server, not locally.
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Flash navigation won't always load page

    A web site I'm working on working uses Flash for the
    navigation. There's a primary vertical navigation bar and all links
    work. There are two vertical menu bars that appear separately when
    certain buttons are rolled over on the primary bar. One of the
    secondary bars works fine. The second one however is the one
    causing me grief...it's a movie clip. When I click on a button, it
    opens like an accordion revealing additional links. When any of the
    links are clicked, a new web page is supposed to load. Sometimes
    the appropriate page loads, sometimes not.
    I've used getURL throughout and it works everywhere but in
    that navigation bar.
    Every html page has a different flash file. Sometimes when
    the html page doesn't load the appropriate page, the proper flash
    navigation appears though.
    I've gone over the code for every button on every page and
    searched forums, but still can't find what I've done wrong. Any
    help would be appreciated.

    Hi
    I am having the same problem. I was working on word and then it crashed. I then switched it off and now all I get is the apple and the wheel going round. I bought my mac in 2011.
    Anyone know hoe to fix it
    Dawn

  • AS2 XML Flash Navigation

    Hello All,
    I have been creating a dynamic Flash Navigation based on a tutorial I found online.
    I'm having issues aligning the MovieClip house all the array names from My XML file.
    I'm using:
    var yPosition:Number = 118;
    var xPosition:Number = 250;
    to align the Movie Clip. For some reason I can adjust the yPosition but I cant get the xPosition to move my MovieClip at all. >:(
    Any helpful hints would be greatly appreciated.
    Cheers-
    Graeme

    Heres the code I'm using:
    //Store Button Position
    var yPosition:Number = 118;
    var xPosition:Number = 250;
    //Declare New XML Object
    var myXML:XML = new XML();
    //Set Flash to ignore the XML file's white space
    myXML.ignoreWhite = true;
    //Declare new Array to store the links from the XML file
    var links:Array = new Array();
    //Declare new Array to store the names from the XML file
    var names:Array = new Array();
    //Set XML onLoad function
    myXML.onLoad = function(){
        //Set varible to store the XML childNodes
        //This allows you to get the number of buttons in the XML file.
        //You'll use this tell flash how many times to loop the for loop.
        var linkname:Array = this.firstChild.childNodes;
        //Set a for loop
        for(i=0;i<linkname.length;i++){
            //Push the button name into the names Array
            names.push(linkname[i].attributes.NAME);
            //Push the button link into the links Array
            links.push(linkname[i].attributes.LINK);
            //Attach the button Movie Clip from the libray give it an instance name and place it on the next highest level
            _root.attachMovie("button","btn"+i,_root.getNextHighestDepth());
            //Set the y position of the buttons
            _root["btn"+i]._y = yPosition;
            //Increace the varible yPosition 15 pixel each time the loop runs to place each button under each other
            yPosition = yPosition+25;
            //Place the button name from names Array into the blackTxt text box
            _root["btn"+(i)].blackTxt.Txt.text = (names[i]);
            //Place the button name from names Array into the whiteTxt text box
            _root["btn"+(i)].whiteTxt.Txt.text = (names[i]);
            //Assign the btnOver function to the button onRollOver state.
            _root["btn"+(i)].onRollOver = btnOver;
            //Assign the btnOut function to the button onRollOut state.
            _root["btn"+(i)].onRollOut = btnOut;
            //Assign the btnRelease function to the button onRelease state.
            _root["btn"+(i)].onRelease = btnRelease;
    //Load the XML file
    myXML.load("links.xml");
    //Button Over function
    function btnOver(){
        //This referse to the current button the mouse is over
        //Go To And Stop frame 2 of the current button the mouse is over
        this.gotoAndStop(2);
    //Button Out function
    function btnOut(){
        //Go To And Stop frame 3 of the current button the mouse rolls out from
        this.gotoAndStop(3);
    //Button Release function
    function btnRelease(){
        //Set a varible named currentBtn equal to the instance name of the current button the mouse clicked on
        var currentBtn:String = this._name;
        //Set a varible named currentIndex equal to the varible currentBtn and the characters between 3rd letter and 5th of that string.
        //This will return a number between 0 and the total number of buttons
        var currentIndex:String = currentBtn.substring(3,5);
        //Get the URL from the links Array
        //Use the currentIndex varible as the index number
        getURL(links[currentIndex]);

  • Flash navigation and html files

    I have a Flash navigation banner. The navigation banner
    contains seven buttons. Each button when clicked goes to different
    frames in the Flash movie. So, the first interaction is to make the
    movie to go to a particular frame, which I was able to do easily.
    On those frames, I also would like to load or link to HTML page.
    Like frame 10 will be page1.htm, frame 18 will be page2.htm so on
    and so forth. How do I link .htm files and the single navigation
    bar where each button would go to a specific frame and play the
    frame? I don’t want to use frames in my html docs. Is there
    any other solution? Please help!!
    Thank you in advance.
    FA

    Thank you for reply. I appreciate it. So, if I understand
    correctly:
    I would embed the navbar.swf in all my html files. Then Each
    button would go to each html pages (Like page1.htm page2.htm
    etc...) Then I use your code in my html file right? Like each html
    file will have the following code:
    <param name="movie" value="nav.swf?frame=page2">
    Is that how it works. Sorry for not being able to your
    answer.
    Thank you very much again

  • Flash navigation and HTML forms

    Wondering if any one can help. Whenever I use an html form on
    an html page, my flash navigation will not show up. The area where
    it should be is blank and my browser status bar says that there are
    two items remaining (my flash navs). The browser stays like this
    indefinately, not completely loading the page.
    Any suggestions ?
    Thanks,
    Elise

    Thank you for reply. I appreciate it. So, if I understand
    correctly:
    I would embed the navbar.swf in all my html files. Then Each
    button would go to each html pages (Like page1.htm page2.htm
    etc...) Then I use your code in my html file right? Like each html
    file will have the following code:
    <param name="movie" value="nav.swf?frame=page2">
    Is that how it works. Sorry for not being able to your
    answer.
    Thank you very much again

  • How can i deinstall the rotten ADOBE HELP for Flash CS5 an install a new one (Mac OS X 10.6.8 )

    My Flah Help can't download newer Versions and Ressources. So i can't use it. And i have to. And i paied for it.
    So: How can i deinstall the rotten ADOBE HELP for Flash CS5 an install a new one (Mac OS X 10.6.8 )?

    Do you receive an error message when trying to use the help files?  What have you tried so far to resolve your difficulties?

  • Help in flash (MX 2004) - how to zoom in 'camera'

    Hi, first message here, just need some help in Flash MX 2004
    I've noticed in some flash movies that the animator has
    actually "zoomed in" on the symbols instead of just making the
    symbols bigger. I wanted to know if anyone knows how to do this.
    I am not an expert animator, so would appreciate any help if
    possible.

    exactly - the illusion is just that - scaling the objects
    larger will provide the illusion you are
    zooming - remember the opening sequence of the very 1st star
    wars movie (1977)? Those space ships
    just after the opening text were stationary - they simply
    moved the camera alongside them - when
    viewing the film the shaps (in our own minds) appear to move.
    Same concept with flash - scale
    object(s) on stage - most animators nest entire scenes in
    Graphic movie clips and then scale them to
    produce camera zooms.
    Chris Georgenes / mudbubble.com / keyframer.com / Adobe
    Community Expert
    C-Rock wrote:
    > they are actually zooming in by making the symbol
    larger. they probably just have done it in a skilled way to make
    you think that is what they did.

  • *HELP* Adobe Flash Player Has Stopped Working

    Problem signature:
      Problem Event Name:    APPCRASH
      Application Name:    install_flashplayer11x32_mssd_aih(1).exe
      Application Version:    3.3.3.0
      Application Timestamp:    5010882b
      Fault Module Name:    setueout.dll
      Fault Module Version:    3.0.2.0
      Fault Module Timestamp:    5058e043
      Exception Code:    c0000005
      Exception Offset:    0000780f
      OS Version:    6.1.7600.2.0.0.256.1
      Locale ID:    1033
      Additional Information 1:    d87f
      Additional Information 2:    d87f106aaddbb918f9435119535c31be
      Additional Information 3:    de48
      Additional Information 4:    de483c87c736ac9abe1e617853f81924
    Read our privacy statement online:
      http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
    If the online privacy statement is not available, please read our privacy statement offline:
      C:\Windows\system32\en-US\erofflps.txt
    COMPUTER SPECS:
    System Information
    Time of this report: 9/25/2012, 20:40:34
           Machine name: KYLE-PC
       Operating System: Windows 7 Ultimate 64-bit (6.1, Build 7600) (7600.win7_rtm.090713-1255)
               Language: English (Regional Setting: English)
    System Manufacturer: Gigabyte Technology Co., Ltd.
           System Model: Z68X-UD3H-B3
                   BIOS: Award Modular BIOS v6.00PG
              Processor: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz (8 CPUs), ~3.7GHz
                 Memory: 8192MB RAM
    Available OS Memory: 8110MB RAM
              Page File: 2745MB used, 13470MB available
            Windows Dir: C:\Windows
        DirectX Version: DirectX 11
    DX Setup Parameters: Not found
       User DPI Setting: Using System DPI
    System DPI Setting: 96 DPI (100 percent)
        DWM DPI Scaling: Disabled
         DxDiag Version: 6.01.7600.16385 32bit Unicode

    Thank you for the report.  Does this occur each time you try and run the installer?  Can you try the appropriate installer located here?
    http://helpx.adobe.com/content/help/en/flash-player/kb/installation-problems-flash-player- windows.html#main-pars_header

  • Help After flash player update on the 25 or the 27 flash cant find my webcam

    I have a windows 8.1 PC I tried 2 different web-cams this happened also on my windows tablet and laptop after the update if i go to website to test my web cam I give flash permission and it will work fine but if i right click and hit setting it shows no web-cam in the drop down menu or mic Ive reinstalled and tried everything please Help running flash 16.0.0.280

    Ok I will I never thought about trying a different browser till the other day cause it quite on my Windows tablet but was still working fine till finally failed on all my devices that's when I realized something was conflicting with the flash update I had updated my tablet manually so it must have updated automatically on my other devices anyway thnxs I'll do that

  • Need help Installing Flash player 10.3 for firefox. It stops at 50%

    So I have Windows Vista Basic Home, I tried updating my Flash version in firefox because it was out of date, but everytime it start downloading it , then I get the a message that says "Error " Appliation in use."  I uninstalled it and followed all the suggestions on the websites nothing is working. I even  uninstall google chrome thinking it was the problem but I'm still having that problem so I really don't know what to do because now the only place Flash player is installed seems to be Google chrome that I had to redoawload, but everywhere else tells me that I need to install it.

    RE-RE-RE REPITO, NO ENTIENDO NADA DE INGLES, PARA ESTE IDIOMA SOY COMPLETAMENTE NULA, POR FAVOR TODOS LOS MENSAJES, NOTAS, ECT., MANDEN EN ESPAÑOL.
    Date: Thu, 29 Sep 2011 15:13:29 -0600
    From: [email protected]
    To: [email protected]
    Subject: Need help Installing Flash player 10.3 for firefox. It stops at 50%
        Re: Need help Installing Flash player 10.3 for firefox. It stops at 50%
        created by Kpiebo in Installing Flash Player - View the full discussion
    I have been at it since yesterday and it's still not working.
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/3945878#3945878
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/3945878#3945878. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Installing Flash Player by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • I need help installing flash on windows 8

    I need help installing flash on windows 8

    Chris… No I was using the desktop version, I cannot stand the M version, guess it would be nice if I had  a touch screen..…when I finally got my computer to download the Acrobat Standard XI program, not sure how it worked, but I think it had something to do with Windows 8 not allowing itself to update all my apps and programs, even though my computer was set to automatically update any Windows/Microsoft updates…finally I got my Windows updates done, it downloaded like 36 files…and then I had to restart,(which also could have been playing a factor)…so finally got the program downloaded on Windows 8…but then I tried to run the new program and it says install serial #...so I assume that it was asking for the serial # for the Acrobat Standard XI…finally after googling the web, I found somebody that said try your older serial # from the previous program, and when I did this it finally works.. you would think with a brand new Windows computer I would have no problem installing Windows Updates…somebody needs to make a sticky about this, I am sure I am not the only one haiving this problem..
    Thanks,

  • Need help with flash player install

    I am having trouble installing Adobe Flash Player on my hp notebook. It keeps saying it can't initialize once it hits 50%. Any ideas?

    What is your operating system?  If Windows, download the offline installer from http://helpx.adobe.com/content/help/en/flash-player/kb/installation-problems-flash-player- windows.html#main-pars_header
    [topic moved to Flash Player forum]

  • I need help installing flash player on my Mac OS 10..I I tried to follow the directions with no luck

    I nee help installing Flash Player on my Mac OS 10. I tried to follow the directions, but had no luck,

    >About This Mac
    What SPECIFIC OS X build is it?
    Is your Mac Intel or PowerPC?

Maybe you are looking for

  • Macbook slow on YouTube

    I have a macbook. For the past few months video is deadly slow on youtube. Video works well on almost every other site. But youtube just won't work well. It loads but reloads and remains choppy. Sometimes even the audio distorts. But that is global o

  • RGB vs CMYK

    Photoshop is opening in RGB 8bit and changes all the colours of evderything I open to be brassy... how do I change the default back to CMYK?

  • Deletion of PO

    Hi experts, For a material there are 8 to 10 PR's and 10 PO's. I want delete the PR and PO in One time. Not doing by PR by PR. kindly advice regards arun

  • MIRO posted without NF Type - E1 Nota Fiscal Incoming

    Hello We have posted one MIRO document with assigning NF Type -E1 Nota Fiscal Incoming. How we can change the MIRO document and assign the same. Regards, Niti Narayan

  • Fan Part Numbers for Cisco 2801, 2821 and 2851 fans

    I have P/Ns for Cisco 2811 router fans as follows: ACS-2811-FAN-1/2= and ACS-2811-FAN-3= But I do not have part numbers for fans used in 2801, 2821 and 2851 routers. Does anyone have these prt numbers? It doesn't make sense to change the whole router