Previewing slides with external  SWF's

Hello.
I recently have been having problems with Captivate 4 and importing AS3 animations, in which once published the film will auto play and start all animations, regardless of where they are in my timeline. I did a bit of reading, and found out the way to get around this huge error is to use a custom flash loader.
So I developed a custom widget that allows me to specify the URL/filename of the animation and the size of the animation. When that widget is reached in the timeline, it loads and plays the animation automatically.
This works great, however since i'm referencing the URL locally (i.e. the url is simply 'animation.swf') this will only work when animation.swf is in the same directory as the Published Captivate file. I can't just preview the slide, I have to publish out the whole file.
So! my question is, does anyone know where Captivate stores its previewed published files? I'm hoping I can just throw my SWF's in there to have them play when I hit preview. Otherwise, any thoughts on a better way?

Hi Isometric,
I stumbled on this solution while  searching. Read this post on my  blog. Since you have a widget, the key is to use a linked widget. FYI ... the publish folder changes from project to project so it's not a reliable way to do this.
Whyves
www.flash-factor.com

Similar Messages

  • Fade in/out with external SWFs

    Hi All.. I"m very new to AS in general..
    I'm trying to have a simple slideshow with external SWFs that outomatic and onClick..I achieved it except the abrupt white space after the unloaded clip goes away... I have this code and I'm not getting any errors - but I mut not have it connected somehow because the fade out is still not there... Can someone please please help me with this... I really appreciate any help ahead of thime...
    //Import classes for easier use
    import fl.transitions.Tween;
    import fl.transitions.TweenEvent;
    import fl.transitions.easing.*;
    //Timer
    var slideDuration:uint = 8000;  // or use whatever
    var slideTimer:Timer=new Timer(slideDuration,0);
    slideTimer.addEventListener(TimerEvent.TIMER,autoAdvanceF);
    slideTimer.start();
    var btnA:Array = [one_btn,two_btn,three_btn];
    var previousBtn:SimpleButton = one_btn // use class type of your buttons
    function autoAdvanceF(e:TimerEvent):void{
    nextButtonF(previousBtn).dispatchEvent(new MouseEvent(MouseEvent.CLICK));
    function nextButtonF(btn:SimpleButton):SimpleButton{ // use class type of your buttons
    for(var i:uint=0;i<btnA.length;i++){
    if(btnA[i]==btn){
    return btnA[(i+1)%btnA.length];
    return null;
    //Load external SWF into main
    var Xpos:Number = 0;
    var Ypos:Number = 0;
    var swf:MovieClip;
    var loader:Loader = new Loader();
    var defaultSWF:URLRequest = new URLRequest("swfs/one_btn.swf");
    var target_mc:MovieClip = new MovieClip();
    addChild(target_mc);
    var target_mc2:MovieClip = new MovieClip();
    addChild(target_mc2);
    //load swf to movieClip
    target_mc.addChild(loader);
    //variables that store current content clip and current content indes
    var activeTarget:MovieClip = new MovieClip();
    loader.load(defaultSWF);
    loader.x = Xpos;
    loader.y = Ypos;
    addChildAt(loader,0);
    //Btns universal function (whenver any button is clicked, the loader will be removed
    function btnClick(event:MouseEvent):void {
        if (target_mc.alpha > 0) {
            target_mc.alpha -=10;
        if(target_mc2.alpha < 100) {
            target_mc2.alpha +=10;
    slideTimer.reset();
    slideTimer.start();
        previousBtn = SimpleButton(event.currentTarget);
        removeChild(loader);
        var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
        var myTween:Tween = new Tween(loader, "alpha", None.easeIn, 0, 2, 1, true);
        loader.load(newSWFRequest);
        loader.x = Xpos;
        loader.y = Ypos;
        addChildAt(loader,0);
    loader.addEventListener(Event.ENTER_FRAME, onEnter);
    // Movie level enterFrame event handler that will fade down object 1 (if it's alpha ishigher than 0) and fade up object 2 (if its aslpha is less than 100)
    function onEnter(event:Event):void {
        if (target_mc.alpha > 0) {
            target_mc.alpha -= 10;
        if (target_mc2.alpha < 1 ) {
            target_mc2.alpha +=10;
        loader.removeEventListener(Event.ENTER_FRAME, onEnter);
        trace ("the movie clip is faded in");
    /// Button Listerners
    one_btn.addEventListener(MouseEvent.CLICK,btnClick);
    two_btn.addEventListener(MouseEvent.CLICK,btnClick);
    three_btn.addEventListener(MouseEvent.CLICK,btnClick);

    The Sound Factory Studio wrote:
    Can I Fade in/out several tracks with the crossfade tool? I mean without selecting them and then add value...? just like in ProTools just selecting the regions and apply the fade tool???? VIP question
    No.
    To add crossfades or fade in/outs to multiple audio regions, you must do it from the fade parameter box, either entering numerically, or by clicking and dragging on the numeric value.

  • Clickable slide show with external SWFs

    Hi... I would really apprecaite some help with the slide show please.
    I have a slide show that loads 3 external SWFs. (The External SWFs have buttons and action script of their own as well )
    I've gotten the SWFs to load and to switch automtically as well as on the button Click (going to next SWF in array). What  I would like to do is the following:
    - Have the buttons 1,2 and 3 go to respective SWFs (and not just a next button option)
    Also, as far as transitions (just basic fade in and out) is that something I should do within the external movie Clip?
    Thank you very much I appreciate all the help. Here's my code:
    // Array of external clips to use. Variable index refers to next clip to be displayed.
    var clips:Array = ["page1.swf", "page2.swf", "page3.swf"];
    var index:int = 0;
    // Stuff to load swf files
    var thisLoader:Loader = new Loader();
    thisLoader.contentLoaderInfo.addEventListener(Event.INIT, doneLoading);
    var thisMC:MovieClip = new MovieClip();
    stage.addChild(thisMC);            // Add empty MC initially so the nextClip function can be generic
    // Removes old MC and gets the next one, waiting until when it has initialized beore adding it to the stage
    function nextClip():void {
        thisLoader.load(new URLRequest(clips[index]));
    // Tell AS that the loaded file is a movie clip and add it to the stage.
    function doneLoading(e:Event):void {
        stage.removeChild(thisMC);
        thisMC = MovieClip(thisLoader.content);
        thisLoader.unload();
        thisMC.addEventListener(Event.ENTER_FRAME, runOnce);
        stage.addChildAt(thisMC, 0);
        thisMC.gotoAndPlay(1);
    // When thisMC has finished - the next MC starts
    function runOnce(e:Event):void {
        if(thisMC.currentFrame == thisMC.totalFrames) {
            thisMC.removeEventListener(Event.EXIT_FRAME, runOnce);
            index = (index + 1)%(clips.length);
            nextClip()
    // "Next button" just calls a function that goes to the next file name (mod the number of files in the list)
    MovieClip(parent).bttn1_mc.addEventListener(MouseEvent.CLICK, playNext);
    function playNext(e:MouseEvent):void {
        nextClip();
        index = (index + 1)%(clips.length);
    Thank you!!!

    Have you ever successfully saved anything to that external drive? My first two thoughts are that the drive isn't formatted for the Mac or that you don't have rights to save to the drive.

  • Control mc with external SWF?

    Hello everyone,
    Ok, lets say I have two SWF files.
    In “SWF 1,” I have a movie clip.
    The movie clip in “SWF 1” loads in an external “SWF 2” file.
    Is it possible for me to have something (like a button) inside the external “SWF 2” with the ability to control something (like a movie clip) in “SWF 1?”
    If so what would the path to that mc look like?
    Thanks

    if both are as2 swfs, then you can reference the load-target movieclip in swf1 (the loading swf) from the main timeline of swf2 (the loaded swf) by using:
    this.
    so, if that load-target is on swf1's main timeline, you can reference swf1's main timeline by using:
    this._parent.
    and if there's a movieclip mc on swf1's main timeline, you can reference it by using:
    this._parent.mc1.
    etc.

  • Problem with Error 5005 and with external SWF loading

    I am creating a relatively simple 10-12 minute animation. I've broken the animation into 34 different movie clips that I control on the timeline by using a timer delay.
    When I try to export them all together I get the error:
    ",Line 1: Error 5005: Unknown Error optimizing byte code."
    However, when I split the presentation into two halves with the same exact frames and code I don't have the problem.
    I thought loading an external SWF at the end of the first movie would be a good way to connect everything. However, the SWF continuously loads and won't play through the way it looks when you open the actual SWF file.
    This is my code for the external loading:
    var xpos:Number = 0;
    var ypos:Number = 0;
    var swf:MovieClip;
    var myLoader:Loader = new Loader();// create a new instance of the Loader class
    var url:URLRequest = new URLRequest("aamc-2e-slide1.swf");// in this case both SWFs are in the same folder
    myLoader.contentLoaderInfo.addEventListener(Event.INIT, doneLoading);
    myLoader.load(url);
    function doneLoading(evt:Event):void
              trace("doneloading");
              swf = MovieClip(myLoader.content);
              stage.addChild(swf);
              swf.stop();

    I have the same/similar issue whether the stop is there or not.
    Yes, it is all on one frame.
    Without the stop, the SWF just continously loops on top of itself.

  • Problem with external .swf, please help

    Hello.
    I'm new here so cheers to all. Sorry if I chose wrong forum for posting this question.
    I'm newbie in Flash and started building flash website with some tutorial. Now, I built navigation and content with this lines of code:
    var myMenyArray = [najave, onama, asesoar, kontakt, ponuda, klub, arhiva];
    for each (var btn in myMenyArray){
        btn.addEventListener(MouseEvent.CLICK, onBtnClick);
    function onBtnClick(event:MouseEvent):void{
        pages.gotoAndStop(event.target.name);
    and then added this one for loading .swf
    var Xpos:Number = 150;
    var Ypos:Number = 180;
    var swf:MovieClip;
    var loader:Loader = new Loader();
    addChild(loader);
    function btnClick(event:MouseEvent):void {
    removeChild(loader);
    var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
    loader.load(newSWFRequest);
    loader.x = Xpos;
    loader.y = Ypos;
    addChild(loader);
    galerija.addEventListener(MouseEvent.CLICK, btnClick);
    Now, my gallery loads when I press "Galerija" in navigation like I wanted, but when I want to show Home or some other content from the nav bar, gallery.swf still appears in front of content.
    Can anyone help me with this? It's probably eas, I don't know, but I spent a whole night trying to fix that and I'm here now like last chance.
    Hope that I've explained right my problem.
    Thanks anyone who can answer me.
    Cheers

    use:
            var myMenyArray = [najave, onama, asesoar, kontakt, ponuda, klub, arhiva];
            var loader:Loader;
            for each (var btn in myMenyArray){
                btn.addEventListener(MouseEvent.CLICK, onBtnClick);
            function onBtnClick(event:MouseEvent):void{
            if(loader){
            removeChild(loader);
            loader=null;
                pages.gotoAndStop(event.target.name);
            var Xpos:Number = 150;
            var Ypos:Number = 180;
            var swf:MovieClip;
            function btnClick(event:MouseEvent):void {
    if(loader){
            removeChild(loader);
            loader=null;
            loader = new Loader();
            addChild(loader);
            var newSWFRequest:URLRequest = new URLRequest(event.target.name + ".swf");
            loader.load(newSWFRequest);
            loader.x = Xpos;
            loader.y = Ypos;
            galerija.addEventListener(MouseEvent.CLICK, btnClick);
    And for every frame stop(); where content should load.
    My gallery .swf is in the same folder with this .swf.

  • Problem with external swf loading

    this is the code I'm using that works
    onClipEvent(load){
    this.loadMovie ("2.swf", "b");}
    Text
    and when I use another swf to load, it won't work anymore.
    Any help would be apreciated

    you can't decrease the total time it takes for you external swfs to load.  you can start those swfs loading in the background (while on frame 1, for example) but you need to be careful to preload only 1 swf at a time and not restart its download if it's already been started.

  • Preview issue with external HDD

    Hi,
    I have a problem with Preview and external HDD. Preview doesn't recognize my external HDD, at least the pictures on it. When I try to open any image on External HDD, Preview says, that the file doesn't exist. But when I open the picture with Safari or Pixelmator or Firefox, it opens. What could be the problem?
    Sorry for my bad English.

    It didn't help. When I tried to add it on the privacy list, it says, that it couldn't be added because of unknown error. And i noticed, that when I open something in TextEdit or Pixelmator, they wont save it on the External HDD, but when I choose Save As... and from there choose my External HDD, theres no problems.
    Messy text but I hope You understand.

  • Communication with external swf?

    hi
    im loading in intro2swf with the following
    btn_cont2_mc.visible = false;
    addChildAt(intro_container_mc, 0);
    intro_container_mc.x=-400;
    intro_container_mc.y=-300;
    stop();
    introvisit();
    function introvisit ():void{
    if (introlevel == 2){
    lvlLoader2 = new Loader();                     // create a new instance of the Loader class
    url2 = new URLRequest("intro2.swf");
    lvlLoader2.load(url2); // load the SWF file
    intro_container_mc.addChild(lvlLoader2); 
    now the swf loads correctly and in the correct place however i have a btn on the stage that i wish to hide and at a certain point in my loaded swf i want to unhide the button using an enter frame event
    intro_container_mc.addEventListener(Event.ENTER_FRAME, added0);
    function added0(event:Event):void {
    if (intro_container_mc.currentFrame == 1){
    btn_cont2_mc.visible = true;
    MovieClip(this.parent).e_mc.cap_talk_txt.text="Stormy";
    I need to do it this way so that I can change the text at various points in the story of the swf i can change the text
    but whenever i try it, the button will not show or the text change, having problems communicating with swf, i have tried
    intro_container_mc.addEventListener(Event.ENTER_FRAME, added0);
    intro_container_mc.lvlLoader2.addEventListener(Event.ENTER_FRAME, added0);
    intro_container_mc.lvlLoader2.storm_mc.addEventListener(Event.ENTER_FRAME, added0);
    all of which have no effect, the animation inside the swf is kept in a movieclip called storm_mc
    hope you guys can help me fix this
    thanks
    fonzio

    hi kglad and thanks for putting my mind at rest as well as keeping me sane
    currently trying to remove the children added at this point (or the loaded swf)
    but im running into problems, its giving me a lot of displayobject errors when i try to remove child
    after the animation has finished and the user clicks the button this should happen
    function removelistd():void{
    removeChild(loader)
    btn_cont2_mc.buttonMode=false;
    btn_cont2_mc.removeEventListener(MouseEvent.CLICK, continuey);
    btn_cont2_mc.removeEventListener(MouseEvent.MOUSE_OUT, conty2Out);
    btn_cont2_mc.removeEventListener(MouseEvent.MOUSE_OVER, conty2Over);
    swf2Main_mc.storm_mc.removeEventListener(Event.ENTER_FRAME, added0);
    loader.contentLoaderInfo.removeEventListener(Event.COMPLETE,completeF);
    wondering if it is the loader that i should be putting above
    have tried swf2Main_mc and loader in all sorts of ways however keep getting this
    ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
    at flash.display::DisplayObjectContainer/removeChild()
    at MethodInfo-360()
    at MethodInfo-357()
    just need help cleaning up and then its done
    thanks in advance
    fonzio

  • FadeOut External SWF

    Hi..
    I'm working on a slide show with external SWFs. I got everything to work (almost evrything ) ...
    Whwat I'm trying to do is have a nice transition.. I have the Loading SWFs Fade in... but there's still a split second of the white space under... so I was trying to have the Unloading SWF FAde out wile Loading SWF is Fading in... or something close to that.. Can anyone please either tell me out... here's the code I'm using - Thanks a bunch ahead of time!!!:
    //Import classes for easier use
    import fl.transitions.Tween;
    import fl.transitions.TweenEvent;
    import fl.transitions.easing.*;
    import flash.display.Stage;
    //Timer
    var slideDuration:uint = 8000;  // or use whatever
    var slideTimer:Timer=new Timer(slideDuration,0);
    slideTimer.addEventListener(TimerEvent.TIMER,autoAdvanceF);
    slideTimer.start();
    var btnA:Array = [one_btn,two_btn,three_btn];
    var previousBtn:SimpleButton = one_btn // use class type of your buttons
    function autoAdvanceF(e:TimerEvent):void{
    nextButtonF(previousBtn).dispatchEvent(new MouseEvent(MouseEvent.CLICK));
    function nextButtonF(btn:SimpleButton):SimpleButton{ // use class type of your buttons
    for(var i:uint=0;i<btnA.length;i++){
    if(btnA[i]==btn){
    return btnA[(i+1)%btnA.length];
    return null;
    //Load external SWF into main
    var Xpos:Number = 0;
    var Ypos:Number = 0;
    var swf:MovieClip;
    var loader:Loader = new Loader();
    var defaultSWF:URLRequest = new URLRequest("swfs/one_btn.swf");
    loader.load(defaultSWF);
    loader.x = Xpos;
    loader.y = Ypos;
    addChildAt(loader,0);
    //Btns universal function (whenver any button is clicked, the loader will be removed
    function btnClick(event:MouseEvent):void {
    slideTimer.reset();
    slideTimer.start();
        previousBtn = SimpleButton(event.currentTarget);
        removeChild(loader);
        var newSWFRequest:URLRequest = new URLRequest("swfs/" + event.target.name + ".swf");
        var myTween:Tween = new Tween(loader, "alpha", None.easeIn, 0, 2, 1, true);
        loader.load(newSWFRequest);
        loader.x = Xpos;
        loader.y = Ypos;
        addChildAt(loader,0);
    /// Button Listerners
    one_btn.addEventListener(MouseEvent.CLICK,btnClick);
    two_btn.addEventListener(MouseEvent.CLICK,btnClick);
    three_btn.addEventListener(MouseEvent.CLICK,btnClick);

    When I first test it, it doesn't give any error, and only shows the blank page. However, than I guess when the slides are switching and the timer takes affect, these are the errors that start popping up..:
    TypeError: Error #1010: A term is undefined and has no properties.
        at main_fla::MainTimeline/loadComplete()[main_fla.MainTimeline::frame1:76]
    ReferenceError: Error #1056: Cannot create property onMotionFinished on fl.transitions.Tween.
        at main_fla::MainTimeline/loadComplete()[main_fla.MainTimeline::frame1:78]
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at main_fla::MainTimeline/autoAdvanceF()[main_fla.MainTimeline::frame1:32]
        at flash.utils::Timer/_timerDispatch()
        at flash.utils::Timer/tick()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at main_fla::MainTimeline/autoAdvanceF()[main_fla.MainTimeline::frame1:32]
        at flash.utils::Timer/_timerDispatch()
        at flash.utils::Timer/tick()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at main_fla::MainTimeline/autoAdvanceF()[main_fla.MainTimeline::frame1:32]
        at flash.utils::Timer/_timerDispatch()
        at flash.utils::Timer/tick()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at main_fla::MainTimeline/autoAdvanceF()[main_fla.MainTimeline::frame1:32]
        at flash.utils::Timer/_timerDispatch()
        at flash.utils::Timer/tick()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at main_fla::MainTimeline/autoAdvanceF()[main_fla.MainTimeline::frame1:32]
        at flash.utils::Timer/_timerDispatch()
        at flash.utils::Timer/tick()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at main_fla::MainTimeline/autoAdvanceF()[main_fla.MainTimeline::frame1:32]
        at flash.utils::Timer/_timerDispatch()
        at flash.utils::Timer/tick()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at main_fla::MainTimeline/autoAdvanceF()[main_fla.MainTimeline::frame1:32]
        at flash.utils::Timer/_timerDispatch()
        at flash.utils::Timer/tick()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at main_fla::MainTimeline/autoAdvanceF()[main_fla.MainTimeline::frame1:32]
        at flash.utils::Timer/_timerDispatch()
        at flash.utils::Timer/tick()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at main_fla::MainTimeline/autoAdvanceF()[main_fla.MainTimeline::frame1:32]
        at flash.utils::Timer/_timerDispatch()
        at flash.utils::Timer/tick()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at main_fla::MainTimeline/autoAdvanceF()[main_fla.MainTimeline::frame1:32]
        at flash.utils::Timer/_timerDispatch()
        at flash.utils::Timer/tick()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at main_fla::MainTimeline/autoAdvanceF()[main_fla.MainTimeline::frame1:32]
        at flash.utils::Timer/_timerDispatch()
        at flash.utils::Timer/tick()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at main_fla::MainTimeline/autoAdvanceF()[main_fla.MainTimeline::frame1:32]
        at flash.utils::Timer/_timerDispatch()
        at flash.utils::Timer/tick()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at main_fla::MainTimeline/autoAdvanceF()[main_fla.MainTimeline::frame1:32]
        at flash.utils::Timer/_timerDispatch()
        at flash.utils::Timer/tick()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at main_fla::MainTimeline/autoAdvanceF()[main_fla.MainTimeline::frame1:32]
        at flash.utils::Timer/_timerDispatch()
        at flash.utils::Timer/tick()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at main_fla::MainTimeline/autoAdvanceF()[main_fla.MainTimeline::frame1:32]
        at flash.utils::Timer/_timerDispatch()
        at flash.utils::Timer/tick()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at main_fla::MainTimeline/autoAdvanceF()[main_fla.MainTimeline::frame1:32]
        at flash.utils::Timer/_timerDispatch()
        at flash.utils::Timer/tick()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at main_fla::MainTimeline/autoAdvanceF()[main_fla.MainTimeline::frame1:32]
        at flash.utils::Timer/_timerDispatch()
        at flash.utils::Timer/tick()

  • Target paths in external SWF's?

    Hi, Im having problems with a flash based website that I am
    creating. It is essentially a gallery, using a shell file for all
    the navigation with external .swf's being loaded in for each image
    set to keep the overall file size low. I have it all working fine
    except for one weird problem, within the external .swf's there is
    another layer of navigation to move forwards and backwards through
    the main timeline.. it works fine as an individual .swf but when
    loaded inside the shell interface none of the buttons work.
    The only thing I can think of is that the paths are wrong
    when it is loaded into another file, for example: does "on
    (release) { _root.play();" on a button inside the external swf
    refer to the root of the external file or the root of the shell swf
    itself? What path am i suposed ot use to refer to items on the main
    timeline of an external .swf file?
    I may not have explained this very clearly, but I would be
    extremely greatful for any insights, thanks for your time

    yes scott, the _root in this case refers to the main movie..
    try using the "on(release) {this.play()}" or
    on(release){_root._LEVEL##.play()}
    where ## is the level Number that the external swf is loaded
    into..

  • Drag & Drop Functionality Doesn't Work in External SWF?

    Hi all,
    I'm currently a TA for a Flash course at my school.  We're using AS 2.0 and working with external SWFs.
    I think this might be pretty simple to remedy.  Well, at least I'm hoping!
    A student is having trouble with drag & drop functionality when it  is used in an external SWF.  Basically, in our drag & drop section,  we have a sheet of paper ("paper" MC) and an object we drag into it  ("object" MC).  When the object is released in the paper area, we go to  frame 2 of "paper" MC, which consequently has an animation.
    This works fine and dandy in said drag & drop section, but once the  drag & drop section is loaded into our main SWF via a MC  placeholder, the drag & drop functionality stops working.
    Here is the URL to the drag & drop section by itself:
    http://www.phayzed.com/flashkit/drag_for_animation.swf
    and here is the URL to the main swf, which loads the drag & drop SWF into a movieclip and causes it to work incorrectly:
    http://www.phayzed.com/flashkit/main.swf
    Now here is the code on the draggable object ("object" MC):
    on (press) {
            startDrag (this, true);
    on (release) {
            stopDrag ();
            if (this._droptarget == "/paper") {
                    _parent.paper.gotoAndStop(2);
                    _parent.object._visible=false;
    If any more info is needed, I'm willing to upload both FLA files.   Although, something tells me that this is a simple issue to resolve.
    Thanks a lot for any help!!!
    Cheers
    T

    with as2 you must convert that antiquated as1 code:
    on (press) {
            startDrag (this, true);
    on (release) {
            stopDrag ();
            if (eval(this._droptarget) == _parent.paper) {
                    _parent.paper.gotoAndStop(2);
                    _parent.object._visible=false;

  • Swf with external .as files not working in Captivate

    Hello,
    I am using Flash Professional CS5.5 & Captivate 5.5 (purchased with eLearning suite).
    When I insert swf animations into Captivate that have external .as files they do not work.
    Tried both insert animation & insert animation slide - same results.
    I placed the .as files in the same file as my Captivate project and have tried multiple setting options.
    The FPS are set to 30.
    I had the same problem with external audio files and had to embed the audio into my fla to get it to play in Captivate.
    Does Captivate just not allow external files?
    Any help/insight is appreciated!!
    Les-

    The most likely reason for this failure is that since your SWF is now embedded into another SWF (the Captivate project) the paths to the AS files need to be altered in Flash to allow for this.
    You need to investigate how this would be done in AS code if your Flash SWF was a symbol inside another Flash SWF.

  • Unable to load external swf which has runtime sharing with another swf.

    Hi,
    I am getting issues on loading external swf say "importer.swf" file into another swf file say "loader.swf" for second time like
    ReferenceError: Error #1065: Variable testSymbol is not defined. VerifyError: Error #1014: Class testClass could not be found.
    at global$init()
    In the external swf "importer.swf", i am trying to import the symbol "testSymbol" from another swf file say "exporter.swf", which exports through runtime sharing option for the symbols.
    I am having some buttons in loader.swf file and on each button click i am loading different swf files into the loader.swf after unloading the previous one.
    I am able to load and unload different swf files but unable to load the importer.swf file which is sharing symbols from external swf and that too for the second time i.e., when i click the button twice.
    When trying to debug with flash debugger, all the other swf files are being unloaded before loading of another swf but the swf which is sharing symbols/classes with another swf is not getting unloaded.
    Output when i am trying to load two files example and importer files into loader.swf file on two different button clicks. On first button click example.swf is loaded. On second button click , example.swf is unloaded and importer.swf is loaded which is successful. On first button click again importer.swf is unloaded and example.swf is loaded. On second button click again, example.swf is unloaded and importer.swf is loaded, here i am getting issues shown above.
    Attemping to launch and connect to Player using URL D:\runtime issue\loader.swf
    [SWF] D:\runtime issue\ loader.swf - 8181 bytes after decompression
    [SWF] D:\runtime issue\example.swf - 441708 bytes after decompression
    [UnloadSWF] D:\runtime issue\example.swf
    [SWF] D:\runtime issue\importer.swf - 1920 bytes after decompression
    [SWF] D:\runtime issue\importer.swf - 441708 bytes after decompression
    [SWF] D:\runtime issue\ example.swf - 441708 bytes after decompression
    [UnloadSWF] D:\runtime issue\ example.swf
    [SWF] D:\runtime issue\importer.swf - 1920 bytes after decompression
    ReferenceError: Error #1065: Variable xxxxxx is not defined.
    Debug session terminated.
    Code i am using
    b1.addEventListener(MouseEvent.CLICK, b1Clicked);
    b2.addEventListener(MouseEvent.CLICK, b2Clicked);
    var ldr:Loader;
    function b2Clicked(e:MouseEvent)
        if(ldr != null)
            ldr.unloadAndStop(true);
        ldr = new Loader();
        ldr.load(new URLRequest("importer.swf"));
        addChild(ldr);
    function b1Clicked(e:MouseEvent)
        if(ldr != null)
            ldr.unloadAndStop(true);
        ldr = new Loader();
        ldr.load(new URLRequest("example.swf"));
        addChild(ldr);
    If i try to open the swf using IE, i am not getting any issues at all. But i need to open this loader.swf in a air application. Also when i use loaderContext for the loader instance i am able to get rid of this issue but i cant use it in my application.
    So, please help me in resolving this issue.
    Thanks

    I got my answer. I had to append the photo url to the 'movie' value of the javascript embed method. Like this:
    <script language="JavaScript" type="text/javascript">
       AC_FL_RunContent(
          'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0',
          'width', '550',
          'height', '400',
          'src', 'lesson2',
          'quality', 'high',
          'pluginspage', 'http://www.adobe.com/go/getflashplayer',
          'align', 'middle',
          'play', 'true',
          'loop', 'true',
          'scale', 'showall',
          'wmode', 'window',
          'devicefont', 'false',
          'id', 'lesson2',
          'bgcolor', '#ffffff',
          'name', 'lesson2',
          'menu', 'true',
          'allowFullScreen', 'false',
          'allowScriptAccess','always',
          'movie', 'lesson2?photo=http://www.flash-mx.com/images/image1.jpg',
          'salign', ''
          ); //end AC code
    </script>
    Thanks,
    srb.

  • Problem with volume handle and external SWF

    Hello I'm having 2 problems.
    The first is that when loading an external swf in my main SWF I get this in the output window:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at audio_fla::list_1/frame1()
    at flash.display::Sprite/constructChildren()
    at flash.display::Sprite()
    at flash.display::MovieClip()
    at audio_fla::MainTimeline()
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at audio_fla::MainTimeline/frame1()
    But it still works. Its an mp3 player.
    The other problem is that the loaded SWF has a volume controller. When I test the external SWF by itself it works fine. When I load it on my main SWF when I start to drag the handle on my volume slider and MOUSE_UP outside the handle it still keep dragging the handle.
    The code of my main SWF is:
    import caurina.transitions.*;
    var _currentCategory:String = "";
    var percent:String = "";
    var loader = new Loader();
    loader.name="videoLoader";
    loadermc.visible=false;
    cat.addEventListener(MouseEvent.MOUSE_OVER, onOverCat);
    cat.addEventListener(MouseEvent.MOUSE_OUT, onOutCat);
    cat.addEventListener(MouseEvent.CLICK, onClickCat);
    btnback.addEventListener(MouseEvent.MOUSE_OVER, onOverCat);
    btnback.addEventListener(MouseEvent.MOUSE_OUT, onOutCat);
    btnback.addEventListener(MouseEvent.CLICK, onClickBack);
    cat.buttonMode = true;
    btnback.buttonMode = false;
    btnback.visible = false;
    function onOverCat(e:MouseEvent):void{
         Tweener.addTween(e.target, {alpha:.5 , time:.5});
    function onOutCat(e:MouseEvent):void{
         Tweener.addTween(e.target, {alpha:.25 , time:.5});
    function onClickBack(e:MouseEvent):void{
         loader.unloadAndStop();
         loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
         lcontent.visible = false;
         cat.visible = true;
         Tweener.addTween(cat, {alpha:1, time:1});
         btnback.buttonMode = false;
         btnback.visible = false;
         cat.buttonMode = true;
         toptxt.text = "SELECCIONE UNA CATEGORIA"
    function onClickCat(e:MouseEvent):void{
         lcontent.visible=true;
         cat.buttonMode = false;
         Tweener.addTween(cat, {alpha:0, time:1, onComplete:function(){
                                  cat.visible = false;                                                       
                                  btnback.buttonMode = true;
                                  btnback.visible = true;
                                       loaderTweenIn(e.target.name);
    function loaderTweenIn (c:String):void{
         var category:String = c+".swf";
         trace(category);
         loader.load(new URLRequest(category));
         loader.contentLoaderInfo.addEventListener (Event.COMPLETE, movieLoaded);
            loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, movieProgress);
    function ioErrorHandler(e:IOErrorEvent):void{
         trace("ioErrorHanlder: "+e);
    function movieLoaded(e:Event):void{
         trace("The movie has loaded");
         lcontent.addChild(loader);
         loadermc.visible=false;
    function movieProgress(e:ProgressEvent):void{
         loadermc.visible = true;
    //     percent=String(Math.floor(e.bytesLoaded / e.bytesTotal * 100)) + "%";
         trace("The movie is loading "+Math.floor(e.bytesLoaded / e.bytesTotal * 100));
    The code on my external SWF is:
    import caurina.transitions.*;
    volume_mc.slider_mc.buttonMode = true;
    var myXML:XML;
    var thb:Thbs;
    var myThumbs:XMLList;
    var totalThumbs:Number;
    var thumbHeight:Number=50;
    var i:uint = 0;
    var preloader:LoaderAnim;
    var yCounter:Number = 0;
    var container:MovieClip;
    var musicReq:URLRequest;
    var music:Sound = new Sound();
    var sc:SoundChannel;
    var currentSound:Sound = music;
    var pos:Number;
    var songPlaying:Boolean = false;
    var songlist:XMLList;
    var currentIndex:Number = 0;
    mc_sound.mute.visible=false;
    var xmlLoader:URLLoader = new URLLoader();
    ///////////////////////////PLAYLIST//////////////////
    function initMediaPlayer(e:Event):void{
         myXML = new XML(xmlLoader.data);     
         myThumbs = myXML.*;
         totalThumbs = myThumbs.length();
         trace("The total thumbs are "+totalThumbs);
         createContainer();
         callThumbs();
    xmlLoader.load(new URLRequest("audio.xml"));
    function createContainer():void{
         container = new MovieClip();
         list.ch.addChild(container);
         container.y = 0;
         container.x = 0;
         container.buttonMode = true;
    function onOver(e:MouseEvent):void{
         var t:Loader = Loader(e.target);
         Tweener.addTween(t, {alpha:.5, time:1});
    function onOut(e:MouseEvent):void{     
         var t:Loader = Loader(e.target);
         Tweener.addTween(t, {alpha:1, time:1});
    function callThumbs():void{
              var thumbURL = myThumbs[i].@thumb;
              var thumbTitle:String = myThumbs[i].@title;
              var thumbDesc:String = myThumbs[i];
              trace("Loading "+thumbURL);
              trace("Title "+thumbTitle);
              trace("Desc "+thumbDesc);
              var thumbLoader = new Loader();
              thumbLoader.load(new URLRequest(thumbURL));
              thumbLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbLoaded);
              thumbLoader.name=i;
              thumbLoader.x=5;
              thumbLoader.y=5;
              thb = new Thbs();
              container.addChild(thb);
              thb.thb_title.htmlText = thumbTitle;
              thb.thb_desc.autoSize = TextFieldAutoSize.LEFT;
              thb.thb_desc.htmlText = thumbDesc;
              thb.y = (thumbHeight+2)*yCounter;
              preloader = new LoaderAnim();
              preloader.x = thb.x + 20;
              preloader.y = thb.y+ 20;
              container.addChild(preloader);
              yCounter++;
    function thumbLoaded(e:Event):void{
         var thbx:Loader = Loader(e.target.loader);
         thb.addChild(thbx);
         thbx.addEventListener(MouseEvent.MOUSE_OVER, onOver);
         thbx.addEventListener(MouseEvent.MOUSE_OUT, onOut);
         container.removeChild(preloader);
         i++;
         if (i<totalThumbs){
              callThumbs();
         if (i==totalThumbs){
              startAudio();
    xmlLoader.addEventListener(Event.COMPLETE, initMediaPlayer);
    ///////////////////////////////////////AUDIO//////////////////////////
    function startAudio():void{
         songlist = myXML.*;;//this is the same as myXML.*;
         trace("This is the first song "+songlist[0].@song);
         musicReq = new URLRequest(songlist[0].@song);
         music.load(musicReq);
         sc = music.play();
         sc.addEventListener(Event.SOUND_COMPLETE, nextSong);     
    next_btn.addEventListener(MouseEvent.CLICK, nextSong);
    prev_btn.addEventListener(MouseEvent.CLICK, prevSong);
    pause_btn.addEventListener(MouseEvent.CLICK,pauseSong);
    stop_btn.addEventListener(MouseEvent.CLICK,stopSong);
    function nextSong(e:Event):void
         if (currentIndex < (songlist.length() - 1))
              currentIndex++;
         else
              currentIndex = 0;
         var nextReq:URLRequest = new URLRequest(songlist[currentIndex].@song);
         var nextTitle:Sound = new Sound(nextReq);
         sc.stop();
         sc = nextTitle.play();
         songPlaying = true;
         currentSound = nextTitle;
         sc.addEventListener(Event.SOUND_COMPLETE, nextSong);
    function prevSong(e:Event):void
         if (currentIndex > 0)
              currentIndex--;
         else
              currentIndex = songlist.length() - 1;
         var nextReq:URLRequest = new URLRequest(songlist[currentIndex].@song);
         var prevTitle:Sound = new Sound(nextReq);
         sc.stop();
         sc = prevTitle.play();
         songPlaying = true;
         currentSound = prevTitle;
         sc.addEventListener(Event.SOUND_COMPLETE, nextSong);
    function pauseSong(e:Event):void
         pos = sc.position;
         sc.stop();
         songPlaying = false;
         play_btn.addEventListener(MouseEvent.CLICK,playSong);
    function playSong(e:Event):void
         if(songPlaying == false)
              sc = currentSound.play(pos);
              sc.addEventListener(Event.SOUND_COMPLETE, nextSong);
              songPlaying = true;
              play_btn.removeEventListener(MouseEvent.CLICK,playSong);
    function stopSong(e:Event):void
         sc.stop();
         pos = 0;
         songPlaying = false;
         play_btn.addEventListener(MouseEvent.CLICK,playSong);
    ///////////////////////////////VOLUME/////////////////////////////
    var xOffset:Number;
    var xMin:Number = 0;
    var xMax:Number = volume_mc.track.width;
    volume_mc.slider_mc.addEventListener(MouseEvent.MOUSE_DOWN, sliderDown);
    volume_mc.slider_mc.addEventListener(MouseEvent.MOUSE_UP, sliderUp);
    stage.addEventListener(MouseEvent.MOUSE_UP, sliderUp);
    function sliderDown(e:MouseEvent):void{
         stage.addEventListener(MouseEvent.MOUSE_MOVE, sliderMove);
         xOffset = mouseX - volume_mc.slider_mc.x;
    function sliderUp(e:MouseEvent):void{
         stage.removeEventListener(MouseEvent.MOUSE_MOVE, sliderMove);
    function sliderMove(e:MouseEvent):void{
         volume_mc.slider_mc.x = mouseX - xOffset;
         if(volume_mc.slider_mc.x<=xMin){
              volume_mc.slider_mc.x = xMin;
         if(volume_mc.slider_mc.x>=xMax){
              volume_mc.slider_mc.x = xMax;
         var vol:Number = volume_mc.slider_mc.x*.01;
         var st:SoundTransform = new SoundTransform(vol,0);
         sc.soundTransform = st;
         trace("The volume is "+vol);
         if(vol==0){
              mc_sound.mute.visible=true;
         }else{
              mc_sound.mute.visible=false;
         e.updateAfterEvent();

    I found the solution.

Maybe you are looking for

  • IDOC- Diff. File format.xml.......Pls Help....

    Hi,    My scenario is that from R/3, they are sending ZACKXI IDOC to XI. In XI we have imported an xml named ROWSET in External Definition. Now I have mapped ZACKXI with ROWSET as XI would be able to receive ROWSET format from R/3. R/3>(ZACKXI IDOC)>

  • "Allow Insecure Authentication" not visible on SMTP preferences

    Good morning, The "Allow Insecure Authentication" checkbox is not visible on SMTP preferences on my sister's MacBook Pro running the latest version of Yosemite. I've found similar problem on a couple of Mac minis I have at the office. However, my Mac

  • DataSource Issue in BI7

    Hello guys, I am creating Generic DS  Z_ABC using VBAK table fo SD component. I am facing couple of problems while moving further, 1. When I try to Maintain Exract structure for this DS by hiding some Fields it wont let me save, it says "there are st

  • Cross-fade effect missing from transition effects

    I used to export slide-shows from image folders with QuickTime, and on Tiger and PowerMac PPC G4 that worked fine choosing cross-fade transitions. There was also the possibility to export slide-shows with Graphic Converter (using QuickTime effects),

  • Installing wine in x86_64 [SOLVED]

    I have some trouble installing bin32-wine from AUR on my x86_64 Arch machine. I downloaded the tarball and extracted it, then I ran makepkg in that folder and got a message about missing dependencies (lib32-...). I've fixed some dependencies, but the