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.

Similar Messages

  • 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

  • Flex swf loaded in Flash swf

    Hi,
    I have a Flex swf loaded into a Flash swf.
    I have made the Flex swf transparent, so that the buttons in the Flash swf are visible.
    But im unable to interact with the Flash swf buttons.
    My Flex swf is working happyily
    The Flex swf overlays the Flash swf.
    If i change the scrollRect of the Flex swf so the Flex swf is not overlaying the Flash swf i can successfully interact with the Flash swf buttons.
    Any ideas?
    Regards,
    Kyle

    Thanks Alex,
    I actually found an old post on a forum where you recommended a similar solution (mousesheld.visible = false).
    This seems to work although it messes with dragging (my Popups at least).
    But i can work with that for now, thanks for your help.
    Regards,
    Kyle

  • 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

  • Passing values to an embedde SWF in flex 2

    Hello,
    I am embedded an swf (which takes flash variables) in flex
    2,how can i pass values to the
    embedded swf through flash variables.
    regards
    kaushik

    Hi Rajendra,
               what u can pass to a function module is the parameter which are in import and tables  of RFC .so u have to declare a variable as a type of your internal table which may be type of   structure or table. then in your RFC u have to copy that into a variable of function module  and go for ur  logic ...

  • How to change index.template.html to put a HTML table side by side with Flex swf displayed in IE

    I created my own index.template.html using <object> tag to hold Flex swf file, but it only works for FireFox, not IE.
    I did not use the original FlexBuilder's index.template.html and the JavaScripts to generate the HTML wrapper.
    Here is my index.template.html:
    <html lang="en">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
            <title>My App</title>
        </head>
        <body scroll="yes">
        <table cellpadding="0" cellspacing="0" width="982px" border="0">
            <tr width="982px"><td>This app is still under development. Currently, you can... </td></tr>
        </table>
        <p>
        <table>
            <tr>
                <td>
                    <div style="width:192px;height:130px;border:1px solid rgb(0, 0, 0);">
                    <!-- div style="border-style:solid;" -->
                    <table align="left" border="0" >
                        <tr>
                              <td >
                                  <span style="color:#242F6D;font-weight:bold;font-size:12px;">Stock:</span>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                  <select style="font-size:11px;">
                                      <option>ADBE - Adobe</option>
                                      <option>BAC - Bank of America</option
                                </select>
                              </td>
                        </tr>
                        <tr>
                            <td >
                                  <span style="color:#242F6D;font-weight:bold;font-size:12px;">Shares:</span>
                            </td>
                        </tr>
                        <tr>
                              <td>
                                  <input type="text" name="shares" style="font-size:11px;"/>
                              </td>
                        </tr>
                        <tr>
                              <td>
                                  <button type="button" style="color:#242F6D;font-weight:bold;font-size:10px;">Add To My App</button>
                              </td>
                        </tr>
                    </table>
                    </div>
                    <p>
                    <div style="width:192px;height:310px;border:1px solid rgb(0, 0, 0);">
                    <table border="0">
                        <tr>
                            <td style="color:#242F6D;font-weight:bold;font-size:10px;">
                                You may enter your values
                            </td>
                        </tr>
                        <tr>
                            <td >
    <textarea id="quoteShare" style="width:186px;font-weight:bold;font-size:11px;" rows="13" >
    </textarea>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            <button onclick="callFlex()" type="button" style="color:#242F6D;font-weight:bold;font-size:10px;">Get Values of My App</button>
                              </td>
                        </tr>
                    </table>
                    </div>
                <td>
                <td>
                    <table align="left" border="0" >
                        <tr valign="top">
                            <td valign="top">
                                <object type="application/x-shockwave-flash" data="ComponentTester.swf" WIDTH="850" HEIGHT="460" />
                              </td>
                          </tr>
                    </table>
                <td>
            </tr>
        </table>   
        </body>
    </html>

    I just found 1 tricky solution.
    Declare a variable containing the asset URL in the HTML, before the <!--Adobe Edge Runtime--> part. (Sample below.)
    In the script (_edge.js), use this variable instead of the asset URL string . (replace the string constant with the variable)
    In the server script, generate the HTML by changing the variable definition.
    This is ugly...
    I would appreciate any help.
    Thanks.
    === HTML sample:
    <!DOCTYPE html>
    <html>
    <head>
              <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
              <meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
    <script>
    // Define the asset URL
    var cardImage = 'card_01.png';
    </script>
    <!--Adobe Edge Runtime-->
        <script type="text/javascript" charset="utf-8" src="animtest_edgePreload.js"></script>
        <style>
            .edgeLoad-EDGE-1381868 { visibility:hidden; }
        </style>
    <!--Adobe Edge Runtime End-->
    </head>
    ====

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

  • Flash swf loading flashbuilder swf

    is there a trick for having a Flash CS4 website swf be able to load a flashbuilder4 generated swf?
    doesn't show up.
    i remember an issue from Flex3 concerning it locking up the gui unless you had a flex3 canvas or whatnot loaded prior.
    fb swf can load by itself fine via its html, and flash swf can load other flash swf's, but i can't get the flash swf to load the fb4 swf.
    thx

    If you have used fl.. classes in the CS4 swf it might prevent the Flex SWF
    from loading, but usually you get errors.

  • Trusted Local Flex swf files access to internet?

    Hi All,
    We're developing a desktop game client using Flex and require
    a local swf file to make loader calls to the Internet. I know about
    the sandbox issues but have read that placing a text file such as
    myflexapp.cfg into the
    C:\windows\system32\Macromed\Flash\FlashPlayerTrust directory can
    let the Flash player know about swf files that are trusted. The
    file myflexapp.cfg has the absolute path to the directory location
    of my Flex generated swf file - which is the debug directory of my
    Flex project. I also tried targeting the swf file explicitly rather
    than the entire directory.
    When I test, the swf file continues to just quietly fail to
    load any resources from the internet. Also, I do not get any
    warning dialogs telling me that a swf file is trying to access the
    internet and if I wish to allow it. Have I missed something? has
    anyone had any success with using the Global Flash Player Trust
    directory to allow a local Flex generated swf file access to the
    internet? Also I cannot see the mms.cfg file in the
    C:\windows\system32\Macromed\Flash directory as is described in the
    Adobe Flex 3 Help chapter "Overview of permission controls".
    Any thoughts would be greatly appreciated! Thanks in advance
    Regards
    Tom

    hi - does this always work? i have the same question as wanderz. i live in ethiopia where the internet connection is unreliable and want a robust local wirless network that will allow my devices to communicate with each other and some file sharing. ive used a router in the past but, for instance, when the internet connection goes down my ipad no longer works as a remote control for my mac mini
    really grateful for any suggestions

  • Display/load and Unload SWF in flex

    hi friends
    i wnat to disply external SWF file into flex but without using SWFLOader(it's make lot's of problem) nad i also Embed that SWF
    this is code
    [Embed(source="1.swf")]
    private var loadswf:Class;
    private function load():void{
    var symb:MovieClip = new loadswf() as MovieClip;
    this.addChild(symb);
    it's give me error....
    TypeError: Error #1034: Type Coercion failed: cannot convert demos_loadswf@39ab3c1 to mx.core.IUIComponent.
    please help to resolve this error or give me suggestion to simple Disply/Load and Unload Embed SWF file in flex

    thnx Flex harUI
    i added UI componentes now my full code is like..
            import mx.controls.Image;    
            import mx.controls.Alert;
            [Embed(source = "1.swf")]
            public var SWF:Class;
            [Embed(source = "2.swf")]
            public var SWF2:Class;
            private var mc:MovieClip;
            private var img:Image;
            protected function checkBtn_clickHandler(event:MouseEvent):void
                clear();
                img = new Image();
                img.width=Number("700");
                img.height=Number("700");
                mc = new MovieClip();
                mc = MovieClip(new SWF());
                img.source = mc;
                vBox0.addChild(img);
            protected function critcalBtn_clickHandler(event:MouseEvent):void
                clear();
                img = new Image();
                img.width=Number("700");
                img.height=Number("700");
                mc = new MovieClip();
                mc = MovieClip(new SWF2());
                img.source = mc;
                vBox0.addChild(img);
            protected function clear():void
                try{
                    if(mc!=null){
                        flash.media.SoundMixer.stopAll();
                        img.source="";
                        img.source=null;
                        mc=null;
                        vBox0.removeChild(DisplayObject(img));
                        vBox0.removeAllElements();
                        vBox0.removeAllChildren();
                }catch(e:Error){
                    Alert.show(e + " ----::---- ");
    <mx:Canvas id="vBox0" width="700" height="700" ></mx:Canvas>
    <mx:HBox >
            <mx:Button id="checkBtn" label="first" click="checkBtn_clickHandler(event)"/>
            <mx:Button id="critcalBtn" label="second" click="critcalBtn_clickHandler(event)"/>
    </mx:HBox>
    now my error gone!!! but one problem is there when i unload my first SWF and load second SWF(on button click), my first SWF sound are still play in Background, i cn't unstand Y this will happen coz i already remove all object and child from my Canvas.
    any help on this....

  • Call Flex swf inside extension object

    Hi,
    I am building a user application using Flex 3.  The application allows user to input information using input components such as text areas, etc.  The application will create an xml file from user info.  The application needs to save xml file in user's local hard drive.  For user convenience, we want to be able to call the application from inside a DW menu.  This requires an extension which implies installing an mxp.  To avoid multiple installs, we want to deliver the application inside the extension.  This involves creating an extension object that has my Flex app embedded in it.  I have been able to create the extension object, have it show up in my insert bar, and deliver my Flex swf inside the extension.  However, when I type inside a text area in my swf, I am not able to.  It acts as if disabled.  I explicitly set my text area as editable=true and enabled=true.  Why?  Here is my extension:
    <html>
    <head>
    <title>WBT Ouline Tool</title>
    <style>
    body { margin: 0px; overflow:hidden }
    </style>
    <script language="javascript" type="text/javascript">
    function createTextFile(textItem) {
      //future code to create xml file will go here.
      //it will use DW FILE I/O APIs
    </script>
    </head>
    <body>
    <form>
       <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
       id="wbtOutline" width="406" height="276"
       codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
       <param name="flashvars" value="bridgeName=wbtOutlinePanel"/>
                <param name="movie" value="wbtOutline.swf" />
       <param name="quality" value="high" />
       <param name="bgcolor" value="#869ca7" />
       <param name="allowScriptAccess" value="always" />
       <embed src="wbtOutline.swf" quality="high" bgcolor="#869ca7"
        width="406" height="276" name="wbtOutline" align="middle"
        flashvars="bridgeName=wbtOutlinePanel"
                    play="true"
        loop="false"
        quality="high"
        allowScriptAccess="always"
        type="application/x-shockwave-flash"
        pluginspage="http://www.adobe.com/go/getflashplayer">
       </embed>
    </object>
    </form>
    </body>
    </html>

    Do you know where I can find examples on how to use dreamweaver.flash.newControl()?
    I am still having no luck.  My control shows up but can not interact with it and external interface not available.

  • Embedd SWF into Flex

    Hi,
    I am trying to load a coolaris Gallery into a Flex Application (it's a SWF).
    Now I have to fit its dimensions into my container.
    My first approach was to simply set the SWFLoaders dimensions, but that only scales the content (it is being zoomed)
    I want that the spaces are getting smaller and the appereance is not zoomed (is kept), like its done if you embedd it into html.
    The properties maintainAspectRation or scaleContent did not work either how expected.
    Any idea for that ?
    Second Question is how could I make the fullscreen modus work from the embeded swf ?
    When I now enter Full-screen Modus, my main application is going top full screen and not the embedded swf.
    Idea ?
    Cheers
    Marc

    I would not expect that to work.  The Flash 8 app would set the API level
    for the flex 4 SWF and flex 4 needs Flash 10.

  • Trouble comunicating from flex to swf, when the swf is embedded

    i'm a newbie to flex/air so i'm hoping there is going to be a
    simple answer to this problem. it's caused a massive headache!
    i have been using a swfLoader to load a swf, then triggering
    function calls within the swf from flex by using the following in
    the script tag of my mxml
    var mc:MovieClip = MovieClip(myMP3player.content);
    mc.loadMP3Player("file:///"+path, artist, title);
    where loadMP3Player is the function in the linked swf and
    myMP3player is the id of the swfLoader.
    this works great, no problems... but when i change the code
    so that the swf is embedded, rather than loaded at runtime the code
    above gives a
    "ReferenceError:Error #1069 Property loadMP3Player not found"
    error
    when i try to trigger the function.
    i have tried many different ways of referencing and embedding
    the swf, all have the same result. i.e. swf loads fine and the flex
    project compiles without errors, but i am unable to call the
    function.
    how do i reference the function in the swf when the swf is
    embedded?
    any help will be really appreciated.
    btw: i need to embed the swf as i am distributing the
    finished article as an air app.

    Relief - well sort of.
    I uninstalled the last Flash version (10.3 latest built that I downloaded a couple of days ago) on all my browsers.
    Then I downloaded the older 10.2 and installed, and the problem was gone. I'm on MacOSX Lion, by the way.
    So this must be a bug in the last flashplayer.
    Cost me five hours and a bucket of sweat.
    And from now on, I'll be pretty scared to give the flashplayer an update, that's a fact.
    ottie

  • Ipad i have load swf file but swf  is not working proper(flex 4.6) but android is fine to work how

    ipad i have load swf file but swf  is not working proper(flex 4.6) but android is fine to work how

    On the MBP, in iTunes, switch to Song view and enable the iCloud Status column by pulling down View > View options and selecting the option for "iCloud Status." Close the small window. Look for any tracks that have a status of "waiting." If you see several of them disable iTunes Match while holding down the Option key. Quit iTunes, wait a few seconds, then open it again and turn iTM back on. Let it compelete the scan. Wait until all tracks that are "waiting" have a status of either "matched" or "uploaded."
    On the iPad, turn off iTunes Match then launch the Music app and let the contents clear out. Power cycle the iPad for good measure, then re-enable the service once all the tracks in iTunes have been processed.

  • Can I import binary in Flash CS5 and export swf, without AS code likes "Embed" ?

    Can I import binary in Flash CS5 and export swf, without AS code likes "Embed" ?
    I know I can use AS code,likes "[Embed]" metadata to embed binary in swf. But , how can I do that in Flash CS5 ?

    Have a look at this: http://stackoverflow.com/questions/7816231/how-to-use-as3-to-load-binary-data-from-web-ser ver

Maybe you are looking for

  • NWZ-A17 bluetooth not connectiong to anything??

    Hi There.I can't connect my NWZ-A17 to any bluetooth device? I have a soundbar, a tablet a television and anxperia phone, none of which were even found by the device. so i used the NFC function with my xperia Z1 phone and it registered a connection b

  • Picture thumbnails

    I just re-installed my Tiger OS and everything went smooth. One little hitch though was that when I plug my card in from my cameras I only see icons instead of thumbnails of the images. Before the re-intall, I could plug a few cards into a couple of

  • Can't load contacts on icloud

    I can load contacts etc. through icloud.com on my husbands pc but not mine. He is on vista and I am on windows 7. Can you help please???

  • Retrieve select value from picklist

    I have picklist which has values 1,2,3 To retrive Picklist value i wrote FieldValue('<Picklistname>'> but nothing happend I need to retrieve the selected value and add to Today() Function. Edited by: user11170982 on May 28, 2009 3:06 AM

  • Std price not updating

    Hi, When I am doing cost/mark/relaese for a material. The planned price in the mat master is being updated. But, the std price remains the same. Please help. Regards, Umesh