AS2 loading swf that loads additional s AS2 swf into Flex

My loaded AS2 swf can not seem to load the AS2 swf using loadMovie() and loadMovieNum().

I have a file .mxml with a tag with an attribute of the source of mx:Image bound to a string variable. I can set this variable to a valid way to AS2 swf and swf file load as expected.

However, the AS2 swf contains one or more statements loadMovie() to load additional SWFs 'child' in empty movieClips that fails silently.

(I have to load several legacy/AS2 projects, I try to avoid the migration of these projects to AS3, also try to avoid incrustation of the SWF to the 'child' in a single AS2 swf).

I tried both loadMovie and loadMovieNum, I change the publication for local file access and network access settings, I tried to replace the mx:Image bound by a mx:SWFLoader tag, tag none of these work. I even tried to switch the compiler Flex setting - use network.

All the other features seem to work in the loaded AS2 swf.

I found many posts/articles as intercommunication between an AS3 Flex swf and loading AS2 swf, but it's not my problem. I need not communication, a few features.

Thanks in advance for any idea!

OK, once more, during 5 minutes walk away a problem proved to be invaluable. I started to think that maybe there is a known issue with loadMovie(). Even if I was trying to avoid to touch the source code of these sovereign wealth funds AS2, I decided that it would be useful to test replacing loadMovie() by MovieClipLoader.loadClip () statements.

It works! Even if it means that all the old AS2 files that I need to load will have to be revised, it is much less of a task of migrating to AS3 or incorporation of the swf file of the child in the movie alone. I hope at least that this will save someone else the frustration of trying to do the same thing.

Tags: Flex

