CONTROLLING THE TIMELINE FROM EXTERNAL MC

I have a website
http://www.charlesmarsden-smedley.com/index1.html
that I am building.
In the projects section, if you navigate to Projects >
Museum > Tower of London. You will see 'more information' link.
This loads an external Movie clip for the text feild. I would
like to make the 'more information' dissappear when it is clicked
and the text appears in the target. The way I thought is best is to
move the timeline on one frame and just remove the link, but when I
click on 'back to images' link it reloads the images (external MC)
but the 'more information' link is still hidden.
How can I control the main timeline from an extrernal movie
clip?
Am i being rediculously long about this operation?
thanks
Harky

maybe you didnt understand correctly.
the 'more information' link loads an external movie clip (the
text) into the right side of the page.
At the bottom of this movie clip is a green link 'back to
images' this button sits within the movie clip. So my problem is
making this button controll the main timeline (as its root is the
movie clip root, not the main web page root)

Similar Messages

  • Control the Timeline, from a button inside a movieclip.

    First off, I have a movie clip called mc_instructions.  Inside the movie clip, about 940 frames into it, a button appears called btn_ready.  I need this button to bring me to frame 3 on the main timeline when clicked on.
    How can I do this in ActionScript 3.0?
    I can't figure it out!
    Thanks
    Don

    on frame 940:
    btn_ready.addEventListener(MouseEvent.CLICK,f);
    function f(e:Event):void{
    gotoAndStop(3);

  • Moving the timeline from a loaded swf file

    Hi,
    I have been at this problem for awhile now.
    I have a two swf files, whic are loaded using ths code as an example:
    stop();
    var req:URLRequest = new URLRequest("Enchilada_A.swf");
    var loader:Loader = new Loader();
    function imageLoaded(event:Event):void {
        ldContainerB.addChild(loader);
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
    loader.load(req);
    The first one is triggerrd by a MC button that is on the timeline.
    That first swf loads fine.
    At the end of that file(which is short animation)
    I have code that says:
    MovieClip(parent).gotoAndStop("frameThree");
    I have also tried:
    MovieClip(root) and
    if (movie Clip is parent) {
    MovieClip(parent).gotoAndStop("frameThree");
    and/MovieClip(parent).nextFrame();
    I have also tried placing this. or root. into the code.
    I am not talking to the timeline from this swf file.
    Once the timeline moves to the next Frame the new swf file can load.
    My solution was to combine both swf files into one, which loads from the timeline button.
    It works and I can gt by but I really woud like to learn how to load a swf and talk to the timeline fro more flexibilty.
    I'm out of strategies.
    Is my code in the wrong place(at the last frame of the animation?
    Should it be written on the timeline by creating a new var that has a function once the animation is completed.
    Any suggestions and/or commens would be greatly appreciated.
    Thanks.

    Thanks,
    I finally had a chance to get back to this project and used your suggestions, whichare definitiley helpful. I also, created a new and very basic version of the project so I could easily see what was happening.
    This is the code that works:
    stop();
    MovieClip(parent.parent).nextFrame();
    trace(container_mc);
    I'm still trying to understand how the child parent relationship is working but this will get me going in the right direction.

  • Help me to control the transactions from jsp to java bean

    Please anyone can guide me how to control the transactions from jsp to java bean. I am using the Websphere studio 5.1 to develop the database application. I would like to know two method to handle the database. First, I would like to know how I can control the transactions from jsp by using java bean which is auto generated for SQL statement to connect to the database. Following code are jsp and java bean.....
    // call java bean from jsp
    for (i=0;i<10;i++)
    addCourse.execute(yr,sem,stdid,course,sec);
    I write this loop in jsp to call java bean..
    here is java bean for AddCourse.java
    package com.abac.preregist.courseoperation;
    import java.sql.*;
    import com.ibm.db.beans.*;
    * This class sets the DBModify property values. It also provides
    * methods that execute your SQL statement and return
    * a DBModify reference.
    * Generated: Sep 7, 2005 3:10:24 PM
    public class AddCourse {
         private DBModify modify;
         * Constructor for a DBModify class.
         public AddCourse() {
              super();
              initializer();
         * Creates a DBModify instance and initializes its properties.
         protected void initializer() {
              modify = new DBModify();
              try {
                   modify.setDataSourceName("jdbc/ABAC/PreRegist/PRERMIS");
                   modify.setCommand(
                        "INSERT INTO informix.javacourseouttemp " +
                        "( yr, sem, studentid, courseid, section ) " +
                        "VALUES ( :yr, :sem, :studentid, :courseid, :section )");
                   DBParameterMetaData parmMetaData = modify.getParameterMetaData();
                   parmMetaData.setParameter(
                        1,
                        "yr",
                        java.sql.DatabaseMetaData.procedureColumnIn,
                        java.sql.Types.SMALLINT,
                        Short.class);
                   parmMetaData.setParameter(
                        2,
                        "sem",
                        java.sql.DatabaseMetaData.procedureColumnIn,
                        java.sql.Types.SMALLINT,
                        Short.class);
                   parmMetaData.setParameter(
                        3,
                        "studentid",
                        java.sql.DatabaseMetaData.procedureColumnIn,
                        java.sql.Types.CHAR,
                        String.class);
                   parmMetaData.setParameter(
                        4,
                        "courseid",
                        java.sql.DatabaseMetaData.procedureColumnIn,
                        java.sql.Types.CHAR,
                        String.class);
                   parmMetaData.setParameter(
                        5,
                        "section",
                        java.sql.DatabaseMetaData.procedureColumnIn,
                        java.sql.Types.SMALLINT,
                        Short.class);
              } catch (SQLException ex) {
                   ex.printStackTrace();
         * Executes the SQL statement.
         public void execute(
              String userid,
              String password,
              Short yr,
              Short sem,
              String studentid,
              String courseid,
              Short section)
              throws SQLException {
              try {
                   modify.setUsername(userid);
                   modify.setPassword(password);
                   modify.setParameter("yr", yr);
                   modify.setParameter("sem", sem);
                   modify.setParameter("studentid", studentid);
                   modify.setParameter("courseid", courseid);
                   modify.setParameter("section", section);
                   modify.execute();
              // Free resources of modify object.
              finally {
                   modify.close();
         public void execute(
                   Short yr,
                   Short sem,
                   String studentid,
                   String courseid,
                   Short section)
                   throws SQLException {
                   try {
                        //modify.setUsername(userid);
                        //modify.setPassword(password);
                        modify.setParameter("yr", yr);
                        modify.setParameter("sem", sem);
                        modify.setParameter("studentid", studentid);
                        modify.setParameter("courseid", courseid);
                        modify.setParameter("section", section);
                        modify.execute();
                   // Free resources of modify object.
                   finally {
                        modify.close();
         * Returns a DBModify reference.
         public DBModify getDBModify() {
              return modify;
    I would like to know that how can I do for autocommit from jsp. For example, the looping is 10 times which mean I will add 10 records to the db. If the last record is failed to add to db, "how can I rollback the perivious records?" or guide me to set the commit function to handle that case. Thanks a lot for take your time to read my question.

    Hello.
    The best method is using a session bean and container managed transactions. Other method is using sessions bean and the user transaction object (JTA-JTS).
    so, JDBC has transaction management too.
    good luck.

  • I can't control the volume from my iphone 4 headset. What can I do???

    I can't control the volume from my iphone 4 headset. What can I do???

    Go to Settings > Sounds. There is this option call Change With Buttons. Is it On or Off?

  • Problem: I lost the option to get the sound from external speakers or headphones to upgrade to Lion 10.7.3. It accepts only internal speakers.  I downloaded  Combo directly. I followed all the advice from the Apple community

    Problem: I lost the option to get the sound from external speakers or headphones to upgrade to Lion 10.7.3. It accepts only internal speakers.  I downloaded  Combo directly , without using "Actualización de software". I followed all the advice from the Apple community.  Can I use bluetooth speakers to solve this problem?  My Computer: iMac. 20-inch, Early 2008. Processor 2.4 GHz Intel Core 2 Duo.

    You may need to reset PRAM/NVRAM.
    First, check that the jack is clean. Put some alcohol on a plug and insert it a few times. See if that helps.
    is your output both digital and analog? If digital, is the red laser light visible in the socket? Do not look directly into the socket when checking.
    If all else fails try a PRAM reset:
    Reset your computer’s PRAM
    A small amount of your computer’s memory, called “parameter random-access memory” or PRAM, stores certain settings in a location that Mac OS X can access quickly. The particular settings that are stored depend on your type of Mac and the types of devices connected to it. The settings include your designated startup disk, display resolution, speaker volume, and other information.
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Immediately press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Continue holding the keys down until the computer restarts, and you hear the startup sound for the second time.
    DO NOT HOLD These keys beyond the second startup sound!
    Release the keys.
    Resetting PRAM may change some system settings and preferences. Use System Preferences to restore your settings.

  • Controlling the timeline with mouse scrolling

    Hello all,
    i need to control the timeline animation with the mouse wheel.
    how is it possible
    i've tried this code but I've could only make it work with mouse move, unfortunatly the scroll does not work -
    composition ready:
    this.onMove=function(posX, posY){
      timelinecontrol = Number(posX)*30;
      console.log(timelinecontrol);
      sym.stop(timelinecontrol);
    mousemove:
    this.onMove(e.pageX, e.pageY);
    I've also tried this one - http://forums.adobe.com/thread/1149792
    but didnt worked either
    many tnx!!!!

    found the answer at this thread -
    http://forums.adobe.com/message/5628190#5628190
    this is the exampel posted by Vinay -----
    Here is an example - http://www.dealsdrizzle.com/research/scroll/scroll2.html
    Source - http://www.dealsdrizzle.com/research/scroll/scroll2.zip

  • Controll the ROOT timeline from externally loaded movie clip?

    does anyone know how to controll the root timeline from an
    externally loaded movie clip?
    I have loaded a movie clip, which has buttons on it that I
    would like to controll the main original website timeline with.
    something like this.parent.parent?
    thanks a lot
    harky

    feedmeapples <[email protected]> wrote:
    > does anyone know how to controll the root timeline from
    an externally
    > loaded movie clip?
    >
    > I have loaded a movie clip, which has buttons on it that
    I would like
    > to controll the main original website timeline with.
    >
    > something like this.parent.parent?
    _root.doStuff;
    Freundliche Grüße,
    Franz Marksteiner

  • How do I control Edge symbols from external javascript?

    I have come across about a dozen similar discussions, but most have presented solutions that worked in earlier versions of Edge and no longer work.
    I am trying to use Edge to build animations that can then be integrated into larger non-Edge projects. I would like to then be able to control the Edge timeline or Edge symbols from elements OUTSIDE of Edge, such as another link or button in the page.
    I cannot seem to figure out how to properly reference the Edge stage or symbols.
    I have come across several proposed solutions for referencing Edge stage, such as:    
         var comp = AdobeEdge.getComposition("EDGE-966604542");
         var stage = comp.getStage();
         var comp = $.Edge.getComposition("EDGE-966604542");
         var stage = comp.getStage();    
         var comp = Edge.getComposition("EDGE-966604542");
         var stage = comp.getStage();
         and these either DO NOTHING or throw errors about either AdobeEdge or Edge or comp being undefined.
         Does anyone have a solution that really works with the current version of Edge Animate?
    Thanks
    Scott

    i created a Trigger @ 0ms and moved the function there...
    function hello(){
         alert("hello");
    still not getting the alert to fire with this in the external js:
    var comp = AdobeEdge.getComposition(compId).getStage();
    comp.hello();
    any thoughts?

  • Controlling main timeline from loaded movie

    I have loaded an external movie onto the main movie in a
    movie clip called "mainholder" - In the main timeline on the main
    movie there is a "stop" command on frame 1. From the loaded movie,
    I want to control the main timeline and tell it to go to frame 2.
    Can someone tell me the actionscripting to do this, I have tried
    several commands and getting frustrated. ;-)
    Thanks

    movies are loaded into levels. The main movie is always
    considered level0 a.k.a _root in the AS. When you load a movie into
    another, the main movie is also considered the parent of that
    loaded movie a.k.a. this._parent in AS where this refers to the
    loaded movie. If you want something in the loaded movie to control
    the main timeline you could call it like this...
    _root.gotoAndStop(2); or _root.gotoAndPlay(2); depending on
    what you want.
    but because of the parent/child relationship, it can also be
    done like this....
    this._parent.gotoAndStop(2); or this._parent.gotoAndPlay(2)
    Although the first method is less to remember, the second
    method proves the most friendly and re-usable. Let me explain...
    Say that you did something like this....
    [MAIN MOVIE]
    [LOADED MOVIE]
    {Loaded Movie with buttons to control LOADED MOVIE}
    Your main movie loads a movie and when this loaded movie
    reaches it's 10th frame, it loads another movie where the buttons
    reside for controlling that clip. If you used _root in the button
    movie, it would cause the main movie (_root) to be called and not
    the LOADED MOVIE as you had intended during its design prior to
    trying to make this new main movie (and it would work as intended
    if you opened the LOADED MOVIE's fla file and exported). If you use
    this._parent in the button movie, it will always make it's calls to
    the LOADED MOVIE's timeline and not the main clips timeline.
    Sorry if this confuses you but it's important to
    understand.

  • Opening the Canvas window and the Timeline from the browser

    I am on an Intel 2x2.66 Dual Core using OS 10.4.11 and working in FCP 6.04.
    I know this is a stupid question but having been a composer all my life, I am not up to speed on FCP and I seem to be unable to find the answer in my manual.
    I dragged a QuickTime movie to the browser window. It is 500x375 in dimension and uses a H.264, AAC codecs. (info I got from the Get Info window).
    The video shows up and plays in the Viewer window but I cannot get the Canvas window nor the Timeline to open.
    I have tried selecting the sequence from the list in the browser and then control clicking it and looking at the shortcut menu there. The manual says I should choose Open Timeline from this shortcut menu but that is not even a choice I have. I don't mean it is grayed out, I mean there is no Open Timeline choice on the menu.
    As an alternate, the manual suggests selecting the sequence and then choosing View > Sequence in Editor. I tried this also. There is no Sequence in Editor choice under the View menu. There is a Clip in Editor choice but when I select that it simply opens the movie in Quicktime.
    I am aware that I am probably forgetting something simple or doing something stupid but I cannot figure it out. Help would be much appreciated.
    Thomas

    the simple fact that is being eluded to here is that without an active sequence in the project (shown in the browser) there is no canvas or timeline. If you delete your sequence from the browser, the timeline and canvas will disappear, and you will have to create a new sequence, then open that sequence by double clicking it, to get those windows back. Canvas and Timeline display sequence content. No sequence, no c/t.

  • Change a text field on the timeline from a class

    Hi,
    I need some help in changing the content of text fields that are on the stage of the main timeline from within an external class. I have created a countdown timer which is called from the Document Class. I think it is a problem with the scope of the variable but I can't work it out.
    Main Document Class:
    package
        import flash.display.*;
        import flash.events.*;
        import count_timer;
        import RectangleButton;
        public class main extends MovieClip
            public function main()
              [create a Start Btn]
                var startBtn_mc:MovieClip = new MovieClip  ;
                addChild(startBtn_mc);
                var startBtn:RectangleButton = new RectangleButton("Start",90,25,18,0xCC0000,0x000000);
                startBtn_mc.x = 105;
                startBtn_mc.y = 200;
                startBtn_mc.addChild(startBtn);
                startBtn_mc.addEventListener(MouseEvent.CLICK,onClickStartBtn);
                function onClickStartBtn(event:MouseEvent):void
                    var inputDay1:String = dayInputtxt.text;[these are input fields on the stage]
                    var inputHr1:String = hrInputtxt.text;
                    var inputMin1:String = minInputtxt.text;
                    var inputSec1:String = secInputtxt.text;
                    var counter:count_timer = new count_timer(inputDay1,inputHr1,inputMin1,inputSec1);
    Countdown Timer:
    package
        import flash.display.*;
        import flash.utils.Timer;
        import flash.events.*;
        import flash.text.*;
        import RectangleButton;
        public class count_timer extends MovieClip
    //not sure this is correct
    public var daytxt:TextField;
    public var hrtxt:TextField;
    public var mintxt:TextField;
    public var sectxt:TextField;
            public function count_timer(inputDay1,inputHr1,inputMin1,inputSec1)
                var inputDay = inputDay1;
                var inputHr = inputHr1;
                var inputMin = inputMin1;
                var inputSec = inputSec1;
                var msinputDay:Number = Number(inputDay);
                var msinputHr:Number = Number(inputHr);
                var msinputMin:Number = Number(inputMin);
                var msinputSec:Number = Number(inputSec);
                var ms:Number = Number(msinputDay);
    //convert input to milliseconds
                ms = ms + msinputDay * 24 * 60 * 60 * 1000;
                ms = ms + msinputHr * 60 * 60 * 1000;
                ms = ms + msinputMin * 60 * 1000;
                ms = ms + msinputSec * 1000;
                addEventListener(Event.ENTER_FRAME, loop);
                function loop(e:Event):void
                    ms = ms - 1000;
                    var sec:Number = Math.floor(ms / 1000);
                    var min:Number = Math.floor(sec / 60);
                    var hr:Number = Math.floor(min / 60);
                    var day:Number = Math.floor(hr / 24);
                    sec = sec % 60;
                    min = min % 60;
                    hr = hr % 24;
                    daytxt.text = day.toString();[everything appears to work to these variables. I think it should be root.]
                    hrtxt.text=(hr<10)?"0"+hr.toString():hr.toString();
                    mintxt.text=(min<10)?"0"+min.toString():min.toString();
                    sectxt.text=(sec<10)?"0"+sec.toString():sec.toString();
               if (ms <= 0)
                        removeEventListener(Event.ENTER_FRAME, loop);
                        gotoAndPlay("TimesUp");
    Many thanks in advance.

    Your code is not going to work as you show it. First, you should not be putting your class methods inside the constructors... And yes - scope. You make your new count_timer as a local variable inside a function that is called on click. Essentially, the timer is gone just as fast as it's created. If you want the timer available to the other methods in the class it should be declared as a private var in the class definition.
    And I agree with kokorito - have your timer extend EventDispatcher and then it can do like: dispatchEvent(new Event("myTimerEvent")); and you can then add an eventListener to it when you create it in your main class. You just listen for "myTimerEvent" or whatever string you use, and call whatever function you want - just like using any other listener.

  • Control main timeline from loaded swf.

    Hi,
    I'm using a textfield for debug information.
    I'm loading an swf on the main timeline and I'm showing the status in the debug textfield.
    function swfLoaderCompleteHandler(event:Event)
         Debug.text +=  "Swf loaded.";
    That works.
    But,
    I'm loading a png file in the loaded swf. , I'm trying to show the status of the png file as I showed the status of the swf.
    function pngLoaderCompleteHandler(event:Event)
         MovieClip(parent).Debug.text += "Png loaded.";
    I can't control the main swf from inside the loaded swf. Even gotoAndStop or calling a function doesn't work.
    Do I need to add something when I load the swf, saying it's a MovieClip or something?
    Here's a fla too. http://flashfocus.nl/forum/attachment.php?attachmentid=9885&d=1282509233

    Thank you! you're brilliant!
    For people with the same problem:
    If you use CS5 and you have a TLF text on the stage, it doesnt work... I think it's a bug. But when I converted my TLF textfield to classic and everything works fine!

  • How can i use the ACL file to control the access from the other website?

    Hello all~
    My Sun one is 6.1 sp3 on Windows 2003 SE, and I am try to use the ACL file to control the access.
    My ACL file is below:
    version 3.0;
    acl "path=my_path_on_HD";
    deny absolute (all)
    (user = "anyone") and
    (dns = "*.my_site.com");
    deny absolute (all)
    (user = "anyone") and
    (dns = "*.other_site.net");
    Once I add the "deny", anyone include my site is decline for vist the path specify in the ACL file. But if remove the "deny", everyone include other one's website can access the file.
    Can anybody tell me how to make it work?

    I think you've misunderstood what the dns attribute is for. The dns attribute returns the hostname of the client accessing your website, not the hostname of the website that linked to your website.
    For example, when someone using the Comcast ISP goes to a malicious website at example.com that loads images from your website at www.amigoo.net, the dns attribute will be something like "c-1-2-3-4.ca.comcast.net", not "example.com". ACLs are used for authentication and authorization of clients (not the websites those clients chose to visit), and they don't provide the functionality you're looking for.
    If I understand correctly, you want to prevent websites other than amigoo.net from linking to files in your d:/webserver/imat/pics_upload directory. You can achieve this adding the following lines to your obj.conf configuration file:
    <Object ppath="d:/webserver/imat/pics_upload/*">
    <Client referer="*~*amigoo.net">
    PathCheck fn="deny-existence"
    </Client>
    </Object>

  • The problem is encountered when we try to open the file from external vendor.

    We are using Adobe illustrator CS3 with Patch 13.0.2. in MAC PC with OS 10.4.11. We tried to open the file generated from external vendor. This file is made by CS4/CS5 & downgraded to CS3 because we are using different version of CS package.
    When we try to open such as file. It takes some time to open it. But after a while, the application illustrator has unexpectedly quit & crash report is generated. Any expert can help to look at the problem.

    Just a bad file.
    No telling what specifically may be the issue without seeing the original file as compaired to the CS3 file.

Maybe you are looking for

  • Comparing two ResultSet

    Hi Everybody, Can anybody tell me is there any method to compare the contents of two ResultSets and decide whether they are same or not. Thanks

  • The Application Adobe Illustrator CS2 quit unexpectedly

    Hi, I have a room of networked Mac's (G4) OS 10.4.6 and we have had all twenty machines running CS2 and everything working fine. Now that the machines haven't been used for a while I can only get 7 of the machines to work on CS2. I get this error mes

  • Adobe acrobat pro xi won't open

    I purchased acrobat pro xi several weeks ago and now today i cannot open any adobe file. I get a window asking for permission for adobe to change settings on this computers. I click yes and then nothing. No selected pdf will open.

  • How do you run a query to view duplicate records?

    I need to run a query with the query generator to produce a list of matching records. We have a problem whereby sales orders can come in by phone and email and therefore they sometimes get put on the system twice. I need to produce a query which pick

  • Scenario execution errors not logged

    Hi, in production environment, we start our scenarios by means of startscen.bat. Sometimes, when an error occurs, startscen.bat returns an error which does not appear in the operator log (scenario seems to be still running). Has someone been faced to