Preloading in the swf itself AS3

Hello guys ;]
I need some help in AS3.
My problem is that I can't preload the content in the swf
movie itself.. I mean movie clips and images that are inside the
swf not external and so on.
In AS2 All I needed to do is this :
this.onEnterFrame = function() {
loadingAmount =
this.getBytesLoaded()/this.getBytesTotal()*60;
if (loadingAmount == 60 and sVars.loaded == true and
this.bigPicWidthsScript_mc.wVars.loaded == true) {
this.gotoAndStop(3);
delete this.onEnterFrame;
This is juat an example what used to work.. I copied this
part from a code I wrote time ago in AS2.
So all u had to do is put this code on frame 1 along with
some preloading graphics (small size), move all your movie clips u
want loaded before they actually show up and start your animation
to frame 2 as keyframe, and Put the ones who show up at the start
in your movie at frame 3 where you actually go when preloading is
finished.
So I want to do the same thing in AS3.. I've found tutorials
about preloading swfs images and so on but I don't need that.. I
need this one here.. so does anyone have any idea how to do that ?
I will be very grateful !
Waiting for replies,
Filip Nedyalkov
Also u had to set Export frame for classes = 2 (in the
publish settings),

The reason you need it is because you are using the .text
property on a member of the _root object. (I'm guessing but it
wouldn't surprise me).
About the import statement
This is a personal philosophy and I'm open to valid
suggestion here but the Flash Player looks at your code and builds
a list of all the different classes that will be required at
run-time and need to included in the compressed swf. If you an
import like this....
import flash.display.*;
you are in theory including all of the classes inside of the
flash display package. This is not actually the case. Even if you
include the entire package in your code, all you are actually doing
is telling Flash that this path/package is available for searching
for the classes you are using in your document. Flash is only going
to include a list of "necessary" classes when it runs its compile
for your swf so keep that it mind. It is actually better to include
the entire package set in my opinion thus playing it safe.
It is a known bug and issue with preloading code inside
IE6(7?) that prevents any kind of update being pulled from the
browser concerning a files download. I've only had this issue in
IE7 myself but this doesn't affect me or work since I typically
only use the top level of a swf as a container for individual swfs
which I load in using the Loader class. You can read more about the
problem here (leads off to Actionscript.org forums with related
post on topic)...
http://pixelfumes.blogspot.com/2007/07/ie6-as3-preloader-events-failing.html

Similar Messages

  • Making .php accessible only by the SWF

    I have a PHP file that my flex is connecting to as its backend.
    How do I make sure that this PHP is callable only through the SWF and not by direct access to it from the web or some other illigitimate way?
    Does it involve changes to the SWF itself or the PHP itself or both? Any ideas are welcome.

    Sorry, the Mozilla developers didn't include a switch to turn that feature off. And the developers requested that I stop posting this "hack", as it may affect more than just the Private Browsing part of Firefox. The only real solution is to stop using Firefox, IMO.
    This worked in Firefox 3.5.x and 3.6.x versions: <br />
    Delete the '''nsPrivateBrowsingService.js''' file from Program Files > Mozilla Firefox >> Components folder.
    In Firefox 4.0.x, that file was moved into the '''omni.jar''' file which needs to be "un-packed" to get to that file to delete it, and then the '''omni.jar''' file needs to be re-packed, I have seen it posted that WinRAR is the program to use to work with the '''omni.jar''' container. I have used WinRAR to un-pack that "container" to examine the contents, but haven't tried using it to re-pack the omni.jar container and then tried to see if it worked after editing or removing a file.
    ''just an olde hot rodder from the 60's - '55 Bel-Air w/L-88, '57 Business Coupe w/327, '64 SS 409, '69 Z-28 - now playing in the streets of the internet with Firefox''

  • Returning the SWF url in AS3

    Hello. In as 2.0 there was a simple code like trace(_root._url) that would return the url of the actual swf file. What is the equivalent in AS3?
    The samples I found were all realted to window.location and other things, is there no simple code for this like in as 2?
    Thank you.

    Thank you. I found that it was this.loaderInfo.url
    It didnt work at first because I was trying with capital (Loader).

  • Can an AS1/2 swf loaded via Loader class tell the main movie (AS3) that it has run to the end of its timeline?

    If I load an external swf:
    my_loader.load(new URLRequest("abc.swf"));
    addChild(my_loader);
    abc.swf starts playing - how do I get it to tell the main movie that it reached the end of its timeline and finished playing?  Added bonus: the loaded swf is AS1 and the main movie is AS3.  I'm not sure if I could convert the loaded swf to AS3.
    Thanks,
    Sean

    I have not used this component but it may work for you:
    http://www.jumpeyecomponents.com/Flash-Components/Various/ActionScript-Bridge-91/

  • Can preloader sound settings affect the swf it loads?

    Thanks to kglad, my preloader music now fades out as the progress bar completes (the preloader code is below with the new code in bold).
    However, the new code added to the preloader seems to be affecting the sound in the main swf (the bigger swf that the preloader loads - 'lesson.swf' - which is a series of exercises).
    The exercises in the main swf have sound cues for right and wrong answers. The first time the main swf loads, there is no sound at all in the exercises. If I navigate to another page of the website and come back to the exercises, the sound is normal. But if I navigate to another page and come back a third time, the sound is audible, but reduced in volume. If I keep switching off the page and back to the page, the sound varies from no sound to full sound to about half the full volume.
    Is it possible that the code on frame 2 of the preloader, the code that sets the volume for the preloader music, is also applying to the main swf, so that whatever point the preloader progress bar gets to before the main swf loads becomes the volume of the main swf? The first time the preloader runs, the progress bar goes all the way from left to right and the sound volume fades to zero. Then the volume in the main swf is zero. The next time the preloader runs, it only gets a little way across before the exercises come up, and the sound in the exercises is full volume.
    Is there a way to fix this? I should add that if I comment out the new code that fades out the preloader music, all the sound works normally. Thanks in advance.
    var alreadyExecuted:Boolean
    if(!alreadyExecuted){
    alreadyExecuted=true;
    var s:Sound=new Sound(TitleScreen.Notes_mc);
    this.createEmptyMovieClip("container_mc", "100");
    my_mc = new MovieClipLoader();
    preload = new Object();
    my_mc.addListener(preload);
    preload.onLoadStart = function(targetMC) {
                    container_mc._visible = false;
                    loadingBar._visible = true;
                    loadingBorder._visible = true;
                    loadingText._visible = false;
                    loadingTitleScreen._visible = true;
                    loadingLessonName._visible = true;
    preload.onLoadComplete = function(targetMC) {
                    container_mc._visible = true;
                    loadingBorder._visible = false;
                    loadingBar._visible = false;
                    loadingText._visible = false;
                    loadingTitleScreen._visible = false;
                    loadingLessonName._visible = false;
                    gotoAndStop(4);
    my_mc.loadClip("lesson.swf", "container_mc");
    ACTIONS LAYER, FRAME 2:
    loadingBar._width = (container_mc.getBytesLoaded()/container_mc.getBytesTotal()) * 576.0;
    loadingText.text  = "Loading " + Math.round(container_mc.getBytesLoaded() / 1024) + " K  of "+ Math.round(container_mc.getBytesTotal() / 1024) + " K";
    var vol:Number=Math.round(100*container_mc.getBytesLoaded()/container_mc. getBytesTotal())
    if(vol>80){
    s.setVolume(5*(100-vol));

    your sounds in the loaded swf should be instantiated using something like:
    var somesoundinstance:Sound=new Sound(this):

  • Why the swf file cannot be played by itself?

    Hi,
    After I run the source code, I opened the bin folder and
    locate the swf file that has been packaged. I double click it but
    the program will not run. But if I double click the html file that
    embed the swf file, the program will run.
    Am I doing anything wrong?

    Thanks for your help. However the code is too big to show
    here and I am not sure the client would allow me to do it. I am
    trying to think to shorten it, but it's hard to find where to start
    since I don;t know what actially could cause the problem. I thought
    about using external xml data is the reason. I then tested one app
    with external xml and one without. Both of the two swf can rrun
    standalone.
    So what is the general guideline? Thanks again.

  • Preloader ignores external swf's actionscript

    Hey guys
    I have an External.swf file that is a video. The swf is 1135 frames long and running just fine by itself, stopping as I want when the actionscript says stop(); on the first frame and looping the end of the clip with gotoAndPlay(837).
    The preloader SwfLoader.swf linked to the External.swf shows the percentage of bytes loaded as it should. However, it runs the video (sound playing in the background) while the preloader shows the loading progress I think it's because it doesn't load the first frame first.
    Once the external swf is loaded, it plays the video again, still ignoring the first actionscript frame that says stop(); and the last frame gotoAndPlay(837).
    Thank you.
    Here is the preloader's actionscript on the first and only frame:
    import flash.geom.*
    import flash.display.*
    var loadurl:String = "External.swf";
    var nDepth:Number = 0;
    var nWidth:Number = 200;
    var nHeight:Number = 20;
    var nPadding:Number = 3;
    var cLoader:MovieClipLoader = new MovieClipLoader();
    var oListener:Object = {onLoadInit:onContentLoaded};
    var mcLoader:MovieClip = this.createEmptyMovieClip("Loader_MC", 0);
    var mcContent:MovieClip = this.createEmptyMovieClip("Content_MC", 1);
    var mcLoadBarBg:MovieClip = mcLoader.createEmptyMovieClip("LoadBarBg_MC", nDepth++);
    var mcLoadBar:MovieClip = null; //Duplicated later with mcLoadBarBg
    var txtPercLoad:TextField = null; //Create after duplication
    var cMatrix:Matrix = new Matrix();
    mcLoader._alpha = 0;
    cMatrix.createGradientBox(nWidth, nHeight, 0, nPadding, nPadding);
    cLoader.addListener(oListener);
    mcLoader.lineStyle(1, 0x000066, 100);
    DrawRect(mcLoader, 0, 0, nWidth, nHeight);
    mcLoadBarBg.lineStyle(1, 0x0000FF, 0);
    mcLoadBarBg.beginGradientFill("linear", [0x006699, 0x0066FF], [100,100], [0, 255], cMatrix, SpreadMethod.PAD);
    DrawRect(mcLoadBarBg, 0, 0, nWidth - nPadding*2, nHeight - nPadding*2);
    mcLoadBarBg.endFill();
    mcLoadBar = mcLoadBarBg.duplicateMovieClip("LoadBar_MC", nDepth++);
    txtPercLoad = mcLoader.createTextField("PercLoad_TXT", nDepth++, 0, 0, nWidth, nHeight);
    mcLoadBar._alpha = 80;
    mcLoadBarBg._alpha = 30;
    Translate(mcTextMask, nPadding, nPadding);
    Translate(mcLoadBarBg, nPadding, nPadding);
    Translate(mcLoadBar, nPadding, nPadding);
    mcLoadBar._xscale = 0;
    mcContent._alpha = 0;
    mcContent._lockroot = true;
    mcLoader._x = Stage.width/2 - mcLoader._width/2;
    mcLoader._y = Stage.height/2 - mcLoader._height/2;
    txtPercLoad._x = mcLoader._width/2 - txtPercLoad._width/2;
    txtPercLoad._y = mcLoader._height/2 - txtPercLoad._height/2;
    SetTextFormat(txtPercLoad, "0%");
    mcLoader._alpha = 100;
    cLoader.loadClip(loadurl, mcContent);
    _root.onEnterFrame = function()
       var nBytesLoaded:Number = mcContent.getBytesLoaded();
       var nBytesTotal:Number = mcContent.getBytesTotal();
       var nPercLoaded:Number = Math.round(nBytesLoaded / nBytesTotal * 100);
       if(nPercLoaded > 0)
          SetTextFormat(txtPercLoad, nPercLoaded.toString() + "%");
                mcLoadBar._xscale = nPercLoaded;
    function onContentLoaded(Void):Void
       //trace(_root + "::onContentLoaded");
       SetTextFormat(txtPercLoad, "100%");
       cLoader.removeListener(oListener);
       delete _root.onEnterFrame;
       delete oListener;
       delete cLoader;
       _root.onEnterFrame = function()
          //trace(_root + "::onContentLoaded::_root.onEnterFrame");
                var nInc:Number = 5;
                mcLoader._alpha -= nInc;
                mcContent._alpha += nInc;
                if(mcLoader._alpha <= 0) startLoadedContent();
    function startLoadedContent(Void):Void
       delete _root.onEnterFrame;
       mcLoader.removeMovieClip();
       mcContent._alpha = 100;
       mcContent.play();
    function DrawRect(mc:MovieClip, nX:Number, nY:Number, nW:Number, nH:Number, nR:Number)
       trace("DrawRect in: " + mc);
       if(nR == undefined) nR = 6;
       mc.moveTo(nX+nR,nY);
       mc.lineTo(nX+nW-nR,nY);
       mc.curveTo(nX+nW,nY,nX+nW,nY+nR);
       mc.lineTo(nX+nW,nY+nH-nR);
       mc.curveTo(nX+nW,nY+nH,nX+nW-nR,nY+nH);
       mc.lineTo(nX+nR,nY+nH);
       mc.curveTo(nX,nY+nH,nX,nY+nH-nR);
       mc.lineTo(nX,nY+nR);
       mc.curveTo(nX,nY,nX+nR,nY);
    function SetTextFormat(txtField:TextField, sText:String)
       var txtFmt:TextFormat = new TextFormat();
       sText = "Loading... " + sText;
       txtFmt.font = "Verdana";
       txtFmt.align = "center";
       txtFmt.size = 11;
       txtFmt.color = 0x000066;
       txtFmt.bold = true;
       txtField.selectable = false;
       txtField.text = sText;
       txtField.setTextFormat(txtFmt);
       txtFmt = null;
    function Translate(mc:MovieClip, nX:Number, nY:Number):Void
       mc._x = nX;
       mc._y = nY;

    Hi kglad,
    The external swf is a movieclip (flv embedded with an AS3 layer to control the timeline) exported as an swf file .
    The first frame of the external swf is just stop();
    I didn't know the proloader code was AS2 though
    The preloader works fine with the external swf locally, but the problem happens when I run them from my server.
    The external swf itself and its code works fine from the server, both combined don't, so I guess the problem comes from the preloader. Probably because of the AS being 2 insted of 3.

  • Attaching preloader to InDesign swf

    I exported an interactive swf from InDesign (content.swf). It is 7MB. I would like to add a preloader. I found a site that offered a recipe but the swf plays through the frames without stoping on the first frame.
    Further research indicated I was using AS2 and that the InDesign swf needs to be address in AS3. I am unable to find how to do this using AS3.
    Any help/recipies would be appreciated.
    Tina
    Here is they structure of the file with the preloader.
    Scene 1
    Layer 1: frame 2: actionscript
    loadMovieNum("content.swf", 10);
    _level10.gotoAndStop(1);
    Layer 2: frame 1: placed movie clip named: preloader
    preloader structure:
    Layer 1 has three frames
    frame 1:
    parent.stop();
    frame 2:
    kBytesLoaded = _parent.getBytesLoaded()/7045928;   
    kBytesTotal = _parent.getBytesTotal()/7045928;   
    kBytesRemaining - kBytesTotal - kBytesLoaded;   
    percentLoaded = 100 * kBytesLoaded / kBytesTotal;   
    percentRemaining = 100 - percentLoaded;   
    progress = percentRemaining;
    loadBar._xScale = percentLoaded;
    frame 3:
    if (percentLoaded < 99){ 
    gotoAndPlay(2);
    } else {
    _parent.play(); 
    stop(); 
    layer 2 has the progress text (progress) and the progress bar (loadBar)

    Since you will be loading AS3 files, you will need an AS3 preloader, otherwise, an AS2 preloader such as what you showed will fail in trying to an AS3 file, which is probably what you encountered in trying it.
    Here's a link to an AS3 preloader tutorial which I believe does what you want... loads the file separately...
    AS3 Preloader
    http://www.gotoandlearn.com/play.php?id=85
    but just so you aren't fooled by it all... When someone is playing your game, they have already downloaded your game.  So your protection is really only protecting your files against those who are either too lazy or lack the knowledge of how to get the file from their cache.  But some protection is often better than none.

  • Basic preloader for multiple swfs?

    I've looked at 100+ discussions around the web, not one good answer.
    I want some AS3 script equivalent to the following script (which I've made-up):
    loadallthefollowingswfs.intocache("home.swf", "products.swf", "contact.swf");
    I want a bunch of different swfs, all of which are in the same directory, to be loaded into the cache prior to viewing any of the swfs.
    I would like to put this script into the first frame of an index.swf
    Upon loading ALL of the swfs into the cache, it will move on to frame 2 of the index.swf and continue forward.
    All of the other discussions around the web state to either "have each swf load once it is opened" (I don't want that, I want them all preloaded into the cache prior to viewing any one of the swfs), or the discussions say "you should combine all of the flas into a single fla and just preload that one swf file (I don't want that either, I want seperate fla/swf files).
    Anyone have any suggestions on how to load multiple swfs into the cache when accessing one frame of an swf?
    Thank you.

    Greetings,
    Actually I just want to ask you guys about  how will I be able to use these snippet? I tried to insert a trace inside the else area of the if statement, but, didn't showed up any results in the output window...
    BTW: I just paste this snippet inside a new layer new flash file and saved it along with the two .swf files.
    var swfA:Array=["home.swf","works.swf"];
    var index:Number = 0;
    var targetMC:MovieClip=this.createEmptyMovieClip("targetMC",this.getNextHighestDepth());
    targetMC._alpha = 0;
    var mcl:MovieClipLoader=new MovieClipLoader();
    var lo:Object = {};
    lo.onLoadInit = function(target:MovieClip)
    index++;
    if(index<swfA.length)
    loadF();
    else
    // all are  loaded.  do whatever
    trace("Load Ok...");
    loadF();
    function loadF()
    mcl.loadClip(swfA[index],targetMC);
    here's my code
    var swfA:Array=["home.swf","works.swf"];
    var index:Number = 0;
    var targetMC:MovieClip=this.createEmptyMovieClip("targetMC",this.getNextHighestDepth());
    targetMC._alpha = 0;
    var mcl:MovieClipLoader=new MovieClipLoader();
    var lo:Object = {};
    lo.onLoadInit = function(target:MovieClip)
    index++;
    if(index<swfA.length)
    loadF();
    else
    // all are  loaded.  do whatever
    trace("Load Ok...");
    loadF();
    function loadF()
    mcl.loadClip(swfA[index],targetMC);

  • Preloader to protect swf?

    Hi All,
    Newbee question, I have a games website and I want a preloader to protect my flash games from being downloaded easily.
    I have found heaps of preloaders that work on the time line of game but offer no protection. Does anyone know where I can get a sample code for this or where I can buy a preloader from so that it loads before the game and if someone tries to save the page they get the preloader instead of the SWF?
    A  flash designer I know said its possible but hasn't got time to create one. He gave me this code in a FLA but when I embedd the swf in to the site it doesn't load anything just displays the preloader. Im sorry this is a really novice question, been working on this project for a year + now so your advice would be really helpful to me :-).
    This is the code he used on the preloader he made previously
    function setProgress(num)
        _root.percentDone = int(num);
    } // End of the function
    var methodName = "setProgress";
    var instance = null;
    var method = setProgress;
    var wasSuccessful = flash.external.ExternalInterface.addCallback(methodName, instance, method);
    this.attachMovie("root", "obj", 1);
    obj.progress.bar._xscale = 0;
    obj._y = 0;
    obj.onEnterFrame = function ()
        if (_root.percentDone != undefined)
            var _loc3 = Math.round(_root.percentDone);
            this.progress.bar._xscale = _loc3;
            if (_loc3 == 100)
                removeMovieClip (this);
                delete this.onEnterFrame;
            } // end if
        } // end if
    stop ();

    Since you will be loading AS3 files, you will need an AS3 preloader, otherwise, an AS2 preloader such as what you showed will fail in trying to an AS3 file, which is probably what you encountered in trying it.
    Here's a link to an AS3 preloader tutorial which I believe does what you want... loads the file separately...
    AS3 Preloader
    http://www.gotoandlearn.com/play.php?id=85
    but just so you aren't fooled by it all... When someone is playing your game, they have already downloaded your game.  So your protection is really only protecting your files against those who are either too lazy or lack the knowledge of how to get the file from their cache.  But some protection is often better than none.

  • Preloader problem with swf in different domains, not working online

    Hello
    I've an swf (loader.swf) hosted in dominioA.com, that justs loads a swf (movie.swf) hosted in dominioB.com.
    loader.swf has a preloader. When I execute the movie in flash, it works perfect, but when I upload the swf, the preloader doesn't works. I see 0% and after starts movie.swf normally.
    Here is the code of loader.swf
    Security.allowDomain("www.dominioB.com");
    Security.allowDomain("www.dominioA.com");
    var contexto:LoaderContext = new LoaderContext();
    contexto.applicationDomain = ApplicationDomain.currentDomain;
    var _preloader:MovieClip=preloader
    _preloader.barra.width=0;
    var _DOM:String="http://www.dominioB.com/movie.swf?anticache="+Math.random();
    var myLoader:Loader=new Loader;
    addChild(myLoader)
    myLoader.contentLoaderInfo.addEventListener(Event.INIT, initHandler);
    myLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onLoadPogress);
    myLoader.contentLoaderInfo.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
    myLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
    myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,onDataLoad);
    var carga=new URLRequest(_DOM);
    myLoader.load(carga, contexto);
    function onDataLoad(evt:Event) {     
              //inicializar datos
    function onLoadPogress(event:ProgressEvent){
         var cargado:int = event.bytesLoaded;
        var total:int = event.bytesTotal;
        var porcentaje:int = cargado/total*100;
        _preloader.txt.text = "Cargado: "+String(porcentaje)+"%";
        _preloader.barra.width = porcentaje*2;
    function httpStatusHandler(event:HTTPStatusEvent):void {
           if(event.status==404){                    
    function ioErrorHandler(e:IOErrorEvent):void {
    function initHandler(e:Event):void {
    Any idea??
    Regards

    movie.swf load perfect, and everything works. It doesn't seem to be a cross-domain issue.
    In loader.swf, all the actionscript is in the timeline, not in a class.
    Thanks.

  • Can't convert the swf to MovieClip

    I have a problem where i have an as3 project loading in an
    AS3 SWF which contains another AS3 SWF containing a videoplayer,
    and i'm getting the type coercian fail error as above.
    TypeError: Error #1034: Type Coercion failed: cannot convert
    work_client_overlay@39e9e0b1 to flash.display.MovieClip.
    at WorkClient/externalLoadComplete()
    at Function/
    http://adobe.com/AS3/2006/builtin::apply()
    at MethodInfo-37()
    usually when i load in an SWF I put something like
    var mc:MovieClip - new MovieClip();
    mc = MovieClip(ev.currentTarget.content) //where
    ev.currentTarget is a loader
    Then i find that i can trigger functions inside the loaded
    SWF by using
    mc.SomeFunction();
    but this isn't working in this case and the only reason i can
    see is that there is a videoplayer loaded inside the SWf i'm now
    loading in....
    Any help would be greatly appreciated.
    Greg

    I solved it. The main class of my loaded SWF needed to extend
    MovieClip and it was only extending Sprite.

  • I applied a template to a page with SWFs and now that page does not play the SWFs. Why?

    I applied a template to a page with SWFs and now that page does not play the SWFs (just a blank area where the SWF should be). When I detach the template it will play the flash file. This site will eventually be updated via Adobe Contribute. And I just discovered that when applying a template to a page that uses HTML datasets (Master/Detail),it no longer reads the Master/detail regions and displays a blank. Any thoughts?
    [Moved to Dreamweaver forum by moderator]

    Firstly, you shouldn't really 'apply' a template to a page, you should create a child page by going to FILE>NEW>Page from Template.  Too many things can happen when applying a template the way you are doing it. eg:; editable and non-editable regions not matching up and being asked where to place these regions and in all likelihood, you end up with 2 or more of the same region.
    When a swf file is inserted into a page, a corresponding Scripts folder is written automatically is stored in the root of the site - it is also linked to in the head of the document. What I believe is happening is that when you apply a template to the page, the Template has no idea that there is a swf file on the page and is not aware of the correct link to the Scripts folder.  If you do a test and add the swf file to the template page itself, I bet that the links to the swf and the scripts folder are correct - because DW knows the correct path to the script file.   Hence the reason the page probably works when you detach it from a template.

  • Load as2 swf in as3 swf

    Hi All,
    I am new to this forum.
    Can anyone tell me how to load as2 swf in as3?
    If this is possible,can anyone give me some sample example?
    Thanks
    Harshal

    You can talk to loaded AVM1 (AS1/2) SWF using LocalConnection. I used Grant Skinner's SWFBridge class in the past and worked very well:
    http://gskinner.com/blog/archives/2007/07/swfbridge_easie.html
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

  • Load AS2 swf into AS3 swf problem

    I have a flash with AS3 and inside this swf i load in a AS2 swf.
    to load swf works just fine, but the problem is when i load this i want to go to
    a specific part of it, for example i want to go to frame 3 in the loaded swf.
    i must control this from the AS3 swf, does someone know if this is possible?
    thanks in advance

    so can i do like this then to go to frame 3 in my loaded swf?
    MovieClip(ldr.content).gotoAndStop(3); ?
    sorry for being such an airhead
    thanks for helping me out =)
    Date: Sun, 7 Jun 2009 10:25:09 -0600
    From: [email protected]
    To: [email protected]
    Subject: load AS2 swf into AS3 swf problem
    no.
    if, in your loaded swf, you have a function f1() on the loaded swf's main timeline and you load that swf using a loader (say ldr), use:
    MovieClip(ldr.content).f1();   // to call f1() in the loaded swf
    >

Maybe you are looking for

  • External LDAP Server

    Hello. Is it possible to configure WebLogic to use external LDAP server, which in turn is "built in" in other WebLogic (at other physical machine)? And if it is possible, can I use OracleInternetDirectoryAuthenticator provider for this? (sorry for my

  • Sound Application Problems

    Hello, Ive been working on a small sound application that just plays music when is starts up. Ive got this: import java.applet.AudioClip; import java.applet.Applet; import javax.swing.*; import java.net.URL; class Soundf extends JFrame {      public

  • Returning a value from a query into an application item

    Hi, I have a insert statement defined in a process which I require that after inserting some data (from which the primary key is fetched from a sequence within a trigger on the table ra_assessments) that this key is then returned into the application

  • Many Schedulers in my applications

    Hi, After multiple deploymenteds, many scheduler instance has in my applications. How can delete all scheduler? My quartz.propertis is: #============================================================================ # Configure Main Scheduler Propertie

  • Spinning ball everything is suddenly moving alot slower

    I can not figure out what has happened to my Imac G5. Every time I try to print now I have to remove the printer and reinstall the software. It will print once and then I have to do it again. I tried downloading the newest drivers from hp that didn't