Playing a frame label in a parent

I was just getting used to actionscript 2 now 3 comes
along...
I have this segment of code:
this.parent.videoOne.gotoAndPlay("playing")
it doesn't work in AS3, in the parent I have a movie clip
instance called "viedoOne" with a frame labeled "playing". Anything
I do that doesn't involve movie clip instance names gets the job
done. But what else do I do to make this work when instances are
involved? Thanks

If you're lucky and things haven't moved around much when you
return, the posting right after this one in the forum, titled
"Target Path", may shed some light on things.

Similar Messages

  • GoToAndStop or Play on Frame Label with Video doesn't work?

    I have a video in a frame that corresponds with the label "eight".  i have a button on the timeline with the following code.  i've tried it both gotoAndStop and gotoAndPlay and it doesn't work.  thanks in advance for your suggestions.
    on (press) {
    gotoAndStop(eight);

    use:
    on (press) {
    gotoAndStop("eight");

  • Frame Labels

    Hi,
    I am trying to link btns to movies (or frames) which lie
    outside the movie in which said btn exists.
    So Movie X contains Btn C. Btn C must link to frame 23 (ex)
    on the main timeline, not inside itself (movie X)
    So I have tried to do Frame Labels...
    I titled the appropriate frame label (Movie Y)
    I then on Btn C types AS... on release go to and play FRAME
    LABEL, Movie Y, frame 1.
    I would have thought this would work, but it didn't. Am I
    missing something?
    Am I on the right track or completely off base?
    Thanks
    Ren

    Thanks
    I can work with that,
    I think my script was simply off as I wasn't saying anything
    about the "root".
    Going on this, if I were say 3 movies with in a movie, for
    lack of technical terms, 3 movies in (the prior example, I am one
    or two in) in my action script can I determine which level I go
    down or up to?
    Say can I go 3 levels in? So I skip mutiple timelines
    essentially, if yah feel me?
    If I can, would my script simply adress the one layer?
    What I am trying to say is, if there is a
    root(main timeline)
    parent (main timeline too, not sure)
    but then is there a way to go to movie X which is with in
    Movie Y, which is with in Movie Z?
    My logic tells me you can, what would be the script?

  • Frame Labels Effect Loading Time

    Hi There,
    I just began using frame labels vs frame numbers to tell the
    playhead where to go. However, when I test the site to see how it
    is, or publish it, it is taking 10-15-20 minutes to load.
    : blink.
    Anyone have any insight? The movie overall will have many
    frames, but has none, only a few hundred active currently, but no
    large files (pics,videos etc.) the file size of the .swf is only
    4kb!!!!
    WTF?!
    Anyone with insight please let me know.

    RenMan3Grand,
    > I can post it for you. PLease just shoot me your email,
    > you know these adobe forum surfer types, they'll steal
    > anything.
    If I post my email, I'll get even more questions to my
    personal inbox
    that should be posted to the forums. ;) Head to my website,
    quip.net, and
    you'll find a contact page.
    > the reason I went to frame labels, was to [...] save me
    > time in any adjustments
    Absolutely! Frame labels are definitely the better way to
    go.
    > if I get rid of frame lables, can I use frame numbers
    when
    > leaving a movie for it's parent timeline?
    You can reference the frames of any timeline (that is, any
    movie clip)
    by number or by label name. Even the main timeline is a movie
    clip, so your
    best bet is to check out the Language Reference (Help docs)
    for the version
    of ActionScript you're using. Everything in ActionScript can
    be described
    as something called an "object," and objects are defined by
    something called
    "classes." Think of a class as the recipe, or blueprint, or
    owner's manual,
    that tells you what the object in question does. If you're
    dealing with a
    movie clip (including the main timeline), look up the
    MovieClip class. If
    you're dealing with text fields, look up the TextField class.
    If you're
    dealing with sound, look up the Sound class, and so on.
    Generally, you'll see three categories: a) properties, which
    are
    characteristics of the object, such as width and height,
    number of frames,
    etc.; b) methods, which are things the object can do, such as
    play(),
    stop(), gotoAndPlay(), and so on; and c) events, which are
    things the object
    can react to, such as a mouse click, the end of an audio
    file, new text
    entered into a text field, and the like.
    What you're talking about is the MovieClip.gotoAndPlay() or
    gotoAndStop() methods, which accept either a frame number or
    a frame label.
    You can invoke any of the MovieClip class methods on any
    valid movie clip
    reference. That reference my be implied, simply because
    you're *in* a
    timeline keyframe, and the code simply says, for example,
    stop(). In that
    case, the movie clip reference is understood as, simply, the
    movie clip in
    which the code appears. That reference might, however, be
    specified with a
    prefix, such as a movie clip symbol's instance name:
    someClip.stop(). Or a
    special keyword, like "this": this.stop(). Or the
    MovieClip._parent
    property (.parent in AS3): this._parent.stop().
    David Stiller
    Co-author, Foundation Flash CS4 for Designers
    http://tinyurl.com/dpsFoundationFlashCS4
    "Luck is the residue of good design."
    >
    > I would imagine so, but I do not know the code.
    >

  • Creating new buttons on different frame labels

    can someone tell me if im doing something wrong or assigning
    the as to the wrong frame?
    first off i have all my buttons on frame 2. im creating a
    real estate site and i have to have a couple links like HOME ABOUT
    BUYING SELLING CONTACT, the thing though is that in the BUYING and
    SELLING frames i want to add more sections and links but only on
    these 2 other parts of my site. when i code it and add new buttons
    to these sections though my movie plays over and over and over non
    stop. heres my coding...
    FRAME 1 preloader
    Frame 2 has a frame label of home and all the buttons on a
    diff layer, and AS3 on a different layer
    Frame 3 has a frame label for about section
    Frame 4 is my contact for example
    so if i create a new button in the about frame label and just
    add the code to the working as3 code on frame 2 my movie just plays
    over and over and over again, and all i want it do do is act like
    the other buttons and go to a different frame label down in the
    time line. the only way i get it to work is if i have ALL my
    buttons on frame 2.
    frame 1
    my preloader
    frame2
    home_btn.addEventListener(MouseEvent.CLICK, onHome)
    function onHome(event.MouseEvent):void
    gotoAndStop("home");
    about_btn.addEventListener(MouseEvent.CLICK, onAbout)
    function onAbout(event.MouseEvent):void
    gotoAndStop("about");
    etc....
    etc...
    i enter my btn code just like this and the buttons on frame 2
    work but any new buttons i try and creat and put into different
    frames othere then frame label "home" aka frame 2 wont work

    correct.
    there are lots of ways around it. but they all require the
    object to exist when the code executes.
    with as3 it's particularly easy to create objects, code for
    them and then add them to the display list later when
    needed.

  • Navigating to Frame Label in mc from main timeline

    Lets say that in my main timeline, I have a number of frame
    labels. On stage I have a movie clip (let's call it bg_mc) which
    contains a tweened animation that has been looping repeatedly (so
    it has its own timeline with its own frame labels).
    I would like this to happen:
    - On the main timeline, the playhead enters a specific frame
    called "newBackground."
    - When that happens, I want the playhead in bg_mc to jump to
    the first frame in its timeline, "beginLoop."
    How do I accomplish this?
    Thanks so much for your help!
    David

    Now, this brings on another question... that is, what if the
    opposite is true?
    For instance:
    The main timeline plays to a stop(); at frame 10.
    At frame 10, a movie clip (countdown_mc) which contains a
    countdown timer, begins.
    When the timer reaches 00:00, I want to trigger the main
    timeline to continue and play the next frame (11).
    Thanks again for the great advice,
    David

  • Go to and Play won't play correct frame

    I'm sure there's a simple answer to this one:
    Scene 1: currently has 50 frames, will become my preloader
    Scene 2: Working on now... Have a button instance that has a
    Go to and Play command, which should link to the same scene, frame
    71 (labeled "subhomeAbout"), to pull up the submenu
    I've used the action:
    on (rollOver) {
    gotoAndPlay("subhomeAbout");

    Since your button is its own (pre-compiled?) movie clip
    within your movie, what you're requesting with the code
    'gotoAndPlay("subhomeAbout");' is for the
    button's movie clip to go to the frame within itself labeled
    "subhomeAbout" where, I'm assuming, it does not exist. You have to
    specify which movie clip should go to the frame labeled
    "subhomeAbout," which, in your case, will be referenced as _level0,
    _parent, or _root from the button. With the information you
    provided, an example of what you probably need is:
    on (rollOver) {
    _parent.gotoAndPlay("subhomeAbout");
    }

  • Frame Label not found

    I have an FLA with two scenes. The first scene is an
    opening...at the end it goes to the next scene called Main.
    On Main I have a series of buttons....that click to different
    frame labels in Main.
    When I play JUST the scene it works fine...but when it goes
    from the opening into Main...I get this error on all the buttons:
    ArgumentError: Error #2109: Frame label Board not found in
    scene Main.
    at flash.display::MovieClip/gotoAndPlay()
    at ASIS4_fla::MainTimeline/onMouseClickBoard()
    There is a label called Board...and it works with that scene
    alone...any idea why it doesn't work when coming off the previous
    scene.
    Thank you in advance...

    this is on the first frame of the scene...when I do test
    Scene...it works great. But Test Movie I get that error
    btn_boardcert.addEventListener(MouseEvent.CLICK,
    onMouseClickBoard);
    function onMouseClickBoard(event:MouseEvent):void
    gotoAndPlay("Board");

  • RemoveChild at a specific frame or frame label?

    How can I remove a child when it reaches a certain frame or frame label?

    You need some way of detecting which frame the child is on. 
    There are probably a few ways of determining that a child is on a certain frame.  One would be to have the child dispatch an event when it reaches that certain frame and have a listener assigned for that in the parent timeline. 
    Another way would be to constantly monitor the child to see what its currentFrame or currentLabel property is, although a currentLabel does not necessarily equate to a certain frame.

  • Frame Label Variable

    Is there any way that I can address a frame label using a variable? When I don't have a label in quotes, isn't it expecting a number?
    sym.stop("labelname");
    What I want to do is have labels as 1-10 so I can have a back and next button that simply add or subtract 1 from the variable that goes to the right frame label name.

    I downloaded the Go To Label sample and it worked great until I tried to modify it to work in my project. I have a series of animations that I would like to have play from start to finish AND have  previous/next buttons that jump to labels. The Go To Label code seems to stop working predictably when the main timeline is playing instead of being stopped as in the sample. I assume it's because it's not sure exactly where the playhead is when the buttons are clicked.
    I've attached a link to a modified version of the Go To Label sample that shows what I'm trying to do. I changed all the "stops" to "plays" so that it plays continuously. I notice that the buttons work correctly at times but not always. For instance, if you let it play on its own without clicking any of the buttons until it reaches "Stop 3" and then click the prev button it will go all the way back to "Stop 1" instead of "Stop 2". It does the same when applied to my project.
    Any ideas on what's happening and how I can modify it to accomplish what I'm trying to do?
    Thanks!
    http://www.yousendit.com/download/UVJpNWNucVhRYStFQk1UQw

  • Wanting to navigate with frame labels...

    Hello,
    I'm not too sure if this is difficult to most people or not,
    but I have not been able to find a working solution. Here is the
    situation:
    I have a parent SWF file ("index.swf") that loads external
    SWF files. In a couple of my external SWF files, I want to have a
    few different frames that all have unique text content. I am
    wanting to gotoAndStop on a frame using buttons. However, the frame
    I want to go to is in Scene 1 of the external SWF file, and the
    button lies in a movie clip within Scene 1. I have tried the
    following code:
    b1.onRelease = function() {
    _root.gotoAndStop(2);
    It seems to work fine when I test that SWF file, but when I
    test it within "index.swf" (parent) it goes to frame 2 of
    "index.swf" instead of the external SWF file that it is supposed
    to. I have also used the following code:
    b1.onRelease = function() {
    gotoAndStop("frameLabel");
    This does not work at all. The frame label name has been set
    on the top layer of 4 layers (including the actions layer). I was
    under the impression that if I had a unique frame label name on a
    particular frame, that function would work.
    To sum it all up, I'm am wanting the externally loaded SWF
    file to basically switch between its own frames based on buttons
    clicked within the external SWF file, without it effecting the
    parent movie ("index.swf"). Any help would be awesome! Thanks in
    advance!
    Elijah

    when you load your external swf files you have to load them
    into things that have instance names. by addressing the movies by
    their instance name you can make the code work on them.
    your loader code might look like:
    my_mcl.loadClip("
    http://www.macromedia.com/software/drk/images/box_drk5.jpg",
    clip1_mc);
    in which case your code to control that clip would look like:
    clip1_mc.gotoAndPlay("myFrameLabel");
    or, if your button was on a timeline that was a child of the
    timeline that contained clip1_mc
    _parent.clip1_mc.gotoAndPlay("myFrameLabel");
    or if you didnt know how many levels down your button was:
    _root.clip1_mc.gotoAndPlay("myFrameLabel");
    using root will, however, stop working if you ever load this
    movie into another movie
    luck
    jon
    ps i was too slow it seems :(

  • Using Frame Labels

    I want to use buttons to move the play head from one frame
    label to the next on the main timeline.
    I get the following error:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at Intro_fla::MainTimeline/Intro_fla::frame6()
    What am I leaving out. It was so simple in AS2.
    there are three buttons with instnce names: InArticleBnt,
    InVideoBnt, backBnt
    there are three frame labels: intro, video, article
    // The buttons listeners
    InArticleBnt.addEventListener(MouseEvent.CLICK, article);
    InVideoBnt.addEventListener(MouseEvent.CLICK, video);
    backBnt.addEventListener(MouseEvent.CLICK, intro);
    //the button with the labels I want them to go to.
    function article(event:MouseEvent):void {
    this.gotoAndPlay("article");
    function video(event:MouseEvent):void {
    this.gotoAndPlay("video");
    function intro(event:MouseEvent):void {
    this.gotoAndPlay("intro");

    http://207.8.191.165/development/Intro.fla
    I need to declare the object for the button to target but I
    have no idea how to do that. I took a guess. But there is still an
    error.
    I have decided to make each section a movieClip and load them
    into the one frame using the buttons. Instead of using frame labels
    on the timeline. I do not have any more time to mess with something
    this incredible simple. The problem appears to be trying to do
    something that worked fine in AS2 code needs to be rethought and
    planed differently in AS3. For goodness sake asking the playhead to
    respond to a mouseEvent and go to a frame label on same time line
    as the button calling the event should not require writing a
    dissertation in code.

  • If / Then for Buttons to go to Frame Labels?

    Hello.
    I'm asking for some hand-holding on this one. Hopefully I can explain this well enough.
    I have a complex button that when rolled over the playhead goes to Frame Label textOut.
    When a roll out is executed, the playhead is to go the Frame Label textIn.
    Easy enough.
    mcBtnHome1.addEventListener(MouseEvent.ROLL_OVER, dropText);
    function dropText (evt:MouseEvent): void
      mcBtnHome1.gotoAndPlay("textOut");
    mcBtnHome1.addEventListener(MouseEvent.ROLL_OUT, raiseText);
    function raiseText (evt:MouseEvent): void
       mcBtnHome1.gotoAndStop("textIn");
    mcBtnHome1.addEventListener(MouseEvent.CLICK, landHome);
    function landHome (evt:MouseEvent): void
      mcBtnHome1.gotoAndStop("textStay");
    The problem occurs when I plug in the third event, the click. I click the button, and the playhead moves to Frame Label textStay, as it's supposed to, but once I roll out/ off of the button, the roll out action is again executed. Once I click on the button, no more interaction is supposed to be possible.
    This happens despite my having a stop(); action at the textStay frame.
    I'm guessing I need an if / then of if / else statements, with some true / false declarations,  but I've no clue as to what "if's" I should be checking for.

    In your click function you could remove the ROLL_OUT listener, and then reassign it when you get to your textStay frame.
    (Edit - actually, you probably want to assign that ROLL_OUT listener in the ROLL_OVER function at all times)
    mcBtnHome1.addEventListener(MouseEvent.ROLL_OVER, dropText);
    function dropText (evt:MouseEvent): void {
         mcBtnHome1.addEventListener(MouseEvent.ROLL_OUT, raiseText);
         mcBtnHome1.gotoAndPlay("textOut");
    function raiseText (evt:MouseEvent): void {
         mcBtnHome1.gotoAndStop("textIn");
    mcBtnHome1.addEventListener(MouseEvent.CLICK, landHome);
    function landHome (evt:MouseEvent): void {
         mcBtnHome1.removeEventListener(MouseEvent.ROLL_OUT, raiseText);
         mcBtnHome1.gotoAndStop("textStay");

  • Cs3 bug - global objects and frame labels

    Just found a bug that took me an hour to figure out.
    A strange problem occurred when I had a global object and a
    frame label named the same.
    Example:
    _global.discussion = new Object();
    //lots of functions here
    I was directing the timeline of a movieClip to the frame
    label "discussion". On this frame there were a number of actions
    involving the discussion object. However, flash was treating the
    object as if it didn't exist. All variables / functions residing in
    this object were completely gone. Has anyone seen this problem. If
    not, watch out for it.
    james

    that's coder bug, not a flash bug.

  • Wacky problem with Frame label

    I have a menu set up with three items. Menu item one has
    "gotoAndPlay("video"), menu item two has
    "gotoAndPlay("somethinghere") etc...
    My menu items two and three always jump to the correct frame
    label. I am having a problem with the first menu item.
    When you click through the menu items slowly, content loads
    in correctly, but it seems that if you click different menu items
    too fast, the first menu item jumps back the main timeline to frame
    1. My menu is inside of a movieclip. This is where my frame labels
    are.
    Has anyone ever seen an issue like this before or know how to
    prevent this wacky behavior?

    use the goto methods, not functions:
    _root.gotoAndPlay("video");

Maybe you are looking for

  • Opening/Closing System

    Hi Guys, In some cases, we open the SAP system to do some configuration for certain tables. We have to request the Basis team to open the SAP system..What exactly do we mean by this opening of the system? Are we allowing the customization of certain

  • Installation of Project Server 2010 over 2 App, 2 WFE, NLB Farm

    We are installing Project Server 2010 in a 6-server farm with 2 App, 2 WFE, 2 DB (Cluster) architecture on Win 2012 R2 Serrvers. And will be using hardware NLB. Though I am aware of setting up MS Project Server in 3-tier architecture using NLB, I am

  • Flash Builder update to support iPad 3 retina display

    I've been reading that one has to run a command line on a Mac to get an app to run correctly on the new retina display iPad (i.e. iPad 3). http://forums.adobe.com/message/4272224 Does anyone know when an update from Adobe will be issued to fix this i

  • Issues while generating

    Hello, While generating the BRFplus function (using programFDT_GENERATE_MANY_FUNCTIONS) an error is issue We're using Action Call Funtion Module ( Customer  Specific). This is how we're mapping table required by the FM . All the 3 tables used for map

  • Map Module Problem

    I have just used LR4 for the first time to geotag my photos, after using GeoSetter previously. Although the process was not as smooth as Geosetter, we'll get to that later. The problem I am having right now is that the city, state, sublocation, etc.