Similar Questions

  • Loading a swf into an AS2 clip file

    I had some problems with loading a swf into a clip.  The code I use is as follows

    {We (Release)}
    contentbox.loadMovie("contact.swf",0);
    }

    It works fine on the loading plan, but it loads the swf file so that the upper left corner is at the center of the content area, pushing the bottom and the right side of the way of content off the screen.

    Looks like the contentbox registration mark is centered.

  • LOAD AN EXTERNAL SWF INTO A CLIP

    Hello.

    I work in a project that load several SWF into a main movie. I use this code and works fine:

    btn_que.addEventListener(MouseEvent.CLICK, presionado); 
    function presionado(Event:MouseEvent){
       //Crea una variable llamda cargador para que cree un cargador//
       var newMedia:Loader = new Loader();
       //Crea una variable para generar un clip vacio (anteriormente host)//
       var cont:MovieClip = new MovieClip();
       //Ruta donde esta la pelicula a cargar//
       newMedia.load(new URLRequest("que_es.swf")); 
       //Posicion X que va a tener//
       cont.x = 0;
       
       stage.addChild(cont);
       cont.addChild(newMedia);
    }

    But I want to load the swf file into a clip (called host), when the person in the button click (really my button is a movi clip).

    What should I do?

    Thank you...

    See the code below (read comments):

    btncerrar.visible = false;
    // declare variable in this scope
    // so that it is visible by other functions
    var newMedia:Loader;
    // container should be in upper score too
    // Sprite is more efficient
    var cont:Sprite;
    
    btn_que.addEventListener(MouseEvent.CLICK, presionado);
    function presionado(Event:MouseEvent){
       //Crea una variable llamda cargador para que cree un cargador//
       newMedia = new Loader();
       //Crea una variable para generar un clip vacio (anteriormente host)//
       cont = new Sprite();
       //Ruta donde esta la pelicula a cargar//
       newMedia.load(new URLRequest("que.swf"));
       btncerrar.visible = true;
       //Posicion X que va a tener//
       cont.x = 0;
       stage.addChild(cont);
       stage.addChild(btncerrar);
       cont.addChild(newMedia);
    
    }
    
    btncerrar.addEventListener(MouseEvent.CLICK, cerrar);
    function cerrar(Event:MouseEvent){
         btncerrar.visible = false;
         cont.removeChild(newMedia);
         newMedia.unload();
         newMedia = null;
    }
    
  • VMWARE ESX 4.1 Intalalion failed while loading additional driver

    I try to install esx 4.1 and while he reached to the point where it asks me to load additional drivers as NIC I put the CD of NIC driver, but it does not appear by clicking on 'Add' rather than it gives message "the CD provided is not a valid VMWARE ESX driver CD". I went to the command mode issued the command ls-l/dev/cdrom, but he said no directory, please help me I am very new to VMware.

    Welcome to the forum.

    my NIC realtek 8111D and TP-link TF-3200, I downloaded the drivers linux for them.

    ESX/ESXi is not Linux and drivers Linux won't work on it.

    You must have VMware driver, otherwise the unit does nothing.

    I know Realtek card does not work on ESX/ESXi...

    André

  • Load swf into a native window

    How to load an external swf into an external window? I use the following code, it works if I add the swf file at the stage of the original window, but not if I add it to the stage of the new window.

    import flash.display.NativeWindow;

    import flash.display.NativeWindowInitOptions;

    var newWin:NativeWindow;

    var init:NativeWindowInitOptions = new NativeWindowInitOptions();

    init. Resizable = false;

    init. Maximizable = false;

    init. Minimizable = true;

    function openWindow (): void

    {

    PvE = new NativeWindow (init); Initialize the Native window

    newWin.activate ();

    newWin.width = 800;

    newWin.height = 600;

    newWin.title = "my new first victory!"

    }

    openWindow();

    var swfLoader:Loader = new Loader();

    newWin.stage.addChild (swfLoader);

    var bgURL:URLRequest = new URLRequest ("file:///C:/Users/Siggy2xc/Desktop/Mass Media UI/Project/swf/standard.swf");

    swfLoader.load (bgURL);

    Yes, I tested with air 2.6, but your code should work for air 1.0 +.  I loaded a local swf using a relative path to the security settings are not relevant.

  • How to load several files column data into essbase using the rule of load.

    Hello

    I need to load a file of data into essbase, which includes data from several columns.

    Here is a sample file.


    Year, Department, account, Jan, Feb, Mar, Apr, may, June, July, August, Sept, Oct, Nov, Dec
    FY10, ministere1, account1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
    FY10, agencies2, account1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12
    FY10, ministere3, account1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12


    Thank you
    Sirot

    But this isn't an error as such, that is to say that no data values have been changed so that they possible already exist in the database.
    If there is no release, they should be in a file of errors.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • load data from csv file into table

    Hello

    I'm working on Oracle 11 g r2 on UNIX platform.

    We have an obligation to load data to the table to a flat file, but on one condition, need to make the comparison between filed primary key if the file is available then update another filed and if the recording is not available, we need to insert.

    How can achieve us.

    SQLLoader to load the CSV file data into a staging Table.

    Then use the MERGE SQL command to the lines of insert/update of table setting for the target table.

    Hemant K Collette

  • Cannot convert swf into fla files files

    Hello

    I tried to use Dreamweaver to convert a SWF file in a FLA file, so I can change it to CS 5.  But when I right click the placeholder for the file, it is not an option 'change in Flash '. What I am doing wrong?

    Thank you very much

    Rosemary

    If you only have the trial version of Dreamweaver, you have Flash? And if so, which version? The Dreamweaver trial version is the full version with a limit of 30 days, so the only reason for which I can see for "editing in Flash" is not is down to your version of Flash, or lack of.

    The guide that you referenced is CS5 and CS5.5. It indicates that you should also well Dreamweaver and Flash for this function to work. In addition, this function does not convert swf into fla that was your original question - it allows you to click on the swf file to then open the original FLA in Flash, then allowing you to edit and export in a SWF again.

    To clarify, to make this feature work, you will need:

    • Dreamweaver (CS3 or later)
    • Flash (CS3 or later)
    • The original FLA file

    Hope this helps you.

    Rik

  • import png asset.swf in flex

    Hello

    I have an asset.swf with the png and jpg inside, witch, I'm trying to import into flex.
    in the image properties dialog box, I attribute a class to each image: PNGImage and JPGImage, as an example...

    now I want to import images into flex:
    [Embed (source = "asset.swf", symbol = "JPGImage")]
    [Embed (source = "asset.swf", symbol = "PNGImage")]

    Although there is no problem with the JPGImage, when I try to import PNGImage, I get an error #2136 in flex.
    I can't import png in flex?

    Thank you

    :) and asking Mr. google (should have done earlier) I discovered, that this bug is already registered at adobe: http://bugs.adobe.com/jira/browse/FP-109

  • My old iphone 6s is completely broken, it does not or registry that it is connected when plugged into a computer. I'm able to recover photos from the SIM card with an adapter USB SIM card or through any other way?

    My old iphone 6s is completely broken, it does not or registry that it is connected when plugged into a computer. I'm able to recover photos from the SIM card with an adapter USB SIM card or through any other way? I also do not save anything with AllAccess, icloud, or through my computer as you would with a digital camera.

    The photos are not stored on the sims, sorry.

    You can always try the Recovery Mode, little to lose at this point. If it doesn't, I suggest taking it to an Apple Store for testing.

    Recovery mode:

    Turn off your iOS device.

    Plug charge cable to the computer only (not to the device yet).

    Open iTunes on your computer.

    Hold the button to power on your device and do not let go.

    Plug the cable into the device while keeping the power button.

    Wait for the computer to detect the device and wait that he eat.

    Restore as New first, then restore sauvegardΘ if you wish.

    https://support.Apple.com/en-us/HT201263

  • How do I do to get the slide to set up to go to the right and continue? I was up half the night and is not wrong. The only thing that I just did is plugged into the wall outlet and now I'm right back where I had problems. Why keep this product?

    How do I do to get the slide to set up to go to the right and continue? I was up half the night and is not wrong. The only thing that I just did is plugged into the wall outlet and now I'm right back where I had problems. Why keep this product?

    What do you exactly mean by "get the slide to set up go to the right and continue"? Can you give us a little more context and detail?

  • "unrecognized usb device": error message every time that a usb device is plugged into one of the usb ports

    "unrecognized usb device": error message every time that a usb device is plugged into one of the usb ports

    1. my laptop - acer aspire 5030 - has been having this problem for the last five months.

    2. I tried everything including changing service pack, as we have xp professional, he has recently upgraded to vista business 32-bit with service pack 1.

    3 tried all the methods start the laptop after a few hours, remove the battery, press the power button for half a minute, and so on.

    4. I finally he formatted a couple of times, but the problem is not.

    5. later, I improved the professional system of vista and installed the latest security patches, but the problem remains

    6. now, I started to update its drivers, although the device is identified to be connected, but is not recognized. "the error message" not recognized usb device "appears. I try to reinstall the drivers or upgrade of drivers, it does not. It displays the message "the drivers for this device are to this day.

    7. initially, the connection of the device, the drivers are installed but still the device does not show in Explorer.

    8. I tried to change some registry values by merging a regedit file in the registry - for display devices that are not present; but still, it has failed.

    9. I then tried to delete the file infcache1.inf in c:\windows\system32\inf, but the problem persists.

    10. Subsequently, I tried to create another registry entry to "disable selective suspend" in HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\USB by adding DWORD and assigning a binary value of 1.

    11. I tried later also to uninstall all the system devices including USB controllers, drives and the storage controllers, who must still without success.

    12. I tried to see if the drivers in safe mode, which they did not.

    13. I tried to delete the following registry entries =

    HKEY_LOCAL_MACHINES\System\CurrentControlSet\Enum | USB PORT; HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Class\ {4D36E967-E325-11CE-BFCI-08002BE10318 & HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Class\ {4D36E967-E325-11CE-BFCI-08002BE10200.  The computer does not have alow it.

    14. the BIOS indicates device pnp "disabled", which I also look for the BIOS settings, which do not allow me to change to change existing ones.

    15. I have not found the WINDOWS\SYSTEM32\drivers\USBSTOR file. SYS in my driver store. This affects the system?

    16. I also contacted manufacturers pnp devices that provided me with most recent and versions compatible drivers for my devices - namely an apple ipod & Seagate external HARD drive - but even after that the drivers are installed properly and the system rebooted the problem remains. Is this something to do with the updated playing driver registry entries does not after the update? OR is what registry entries are configured to only read the entries at the time of the installation of the OS?

    17. I also contacted local sellers who have suggested to me to change the "motherboard". This will help as a last resort?

    18. in the meantime I had also installed other operating systems to Linux - Fedora and Ubuntu; Full Windows XP - Home & Professional and Vista Edition. All these have been installed successfully but do not solve the problem of usb.

    19. I have also raised the original HARD disk & replaced by another HARD disk. also checked the power of all ihee and ehee usb ports to be at least 5 V. I also disabled the automatic deactivation of devices usb by the system. physical contact, ports and connecting cable is fine. the distribution of power is set at 10% for the ihee ports and 20% for ports ehee, which is what is should be the physical output is also close to 5V for all ports connected.

    20. all professional (hardware or software) should any solution for the problem of the usb ports on my laptop?

    Something that you haven't tried:

    How to fix USB device not recognized in Windows

    http://www.online-tech-tips.com/computer-tips/USB-device-not-recognized/

    I hope I could help

  • What happened to the flash swf? Flex? and what is the new flash will look like? (HTML5/Javascript)? Flash does not work on droids or Iphones currently until the?

    Hello

    I'm more angry to discover that adobe Flash has changed once with Flex and now it also seems to be unusable. Every news source and, frankly, Adobe should do a much better job informing developers creative clould

    How to better use its products. I imagine that the security issues with adobe flash make unusable today. I just tried a simple slide show in flash and of course, he did not work on my droid which brings me to this status to feel screwed by Adobe!



    What version of flash if everything works on all websites and mobile devices for chrome browsers, fire fox and IE?

    Hi Rob, take your question to Adobe animate CC - homepage. There are many new choices available with the last Fl which is compatible with mobile devices.

  • How can I load an external SWF into a clip that is inside another video clip?

    Hello.

    I create my first flash (actionscript 3.0) Web site, but I'm stuck with a visual effect, I want to create.
    I have a window on my website called contentWindow. Whenever you click on a button, this window is supposed to leave the scene, loading the requested content and back on the scene.
    The sliding window is a clip with 83 frames, 21 to enter the stadium, 21 to leave the scene once again, 20 for anything (it's just to simulate the load time) and 21 to the back on the scene.

    Now, my goal is, when the user clicks a navigation button, the window leaves the scene, loading an external SWF with the content and then returned to the scene.

    I have the clip of 'window' with an instance name of "contentWindow". Inside there is an another film clip with an instance name of "contentLoader. The content that the user has requested must appear inside the 'contentLoader.

    Now, when the contentWindow leaves the scene, I get this error message:

    Quote:
    TypeError: Error #1009: cannot access a property or method of a null object reference.
    at rwd_fla::MainTimeline/trigger()
  • AS3 SWF into AS2 swf nest

    I bought a model written in AS2 flash, I have all the files needed to customize the site, the .fla, the PSD in Photoshop, you name it. I bought also a gallery of photos that is written in AS3 (did not know that it was AS3 when you purchase). My question: is it possible to integrate/nest of AS3 Photo Gallery, I the file swf file, in my AS2 site?

    By AS3 documentation:

    A single SWF file cannot combine ActionScript 1.0 or 2.0 code with ActionScript 3.0.

    SWF files written in ActionScript 1.0 or 2.0 cannot load SWF files written in ActionScript 3.0. This means that the SWF files created 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, as long as the file file SWF in ActionScript 2.0 has not previously loaded anything in one of its levels.

Maybe you are looking for