Embed AS3 swf into a AS2 FLA?

HI, I have a flash site designed in AS2 and want to embed a
AS3 video player in it. If I republish the AS2 site to AS3 the
website doesnt function, and if I load the AS3 swf into the
website, the Player doesnt function.
I need the AS2 functionality on the website and I need the
advanced AS3 functionality on the video Player.
Is there any way to get these two guys to talk to each
other?

Creating a 3rd fla, to load the AS2 Fla and the AS3 FLA just
aint gonna fly. This website is updated daily and its just too much
of a maintenance nightmare.
However, I do want to use Wabbits suggestion but I dont know
how to create a web object.
The GetURL function opens the swf on its own, which I dont
want to do. I want it to open the AS3 SWF in a small window within
the page.
Can someone help please? Thanks in advance,

Similar Messages

  • Nest AS3 swf into AS2 swf

    I purchased a flash template written in AS2, i have all files needed to customize this site, .fla, psd's you name it. I also purchased a photo gallery that is written in AS3 (did not know it was AS3 when purchased) . My question: is there any way to embed/nest the AS3 photo gallery, which i the swf file for, into my AS2 website?

    Per AS3 documentation:
    A single SWF file cannot combine ActionScript 1.0 or 2.0 code with ActionScript 3.0 code.
    SWF files written in ActionScript 1.0 or 2.0 cannot load SWF files written in ActionScript 3.0. This means that SWF files authored in Flash 8 or Flex Builder 1.5 or earlier versions cannot load ActionScript 3.0 SWF files.
    The only exception to this rule is that an ActionScript 2.0 SWF file can replace itself with an ActionScript 3.0 SWF file, as long as the ActionScript 2.0 SWF file hasn't previously loaded anything into any of its levels.

  • LocalConnection between AS3 App into Loaded AS2

    So I have an app that loads an AS2 Compiled SWF into it.
    The Main App (AS3)
    // the SWFLoader loads the ChildSWF, and on (Event.COMPLETE, openLocalConn);
    private function openLocalConn(e:Event):void {
       my_send_lc = new LocalConnection();
       my_send_lc.send("ConnCountryList", "publicMethod", "jo");
       my_send_lc.addEventListener(StatusEvent.STATUS, onStatus);
    private function onStatus(event:StatusEvent):void {
       switch (event.level) {
         case "status":
            trace("**** LocalConnection.send() SUCCESS ****" + event.toString());
            break;
         case "error":
            trace("**** LocalConnection.send() FAILED ****");
            break;
    Loaded SWFChild (AS2)
    trace ("Loaded Child SWF");
    var getArray_lc : LocalConnection = new LocalConnection();
        getArray_lc.client = this;
        getArray_lc.connect("ConnCountryList");
        getArray_lc.allowDomain('*');
    function publicMethod(jo:String) {
        trace('Eureka');
    So When I run the MainApp, The ChildSWF gets Loaded (traceout: Loaded Child SWF, it's calls the openLocalConn(), it Gives me another traceout: **** LocalConnection.send() SUCCESS ****,
    BUT I GET no traceout for the called publicMethod() in the ChildSWF in which I am supposed to see: Eureka

    LocalConnection will only work between two applications running on the same machine.
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/LocalConnecti on.html
    "LocalConnection objects can communicate only among files that are running on the same client computer, but they can be running in different applications — for example, a file running in a browser and a SWF file running in Adobe AIR."
    If you need to communicate between an app running on an iOS device and a swf in a browser on a computer look into the ServerSocket Class:
    http://help.adobe.com/en_US/air/reference/html/flash/net/ServerSocket.html
    Works a little differently than LocalConnection but will allow connections between two different physical devices (ie: 2 computers, a computer and a mobile device, 2 mobile devices, etc).  Since the iOS device uses the air runtime stuff it should have access to the ServerSocket Class while the browser swf can use a standard Socket to connect to the iOS device.

  • How to embed Flex swf into existing Flash?

    Hello,
    I am brand new to Flex, so I desperately need your help!
    I have an existing Flash file, written in Flash 8. When I
    open this file, it plays in Flash Player 9, the latest player I
    have installed on my machine.
    This Flash file tries to dynamically load about.swf, a stub
    file created by the designer. It works.
    I am a programmer, so I want to create my own about.swf in
    Flex 2 and then substitue the existing about.swf written in Flash
    with my about.swf written in Flex. The problem is that the existing
    Flash file just displays a blank when I try loading about.swf
    written in Flex.
    Is there any way to load SWF file written in Flex 2 into an
    Flash file written in Flash 8?
    Thank you for your help!!!
    Evgueni

    I think no.
    Flash 8 uses Actionscript 2.0, but Flex 2.0 uses AS3. I think
    these will be incompatible, as they use different VMs.
    If the two swf's exist individually, in their res[pective VM,
    you can communicate between them using LocalConnection.
    Tracy

  • Embed SWF into blog

    Hope this is the right place to ask.  I am having trouble embedding a SWF file that I created into my blog page. I tried to upload it to sites.google.com but the direct link to the SWF file is hidden behind an https:// that I can't get rid of and other people can't see it. How can I embed a SWF into blogger?  Are there other free sites where you can simply upload files and link directly to them?

    I have also had this issue since www.megaswf.com started charging for hosting services.  The solution I found was to host the file on Google Sites as you mentioned, however I created a FileCabinet page, using a blank google template (you can google how to do this) and this enabled me to host the file.
    Once the file was hosted, I simple looked up an appropriate html code to embed into Blogger, such as the one here: http://www.free-video-hosting.net/embed-flash.php
    When you paste in the url from the google site, it creates a ton of numbers at the end of the URL.  You need to delete everything after the .swf of your filename.  You need to replace the words "video-filename.swf"  with your url both times that it appears.
    I hope you have solved the problem by now and hope this is able to help some others...

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

  • How do I embed dynamic flash into dreamweaver?

    When I embed my swf into dreamweaver, it becomes a static movie. How do I make it dynamic (with buttons and links)? I realize this may be an elementary question, but I can't find any tutorials. Can someone point me where I may find assistance with this?

    The swf is dynamic on the server: http://www.sxsllc.com/media/sxsflashsplash.swf
    but the links do not work when embedded in my html document: http://www.sxsllc.com
    Can anyone offer any advice?

  • Loading an AS2 Swf into an AS3 project

    I have a need to be able to load legacy AS2 SWF's into a new
    AS3 project. I know that this is not readily possible, because you
    can only communicate between the two via the LocalConnection class.
    So, what I have done is to create an AS2 proxy SWF. This SWF will
    handle the loading of all legacy SWF's and act as a middleman to
    pass the function calls between the pre-compiled SWF and the new
    SWF using the LocalConnection class. The new SWF also needs to be
    able to load AS3 SWF's, though.
    Because of this, I have the need to detect the AS version of
    the loaded SWF. If 1 or 2, then change the source to the
    AS2Proxy.swf, if 3 then simply load it.
    I have written the following code. My problem comes in when
    the init event fires. Regardless of the compiled version of the
    loaded SWF, it always traces 3 as the AS version.

    Alright, I solved this problem, only to come up with many
    more.
    To solve this problem, I needed to point to the loaderInfo
    object of the UILoader's content. So:
    simulation.content.loaderInfo.actionScriptVersion.
    Now the proxy loads correctly, but I start getting errors
    immediately. Let me paste some code to show the next steps:
    First off. I immediately receive a StatusEvent error, though
    the path gets sent into the proxy and loads correctly.
    Next, when the complete event fires in the AS2 SWF - it sends
    a completion back up to let the AS3 SWF know that it finished (and
    any handling that needs to happen at that point.) I receive the
    following error:
    Error #2044: Unhandled AsyncErrorEvent:. text=Error #2095:
    flash.net.LocalConnection was unable to invoke callback loadSwf.
    error=ReferenceError: Error #1069: Property loadSwf not found on
    com.applied.flash.events.AS2Connect and there is no default
    value.

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

  • Is loading a as2 swf into my as3 flash site the problem here?

    My question is listed on another board here, but I am too inexperienced to understand how to fix my issue:
    http://forums.adobe.com/message/5045059#5045059
    I went on flashkit.com and a member there immediately said that it "sounds like the problem is using the AS2 swf loaded into the AS3 swf."
    If it is... this mean I will have to convert everything in the AS2 .swf (including the XML retrieval script) to AS3. I may need some help with that if that is the problem.
    So will AS2 swfs cause XML communication and retrieval issues if loaded with a loader script into an AS3 file?
    Everything works (the buttons are clickable and when you click on a square in the "thumbnails" scroller it displays the correct photo title and captions), except I just cannot see the actual photos in my XML gallery. I am truly clueless as to why this happens and I've searched for days straight and tried many things...
    You'll find all the details of my problem in the above link.
    Thanks!

    Its really not worth the trouble to get as2 working with as3 if your goal is to make an xml driven gallery. There are literally thousands of free examples/tutorials how to achieve that feature with 50+ LOC. Like this one.

  • Loading an AS2 swf into a AS3 project?

    I have an AS2 swf that is merely an image gallery made with a few components. I tried loading this swf into an AS3 project I am working on and it seems to load in and play properly in my AS3 file. I'm not looking to communicate with the AS2 swf with AS3 code, I just want to display it and be able to use the component buttons in the AS2 file that play or stop the images from being played.  I was wondering if using this will cause any potential issues in my AS3 project. It seems to render and work fine on my machine. Thanks

    as2 swfs will play without problem when loaded into an as3 swf.

  • Loading as3 swf files into as2

    im having a problem..i,e. i need to load an external swf which is in as3...and need it to be played in my as2 swf layout. with a time slider ,play, pause ,next, previous for that swf movie clip. pls give ur mail id i can sent my original files....................pls help me
    pls give ur mail id i can sent my original files.................[email protected] pls help me am doing my final year college ..........download tis jpg image and convert to rar r zip file.....project

    You'r not able to load as3 files into as2 files.

  • How do you load an AS2 swf into AS3?

    I think this is the way around my dilemma. How do you load and AS2 .swf into an AS3 file?
    thanks again!
    Steve

    check that code in your last thread:
    What is the  code to load a .swf file in AS3 on the same layer?

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

  • AS2 .swf to AS3.swf

    This may have been posted somewhere else however I have created a series of AS2 .swfs and now that I am using captivate 5 i need to convert them to as3.swf
    Can anyone help

    That's going to depend on whether or not there's any AS2 code in your SWFs and how complex that code is.
    Did you create these SWFs in Flash?  If so, what version?  If it's Flash CS3 or above you should be able to open the original FLA files and change your publish settings to output as AS3.
    If you've programmed a lot of interactivity into these SWFs as AS2 and you don't know AS3, you'll need to either learn it yourself or pay someone that does.

Maybe you are looking for