How to resize swf module loaded by ModuleLoader according to parnet container?

Hi,
I have an Application MXML which contains ModuleLoader which loads external flex movie.
I want that the loaded module should adjust its size atomatically based on its parent container.
Can anybody help on this issue?
Thanks,
Prithvi Zankat.

Hi,
I have an Application MXML which contains ModuleLoader which loads external flex movie.
I want that the loaded module should adjust its size atomatically based on its parent container.
Can anybody help on this issue?
Thanks,
Prithvi Zankat.

Similar Messages

  • How To  resize swf with actionscript 2

    I want to make a swf that loads other swf files and when
    rollOver, the swf loaded, will change it's size from 50x50 to
    100x100
    How can I do this?
    PLS help....I need to have this done today
    here you can see what I have done for now
    http://www.claudiudesign.org/adobe_forums_pt_resize/adobe_forums_pt_resize.html
    the file has 3 mb so you'll have to wait a bit to load

    He Peter,
    Thanks for your reply. I've made some steps, but still no perfect solution. I've managed to compile a swf with ant using only the AIR SDK.
    But, check these results
    - Compiled using Flash Builder release : 455 kb
    - Compiled with ant using mxmlc : 104 kb
    - Compiled with ant using compc : 139 kb
    Can you provide us an example, how to compile a swf using ant. For example, with an AIR mobile project.
    Thanks Peter.
    Tim.

  • How to control swf file loaded in flash builder project?

    Condition :
    1. I have a swf file presentation.
    2. A flex mobile project using flash builder 4.6 with its default SDK.
    What i want :
    1. Include those swf file into my flex mobile project and interact with those swf like i run it on flash player for PC. Shown here >>
    http://prntscr.com/1pmio
    What i've tried :
    1. Call swf file using swfloader and it work(on my pc). Here is my code >>
    http://prntscr.com/1pmjdl
    Problem :
    1. I cant interacted with swf file presentation. If i click on screen, it get error code >> "Error #2025: The supplied DisplayObject must be a child of the caller" and another error. Here is error warning >>
    http://prntscr.com/1pmkcr
    I dont want to upload the swf file into a web and load it remotely because i want the swf file available offline. Im newbie in flex, please tell me clearly. i have downloaded Flex in a week video training but gets nothing. searching for another problem which may same, but i didnt get any answer.
    Please Help.
    Message was edited by: blackquipment for image fix

    Some loaded SWFs may not be compatible with Flex.  Try making a simpler SWF (like one that just draws a circle where you click) and see if it can be loaded and interacted with.
    -Alex

  • Module Loader prgress

    Hello. We are building a large app and have decided to use
    modules. I currently have a small Main app that is basically just a
    login form. IF the user successfully logs in it changes states to a
    state that has a big module loader on it. It then loads in the
    appropriate module for the user. This is all working fine except I
    can not figure out how to get the module loader progress to
    appear?? I have tried following the help docs but still can not get
    it working. I am looking for any advise. I am only concerned with a
    progress bar at this point, so hoping to be able to write a single
    function to track and somehow display back to the loader.

    The <mx:ModuleLoader> has progress and ready events.
    Suppose the ModuleLoader is in a Panel called modulePanel. A Panel
    has a status field in the upper-right corner in its title area. You
    could show progress like this:
    <mx:ModuleLoader
    progress="modulePanel.status=event.bytesLoaded+' of
    '+event.bytesTotal"
    ready="modulePanel.status='Ready'" ... />
    To show a progress bar, set up to work manually and use its
    setProgress method:
    <mx:ProgressBar id="moduleProgress" mode="manual" ...
    />
    <mx:ModuleLoader progress="moduleProgress.visible=true;
    moduleProgress.setProgress(event.bytesLoaded,event.bytesTotal)"
    ready="moduleProgress.visible=false" ... />
    Is this what you had in mind?

  • Auto module load

    Hello.
    I have problem:
    I tried to configure Solaris 8 for Oracle.
    I add in /etc/system
    set shmsys:shminfo_shmmax=850000000
    set shmsys:shminfo_shmmin=1
    set shmsys:shminfo_shmmni=100
    set shmsys:shminfo_shmseg=10
    set semsys:seminfo_semmni=100
    set semsys:seminfo_semmsl=100
    set semsys:seminfo_semmns=200
    set semsys:seminfo_semopm=100
    set semsys:seminfo_semvmx=32767
    but when I reboot, the modules are not loaded.
    But I can loaded whem by
    modload -p sys/shmsys
    modload -p sys/semsys
    modload -p sys/sparcv9/shmsys
    modload -p sys/sparcv9/semsys
    How to make this modules load automaticly?

    They are loaded automatically as soon as someone starts to use
    SysV shared memory or semaphores.
    Instead of the modload commands you could add a "forceload" command
    into /etc/system, see also the forceload example contained in this file. But
    this is not necessary at all, as explained above.

  • How to call a function defined inside a module loader

    I wanna know...the method of calling a function defined
    inside a module loader component?
    Th
    <mx:ViewStack id="myViewStack" >
    <mx:Canvas id="Mgmt1">
    <mx:Label text="Gopher"/>
    </mx:Canvas>
    <mx:Canvas id="Mgmt2" >
    <mx:Label id="gopherlbl" top="-2" left="0"
    height="40"/>
    <CustomComp:MgmtGrid id="ManageCom"/>
    </mx:Canvas>
    <mx:Canvas id="Admin">
    <mx:ModuleLoader id="adminModule" url="{adminModUrl}"
    width="100%" height="100%" />
    </mx:Canvas>
    where adminModUrl="admin.swf";
    Thru the MangeCom id reference,I am able to call the fucntion
    defined inisde the CustomComponent File MgmtGrid...But I am unable
    to call the funciton defined inside adminModule
    ModuleLoader...(using id reference).Anyone pls suggest a solution
    for this..

    Ensure the module is loaded before calling the method in
    particular if you are calling it at the initialization of your
    app.

  • HOW can I make a .SWF default load after its first load?

    When you have the SAME parent API on every page of an (X)HTML website, can a .SWF tell itself to load from a default position when a website user navigates to different HTML pages?
    Here's my parent API as it stands:
    http://www.playingthepoet.com/
    HOW can you tell the .SWF to load from a default position once the .SWF has loaded a first time? AND from any page of the website, not just the Home page? This is an advanced .SWF networking issue. And I'm not sure if the best solution is a Javascript of if there's a direct AS3 programming solution.
    The blurs and fade-ins are a bunch of timer variables and timer event methods timer event listeners. I want that intro ONLY ONCE. And NOT every time a user changes HTML pages. Please help, and MANY thanks for your time!!
    NT

    Hi ,
    You can set a variable say "count" on stage composition ready -
    sym.setVariable("count" , 0);
    On stage click , you keep checking the value of this variable -
    if(sym.getVariable("count") == 5)
      sym.$("Symbol_2").show();
    //Here "Symbol_2" is the next button that you want to appear on screen(which is initially invisible) when the symbol_1 is clicked say 5 times.
    Now, on click of a button , you keep updating the variable count -
    var countnew = sym.getVariable("count");
    countnew = countnew+1;
    sym.setVariable("count" , countnew);
    Attaching the sample for reference.
    Thanks and Regards,
    Sudeshna Sarkar

  • How can I found out which swf is loaded?

    I need to write an if statement for my menu to find out which
    swf is loaded into a certain level.
    On my menu, I have code that when a user clicks on a button,
    it reloads a new swf over itself into the same level. I have the
    menu in a shared library, but the code is in the menu itself.
    Probably not the best design, but I have to work with it now.
    I need some code to figure out which swf is loaded into level
    5. How can I do that? I need to be able to determine the swf and
    store it as a virable such as "calendar.swf"

    That didn't work...
    When the user clicks on the calendar (it's instance name is
    "calendar") it stores a global variable:
    calendar.onRelease = function() {
    _global.newpage = "calendar";
    _level0.myMCL.loadClip("calendar.swf", 5);
    Now, I need to send it through and if, else if, else if, etc.
    statement looking for the _global.newpage
    This is the code for the else if for the calendar:
    } else if (_global.newpage == "calendar") {
    greenbar._y = -56.4;
    greenbar._visible = true;
    _global.newpage.enabled = false;
    And, that code isn't working. Everything works except for the
    enabled = false line. What do I need to change that to so that it
    works?

  • How can I calculate the load from all modules in ECC6.0 for our production

    Hello Experts,
    I have doubt , how can I check the load from all modules like FI, SD, MM, HR, PP, BASIS, ............etc from sap level. Can you explain from which transaction and how to check the workload for each module seperately from sap level. We are wondering about the size utilization of each module. Our production database is R3 ECC 6.0 on Oracle 10.2 on AIX operating systems.
    Thanks for your help in this regard.
    Thanks & Regards,
    Haseem.

    Hi
    Check in ST07 the application monitor.
    Regards
    Bhaskar

  • How to know if a certain SWF is loaded

    Hi all,
    I'd like to do if a certain SWF is loaded do some actions:
    I upload many swf at the same location and the user can navigate them with Next and Back buttons.
    one of the swf has some buttons.
    I'd like to check if that swf is loaded then do some action.
    how ?
    page.addChild(swfLoader);
    var ext:MovieClip;
    var ch1_btns:Array;
    swfLoader.contentLoaderInfo.addEventListener(Event  .COMPLETE, onCompleteLoad);
    function onCompleteLoad(e:Event):void
    ext = MovieClip(swfLoader.content);
    ch1_btns = new Array(ext.less1, ext.less2, ext.less3, ext.less4, ext.less5, ext.less6, ext.quiz);
    for(var k:Number = 0; k < ch1_btns.length; k++)
    ch1_btns[k].addEventListener(MouseEvent.CLICK, onChapter1Buttons);
    in the code above, I have created an array of the buttons in the first swf, so the array will be created when any SWF will be loaded.
    and the Error #1010: A term is undefined and has no properties. is out.
    How I can stick to a certain SWF.
    thanks in advance

    page.addChild(swfLoader);
    var ext:MovieClip;
    var ch1_btns:Array;
    swfLoader.contentLoaderInfo.addEventListener(Event  .COMPLETE, onCompleteLoad);
    function onCompleteLoad(e:Event):void
    ext = MovieClip(swfLoader.content);
    if(ext.less1){
    ch1_btns = new Array(ext.less1, ext.less2, ext.less3, ext.less4, ext.less5, ext.less6, ext.quiz);
    for(var k:Number = 0; k < ch1_btns.length; k++)
    ch1_btns[k].addEventListener(MouseEvent.CLICK, onChapter1Buttons);

  • How do I suppress messages/loading bars from Import-Module and Import-PSSession?

    Hello,
    How do I suppress messages/loading bars from Import-Module and Import-PSSession?
    I am writing a script that will be using these commands and it makes the script look clunky/scary to novice users.
    Thank you for your time.

    Sorry to bring this back up, but it seems that the ProgressPreference worked for Exchange, but it didn't affect the Active Directory progress bar. Any ideas why?
    Strange, this worked just fine for me (no module loading indication):
    PS C:\Users\mike.admin> $ProgressPreference = 'SilentlyContinue'
    PS C:\Users\mike.admin> Get-ADUser mike.admin | Select Name
    Name
    mike.admin
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)
    I do run the Import-Module command inside a function, but I doubt that would do it because I assume the preference is set scriptwide.
    This will work anywhere.
    $global:ProgressPreference='SilentlyContinue'
    ¯\_(ツ)_/¯

  • How to effectively remove a loaded SWF from the stage?

    I can not figure out a proper coding to remove a loded SWF from the stage.
    Here is my set up.
    I have a layout segmented into labeled section. In the section labeled "products" I have a layout consisting of product images acting as buttons which bring a user to another labeled section "prdctsPopUps"
    In the "prdctsPopUps" section I have placed an instance of LoaderMax placed into an mc container. Placing LoaderMax into an mc container automatically resolved an issue of clearing loaded SWFs from stage when I come back to "products" section.
    I specified the variable in the "products" section with the following set up:
    var sourceVar_ProductsPopUps:String;
    function onClickSumix1PopUp(event:MouseEvent):void {
                        sourceVar_ProductsPopUps="prdcts_popups/sumix1-popup_tl.swf";
                        gotoAndPlay("prdctsPopUps");
    So each button has its own "....swf" URL and they all open fine and I can come back to "products" section without any issues.
    However inside the swf (which loads through LoaderMax which is placed into an mc) there are other buttons which bring a user to labeled section "xyz". Which also functions properly. It opens as it is supposed to be and without any previously loaded "...swf" on the stage.
    At the labeled section "xyz" there is a limited set of buttons repeating from section "products" which has to bring a user back to the same set up in the "prdctsPopUps" labeled section and open a corresponding "...swf" .
    However only the last opened "...swf" will appear in that section. Effectively the one which was originally opened from the "prdctsPopUps" section and not the one which was supposed to be opened from the "xyz" section.
    I can not understand why it would work from one labeled section and not from another. I can not figure out on which section which code/function needed to be placed.
    Here is the set up from a button from the "xyz" section whcih supposed to bring a user to the same "prdctsPopUps" section but to load a different "...swf"
    var sourceVar_ProductsPopUps_fromXYZ:String;
    function onClick_floralytePopUp_fromXYZ(event:MouseEvent) :void {
                        sourceVar_ProductsPopUps_fromXYZ="prdcts_popups/floralyte-popup_tl.swf";
                        gotoAndPlay("prdctsPopUps");
    Here is the code set up for the LoaderMax from the "prdctsPopUps" section:
    var loaderProductPopUps:SWFLoader = new SWFLoader(sourceVar_ProductsPopUps,
                                                                                                        estimatedBytes:5000,
                                                                                                        container:holderMovieClip,
                                                                                                        onProgress:progressHandler,
                                                                                                        onComplete:completeHandler,
                                                                                                        centerRegistration:true,
                                                                                                        alpha:1,
                                                                                                        scaleMode:"none",
                                                                                                        width:540,
                                                                                                        height:730,
                                                                                                        crop:true,
                                                                                                        autoPlay:false
    function progressHandler(event:LoaderEvent):void{
              progressBarPopUp_mc.gradientbarPopUp_mc.scaleX = loaderProductPopUps.progress;
    function completeHandler(event:LoaderEvent):void{
              var loadedImage:ContentDisplay = event.target.content;
              TweenMax.to(progressBarPopUp_mc, 1.5, {alpha:0, scaleX:0.25, scaleY:0.25});
    loaderProductPopUps.load();
    Is there something which needs to be imported, or specific function needs to be specified in a specific labeled section?

    actually, i think you'll need to use something like:
    var loaderProductPopUps:SWFLoader;
    if ((loaderProductPopUps){
    if(loaderProductPopUps.content)){
       loaderProductPopUps.unload();
    loaderProductPopUps= new SWFLoader(sourceVar_ProductsPopUps, //the value of sourceVar_ProductsPopUps allows to load mulitple SWFs from the products page.
                                                                                                         estimatedBytes:5000 ,
                                                                                                         container:holderMov ieClip,// more convinient and easier to manage if to place the LoaderMax into an empty mc (holderMovieClip)
                                                                                                                                                                         // if not will work as well. Then the line container:holderMovieClip, has to be replaced with container:this,
                                                                                                                                                                         // can be any size, can not be scaled as it distorts the content
                                                                                                         onProgress:progress Handler,
                                                                                                         onComplete:complete Handler,
                                                                                                         centerRegistration: true,
                                                                                                         //x:-260, y:-320, //no need for this is if used: centerRegistration:true,
                                                                                                         alpha:1,
                                                                                                         scaleMode:"none",
                                                                                                         //scaleX:0, scaleY:0,
                                                                                                         //vAlign:"top",
                                                                                                         width:540,
                                                                                                         height:730,//scales proportionally but I need to cut off the edges
                                                                                                         crop:true,
                                                                                                         autoPlay:false
    function progressHandler(event:LoaderEvent):void{
              progressBarPopUp_mc.gradientbarPopUp_mc.scaleX = loaderProductPopUps.progress;
    function completeHandler(event:LoaderEvent):void{
              var loadedImage:ContentDisplay = event.target.content;
              //TweenMax.to(loadedImage, 1.5, {alpha:1, scaleX:1, scaleY:1});//only need this line if corresponding values are changed in SWF loader constructor
              TweenMax.to(progressBarPopUp_mc, 1.5, {alpha:0, scaleX:0.25, scaleY:0.25});
    loaderProductPopUps.load();

  • How do I stop a flash video (swf) from loading every time I go to a new page

    I have a universal flash video on the top of all my pages on
    my site and I would like to know how to stop it from loading every
    time i open a new page in my site.
    thx very much

    You will have to use frames for that. Ew.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Zachary11" <[email protected]> wrote in
    message
    news:f43u4i$pgl$[email protected]..
    >I have a universal flash video on the top of all my pages
    on my site and I
    >would like to know how to stop it from loading every time
    i open a new page
    >in my site.
    >
    > thx very much
    >
    >

  • *Edit* Problems when resize a module

    Hi.
    I have a problem when i am resizing a module in my
    application.
    When it become bigger than 90% of the screen then everything
    inside the module disappears. And i need to restart the
    application.
    I load the module with ModuleLoader and then add the module
    to MDIWindow.
    I have a eventListener that is lisining för
    Event.REMOVED_FROM_STAGE and then it will close the window and
    unload the module.
    When i am resize the window it some how dispatch
    REMOVED_FROM_STAGE event.
    What can i use instend?
    Any one have the tips how i can fix this?

    Hi,
    Try to get some more error info, e.g. like this:
    try {
    Z_Bupa_Search_By_User_Input searchByUser =
    new Z_Bupa_Search_By_User_Input(); "PROGRAM STOPS HERE
    } catch (Exception e) {
        msg.raiseException(e.getMessage(), true);
    msg.reportSuccess("<<<------"); "THIS LINE DOES NOT
    good luck,
    Roelof

  • Could any one tell me what is the difference between swfloader and module loader?

    Hi  All,
                          Could any one tell me what is the difference between SWFLoader and Module Loader in Flex3 in detail?

    Hi,
    ModuleLoader is a kind of strange API that is really just intended to look like SwfLoader for modules that contain a single visual component, and hides most of the module loading infrastructure, which is all about class factories.
    What I mean by "only loaded once" is that if you have several places in the code that call the ModuleManager.getModule("url").load() call, it will only ever get loaded over the wire and interpreted once, subsequent "loads" will just re-dispatch pseudo-load events to the new client.  In other words, the class factory is a singleton for a given url. Unloading is a totally different story.  As you note, not everything is truly unloadable, because there may be lots of references to stuff in
    the module that will keep it alive and un-GC'ed.
    I suggest playing with the low-level API so that you understand the backing implementation, and this should help you understand the limits of ModuleLoader.
    The main difference between modules and applications is that modules have lower overhead, and they only ever get loaded once, no matter how many times you load them. If you're using the ModuleLoader API, keep in mind that you're losing about half the functionality of the module system.  I will assume that you are, because otherwise it would be obvious where to expose methods.  You might want to play around with the lower level ModuleManager API just to get a hang of what's going on - ModuleLoader is a pretty thin veneer over the lower API.                
                    Basically, what you want to do is to have your module implement an interface, say IModuleWhatever.
    Also try and refer to this link which was previously discussed in this forum..
    http://forums.adobe.com/message/74404
    Thanks,
    Bhasker

Maybe you are looking for

  • Publishing via FTP server

    I have now shifted my webpages from Mobile Me to a local web hosting service, and need to know how I go about uploading them to this new server in the way that was advised on a recent post: "When you FTP up the files, instead of FTP'ing the index fil

  • Dvd region problems

    My dvd player says that there is one more acceptible switch of region codes, but it gives me an error -70001 whenever I try to go back to region 1. I've heard that updating the fireware can fix this, I need this dvd player. Does anyone have any sugge

  • Pagewise summation

    Hi I have items in my main window, which will spill over to multiple pages. If that happens user wants summation such as broght forward and carry forward. Can somebody help me how can I do that? Steps/sample code would be higly appriciated. Do I need

  • Aperture as a general photo managment tool

    Hi has any one used aperture as a general photo management tool, i mean has any body used to manage 40 gb of RAW photos on their hard drive. does any body has any tip on how to manage large volume of photos using aperture. using the vult would only b

  • ADF 11.1.2.3 integration with OBIEE

    Hi. I see that OBIEE integration is at most 11.1.2.7 But I am on Jdeveloper 11.1.2.3. Is there an integration for 11.2.3?