Flex 3 locale swf loading bug on firefox

Hi all
I REALLY need your help here
if anyone knows this bug or have any idea how to deal with it, it would really mean a lot to me
i've been tring everything
description:
i'm building an application using flex 3, where all texts are being localized via the locale loaded at runtime
i suspect that for some reason the  locale swf i'm loading isn't updating elements of the page
as you can see in the image below, texts appear cut off.
this happens to me only in firefox, no matter which page of the app is being displayed
any ideas?
appreciate your time in answering
Yariv Gilad

Hello and thank you for your quick answer
the text is indeed right, and what you say make sense to me
how can i proceed from here though?
how can i fix the "sizing and positioning problem" ?
the UI components are there and are being populated dynamically through the locale
is there a way to force them to update?
is this the right direction at all?
any other ideas?
just to note that if i hard-code the text into the components they are rendered perfectly
so i don't see a reason to change their position or size...
thank you for your time
Yariv Gilad

Similar Messages

  • A swf loader bug?

    It looks like I may have found a bug in the swf loader.  Before I submit this problem I want to make sure there is not something I'm missing in my code. I wrote this class to load a tutorial when the user first launches a sub application in a project I'm working on. This is a simplified version of the class that exemplifies the problem.  The same methods I use to launch the swf from within an mxml work just fine, but when I externalize the process in this class, I can hear the tutorial, but I get no visual.  Is this a bug or am I missing something?
    Here is the tutorial launcher class:
    package proj.fuego.utils
         import flash.events.Event;
         import mx.controls.SWFLoader;
         import mx.flash.UIMovieClip;
         public class TutPlayerSimple extends UIMovieClip
              private var gutLoader:SWFLoader;
              public function TutPlayerSimple(fullTutorialPath:String)
                 gutLoader = new SWFLoader();
                 gutLoader.addEventListener(Event.COMPLETE, addToStage);
                 gutLoader.load(fullTutorialPath + ".swf");
                 //addChild(gutLoader);
              private function addToStage(evt:Event):void
                 addChild(evt.target.content);
    This is my mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" minWidth="1024" minHeight="768" applicationComplete="application1_applicationCompleteHandler(event)">
         <mx:Script>
              <![CDATA[
                 import mx.controls.SWFLoader;
                 import mx.events.FlexEvent;
                 import proj.fuego.utils.TutPlayerSimple;
                 private var fullTutorialPath:String = "ll_tut";
                 private var tutPlayer:TutPlayerSimple;
                 protected function application1_applicationCompleteHandler(event:FlexEvent):void
                      // TODO Auto-generated method stub
                      var context:LoaderContext = new LoaderContext();
                      tutPlayer = new TutPlayerSimple(fullTutorialPath);
                      //context.checkPolicyFile = true;
                      //gutLoader.loaderContext = context;
                      trace("Loading Tut:", fullTutorialPath + ".swf");
                      addChild(tutPlayer);
              ]]>
         </mx:Script>
    </mx:Application>

    That didn't look right.  You'll need to addChild SWFLoader.  Not sure what will happen if you just try to add its content.  There might also be issues putting Flex components inside a UIMovieCip.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Xcelcius Line Chart in SWF Loader - Bug ?

    Sometimes SWF Generated by Xcelcius (SAP Business Object Dashboards) display result like picture below .. randomly.
    My Version is the latest version 14.1.3.1334 SAP BO 4.1 Support Pack 3 Patch 2.
    It is bug .. or something wrong in my xlf ?
    I can't find any thing in the forums about this.  Thanks

    To me it works perfectly alright, as discussed earlier I would suggest you to raise a ticket on this to SAP.

  • Loading local swf files from Application Dir (ios)

    Hi Guys,
    I would like to load additional local swf files to my ios release build but I am confused a little bit because of the new API changes.
    As far as I know at the moment (from Air 3.7 or newer) it is allowed to load local swf files that contains compiled actionscript both from local folder and from a predefined remote host as well. 
    My assumption based on this article:
    http://blogs.adobe.com/airodynamics/2013/03/08/external-hosting-of-secondary-swfs-for-air- apps-on-ios/
    I created the text file to include all of my local swf file names and created the following node in the application.xml:
    <iPhone>
           <externalSwfs>assets/SampleSWFInfoFile.txt</externalSwfs>
    </iPhone>
    When I compile the release build (ipa) using command line adt, it converts all of my local swfs into the stripped swfs which is perfect, but even though I include all the swfs in the compiler command, it puts only the SampleSWFInfoFile.txt file into the assets folder in the ipa but not the swf files.
    I assume, it thinks I will load these files from an external host, but I would like to include them in the app itself.
    I tried to copy the stripped swf files from the externalStrippedSwfs folder and comment the <externalSwfs>assets/SampleSWFInfoFile.txt</externalSwfs> node in the application.xml and compile it and this way it puts the swf files into the ipa, but when I try to install and launch the app it crashes and when I test it using Flash Builder it shows an error message
    "VerifyError: Error #1042: Not an ABC file."
    Do any of you guys know the  solution for this problem?
    Thank you for your help in advance!

    You're publishing in AOT mode as long as you use one of these:
    The AIR Developer Tool or ADT has targets that lets you package apps either for the AOT mode or Interpreter mode. The targets for packaging in AOT mode are ipa-app-store, ipa-ad-hoc, ipa-test and ipa-debug.
    Flash Pro CS6 and Flash Builder automate this process pretty well so it's invisible but the SWF loads and executes code just fine for me when directly published.
    If I take it to command line I can use this to compile successfully (iPad test app):
    adt -package -target ipa-ad-hoc -storetype pkcs12 -keystore my.p12 -provisioning-profile my.mobileprovision NameOfApp.ipa NameOfApp-app.xml NameOfApp.swf iTunesArtwork iTunesArtwork@2x AppIconsForPublish swfs/swfs.txt swfs/GenerateText.swf
    I at least include generic icons in there but I made a 'swfs' folder and placed 'swfs.txt' and 'GenerateText.swf' in there. The SWF uses code to randomly generate text and changes every second using a Timer. I load it in using the same code you do with the ApplicationDomain.currentDomain context. I see the SWF appear and text start randomly changing.
    As I compile there's a folder generated called 'externalStrippedSwfs' with the stripped SWF in there.
    One thing to note is I do not supply <externalSwfs>swfs/swfs.txt</externalSwfs> in my iPhone settings. If I do that it doesn't work. I supply the path to the text file containing the SWF I want to be stripped to adt itself along with the SWFs I want stripped and it takes care of the rest.

  • Can I load a swf into my Flex app that loads other swf's?

    The code below loads an AS2 swf into my Flex mobile for IOS app and it works.  If that AS2 swf has like a circle in it that runs across the stage, it loads and displays properly when run in FlashBuilder.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                                     xmlns:s="library://ns.adobe.com/flex/spark"
                                     xmlns:mx="library://ns.adobe.com/flex/mx"
                                     initialize="init()">
              <fx:Script>
                        <![CDATA[
                                  import mx.core.UIComponent;
                                  private var request:URLRequest = new URLRequest("http://PATH_TO_AS2_SWF");
                                  private var loader:Loader = new Loader();
                                  private var myComponent:UIComponent = new UIComponent; 
                                  private function init():void{
                                            myComponent.percentHeight = 100;
                                            myComponent.percentWidth = 100;
                                            loader.load(request);
                                            myComponent.addChild(loader);
                                            player.addElement(myComponent);
                        ]]>
              </fx:Script>
              <s:Group id="player"
                                   height="100%" width="100%"/>
    </s:Application>
    But if that AS2 swf loads other swf's, they don't load or display.  My FlashBuilder debugger reports no errors or security sand box violations.   I'm using the most elemental code in my AS2 swf so as to not cause problems.  This is it in its entirety:
    this.onLoad = function(){
              _root.loadMovie("http://[PATH_TO_REMOTE_SWF]");
    The paths to the remote content are fine because swf's load and display fine from AS2 swf when run on it's own - not embedded in Flex app.  They also load and run fine if I cut out the AS2 swf and access directly from my Flex code.  So I know there isn't a path issue.  More likely not accessing the right layer in the AS2 swf from Flex or something.  Or maybe security sandbox violation but I don't see anything reported in the FlashBuilder debug console.  When run console just reports:
    [SWF] SwfMobile.swf - 2,639,761 bytes after decompression
    [SWF] assets/swf/AS2.swf - 1,470 bytes after decompression
    Is there something inherently wrong with loading swf's that load other things?  Even if I have the AS2 swf load jpgs they don't load so the format of the target content at the end of the chain doesn't seem to be the issue.  Just the act of embedding a swf that loads other things seems to be the problem.

    Ah, yes. Using an AVM1 SWF could prove difficult...
    I'm going on about 3 hours of sleep at the moment, but let me toss out a few thoughts I have and hopefully something will stick...
    Ok, so my first thought what to try and cast the loaded content as a MovieClip and call methods on that, but the fact they are AVM1 throws that out the window.
    That leaves LocalConnection, as you mentioned. But this would require you to have code on the receiving end to handle the connection... no good either.
    But what if you created a "bridge" in AS2 that holds all the code for the receiving end of LocalConnection (or has the control logic itself, perhaps even eliminating the need for LocalConnection all together!). I think maybe this is what you were trying to do already by loading a SWF into a SWF? Well instead of loading your bridge at runtime, what if you statically linked it into your project as a class?
    *a few moments later*
    Well it looks like you can in fact link in a a symbol created for AVM1, but it will only come in as a SpriteAsset, and will not include any custom code (which makes sense, since they use entirely different class constructs).
    To do the test, I created a symbol exported for actionscript (AS2/Flash8), then linked it in with a CSS style embed. I then instantiated the class and called describeType on it.
    So in summery, it looks like calling custom code on the bridge is out (I did not test this extensively, that was just my first impression with this simple test). However, if you may be able to perform the actions you need by attempting to cast the loaded content into something AVM2 can recognize. Apparently it does this automatically when linked in statically, so maybe there is something there worth looking into... mainly, can you do what you need using only the base class and no custom code?
    Keep me posted!

  • 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

  • Communication from a flex app. to a swf loaded inside it at runtime

    I am loading a swf (made with Flex 2) inside another flex
    application using the SWFLoader as:
    <mx:SWFLoader id="swfLoader1" source="Modules.swf"
    width="100%" height="100%"/>
    the swf ("Modules.swf' ) loads as expected, but form the
    parent movie I want to be able to control (change values of
    variables) parameters on the child swf (swfLoader1).
    When a click a button in the host movie I want to change the
    text on a label on the child movie, but it is not working for me.
    I have done this:
    when clicking the button call a function doStuff()
    public function doStuff():void
    var myMovie:* = swfLoader1.content;
    myMovie.mod1_desc.text = "blah blah";
    But it's not working. Then I tried
    public function init():void
    _loader = new Loader;
    extContent.addChild(_loader);
    _loader.contentLoaderInfo.addEventListener(Event.INIT,
    doStuff);
    _loader.load(new URLRequest("Modules.swf"));
    init() is called from creationComplete on the Application
    (MXML) and when the _loadr is loaded it calls the doStuff function
    above. Again is not working.
    Any suggestions on how to do this right?
    Gilbert

    Probably not.  Otherwise lots of great malware would be delivered via Flash.

  • Local SWF File locked after loading.

    I have 2 swf files... the main.swf loads the secondary.swf
    main.swf is and will run on my local computer in the
    standalone flash player.
    When main.swf loads secondary.swf all is well except
    secondary.swf is locked on my local file system, I cannot rename,
    delete, or overwrite it as long as main.swf is running.
    I would like main.swf to load secondary.swf and then close
    the file, seems simple!! however I have had no luck in
    succeeding....
    I am using the standard methods for loading URLRequest and
    Loader.
    Any ideas!? Thanks!

    SOLVED
    Eventually, I found out the reason of the error. It seems due to security reasons pathes including ".." (up directory) are considered as unsafe!
    http://www.adobe.com/devnet/air/articles/introduction_to_air_security.html
    Unfortunately, it's not mentioned explicitly that the usage of such notation causes the security error.
    The solution is to process pathes before pass them to URLRequest e.g. by using the following routine:
    private function canonicalize_path(fn: String): String
         var f: File = new File(fn);
         f.canonicalize();
         return f.nativePath;

  • NavigateToURL bug in FireFox?

    Hi all,
    I'm expreiencing a strange bug with FireFox... I have the
    following example application:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import flash.net.navigateToURL;
    private function onClick():void {
    navigateToURL(new URLRequest("abc.html"));
    ]]>
    </mx:Script>
    <mx:Button label="test" click="onClick()"/>
    </mx:Application>
    So, basically, when I click the "test" button, the browser
    should go to "abc.html".
    Now, if I run the application locally, it works perfectly as
    expected in both IE and FF. But, if I run the application off my
    webserver (Apache2), then IE still works perfectly, but FF doesn't.
    The behaviour I get in FF is as follows: when I click on the
    button, roughly half of the time it will work as expected (ie opens
    "abc.html" in a new tab), and the other half of the time FF
    displays a "FireFox prevented this site from opening a popup
    window" message.
    Now the fact that this only occurs when the application is
    served remotely is obviously due to FF's security model. But the
    weird part (bug?) is that the "blocking" occurs randomly. If I just
    click the "test" button a dozen times (slow or fast) the result
    will be around half a dozen new windows, with the other half a
    dozen blocked :(
    So, has anyone experienced this problem before? Can you spot
    anything wrong with the code in my example above? I've tried the
    example on another PC, and it has exactly the same problem - both
    PC's are running FireFox 1.5.
    Any thoughts would be really appreciated.
    Paul.

    Hi leotemp, thanks for you reply. I've had a play with the
    IFrame approach in the past, and it introduces some other problems
    for the type of app I'm writing (can't really say what that app is
    yet).
    I've done some more playing with the problem, and how's this
    for wierd mis-behaviour? ... I wrote an openNewWindow() JavaScript
    function and placed it into the HTML wrapper that loads the swf
    file. Then, if I call that function using navigateToURL, the same
    problem occurs. But if I call that function using
    ExternalInterface.call("openNewWindow","abc.html") then it *almost*
    works... you see, the ExternalInterface version works well if the
    call is made from a click handler (like the example above), but
    unfortunately, I need it to work in the result handler of a SOAP
    service call... and there, it is blocked again! Though this time
    the blocking is a lot more consistant... ie it blocks about 9 out
    of 10 tries :(
    I'm assuming that the problem is due to FF trying to
    differentiate between popups that are the direct result of user
    clicks, versus popups that result from automatic scripts - blocking
    the latter, but not the former.
    Any other ideas?!
    Paul.

  • Loading and Unloading of swf files in SWF Loader

    Hi all,
    I have a doubt reg. SWF Loader.
    I have created two mxml files A & B.
    A. local.mxml
    B. SwfSample.mxml
    i have two labels and a button in A file and i have set values to those labels and have a method to handle the click event of the button. In B file i have loaded this A file and accessed the labels and methods using SystemManager Component and changed the values of the A file's label and accessed data from A file to B file.
    Here comes the problem,
    I have two buttons named LoadAgain and Unload
    When i click the Unload button, the SWF Loader unloads its content by the method i handled for  the Unload button, after that i have clicked on the LoadAgain button to load the same content of A's mxml to the SWF Loader, it loads succesfully,but i was not able to access its Label or Method from the B mxml. Please help me to solve the issue.
    local.mxml
    <?xml version="1.0" encoding="utf-8"?><mx:Application 
    xmlns:mx=http://www.adobe.com/2006/mxml layout="absolute">
    <mx:Script>
        <![CDATA[
    Bindable]
        public var varOne:String = "This is a public variable";
        public function setVarOne(newText:String):void
              varOne = newText;
        ]]>
    </mx:Script>
    <mx:Label id="lblOne" text="I am here" x="28" y="88"/>
    <mx:Label text="{varOne}" x="166" y="88"/>
    <mx:Button label="Nested Button" click="setVarOne('Nested Button Pressed');" x="28" y="114"/>
    SwfSample.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application 
    xmlns:mx=http://www.adobe.com/2006/mxml layout="absolute">
        <mx:Script>
        <![CDATA[
              import mx.controls.Alert;  
              import mx.managers.SystemManager;  
              import mx.controls.Label; 
    Bindable]
              public var loadedSM:SystemManager;
              private function initNestedAppProps():void
                  loadedSM = SystemManager(myLoader.content);
              public function updateLabel():void
                  lbl.text = loadedSM.application[
    "lblOne"].text;
              public function updateNestedLabels():void
                  loadedSM.application[
    "lblOne"].text = "I was just updated" ;
                  loadedSM.application[
    "varOne"] = "I was just updated";
              public function updateNestedVarOne():void
                   local(loadedSM.application).setVarOne(
    "Updated varOne");
              public function unload():void
                   myLoader.content.loaderInfo.loader.unload();
              public function loadAgain():void
                   myLoader.load(
    "../bin-debug/local.swf");
            ]]>
         </mx:Script>
    <mx:Label id="lbl" x="72" y="47"/>
    <mx:SWFLoader id="myLoader" width="438" source="../bin-debug/local.swf" creationComplete="initNestedAppProps();" y="73" height="238" x="72" alpha="1.0"/>
    <mx:Button label="Update Label Control in Outer Application" click="updateLabel();" x="72" y="319"/>
    <mx:Button label="Update Nested Controls" click="updateNestedLabels();" x="72" y="349"/>
    <mx:Button label="Update Nested varOne" click="updateNestedVarOne();" x="72" y="379"/>
    <mx:Button label="Unload" click="unload();" x="72" y="409"/>
    <mx:Button label="Load Again" click="loadAgain();" x="72" y="439"/>
    </mx:Application>
    Thanks & regards,
    Sathish.K

    creationComplete only fires once when the SWFLoader is created.  Therefore you never reset your variables to point to the new sub-app.  On a slow network, creationComplete may fire before the sub-app loads.  It is best to use the COMPLETE event.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • 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

  • Localization issue: adding strings to locale swfs

    We are currently building an application that hosts flex
    modules within an ASPX application. We have a "homepage" that
    allows users to configure which dialogs (we call them widgets) will
    show on their homepage. At this point, we have had one resource
    bundle (.properties file) that we have used for all of the strings.
    We compile these resource bundles in the locale swfs for each of
    the 8 langauges we support.
    The twist is that we also allow customers to write "custom
    widgets" in Flex that they can add to the homepage if they so
    desire. It sounds like they could create a custom .properties file
    which would allow us to create a seperate resource bundle for the
    strings for their dialog. But then would the en-us.swf have to be
    recreated to include their bundle in the overall swf? If so,
    wouldn't the client have to have our "standard app" .properties
    file to make one cumulative en-us.swf?
    Or can you have multiple locale swfs for different dialigs
    (ie Standard.us-en.swf and Custom.us-en.swf)? That way our standard
    strings stay seperate, but the client can still add their own?
    Anyone have any thoughts?

    I think you can have separate locale swf. I think you can use
    loadResourceModule() to load any resource swf. See FB3 help topics:
    Localizing Flex Applications
    Using resource modules
    Creating resource bundles at run time

  • Tab navigator and swf loader issue

    I have written two flex applications. Each of the
    applications contains a tab navigator control. The direct children
    of this tab navigator are canvases, sized to max.
    i.e.
    <mx:Canvas label="WhateverLabel" width="100%"
    height="100%">
    <!--whatever additional children here-->
    </mx:Canvas>
    Everything works fine, the navigator, all its children and
    grandchildren Application does exaclty as it should ... untill I
    load it into another application using swf loader.
    Our main application is a menu driven app that loads
    individual swf files based on user selection. When either one of
    these programs (using the tab navigator described above) is loaded,
    I get a White Bar across the top of the screen, sized as the Tab
    navigator width.
    the white bar goes away as soon as the user interacts with
    any control, but it still is there on application load. Here is a
    picture of what I am speaking about.
    http://members.cox.net/dragon.magik/whitebar.jpg
    You can see the menu atop the screen as the base application.
    You can then see the panel right beneath it, that is the main panel
    of the application i am having problems with. The white bar, as you
    see, is as wide as my tab navigator. The TN labels are positioned
    correctly, but I don't know why I am getting the white bar. I am
    having the exact same problem with tab navigators in two different
    applications I load into this one control panel. Any help would be
    greatly appreciated. Thanks in advance.

    There is an unsolved bug in adobe.
    You have to solve it manually overriding the function:
    package
         import mx.containers.TabNavigator;
         public class TabNavigatorFixed extends TabNavigator
             public function TabNavigatorFixed()
                 super();
             override protected function  commitSelectedIndex(newIndex:int):void
                 super.commitSelectedIndex(newIndex);
                 if(tabBar.numChildren > 0){
                     // Select the corresponding Tab in the Tab Bar (this  fixes a bug in Flex)
                     tabBar.selectedIndex = newIndex;

  • Local swfs disappear on NTSC video desktop

    Has anyone run into this? I am on a PPC Mac OS 10.4.11 and I
    have two monitors, a Cinema Display and a NTSC monitor (Blackmagic
    video card) that I also use as an extended desktop. I create local
    swfs and play them with Flash Player and drag them over to the
    desktop to view on the NTSC monitor. After I updated to CS3 I
    notice now that any swf I publish and drag over to the NTSC
    monitor/desktop immediately turns to white. I've tried all settings
    and tested simple swfs with just simple graphics and it happens
    with all of them. Is this a bug? My swfs that I created in CS2
    display correctly. Any help would be greatly appreciated.

    The "Load" would look for previously used (and saved) filter adjustments. Obviously, you don't have any.
    In the Movie Settings window Filters dialog you'll find a three panel display. On the bottom (left) is the first frame of your file to use as a "preview" of the adjustments.
    On the left side you'll see the "filters" that you can choose from. Click the small disclosure arrow to open the list of filters for that particular item and you'll see the first frame of the file "change" in the preview just below.
    The right side of the window displays all of the adjustments.
    If the window is too small to view drag the lower right corner to enlarge it. In the 3 part dialog window you'll see two small "dimples" that you can drag to adjust their size.

  • 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

Maybe you are looking for

  • How do I make my waveform send one point per iteration in a loop?

    Hello, I am trying to create a demonstration/lab for a future course at my university.  I am trying to send data from a wind turbine to a third party DAC in order to run a motor.  I have found out that when I send a wave form to the DAC I must send o

  • Calling a method in a subclass?

    Hi, anyone an idea why method getInit() (in Applet class) isn't recognised in class Map? import java.awt.*; import java.awt.Color; import java.awt.event.*; import java.applet.*; import java.util.*; import javax.swing.*; public class Main extends Appl

  • Gf mx4000 128mb ddr tv dvi not working

    hi, i have a gf mx4000 120mb ddr tv dvi, old i know but its better than nothing, anyway, when i put it in my system and boot it up it powers my monitor up but shows no picture, i tried resetting the bios but still no luck. asus barebone a8v-md mother

  • Unable to install and use apps that i previously bought for 2nd gen touch as they all require iOS 4.3.

    Just found out that majority of the apps that i previously purchased and worked with my 2nd gen ipod touch with iOS 4.2.1, will not work as they are incompatible because the required iOS is 4.3. They worked before and now i have apps that i bought ju

  • Oracle Discoverer Plus - sub query

    Hi, Quick question do you know if the sub query is available in Disco Plus yet? If so which version and/or what configuration is required. I know you can still do this in the desktop and then run it in plus but this means users can't do it. Regards,