Movieclip Loader in AS3

hi,
i have a question
i download flash as3 demo version today
i already use flash mx 8 , and have to many projects and
components for Macromedia Flash MX 8 Professional.
so i test Flash CS3 . this is very great..
so i know that i can use my Flash 8 FLA (AS2) sources in
FlashCS3 (AS3).
but , i can not use AS2 and AS3 OR Flash 8 Component and
Flash CS3 Components together !
so i have a question , that : can i load an Flash8 ( AS2 )
with MovieClipLoader in AS3... ?!
( load old swf in new swf )!

in old version ( as2 )
i usef :
loadMovie("fileName.swf", "MovieClipSymbolaName")
how i can do it in new version

Similar Messages

  • Movieclips loader loads png but does not display image in ie

    hello, i have created a static class to deal with the loading
    of images, it works great. yesterday, i found an issue: i try to
    load png files (those pngs are generated with quasimondo's bitmap
    exporter), they do load, but they are not displayed in ie.
    it worked until recently. is there some specification about
    the png that i have to make sure that the png has? or is there an
    issue using the movieclip loader with ie?
    i included the actionscript class (save the code in an .as
    file), so if you want to test, write only this in the first frame
    of your code:
    import com.iCongo.utils.MovieClips;
    this.createEmptyMovieClip ("placeholder",
    this.getNextHighestDepth ());
    MovieClips.loadIMG (this.placeholder, "
    http://somedomain.com/somepng.png");
    that image will load, but in the context of my flash file
    where many many files are loaded at the same time, only the block
    generated by the bitmap exporter will not show.

    OOPS
    cancel that question. i ftp'd the file to the server again, this time setting the transfer type to binary and the png image comes up
    just like it should.
    john

  • The sound  with movieclip loaded from outside

    Hi.everybody...I have a probelm with sound working with
    movieclip loaded from outside. this movieclip is just working fine
    alone..but after being loaded to the other movie..the sound doesnt
    play any more.
    by the way,I loaded this movieclip with loadclip and also add
    listener on it.
    any suggestion,,please..thank u .

    try adding
    yourHolder._lockroot = true; //yourHolder would be the
    instance name of the holder MovieClip

  • MovieClip Loader class

    Is the MovieClip Loader class still available in CS3 or is
    there another way to do this?

    It is called the Loader class and it is very similar –
    and yet completely different!
    Of course you can always publish to AS2 and still use the MCL
    if you wish.

  • How to Load Website in Movieclip. Flash AS3.0

    hi, we need to load website in movieclip. (www.adobe.com). how to load the in flash swf file in the site.
    thks

    If you are creating an AIR application you can use the HTMLLoader class.
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/html/HTMLLoader.h tml

  • Acessing loaded swf movieclip sctructure on as3

    Hi, I'm using external swf files to add skins to an
    application. Currenlty,I'm loading isolated elements successfully
    by the use of the Loader class. However, now I want to load a more
    complex skin structure that will have some movieclips already
    placed on the loaded swf stage. The question is: when I load an swf
    that athe edit time, I placed some elements on stage and gave them
    instance names, how can I access this external swf movieclip
    structure? It's something like this:
    1. First, I create the external file by placing some elements
    on its stage, naming these elements instances, like "console_bar"
    and "console_button".
    2. Then, I load this swf using the Loader class (into a
    loader called "playerConsole", for example) and, whe it finishes
    loading I try to access the elements placed on stage:
    this.addChild(playerConsole);
    playerConsole.console_bar.x = 0; // won't work - how can I
    access this instance?

    This code generates an error when I try to compile:
    1119: Access of possibly undefined property console_bar
    through a reference with static type
    flash.display:DisplayObject.

  • How to load an AS3 swf file into a AS2 swf file?

    Hi,
    i am trying to display a swf file using AS3 in a flash site which uses AS2. I know that loading the swf file in the normal way, into a dummy movieclip (loadMovie) or into a new level (loadMovieNum), doesn't work. The AS2 based flash site doesn't understand the new file. Is there another way to get around this problem?
    Many thanks
    92 North Ltd
    Leeds website, graphic and web banner design
    Phone 0113 815 1158
    http://www.92north.com

    Thanks kglad. Will give that a try
    92 North Ltd
    Leeds website, graphic and web banner design
    Phone 0113 815 1158
    http://www.92north.com

  • How to swap movieclip with other content, in a movieclip loaded external

    Hi! I'm getting desperated.
    I started about 3 days ago trying to solve this problem,
    maybe i'm very noob!
    I have a main movie. Inside this, i load various externals
    swf's. One swf for a menu, another for a image presentation, etc.
    In the menu, i load various instances of another swf file...
    a button swf, and witch one has to have a different image as
    button.
    So inside the button, i have a layer with a button, but no
    shape or nothing, and in another layer, i have a movieclip to can
    swap by an image.
    So, the struct is like this:
    Main Movie
    . image_presentation
    . contact
    . menu
    . . button1
    . . . button
    . . . image
    . . button2
    . . . button
    . . . image
    . . button3
    . . . button
    . . . image
    . . button4
    . . . button
    . . . image
    So, button is only a swf file, with various instances.
    "button" inside the buttons, make the button efect, with a white
    border apearing on mouse over button. "image" is a movieclip
    created only for change with an image (button 1 = image 1, button 2
    = image 2, etc).
    How can i do this, controlling the images url's from the main
    movie?? I had tried a lot of ways, but i could do it.
    Please help.
    Thanks.

    sorry there but this system seems convoluted and unecessary.
    You should be able to achieve nearly any 'effect' using either a
    single button instance, or a movieclip instance used as a button,
    but should not need multiple instances to do so, or multiple swf
    files Each button symbol has three 'states' that you can apply
    different 'images' to to achieve an 'effect'. You can even put
    movieclips in a button state to animate something during the
    triggering of that state. It seems that you should be able to at
    least place all of the buttons within the 'menu' in a single swf
    (not to mention that they could all be within the main swf) instead
    of 'loading' them as individual swf files.
    What is it that you're trying to control? the 'images'? what
    do you want them to do, and how are you wanting them to be
    controled?

  • Tweens don't work in multiple external AS2 SWFs loaded by AS3 SWF

    When I try to load a single external AS2 SWF in an AS3 parent
    SWF, scripted tweens using the mx.tween class work fine. However,
    when I load two or more external AS2 SWFs, the first will work, but
    in subsequent SWFs the tweens do not animate. Does anyone have a
    solution?
    Related post:
    http://www.actionscript.org/forums/showthread.php3?t=147637

    SymTsb,
    So what is the code to do that? To delete the TWEEN variable?
    easeTime = .5;
    var day_handlerX:Tween = new
    mx.transitions.Tween(daynightlabel_mc, "_x",
    mx.transitions.easing.Regular.easeOut, daynightlabel_mc._x,
    (left_point+daynightlabel_mc_leftDifference), easeTime, true);
    day_handlerX.onMotionFinished = function() {
    trace("day_handlerX="+day_handlerX);
    trace("day_handlerX onMotionFinished triggered");
    delete day_handlerX;
    trace("deleted day_handlerX="+day_handlerX);
    does not work. the TWEEN object is still there.
    Can ADOBE say something??
    AS3 is ...

  • Multiple MovieClips Loading SWF From Same Array (Posted Code)

    Hey there,
    I'm currently working on a project that has eight separate movieclips (for loading content) on separate layers.  I have placed code in these mc's to randomly draw from the same array of 61 different swf's.  Each mc randomizes the array just fine, but here's the problem.  The code works great for one instance, but as soon as I add the code (including renaming) to the other mc's, the swf won't load/play.  I am not getting an compiler errors, and am kinda stuck as to what the problem may be.  Here's an example of the code I'm using.  It is the same for each mc, except I'm renaming the variables as well as the instances for each mc.  Thanks for any suggestions.
    Mike
    //filename = new Array("screen1.swf","screen2.swf","screen3.swf","screen4.swf","screen5.swf","screen6.swf" ,"screen7.swf","screen8.swf","screen9.swf","screen10.swf","screen11.swf","screen12.swf","s creen13.swf","screen14.swf","screen15.swf","screen16.swf","screen17.swf","screen18.swf","s creen19.swf","screen20.swf","screen21.swf","screen22.swf","screen23.swf","screen24.swf","s creen25.swf","screen26.swf","screen27.swf","screen28.swf","screen29.swf","screen30.swf","s creen31.swf","screen32.swf","screen33.swf","screen34.swf","screen35.swf","screen36.swf","s creen37.swf","screen38.swf","screen39.swf","screen40.swf","screen41.swf","screen42.swf","s creen43.swf","screen44.swf","screen45.swf","screen46.swf","screen47.swf","screen48.swf","s creen49.swf","screen50.swf","screen51.swf","screen52.swf","screen53.swf","screen54.swf","s creen55.swf","screen56.swf","screen57.swf","screen58.swf","screen59.swf","screen60.swf","s creen61.swf");
    //i = filename.length;
    //k=random(i)
    //_root.movieTarget.loadMovie(filename[k]);
    //movieTarget._xscale=80;
    //movieTarget._yscale=80;
    var fileNames:Array = ["screen1.swf","screen2.swf","screen3.swf","screen4.swf","screen5.swf","screen6.swf","scr een7.swf","screen8.swf","screen9.swf","screen10.swf","screen11.swf","screen12.swf","screen 13.swf","screen14.swf","screen15.swf","screen16.swf","screen17.swf","screen18.swf","screen 19.swf","screen20.swf","screen21.swf","screen22.swf","screen23.swf","screen24.swf","screen 25.swf","screen26.swf","screen27.swf","screen28.swf","screen29.swf","screen30.swf","screen 31.swf","screen32.swf","screen33.swf","screen34.swf","screen35.swf","screen36.swf","screen 37.swf","screen38.swf","screen39.swf","screen40.swf","screen41.swf","screen42.swf","screen 43.swf","screen44.swf","screen45.swf","screen46.swf","screen47.swf","screen48.swf","screen 49.swf","screen50.swf","screen51.swf","screen52.swf","screen53.swf","screen54.swf","screen 55.swf","screen56.swf","screen57.swf","screen58.swf","screen59.swf","screen60.swf","screen 61.swf"]
    fileNames.sort(function () {
        return Math.round(Math.random());
    trace("Random array: " + fileNames);
    var currentMovieNum:Number = 0    ;
    this.createEmptyMovieClip("container", _root.getNextHighestDepth());
    var mcl:MovieClipLoader = new MovieClipLoader();
    var mclListener:Object = new Object();
    mcl.addListener(mclListener);
    mclListener.onLoadInit = function(movieTarget:MovieClip) {
        trace("Preparing to play: " + fileNames[currentMovieNum]);
    movieTarget.loadClip(fileNames[currentMovieNum], container);
    movieTarget._xscale=80;
    movieTarget._yscale=80;
    this.onEnterFrame = function() {
        if (currentMovieNum == fileNames.length) {
            currentMovieNum = 0;
        } else {
            if (movieTarget._currentframe == movieTarget._totalframes) {
                mcl.loadClip(fileNames[currentMovieNum], movieTarget);
                currentMovieNum++;

    Thanks for taking a look at this.  The randomizer seems to work just fine, as here is a sample output from the trace:
    Random array: screen47.swf,screen2.swf,screen57.swf,screen21.swf,screen9.swf,screen49.swf,screen36.swf, screen17.swf,screen6.swf,screen59.swf,screen15.swf,screen12.swf,screen33.swf,screen25.swf, screen42.swf,screen22.swf,screen24.swf,screen40.swf,screen11.swf,screen19.swf,screen32.swf ,screen35.swf,screen7.swf,screen39.swf,screen23.swf,screen4.swf,screen1.swf,screen48.swf,s creen31.swf,screen45.swf,screen29.swf,screen18.swf,screen51.swf,screen14.swf,screen34.swf, screen10.swf,screen38.swf,screen26.swf,screen16.swf,screen13.swf,screen55.swf,screen37.swf ,screen44.swf,screen61.swf,screen43.swf,screen20.swf,screen28.swf,screen30.swf,screen56.sw f,screen50.swf,screen54.swf,screen53.swf,screen46.swf,screen58.swf,screen41.swf,screen8.sw f,screen5.swf,screen52.swf,screen3.swf,screen60.swf,screen27.swf
    Might you be able to lead me down a better path?  I'm currently unable to get this to function for multiple symbols.  The previous is the code that I've placed on the first keyframe of a movieclip with an instance name of movieTarget.  Works swimmingly for one, but once the code is placed on the other symbols on different layers, it seems to only work on the lowest layer in the project.
    M

  • FlashVar to as2 loaded into as3

    I am afraid I already know the answer to my question but I am
    hoping otherwise. Previously an AS2 movie loaded into an AS2 movie
    could get flashvar values through _level0 or _root. My problem is
    having an AS2 movie loaded into an AS3 movie and still letting the
    loaded AS2 have access to the flashvars. I can successfully get the
    flashvars into the AS3 movie so that isn't an issue. I searched
    around and couldn't find any posts that helped and if this has
    already been covered I would appreciate a point in the right
    direction.

    First off thank you for your replies, links and help.
    So my fears were correct, there is no easy solution. I was
    hoping that I could use loader variables to load flashvars to the
    loaded clip or something where I could still have the as2 continue
    to use _level0. The reason for keeping _level0 is the classic "I
    don't want to rewrite everything."
    Thanks again.

  • Loading Flash AS3/XML into Flex 3

    I'm seriously at a loss.
    I'm loading a Flash AS3 SWF into Flex via SWFloader and it
    will not load the xml data the file normally loads. The Flash file
    is fairly basic and loads XML data from a local file.
    I've tried all sorts of scoping within the Flash file
    pointing to the xml file just in case but still nothing. What do I
    need to do to get this file to read the XML through Flex 3?
    <mx:SWFLoader x="9" y="14" width="140" height="90"
    source="swfs/sponsors/top_sponsors.swf"/>
    The xml file is in the same directory.

    The migration of this file to proper AS3 is brutal. It would
    be easier to just rewrite the whole thing in flex. Screw it.

  • Movieclip load order FIFO or FILO

    Hi, I recently purchased Zinc to simply have more control
    over the window
    (placement, title, icon - that's all I wanted for this
    project!!) and it is
    causing issues with my program.
    I use the following code to create some movie clips:
    for (var i=0;i<count;i++)
    filePath = pstrFolderPath + swatchNameArray
    paLoadedSwatchClips.push(new swatch(this, pobjMainRef,
    pmcSWFHolder, i,
    filePath, theCounterValues));
    The swatch class has the following code that actually creates
    the clips:
    loadListener.onLoadInit = function(target_mc:MovieClip)
    trace(target_mc + ' is done loading' + ' !! ' +
    thisRef.pnID);
    var mdm = _global.mdm;
    mdm.Exception.DebugWindow.trace(target_mc + ' is done
    loading' + ' !! ' +
    thisRef.pnID, mdm.ASYNC)
    thisRef.pmcLoadedClip = target_mc; // Set reference for
    calling play and
    stop
    thisRef.pobjSetRef.mClipDone();
    // Store height before we put textfield on there
    thisRef.pnMyHeight = target_mc._height;
    thisRef.mCreateCounter(initialCount);
    mcLoader.addListener(loadListener);
    var thePath = _global.mdm.Application.path + swfPath;
    mcLoader.loadClip(swfPath, pmcButton);
    My trace statements in Flash are in order - 0,1,2.....
    I am using Flash MX 2004.
    When I run it through Zinc, and when customer support runs my
    files, the
    trace statements are reversed - 2,1,0
    I guess I'm wondering if load order has changed since 2004
    version... This
    problem is breaking this part of my program when I run it
    through Zinc, and
    want to know if it is Zinc, or an issue with Flash?
    Any help would be appreciated,
    Jason

    Update for anyone who cares...
    It seems flash 7 and 8 are different in how they load movie
    clips. Using an
    older version of Zinc(which uses player 7) works just fine.
    Seems to me,
    Flash 8 loads them first in last out, where Flash 7 loads
    them first in
    first out.
    Good to know for me at least!
    "Jason C Reynolds" <[email protected]>
    wrote in message
    news:[email protected]...
    > Hi, I recently purchased Zinc to simply have more
    control over the window
    > (placement, title, icon - that's all I wanted for this
    project!!) and it
    > is causing issues with my program.
    >
    > I use the following code to create some movie clips:
    >
    > for (var i=0;i<count;i++)
    > {
    > filePath = pstrFolderPath + swatchNameArray
    > paLoadedSwatchClips.push(new swatch(this, pobjMainRef,
    pmcSWFHolder, i,
    > filePath, theCounterValues));
    > }
    >
    >
    > The swatch class has the following code that actually
    creates the clips:
    >
    > loadListener.onLoadInit = function(target_mc:MovieClip)
    > {
    > trace(target_mc + ' is done loading' + ' !! ' +
    thisRef.pnID);
    > var mdm = _global.mdm;
    > mdm.Exception.DebugWindow.trace(target_mc + ' is done
    loading' + ' !! '
    > + thisRef.pnID, mdm.ASYNC)
    >
    > thisRef.pmcLoadedClip = target_mc; // Set reference for
    calling play and
    > stop
    > thisRef.pobjSetRef.mClipDone();
    > // Store height before we put textfield on there
    > thisRef.pnMyHeight = target_mc._height;
    > thisRef.mCreateCounter(initialCount);
    > }
    > mcLoader.addListener(loadListener);
    > var thePath = _global.mdm.Application.path + swfPath;
    > mcLoader.loadClip(swfPath, pmcButton);
    >
    >
    > My trace statements in Flash are in order - 0,1,2.....
    > I am using Flash MX 2004.
    >
    > When I run it through Zinc, and when customer support
    runs my files, the
    > trace statements are reversed - 2,1,0
    >
    > I guess I'm wondering if load order has changed since
    2004 version... This
    > problem is breaking this part of my program when I run
    it through Zinc,
    > and want to know if it is Zinc, or an issue with Flash?
    >
    > Any help would be appreciated,
    > Jason
    >
    >

  • Issues with loading flash as3 animation in Captivate

    Hello Everyone,
    I have a flash file that pulls together two external swf files and displays them one after the other. This flash file has only the AS3 code to display the two external swf files. The external swfs are in the same folder as the final flash file. When I insert the final flash animation into Captivate using the Insert-->animation feature in Captivate, and view the published the file, the swf file starts automatically playing right from the first slide till the end of the project. The swf file is actually placed in the second slide of Captivate. Has anyone had similar experience? Am I missing something?
    Thank you.

    In all probability there's something wrong with your AS3 code and it's not working once you add your loader SWF into a Captivate movie.  This may be due to the fact that the Captivate movie is also a Flash Movie Clip too.  So if your AS3 code has the loader looking for the other two SWFs at the same level it's never going to find them once you add it into Captivate because it's buried one level too far down.  Change your AS3 code to allow for this and things might start working.

  • ComboBox problems when in a MovieClip loaded at runtime

    Hello,
    I hope someone out there can help me with this problem: I
    have a ScrollPane that contains a MovieClip that to which I attach
    several other MovieClips at runtime in response to user inputs
    using attachMoveClip() (both MCs are in my library and set to
    export for actionscrip in first frame). Each of those MovieClips
    contains a ComboBox.
    At runtime, I attach the MovieClip containing the ComboBox,
    then I set the dataProvider property for the ComboBox to a list
    (Array) of data/label value pairs. I then try to set the text
    property of the ComboBox to a "Please select a value" message and
    then I add a couple of listeners.
    Setting the dataProvider property sort of works: the ComboBox
    displays the proper dropdown list when clicked, but nothing happens
    when I select an item from the dropdown list - i.e., the selected
    value doesn't display in the ComboBox's TextField.
    Setting the text property doesn't seem to work: the value
    doesn't display in the ComboBox's TextField, but oddly, if I trace
    the ComboBox's text property, it outputs the correct message.
    Also, none of the event handlers work at all.
    I tried all of the same code on a ComboBox that isn't created
    dynamically, and it all works.
    Here's the code. The first set of code is the part I need to
    get working. It sets up the ComboBox after the MovieClip it is
    contained in is attached to the parent MovieClip. The second set of
    code was my test code to see if this worked on a ComboBox that
    isn't created at runtime. It all works properly.

    Most likely the Combobox isn't fully loaded yet. In your code
    check if a property of the cb is undefined using an interval and
    proceed with the code when the property is defined.

Maybe you are looking for

  • When i customize my toolbar and close, the icons are not in the places i put them. how do i make my toolbar set up stay in place?

    below file/edit/view/history/bookmarks/tools/help menu line, on second line I have added icons for print, reopen closed tab, session manager, (xmarks)synchronize now, my xmarks, home,duckduckgo, woolik search, stumbleupon, you tube, do not track me,

  • Default prompt values in webI report???

    I am using BO XI 3.1 on BW universe, I have a prompt A in the prompt window which has many Lov's but user will freequently use only three values out of it. So I want to make those three values to be default for that promp A when ever the report gets

  • Adobe Photoshop Starter Edition 3.2

    i HAVE ALL MY PHOTOS IN STARTER EDITION 3.2, WHAT HAPPENS TO THESE PHOTOS IF I DONT WANT TO UPGRADE TO ANOTHER EDITION, I ONLY USE THEM TO VIEW AND PRINT, MY HUSBAND IS AN ARTIST AND I OFTEN PRINT PHOTOS FOR HIM AS A REFERENCE.

  • Getting keynote '09 animations to work when using powerpoint

    I have been using keynote 09 for a while to make my presentations. Unfortunately most places i present at have windows and therefore i have to present in powerpoint format. This causes me to have a number of compatibility issues especially with anima

  • Workflow Integration with IFS

    I was wondering how we get iFS connected with workflow "the easy way". Standard you get in workflow 2 examples of document management systems whereto you can connect but no iFS. So I was wondering If anybody here already did this integration, I guess