This.stage in a SWF loaded into Flex

I'm running into an issue where I have a SWF created in Flash that adjusts its size according to parameters using Stage.scaleMode = StageScaleMode.NO_SCALE and Stage.align = StageAlign.TOP_LEFT, but for some reason the reference to this.stage is lost when its loaded into Flex. In Flex, I receive an error for Cannot access property or method of a null object reference. Is there some conflict with this.stage inside of Flex?
Thanks,
Michael

Make sure you are accessing this.stage property late enough during the initialization of your application.
For instance, if you've got an application event trigger a call to an init() function, make sure the trigger is applicationComplete and not creationComplete.
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
   applicationComplete="init()">
In order to access an application's stage property, to add an event listener for instance, you'll need to make use of the applicationComplete event. This event is triggered a little later in the application initialization process.
Let me know if that does/not help.
Ben Edwards

Similar Messages

  • Closing swf loaded into movie clip

    I have built a movie clip on my main flash file that I am loading separate swfs into. On the separate swfs I have a close button, but do not know what action script to attach to it to make the movie clip go away? I want these to go away every time you hit the close button on the separate Flash swfs loading into the main movie clip.

    if the target movieclip has a non-negative depth and the close button is encoded on the loaded swf's main timeline, you can use:
    var tl:MovieClip=this;
    path.closeBtn.onRelease=function(){
    tl.removeMovieClip();

  • Is it possible to Load External SWF files into Flex Mobile projects?

    Hi Guys,
    I'm trying to load an external asset in this cse (a SWF file) into my flex project (Apple IOS IPAD), don't get any luck. Can any one suggest a solution ?

    In Apple's words, "No interpreted code may be downloaded or used in an Application except for code that is interpreted and run by Apple's Documented APIs and built-in interpreter(s)".
    Hence external swfs cannot be loaded in iOS.

  • SWF loaded into MainNav SWF - Rollovers & Links Don't Work

    Hi all,
    This is probably a very basic question!
    I have a Fla file with Text and Movie clips in it. The Text
    is animated when rollover occurs and thumbnail images click and
    link to the full size versions.
    It works when published (Say "LatestText.SWF").
    But when I call it from my Main Nave FLA/SWF, upon loading
    the Text.SWF, the rollover anim doesn't happen and the picture
    links don't work when clicked.
    I have the latest flash player installed and the actual
    weblink cursor appears as if the SWF acknowledges everything is
    working, but nothing dynamic actually works.
    Any Ideas? THANKS ALL! Much appreciated!

    I'll try to flesh it out, although I don't think there's need
    for any code behaviours as they all work fine - until the info.SWF
    is loaded into the main.SWF.
    So i'll try my best to flesh this out:-
    I have a Navigation FLA which publishes to SWF (at the moment
    Allow access to Local Files - tried network).
    This Nav.FLA is the main bulk of the website, it has all the
    links and window panes.
    I have a downloaded window pane style component which is an
    autoscroller (in case this could be the problem).
    I can load my info.SWF's straight into the container, by way
    of an Actionscript Anim Frame (1) and when the Nav.SWF is tested or
    published, it indeed loads in the smaller info.SWF no problems and
    scrolls around beautifully,
    The Info.SWF's I'm creating is just basically embedded
    dynamic text, with a few movie clips that have Behaviours when
    clicked or rolled-over.
    These Behaviours do not seem to work when the Nav.SWF's
    window pane loads in the Info.SWF - they APPEAR clickable (mouse
    pointer changes to hand) but nothing clicks and THEN works. The
    rollover animations (actioned via behaviours from LABELS - not
    frame numbers) also do not work?
    Any ideas from those that know to those that struggle would
    be greatly appreciated! It's the first time I've encountered a
    problem with my Flash website that I can't seem to find an answer
    to in all my tutorials and books!
    There's a challenge!

  • My movie swf loaded into another swf

    Maybe I'll have better luck posting in this forum
    I cant get the movie I have loaded in ( a quiz ) to display
    the statistics about how many I have got wrong/right.
    is it possible to get it to show the data because it is the
    main part of the movie after the user has completed it.
    Do I need to put in the Drag and Drop things as well?
    Each quiz has one of these. Will the movie find the right
    details?
    Why should it do this?
    I am using load movie actionscript

    <A
    href="
    http://uk.geocities.com/[email protected]/indexgame.htm">thi
    s page</A>
    That URL is fubar. Tried
    http://uk.geocities.com/sarah/
    http://uk.geocities.com/sarah/indexgame.html
    But neither of those work either...
    Remove '_spamkiller_' to mail

  • How can I control stage position for swfs loaded by Loader class?

    I'm creating a grid of buttons that, when clicked, will load a specific swf and I'd like for each swf to play in a certain portion of the stage.  When I use the Loader class:
    var my_loader:Loader = new Loader();
    my_loader.load(new URLRequest("abc.swf"));
    addChild(my_loader);
    the swf always displays at top left.  Is this an attribute of the individual swfs that I'm loading, or can I address the position in the main movie?
    Thanks-
    Sean

    addChild(my_loader);
    my_loader.x = 500;
    my_loader.y = 250;

  • How to detect the end of an external swf loaded into a container

    Hi,
    I'm having trouble finding a solution for this problem, can somebody help me?
    I have a main swf that will load external swfs into a container. I need to detect the end of the loaded external swf in order to start to load and play a new one into the same container.
    The problem is that i do not know what the length of the external swfs will be, and will have no control over the development of them, so i cannot place a variable at the end of their animation which would allow me to detect from the main movie its end.
    I also cannot rely on the _totalFrames property because the loaded swf might not have all the animation inside its main timeline.
    Is there any way to achieve this goal?
    Thx

    Ok... Its as i thought... unfortunatly...
    Gonna mark your latest post again as possible solution, just in case someone comes with any sort of out of the box thing...
    Thx for your help Kglad

  • WSDL generated through SOAMANAGER cannot be loaded into flex

    Guys,
    I'm having a problem here where I use soamanager to generate the WSDL for a webservice named: ztestpg_ws.
    for some reason, Adobe Flex cannot load it.  Any ideas at all????
    Here is the WSDL:
      <?xml version="1.0" encoding="utf-8" ?>
    - <wsdl:definitions targetNamespace="urn:sap-com:document:sap:soap:functions:mc-style" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="urn:sap-com:document:sap:soap:functions:mc-style" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    - <wsdl:documentation>
      <sidl:sidl xmlns:sidl="http://www.sap.com/2007/03/sidl" />
      </wsdl:documentation>
      <wsp:UsingPolicy wsdl:required="true" />
    - <wsp:Policy wsu:Id="BN_ztestpg_ws">
    - <wsp:ExactlyOne xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:sapsp="http://www.sap.com/webas/630/soap/features/security/policy" xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility">
    - <wsp:All>
    - <sp:TransportBinding>
    - <wsp:Policy>
    - <sp:TransportToken>
    - <wsp:Policy>
      <sp:HttpsToken />
      </wsp:Policy>
      </sp:TransportToken>
    - <sp:AlgorithmSuite>
    - <wsp:Policy>
      <sp:TripleDesRsa15 />
      </wsp:Policy>
      </sp:AlgorithmSuite>
    - <sp:Layout>
    - <wsp:Policy>
      <sp:Strict />
      </wsp:Policy>
      </sp:Layout>
      </wsp:Policy>
      </sp:TransportBinding>
      </wsp:All>
      </wsp:ExactlyOne>
      <saptrnbnd:OptimizedXMLTransfer uri="http://xml.sap.com/2006/11/esi/esp/binxml" xmlns:saptrnbnd="http://www.sap.com/webas/710/soap/features/transportbinding/" wsp:Optional="true" />
      </wsp:Policy>
    - <wsp:Policy wsu:Id="IF_ztestpg_ws">
    - <sapsession:Session xmlns:sapsession="http://www.sap.com/webas/630/soap/features/session/">
      <sapsession:enableSession>false</sapsession:enableSession>
      </sapsession:Session>
      <wsp:ExactlyOne xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:sapsp="http://www.sap.com/webas/630/soap/features/security/policy" xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility" />
      </wsp:Policy>
    - <wsp:Policy wsu:Id="OP_Ztestpg">
      <sapcomhnd:enableCommit xmlns:sapcomhnd="http://www.sap.com/NW05/soap/features/commit/">false</sapcomhnd:enableCommit>
      <sapblock:enableBlocking xmlns:sapblock="http://www.sap.com/NW05/soap/features/blocking/">true</sapblock:enableBlocking>
      <saptrhnw05:required xmlns:saptrhnw05="http://www.sap.com/NW05/soap/features/transaction/">no</saptrhnw05:required>
      <saprmnw05:enableWSRM xmlns:saprmnw05="http://www.sap.com/NW05/soap/features/wsrm/">false</saprmnw05:enableWSRM>
      </wsp:Policy>
    - <wsdl:types>
    - <xsd:schema attributeFormDefault="qualified" targetNamespace="urn:sap-com:document:sap:soap:functions:mc-style">
    - <xsd:element name="Ztestpg">
    - <xsd:complexType>
      <xsd:sequence />
      </xsd:complexType>
      </xsd:element>
    - <xsd:element name="ZtestpgResponse">
    - <xsd:complexType>
    - <xsd:sequence>
      <xsd:element name="Rc" type="xsd:int" />
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      </xsd:schema>
      </wsdl:types>
    - <wsdl:message name="Ztestpg">
      <wsdl:part name="parameters" element="tns:Ztestpg" />
      </wsdl:message>
    - <wsdl:message name="ZtestpgResponse">
      <wsdl:part name="parameter" element="tns:ZtestpgResponse" />
      </wsdl:message>
    - <wsdl:portType name="ztestpg_ws">
    - <wsp:Policy>
      <wsp:PolicyReference URI="#IF_ztestpg_ws" />
      </wsp:Policy>
    - <wsdl:operation name="Ztestpg">
    - <wsp:Policy>
      <wsp:PolicyReference URI="#OP_Ztestpg" />
      </wsp:Policy>
      <wsdl:input message="tns:Ztestpg" />
      <wsdl:output message="tns:ZtestpgResponse" />
      </wsdl:operation>
      </wsdl:portType>
    - <wsdl:binding name="ztestpg_ws" type="tns:ztestpg_ws">
    - <wsp:Policy>
      <wsp:PolicyReference URI="#BN_ztestpg_ws" />
      </wsp:Policy>
      <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
    - <wsdl:operation name="Ztestpg">
      <soap:operation soapAction="" style="document" />
    - <wsdl:input>
      <soap:body use="literal" />
      </wsdl:input>
    - <wsdl:output>
      <soap:body use="literal" />
      </wsdl:output>
      </wsdl:operation>
      </wsdl:binding>
    - <wsdl:service name="service">
    - <wsdl:port name="ztestpg_ws" binding="tns:ztestpg_ws">
      <soap:address location="http://jq03a010.esc.win.colpal.com:8035/sap/bc/srt/rfc/sap/ztestpg_ws/321/ztestpg_ws/ztestpg_ws" />
      </wsdl:port>
      </wsdl:service>
      </wsdl:definitions>

    the same problem generating Axis2 clients. There is no module extension for:
    cannot find a PolicyExtension to process http://www.sap.com/NW05/soap/features/commit/type assertions
    cannot find a PolicyExtension to process http://www.sap.com/NW05/soap/features/transaction/type assertions
    cannot find a PolicyExtension to process http://www.sap.com/NW05/soap/features/wsrm/type assertions
    cannot find a PolicyExtension to process http://www.sap.com/NW05/soap/features/blocking/type assertions
    hmm...
    Best regards
    T. Kis

  • How can I get stage width of an loaded swf?

    Is there any way to get the real stageWidth of an loaded swf?
    The problem comes when the loaded swf has some elements outside the scene. In this case content.width becomes bigger then the scene.
    My code looks like this:
    var request:URLRequest = new URLRequest(file.url);
    var loader:Loader = new Loader();
    loader.load(request);
    loader.contentLoaderInfo.addEventListener(Event.INIT, checkSize);
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, addImg);
    private function checkSize(e:Event) {
                // this is where I need to see the width of my loaded swf
    trace(e.target.content.width);
    private function addImg(e:Event) {
                    trace("complete");
    Thanks,
    Andrei

    I don't think you can get the stage width of the loaded file unless you assign it as a constant somewhere within the file.  The loaded file forfeits its stage when it is loaded into another swf

  • 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

  • Loading external SWF's into an SWF Loader as3 style?

    Hi,
    I've recently made the switch from as2 to as3 and am still struggling to get my head around one aspect in particular. I've managed to load one external swf into a blank file via the script
    import LoadDisplayObject;
    var loader:LoadDisplayObject = new LoadDisplayObject("button_01.swf", true);
    loader.addEventListener("displayObjectLoaded", onComplete, false, 0, true);
    addChild(loader);
    function onComplete(evt:Event):void {
         trace("loaded complete received");
         loader.scaleX = loader.scaleY = .75;
    .....however I'm struggling with the script to make a swfs load into a space when one of my 3 buttons is clicked....
    My page currently has three buttons (button_01, button_02 and button_03) and in a local folder three separate swfs with the same names which I wish to load in, when the appropriate button is pressed. 
    I have managed to get them to load in using a tutorial...however they load over the top of each over...far from ideal. From research on the internet I've found a range of different script...but I just can’t find anywhere I can find script to make this work..hence why I have turned to here.
    Any help much appreciated...thanks in advance.

    Hi,
    Just throught I would let you know that I've manged to get this to work this morning. Changed the script slightly and used a different method of:
    var home:MovieClip = this;
    function butt1Click(evt:MouseEvent):void {
        var ldr:Loader = new Loader();
        ldr.load(new URLRequest("button_01.swf"));
        ldr.contentLoaderInfo.addEventListener(Event.INIT, loaded);
    function butt2Click(evt:MouseEvent):void {
        var ldr:Loader = new Loader();
        ldr.load(new URLRequest("button_02.swf"));
        ldr.contentLoaderInfo.addEventListener(Event.INIT, loaded);
    function butt3Click(evt:MouseEvent):void {
        var ldr:Loader = new Loader();
        ldr.load(new URLRequest("button_03.swf"));
        ldr.contentLoaderInfo.addEventListener(Event.INIT, loaded);
    function loaded(evt: Event):void {
        if(contentClip.numChildren > 0){
            contentClip.removeChildAt(0);
        contentClip.addChild(evt.target.content);
    button_01.addEventListener(MouseEvent.MOUSE_UP, butt1Click);
    button_02.addEventListener(MouseEvent.MOUSE_UP, butt2Click);
    button_03.addEventListener(MouseEvent.MOUSE_UP, butt3Click);
    seems to work well. Only small question is if I want one page to load automatically upon opening...how do I alter the script to do this??? Thanks

  • Problem using swf loader

    When i try to run the mxml individually, It run correctly. As soon as i include it in another mxml using SWFLoader , the components stop working properly. It reflects the data sometime while sometime it doesnt. If i press browser refresh button , the components starts working
    again.
    here is the code snippet for the mxml where i load another swf file using swf loader.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:views="com.views.*" viewSourceURL="srcview/index.html" styleName="AppBack" height="100%" width="100%" initialize="init()" layout="vertical">
    <mx:Style source="assets/css/Main.css" />
         <mx:TabNavigator id="tn" height="100%" width="100%" top="-1" right="0" left="0" paddingTop="0" >
         <mx:Canvas label="Home" paddingTop="0" paddingLeft="0" paddingRight="0" paddingBottom="0">
             <mx:SWFLoader id="loader0" source="AddDeleteAccess.swf" height="100%" width="100%" x="0" y="-15"/>
         </mx:Canvas>
         </mx:TabNavigator>
    </mx:Application>
    The Home.swf contains a conbo box and a datagrid.
    The combo box stops working sometime and after the browser refresh is click it starts working.
    if required i can also paste the code of the file which is being loaded.

    scale your loader so it fits the way you want.  ie, if your loaded swf is 800x600 (with nothing on the back-stage) and you're loading into a 350x375 swf, after loading is complete, use:
    loader.width *= 350/800;
    loader.height *= 375/600;

  • BIA Index Loading into Mmeory (for SAP) ....

    Hello all,
    I went to www.sdn.sap.com and chose <b>Business Intelligence</b> from the left menu.
    In the <b>BI Knowledge Center</b> (Right side), I chose <b>BI Accelerator</b>, which is under <b>Key Topics</b> section.
    Then I opened a document "<b>SAP Business Intelligence Accelerator (PDF 154 KB)</b>".
    Go to the section "<b>SAP BI Accelerator at Work</b>", which is at page# 5. The third point says like this -
    BI accelerator indexes are loaded into memory where the query is processed. In memory, joins and aggregations are done at run time. Loading of indexes into memory happens automatically at first query request, or it can be set for <b>preloading</b> whenever new data is loaded.
    I had an understanding that it will be loaded into memory only when query was first executed. But this says it can be set for preloading as well wherever new data loaded.
    My question is that where this setting can be done for preloading?
    It says that preloading option is available whenever new data loaded so does that mean that it can only be set for rollup of BIA Index and for initial load, it will still load data into memory when the query is first executed.
    I would appreciate if somebody has knowledge of this as it is new technology.
    Others, who has a knowledge can also answer.
    Your help will be greatly appreciated.
    Thank you to everybody in advance.
    Sume

    Hi,
    I found it.
    It is an option on BIA Index Property button in the wizard. It appears only after the initial load is done. There is check box for to keep the BIA Index in main store. I thin it is only applicable to Roll-up.
    Thank you.
    Sume

  • Can I combine two methods of code to load various SWF files into the same location

    I presently have a set up where a large SWF file brought on the stage by clicking small icons from the scrollable thumbnail menu on the bottom of the stage. All of it happens at the same frame with .xml loading file.
    Here is the code for constructing the ImageLoader(for thumbnails) and SWFLoader for (bigger SWF files)
    [CODE]
       function _xmlCompleteHandler(event:LoaderEvent):void {
       _slides = [];
       var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded.
       var imageList:XMLList = xml.image; //In the XML, we have <image /> nodes with all the info we need.
       //loop through each <image /> node and create a Slide object for each.
       for each (var image:XML in imageList) {
        _slides.push( new Slide(image.@name,
              image.@description,
              new ImageLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/thumbnails/appThmb_imgs/" + image.@name + ".jpg",
                   name:image.@name + "Thumb",
                   width:_THUMB_WIDTH,
                   height:_THUMB_HEIGHT,
                   //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates
                   //x:260, y:320,//doesn't work here but works in line 69
                   scaleMode:"proportionalInside",
                   bgColor:0x000000,
                   estimatedBytes:13000,
                   onFail:_imageFailHandler}),
              new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",
                    name:image.@name + "Image",
                    width:_IMAGE_WIDTH,
                    height:_IMAGE_HEIGHT,
                    //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates
                    x:0, y:144,
                    scaleMode:"proportionalInside",
                    bgColor:0x000000,
                    estimatedBytes:820000,
                    onFail:_imageFailHandler})
    [/CODE]
    Here is what I would like to resolve. I have another section on the site with an image collage. Every image is a button. I want to script this each image on click to go to the label with ImageLoader and SWFLoader AND TO OPEN A UNIQUE SWF (ASSOCIATED WITH AN IMAGE CLICKED) ON THAT PAGE
    Previously this is what I did to achieve it. I would specify a String:
    [CODE]
    var sourceVar_ProductsPopUps:String;
    [/CODE]
    and then all my buttons will have their unique SWF assigned for them which opens at another labeled section ("prdctsPopUps" in this example):
    [CODE]
    function onClickSumix1PopUp(event:MouseEvent):void {
      sourceVar_ProductsPopUps="prdcts_popups/sumix1-popup_tl.swf";
      gotoAndPlay("prdctsPopUps");
    [/CODE]
    Then in the "prdctsPopUps" section I would specify that var string to bring up SWF files. The value of sourceVar_ProductsPopUps allows to load mulitple SWFs from the previous page.
    [CODE]
    loaderProductPopUps = new SWFLoader(sourceVar_ProductsPopUps,
    [/CODE]
    But I need both of them to be working at the same time. First there is a sectionA from where a user can navigate to specifically targeted SWF to section B's SWFLoader. Then in the section B a user has an option to bring up other SWF files into SWFLoader from the scrollable thumbs menu. Is there a way to combine these two lines into one:
    [CODE]
              new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",
    [/CODE]
    and
    [CODE]
    new SWFLoader(sourceVar_ProductsPopUps,
    [/CODE]

    Thanks for looking into my issue.
    Unfortunatelly I am not so advanced in AS and do not complitely understand the logic of the problem. I will try to decribe my set up more precise.
    So, my main flash file is broken into labeled sections on the main time line.
    One of the sections is "Applications" It has an animated collage of images. Each image acts as a button and once clicked brings a user to a section called "ApplicationsPopUps".
    "ApplicationsPopUps" section has small image thumbnails scroll menu at the bottom of the screen and a large SWFLoader in the middle of the screen. User can click on an image in the thumbnails scroll menu and a corresponding SWF file will load in the middle of the screen in SWFLoader. User can click on left/right navigation buttons and preceeding/following SWF file will load in SWFLoader.
    Everything works fine (with your previous help)
    Here is the working code for the ImageLoader and SWFLoader (please let me know if you need additional code on the page):
    function _xmlCompleteHandler(event:LoaderEvent):void {        _slides = [];       var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded.        var imageList:XMLList = xml.image; //In the XML, we have  nodes with all the info we need.        //loop through each  node and create a Slide object for each.       for each (var image:XML in imageList) {         _slides.push( new Slide(image.@name,               image.@description,               new ImageLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/thumbnails/appThmb_imgs/" + image.@name + ".jpg",               {                    name:image.@name + "Thumb",                    width:_THUMB_WIDTH,                    height:_THUMB_HEIGHT,                    //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates                    //x:260, y:320,//doesn't work here but works in line 69                   scaleMode:"proportionalInside",                    bgColor:0x000000,                    estimatedBytes:13000,                    onFail:_imageFailHandler}),                 new SWFLoader("loadingAssets/appThumbnails/slideshow_image scroller greenSock_mine/assets/images/" + image.@name + ".swf",                   {                     name:image.@name + "Image",                     width:_IMAGE_WIDTH,                     height:_IMAGE_HEIGHT,                     //centerRegistration:true,//messes up the code as places SWFLoader in the upper left corner which is 0,0 coordinates                   x:0, y:144,                     scaleMode:"proportionalInside",                     bgColor:0x000000,                     estimatedBytes:820000,                     onFail:_imageFailHandler}) 
    Thumbnails in the section "ApplicationsPopUps" and images in the image collage in the section "Applications" represent the same photographs. So when a user clicks on one of the images in "Applications" section it would be natural that that image will load in the "ApplicationsPopUps" section. However "ApplicationsPopUps" section presently has a working code (as sampled above) It looks too complex for me and I do not know hot to implement this feature. I do want to keep the functionality of the thumbs image scroller in section "ApplicationsPopUps" as it is now. But I want to add that when a user click on an image from section"Applications" then that particular SWF file will load in SWFLoader in section "ApplicationsPopUps" and then the present functionality can as well be exectuted. Presently it just opens on a first image in xml order.
    P.S. I see that you had a download link in your answer. How did you do it? I could also upload a small sample file with my problem. This way you could see all the set up right away.

  • Embedding swf into Flex Desktop Application size/scale problem.

    Hello,
    I am embedding an swf animation into my desktop Flex desktop application. I am using SDK 4.6.0. I use the SWFLoader to embed the animation:
    <s:SWFLoader source="img/mch_anim_1.swf"/>
    When I run the application, the animation is loaded and is working, but when I try to maximize the window there is a size/scale bug that happens. The screen  stays half-side maximized (maximized to the top, bottom and stays until the middle of the screen by side).
    I've published the SWF for Flash Player 8 and Actionscript 2 just to test and there was no problem with the size/scale, but I need to use Actionscript 3.
    Any suggestions?
    Thanks in advance,
    Stefan

    I found the problem!
    There was a line of code that was auto-generated from using a template out of Flash CS6. The line of code that caused it is:
    stage.scaleMode = StageScaleMode.SHOW_ALL;
    After deleting it, everything is now working properly.
    Greetings!

Maybe you are looking for

  • Error message when trying to download obee

    HI, I just created a workspace and wanted to test obee installation before sendinf URL to my customer When I go to client access : https://beehiveonline.oracle.com/External_02.html and click "Download and execute Obee installer" I receive the followi

  • FORMATTING ERROR when executing smartform with message SSFcomposer  159

    Hi all, I have created a custom smartform.When i execute it in tcode SMARTFORMS,i get the error "FORMATTING ERROR" "GRAPHIC CANNOT BE DISPLAYED". I have a image file(LOGO) which is used in this Smartform.However this problem is faced only in the QUAL

  • Byproducts from Production process

    Hi all, Any suggestions how I can handle by-products being produced in the Production process? The scenario is... BOM Produced Item: 1(unit) X P1 - 1000lt Drum of Liquid Syrup By-product Item: 2.5(kg) X B1 - Waste Metal Comp1: C1 = 5 Unit (a 200lt Dr

  • Cross join in webi

    I have 2 separate data providers/queries Let's say in the first one it returns something like this: OrderId     Product          Amount 1              Apple           500 1              Orange         400 1              Banana         600 2          

  • Infinity Home Hub

    Hi  Next week all being well I have Infinity installed by an BT engineer.   Can someone tell me please where the Open Reach Modem and the BT Home Hub will be placed.  I would think that the Modem would be close to the entry into the property and the