Moving the play head in the main timeline from a button in a movie clip

I have a movie clip that loads and when it is done playing it has a close button that unloads the movie clip... I want to add code to this button that moves the play head to frame 20 of my main timline using actionScript 3.0

Tried that but dose not work think its because I am loading the movie this way...
Play button "playFinal"
function lastQuestion(event:MouseEvent):void{
     var Info:final1 = new(final1);
     this.stage.addChild(Info);
     Info.x=511
     Info.y=340; }
So I tried using the Name "Info"
//example......    MovieClip(Info.root).gotoAndStop(20);
And I tried the name of the clip in the library "final1"
//example......    MovieClip(final1.root).gotoAndStop(20);
Is it because im loading it with actions script instead of having it on the timeline?

Similar Messages

  • Targeting main timeline from a button symbol

    I have been using Edge since it's inception. However I have not been using it over the last year as I have not had any contract work for HTML5 animation but I just got a contract to re create animations originally done in Flash. My Edge basics are pretty fresh but I have a hard time doing the following.
    I have a 2 state button up  down which was converted into a symbol with a mouseover to change the state. Now I need to have an onclick event play the main timeline which I cannot seem to grasp.
    Any help coding this?
    Thx
    RD

    Hi, RD-
    Try using sym.getParentSymbol() (if you're only one level down) or sym.getComposition().getStage() to get the main timeline, then call play().
    Hope that helps,
    -Elaine

  • Issue with Audition CC build 7.1.0.119 crashing on moving the play head back

    Hi, every time I edit a sound clip or and an effect and then move the play head back, the application crashes.
    Is anyone else having this issue?
    System I'm running:
    Windows 8.1
    Intel i7
    Nvidia 740 gt m.
    Laptop.
    Thank you.
    Edward.

    You are absolutely right. I had the same problem, when the scale was 125%, but after reduction to 100%, the problem disappeared.

  • Why is the Play head not snapping?

    In the latest update of FCPX I can't get the play head in the timeline to snap where it want it. Not sure what It's actually called, but what I mean is the orange line that follows where the cursor moves and scrubs the video/audio. I use to be able to click and have it hold then i could move a clip in/out point to where that orance line was. It doesn't work that way anymore.
    Now it will co into a clip once, but it won't let me reposition it.
    Is there a setting or is this a bug?
    -Mike

    The playhead behavior has changed. If you click on a clip to select it, the playhead will not move to that point. This is an unfortunate change in my view, but there it is. If you want to click on a clip and make the playhead move to the skimmer, hold the Option key.

  • How to use the jquery UI slider object in Edge to control the play head

    Edge seems to automatically load jquery {I think} because I see a lot of $.{...} code in the code file. I want to do something like ... add the jquery UI slider as a symbol into my assets library then place an instance of the slider on my stage. Then I can start coding event handlers that get the position of the slider and then reposition the play head to the trigger associated with the number returned from the slider. The slider seemed to be controlled in jquery and the play head control is in the Edge api.  they both seem to work with js functions ...  so I'm looking for a way to get them working together in the Edge code that I see for a stage.

    You could try to load jquery ui and then apply it to the symbol.
    There are serveral ways to load a script.
    Example 1 for draggable
    $.getScript("js/jquery-ui-1.9.1.custom.min.js", function() {
    var info = sym.$("info");
    info.draggable({ disabled: false });
    info.draggable({ snap: true });
    info.draggable({ axis: "x" });
    Example 2
    yepnope(
        nope:[
            'js/jquery-ui-1.9.1.custom.min.js',
        complete: init
    function init() {
        var mySymbol= sym.getSymbol("symbolName");
        // do something

  • Playback a little before the location of the play head.

    Well I edited something in Multi-cam.
    Now I want to go over each cut (using UP/DOWN keys) and hit space to see if the cut is good.
    the only trouble is that each time I press an up/down key to skip to next cut - I need to take the mouse and place the play-head a little bit before the cut to see if the transition between the two clips is good.
    My question is:
    Is there any possible key shortcut to play a little before the actual place Im standing with the play-head on the time line?
    Cheers

    Wow this forum is amazing!
    I never posted a question to a forum and got answered so fast.
    Thanks, you guys for the very helpful replays!
    I have a feeling that Im going to hang in this forum a lot!

  • Inserted a png PIP into my clip, can see it fine, can see it playing with the clip as expected when moving the play head manually, but cannot get it to play with the clip for preview, pleas help!

    I am sorry if my inquiry here seem dumb but I am a new iMovie user and cannot figure this out.  I inserted a png image into my video clip in the project as PIP, I can see it and move it and can also see it playing with the main clip if I move the play head manually, I can also see the PIP part only playing along with the undelying main clip if I use the Play button in the preview window when the PIP section is selected, however, for the life of me I cannot get it to play with the main clip all together for previewing the entire video via the video play button.  What happens is that the video plays normally and when the PIP section comes in, the video clip stop all motion during the duration of the PIP section and the PIP image itself is simply NOT showing.  Am I missing something really stupid here?  It seems as it the Picture On Picture is a separate clip that plays with the underlying main video clip if selected and played by itself but it is not part of the video clip and will not play with it.  What am I missing here, can anyone please help?
    Shony

    The easiest way to get up and running is to convert your MP3s to MP4s (obviously there won't be a video track). The following link links to a file that was an MP3 that I converted to an MP4 using QT Player Pro. When you go to export the files, make sure you click on "Options" and then check the box for "Enable Streaming" in the Streaming tab. It should stream flawlessly using QT Player. rtsp://rhsstreamit.rih.org/testmp4/Scorpion.mp4
    Make sure you place the media to be streamed in the proper folder. You should only get a "404" message if the physical file doesn't exist.
    Good luck!

  • Controlling a Movie Clip on the Main Timeline from a loaded SWF?

    Is it possible to control a MovieClip on the main timelne from another loaded clip?
    I see posts that control loaded clips, but most are all from the loader in the main timeline.  I have a moviclip on the main timeline that I want to make visible or invisible depending on what keyframe is playing in another loaded swf.
    If I try to call the movieClip from the loaded SWF I get "error #1119.  Access of possibly undefined property...." because it doesn't exist in the loaded SWF, just the main timeline. 
    The old AS2 way just used "_root".  Since "_root" doesn't exist any more, how do you control items on the main TimeLine from a loaded SWF?

    I am not clear what you mean because you are saying you are trying to target a movieclip that does not exist where you are trying to target it.
    Try using a trace to see what you are targeting when you you target the MovieClip(parent.parent)....
    trace(MovieClip(parent.parent));
    The other approach I mentioned earlier is the more OOP-correct approach if you would rather try that way.  Here's a rough outline of it...
    AS3 - Dispatch Event
    http://forums.adobe.com/thread/470135?tstart=120
    Example:
    Add something to trigger the event in the child (your loaded swf):
    dispatchEvent(new Event("eventTriggered")); (
    if dispatchEvent problem, see: http://www.kirupa.com/forum/showthread.php?p=1899603#post1899603)
    In your loading/parent swf, listen for the complete event on the Loader.contentLoaderInfo.  In the complete event handler, add a listener for the event on the loaded swf.
    // event handler triggered when external swf is loaded
    function loaderCompleteHandler(event:Event) {
        MovieClip(event.currentTarget.content).addEventListener("eventTriggered", eventHandler);
    function eventHandler(event:Event):void {
        trace("event dispatched in loaded swf");
       // this is where your main file can set the visible property of your movieclip

  • How do I set a variable on the main timeline from within a symbol?

    Just getting started with Animate and coming to it from Flash, as may be apparent from my question. How do you set a variable to the main timeline from within a symbol?
    I have 24 pairs of clickable elements, each in their own symbols, and all 24 of those symbols sit inside another symbol. I want all 24 to be able to set the same global variable when clicked. I can't find that this question is addressed anywhere, which makes me think I may be stuck in a Flash mindset and approaching the task in the wrong way. (There are however MANY discussions of how to address objects at different levels in the hierarchy. That's well covered.)
    Relatedly, how do you access a function on the main timeline from within a symbol?
    Adobe should consider putting together a support page (or pages) just for folks migrating form Flash. In the materials I've encountered so far there seems to be a studied effort to refrain from mentioning Flash in any way. I imagine there are a lot of people out there like me who have a deep background in Flash coding, but are just getting started with Animate. We don't need help with most of the basic concepts, but we may still have some pretty basic questions about how to accomplish some things in Animate because our Flash knowledge is getting in the way.

    Hi Bill,
    There are plenty of threads on here about scope, but here's one way to create a global variable:
    // code on Stage.compositionReady
    sym.myGlobalVar = 1;
    Then, anywhere in your project, you can check/set that var like so:
    sym.getComposition().getStage().myGlobalVar = 2;
    And here's one way to create a global function:
    // code on Stage.compositionReady
    sym.myGlobalFunction = function(){
              console.log('myGlobalFunction');
    Then, anywhere in your project, you can call that function like so:
    sym.getComposition().getStage().myGlobalFunction();

  • Is it possible to suppress the Page Header of the Main Report based on the Section Name?

    Hi,
    I am fairly new to Crystal Reports XI.  Is it possible to suppress the Page Header of the Main Report based on the Section Name?  Thanks.

    In the section expert you can enter a formula on the suppress function.
    You just need something to check against if it is section name you say
    {section name} ="Suppressme"
    I have used it more in drill level to display headers based on how far you have drilled into a report.
    Hope this helps
    Eric
    Via Christi Health System

  • Why do text variables using Running Header character style translate forced returns as a word space in the running head on the first page but close up the space on subsequent pages?

    In an InDesign document that requires 3 different Chapter head paragraph styles (to cope with differrent length headings) I've set up the running heads on the master page with a text variable using the Running header (character style) option. The character style I've assigned to this is an empty character style that is applied to all 3 chapter head paragraph styles.
    Some chapter heads require a forced line break, so that the line breaks are aethesically pleasing. On the first page the text variable translates this forced line break as a word space in the running head, but on subsequent pages it ignores the forced line break. This means that if you have a word space before the forced line break, on the first page you get a double word space and on subsequent pages the running head sets correctly with a single word space. But if you remove the word space before the forced line break in the chapter head text, the first running head sets correctly with forced line break interpreted as a single word space, but on subsequest pages the space is closed up.
    This only seems to be a problem when the character style option is used for header text variables. If a paragraph style is used the forrced line break is interpreted as a a single word space in all instances, both on the foirst page and subsequent pages.
    This would appear to be a bug in how text variables are applied when using the Running header (character style) option. I can't see any other reason why the text variable would beheave differently on the first page and on subsequent pages. There is only one master page, so it isn't a case of their being an error between a main master page and a chapter opener master page.
    Does anyone have any solutionss, or know if this problem has been fixed in subsequent releases of InDesign (I'm using CS6 ID version 8.0)
    Thanks

    Ask in the ID forum...
    Mylenium

  • Pages 5.5.1: When opening a document created with Pages '09 (Version 4.0) with Pages 5.5.1 the page header and the page footer are deleted. How can this be prevented? Or is this a bug in Pages 5.5.1?

    Pages 5.5.1: When opening a document created with Pages '09 (Version 4.0) with Pages 5.5.1 the page header and the page footer are deleted. How can this be prevented? Or is this a bug in Pages 5.5.1?

    Same problem here (no graphics in header or footer) and the problem has been reported months ago. It is another bug/feature lost when Apple moves from 09 to the iCloud-compatible versions.  Complain to Apple, you may have better chance than me and they may finally listen to their users....

  • Emails won't open on Mac but will on laptop and iPhone. On Mac can see the subject heading but the rest is blank in both preview pane and if I try to open the emai. Can anyone help me?

    emails won't open on Mac but will on laptop and iPhone. On Mac can see the subject heading but the rest is blank in both preview pane and if I try to open the emai. Can anyone help me?

    Back up all data. Rebuild the mailbox.

  • Using Python SDK to delete storage container: The Date header in the request is incorrect.

    Hi,
    I'm trying to delete a container from my storage by using the python sdk and I always get the error 
    Unknown error (Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.)
    <?xml version="1.0" encoding="utf-8"?><Error><Code>AuthenticationFailed</Code><Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
    RequestId:41d93fac-03bf-4b32-9781-eedc693266fc
    Time:2014-05-29T11:22:57.1981961Z</Message><AuthenticationErrorDetail>The Date header in the request is incorrect.</AuthenticationErrorDetail></Error>
    I think the time should be right, cause when I try to execute the code by myself which generates the time, it seems to prooduce the right date:
    current_time = datetime.utcnow().strftime('%a, %d %b %Y %H:%M:%S GMT')
    request.headers.append(('x-ms-date', current_time))
    And the time from my macbook is nearly correct (matches not really exactly the second from an atom clock). Any hints or at least any idea on how to debug that any further?
    Thanks

    hi,
    For this error, I suggest you could try to use this method to get the current_time date value:
    request.headers.append('x-ms-date': strftime("%a, %d %b %Y %H:%M:%S GMT", gmtime()))
    Please try it.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I lost the "preset" heading in the develop module.  How do I get it back(been to preferences, preset

    I lost the preset heading in the develop module.  How do I get it back(been to preferences, presets, and etc)?

    Right click on one of headings e.g.  History, Collections, and ensure Presets is ticked.

Maybe you are looking for

  • Can I move podcast from my account to other's?

    can I move podcast from my account to other's? i.e. may it have 2 owners?

  • Imac freezes

    case # 453372541 imac 2.7 ghz intel core i5 12gb 1333 mhz ddr3 memory graphics amd radeon hd 6770m 512 mb mac osx lion 10.7.5 ( 11g630 ) no third party hardware added to computer computer went to sleep came home after afew hours and system would not

  • Content-Disposition in IE

    Hi I want to stream a pdf file and then show in the browser . res.setHeader("Content-Disposition", "inline;filename=temp.pdf;"); This works with netscape but in IE it shows blank page after starting a Acrobat process. But if i use res.setHeader("Cont

  • Connect macbook pro to hdtv?

    I have connected cables to tv but I can not get iphoto pix to display.  Any suggestions?

  • HT201401 Iphone 3GS screen flashes and doesn't display

    Hi there i have been given a Iphone 3gs 16Gb from a friend as they have upgraded to a nexus 4 and the screen connecter was damaged so i have now replaced the LCD with a new one now the screen flashes and doesn't show anything on the screen there is n