Attaching movieClip from Flash(SWF) to Flex

Hi,
Please tell me -'How to attach movieClip of Flash file in
Flex Application ?'
I shall be very thankful to you
Hoping for a favorable reply
Thanks in Advance

Use the Flex component kit for Flash.
https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex_skins

Similar Messages

  • Calling flex functions from flash swf (AS3)

    Hi all, i'm stuck with communication between loaded AS3 SWF
    from Flash and Flex3 project. I use SWFLoader for runtime loading
    SWF, call functions inside SWF, but cannot find the way to call
    functions declared in Flex project. I try to use ExternalInterface
    class, but it does not help me, or maybe i use it incorrect. Is
    there a method to call Flex user declared functions from Flash SWF?
    All i need is a syntax sample, thank you in advance!

    Also, application.application will point to the top-level app
    scope, even from a loaded swf.
    I believe parentApplication will resolve to what you usually
    want as well.
    For looser coupling, consider using a bubbling event.
    Tracy

  • How to make a Loadvars sendAndLoad request from embedded swf in flex

    I've developed a simple flex app with embedded swf. Basically swf use Loadvars to get data from particular database table. Ok, when I tested the flex app on localhost it is works fine and embedded swf make its sendAndLoad calls correctly.
    But! When it is located on the web server swf not work correctly. I meant there is not returned values by sendAndLoad method.
    Well, to make some points: questionContentLoadVars.img1 holds(return) the string from php call. This "img1" is an empty returned string only in Flex app placed in the web server otherwise it returns correct value from php call?
    When gameplay22.swf is standallone works!
    When gameplay22.swf is in HTML page works!
    When gameplay22.swf is embedded in FLex and executed in LOCALHOST works!
    But in the web server this embedded gameplay22.swf doesn`t works!
    What is the problem with it?
    //* here is flash(swf) part of gameplay22.swf file which is embedded in the Flex by SWFLOader(gameplay22.swf)
        questionContentLoadVars = new LoadVars();
        questionContentLoadVars.onLoad = function(success){
        if (success){
        slidingSvityk_mc.descripTA_mc.description_ta.text = questionContentLoadVars.theContent;
        else 
        slidingSvityk_mc.description_ta.text = "err!";
        function loadQuestionData(sectionID){
        var tablename ='questionsgeo';  // database tablename
        //sending variables to the PHP script
        questionContentLoadVars.row = sectionID;
        questionContentLoadVars.tablename = tablename;
        questionContentLoadVars.id_ = "";
        questionContentLoadVars.img1 = "";
        questionContentLoadVars.sendAndLoad("getQuestionRec.php",questionContentLoadVars,"_POST") ;
        function showLoadedGalleryImages():Void{
        infphp.text = questionContentLoadVars.img1;
        var img1Bulk:MovieClip = new MovieClip();
        img1Bulk = imgGalleryContainer_mc.img1Bulck_mc.createEmptyMovieClip(img1Bulk, _root.getNextHighestDepth());
        img1Bulk._x = 0;
        img1Bulk._y = 0;
        image_mcl.loadClip(questionContentLoadVars.img1, img1Bulk);
        //* And here is Flex part of embedded SWFLOader(gameplay22.swf) component
        <s:SWFLoader includeIn="user" width="1024" height="768" horizontalCenter="0" source="gameplay22.swf" verticalCenter="0"/>

    Thanks kglag, for trying to help,
    As i posted in another forum the problem was in the free flex example which i used to add another state and by using SWFLoader to  embed my swf file.
    Now i was created my own flex app and add SWFLoader to embed my swf and voila - it works!
    There is no cross-domain loads  the loaded content is in the same domain.
    So, again thanks!

  • Accessing movie clip from flash swf file

    I have the situation where in flash i created a simple
    animated movie clip with few stop() commands on timeline. Movie
    clip consists of simple animatio played on roll over and on roll
    out which is controlled using actionscript. I loaded movie clip
    into flash using [embed] tag but actionscript code is stripped,
    there is no stop() action so movie clip loops continously. I guess
    that's normal behaviour for embedded flash swf files but i would
    like to know is there a way to still achieve that? Can i load swf
    some other way with its actionscript and then control movie clip
    from flex?

    You need the FLA's to open in Flash.
    You could download the free trial of a flash decompiler
    (www.sothink.com). The free trial won't give you actionscript, but
    it will give you all of the art in the swf.

  • Screensaver from Flash (.swf) file?

    Does anyone know how to make a screensaver from a .swf file?
    Thanks!

    Try
        public function setPlayerLabel(param1:String,param2:String,param3:String):void
          sentMessage_txt.text = param1;     // no quotes
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • LocalConnection: Receiving message from flash(.swf) file

    hi
    I have got a flash radio file (.swf) from third party which playes the songs. I need to integrate this inside my application.Application is portal and written in asp.net which launches this flash file as pop-up
    Scenario is : When user click on any song in .swf file, at the application we should be able to display its title.
    I have found(through reverse enginnering) that radio.flash file uses localConnection and send following parameters whenever the user click on any song.
    conn.send("basePlayerConnect,"setPlayerLabel","title","thumb","albumtitle")
    where title is string, thumb is image and albumtitle is string
    Now i have written a another flex application which has a textinput. i emebeded this in the portal application (as embedded .swf file). Whenever a radio popup is launch at site and user click on any song the title of the song should be displayed inside this flex application
    Code is:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="{createLw()}">
    <mx:Script>
        <![CDATA[
        import flash.net.LocalConnection;
        private var incoming_lc:LocalConnection = new LocalConnection();
        private function createLw()
            incoming_lc.connect("basePlayerConnect");
              incoming_lc.client = this;
        function setPlayerLabel(param1:String,param2:String,param3:String):void
          sentMessage_txt.text = "param1";
        ]]>
    </mx:Script>
        <mx:TextInput id="sentMessage_txt" x="0" y="0"/>
    </mx:Application>
    this is very imp for me please let me know how to ahieve this

    Try
        public function setPlayerLabel(param1:String,param2:String,param3:String):void
          sentMessage_txt.text = param1;     // no quotes
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Flash swf versus flex swf

    I have a simple flex app that plays a flv. I created the same
    type of app in flash cs3. during playback, if you right click on
    the version made in flex, only a few options show up (print, show
    debug, settings, about flash player 10). when you right click on
    the flash version, all of the options show up (zoom in, zoom out,
    100%, etc). If there a compiler setting or something else in the
    actionscript one needs to do to make the flex version behave more
    like a flash version?
    thans

    There are some examples out there like:
    http://renaun.com/blog/2005/08/30/4/
    However, I'm not sure if that works when the other SWF is
    another Flex app. I tried it but was never able to get it to work
    in that case.
    I have a related issue with LocalConnection between 2 Flex
    apps, one SWFLoader'd by the other. The problem is I need to set up
    a unique LC channel between the two apps, but I also have multiple
    instances of the child app ( a movie player). Even if my app only
    has one player, if the app is loaded on 2 different tabs, the
    LocalConnection still only talks to the one. It seems this would
    always be the case, but that somehow this is never discussed in any
    of the examples.

  • New movieclip from external swf

    Hi everybody!
    I have an externally loaded swf with several keyframes on it´s own timeline. I would like to duplicate content of current (stopped) keyframe to new movieClip. There is no duplicateMovieClip in AS3 anymore.... how could I do that. Now I´m using draw and bitmapData to create new bitmap from stage, but quality is not very good (I also print that bitmap). It would be better if I could create it as movieClip and retain vectors and text unrasterized...

    how come? When I print that bitmap screenshot of a stage to letter size paper with fit to page, small text is very blurry and hard to read. If I print same view normally, it´s very sharp... is there a way to lift up resolution/size of generated bitmap?

  • 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

  • Switching from Flash-AS2 to Flex

    Hello !!! I am new in this flex tech
    I have made a project in AS2 with Flash. and communicating with the data through XMLs
    here is that link http://sanjoghelpline.in/Application_RWSS/default.asp
    Now I have to play with large set of data with graphs, grids, different options etc on this maps. I think Flex will be best for it. it will directly connect to the database to fetch datas. I am planning to use webservice.
    So I need your suggestion and tips for this. And what serverside language I should choose.

    Good choice. Best you can do is making a new project with Flex Builder.
    Probably you can use (parts of) your existing AS2 code (be aware of the differences with AS3).
    Is there a particular reason why you want to use webservices?
    If not, you can considering calling the data-XML's directly by HTTPService for example.
    This tool will help as well:
    http://www.adobe.com/devnet/flex/tourdeflex/web/#sampleId=0;illustIndex=0;docIndex=0

  • How do you call a function in an attached MovieClip from the current MovieClip?

    Hi there,
    I have this MovieClip A (converted as a symbol) and put in my
    main MovieClip B using attachMovie() , and I am wondering how I can
    call a function defined in A from within B.
    Is it possible?
    Thanks

    Hi kglad,
    yes, I did the attachMovie of the symbol B and it seems like
    none of the ActionScript written in B was not carried over.
    This is how I built B into a symbol :
    (1) Two layers ( one for the ActionScript only, the other for
    the Components)
    (2) I defined the functions to be called remotely by A in the
    ActionScript layer
    (3) I selected all the components in the Components Layer and
    did a Convert To Symbol
    (4) I added the Symbol into A's Library
    (5) I used attachMovie to instantiate the Symbol of B
    I must have missed out something somewhere
    Thanks

  • Export a movieclip from Flash

    Hi,
    I have certain content in a movieclip. I want to export it into formats like eps or ai. Is it possible? I have done jpg and png but not sure about vector formats..

     

  • Import Flash components into Flex

    Hy,
    I'm trying to create an AIR application. Until now I've watched and read a lot of tutorials but none had the answer I was looking for. So I have a few animations made in Flash as MovieClip symbols. They should react depending on the user's intentions. How can I import those symbols and control them with "gotoAnd" commands (i know how to use the AS in Flex but not how to import animations)? I'm starting to think Flex can't do this because I only found about skins or images or things not even close to what I want. If you know a way I would really apreciate a nice tutorial or a code sample.
    Many thanks !

    I think that what you're looking for is the Flex Component Kit for Flash CS3.
    By installing this kit you are able to export any movie clip from flash as a flex component.
    Then, you have full access to the objects inside the component by writing code in your Flex application.
    you can find it here : http://www.adobe.com/go/flex3_cs3_swfkit

  • Please help how to save a movieclip in flash to svg...and how to retrive the saved svg to movieclip in flash?

    hi all
    please help how to save a movieclip in flash to svg...and how
    to retrive the saved svg to movieclip in flash?
    thanks

    Do you mean from flash in a web page or do you mean
    converting the swf file format (maybe with a decompiler or
    whatever).
    If you're meaning to do it from flash in a web page:
    You can't save a movieclip from flash to svg. You could
    perhaps record drawingAPI commands and create the appropriate svg
    output in an internal xml object which you then send to the server.
    But I don't know of any pre-built classes to do that (disclaimer:
    because I don't know of any doesn't mean they don't exist).
    Going from svg to flash is doing it the other way around.
    Converting the svg paths back to actionscript drawing commands. I
    think I've seen some examples of this online somewhere.

  • Problem loading from an attached MovieClip

    Project: Flash Professional CS5.5 | AS3
    Platform: Mac OSX Lion
    Hello:
    I have a projector that calls on an attached movieclip with the following function:
    function fbtnclicka(e:MouseEvent):void{
    var mc:moduleexit_mc=new moduleexit_mc();
    The functions successfully loads the movieclip.
    I have a button on that movie clip that has the following function:
    function unloadexitb(e:MouseEvent):void {
        var loadera = new Loader();
        addChild(loadera);
        loadera.load(new URLRequest("credits.swf"));
        loadera.x = -479;
        loadera.y = -285;
    But the function does not load the movieclip. It simply closes the projector.
    Any reason why it does not load my movie? By the way it does work if I run the project from the swf but not from the projector.

    I used this:
    function unloadexitb(e:MouseEvent):void {
    var loadera = new Loader();
    loadera.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,errorF);
    loadera.contentLoaderInfo.addEventListener(Event.OPEN,openF);
    loadera.contentLoaderInfo.addEventListener(Event.COMPLETE,completeF);
    addChild(loadera);
    loadera.load(new URLRequest("credits/credits.swf"));
    loadera.x = -479;
    loadera.y = -285;
    function errorF(e:MouseEvent):void {
        trace("errorF");
    function openF(e:MouseEvent):void {
        trace("openF");
    function completeF(e:MouseEvent):void {
        trace("completeF");
    and I get this:
    TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::Event@2ed92859 to flash.events.MouseEvent.

Maybe you are looking for

  • Unable to install Solaris 10 on Dell PowerEdge 2850

    The Kernel boots from CD without any problem but the "configuring devices" stage lasts very long without any progress/success. The following messages appear, and the install seems to hang at this point: Attempting to configure interface e1000g1 Skipp

  • Problems migrating data via LSMW using the IDoc method

    Hello everybody, I got a very strange problem migrating data via the LSMW. I tried to map legacy data using the IDoc mapping method. I'm using the message type 'CRMXIF_PARTNER_SAVE_M ' and the basic IDoc type 'CRMXIF_PARTNER_SAVE_M01'. I can read the

  • I want to delete my skype account- no matter what!

    I just found out that there is no way that i can delete my skype account. Is this true? Because i want to definitely delete it! What can i do? How can i proceed? Thank you for your help (in advance) . JoJa

  • [CS5] set the path to include php files dynamically

    this is my code php #into file confstart.php i create the session #$_SESSION["PATH"]["CORELIB"]=$_SERVER['DOCUMENT_ROOT']."/system/core/lib"; include($_SERVER['DOCUMENT_ROOT']."/newportal/system/config/confstart.php"); include($_SESSION["PATH"]["CORE

  • Open Firefox But Didnt Open Previous Tabs Directly

    I always keep facebook as my last tab before I close firefox. When I open firefox, it will go to google.com/firefox then it jump into facebook.com. Previously it was automatically load facebook only, but these days, it will go google.com/firefox firs