ActionScript 2.0 :: [FMX] Obtain The External Movies' Resolution / Dimension (800x600 Px)
Oct 21, 2003
At _level0, external movies are loaded through a movieclip using loadMovie("externalmovie.swf","targetmc");
1. Obtain the external movies' resolution/dimension (e.g. 800x600 px) using actionscript.
2. Assume the movies have different dimensions and are smaller than or equal to _level0's dimensions. If they are smaller, you have to scale up the movie until it reaches the largest size possible, to fit into _level0's dimensions. Again, the external movies are loaded using a target mc and not using levels
3. Note: Remember that when movies are loaded through target MC, they inherit the properties of that mc, so if the size of the mc is 600x600, the external movie would be so too, even if it were 800x600px . This means that you may not do a direct [AS]MC._xscale = 200;[/AS] to it.
* The _level0 movie will serve as a master swf where the different external movies will load into, and consecutively play (one at a time), automatically (ergo, without having to manually open and quit and open and quit the movies).
View 8 Replies
Similar Posts:
Dec 2, 2009
I am trying to figure out how to stop a user from resizing the page below 800x600. I have found how to load a new url or swf when below a certain resolution but is it possible to load a frame or movie when the resolution is resized below 800x600 and goes back to the previous frame if resized back above 800x600? I have symbols attached to the corners of the stage. Resizing looks terrible.
View 1 Replies
Mar 11, 2009
My original movie is 800x600 and my external swf is 700x525... I'm using the following script on a keyframe... loadMovieNum("123.swf", 1); ... and under normal circumstances this would work fine... however... I need the 700x525 external swf to retain its size in the center of the 800x600 original movie... right now it's edge to edge and showing what's going on 'offstage' in the external swf! What scripting am I missing? I'm using Flash 8 on a Mac.
View 2 Replies
Aug 24, 2011
I hav two swf movies with resolution 420px by 200px and 780px by 450px. I want to compile them as a presentation in an autorun cd in fullscreen mode.
View 0 Replies
Apr 21, 2011
I am looking for a solution, on how to set a movie clip so it would fit to different monitor resolutions. I have found a few solutions (like changing the "px" to "%" inside the html file), but none of them give me the results I wan
View 10 Replies
Dec 16, 2010
The issue I'm having is that I have a main "wrapper" 100x100 (but it could be any size) - it's just there to hold and display whatever content, swf, gif, etc we may want to throw into it. As long as the loaded content doesn't have 3D animation like rotationY going on, it displays fine. But when it does, the 3D "anchor" properties (like projectionCenter) of the loaded swf inherit those of the main timeline (i.e. 100x100 (main) vs 728x90 (loaded)). If I change the dimension of the main "wrapper" in Flash IDE to match what's coming in - the 3D behaves fine, but I won't know what the dimensions of the content will be until it comes, so I need a way (if there is one) to dynamically alter the main "wrapper" or root display object through AS. Stuff like "this.width = loader.width" or "stage.width = loader.width" or "root.width = loader.width" etc doesn't work. Flex has the hBox and vBox
View 1 Replies
May 16, 2010
i'm now working on a project using action script 3 now what i'm trying to make is a Main SWF that load whatever other swf into it the tricky thing is that i used 1 xml document read the external swf source nad it's setting(such as it's x,y position and it's width and height) and i'm having problem setting it's width and height (i mean the loaded swf width and height)[code]
View 2 Replies
May 20, 2010
i'll be straight to point,well i'm now working on a project using action script 3 now what i'm trying to make is a Main SWF that load whatever other swf into it the tricky thing is that i used 1 xml document read the external swf source and it's setting(such as it's x,y position and it's width and height) and i'm having problem setting the loaded swf width and height btw it's an desktop application and not a website application.,
[Code]...
View 11 Replies
Nov 17, 2009
I used Loader to load an external swf file, and try to display it in a fixed area, like a fixed dimention sprite object. And I don't know the exact size of the swf file, I just want it to fit the fixed area.
code:
var loader:Loader = new Loader();
loader.load(new URLRequest("some path"));
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
[Code].....
View 2 Replies
May 22, 2005
... I've had my preloader successes already, but something still doesn't work for the external movies... I'm loading the main movie - which contains several chapters, loaded as external swf's - with the following preloader on the first frame, rest content from second frame on:
[Code]...
View 5 Replies
Feb 9, 2010
I want to know is there anyway to invisible title bar for a AS3 project? and how to force program to use fix resolution and change monitor resolution to what we want?
View 1 Replies
Sep 10, 2009
I have a scalable flash for the most part the site works okay. The problem I am NOW having is I can't get my external .swf files to load in the center of the site based not on the flash stage height and width but the browser / screen resolution height and width... This is what I have so far and it is not working for me..
// detects width of end users browser
var resX:int=flash.system.Capabilities.screenResolutionX;
trace(resX);
[code]....
View 8 Replies
May 27, 2009
I've downloaded a prebuilt gallery .fla (570x350) from this lesson I don't understand where to fix it to adapt on my site.I've copy the fotograms and the AS3 code from the original file and paste on the mine(I've used only 10images), it works, but I don't know where I can fix this problems:1) the gallery is over the menu and I would like to fit in the center2) if I click on the image (randomly) the result is the same, I've the pic over the menu, and I would like to center
View 6 Replies
Apr 20, 2006
i am trying to resize externally loaded swf`s that are 800x600 to fit in a preview window that is 124x93.. everything works great as long as the external swfs have a MC that fills the stage (i.e that is 800x600)
[Code].....
View 4 Replies
Feb 20, 2010
I bought a flash intro, I dont want it to be an intro, I want to use it as a banner (995x200). I eventually managed to get all the elements right, I published it and preview it, it looked well and what I wanted.The problem is, when I added this new banner to my website and preview it, it still looked well,I got my website ready and published everything but the whole thing just reverted back to what I originally started with (800x600)
View 2 Replies
Oct 31, 2009
I have always the argument with my colleagues which authoring strategy to use. I always attached to the idea of authoring several swf files, and have them all loaded to the main swf when needed. And than attach Preloader to each swf that I load.
Others think that it should be only one swf with one preloader. And have all the navigation to use scenes or goto actions.
So the advantage of using my strategy is that users will not wait too long for one movie when its being loaded. And its more convenient to work on several fla with each have its own layers, symbols, etc
View 6 Replies
Jun 18, 2009
I am having some troubles to remove the movieClip from the current Loader (from the main FLA) at the external movies...
Check out how the external movie loads..
Code:
// -- FUN��O NAVIGATE -- //
function navigate(event:MouseEvent):void{
if(event.target.name == "fotos" ){
carregaFotos();
[Code]....
I have the external swf with some Tween Classes instaled and codified.. But I don't know what to do to CLOSE the external swf loaded at "meuCarregador" and it back to the BEGINNING OF THE ANIMATION on MAIN FLA.
View 1 Replies
Feb 17, 2003
i want to load an external swf movie into the main swf movie. now ive been using the loadmovie script and it works fine but the loaded movie comes up in the top left of my site so my ? is, how can i specify the location of where my loaded movie ends up
View 3 Replies
May 30, 2005
I got some movies loading in a container, but the movies stay open, I want to be able to "close" the container, or hide it when I click on other navigation buttons that are included in my main timeline.
View 3 Replies
Jan 22, 2006
how can i make a preloader in my main movie that preloads external movies
View 1 Replies
Jul 17, 2003
I read the tuts on dynamic loading etc (the one about external stuff like mp3s, jpgs, swfs; and the one with the transitions). I'm messing around with it in MX and all works fine, except the problem I have is I cant check it locally! the bandwidth simulator and profiler doesnt seem to work with loading external content, the movie appears immediately.
So I tried loading the swf from the web (i.e. URL = file://[URL]) that gave errors "opening file" (the movie is there though). my only solution so far is to keep uploading my movie everytime I wanna check it!!! which is CRAP! I dont have a network at home, so cant really use those bandwidth simulators I saw on the sticky. basically I juz wanna load an external movie, and see how the parent movie handles it (i.e. progress is kept track of correctly, loaded notifications work etc.) how can I check all this locally?
View 6 Replies
Jul 21, 2003
how do you debug external files if they have functions that can only be executed when inside the main movie? I hope this makes sense...so the thing is that a movie just exported shows you the values of the traced items (undefined, numbers,..whatever). When that same movie is published and viewed in the flash player within the main movie, the traced items don't show in the output window.
View 3 Replies
Nov 5, 2009
I got this tutorial about external movie loading. It works but it seems that their is a little problem with it. How do you keep the button from loading an external movie once it's loaded already?
[URL]
Let's BUTTON-1 loaded MOVIE-1, now when you click on BUTTON-1 again it will load the movie even if it's loaded. How do you do it like only when another button is clicked will it load the movie for that button.
View 2 Replies
Sep 30, 2002
I have a movie (movie1.swf) which loads "movie2.swf" onto level 2. What is the scripting to make it go right to a specific frame in "movie2.swf"? What if I wanted it to go to a specific scene in "movie2.swf" right away upon load?
View 5 Replies
Nov 18, 2003
Is it possable to load an external swf file, that is a rotating movie into another file and still control it??example:I have a rotating object which I want to pause and play. I have loaded the rotating object into a window using the loadMovie command. I now want to be able to use the play and stop buttons to control therotation.Because the movie has been loaded into the window from a different location it does not have a path to target the play and the stop command to also tried adding the play and stop buttons on the rotating object movie swf file. They load and are pressable, but dont do anything?
View 1 Replies
Sep 24, 2010
I have three (3) buttons in my main movie. And I just realized that everytime I press the "about me" button, it keep loading, reloading, the same movie. Its kinda lame! So I searched for VARIABLES and thought I could work my way around it.What I did was, on the first frame of my movie, I declared 3 variables; namely:
PHP Code:
var portfolio = false;
var aboutme = false;
[code]......
View 8 Replies
Mar 24, 2011
I have made a flash player that loads in two external flash movies this is all now workign fine with a little extra help, however the problem i have now is that when the movies load in they both show in different places, for example the external movie called new_products loads perfectly in places, for example one of the movies loads into place where i want it to but the second loads in to position starting at the top left.When i add x, y for the loader it affects them both, but they still originate from differnt start positions.[code] URL...
View 5 Replies
Sep 12, 2008
I have 3 external movies that I would like to play in this order.
first time someone visits the site they get 1.swf
second time they visit the ste they get 2.swf
third time they visit the site they get 3.swf
and everytime after that they get the same pattern 1, 2, 3.
View 8 Replies
Jun 23, 2009
I have a doubt about access functions between an MAIN fla and his external Movie.
All I need is to return a variable to the MAIN.fla function as TRUE.[code]...
View 0 Replies
Mar 24, 2010
I'm quite new to flash and got stuck on a problem involving: loading external movie clips and file paths.I have 5 swf files and want to access them from one main navigation screen.[code]It fails after a few click because the file paths get duplicated..[code]Can any of you Flash gurus point me in the right direction?
View 2 Replies