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

Similar Messages

  • HTMLLoader loading local content (SWF files) problem

    Hello guys,
    I'm just finishing my application but I facing a problem.
    I'm currently developing a desktop application using AIR.
    I'm using HTMLLoader to load local SWF files when te user tries to access specific content on the application.
    I successfully accomplished this, but the loaded SWF also loads other files (assets and xml files with translations) and that is not working.
    When a SWF is loaded he just stops on his own loading screen (when loading the XML files).
    All this stuff is happening on my CustomNativeWindow:
    (my CustomNativeWindow "overlays" the main application)
    public function CustomNativeWindow()
             var nativeWindowInitOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
             nativeWindowInitOptions.systemChrome = NativeWindowSystemChrome.NONE;
             nativeWindowInitOptions.renderMode = NativeWindowRenderMode.DIRECT;
             nativeWindowInitOptions.resizable = false;
             nativeWindowInitOptions.maximizable = false;
             nativeWindowInitOptions.minimizable = false;
             super(nativeWindowInitOptions);
             alwaysInFront = true;
             this.activate();
    public function setProperties(contentName:String, contentURL:String, posX:Number, posY:Number, stageWidth:Number, stageHeight:Number):void
              this.stageHeight = stageHeight;
              this.stageWidth = stageWidth;
              this.contentURL = contentURL;
              this.contentName = contentName;
              this.x = posX;
              this.y = posY;
              this.width = stageWidth;
              this.height = stageHeight;
              this.title = contentName;
              this.addEventListener(Event.RESIZE, onWindowResize);
              SWFHTMLLoader();
    private function SWFHTMLLoader():void
              //REQUEST LOAD URL
              var request:URLRequest = new URLRequest(contentURL);
              //HTML LOADER SWF
              htmlLoader  = new HTMLLoader();
              htmlLoader.width = stageWidth;
              htmlLoader.height = stageHeight;
              htmlLoader.addEventListener(Event.COMPLETE, onHtmlLoaderComplete);
              htmlLoader.load(request);
              stage.addChild(htmlLoader);
    private function onHtmlLoaderComplete(e:Event):void
              trace("NATIVE WINDOW HTMLLoader complete");
              onWindowResize();
    private function onWindowResize(e:Event = null):void
              if (htmlLoader)
                        htmlLoader.width = stage.stageWidth;
                        htmlLoader.height = stage.stageHeight;
    Probably something related to security?
    How can I fix this?
    Is kinda urgente... deadline is coming...
    Thank you!

    Thank you kglad for your fast response...
    The reference to the content comes from a XML loaded on the main application.
    var xml:XML =      <Content  en="game" >
                                      <ImageSource>assets/images/gallery/resources/gameone.png</ImageSource>
                                      <ContentSource>content/gameone/gameone.swf</ContentSource>
                                </Content>;
    contentURL = xml.ContentSource;
    So contentURL is: content/gameone/gameone.swf
    Am I in trouble?

  • Avoid to cache(save) swf files to temporary internet folder

    Hello eveerybody,
    Everybody said it is impossible to do this, but this site
    http://www.kroketes.gr/gr.html doesn't save swf files
    into the temporary internet folder.
    Does sombody know how it is working?
    Please help.
    Thanks.

    Hello sotoodeh,
    it's nonsense, sorry but this site will be cached normally
    e.g. by a firerfox browser. Maybe you are not aware, that there
    maybe, more than one temporary internet files directory on your
    system?
    Just go again on this page, then search for start.swf on your
    system. If you don't find it, than the fact that your system did
    not cache the swf has nothing to do with the coding of the page but
    your own system or browser properties...
    There is absolutely nothing that prevents caching on this
    site... the best way to prevent a browser to load content from
    cache is to use a dynamic changing url, something like
    http://mysite.com/flash.php?id=2&random=2385632873...
    If you have something like this random value in the url, you
    can force a browser to load everything again from the site and not
    from cache... that's the best way I know to prevent LOADING from
    cache, not caching itself... there are also meta tags for caching,
    but it depends on the browsers settings if it follows meta
    instructions like this...

  • Flex mobile - file access on a android device

    Hi,
    is it possible to access the file system (to read a text file) of a andoid device and if yes, how can i do that?

    Not sure if all of these are accessible but you may want to start with the directories provided in flash.filesystem.File. Some of those might resolve to useful locations on device. http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.h tml

  • Can we integrate .swf file in java script ?

    Hello Friends,
    We implemented one concept in Flex and now would like to integrate with JavaScript. Earlier we integrated an Applet code but now, we developed the concept in Flex, however, I am unable to integrate the concept in java script.
    Can anyone help me out with the procedure to integrate flex swf file in java script ?
    Here is my earlier java script code :
    var file=gup('query');
    //document.write(file);
    var prevFile=gup('prevFileName');
    //document.write(prevFile);
    document.write("<table align=\"center\"><tr><td><applet code=\"MyApplet.class\" archive=\"Visual.jar\" width=1000 height=500>");
    document.write("</applet></td></tr></table>");
    function gup( name )
      name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
      var regexS = "[\\?&]"+name+"=([^&#]*)";
      var regex = new RegExp( regexS );
      var results = regex.exec( window.location.href );
      if( results == null )
        return "";
      else
        return results[1];
    Thanks in advance.

    What version of FlashPro are you using? If you want a self contained app that doesn't load external resources, publish an AIR app, which will work on Windows or OSX. I'm using OSX so I can't really help with .exe projector files, but it looks like the latest version of FlashPro no longer outputs projector files—I think everything is AIR now.
    If you really want to go the projector route, I'm guessing Jeffrey Smith's suggestion of finding an older version of Flash Player would be simpler.
    So for AIR, set your Publishing target to AIR for Desktop. Then under File>AIR settings:
    Output as: Application with runtime embedded
    Include files: Add all of your resources—the swf ID generated and it's resource folder
    In the Signature tab click New to create a self-signing Certificate (if you were developing commercial software you would need a third party certificate). You can save the certificate anywhere.
    When you publish you should find an AIR application file (.app) file in the directory with your .fla

  • 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 can I download a .swf file?

    Hi everyone!
    I'm trying to make an Objective-C application (using Apples Cocoa framework) to download .swf files off the internet.
    All the my program requires ia the URL address of the .swf file, (http://media.y8.com/games/content/Bowser_Ball.swf, for an instance). And then you're supposed to click the "Start download" button to start downloading the .swf file. But how could I actually download the file, and save it to a file on the users disc?
    What would you suggest? - Please post a snippet or a link for reference .

    Ahh thanks, I got it downloading the .swf files now, and I can play them without any problems what so ever!
    My only concern now is the user interface!
    I have this message box in which it is supposed to print "Downloading and saving SWF file.." and then start the animation of a NSProgressIndicator and then print "Downloaded and saved!" and stop the animation of the NSProgressIndicator once the files is downloaded & saved.
    But it's like it's downloading and saving first, and then starting and stopping the animation etc, etc.. so I never actually get to see the animation & text updates? - How can this be changed? - Here's a link to my Controller.m class:
    http://pastebin.com/YKHVPr3H .

  • Tutorials in SWF output format prompted "Do you trust this content to connect to the Internet?" when opening another SWF file

    Please help.
    I have a tutorial with in the output format of SWF and HTM. I have click boxes that On Success will open another tutorial (SWF file). When I click on the click box, I get prompted “Do you trust this content to connect to the Internet?” by the Adobe Flash Player. I can click “Yes” and continue, however I don’t want the user to get prompted for every click box with this action (there is one for every tutorial and navigation buttons to each tutorial). I also think that SCORM can't handle the prompt, because when I run the tutorial from the LMS the click boxes do not work at all.
    I have tried selecting “Always allow” in the Global Security Settings panel as per the instruction on this website: http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l.
    Any ideas?

    Hi,
    I wanted to add on a question to this posting.... I believe Rod's instructions must be followed on a per-PC basis, correct? Is there any way to disable this globally when/after I publish the files rather than telling 1000 users across the globe that they have to change their security settings? I don't think so from the article (very thorough) but just hoping there's something I can do?!
    Thank you!
    Michele

  • Accessing local swf file

    I have an odd problem that doesn't seem to be addressed. I have a web site that uses a combination of js and swf files to load and display thumbnails which then uses flash to resize them and flash player to display them. With the latest flash player and Firefox update, everything works fine when live. It also works fine when opened locally in IE8 and Chrome. However, these files won't load locally in Firefox since the updates, although they work fine when live.
    Rolling back flash player might work, but I hesitate since everything is working except for this one thing

    Just to clarify..the problem occurs only in the flash section of the page. It will not load this section.
    I'm using file://protocol and have no problems with anything else. I don't know the number of the firefox version, but this only occurred with the latest update. I allowed both flash and firefox updates at the same time.
    I use relative paths which work everywhere else and open the html in the browser locally by either clicking the html file or File>Open File>Page Source
    Flash trusted locations is one of the first things I did. Works fine for all other browsers.
    I'm wondering if there is some connection to the new protected mode. Flash site says they are not supporting WindowXP with this, but it also says it will allow old security rules if on trusted location. Totally baffled.
    The only other possibility I can think of is the coding. I have some problem there that I haven't addressed yet. But in saying that, it does work when live, so that doesn't seem overly likely.

  • SWF file contains ref. to local dir structure

    Newbie here; sorry.
    Flash CS4 Professional, ver. 10
    Am creating a simple flash video to get my feet wet. In the
    process, I am drowning.
    I created the video with Flash (ActionScript 3.0) by
    inserting a player object, and specifying a f4v source that I had
    created using the CS4 Media Encoder to convert a wmv file; nothing
    to it.
    Publish Preview worked fine. Publish Settings/Publish created
    the necessary files, just as decribed in a Flash 411 tutorial:
    http://tv.adobe.com/?trackingid=EBYHH&pss=fl_10.0.0_win_en_full__PF_20040226#vi+f1527v1000 .
    Video works fine on my local PC (XP, SP2). But when I load it
    to my server, it does not work. In IE 7, the page loads; source
    code is there, but the window is blank:
    http://www.bbhq.us/pva1.html
    Adding mime type to .htaccess file did not solve the problem.
    Changing permissions to the files did not, either.
    It apparently is not a server problem. A simple swf file
    created by Mr. Gates and simple HTM coding works:
    http://www.bbhq.us/flash3.htm
    What does Mr. Gates know that I do not?
    Well, where do I begin???
    However, when I loaded my file --
    http://www.bbhq.us/pva1.html
    -- in FireFox 2.0, I got a blank window, but also this revealing
    error message:
    SecurityError: Error #2148: SWF file
    http://www.bbhq.us/pva1.swf
    cannot access
    local resource F:\pva1\pva0117a.f4v. Only
    local-with-filesystem and
    trusted local SWF files may access local resources.
    at flash.net::NetStream/play()
    at fl.video::VideoPlayer/
    http://www.adobe.com/2007/flash/flvplayback/internal::_play()
    at fl.video::VideoPlayer/
    http://www.adobe.com/2007/flash/flvplayback/internal::_setUpStream()
    at fl.video::VideoPlayer/
    http://www.adobe.com/2007/flash/flvplayback/internal::_load()
    at fl.video::VideoPlayer/load()
    at fl.video::FLVPlayback/doContentPathConnect()
    That tells me that the swf file has my original directory
    location and file name(s) -- F:\pva1\... -- embedded in it. No
    wonder!
    However, I cannot see where in Flash I specify a directory
    structure for my video, other than, of course, when I originally
    specified the video to add to the player component. But somehow,
    the swf file picks up the directory structure as part of the file
    names. That boat does not float.
    Adobe help did not throw me a life preserver; it tossed me a
    lead weight, instead.
    Must be a settings issue somewhere, or I am missing something
    obvious that I just cannot see.
    Goin' down here for the 3d time. A little help here, please.
    Thanks.

    Thanks for your quick response. But it left me still treading
    water.
    Yep; got to the content inspector; The parameters that I see
    are as follows:
    align
    autoplay
    cuepoints
    islove
    preview
    scalemode
    skin
    skinautohide
    skinbackgroundalpha
    skinbackgrundcolor
    source
    volume
    There is no contentpath parameter/property.
    This help page references the contentpath that you
    referenced:
    http://help.adobe.com/en_US/Flash/10.0_UsingFlash/WS0ED77F00-2006-49aa-8399-92B6D5D8CE00.h tml#WS9A834D6F-8206-4e07-B840-456EF90C03CB
    It describes the contentpath as you suggested:
    "contentPath (AS2 files) String that specifies the URL to an
    FLV"
    The reference to AS2 in parens suggests that this parameter
    applies only to AS2 files. Or, perhaps this parameter is not
    applicable in CS4, version 10. I donno, but I sure do not see it in
    my version of Flash.
    However, you and the the help page did throw me a lifeline.
    WIth the f4v file already loaded on my server, I modified my
    project, specifying, as the source parameter, the name of my fv4
    file as it is loaded on the server -- http:www.myserver...fv4 --
    not the file on my local PC. So when Flash published the project,
    it uses that name, with no reference to my local directory..
    Of course, the f4v file must exist on the server for it to
    publish properly.
    That did it.
    It makes sense, but it is certainly not obvious and it is not
    explained in any documentation I have found.
    Am I the only one to whom this was not obvious?
    Thanks; you led me to a solution.
    jjt

  • How can I disable local file access security check?

    Windows 7
    Firefox 3.6.16
    I would like to disable the security check used for blocking access to local files.

    I don't know if this is completely correct, but...
    I have the NoScript extension installed. When I looked in about:config, I found an entry called:
    noscript.allowLocalLinks
    When I toggled this to "true," I was able to navigate via URLs to local and networked files.
    When I looked it up, I found out that you can set this switch using the NoScript UI (Options|Advanced|Trusted).

  • How to play swf file in flex builder3?

    Hi!!!!!! I have made a video player in Flex project ......In source of video display I have added the path of my swf file which is as follows:
    <mx:VideoDisplay id="player" source="C:\Documents and Settings\sachin\Desktop\absolute-values.swf"
    maintainAspectRatio="true"
    width="450" height="300" autoPlay="false"
    playheadUpdate="videoDisplay_playheadUpdate(event)  ;"/>
    But when I am clicking on Play button ,I am getting following error:
    Error: 1000: Unable to make connection to server or to find FLV on server.
    at mx.controls.videoClasses::VideoPlayer/play()[C:\autobuild\3.2.0\frameworks\projects\frame work\s rc\mx\controls\videoClasses\VideoPlayer.as:1327]
    at mx.controls::VideoDisplay/play()[C:\autobuild\3.2.0\frameworks\projects\framework\s  rc\mx\controls\VideoDisplay.as:1464]
    at basicvideoplayer/___basicvideoplayer_Button1_click()[C:\Documents and Settings\sachin\video player\src\basicvideoplayer.mxml:44]
    Can anyone help me in removing this error?Kindly give me a  code  to Play,Pause and stop my swf file.

    GRag and Mesh are correct. You cannot use Flex to access a file on a user's hard drive, which is where your path is pointing.
    Instead, create a folder within your Flex project, under the "src" folder (example: src/assets/videos), and put the SWF there. Change the path in your code to point to the new location, like "assets/videos/myVideoFile.swf". Note that you don't refer to the src folder; it is the "root" of your application, and when you deploy all your files to your web server, you will be copying the folders you created to the root folder of your web server. So, all the paths will remain consistent. Flex will attempt to find "assets/videos/myVideoFile.swf", starting from the "root", or location, of the application itself.

  • Embedding local .swf file in AIR app

    Hi all,
    I want to include a small Google Maps .swf file as part of my overall HTML based AIR application and I was wondering whether anyone here has had any success in achieving this. Currently, my set up looks like this:
    AIR xml file:
    <?xml version="1.0" encoding="utf-8" ?>
    <application xmlns="http://ns.adobe.com/air/application/1.5">
        <id>gmaps</id>
        <filename>gmaps</filename>
        <version>0.1</version>
        <initialWindow>
            <title>gmaps2</title>
            <content>gmaps2.html</content>
            <systemChrome>standard</systemChrome>
            <transparent>false</transparent>
            <visible>true</visible>
            <width>1200</width>
            <height>1000</height>
            <x>20</x>
            <y>20</y>
            <minimizable>true</minimizable>
            <maximizable>true</maximizable>
            <minSize>850 636</minSize>
            <resizable>true</resizable>
        </initialWindow>
    My gmaps2.html file:
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <title>GMAPS</title>
        </head>
        <body>
            <div id="map_canvas" name="map_canvas">
                <object
                  classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
                  width="800px"
                  height="600px">
                      <param name="movie" value="app:/flex/GMapsController.swf">
                      <param name="quality" value="high">
                      <param name="flashVars" value="key=CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CC">
                      <embed
                        width="800px"
                        height="600px"
                        src="app:/flex/GMapsController.swf"
                        quality="high"
                        flashVars="key=CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCC"
                        pluginspage="http://www.macromedia.com/go/getflashplayer"
                        type="application/x-shockwave-flash">
                </object>
              </div>
        </body>
    </html>
    My GMapsController.mxml file:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <maps:Map xmlns:maps="com.google.maps.*" id="map" mapevent_mapready="onMapReady(event)" width="100%" height="100%"
        url="http://my.domain.com" key="CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC"/>
        <mx:Script>
            <![CDATA[
                import com.google.maps.LatLng;
                import com.google.maps.Map;
                import com.google.maps.MapEvent;
                import com.google.maps.MapType;
                private function onMapReady(event:Event):void {
                    this.map.setCenter(new LatLng(40.736072,-73.992062), 14, MapType.NORMAL_MAP_TYPE);
                public function setLocation(lat:Number, long:Number):void {
            ]]>
        </mx:Script>
    </mx:WindowedApplication>
    When I open my air app, I don't get any error messages and it appears that the swf is not loaded at all.
    When I switch my AIR .xml file to point to the GMapsController.swf file instead of the gmaps2.html file, it works perfectly - this gives me the impression that there's either:
    1. Something wrong with including a WindowedApplication in a HTML file.
    2. Something wrong with including a local .swf file in HTML based application.
    I've tried referencing the .swf file in the html file from a remote server with the following:
      <div id="map_canvas" name="map_canvas">
                 <object
                   classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                   codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
                   width="800px"
                   height="600px">
                       <param name="movie" value="app:/flex/GMapsController.swf">
                       <param name="quality" value="high">
                       <param name="flashVars" value="key=CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CC">
                       <embed
                         width="800px"
                         height="600px"
                         src="http://my.server.com/GMapsController.swf"
                         quality="high"
                         flashVars="key=CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCC"
                         pluginspage="http://www.macromedia.com/go/getflashplayer"
                         type="application/x-shockwave-flash">
                 </object>
               </div>
    but no luck with that.
    Any help would be greatly appreciated.
    Thanks
    Sean

    Brandon,
    Thanks for the link - I wasn't aware about the HTML Loader class and how it relates to loading Google Maps. I'm not using the HTML loader class though, so I'm not sure how it relates to the issue I'm having.
    I'm currently following the advice outlined at http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS4B441C24-BAE3-4110-91FD-A4E5EEFB2467.htm l where the SWF object is loaded through JavaScript, but I haven't had any luck with it yet. I'm pretty new to Flex/Flash/AIR applications - I'm starting to think it could be something simple wrong with my .mxml file:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <maps:Map xmlns:maps="com.google.maps.*" id="map" mapevent_mapready="onMapReady(event)" width="100%" height="100%"
        url="http://my.server.com" key="CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC"/>
        <mx:Script>
            <![CDATA[
                import com.google.maps.LatLng;
                import com.google.maps.Map;
                import com.google.maps.MapEvent;
                import com.google.maps.MapType;
                private function onMapReady(event:Event):void {
                    this.map.setCenter(new LatLng(40.736072,-73.992062), 14, MapType.NORMAL_MAP_TYPE);
                public function setLocation(lat:Number, long:Number):void {
            ]]>
        </mx:Script>
    </mx:WindowedApplication>
    I've tried creating a different .mxml file from the code outlined http://www.mikechambers.com/blog/2007/11/07/air-example-native-drag-and-drop/ (just as an example), just to make sure that the problems I'm having are not related in any way to the Google Maps API for Flash. Even with this second .mxml file, I still haven't had any luck in getting the swf content to load locally from the HTML file. However, if I set the content element in the AIR .xml file to look like this:
    <content>DragAndDropExample.swf</content>
    ... it works as expected.
    So, this has started me thinking that you cannot include a .swf file which has a base tag of WindowedApplication in a HTML based application? Can anyone confirm that this thinking is correct?
    Has anyone here managed to load .swf content in a HTML based application using the code outlined at http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS4B441C24-BAE3-4110-91FD-A4E5EEFB2467.htm l?
    Thanks
    Sean

  • Accessing events from externally loaded swf file

    hello,
    I have an swf file developed in flash 8. After loading that
    file into SWF Loader control in flex builder 3, how can we access
    the controls and events present in that particular file ?

    "surya_dhul" <[email protected]> wrote in
    message
    news:gg84e2$slm$[email protected]..
    > hello,
    > I have an swf file developed in flash 8. After loading
    > that
    > file into SWF Loader control in flex builder 3, how can
    we access the
    > controls
    > and events present in that particular file ?
    I think you'll need to use localConnection.

  • How to use an SWF file generated by Flex as a Stand Alone file

    Whenever we compile an MXML file, there is an SWF file
    generated. This file is not a standalone file and will not work on
    any other computer expect on the computer where there is a Project
    file created by the Flex builder.
    Why am I not able to use that SWF file as a stand alone file?
    If I want to use that SWF file alone as in the SWF generated
    by Flash what do I have to do?
    Regards,
    Rashmi

    The swf file will run from anywhere. What's it doing when you
    try to open it on another machine?
    The only thing I can think of is if you're getting a security
    violation in which case you would need to read about Flash Player
    trust files and security.
    -Mac

Maybe you are looking for