Controlling loaded swf rewind?

Hi there, I need to bring the playhead to the begining (rewind) each time the onsound button is clicked. But a loadimage function was used to load the swf. Any ideas?

Hi there! here is the script as is...I picked the project up from another coder and am still learning AS3 but think the loadimage function might be hindering the video control?
import flash.events.Event;
import flash.media.Sound;
import flash.media.SoundChannel;
import flash.media.SoundMixer;
SoundMixer.soundTransform = new SoundTransform(1, -1);
var imageLoader:Loader;
function loadImage(url:String):void {
    // Show Preloader
    preloader.visible = true;
    // Set properties on my Loader object
    imageLoader = new Loader();
    imageLoader.load(new URLRequest(url));
    imageLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imageLoading);
    imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
loadImage("trailer_02.swf");
function imageLoaded(e:Event):void {
    // Load Image
    imageLoadArea.addChild(imageLoader);
    var myTransform:SoundTransform=SoundMixer.soundTransform;
        myTransform.volume=0;
        SoundMixer.soundTransform=myTransform;
    // Hide Preloader
    preloader.visible = false;
    mc_Title.visible = false;
    mc_frame.mc_vignette.visible = false;   
    btn_OFF.visible = true;
function imageLoading(e:ProgressEvent):void {
    // Get current download progress
    var loaded:Number = e.bytesLoaded / e.bytesTotal;
    // Send progress info to "preloader" movie clip
    preloader.SetProgress(loaded);
///////////// BUTTON FUNCTIONS  /////////////////////////
btn_ON.visible = false;
btn_OFF.visible = false;
btn_ON.addEventListener(MouseEvent.CLICK, soundOnOff);
btn_OFF.addEventListener(MouseEvent.CLICK, soundOnOff);
function soundOnOff(event:MouseEvent):void
    if (event.target == btn_ON)
        btn_OFF.visible = true;
        btn_ON.visible = false;
        //SoundMixer.stopAll();
        var myTransform:SoundTransform=SoundMixer.soundTransform;
        myTransform.volume=0;
        SoundMixer.soundTransform=myTransform;
        else if (event.target == btn_OFF)
        btn_ON.visible = true;
        btn_OFF.visible = false;
        var myTransform2:SoundTransform=SoundMixer.soundTransform;
        myTransform2.volume=1;
        SoundMixer.soundTransform=myTransform2;

Similar Messages

  • (AS3) Controlling Loaded SWF

    I am trying to control a loaded .swf with the parent .swf. I
    do not know how to call the loaded .swf. I know how to control the
    parent with the child, but not the other way around. any
    suggestions would be great. thanks!

    call on the Loader object where the movie is being held.
    You'll need to typecast like this....
    MovieClip(Loader.contentLoaderInfo.content). My recommendation is
    to store that path to a variable
    var myLoadedMovie:MovieClip = MovieClip(
    varNameOfMyLoader.contentLoaderInfo.content);
    change out the varNameOfMyLoader with the proper variable
    name and you should be able to target the movieclip as you would
    have done in AS2.

  • Controlling loaded swf from main timeline

    Hello,
    I'm working on loading external swf files for ios. I am able to load the swf files and set them to visible or invisible in different frames. I am having trouble controlling the loaded swf files from the main timeline. Specifically, I would like to have a button on the main timeline, that when clicked will move a loaded swf to frame 1.
    Here is a code that loads one swf file:
    var myLoader1:Loader;
    var loaderContext1:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
    if(myLoader1 == null)
              myLoader1 = new Loader();
              addChild(myLoader1);
    myLoader1.load(new URLRequest("folder/file1.swf"),loaderContext1);
    myLoader1.visible = true;
    backbutton.addEventListener(MouseEvent.MOUSE_DOWN, backbutton1);
    function backbutton1(myEvent:MouseEvent):void {???????????? myLoader1.gotoAndStop(1);}  (this line does not work)
    (Once I load file1.swf, within the file1.swf I click a forward button to move to different frames. My question is: how do I code the 'backbutton' on the main timeline so that it causes the loaded file1.swf to go to frame 1?)
    Thank you for your help.

    sure.
    if the movieclip on the loaded swf's main timeline has reference mc, you would use:
    MovieClip(myLoader.content).mc.gotoAndStop(1);
    p.s.  you might find the following helpful,  http://kb2.adobe.com/community/publishing/918/cpsid_91887.html

  • Controlling loaded SWF inside a child

    Hello to everyone, may this question be too obvious to
    everyone, but I've been googling for hours without any luck.
    Have seen examples but they are not exactly as my scenario...
    Please, I need some help.
    I have loaded a SWF and attached to a MovieClip which exist
    in my current movie using the following code, and now I just want
    to access the loaded SWF to send it orders like play() or
    gotoAndPlay(); I have tried also: container=
    MocieClip(loader.content); instead adding child, but it trhows an
    error

    //this is your minimum code to load a file
    var url:String = "put your url here ";
    var request:URLRequest = new URLRequest(url);
    var loader:Loader = new Loader();
    loader.load(request);
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    loadComplete);
    function loadComplete(event:Event):void {
    addChild(loader.content);
    //you don't need all that code just concentrate on the bit
    you need; when this work then you can start putting the rest

  • Control loaded SWF after loadClip() in F9

    Flash IDE version: 9
    Flash player version: 9
    Using ActionScript 2.0
    I am rewriting some old MX code that typically loads a
    graphics-only SWF with several frames. Then I boss the SWF around
    using loadedSWF.gotoAndStop(), but now that breaks unless I compile
    as Flash 7 / AS2. To keep it reasonably current I hope to get this
    working in a higher version. We have darn near a jillion of these
    graphics SWFs and are in no mood to open them all up. If this has
    already been extensively discussed please help me with a pointer to
    the juiciest parts!
    Regards,
    Bestobell

    Hello, thank you very much for your reply (and apologies for
    my slow acknowledgement). The problem has been very peculiar as it
    affects some environments but not others, but your reply suggests I
    should look at clumsy mistakes first. I had suspected - 1. some
    security problem - 2. flash 9 discouraging too much rummaging
    about.
    In Flash IDE - works
    On my desktop in standalone player - fails
    etc. etc.

  • Load SWF into empty movieClip?

    Hello,
    Could anyone please point me in the right direction to find
    out how to load an external SWF into an already existing movieClip
    instance that is already placed on the stage? This is the way I've
    always worked in AS2, but I can't find how to do it in AS3. Can
    anyone point me to an example where URLRequest works with a
    specified movieClip instance?
    Thank you!

    I understand why you might think I was ignoring your advice,
    but this isn't the case. You're expertise is much valued and
    respected.
    My purpose for continuing to experiment with loading into a
    movieClip was an attempt to find an easy way to layer the SWF
    behind other elements, but as you know, although it works for this
    purpose, it doesn't allow control of the loaded SWF from the main
    timeline. For others struggling to learn as I am, here's a link
    where I found the answer to my question above:
    http://www.hostingforum.ca/776586-as3-controlling-loaded-swf.html
    The transition to AS3 is not as easy for some as for others,
    and there are new concepts to understand.
    Don't know what "nvm" means... curious, but might be better
    off not knowing ;) Thanks again for all the help you offer to all
    of us who are struggling.

  • 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

  • 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!

  • Controling a loaded swf with another loaded swf

    I have a blank stage with only AS that loads an swf
    addChildAt(0) and a second one addChildAt(1). This works. When the
    user interacts with (1) it calls another addChild (not indexed) and
    possibly that one loads another, depending on the choices made by
    the user. How can I get any of these to control that very first
    child that was loaded at (0)? I have run out of ideas.
    Some of the code:
    (on the main swf, nothing on the stage, only code that loads
    the next two)
    addChildAt(pHolder, 0);
    pLoader.load(pURLReq);
    pLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    pLoaded);
    and for the second:
    addChildAt(mHolder, 1);
    mLoader.load(mURLReq);
    mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    mLoaded);
    On the child of childAt(1), I have:
    function replaceSWF(e:MouseEvent):void
    pLoader = new Loader();
    pLoader.load(new URLRequest("p.swf"));
    pLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    placeNewClip);
    function placeNewClip(e:Event):void
    removeChildAt(0);
    addChildAt(e.target.content, 0);
    If I use this exact same code from that very first swf, the
    one that loads the first two external swfs, it works, but once I
    put it on one of hte other loadeds and sub loaded swfs, I can't get
    it to work. In the current state (0) it just makes everything on
    the stage disappear, so I figured then using the index of (1) would
    do it, but that or any other number results in absoluly nothing.
    Help! I am really out of ideas here.
    (the stacking looks like this) ---
    sub second loaded SWF <==== needs to tell first loaded SWF
    to unload then load a new swf at same index
    second loaded SWF <==== loads the next one above
    first loaded SWF <=== needs to be removed and another swf
    loaded at the same index
    mainSWF (loads two others) <=== code placed here works for
    first loaded SWF

    Kglad,
    I tried your code and ran into some problems with stopping
    the mc's, as the embedded mc's within the loaded swf need to stop
    as well. I found the attached code to stop the mc's, but now am
    having trouble with the sound objects.
    Here's the issue, I used this:
    this.soundPosition = currentMovie.loop1.position/1000;
    this.currentMovie.loop1.stop();
    ... for the sound object stop commands and listed a new one
    for each loop I was using. On the play button I started them back
    up again. This all works, but when I start them up again they all
    play, not just the one that is currently paused. Do you mind giving
    me some guidance with the for (obj in mc) loop? My loop experience
    is nil. What I want to do is have the code cycle through all of the
    loops to see which one is playing, then store that information in a
    variable, then pause and play the variable. Does that sound right?
    Thanks again for the help!
    -Sandy

  • LOADING/CONTROLING external SWFs

    I'm sure this has been asked before but i cant find anything
    that works for me. i have one MovieClip (View14) and i need to load
    lots of different things into it. I know you're supposed to use
    something with variables and addChild but i cant get anything to
    work.
    How do you reference a file that's not on the internet? (in a
    flash document that's also not online)
    How do you load SWFs into a movieclip? (and unload/switch
    them)
    Thank you :]
    i'm sorry i couldnt find this anywhere else.
    I've looked at the flash docs for MovieClipLoader and
    Component and they arnt helping me.

    just using the Loader class does the trick
    var movie:MovieClip = new MovieClip();
    addChild(MovieClip);
    var loader:Loader = new Loader();
    loader.load(new URLRequest('path to the swf'));
    movie.addChild(loader);
    that will work. and you can do that as many times as you
    want

  • Controling objects in a loaded swf at any given time

    I want to communicate with an object within a loaded swf. I know I can use this event listener and function to do so right when the swf has completed loading:
    imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadSections)
        function loadSections(event:Event):void
                event.target.content.mc.y+=2
    But I want to be able to manipulate a given object from the loaded swf at any time not just when the loading is complete. So basically as long as the swf is loaded, is there a way to manipulate objects and call functions within that swf?
    Both the external and host swf are AS3.
    Thanks

    I'll just try to add to what Ned already told you.
    IF (and only if) I understood what you're trying to do, all you want is press a button to load a new SWF and then click the loaded swf to unload it, right?
    If this is what you want, I think you have to understand that a loader IS a displayObject and it CAN be added to the displayList. It took me a lot of time to understand this so maybe this is where you're having trouble to "think" your application (and I guess it is because you're using holder.addChild(imageLoader);, which is not wrong).
    Since a loader is a displayObject that can be added to the displayList, you don't really need a another displayObject do hold it, like a holder.
    You can simple use addChild(imageLoader);
    Doing so, you will have a "loader" on stage working just like anyother displayObject. You can add listeners to it, you can remove it from stage, change its location and all.
    So, as Ned said, when you add a loader to the stage, if you want to remove it, go ahead an remove it!
    removeChild(imageLoader);
    //or, in your case:
    holder.removeChild(imageLoader);
    The only thing here (as far as my knowledge goes) is that the loaded content still exists EVEN if it doesn't exist on the displayList anymore. That's why you MUST unload it TOO.
    imageLoader.unload();
    Doing so you'll send the loader content for GarbageCollection and this will be deleted when more memory is needed.
    Another best practice I've noticed is that you should avoid from "creating" a loader from withing a function.
    Well, just to give you an idea of what you can do:
    import flash.events.MouseEvent;
    var req:URLRequest = new URLRequest("external.swf");
    var loader:Loader = new Loader();
    //A button we have on the timeLine.
    myBtn.addEventListener(MouseEvent.CLICK, onClick);
    function imageLoaded (e:Event):void {
         addChild(loader);
         loader.addEventListener(MouseEvent.CLICK, unloadAndRemove);
         trace (loader is DisplayObject);
    function unloadAndRemove (e:MouseEvent):void {
         e.target.unload();
         removeChild(loader);
    function onClick(e:MouseEvent):void {
         loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
         loader.load(req);
    I hope it helps.

  • External AS3: Loading swf video

    I need to load a  swf file, which is video player and video. The swf loads but the video contained in it does not play and the video controls are dead too. What do I need to do to load a swf containing a flv video so the video plays?
    I have a fla file connected by class to an external as file. Here is the external as file I am using:
    package final {
        import flash.display.Loader;
        import flash.display.Sprite;
        import flash.display.MovieClip;
        //import flash.text.*;
        // URLRequest class resides in flash.net package
        import flash.net.URLRequest;
        import flash.events.*;
        import flash.errors.*;
        public class ControllingSwfs extends Sprite {
            public function ControllingSwfs() {
                var swfContainer:MovieClip = new MovieClip();
                var swfLoader:Loader=new Loader  ;
                swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderCompleteHandler);
                function loaderCompleteHandler(evt:Event):void {
                    addChild(swfLoader);
                    swfContainer=swfLoader.content as MovieClip;
                    swfContainer.x=10;
                    swfContainer.y=20;
                    addChild(swfContainer);
                    //swfContainer.setText('SWF Loaded Properly');
                    stage.addEventListener(MouseEvent.MOUSE_UP, unloadAssetHandler);
                function unloadAssetHandler(event:MouseEvent):void {
                    swfLoader.unload();
                    stage.removeEventListener(MouseEvent.MOUSE_UP, unloadAssetHandler);
                swfLoader.load(new URLRequest('kitty.swf'));
                addChild(swfLoader);

    Now I am going to ask some dumb questions:
    What is the difference between a script that loads an external image or a swf file into a new swf,
    and a series of scripts that, when used together with a fla file, create a swf movie player (into which a target flv file gets played)?
    Can a loader script load an that swf file that contains a movie in an ActionScripted movie player? If so, does it need access to the movie player scripts?
    A little background:
    My functioning ActionScript 3 movie player relies on 4 scripts —
    1. a button manager script that controls play, pause, rewind, fast forward and stop
    2. a media control script that extends flash.events.Event
    3. a video script that extends MovieClip, targets the video to be played and controls and displays things like the scrubber
    4. a main script that integrates all the above and is the Class for the fla file
    Because I wanted to be able to load multiple flv movies in my flash swf, and I didn't know how to make the movie player do this, I thought loading the movies as swf files via a loader would be the solution.
    If I could get my scripted movie player to be able to load and play different movies (as does the Adobe Media Player), that would be satisfying. (I am not relying on the AMP because I am doing this project for a class (which is now finished, but I'm still trying).
    What I really need is working sample scripts so I can begin to understand how to assemble something like this. Oh, and the key is that I am required to do this all in external ActionScript 3, not on the timeline within the fla file.
    Is there somewhere online that I can visit that creates purely scripted flash stuff?

  • Using TextSnapshot class on a loaded SWF on an iPad

    Hello, I am creating an iPad app. I am loading SWF files using a Loader object, then placing them in a movieclip and setting a SWFLoaders source property to this clip. Before I add the clip to the SWFLoader control I am using the TextSnapshot class on it, to retrieve an array with the getTextRunInfo method.
    All this works fine when I test it on my desktop machine. However, on the iPad it causes the app to crash when a control using this clip is added to the stage. Can you still use TextSnapshot with an iPad, is there a workaround for this? Thanks for your help.

    We are a university. most of our books are SWF files. We have been using iPad/FlexBuilder 4.5 to successfully view the contents of these books.
    All navigation (i.e gotoandstop(page), etc work fine. Gestures for pageforward/pageback, zoom, pan work fine also.
    Not sure I understand your comment.
    However, there IS a specific problem with text snapshot. Below is a short code piece used to highlight text on a page.
    If you remove the failing line everything works fine.
    If you "debug" the iPad device everything works fine when you execute the code on the iPad
    if you create a release build, when the application starts and the "findtext" line is executed the "app" freezes. No error message. The try/catch does not seem to catch any error.
    This is something we really need for our app. If this is a bug how should we report it.
    Thanks for your help.
      public function highlightText(txt:String):void {
       var start_pos:int = 0;
       try {
        if (txt == null || txt.length == 0) { return; }
        infoMessage("highlightText: " + txt);
        allText = _libMC.textSnapshot;      
        allTexts.push(allText);  // no reason for this but must do to make work 
        start_pos = allText.findText(start_pos, txt, false);     <<<<<< Failing line ====================================
        infoMessage("start_pos: " + start_pos);
       catch (err:Error) {
        infoMessage("error: " + err.message);   
       finally {
        infoMessage("finally");

  • Loaded SWF not displaying

    I've created a 'plugin' SWF file in CS3 using actionscript 3.
    The purpose of this file is to be included as a postroll in the
    open source flash media player JW FLV/Media Player (
    http://www.jeroenwijering.com/?item=JW_Media_Player).
    I have heavily customized the media player libraries to do
    various new things/alter how things worked, and now want to be able
    to include the SWF file within this into a child sprite/movie clip.
    HOWEVER, the problem lies in that the media player is written
    completely in AS2, and therefore I have to use the MovieClipLoader
    class to load in the SWF. Updating the source to AS3 isn't an
    option unfortunatly, and downgrading the AS3 SWF to AS2 isn't an
    option either, mainly due to the fact I've learnt AS3, not AS2, and
    find it frustrating trying to find the AS2 equivalent to the AS3
    methods I know.
    The problem though lies in that MovieClipLoader does not like
    my SWF at all. Initially I was presented with a load of sandbox
    errors from when it was loaded in, which I then resolved so that no
    security errors are produced. However, whenever I load in the clip,
    the target sprite/clip is empty. I have gone through checking that
    no errors occur on load, and it reports that the loaded SWF has
    been initialized, yet I see nothing. Also, the code loading the SWF
    is not at fault as it loads any other SWF (even another AS3 SWF
    which just creates a rectangle) no problem.
    Oddly enough, using the MovieClip.loadMovie method works in
    one situation - when you load it into the root of the AS2 file.
    When loading it into an empty movie clip, the same problem of a
    blank clip occurs. The problem is not specific to the media player
    either, as it happened in any AS2 file where I was testing how to
    load in the AS3 SWF.
    If it is of any use, the sandbox errors produced by the AS3
    file when loaded into AS2 swf I had to resolve where to do with
    stage access for getting the stage height and width, and a
    Loader.content error when pulling out the BitmapData. These were
    resolved via setting the allowed domains policy and eliminating any
    reference to stage.stageHeight/With.
    Does anyone have any ideas on how to solve this? The only
    possible solution I've been able to think of so far since the AS3
    swf won't display is to play with the LocalConnection class as
    tests showed I can communicate between the AS2 and AS3 files, but
    this would have to be a last resort, and is less than ideal when
    there can be multiple instances of the player running (I would need
    to use unique connection names for each instance so as to prevent
    player A interacting with player B, and also as only one of the
    players can listen on the connection at once).

    I have the component in the top level also,
    I get this error:
    TypeError: Error #2007: Parameter child must be non-null.
              at flash.display::DisplayObjectContainer/addChildAt()
              at fl.controls::BaseButton/drawBackground()[C:\Program Files (x86)\Adobe\Adobe Flash CS5\Common\Configuration\Component Source\ActionScript 3.0\User Interface\fl\controls\BaseButton.as:615]
              at fl.controls::LabelButton/draw()[C:\Program Files (x86)\Adobe\Adobe Flash CS5\Common\Configuration\Component Source\ActionScript 3.0\User Interface\fl\controls\LabelButton.as:724]
              at fl.core::UIComponent/drawNow()[C:\Program Files (x86)\Adobe\Adobe Flash CS5\Common\Configuration\Component Source\ActionScript 3.0\User Interface\fl\core\UIComponent.as:1343]
              at fl.controls::List/drawList()[C:\Program Files (x86)\Adobe\Adobe Flash CS5\Common\Configuration\Component Source\ActionScript 3.0\User Interface\fl\controls\List.as:594]
              at fl.controls::List/draw()[C:\Program Files (x86)\Adobe\Adobe Flash CS5\Common\Configuration\Component Source\ActionScript 3.0\User Interface\fl\controls\List.as:474]
              at .tree::TreeList/draw()
              at fl.core::UIComponent/callLaterDispatcher()[C:\Program Files (x86)\Adobe\Adobe Flash CS5\Common\Configuration\Component Source\ActionScript 3.0\User Interface\fl\core\UIComponent.as:1532]
    I've checked the definitions for the tree component,
    The LabelButton and List I don't have much control over.
    I'm not sure how to fix this.  The xml is correct and loads easily if it's in the root document.
    The list component doesn't load the labels, It stops on the first one.
      What do I do next?

  • Using loadMovie to load SWF linked to FLV

    I am having problems getting a movie (SWF) with an linked FLV
    file to play when I use loadMovie to load it in.
    I have an .FLV file named vid_9.flv. I have embedded it into
    a Flash movie named vid_9.swf using Flash 8 Professional. I am
    using "Progressive Download from a Web Server" and no controls.
    When I play the SWF on the stand-alone player (the FLV is in the
    same folder) it works great. Now when I call that SWF into another
    movie using
    swfHolder.loadMovie("SWFs/vid_9.swf");
    it shows it being completely loaded, but then never plays,
    all I get is a white screen. This is my second project in a row
    where this did not work. Any ideas as to why? Thanks for any
    help.

    onLoadComplete executes before the loaded swf's assets are initialized:  use onLoadInit.
    those function definitions in your loaded swf should NOT be in an onLoad method.  if they are defined on the main timeline of the loaded swf, use:
    var url:String = "scene05.swf";
            var movieClip:MovieClip = createEmptyMovieClip("movieClip", 0);
            var listenerObj:Object = new Object();
            listenerObj.onLoadInit = function (target_mc:MovieClip):Void {
                //It should execute these functions that are located in the onLoad event in the loaded swf.
                target_mc.initBackground();
                target_mc.initBackgroundWeg();
                target_mc.initVehicles();
                target_mc.initForeground();
                target_mc.initKnoppen();
            var movieClipLoader:MovieClipLoader = new MovieClipLoader();
            movieClipLoader.addListener(listenerObj);
            movieClipLoader.loadClip(url, movieClip);

Maybe you are looking for

  • How do I import my itunes library from an external hard drive to my MacBook

    I've bought a new MacBook today, my itunes is on my external hard drive which is hooked up to my Mac, I want to import the itunes onto my Mac but don't know how. Anyone know? Oh & I have no idea what operating system I have....

  • Close range with v1.8?

    Hi, I'm currently porting my code from OpenNI to KinectSDK. I understand that there is no way of getting multiple Kinect for XBox 360 sensors to work with SDK v2, so I'm forced to use v1, since I'm working on multi-Kinect setups. Now I ran into a ser

  • FEATURE REQUEST: Lasso Tool to help organize code into separate VI's

    Sometimes VI's can end up growing out of hand, and it is not so easy to re-organize sections of a VI into a separate VI. It would be fantastic if there was a tool we could use to select a portion of our code inside of a VI (see Lasso tool in Photosho

  • How Do I Change the Font Size in Design View?

    The font size when coding in Dreamweaver's "Design View" is too small. How do I change the size in "Design View" to make it bigger? I've found that you can change the code view in Preferences but it has no way to change the font size in Design View.

  • Logic 8 on Macbook Pro - fully loaded with 4 Gig rams - how does it run?

    Wondering what people's experiences using Logic 8 on a Macbook Pro are. I haven't bought one yet and deciding between the laptop and the Mac Pro tower. I play to only be recording one instrument at a time, primarily guitar and bass. Then using a lot