Loader and Stage-Size

I'm loading a .swf (flash game) (719 x 480) into a new .fla that is bigger (1280, 720) than the dimensions of the .swf
The game appears to load well, but when I start playing it, I realize that the game is messed up because it is actually running in the dimensions of the .fla
Can somebody tell me how to constrain the loaded .swf to 719 x 480?
NOTE: I can't change the .swf game file's coding
And the .fla stage-size has to stay the same.
Any help would be greatly appreciated,
Thanks!!

Theres no way to have a box/window inside my .fla that essentially makes the .swf  work in it's own little stage? I just need something that will constrain/mask the  images that keep coming out of the enlarged .swf game.
I need the targets to all stay inside that background, as it normally is when I play the .swf outside the .fla

Similar Messages

  • How to load and increase size of a custom cursor on a certain monitor (1st or 2nd)?

    In my application I need to load a custom cursor, make it big and display it on the my second monitor in a dual monitor setup to let user click with an additional mouse. I found this thread able to solve the first 2 questions, however the cursor only changes within the VI panel. I had tried but couldn't get a handle to the second monitor, in face, not my primary one as well since I'm not familiar with winapi. I also want to restrict when the user can use the second mouse and only in the second monitor if possible. By the way I am using windows 7 64 bit with Labview 9 32 bit.
    Thanks,

    Ishi,
    More than likely, you are going to have to use Windows OS APIs for this. It sounds like you would like to integrate your program at the operating system level, and will have to make calls to Windows to accomplish this in the proper manner.  You can make calls to Windows in LabVIEW through several methods. Check out this example that sets the position of the cursor via a Call Library Function Node to the Windows SDK.  
    http://zone.ni.com/devzone/cda/epd/p/id/2315
    Cheers,
    Aaron
    National Instruments

  • How to load and show PDF on stage in Flash using AlivePDF or PurePDF external libraries?

    Hello,
    I searched a lot on internet but didn't find a proper way to load and open/show PDF on stage in Flash. Following are my understandings about this topic.
    I know Flash does not have the built-in functionality to load and show pdf document on stage.
    I know you can do this in AIR application using HTMLLoader class but it required adove reader to be installed on your machine.
    I have used AlivePDF/PurePDF and I know how to export/generate a PDF File using these libraries but I don't know how to use them to load and show PDF document on stage in Flash. According to my research, I think these libraries can accomplish my task but how, I don't know. That's because I am here for your help.
    People suggest to first convert pdf into an image or swf file and then import it into Flash but I don't want this solution because my clients will be importing/uplading PDF file into my software.
    Some people suggest to "Convert PDF renderer code written in C/C++ using Alchemy to flash library" and then use that library to my project. I don't have any idea how to do this. If anyone can help me to achieve required functionality this way, please guide me.
    Now you know about my understandings, so you can guide me in better way. Let me give you an example what kind of functionality I want. Please visit: https://www.pdffiller.com. Upload a pdf file there and you will see that it shows that pdf to user (At the moment, I want this functionality) and pdf annotation i.e. write text on pdf and other functionalities.
    NOTE: I am not a Flex and AIR developer. I am a Flash (Actionscript 3.0) Developer. So please first help according to flash. If you want to offer the solution according to Flex and AIR, you are most welcome.
    I specially want "ADOBE EXPERTS - Adobe Flash developer from Adobe" to comment on this and help me out. It's about 4th day I am without a solution. I am afraid, I'll loose my client if I'll not have a solution in next couple of days.
    Thanks,
    momersaleem
    eLearning Specialist

    Just to throw in a $0.02, I looked at those libraries myself quite a while ago and all they had the ability to do was give you information and assets from the PDF. At that point you literally had to read each page in the PDF (whatever the library could extract), use the information it extracted (position, type size, images, etc) and create a layout engine that could "reconstruct" the page piece by piece.
    I hope it's better these days but that's what I took from those libraries quite a while ago and it may still be true. That would explain "Convert PDF renderer code written in c/c++ using Alchemy to flash library". Someone may already have written a quality layout engine. Otherwise there was no "load pdf, run this ShowPDF() function to add to display list" functionality at all.

  • Flex Application Stage Size and Scale

    I am trying to create a Web and Desktop flex application for people who may have less than perfect vision. I would like to allow the users to magnify everything on the screen (including text, buttons, images, etc.) if necessary. I have gotten the magnification step down using the following code in the main Application
    var matrix:Matrix = this.transform.matrix;
    var scale:Number = 2;        
    matrix.scale(scale, scale);
    this.transform.matrix = matrix; // this refers to the main Application
    Of course, by doing so, the Flex Application will be too big for the Flash Player window and only the top left quarter of the application is visible. I figure the next step is to decrease the Flex Application stage size by 50% to compensate. For some reasons, I can't figure out how to change the stage size of the Flex Application so that it only occupies the top left quarter of the Flash Player window.
    Any thoughts? Thanks a lot!

    Instead of manipulating the application, why not wrap all your content inside a container with scroll bars? You can then magnify the content and scroll it.
    I'd give it a go, but I have loads of other things to do and I can't help wondering if the browser is better at magnifying content.

  • I have many photos with file extension of .PDD and that Photo Deluxe 4 no longer will operate in Win 7. How can I open?  Next in Elements 11, how do I load and print different pictures and different sizes options on the same page?

    I have many photos with file extension of .PDD and that Photo Deluxe 4 no longer will operate in Win 7. How can I open?  Next in Elements 11, how do I load and print different pictures and different sizes options on the same page?
    Thanks,
    Shir

    sbmgrams wrote:
    I have many photos with file extension of .PDD and that Photo Deluxe 4 no longer will operate in Win 7. How can I open?
    See here:
    Reading PhotoDeluxe PDD Files

  • Loading COBOL file - blocked variable records and varying size arrays

    We would like to use ODI 11g to regularly to parse and load into Oracle DB 11g complex files that originate on the MVS mainframe.
    Key file characteristics are:
    1. EBCDIC encoding
    2. file contains blocked records - each block starts with a 4-byte Block Descriptor Word (BDW). BDW bytes 1-2 specify the block length stored as a 16-bit unsigned integer, i.e. PIC (5) COMP in COBOL.
    3. each file block contains multiple variable size records - BDW is followed by 1 or more variable length records. Each record starts with a 4-bytes Record Descriptor Word (RDW). RDW bytes 1-2 specify the record length stored as 16 bit unsigned integer, i.e. PIC (5) COMP in COBOL.
    4. each file record contains number of scalar fields and several varying-size arrays - COBOL OCCURS DEPENDING ON. For example:
    03 SAMPLE-ARRAY-CNT PIC S9(1) COMP-3.
    03 SAMPLE-ARRAY OCCURS 0 TO 5 TIMES DEPENDING ON SAMPLE-ARRAY-CNT.
    05 ARRAY-CD1 PIC X(5).
    05 ARRAY-CD2 PIC X(7).
    05 ARRAY-AMOUNT PIC S9(3)V9999 COMP-3.
    5, file contains fields stored as COBOL COMPUTATIONAL and COMPUTATIONAL-3.
    6. average record lengh is 1,000 bytes and each file is about 4GB
    SQL*Loader/external table functionality can handle most of these requirements on one-off basis, but collectively they present a significant challenge. The file layout can't be reversed engineered as COBOL copybook into ODI.
    Does ODI have complex file parsing capabilities that could be used to (pre-)process the file, in as few passes as possible?
    Thanks
    Petr

    Hi,
    there's a couple of options here, and I've included what I think is the simplest below (using TestStand 2.0.1).
    It's not exactly elegant though. What I've done is to put in a step that finds out the number of steps to load (based on an earlier decision - in this case a message popup step). I read a number from the limits file, and use this in the looping options of the property loader step that's loading the values into the array. I've done it with a fixed size array target here, big enough to take any incoming data. (Otherwise, knowing how many items you're going to load from the limits file, you could start with an empty array and re-size it prior to loading).
    I've cheated slightly by using the pre-expression on the property loader step to specify where th
    e data is coming from and where it's going to in the sequence on each iteration of the loop based on the Runstate.Loopindex.
    Another option is to go straight into the property loader step, and keep loading properties until the Step.Result.NumPropertiesRead = 0 (remember we're only doing this one at a time)
    Another idea would be to load in a value, and check it isn't a "flag" value (i.e. you'd never use say 999 in your array, so set the last element in your limits file to this, and drop out of the loop when this happens.
    Further still, you've got the source code for the property loader step, so you could re-write it to make a custom step that loads an array until it fails all on its own (no looping in TestStand).
    Hope this gets you going
    S.
    // it takes almost no time to rate an answer
    Attachments:
    DynamicPropertyLoader.seq ‏32 KB

  • Load Movie and change size

    i'm pretty green and like some help.
    I want to load a movie clip and change the dimensions of the
    clip at the same time- because my main movie is 765X750 and the new
    clip is smaller. I want the smaller movie to play at it's native x
    and y size in the projector. I can't work out the script to do it.
    This is what I have but doesn't change the dimensions when it
    loads.
    on (release) {
    setProperty("_self", _height, "400");
    setProperty("_self", _width, "600");
    loadMovieNum("intro.swf", 0);
    Thank you.

    The problem is when you load a SWF, the movieclip you're
    loading into inherits the properties of the SWF being loaded into
    it. As loadMovie happens after everything else has processed,
    resizing the movieclip has no effect as it simply gets reverted to
    the dimensions of the SWF loading in. What you need to do is run
    the sizing code after the loadMovie has started and the movie has
    begun to load.
    I usually use a loader function that calls another function
    when it's finished loading. The function can contain _x = ?? &
    _y = ??. I also hide the loading movie or alpha it to zero and then
    show it or fade it in when it's finished loading.

  • [svn:fx-trunk] 12007: When the Internet Explorer browser window is obscured Stage. width and Stage.height never return the proper sizes until/ unless the IE window is unobscured long enough for the player to feel it needs to render initially .

    Revision: 12007
    Revision: 12007
    Author:   [email protected]
    Date:     2009-11-19 12:45:27 -0800 (Thu, 19 Nov 2009)
    Log Message:
    When the Internet Explorer browser window is obscured Stage.width and Stage.height never return the proper sizes until/unless the IE window is unobscured long enough for the player to feel it needs to render initially.  This was preventing our preloader from completing, since we were waiting for a non-0 Stage size.  Took a slightly different approach to solving the bug for which the original logic was added to work around.
    QE notes: None
    Doc notes: None
    Bugs: SDK-24191
    Reviewer: Alex, Evtim
    Tests run: Checkin
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/non-0
        http://bugs.adobe.com/jira/browse/SDK-24191
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/Preloader.as

    Revision: 12007
    Revision: 12007
    Author:   [email protected]
    Date:     2009-11-19 12:45:27 -0800 (Thu, 19 Nov 2009)
    Log Message:
    When the Internet Explorer browser window is obscured Stage.width and Stage.height never return the proper sizes until/unless the IE window is unobscured long enough for the player to feel it needs to render initially.  This was preventing our preloader from completing, since we were waiting for a non-0 Stage size.  Took a slightly different approach to solving the bug for which the original logic was added to work around.
    QE notes: None
    Doc notes: None
    Bugs: SDK-24191
    Reviewer: Alex, Evtim
    Tests run: Checkin
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/non-0
        http://bugs.adobe.com/jira/browse/SDK-24191
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/managers/SystemManager.as
        flex/sdk/trunk/frameworks/projects/framework/src/mx/preloaders/Preloader.as

  • My Iphoto application stays on the opening loading sign stage and won't open up at all

    Hi there - first time user, so please be patient ...
    Does anyone know why my Iphoto won't open?  I can't figure out why it just stays on the opening loading sign stage and won't open up any more - was working previously but seems to freeze in that opening symbol stage now whenever I try to directly open it or use it through the application field to open any jpeg format.
    Cheers
    Henrie

    What version of iPhoto? Assuming 09 or later
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • One Size Fits All? (Stage size for best display on iOS and Android)

    I'm beating my head against the wall trying to find the one proper stage size that will accommodate all iOS devices and all Android devices adequately.
    I've been following Colin Holgate's informative posts and am using the   stage.scaleMode = StageScaleMode.NO_BORDER;  approach.
    However, I'm not sure what I should be setting the dimensions of my stage to, as the suggestions I found of Colin's seem to be prior to the release of iPhone 5 and the iPad retina display.
    Can anyone recommend a stage size that would work best in trying to accommodate the wide variety of devices out there?
    Many thanks in advance!
    Mike

    Maybe I'm missing something here, but isn't this an easier way to place a button in the top right (assuming center point is in top left of button)?
    button.x = stage.stageWidth - button.width;
    button.y = 0;
    edit: I suppose that doesn't apply to show_all. I'm used to using
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.align = StageAlign.TOP_LEFT;
    We've done this with banners at the top and bottom. If you design a banner for a specific aspect ratio, you can do something like
    banner.width = stage.stageWidth;
    banner.scaleY = banner.scaleX;
    This causes the banner to fill the width of the screen and change height proportionately. If you want to have more control over the elements in the banner, something like
    banner.background.width = stage.stageWidth;
    var newHeight:int = stage.stageHeight / 8;
    banner.background.height = stage.stageHeight / 8;
    banner.buttonBack.height = newHeight;
    banner.buttonBack.scaleX = banner.buttonBack.scaleY;
    banner.buttonBack.x = banner.buttonBack.y = 0;
    banner.title.height = newHeight / 2;
    banner.title.scaleX = banner.title.scaleY;
    banner.title.x = banner.buttonBack.x + banner.buttonBack.width * 1.2;
    banner.title.y = newHeight / 2;
    etc
    This might not be what you're looking for at all, but I find it works well for resizing.
    When asked to convert a fixed-size iPad app to one that dynamically resized for Android devices, we found it infeasible to completely recode the app in the time required, so we mixed dynamic resizing like above with throwing lots of objects into an empty MovieClip and scaling the MovieClip to fit the current stage size. This didn't hurt performance much, even when running graphics designed for the iPad's 2048*1536 retina display on much smaller screens.

  • s:BitmapImage get image scaled size and position after it loaded and scaled

    I am try to know the dimensions of the uploaded image into <s:BitmapImage without success.
    The data coming back to me are isthe real image size and not size after it was scaled to fit the component size.
    I can see that the image scaled down and fit to the maxWidth, but I can't get the actual/real scaled width from the BitmapIMage properties.
    I tried:
    <s:BitmapImage id="mainBitMap"  ready="mainBitMap_readyHandler(event)" complete="bitmapimage1_completeHandler(event)" source="{data.Thumbnail.URL}" maxHeight="250" maxWidth="250" scaleMode="letterbox"/>
      protected function bitmapimage1_completeHandler(event:Event):void{ 
    trace("----------------------Start-----------------------"); 
    trace("mainBitMap.bitmapData.width" + mainBitMap.bitmapData.width); 
    trace("mainBitMap.width" + mainBitMap.width); 
    trace("mainBitMap.measuredWidth" + mainBitMap.measuredWidth); 
    trace("mainBitMap.displayObject.width" + mainBitMap.displayObject.width); 
    trace("mainBitMap.explicitWidth.width" + mainBitMap.explicitWidth); 
    trace("mainBitMap.preliminaryWidth" + mainBitMap.preliminaryWidth); 
    trace("mainBitMap.sourceWidth" + mainBitMap.sourceWidth); 
    trace("-----------------------End------------------------");
    Result:
    ----------------------Start-----------------------
    mainBitMap.bitmapData.width=435
    mainBitMap.width=0
    mainBitMap.measuredWidth=0
    mainBitMap.displayObject.width=0
    mainBitMap.explicitWidth.width=NaN
    mainBitMap.preliminaryWidth=NaN
    mainBitMap.displayObject.preliminaryWidth=435
    -----------------------End------------------------
    Thanks,
    Nimrod.

    Hi,
    I tried the ready event, But I still receive the same results.
    I expect to get the new scaled width And height according to the maxHeight and MaxWidth.
    I see that the image scaled to fi it But I can't recive the new size of it.
    Thanks,
    Nimrod

  • How to load and save custom workspaces in PE7

    I've written a little utility which allows PE7 users to load and save custom workspaces. It's attached to post #1 of this thread.
    System requirements
    The utility has been tested with Windows XP Pro SP3 only. It might or might not run under Vista. It will only work with PE7 installations where the executable files are in the default places.
    Installation
    When you have downloaded the utility (it's only 199KB) you can run it from any convenient place in your system - it doesn't need to be installed as such.
    Usage
    It's pretty self-explanatory in use but here's the manual!
    Run the downloaded utility "PE7WS.exe".
    A file selection dialog appears. Choose the workspace layout file you wish to use. "LastUsed.layout" is the last used workspace (that's all you will be offered the first time you run the program). If you press Cancel at this point, the program will exit and nothing will happen.
    Once you have selected the workspace, click "Open" and Premiere Elements 7 will run, using the workspace layout you chose.
    After you exit from Premiere Elements 7, a workspace layout file save dialog will appear. If you made changes to the workspace during your Premiere Elements 7 session, you can now give the revised workspace a name and save it.
    Do not save the workspace in a different directory from that which the dialog offers!
    If you have changed an existing custom workspace, and you want to update the version previously stored, just select the name and over-write the saved workspace layout with the new one.
    If you don't want to save the workspace at all, just click "Cancel" - next time you run Premiere Elements, you can choose the "LastUsed.layout" workspace to use that last used unsaved workspace in any event.
    If you use the PE7WS utility to run Premiere Elements 7, and then you use the menu option "Window > Restore Workspace", then exit, you can either cancel the workspace saving stage, (which will mean that "LastUsed.layout" will contain that default workspace), or you could give that default workspace a name like "PE7 Default" so you can start a future Premiere Elements 7 session with the default workspace, even though you last used a custom workspace.
    If you run Premiere Elements 7 in the usual way without using PE7WS.exe, the workspace that appears will be the last used one.
    The usual disclaimer...
    The utility should be entirely safe in use, but I can't accept responsibility for any loss or damage it might cause. However, the only file manipulation is does is to workspace files in the directory that Premiere Elements 7 uses purely for the purpose - the utility doesn't go anywhere near your precious project files.

    I'm finding it very handy on my particular twin 22" monitor setup to sometimes use a one-screen layout and sometimes a two screen layout. I 'discovered' that having the timeline on the second monitor enables me to tweak edits there while having the playback full size after pressing the "full screen" button on the first monitor. Where the timeline would normally be I have the history, mixer, and other windows always open. As the second monitor is also used by another PC (the one I have the net and email etc on) using "Maxivista" monitor sharing software, I revert to single screen layout when doing stuff like exporting to DVD so I can see what is going on with the render while typing stuff like this.
    Selectable workspaces are dead handy!

  • Maximum Stage Size Possible in FP 10

    Does anyone know what the max size is in FP 10 for the stage?
    When I scale a swf larger than 4080 I get a black line at the
    bottom below my content. Can anyone reproduce this?

    It is true that the Flash IDE restricts stage size to 2880.
    My question is really how large does the flash player support
    scaling content?
    If I have a swf that I created in the IDE at 100x100 and then
    I open it in the player and tell the player to scale to 5000x5000
    it appears that FP 10 doesn't complain. FP 9 and earlier did
    complain by not rendering content past a certain pixel boundry.
    Flex seems to have an issue if you have a gradient set on the
    mx:application component (I haven't tested others yet), which is
    probably the issue with the 4096 single bitmap boundary.
    The crux of the matter is that I am getting artifacts on the
    screen when I scale the player to a very large size that has a flex
    swf loaded. The artifacts are not part of any content that I load.
    So either they are caused by the flex framework components or the
    flash player itself.

  • Flash stage size problem

    Am using Flash Pro CS5 and although the documentation for Flash Player 10 at the link below
    http://helpx.adobe.com/flash-player/kb/size-limits-swf-bitmap-files.html
    says that the max is 4050 by 4050.
    We are trying to run a swf in a  monitor array of 3840 by 4320 but in the editing of the document properties the limit is only 2880 by 2880.
    Has this been fixed in FLash CS6?
    Does anyone have any advice?
    We are stumped.

    Originally were using FP11.2 and then tried FP11.1 and went back to FP11.2 but couldn't load the swf at full stage with either. We can load a 1920 by 2160 stage but it doesn't look to be the right size - but were able to load the swf with the smaller stage size.(That is a separate issue though - the non-exactness of the stage dimensions.)
    We are attempting to output to a two by four  monitor array aiming for a 3840 (1920 x 2) by 4320 (1080 x 4) and the large stage size should be possible according to the specs but no go.

  • Reducing/increasing stage size centrally

    I notice that Flash makes changes to a stage size to the right. Is there a way of making the change so it expands out from a central point, i suppose like photoshop and similar. This has caused me some problems in the past when a client has asked for the site to be increased or reduced in width for example, and it can take a considerable ammount of time to move everything accordinly, so wondering if there is a solution.
    Cheers

    As far as I know the registration of the stage is upper left corner and cannot be changed.  The stage will only change relative to the registration point.  And even if you could adjust the stage as you desire, you would still run into the same problems.
    Your best bet if you deal with this on a regular basis is to build your content into a movieclip so that the main timeline only contains that movieclip.  Then you can easily resize and adjust the location and size of the content.  Alternatively, you could create your content as one swf and load it into another swf.  This would effectively provide the same result.

Maybe you are looking for

  • How to generate key events programmatically

    Hello friends, I am developing an application that would automaticall trigger some keboard events for this purpose i would like to trigger an event like alt+f4 i.e pressing alt+f4 together How can we do this using java regards hari

  • Examples, exercises & solutions

    Hi, I'm getting started with Visual Composer and have already been through some exercises (Exercise1_CreatingBankInformationiView Basis Mode, Exercise2_EnhancingBankInformationiView, Exercise3_Creating a Guided procedure forBankInformation, Exercise4

  • Can we have separate 10gR2 RAC CRS and 11gR2 RAC CRS homes on  same Unix s

    We'd like to test the upgrade of our 10gR2 RAC databases to 11gR2 RAC. We have six databases on the same server and want to install a separate 11g RAC stack (11g CRS, 11g ASM, 11g RDBMS) and upgrade each 10g database from 10g RAC stack on same server

  • BI Server is Down

    Hi, My BI server is down what is the Unix command to start the BI server ?

  • Trouble with PIX 501 user limit?

    I have installed a Cisco PIX 501 at a client's site, and now a couple of weeks later we are having an issue where some computers cannot access the Internet. The PCs can ping the internal interface of the firewall, and can resolve hostnames. But about