Main movie in AS2 and MC AS3

Dear all,
I have a main movie is coding AS2 which contains a movieClip called MC_header.
And I have an external movie is coding with AS3.
My question is :
Can i loadmovie the external movieclip in the main movie????
if yes, how?
thanks
MELAS

Nope. If the original movie is AS3 you can load in an AS2 clip and it will run as an AVM1 (ActionScript Virtual Machine 1, which understands AS1 and 2) Movie. But the AVM1 has no idea about AVM2 (which understands AS3) so you can't go the other way.
Even when you do load an AS2 into and AS3 file the communication between the main file and the loaded AVM1 movie is quite limited and you won't be able to control it the way you would if they were both of the same flavor -- if that is important to your project.

Similar Messages

  • Strange Error - Main Movie Suddenly Closes

    I'm not a Flash guy, but have an app to maintain which has a
    Flash front end.
    There is a main movie - background.swf and it loads a bunch
    of "sub" movies - mainly graphs and other panels of information.
    Something is sometimes causing the main movie -
    background.swf - to close, leaving just one of the graph movies
    still running. The graph movie then scales to take up 100% of the
    screen.
    Can anyone suggest where I might look to figure why this is
    happening?
    We're using Flash 6.0
    The app, at the time it fails, is invoking a backend servlet
    to get XML, and is maintaining a connection to Socket Server using
    an XMLSocket.
    We have 4 of these clients open (all opened from the same
    .swf) and only one of them is doing this.
    Is it possible for a movie to close itself?
    Thanks!

    Hi,
    I didn't have a removeChild() method in my Class at all as I
    didn't plan on ever removing the loader object.
    Kind regards,
    Mark

  • Do AS2 and AS3 all play together with Director?

    Hi,
    I am about to make some incremental changes to a AS2 and Dir CD UI design.
    I like the AS3 for making a new movie player and its handling of XML.
    I need to share variables between all of them.
    Do I need to worry about this mixed environment?
    Thanks,
    Jim

    Sean,
    Yes normally do that. I am in the paper/planning stage. I am trying to assign functions to Dir and Flash.
    It is simple (first) and elegant I am trying to design towards
    I am testing some of the feature with AS2 SWF right now. On rmore issue to debug, and I will need to make a descision on my souce for XML.
    I really want to use AS3 in the long run. Although AS2 is better for my newbie programmers (they really only change text strings and add instance names).
    AS3 stuff will be singletons that they never get to modify - play movies, run EXE's, open PDF's, goto URL's, tooltips, read XML (for them to supply unique info to external items), etc..
    Greensock has some exelent AS3 addons that make it easy to do all of these thing and other XML related (in my design) features and minimize memory use and leaks.
    Thanks

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

  • Is this a bug?: copied movie clip has wrong frame rate and ruins the main movie's sync

    Hello,
    I am trying to copy a movieclip with a frame rate of 30 frames per second to a movie that has a frame rate of 30 frames per second. Both movies are actionscript 3 movies. When I do this, my copied movie clip's frame rate reverts to 12 frames per second and all my audio synched animation is trashed. Then when I change it back manually to 30 frames per second it makes my main movie's stage animation go crazy at full possible speed and the audio is all out of sync. I have not set export for sharing or action script on this movie clip. I've tried other movie clips that are 30 frames per second and it is all crazy!
    Is this a bug? What can I do? I've got 100s of movie clips I need to make. I can't keep remaking them just because flash has a screw loose. I'll go crazy!
    -theGibler

    Oh sorry I goofed! My main time line is 12 fps! I can't belive I didn't see this before.

  • Both main movie and external swf preloader - confusion!

    Hi there!
    I have a webite with my main movie (88kb) and an external swf
    soundloop (1mb). I made a preloader, but it only loaded the main
    movie, meaning that after the intro, the soundloop would not start.
    I loaded the soundloop onto level 1, and then tried to make a
    preloader with this code (I thoguht it worked but it really was a
    total guess).
    stop();
    this.onEnterFrame = function() {
    bl = _level1.getBytesLoaded()+this.getBytesLoaded();
    bt = _level1.getBytesTotal()+this.getBytesTotal();
    if (bt<=0) {
    bt = 99;
    bar.gotoAndStop(Math.floor((bl/bt)*100));
    if ((bl == bt) && (bt>0)) {
    delete this.onEnterFrame;
    gotoAndPlay("Intro", 1);
    Now when I test the movie, everything loads, but when the
    soundloop is loaded after the intro, the preloader movie clip
    appears and starts playing and repeating itself!
    How on earth do I get rid of this?! You can see the problem
    here:-
    http://www.vanitee.co.uk/princess.swf
    Thanks in advance

    Please! Still in great need of help. Have tried all sorts
    =(

  • As2 and As3 on same Flash Player

    If i set AS2 codes to play in Flash Player 9, is it possible
    that this swf can load an As3 swf at the same Flash Player using
    As2 codes???
    These swfs both play in same virtual machine which is player
    version 9 but the other is coded with As2 and the other is coded
    with As3. How can an AS2 load a swf coded in AS3 on same Flash
    player?
    Is this possible?
    If yes, how? if no, why not?

    AS2 and AS3 swfs cannot exist in the same Flash Player
    virtual machine - each Flash Player instance (version 9 and
    greater) create different address spaces/virtual machines because
    the requirements of AS3 and AS2 are so different.

  • Remove attached clip and go to a frame on a main movie

    I am attaching a Movie Clip on a Main movie wthi sthis:
    exit_btn.addEventListener(MouseEvent.CLICK, fexit, false, 0, true);
    function fexit(e:MouseEvent):void{
        var mc:alert_mc=new alert_mc();
        mc.x=320;
        mc.y=210;
        addChild(mc);
    I need to make the Main movie go to frame 6 and remove the attached clip when I click on yep_btn button. The code on the attached clip is:
    nope_btn.addEventListener(MouseEvent.CLICK, cancelunloadexitb);
    yep_btn.addEventListener(MouseEvent.CLICK, unloadexitb);
    function cancelunloadexitb(e:MouseEvent):void {
        var snd:sound1 = new sound1();
        snd.play();
        this.parent.removeChild(this);
    function unloadexitb(e:MouseEvent):void {
         var snd:sound1 = new sound1();
        snd.play();
        I NEED CODE HERE
    function errorF(e:IOErrorEvent):void{
    trace(e);
    Any ideas?

    If that code is inside the alert_mc object, then you can try...
    function unloadexitb(e:MouseEvent):void {
         var snd:sound1 = new sound1();
        snd.play();
        MovieClip(parent).gotoAndStop(6);
        MovieClip(parent).removeChild(this);
    Another way to do it would be to just have the alert_mc dispatch an event that you assign a listener for in the main, and have the main event handler function for that listener deal with removing the child and moving on its own timeline.

  • Differences in AS2 and AS3 MP3 Playback?

    This works in AS2 and plays fine:
    var my_sound:Sound = new Sound();
    my_sound.loadSound("
    http://download.podango.com/mediatracker/1/67943/ApplePhoneShow_46.mp3",
    true);
    This is chopping in AS3:
    var snd:Sound = new Sound(new URLRequest("
    http://download.podango.com/mediatracker/1/67943/ApplePhoneShow_46.mp3"));
    snd.play();
    Is there something I don't know about how MP3's are handled
    in AS3?
    Thanks,
    bmorrise

    Crazy, right after reading your post I check my current
    project online using FireFox and IE 6 and noticed they are
    inconsistent. I am also loading an external image into Flash and
    with FireFox it seems that it doesn’t recognize the image
    instantly however with IE it does (hence with your issue it
    doesn’t know the width of the image). Comparing your code
    with mine, we are both using an onEnterFrame event handler and Fuse
    script. So those would be the culprits. I think you are using an
    older version of Fuse then I (I am using the latest version). With
    your code, you can use the MovieClipLoader class to retrieve the
    bytes loaded for the loading image instead of onEnterFrame. That
    might solve your issue. If I find out a solution I will post back
    here.
    But this is not uncommon, finding one browser acting
    different then the other, I have witnessed it several times.

  • AS2: Can main movie itself have a class?

    I know that it's possible to attach a class to a movieclip
    symbol.
    But how to attach a class to the main movie itself?
    What I want is to create a movie called GUI that will be
    loaded from a
    separate movie called loader:
    loader.swf is run by FPlayer and loads GUI.swf
    How can I embed a class GUI for the movie GUI so that the
    data of the class
    GUI is compiled inside GUI.swf and not inside loader.swf?
    Thank for your help
    Henri

    Thanks for your help.
    ?_lockroot?? Do you mean _root ?
    "myIP" <[email protected]> a �crit
    dans le message de
    news:e9b3or$4ih$[email protected]..
    > ?How can I embed a class GUI for the movie GUI so that
    the data of the
    class
    > GUI is compiled inside GUI.swf and not inside
    loader.swf??
    >
    > So I assume you understand that when GUI.swf is compiled
    it will have
    class
    > GUI data in it. And you don?t want to have the symbol to
    access class
    GUI,
    > correct? Then cant you created an instance of class GUI
    on GUI?s timeline
    like
    > below?
    >
    > var myGUI:GUI = new GUI();
    >
    > If you have done that and still have problems with it
    are you using
    > ?_lockroot??
    >
    >
    http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.ht
    > m?context=LiveDocs_Parts&file=00002482.html
    >
    > Or?are you thinking that you can compile another SWF
    from the
    FlashPlayer?
    > This I believe can?t be done. FlashPlayer is not a
    compiler.
    >
    >

  • AS2 : can main movie have a class?

    I know that it's possible to attach a class to a movieclip
    symbol.
    But how to attach a class to the main movie itself?
    What I want is to create a movie called GUI that will be
    loaded from a
    separate movie called loader:
    loader.swf is run by FPlayer and loads GUI.swf
    How can I embed a class GUI for the movie GUI so that the
    data of the class
    GUI is compiled inside GUI.swf and not inside loader.swf?
    Thank for your help
    Henri

    Thanks for your help.
    ?_lockroot?? Do you mean _root ?
    "myIP" <[email protected]> a �crit
    dans le message de
    news:e9b3or$4ih$[email protected]..
    > ?How can I embed a class GUI for the movie GUI so that
    the data of the
    class
    > GUI is compiled inside GUI.swf and not inside
    loader.swf??
    >
    > So I assume you understand that when GUI.swf is compiled
    it will have
    class
    > GUI data in it. And you don?t want to have the symbol to
    access class
    GUI,
    > correct? Then cant you created an instance of class GUI
    on GUI?s timeline
    like
    > below?
    >
    > var myGUI:GUI = new GUI();
    >
    > If you have done that and still have problems with it
    are you using
    > ?_lockroot??
    >
    >
    http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.ht
    > m?context=LiveDocs_Parts&file=00002482.html
    >
    > Or?are you thinking that you can compile another SWF
    from the
    FlashPlayer?
    > This I believe can?t be done. FlashPlayer is not a
    compiler.
    >
    >

  • I recently downloaded 2 movies in iTunes on my windows PC and movies will not play, they will open up to the main menu, mouse overs work as well as extra features.  However the main movies will not let you play.

    I recently downloaded 2 movies in iTunes on my windows PC and movies will not play, they will open up to the main menu, mouse overs work as well as extra features.  However the main movies will not let you play. On mouse over in itunes the 'play' buttion is not enabled, yet is however enabled on previously downloaded movies.

    For me I have follow several of the help articles. When I play the movie in iTunes the screen is black with no audio, the timer status says it is playing (although it does not work all the time). I am able to play and have audio on the extras. I tried to use just QuickTime to play the movie and that as well does not work. I have started iTunes in safe mode and when the movie would begin to play, iTunes crashes and I have to restart. I have tried fresh clean installs of iTunes as well as QuickTime with no luck.
    It looks to be a QuickTime problem however I cant verify that. Any help would be great.

  • How do you move or can I move Itune folders (Movies), (TV Shows) and (Home Videos) to other internal hard drives (running out of space) on my computer's main hard drive and have Itunes recongize where they are?

    I built my own computer which has 4 internal hard drives with 3 internal hard drives that are 3tb.  With my movies and tv shows, I need to know if I can move the Itunes folders (Movies, TV shows and Home Video's) and move each one of them to 3 seperate internal hard drives while Itunes can still find them to play with my apple tv.  Does anyone know how I can do it?

    While you can do that, it is not a feature of iTunes.  Put your movies on the external drive, then add them to iTunes by dragging the files to iTunes while holding the option (alt) key down so it leaves the files where they are located.  There are other ways to move them if they are already added but they can be more involved and tricky.  If it's just one or two try:  http://dougscripts.com/itunes/scripts/ss.php?sp=relocateselected

  • Convert AS2 swf to AS3 swf

    I have a swf (written in AS3) that loads other swfs into it.
    There are no issues when loading other AS3 swfs but there is a
    problem loading AS2 swfs. I get the following error:
    TypeError: Error #1034: Type Coercion failed: cannot convert
    flash.display::AVM1Movie@35d3a51 to flash.display.MovieClip.
    Is there any way to convert the AS2 swf into a AS3 swf so it
    will be compatible with my loader? I cannot go back and change the
    AS2 swfs because I do not have the fla files. Or is there any way
    to incorporate AS3 code that will load AS2 swfs properly? It seems
    hard to believe that Adobe would neglect this backwards
    compatibility issue. Thanks

    Hello Andrei1,
    Thanks for looking at my simple AS3 code. The AS2 swfs that
    I've been working (and having difficulties) with are components
    that I've purchased from places like www.flashden.com. Some are
    image transitions (such as "Dynamic Image Draw found at
    http://www.flashden.net/item/dynamic-image-draw/7532)
    while another is used to create a looped banner rotator animation
    (IMG_loop, a free d/l from www.afcomponents.net). I have another
    that uses an .xml file to configure a slideshow animation.
    You mention "needing to do more" if AS2 scripts inside its
    swf are to be run by the parent AS3 fla; what would these lines of
    code be?
    In researching my problem further I've since realized that
    most of these issues deal both with the version of AS used, as well
    as the version of the Flash player the fla is set up to animate
    for. In particular, the "Dynamic Image Draw" component requires
    that Flash Player 8 or 9 be used with AS2.
    Given that many of my purchased components are like this,
    I've since changed my main fla movie from AS3 back to AS2 and have
    learned that the scripting needed to call individual multiple swfs
    into it at various points in the timeline is MUCH simpler!!!!! One
    single, easily interpreted, line of code vs. 5 lines using
    variables and much more arcane (to me) function calls.
    I started my file with AS3 figuring that I'd be better off
    learning the new version of the language; much stress and
    forehead-rubbing later, I've seen just how much easier and
    understandable AS2 is to learn.
    I recognize that there are likely very strong arguments for
    the more structured coding approach used by AS3, but for someone
    like me who wants to generate customized Flash presentations with
    little fuss, I'm not qualified to make them.
    Perhaps this is a no brainer for those many flash gurus out
    there, but for me this tiny bit of wisdom has been hard fought for!
    That being said, is there an easy way to convert a swf file
    created using AS2 to something that AS3 can work/interact with?
    I've come across a free d/l product called actionscript bridge, but
    haven't been able to understand how to get it to work.

  • Dummy Guide needed for converting AS2 code into AS3

    I have to convert my existing AS2 code into AS3, but I might as well be reading chinese. I never even began to learn AS3, it was still fairly new at the time and the class ended before we had an opportunity to even touch on it. My major was not web design, it was the print side of design. I took an additional class, after I graduated, to learn web design and our teacher told us, basically, that we were designers, not coders so we won't be getting much into actionscripting, beyond the basics. At the time I was relieved, but looking back, I really wish we would have gotten more into it. Bottom line, I need to learn now.
    Is there ANYONE that can help me out? I will list my code below, buy I am way beyond lost any help that can be provided, I would be so grateful!!!!
    On the main timeline I have the basic..
    stop(); -- I found the AS3 version, but I don't know what I'm looking at. I get "not_yet_set.stop()" and there are are 8 options I can choose from. I just want the timeline to stop until I tell it where to go next. And what is "not_yet_set"
    Then I have my buttons, which are, basically...
    on (release) {
    gotoAndStop("Home");
    Or "gotoAndPlay("Whatever");"
    I also have buttons for scrolling...
    on (press) {
    play();
    on (release) {
    stop();
    AND
    on (press) {
    _root.AboutMe_Controller.gotoAndPlay(…
    on (release) {
    _root.AboutMe_Controller.gotoAndStop(…
    For the on(release) command, this is what I found as the AS3 version: not_set_yet.dispatchEvent()

    because that's really as1 code, you have steeper learning curve than going from as2 to as3.
    first, remove all code from objects, assign instance names to your buttons and you can then start on as3:
    // so, if you name your home button, home_btn:
    home_btn.addEventListener(MouseEvent.CLICK,homeF);
    function homeF(e:MouseEvent):void{
    gotoAndStop("Home");
    p.s.  the not_yet_set stuff is there because you tried to use script assist or some other actionscript shortcut.

Maybe you are looking for

  • Reporting issue (very urgent)

    Sr.No     Flt.NO     ORI- DES     Total Flts     TS OFF     FC     KC     TS Util      FC 1     IT101     BOM-BLR        20     2,680     400     2,280     2,165     230 2     IT103     BOM-BLR        20     3,216     480     2,736     2,322     245

  • Pricing Condition when Creating PO

    hi all, When i create a PO through ME21N in reference with a PR, some customized condition types  are missing. After click the 'update' button in condtions tab, the missing types would appear. Futhermore, if i create the PO without reference of a PR,

  • Scheduled cold backup in Oracle

    how to do a scheduled cold backup in Oracle 9i? somebody plz. help...

  • I can't print CS5 files from my Mac OSX (Mavericks). Can print from other applications. Help please?

    I can't print CS5 files from my Mac OSX (Mavericks). CS5 crashes when sent to print.  Can print from other applications (Word, etc.).

  • My machine crashed and after reboot, most windows are white.

    After my laptop locked up, I rebooted to find that most of the apps I use have blank windows, causing my computer to be unusable. This goes for Sparrow, Twitter, PSDs, Reeder, complex pages on Safari (Chrome works, which is interesting). Rebooting ag