HTMLLoader from SWF

I am loading a swf into an AIR app created in CS3.
In the AIR app I use HTMLLoader.createRootWindow() which
works fine.. but I would like to call this function from the SWF
that was loaded into the AIR app.
I cannot call it directly from the swf so I am trying to
reference the Function that uses HTMLLoader.createRootWindow().
Something like:
var html:HTMLLoader = HTMLLoader.createRootWindow();
var urlReq:URLRequest = new URLRequest("
http://www.someplace.com");
html.load(urlReq);
MovieClip(html).call_function = call_ function ;
addChild(html);
That was an attempt to pass the Function into the loaded swf
the same way I pass a variable.
MovieClip(loader.content).var1 = var1; -- That works.
Any Ideas for passing a function? I already declare the
function in the loaded swf.. now just need it to become the one
passed in from AIR.
Is there a way to bring the HTMLLoader capabilities into a
swf without making it an AIR app?

Yes, there is a software that will convert SWF back to the
original fla. Do a Google search for "from SWF to .fla"
John

Similar Messages

  • How to remove text from .swf animation?

    how to remove text from .swf animation? Can no find this text
    in fla file. Flash 8.

    exactly what 'text' are you referring to? text that you typed
    on the Stage using the 'textTool'? simply select the text with the
    'arrowTool' and hit delete.
    If you are referring to a textField that you want to
    eliminate after a certain amount of time, within your animation
    sequence. first copy the text, create a new layer, paste the text
    in place, then where you want to have the text 'disappear' insert a
    'blank keyframe' at that point in the text layer.
    OR place the textfield within a MC and remove it with code.
    OR if the text is dynamic and you wish to use the position at a
    later time, pass a value of null or and empty string to the field
    at the point you wish. And there are other ways still. :) hope one
    of these works for you.

  • Convert from swf

    Does anyone know of any free programs to convert from .swf to another file type like mpg, avi, wmv, etc.

    Google search results in 5,690,000 hits when "convert flash to iPod" is used as search term.
    Here ya go sparky: http://www.google.com/search?hl=en&lr=&q=convertflash+toipod&btnG=Search

  • Removing 'i'  from swf skins???

    I know I can remove the exit button from swf skins, but what
    about the info button?
    also, is there a way to have a 'on' state for a button, so
    when the cc button is clicked it stays highlighted? Can I build
    this in flash and have my custom skin show up, and if so what are
    the specs for making one?
    thanks

    This link should give you what you want....
    http://www.raisingaimee.co.uk/index.php?option=com_content&task=view&id=32&Itemid=28
    Open up the .fla and obviously edit how you want.
    Regards

  • Creating .exe from .swf with Adobe Flash Player 13

    Hi,
    I usually export to .exe from .swf files using the Adobe Flash Player.
    I've update flash to the 2014 version and now this "create projector" remain in gray color, so, unavailable.
    Do you now if there's a solution?
    Many thanks

    Lols, so easy!
    Many thanks!

  • How can make byteArray from swf

    Hi all,
    i need to make byteArray from swf and save it into DB, because i need load the swf(in byteArray) to adobe air with URLLoader and loadBytes(). But I do not know how can i convert swf to byteArray, is it possible with php, or i need as3 script, which make byteArray...
    thanks for help!

    I don't know if you better post this in the Adobe AIR forum?

  • HtmlLoader and swf alignment

    Hello! I'm using adobe air 1.5, i created an htmlLoader that resizes with the stage as well, the problem is when the user visits websites with flash content like youtube, the swfs move to the origin of the htmlloader instead of its own place in the html site?! why does this happen?????
    here is what i'm talking about, when i resize the movie, the youtube window for example, stays:
    http://img441.imageshack.us/img441/958/airhtmlissue.jpg

    The AIR runtime uses a sandbox based security model. This basically means that content loaded for example from the root of your AIR application can only load resources from the local sandbox while content loaded from a non-application sandbox (for example http://www.example.com) can load content only from that specific domain. More info on the AIR security model and how sandboxes work in AIR please read the following article - Introduction to the AIR security model.
    The referral cannot be changed programatically in an AIR application but using a non-application sandbox that will load resources from the root of your application but which will behave as they were loaded from a custom domain (http://www.example.com) you could obtain the needed HTTP referral. More info on non-application sandboxes can be found at the following location - Cross-scripting content in different security sandboxes.
    Let us know if this helped you,
    --Catalin

  • Communication problem between air application from swf at browser

    Hi,
    I am trying to communicate adobe air native application from brwser using swf, I check for native application installed or not. If installed then launch and if not then install and launch.
    I am facing problem when browser crashes and communication get lost with adobe air native application. And when user restart web browser and try to make local connection for communication with native application, some times it get failed. so, how to handle this state please help.
    Thanks
    Nitesh Kumar

    Hi sinious,
    How could I clean up connection when browser is aborted or lost?
    below you can find the code snippet to check for air application and connection
    airSWFLoader = new Loader();
                                  loaderContext = new LoaderContext();
                                  loaderContext.applicationDomain = ApplicationDomain.currentDomain;
                                  airSWFLoader.contentLoaderInfo.addEventListener(Event.INIT, onInit);
                                  airSWFLoader.load(new URLRequest("http://airdownload.adobe.com/air/browserapi/air.swf"),loaderContext);
    function onInit(e:Event):void 
                                  airSWF = e.target.content; 
                                  switch(airSWF.getStatus().toString())
                                            case "available" : AirLoaderStatus = 1;
                                            break;
                                            case "unavailable" : AirLoaderStatus = 2;
                                            break;
                                            case "installed" : AirLoaderStatus = 3;
                                            break;
    private function getAppStatus():void
                                  clearInterval(intervalIdentifier);
                                  if(AirLoaderStatus == 0){intervalIdentifier = setInterval(getAppStatus,1000);return;}
                                  m_launchInstallBtn.visible = true;
                                  var statusInfo:String = airSWF.getStatus();
                                  airSWF.getApplicationVersion(m_installerFileName, m_pubID, versionDetectCallback);
    function versionDetectCallback(version:String):void
                                  if (version == null)
                                            trace("Not Installed");
                                            // Take appropriate actions. For instance, present the user with
                                            // an option to install the application.
                                  else
                                            m_isPluginsInstalled = true;
                                            // Take appropriate actions. For instance, enable the
                                            // user interface to launch the application.
    private function onlickMouse(event:MouseEvent):void
                                  m_text.text += "\nm_isPluginsInstalled:"+m_isPluginsInstalled+":::AirLoaderStatus:"+AirLoaderStatus;
                                  trace("\nm_isPluginsInstalled:"+m_isPluginsInstalled+":::AirLoaderStatus:" +AirLoaderStatus);
                                  switch(event.currentTarget)
                                            case m_launchInstallBtn:
                                                         if(AirLoaderStatus == 1)
           installAirsetup();
                                                      else
                                                                if(!m_isPluginsInstalled)
                                                                          airSWF.installApplication(m_url, m_runtimeVersion, m_argsToPass);
                                                                          airSWF.launchApplication(m_installerFileName, m_pubID, m_argsToPass);
                                                                else
                                                                          airSWF.launchApplication(m_installerFileName, m_pubID, m_argsToPass);
                                            break;
    in the above code snippet I pass localConnection for send and recieve as an argument in m_argsToPass.
    the connection names strarts with "_".
    In the air application I I split the event arguments like given below
    argsArray = event.arguments.toString().split(",");
    and then try to establish connection.
    Please suggest, how could I clean the connection on lost/ abort of browser, since then swf object embeded in browser also get lost.

  • Open in same window and clean cache from swf + html file generate with InDesign CS5

    Hi,
    1)
    I have a Indesign web file exported to swf + html.
    In my document I have a button that point to url (this url is html file of a second Indesign swf + html).
    When I click on button, the url was find an open in another window.
    Is it possible to open this second url in the same window?
    If yes How.
    I think this information is in the swf file and not in html.(How modify the swf code?)
    2)
    How to clean the cache when you reload the url? (in the html generate file)
    I'will very please if somebody of you could help me. it's Important for me.
    Regards
    Philippe

    Okay, I found the code but I can't get it to work locally.  If you have a web server maybe you can upload the files (swf and html) after you Publish them:
    import flash.net.URLRequest;
    import flash.events.MouseEvent;
    var myURL:URLRequest = new URLRequest ("http://www.google.com");
    testlink.addEventListener(MouseEvent.CLICK, clickText);
    function clickText(myevent:MouseEvent):void {
    navigateToURL(myURL, "_self");
    you have to have on the stage a link element called "testlink" (see the code above) which would be a Movie Clip with the label testlink.  It can be anything from InDesign:  a button, a rectangle, a circle, a graphic, you get the idea.  Just select that object in Flash and label it testlink or anything you choose but if you change the name from testlink also change the name in the code snippet where the line "addEventListener" is.

  • How to load the xml from swf

    Hi,
    I have one intro.swf from that am loading one interface.swf by using loader.In interface i am loading some of the swf and xml am getting the swf but the xml files are not loading.When i run from interface file it is loading fine. only when i load the intro file the xml files are not loading. can any one tell me what is the problem how to access the xml content.
    This is the code am using in interface.swf to to get the xmlpath
    MovieClip(root).param1 = xmlPath;
    to access the xml content i have written the code
    var xmlPath:String=MovieClip(stage.getChildAt(0)).param1;
    I am using one moviclip in interface to load the other swf and xml. I am not using any moviclip in intro file to load the interface swf for that i am using only the loader.

    Where are the files located relative to each other?  If the intro and interface are in different folders then the problem could be that you need to adjust the path the interface uses for targeting the files it loads.

  • Using Acrobat to create a PDF from .swf files

    I'm trying to beef up a standard powerpoint presentation into something i could have more control over, and was considering Acrobat as it would (i hoped) allow me to import .swf files from Flash. In reading up on just how flexible acrobat is though, it doesn't really seem to have all of the functionality that i want - if anyone could offer feedback on the following, that would be great in terms of clearing up the queries that i have beforehand!
    essentially, i want to create a PDF file which will open fulllscreen on any machine with no toolbars, windows, additional content in the window except my PDF content. So i would have a central shape/box, which would be white, on which i have text.
    I want this to open centrescreen, fullscreen, with no acrobat reader branding / navigation visible at all. Similar to the way a powerpoint document would open, however - i don't want Adobe Reader to scale my PDF at all.
    I've set my canvas in flash to 1024x768, and i would want Reader to display my file at exactly 1024x768 pixels, and not scale the document up to suit different monitors. So in a way, utilising something like you could with a Flash projector file where you could set the fullscreen's "allowscale" function to "false" (keeping the document at exactly 100%) and the actual fullscreen call itself to "true" (display the document in fullscreen mode, taking over your entire monitor).
    Also, i would want to specify a 'background', which is simple in flash as i can just create an oversized movie clip with whatever i want to appear in the background, and this will cover any excess area in monitors that exceed my canvas size. (So i usually create a movie clip of an image or gradient for the background that measures 2600 x 1600 pixels). Will acrobat be able to render this correctly, or is it just going to display the actual canvas size and exclude my oversized 'background' movie clip? If i use my 1024 x 768 canvas, will it clip the big background movie clip to fit?
    Thanks folks... bit long winded but i just wanted to make sure i've covered the bases!

    Like it or not, InDesign is a color managed application, and your files are all being managed.
    You'll always have less grief if the working spaces match the output, but that isn't always possible. If you want to to convert to the profiles specified in the CSF file, choose one of the "Convert to Profile" settings and select the correct profile as the destination. You'll have two options, preserve numbers, or don't preserve numbers.
    Preserving numbers will cause colors to shift, but will preserve 100% K blacks. Not preseving numbers will change the numbers to give you the closes match possible in appearance, but will royally screw up your 100% K type if going to press.

  • Error 2032 loading xml from swf

    Hello everyone.
    I have a php site (based on Joomla! CMS). In one php page, there is a <object> element wich loads the Adobe Flex 1.5 swf file that I have developed (Slideshow.swf). This swf file is a slideshow that loads a xml file using a httpservice. The xml file contains the urls to the images to be shown. The error occurs when thw swf file tries to load the xml file, but not always.
    - SITUATION 1: Visiting http://localhost/Slideshow.html or http://localhost/Slideshow.swf
      The html and the swf are the files generated by Adobe Flex builder.
      Navigators: IE 8, Mozila Firefox 3.5.5
       --> Yes, it works!!
    - SITUATION 2: Visiting http://mydomaing.com/folder1/folder2/Slideshow.html or http://mydomaing.com/folder1/folder2/Slideshow.swf
      The html and the swf are the files generated by Adobe Flex builder.
      Navigators:
         IE 8 --> Yes, it works!!
         Mozila Firefox 3.5.5   --> I don't get Error 2032, but the images can't be found. This is another problem...
    - SITUATION 3: Visiting http://mydomain.com
      Navigators: IE 8, Mozila Firefox 3.5.5
      --> No, it doesnt' work!! I get Error 2032!!
      The whole page loads. The swf loads, but when the swf tries to load the xml file, the fault event is throwed. Then I use an Alert.show. I'll give you as much information as I can:
    ERROR MESSAGE (FOR SITUATION 3)
    Message: faultCode:Server.Error.Request faultString:'HTTP request error' faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: ./slideshowGallery.xml'
    Name: Error
    Root cause: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]
    Error ID: 0
    Fault code: Server.Error.Request
    Fault detail: Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: ./slideshowGallery.xml
    Fault string: HTTP request error
    FLEX CODE
    <mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init();"
    The init method:
    private  
    function init():void{ 
    httpService.send();
    The httpservice element:
    <mx:HTTPServiceid="httpService"url="
    ./slideshowGallery.xml"resultFormat="
    e4x"fault="httpService_fault(event);"
    result="httpService_result(event)"
    />
    I think the handlers don't care. In SITUATION 3, the send() invocation always triggers the fault handler.
    The xml file is in the same folder as the swf file (I use ./slideshowGallery.xml for the url field of the httpservice element).
    This is the html code generated by the php page of my site:
    <div id="ol-flashheader">
    <object type="application/x-shockwave-flash" data="/templates/mx_joofree2/images/header.swf" width="700" height="240">
    <param name="wmode" value="transparent" />
    <param name="movie" value="/templates/mx_joofree2/images/header.swf" />
    </object>
    </div>
    Note: header.swf is my Slideshow.swf renamed.
    Ah, I have also a cross-domain policy file: http://mydomain.com/crossdomain.xml. And the following is curious. The content is:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy
    SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
      <allow-access-from domain=www.mydomain.com />
      <allow-access-from domain="mydomain.com" />
      <allow-access-from domain="*.mydomain.com" />
    </cross-domain-policy>
    But when i visit http://mydomain.com/crossdomain.xml with IE 8 what i see is:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy
    SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
      <allow-access-from domain=www.mydomain.com secure="true"/>
      <allow-access-from domain="mydomain.com" secure="true"/>
      <allow-access-from domain="*.mydomain.com" secure="true"/>
    </cross-domain-policy>
    But, when i visit that url with Firefox... correct, It doesn't adds the secure="true" attributes!! jajaja
    Please, I need some advise to solve this problem.
    Thank you very much.
    When I visit the web page (www.mydomain.com) and the swf tries to load

    I haven't found the solution yet, but i can give more info:
    I have modified the crossdomain.xml file to set secure="false". This way, when you view it with Internet Explorer, you can see secure="false" instead of secure="true". But this didn't solve the problem.
    I have read somewhere that avoiding Internet Explorer to cache files, could help. So, I have added the next line to the <header> section of the php page that contains the <object> tag that loads sthe swf file:
    <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
    This didn't solve the problem.
    Regards.

  • Embedding Button symbol from swf

    Hi,
    I am embedding a Button Symbol into Flex from from a swf. The Button inside the swf has an up and over state. Now I embed the symbol into an image in Flex. The image is in one of my states.
    All works fine initially  in Flex as far as the up over state. Now the  The problem is when I go back to the base state and then back to the state with the embedded swf symbol.....it initializes still in the over state, until I mouse over then mouse out and now its in the Up state.   What could be the probelm here??
    thanks for taking time to look at this!
    -Mike
    // -- SWF EMBED ---
                [Embed(source="skins/ICD9_ReferenceCodes_v2_3_blue.swf", symbol="back_btn_button")]
                [Bindable]
                public var BadApple:Class;
    // -- SWF EMBED END --
    <mx:State name="search_code">
                <mx:RemoveChild target="{vbox1}"/>
                <mx:SetProperty target="{text1}" name="text" value="Code Search:"/>
                <mx:SetProperty target="{text1}" name="x" value="130"/>
                <mx:SetProperty target="{text1}" name="y" value="136"/>
                <mx:RemoveChild target="{image1}"/>
                <mx:AddChild position="lastChild">
                    <mx:Image  id="image_BackBtn1" x="11" y="74.95" source="{BadApple}"
                              click="OnClickNewSearch(event)"
                              />
                </mx:AddChild>
                <mx:SetProperty target="{image_BackBtn1}" name="y" value="74.95"/>
            </mx:State>

    Alex,
    I'm not  following  you, why do I need a button?.....can create Mouse over and out events like this?:
    var event:MouseEvent = new MouseEvent(MouseEventMouseEvent.MOUSE_OVER.);
    myImage.dispatchEvent(event);
    var even2t:MouseEvent = new MouseEvent(MouseEventMouseEvent.MOUSE_OUT.);
    myImage.dispatchEvent(event2);
    would this work?
    BTW any idea if this is a Bug or known issue that I'm experiencing?
    -Mike

  • Calling javascript from swf (which is source file of frame) - problems with OPERA

    hey,
    right now i have the swf-file as the source file for a frame,
    because i want the swf-width depend on the browser-size.
    it looks kinda like this:
    <frameset cols="10,*,10">
    <frame src="border.htm" name="leftFrame">
    <frame src="file.swf" name="mainFrame">
    <frame src="border.htm" name="rightFrame">
    </frameset>
    from the swf i call a javascript-code that is located in the
    'border.htm'
    file.
    the javascript simply opens a popup window.
    function open_popup() {
    MM_openBrWindow('popup.htm','pop','toolbar=no,location=no,status=no,menubar=no,scrollbars =no,resizable=no,width=400,height=500');}everything
    works fine ine firefox, ie, netscape (at least in another tab),but
    when it comes to the opera browser (and apparently also safari)i
    don't get any reaction at all ...i told opera to allow
    popup-windows, so that shouldnt be the reason.now i am thinking
    maybe some browsers have a problem with callingjavascripts from
    within swfs that are not located in that specifichtml-file?maybe
    some of you encountered the same problem ...would be grateful for
    any advices ...thanx,eva

    hey,
    right now i have the swf-file as the source file for a frame,
    because i want the swf-width depend on the browser-size.
    it looks kinda like this:
    <frameset cols="10,*,10">
    <frame src="border.htm" name="leftFrame">
    <frame src="file.swf" name="mainFrame">
    <frame src="border.htm" name="rightFrame">
    </frameset>
    from the swf i call a javascript-code that is located in the
    'border.htm'
    file.
    the javascript simply opens a popup window.
    function open_popup() {
    MM_openBrWindow('popup.htm','pop','toolbar=no,location=no,status=no,menubar=no,scrollbars =no,resizable=no,width=400,height=500');}everything
    works fine ine firefox, ie, netscape (at least in another tab),but
    when it comes to the opera browser (and apparently also safari)i
    don't get any reaction at all ...i told opera to allow
    popup-windows, so that shouldnt be the reason.now i am thinking
    maybe some browsers have a problem with callingjavascripts from
    within swfs that are not located in that specifichtml-file?maybe
    some of you encountered the same problem ...would be grateful for
    any advices ...thanx,eva

  • Extract font from SWF

    Is there any way to extract a font from an SWF? I don't need
    to use the font for anything besides other Flash/SWF files, so
    exporting to a system font file is not needed. I just need to be
    able to re-use a font that is on SWF in other SWFs, when the font
    is not installed on my system.
    Why I need to do this is a very unique situation. As I said I
    have an SWF that contains a font I need. This SWF is generated by a
    3rd party application, so there's actually no FLA involved. This
    particular font that is being embedded is actually derived from a
    system font, but it is a new font. Specifically, it is modifying a
    font on my machine to be super/subscripted, and embedding it as a
    seperate font. I need that superscript/subscript modified font.
    Thanks for any tips.

    Urami,
    Thanks, the problem is I don't have the ability to set up
    shared assets from the source app. There's actually no FLA involved
    here, it's generated by a third part application.
    kglad,
    Free mathematic fonts? That's sounds like just what I need...
    I haven't found anything, though, can you tell me more? One issue
    is that I can't really use Unicode characters(Microsoft San Serif
    provides 1-0 and some other characters in sub/sup), because
    otherwise it doesn't work cross platform in HTML
    text(TextField.htmlText).
    My end goal is to be able to take a string from an XML node
    like this:
    <p>E=mc<sup>2</sup></p>
    And have it work in a dynamic textfield. To do this, the best
    solution I can think of is to make a sub/sup font face, and simply
    find and replace <sup> and <sub> tags with <font>
    tags, so the above would become:
    <p>E=-mc<font
    face="ArialSuper>2</font></p>
    Kind of ugly in the sense that you have to embed multiple
    font faces just to get sub/sup abilities, but nothing else I've
    tried has made me happy either. This seems like the least evil I
    can find thus far, untill the SWF format/Player supports dynamic
    sub/sup.

Maybe you are looking for