Script for external swf transitions

I borrowed some code to create menu transition swfs in which
as a button is pushed, it will look to see if the current swf is at
midframe and if so, play the exiting animation of that swf and then
load and play the intor for the swf for that button selection (hope
that makes sense).
However, I have enhanced my swf files to have a number of
stop actions for submenu items for that catagory so the swf does
not automatically just play to the midframe and stop. Is there a
way that I can modify the code so that if the swf is not at
midframe yet, I can have it "gotoandplay" midframe if that makes
sense?
Here's the code:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "OrangeAll";
container.loadMovie("OrangeAll.swf");
} else if (_root.currMovie != "OrangeAll") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "OrangeAll";
container.play();
Thanks,
Dave

"bump"

Similar Messages

  • Control script for external swf

    I am loading an external swf to an empty container screen_mc
    with the following from the main timeline
    this.screen_mc.loadMovie("video.swf");
    It loads and runs fine but I want to be able to stop and
    start the swf with buttons but no matter how I target the clip I
    cannot get either button to work - can anyone help?
    Brian

    "bump"

  • Play - Pause button for external .swf?

    I'm trying to create buttons so a viewer can pause and then play an externally loaded swf. My project can be accessed at the linke below. This is how I want the project to function
         -Click a room on the building (choose Accounting for this discussion)
         -Click one of the demo options (choose Ending a Period for this discussion)
         - Now that the demo plays, I want the user to be able to play and pause the demo swf.
    The demo .swfs were created in Captivate so I don't have access to their timeline. They are loaded into an empty Loader component using the MovieClipLoader Class. Can anyone post some possible solutions to this problem? Thanks!
    http://distribution.activant.com/demos/prophet21-on-demand/

    What would that look like? Right now they're loading using the following code:
    btnCashCollect_btn.onRelease = function () {
          mcLoader.loadClip("CashCollections.swf",myLoader);
          btnEndPeriod_btn.enabled = false;
          btnCashCollect_btn.enabled = false;
          btnFinancialMGMT_btn.enabled = false;
          _root.btnHome_mc._visible = false;
    So would I use something like:
    btnPause.onRelease = function() {
         myLoader.content.pause();
    Actually I just tried that and it didn't work...I need the buttons to work for multiple external swfs that will be loaded into myLoader

  • Scripts for external table

    We've lost our backup script for a particularly hairy EXTERNAL TABLE def'n. TOAD is botching the script. Is there a SQL statement I can execute against the db which will deliver back the script?
    -Chuck

    Charles,
    <br>You can use DBMS_METADATA package.</br>
      1  SELECT dbms_metadata.get_ddl('TABLE', table_name)
      2  from user_tables
      3* where table_name = 'EXT_RN_DEPLOY_DATA' --your table name
    SQL> /
      CREATE TABLE "SCOTT"."EXT_RN_DEPLOY_DATA"
       (    "MONITOR_ID" VARCHAR2(30),
            "SAMPLE_ID" VARCHAR2(30),
            "LATITUDE" VARCHAR2(10),
            "DEW_POINT" NUMBER(18,8)
       ORGANIZATION EXTERNAL
        ( TYPE ORACLE_LOADER
          DEFAULT DIRECTORY "DATA_FILE_DIR2"
          ACCESS PARAMETERS
          ( RECORDS DELIMITED BY NEWLINE SKIP 1
    BADFILE DATA_FILE_DIR2:'REVEXT%A_%P.BAD'
    LOGFILE DATA_FILE_DIR2:'REVEXT%A_%P.LOG'
    FIELDS TERMINATED BY ","
    OPTIONALLY ENCLOSED BY '"'
    MISSING FIELD VALUES ARE NULL
          LOCATION
           ( "DATA_FILE_DIR2":'load.csv'
       REJECT LIMIT UNLIMITED
    SQL> <br>More info <a href=http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch15.htm#1005930><b>here</b></a></br>
    <br>Nicolas.</br>

  • OnSoundComplete for external swfs

    My question is, does onSoundComplete works for sounds from
    externally loaded swfs (these are loaded into 2 different
    movieclips mc1 and mc2). I want swf1 to unload and swf2 to load
    after the sound in swf1 has completed.
    I used....
    mc1.song1.onSoundComplete = function(){
    unloadMovie(mc1);
    mc2.loadMovie("song2.swf");
    And nothing happens when song1 has completed, and I know
    there is no problem with the external sounds because they play just
    fine when they need to.

    "Mike Eazy" <[email protected]> wrote in
    message news:e9e0hb$eqk$[email protected]..
    > Thats the problem, im sure the path is right because im
    using the same path i
    > used to pause, stop, play the sound, and i tried adding
    if mc1.getBytesLoaded
    > == mc1.getBytesTotal to it and it still doesnt work, any
    other ideas?
    Probably just missing the preloader part, as kglad mentioned.
    I have a Ver 6 demo, example if you want to look at it.
    http://www.kompanionkare.net/flash/audio/loader/loader.html
    tralfaz

  • How to set levels for external swf's??? loading code added!

    hi,
    im using flash cs5, as2.
    i have a main index fla that loads into it 5 swf's.
    i need these 5 to be loaded into a lower level than the main index fla (index has to be the highest level)
    how can this be acheived?
    i have no idea on how or where to code this.
    my code for loading the movies is:
    F1
    var IndexLoaded = _root.getBytesLoaded();
    var total = _root.getBytesTotal();
    var percent = int(IndexLoaded/total*100);
    var loadingName = "Loading.. " + percent + "%" + " of " + "Index";
    var checkFrameplay = 0;
    Bar_anime.gotoAndStop(percent);
    Loadtext_txt.text = loadingName;
    if (IndexLoaded == total) {
                    var n = 0;
                    gotoAndPlay(3);
    F2
    gotoAndPlay(1);
    F3
    var movie:MovieClip = _root.StoredActions.Con.createEmptyMovieClip("movie"+n,n +1);
    loadMovie(n+".swf",_root.StoredActions.Con["movie"+n]);
    var MovieLoaded = 0;
    percent = 0;
    _root.StoredActions.Con["movie"+n]._x = 3000;
    F4
    MovieLoaded = _root.StoredActions.Con["movie"+n].getBytesLoaded();
    loadTotal = _root.StoredActions.Con["movie"+n].getBytesTotal();
    percent = int(MovieLoaded/loadTotal*100);
    Bar_anime.gotoAndStop(percent);
    loadingName = ("Loading.. " + percent+ "%" + " of "+ n);
    Loadtext_txt.text = loadingName;
    if (loadTotal>10) {
                    if (MovieLoaded>=loadTotal) {
                                    gotoAndPlay(6);
    F5
    gotoAndPlay(4);
    F6
    if (n < _root.nMenus) {
                    n++;
                    gotoAndPlay(3);
    } else {
                    gotoAndStop("Stopload");
                    _root.gotoAndPlay("Playmovie");
    F7
    stop();
    thanks in advance for any help.
    sajjy

    hi,
    i understand what you are saying about the code, im no advance user of as2 but i can say from all the research i have done, iv not seen anyone using this sort of code, its all over the place.
    but on the other hand, even though its a mess, its working and all the site functions and buttons work well with the code.
    basically the main.swf is the structure of the site, it has all the images/frames in the right places.  the other swfs load into a little window on the main.swf.  this window has some shading/reflections on it and the problem i have is when i scroll the movieclips, they scroll over the shading/reflections making it look tacky, if i didnt use any scrolling it would be fine but i need to use it due to having a small window.
    the content of the window is controlled by a button thats on the main.swf.
    each of the loaded swfs have dynamic text, movieclips, buttons to open external html windows.  nothing advance to be honest, all the interactive movieclips are controlled by clicking on them, navigating to another frame (using labels).
    i would upload the files for you to have a look but im under strict ruling that i cant share the content as its not yet been released to the public.
    i hope that helps clear a few things up for you.  if i cant get the levels to work then i guess it will have to stay like that or i will have to scrap the whole project and start again.

  • Preloader for external swf

    first try, changed somethings from previous post, tried to
    make different changes, instead of using if else tried to set an
    onload handler both before and after the loadmovie sentence (not at
    the same time of course), copy paste of what goes on each frame
    (actionscript 1):
    frame 1:
    setProperty("", _focusrect, false);
    Stage.showMenu = false;
    fscommand("showmenu", "false");
    fscommand("allowscale", "true");
    var mensaje = "0 %";
    this.createEmptyMovieClip("pantalla", 0);
    pantalla._x = 0;
    pantalla._y = 0;
    loadMovie("centrino2x.swf", "pantalla");
    frame 2
    mensaje =
    (pantalla.getBytesLoaded()/pantalla.getBytesTotal())*100;
    mensaje = Math.round(mensaje)+" %";
    play();
    frame 3
    if (pantalla.getBytesLoaded()==pantalla.getBytesTotal()) {
    nextFrame();
    } else {
    prevFrame();
    frame 4:
    pantalla.swapDepths(0);
    pantalla.play();
    stop();
    the result: the if else goes right by to next frame, so it
    jumps as if the movie was whole loaded, remaining in last frame as
    a blank screen till the movie loads. the message appears as 100% in
    the half a sec it gets on screen. according to trace, bytes loaded
    and bytes total = 0
    version 2, i nearly copied it from a tutorial linked from
    another post, most of the preloader stuff is nearly exact from the
    tutorial, uses movieloader class (actionscript 2)
    frame 1:
    setProperty("", _focusrect, false);
    Stage.showMenu = false;
    fscommand("showmenu", "false");
    fscommand("allowscale", "true");
    var mensaje = "0 %";
    this.createEmptyMovieClip("pantalla", 0);
    pantalla._x = 0;
    pantalla._y = 0;
    var cargador:MovieClipLoader = new MovieClipLoader();
    var control:Object = new Objetc();
    control.onLoadProgress = function(target, loaded, total) {
    aviso.text = Math.round((loaded/total)*100)+" %";
    control.onLoadInit = function () {
    nextFrame();
    cargador.addListener(control);
    cargador.loadClip("centrino2x.swf", pantalla);
    stop();
    frame 2:
    pantalla.swapDepths(0);
    pantalla.play();
    stop();
    the result: it never changes frame (as if it never finishes
    loading), message giving percentage loaded never appears, and
    traces on event handlers for listener never come out
    i have no idea what %$#"&#" is wrong, i have spend quite
    a time on this, which at first seemed like the easiest part, any
    pointers?

    when first executed pantalla.getBytesLoaded is probably 0 as
    is pantalla.getBytesTotal() causing your problem.
    to remedy, check that pantalla.getBytesLoaded()>0 and that
    pantalla.getBytesLoaded()==pantalla.getBytesTotal().

  • Unload event for external swf[urgently need help]

    hi all master,
    iI've mp3, eksternally loaded and I controlled from main time...
    the bugs are
    1. If I wanna go to another .swf file, i still can hear the sound...
    2. if I click the button wich linked to mp3.swf, the sound/song are duplicated by2, and then if I click again the sound are duplicated by3...
    how I can fix this problem??? oia, the buttons to call another swf are only in main swf,
    and here is the code:
    //zhe button
    var Xpos:Number = 140;
    var Ypos:Number =100;
    var swf:MovieClip;
    var loader:Loader = new Loader();
    addChild(loader);
    // Btn function
    function btnClick(event:MouseEvent):void {
        if(loader)
            loader.unload();
            loader.unloadAndStop();
            removeChild(loader);
            loader=null;
        loader=new Loader();
         var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
         loader.load(newSWFRequest);
         loader.x = Xpos;
        loader.y = Ypos;
         addChild(loader);
    // Btn listeners
    shout.addEventListener(MouseEvent.CLICK, btnClick);
    song.addEventListener(MouseEvent.CLICK, btnClick);
    gallery.addEventListener(MouseEvent.CLICK, btnClick);
    about.addEventListener(MouseEvent.CLICK, btnClick);
    So, anybody can help me???

    then you can use:
    //zhe button
    var Xpos:Number = 140;
    var Ypos:Number =100;
    var swf:MovieClip;
    var loader:Loader;
    addChild(loader);
    // Btn function   
    function btnClick(event:MouseEvent):void {     if(loader!=null)
           loader.unloadAndStop();
            removeChild(loader);
            loader=null;
    loader=new Loader();
         var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
         loader.load(newSWFRequest);
         loader.x = Xpos;
        loader.y = Ypos;
         addChild(loader);
    // Btn listeners
    shout.addEventListener(MouseEvent.CLICK, btnClick);
    song.addEventListener(MouseEvent.CLICK, btnClick);
    gallery.addEventListener(MouseEvent.CLICK, btnClick);
    about.addEventListener(MouseEvent.CLICK, btnClick);

  • Loading an external SWF from an external SWF

    Hello,
    I'm somewhat caught between a rock and a hard spot on a flash
    site project. Here is the situation:
    I have created a parent movie (which loads all external SWFs
    inside of it) that has the menu navigation built into it. However,
    my client wants me to place some more links inside of the external
    SWFs that lead to other pages (external SWFs) of the site. Is this
    at all possible? I was hoping there is a way to tell a button in an
    external SWF to make the parent movie switch between external SWFs.
    Any and ALL help is very much appreciated. Thank you.
    Another question: does this involve using the _parent script?
    Elijah

    Hello,
    Thank you for replying. Here is exactly what I'm needing to
    do:
    We will call the parent file "index.swf". Inside "index.swf"
    I have a "holder" for external swf files to load into when I call
    on them from the main menu buttons on "index.swf". When a customer
    comes to the site, the "index.swf" file initially loads
    "welcome.swf". Inside of "welcome.swf", I have some images that I
    want to make into links to other external swf files.
    My problem is when someone clicks on one of those pictures I
    want the "index.swf" file to open up the corresponding external swf
    file in its "holder", where "welcome.swf" currently resides. Also,
    all of these swf files ("index.swf" included) have stand-alone FLA
    files, none are attached to one another. I have never worked with
    "levels" before, would that be necessary in this case? I have
    attached the code for the external swf loader.
    I hope that gives you a better idea of what I'm trying to
    accomplish.
    Thanks again.
    Elijah
    CODE:

  • Loaded external swfs with transitions

    I need help getting my loaded swf files to play the "out" transition before the next movie loads. I have a main swf with 5 buttons (movie clips) that load external swf onto the stage.
    package
        import flash.display.MovieClip;
        import flash.display.SimpleButton;
        import flash.display.Loader;
        import flash.net.URLRequest;
        import flash.events.MouseEvent;
        import flash.events.*;
        public class V2 extends MovieClip
            private var sections_array:Array;
            private var section_buttons_array:Array;
            private var loader:Loader;
            private var sectionHolder  : MovieClip;
            private var swf:String;
            private var currentSection:int=0;
            private var nextSection:int;
            private var id:int=0;
            private var homeLoc = "./swfs/home.swf";
            public function V2()
                init();
            private function init():void
                stop();
                stage.frameRate=31;
                preloader_mc.visible=false;
                preloader_mc.fill_mc.width=0;
                sectionHolder = new MovieClip();
                sectionHolder.x = 37;
                sectionHolder.y = 42;
                addChild( sectionHolder );
                sections_array = new Array('./swfs/section1.swf',
                './swfs/section2.swf',
                './swfs/section3.swf',
                './swfs/section4.swf',
                './swfs/section5.swf');
                section_buttons_array = new Array(btn1,btn2,btn3,btn4,btn5);
                addMenuListener();
                addMenuEvents();
                loadHome();
            private function addMenuListener():void
                for(var i:int=0;i < section_buttons_array.length;i++)
                    section_buttons_array[i].id=i;
                    section_buttons_array[i].addEventListener(MouseEvent.MOUSE_DOWN,loadSectionHand ler);
            private function loadHome():void
                swf=homeLoc;//sections_array[0];
                var request:URLRequest=new URLRequest(swf);
                loader=new Loader();
                initListeners(loader.contentLoaderInfo);
                loader.load(request);
                id=0;
            private function changeSection(m:MouseEvent):void
                id=m.currentTarget.id+1;
                loader.unload();
                sectionHolder.removeChild(loader);
                removeListeners(loader.contentLoaderInfo);
                loadSection(m.target.parent.id+1);
            private function loadSectionHandler(evt:MouseEvent)
                id = evt.currentTarget.id;
                loadSection(id);
            private function loadSection(n:int):void
                swf=sections_array[id];
                var request:URLRequest=new URLRequest(swf);
                initListeners(loader.contentLoaderInfo);
                loader.load(request);
            private function initListeners(dispatcher:IEventDispatcher):void
                dispatcher.addEventListener(Event.OPEN,start);
                dispatcher.addEventListener(ProgressEvent.PROGRESS,atLoading);
                dispatcher.addEventListener(Event.COMPLETE,completed);
            private function removeListeners(dispatcher:IEventDispatcher):void
                dispatcher.removeEventListener(Event.OPEN,start);
                dispatcher.removeEventListener(ProgressEvent.PROGRESS,atLoading);
                dispatcher.removeEventListener(Event.COMPLETE,completed);
            private function start(event:Event):void
                preloader_mc.visible=true;
            private function atLoading(event:ProgressEvent):void
                var n:uint=(event.bytesLoaded/event.bytesTotal)*100;
                preloader_mc.fill_mc.width=n;
               private function completed(event:Event):void
                sectionHolder.addChild(loader); 
                preloader_mc.visible=false;
            private function stopAll():void
                for(var i:int=0;i < section_buttons_array.length;i++)
                    section_buttons_array[i].stop();
                    sections_array[i].stop();
            private function addMenuEvents():void
                for(var i:int=0;i < section_buttons_array.length;i++)
                    section_buttons_array[i].mouseChildren=false;
                    section_buttons_array[i].buttonMode=true;
                    section_buttons_array[i].id=i;
                    section_buttons_array[i].isPressed=false;
                    section_buttons_array[i].addEventListener(MouseEvent.MOUSE_OVER,setOver);
                    section_buttons_array[i].addEventListener(MouseEvent.MOUSE_OUT,setOut);
                    section_buttons_array[i].addEventListener(MouseEvent.MOUSE_DOWN,setDown);
                    section_buttons_array[i].addEventListener(MouseEvent.MOUSE_UP,setUp);
            private function setOver(evt:MouseEvent):void
                if(evt.target.isPressed==false)
                    evt.target.gotoAndStop(2);
            private function setOut(evt:MouseEvent):void
                if(evt.target.isPressed==false)
                    evt.target.gotoAndStop(1);
            private function setDown(evt:MouseEvent):void
                nextSection=evt.target.id;
                checkState(evt.target.id);
                evt.target.gotoAndStop(3);
                loadSection(1);
                currentSection=evt.target.id;
            private function setUp(evt:MouseEvent):void
                if(evt.target.isPressed==false)
                    evt.target.gotoAndStop(1);
            private function checkState(n:int):void
                for(var i:int=0;i < section_buttons_array.length;i++)
                    if(i==n)
                        section_buttons_array[i].isPressed=true;
                    else
                        section_buttons_array[i].isPressed=false;
                        section_buttons_array[i].gotoAndStop(1);
            private function removeSWF(e:Event):void
                loader.unload();
                removeEventListener("removeMe", removeSWF);
                var request:URLRequest = new URLRequest(swf);
                loader.load(request);
            private function onClick(e:MouseEvent):void
            targetID = e.currentTarget.id;
            addEventListener("removeMe", removeSWF);
            MovieClip(loader.content).play();
            private function removeSWF(e:Event):void
            loader.unload();
            removeEventListener("removeMe", removeSWF);
    The loaded swf has a stop() an intro animation and on the last frame have.
    dispatchEvent(new Event("removeMe", true));

    your isse begins here ..
    loadSection()
    you use the same loader to not only load files but you are tyring to use it to target the movieClip you also want to play.
    The issue is loader.  The loader can only reference one load at a time.. otherwise you screw up your listeners and the ability to unload files properly.
    You should load all files in Your current system as its own variable so that while one loads you can still control a movie.
    So what type of end transitions do your files have?
    What exactly with this seems like youre getting an issue.. looking at it looks alright aside from the fact that some methods are not used at all by your class

  • Transitions between external swf

    I borrowed some code to create menu transition swfs in which
    as a button is pushed, it will look to see if the current swf is at
    midframe and if so, play the exiting animation of that swf and then
    load and play the intor for the swf for that button selection (hope
    that makes sense).
    However, I have enhanced my swf files to have a number of
    stop actions for submenu items for that catagory so the swf does
    not automatically just play to the midframe and stop. Is there a
    way that I can modify the code so that if the swf is not at
    midframe yet, I can have it "gotoandplay" midframe if that makes
    sense?
    Here's the code:
    on (release) {
    if (_root.currMovie == undefined) {
    _root.currMovie = "OrangeAll";
    container.loadMovie("OrangeAll.swf");
    } else if (_root.currMovie != "OrangeAll") {
    if (container._currentframe >= container.midframe) {
    _root.currMovie = "OrangeAll";
    container.play();
    Thanks,
    Dave

    what is the script that you have on the buttons on the bottom
    of the page that are supposed to load the new content? I think it
    may have something to do with your lockroot.

  • As3 for unloading external swf

    I know this is a much covered subject but after spending two days trying different
    things I have to admit I'm baffled.
    Got two swf I want connected to one another to act like a portfolio gallery - parent is called "portfolio" child is "portfolio_flash_2"
    Both have animation at the start with the child having a skip button (cause its animation is 20 odd seconds long). after the animation the thumbnails appear for the larger images.
    On both swf's the buttons I'm using to load (parent to child) and unload (child back to parent) appear after the animation - I can get the child to load from the parent but having problems knowing what proper code to use on the child button "page2_btn" to return to the parent.
    The code I'm using for the parent button is called "cloud" ;
    var myLoader:Loader=new Loader ();
    cloud.addEventListener(MouseEvent.CLICK, portfolio);
    function portfolio(myevent:MouseEvent):void{
           var myURL:URL Request=new URLRequest("portfolio_flash_page2.swf"
           myLoader.load(myURL);
           addChild(myLoader);
    I did also try adding this to the above with out any code on the button of the child swf;
    myLoader.addEventListener(MouseEvent.CLICK, unloadcontent);
    function unloadcontent(myevent:MouseEvent):void{
           removerChild(myLoader);
    but after the animation (when the code in the timeline is written) just clicking anywhere on the child swf ( not just the button) made the parent appear.
    I have also tried (in two instances when the last code above was present and removed) adding this code to the "page2_btn" I made for the child page;
    page2_btn.addEventListener(MouseEvent.CLICK, removeSWF);
    function removeSWF(e:MouseEvent):void{
            removeChild(myLoader1);
            myLoader1 = null;
    But that just resulted in the skip button on the child not working and the larger images playing as if it was a movie.
    Most of this code I got from the classrom in a book and from threads on here, did try countless others from other google searches but when your stupid your stupid. So if any body could help out a learner I'd be most grateful.
    Paul

    cheers for your reply. got the decription and source faults below
    1061: Call to a possibly undefined method unloadAndStop through a reference with static type flash.display:DisplayObjectContainer. this.parent.unloadAndStop();  // if publishing  for fp 10,  else use unload()
    1059: Property is read-only.
    this.parent=null;  // this may not execute so it might be better to call a removeSWF function in the parent swf
    based on the code in the parent as shown in first thread, how would I include/call the "removeSWF function" into that script?
    To help sort this out I thought I'd include a photo of the timeline as there is three sets of script, and for all I know each might be conflicting with the other or something. (due to why the skip btn does not work for instance)
    in photo - the top layer contains the "skip" btn script where it skips to frame 216.
    the code highlighted is the "page2_btn" script and the script lower down is for the "showimage" function in ref's to the labels 1 to 4.
    I wish I was like you pro's and could see the problems instead of staying up til the late hours of the morning trying to solve stuff searching endless google searches - could you recommend a good book from learning the basic's of the AS3 - might help a great deal to learn them first but my first indention of using flash was for animation which I done for awhile without the AS.
    But I hope to display various animations I've done within external SWF such as this example so a book that covers it would be great.
    again cheers for any help.

  • Watching for a variable in an external swf

    Hi,
    I'm trying to load an swf game, and then repeatedly run a check to see if the game has ended by accessing one of it's variables.  Reading the forums and searching the web has gotten me this far:
    var myLoader:MovieClipLoader = new MovieClipLoader();
    myLoader.addListener(this);
    myLoader.loadClip("game.swf", 2);
    function onLoadInit(mc:MovieClip)
         trace('testing");
    _root.onEnterFrame = function() {
        trace(_level2.LOCAL);
    "testing" appears on the output window so I know it's being loaded correctly, the game is also playing correctly.  When I run the game in debug mode, it shows that the variable _level2.LOCAL exists and has a value, but the main loop just keeps kicking out "undefined."
    I appreciate any help.

    Ok I figured out that to access it I have to use: _level2._root.LOCAL.
    Now my question is if there is a better way to watch a variable than running a loop.
    Also I was wondering if it's possible to listen for a function call in the external swf.

  • External SWF or internal symbol for movie clips

    I'm creating a Flash interactive thing which is basically a couple minute animated intro and then a menu of products to choose from. You click on one of 12 products and get a little animation about how it works. So my question is where to put these 12 product animations? I was originally thinking to just put them in the main timeline and just jump to them with labels but I'm thinking that the timeline is going to get too hairy, it's already got a lot. Now I'm wondering what the best approach should be. Should I produce 12 external SWF movies to be loaded when clicked on, or should I just make each product animation an internal movie symbol and just add an instance from the library to my main timeline? Or is there any other approach that might be better for some reason?
    Thanks,
    ~peter

    yes, as i mentioned, guidelines can be given:
    1.  loaded objects won't display as quickly (unless they're preloaded) as embedded objects.  they must load before they can be displayed
    2.  using loaded objects decreases the size of the main swf (and therefore decreases the main swf's load time) when compared with embedding objects in swfs.
    and, as for loading vs embedding swfs, the above still applies.  but there's one over-riding factor when considering swfs:
    3.  embedded swfs have their actionscript, if any is present, disabled.  so, almost always, you load, not embed swfs.

  • Is there a script for an audio controller linked to an embedded swf?

    Is there a script for an audio player or controller that has some functions like play resume stop for an embedded swf file?  I would use buttons for this purpose but for some reason, when I click on the pause button on the pdf, and then click on resume, playback resumes five seconds before the point at which I paused. And i would prefer to rely on just using the built in player in the pdf but the quicktime player doesn't play the swf smoothly; it freezes.

    iTunes Folder Watch
    tt2

Maybe you are looking for