Insert flex component in flash .fla file

hello,
Is it possible to dynamically load a flex component, compiled as a swf file into a .fla file.
Originally, this flex component can be loaded as a standalone flex application with parameters to connect to the appropriate server.
But now a customer of mine wants to integrate this flex component (originally inserted in a flex application) in a custom flash application, thus in .fla file using Adobe Flash CS4.
I've seen that it was possible to integrate a flash animation created with Adobe Flash CS4 in a flex application. But what I need to do is the opposite.
thanks for your help,
yohann

I also have an odd behavior with parameters. I use a parameter to display a text area for logs. If this parameter is found, the text area is displayed, if it's not found, nothing is displayed. When I load my application with CTRL + ENTER in CS4, I can see my debug text area, but when I export it to swf, copy it to a local web server and visualize it in a browser, I see no debug text area.
Here is the code I'm using:
import flash.display.Loader;
import flash.net.URLRequest;
import flash.events.Event;
var request:URLRequest = new URLRequest("http://1.2.3.4/callme.swf?server=1.2.3.4&caller=abc&callee=yohann.martineau");
var loader:Loader = new Loader();
loader.load(request);
addChild(loader);
This code is in a key frame of the fla animation.

Similar Messages

  • Flash fla files corrupted by CVS

    Hi,
    I have saved my Flash fla files with Eclipse CVS and some where on the way, I set their ASCII\BINARY value to ASCII and now my files are totally corrupted.
    Does anyone know of a way to fix fla files that were saved as ASCII in CVS?
    Thanks for your help.

    Well, I'm not quite sure what kind of cards am I using. The SD card is a common one, one of those you use for digital cameras. It's a 2GB SanDisk, quite new. The flash drive is an 8GB Data Traveler...
    And, yes - the AVIs are quite big (biggest one is around 700MB, and they're about 5 or 6 with 500MB)
    Anyway, I'm totally sure the files are extremely corrupted because I didn't save them on a HD... I've tried in VLC, DivX... They simply wont open the files (I mean, I don't get soundless blank screens or other kind of synthom you usually read in AVI help threads). I even went to my university's media lab and one of the teachers told me that I did wrong when I transferred the files directly from the SD card to the flash drive, without saving them on a hard disk first.
    The camera isn't the cause of the problems, because yesterday I've made new videos with it and I emptyed the SD card directly to my own Mac with no problems on those AVIs at all.
    In addition to all this, the flash drive presented life signs at the media lab's iMac -- the archive containing the AVI files turned unrecognizable (had that icon like a black card with green "exec" letters); when we opened it on a Windows, a lot of archives appeared and their names were in constant change.
    Worst of all is that I've already format the SD card twice ^_^" (I didn't know the AVIs were corrupted - I just thought I needed QT Pro). All my hopes are relying on the flash drive.
    Today I've tried recovering the flash drive's files with Data Rescue and StellarPhoenix software (all of them very limited demos) but it was all useless.
    Sorry for the word labyrinth; thanks for your help..

  • Can I convert a Flash .fla file to html in Photoshop CS6?

    My website is done in Flash and that might as well be ancient Greek in today's world.
    Can Photoshop CS6 do anything to/with an old Flash FLA file?

    No. Flash requires Flash, regardless of which target format.
    Mylenium

  • Can't open flash/fla files (with CS4) - might be version issue

    Hi,
    I am trying to edit a website for a friend (built with Flash and XML) and i can't seem to get into any of the .Fla files.
    I don't know if it is my version of Flash (CS4) or the files and not sure how i could test it. Could also just be a CS5 file hence i can't open it.
    Any help or suggestions would be great. Please help i don't know what to do, haha.
    Here is an upload of one of the files i am talking about
    http://www.2shared.com/file/kb2NKm0i/book-verification.html
    I wasn't sure which hosts were allowed so if i messed up please let me know.
    Thanks
    Asher

    Hi Asher,
    You  cannot open a file which is saved in future version such as CS5  version  in Flash CS4 .This is as designed .
    If you need to open a CS5 file in CS4 , You need to save the file as CS4 file  and then open in Flash CS4 .
    Thanks
    Sukhbir
    Flash Authoring

  • Something Wrong With Flash .fla File

    I am building a website and for some reason, my flash .fla keeps repeating over and over within my html page. Can someone help?

    Then when you upload the file you should be usingbinary mode FTP (if you use an FTP windowed program
    it should do this for you).
    Can you please clarify a bit on this?FTP transfers in two modes. Text (for .txt files .html files and the like) and binary (for images, jars and everything that isn't text)
    Basically text files can get modified by FTP so that the line breaks and such are right for the target system. Binary files get left alone. Most of the time I actually haven't seen too many problems but it is possible for a binary-type file to get mangled by using text mode transfer.
    Most FTP programs (other than raw console versions) will auto-detect the file type and use the appropriate version.
    Like I said can you just download the jar file directly and use it. If not where does that fail?

  • Meaning of HTML insertion code associated with Flash SWF file

    Anyone  know what the "logo" and the "6" mean in the code below?
    <script type="text/javascript">
                            var so = new SWFObject("flash/CruzThieleLouisa.swf", "logo", "250", "250", "6", "#FFFFFF");
                            so.write("flashcontent");
                        </script>  
    This movie seems to stop after playing for a while.and I'm aiming for infinite looping.
    Do I need to set that in the FLA file?
    Thanks much

    The descriptive format would be...
    var so = new SWFObject(swf, id, width, height, version, background-color);
    It will be easiest to design the infinite looping into the Flash file.

  • Importing Flash .fla files

    I am taking over a client who has a .fla site with several fancy "Ribbon","Bubbles", and "Stripes" transitions I want to import.
    Is it easier to just edit it in Flash or to Bring it into Flash builder?
    I would like to at least bring in the original parts into Flash Builder beta 2.
    Working in Flash Beta 2 until the release.
    Dan Pride

    Hi,
    The solution depends on what you want to do with these Flash files. If they are going to be self-contained with minimal communication with the main application you can simply use SWFLoader and listen to the events by: SWFLoader.content.addEventListener(...).
    If you plan more specialized interaction with these SWFs then you want to create custom event class and dispatch custom event(s) from the SWF and listen to them in the main application in the same way.
    HTH,
    FTQuest

  • I have a cool flv video that I want to inport and manipulate in my Flash fla file. Can I do that?

    It is a cool black & white smoke effect that I want to use.
    My goal is to place graphics over it and some under it.
    I am new to animation but hungry to learn!
    Thanks Everyone!

    kglad,
    Thank you so much ..... I have the flv video in my timeline now!!!
    A further quuestion.... if I may?
    How can I ...say break it apart to manipulate it?
    Thxs in advance!

  • Using Flex Component Kit for FlashCS3 in Flash Builder

    Hi at all,
    i apologize for my english.
    I'm using Flash Builder 4 and i've created a movie clip symbol in Flash CS4.
    I convert the flash symbol in Flex Component but Flash Builder sends a "Verify Error" because the mx.flash.UIMovieClip class in the Flex Component Kit package is not updated at mx.flash.UIMovieClip in Flex4 library,
    Is there a updated version of Flex component kit? At this moment i'ive a 1.1.2 version.
    Thanks.
    F.

    You should be able to get version 2.0.0 of the MXP in the open source repository:
    http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/frameworks/flash-integration/

  • Editing a Flash 3/4 FLA file in Flash CC?

    Does anyone know if this is at all possible?
    As I'm trying to find older versions of Flash and is becoming a pain, even the trials are non-existent, currently going through old cover disks to find trials.
    I did make an amend in the older Flash FLA file, saved and published it in CC,ran the SWF in a browser and the pages simultaneously skipped between one another.
    Any ideas grealy appreciated.
    *I accepted the prompt about all old Actionscripts will be updated - to continue using the CC effectively*

    You can find old trial versions at the site linked below. 
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site or else the download will not work properly.
    http://prodesigntools.com/tag/ddl

  • Workflow for creating Flex components in Flash CS5 needs work

    Am I missing something? I thought things were supposed to be easier.
    I'm creating an AIR application for a client with heavy embedded video.
    I have chewed up days on trying to get stuff to work, mostly creating a graphics heavy component that I can use in the AIR (Flex) app.
    Just clicking the magic "Convert Symbol to Flex Component" command won't do it if you have created your own .as class for the symbol, because it won't compile unless you extend the UIMovieClip class. Good luck trying to find it in the namespace.
    After hours I found where to download the Flex Component Kit that contains the swc that gives you the UIMovieClip class.
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1273 018#
    Notice the title of the page:  Flex Component Kit Alpha for Flex 2.0.1
    Shouldn't the need for this kit be ancient history? Shouldn't that swc be built in to the new SDK's and/or Flash Builder 4?
    Make my living on Adobe products, and love them, but this is sloppy. No documentation. No walk-throughs. Have burned many hours that I can't charge the client for because it make me look incompetent.
    Creating a Flex component in Flash with extended functionality SHOULD be a no brainer.
     

    I managed to get it work at the end...
    First, the components directory was at this location:
    C:\Users\<username>\AppData\Local\Adobe\Flash CS5\en_US\Configuration\Components
    Then, to make a component out of a MovieClip, right click on the MovieClip in the library and select "Component Definition" and check the checkbox "Display in Components Panel". What I did then was to right click on the MovieClip and selected export swc file, and saved it in the directory above. This exported only one Component, which was fine for me. Probably it would be possible to do something similar to save a library of components as a .fla or .scw or so, but I don't know the details.

  • Making fonts display in .FLA files on different computers?

    How do you make fonts in Flash .FLA files so they do not don't disappear when copied from one computer to another?
    Thanks.

    Why apply a glow filter?
    What about breaking the text apart?
    I am curious how to do this with the .FLA and the .SWF.
    Thanks.

  • Flash Pro CS5  Convert to Flex Component and SWC export

    Hi,
    my question is about the Flash Pro CS5 and Flash Builder 4 (Flex 4) integration.
    My goal is simple - to make a simple graphic in a MovieClip and then export that for use in Flash Builder 4. I found out I have 2 ways of doing that:
    1) -> create the MovieClip with the graphic
        -> export it for ActionScript with a name of the class
        -> select the symbol in the library again and export SWC file. Total size of this SWC in my example is 24kb.
        -> put the SWC in the libs folder and use the class/component which should be put inside SpriteVisualContainer or UIMovieClip
    2) -> create the MovieClip with the graphic
        -> export it for ActionScript with a name of the class
        -> select it in the libraly and then select Commands -> Convert Symbol to Flex Component
    Now here we can do 2 things:
        -> select the symbol in the library and export SWC file. Total size here is 104kb.
        -> publish the whole project and use its SWC file.
    And last:
        -> put the SWC in the libs folder and use the class/component wherever you want because it's already extending UIMovieClip.
    So My point is that with the first way I need to use just one simple container to put my component into and I save like 80 kb. Why would I want to use the second way, just to be more comfortable or there are other reasons too?
    I was thinking that maybe I could put more flex converted components in the fla file so I would then export the swc with all of them being already flex components and that 80kb will be shared for all of them, which makes sense of using this feature, but if someone could confirm my thinking is right or there was some other better purpose or way of doing things in an optimised way, I will be glad to hear them. Thanks!

    Hi,
    I am using the first option while converting from flash to flex. Its easy and it saves lots of memory.

  • (How can we) Import Flash Professional .FLA file format?

    How can we import a Flash Professional .fla file format into Flash Catalyst? It would appear that we can't...at least not yet! I have added this as a feature request within the adobe labs site for Catalyst. Someone at Adobe suggested that I also explore the forums, so here we are. If you would also like to have this feature added, please let Adobe know by promoting the
    idea.
    Our use case is this: we have a large Flash file with a library of over one thousand skins and assets that were built in Flash with Adobe's Flex Skins Templates. These stateful, graphical skins were used within a custom theme by several Flex 3 projects.
    Now that we are looking to migrate to FlashBuilder 4, and start to use Spark components, we are trying to find a workflow that allows us to use Adobe tools and to reuse our existing vector artwork. Since we have such a large number of assets, we are exploring various approaches, including the use of JSFL. So far we haven't found a good way to migrate from Flash-built skins for Flex 3 to Catalyst-built skins for FlashBuilder 4.

    Hi Ajay,
    See attached V 7.0 example...
    Hope it helps,
    Nick
    Attachments:
    Read_txt_File.vi ‏20 KB

  • Can I import a custom component from Flash 8 into Flex?

    'm creating a custom Flash Video Playback component in Flash
    8 using AS2. I understand that I cannot import this to Flex as
    stated in Livedocs: "You can use SWC files created in Flash 8 only
    for skinning, not as components. Until the next version of Flash is
    released, you can only use SWC files created in Flex 2 as
    components."
    But now that Flash 8 supports AS3 with the new Adobe Labs
    add-on, if I create the custom component using AS3 in Flash 8, can
    I then import it and use it in Flex 2.0.1?
    Any help is appreciated,
    Thanks!

    I was going through my libraries trying to find the quick test I did when I was dabbling with the kit and I can't find it anywhere at all.
    If I recall this was the pdf that I read to get it to work properly with CS3 and Flex 3 I don't know if you have read it already or if it will help, but it is the only thing I know for sure helped with the process.
    http://download.macromedia.com/pub/labs/flex/3/flexbuilder3_componentkit_docs_121207.pdf

Maybe you are looking for