ActionScript 3.0 :: Resize An External Mapa.swf Within Contactos.swf External?
Oct 5, 2009
I have a site with resize and how do I resize an external mapa.swf within contactos.swf external? I have 4 buttons, and clicking the button contacts, I have another button that calls a mapa.swf, so that is not centered mapa.swf ...
i load an external swf into a movie clip.... now i want to resize the external swf.... issit possible..? cos this external movie clip is actually a jpg converted into swf using php... but now i want to manipulate this swf within my main swf which calls it using the mc_inst_name.loadMovie() function...
i load an external swf into a movie clip.... now i want to resize the external swf.... issit possible..? cos this external movie clip is actually a jpg converted into swf using php... but now i want to manipulate this swf within my main swf which calls it using the mc_inst_name.loadMovie() function...
Tha following code is for resizing the Movie Clips which are on Stage. But how can I resize the external .SWF files? I am laoding an external .swf file through Gallery_mc.addChild(loader)[code]...
What I want to accomplish is to resize an external SWF so that it fits into the display object that is presented as a container on the stage. For now it show up outside of the container.
Important: I do not want an external SWF to occupy the whole stage; I have a special place (that container) for it on the stage.
I am loading external swf's inside content_2 and when i resize my browser the external content OR content_2 disappears. Can someone help me as to what I need to do to stop this. I've tried adding an onresize function but that does not work. Here my as3 code:
I am loading external swf's inside content_2 and when i resize my browser the external content OR content_2 disappears. what I need to do to stop this. I've tried adding an onresize function but that does not work. Here my as3 code:
scroll_sb2.scrolling("content_2", "area_2", 0.18); // Range from 0.00 to 1.00 stage.addEventListener(Event.RESIZE, resizeHandler); function resizeHandler(e:Event):void {
I'm trying to load a local SWF Application in my Air Application via the SWFLoader class. The SWFLoader class is displayed in a new Window. Therefore, i'm trying to resize the window automatically, when the Flash Application is resizing. But here's the problem. The SWFLoader does not get any events when the loader App has been resized.
The Problem seems to be the Sandbox Restrictions. I'm able to call methods in the childSandboxBridge and parentSandboxBridge Objects that i've set in the LoaderInfo of the SWFLoaders content (the loaded SWF Application). But i cannot listen to any ResizeEvents or something like that when i'm resizing the loaded App.
I exported a swf using Unity3D 3.5 preview. I can not change the dimensions when I load in as3 (Adobe Air 3).
When the swf loads appears the logo of unity with loading, that resizes to 730x750! Great ok! But when the loader of unity ends the swf resize for the stage size (1920x1080).
I am trying to scale external swfs to the window size that exists at the point when the button is clicked. The external swf is being loaded into a dynamically created mc in the main swf. I am using a resize handler and the issue i am having is that all external swfs only become veiwable when the window is resized. After the window is resized, they become viewable and scale on the resizing of the window. I call the resize handler to upate the scale base on the window size but to no avail.
The AS (3.0) that I am using can be seen below.
ActionScript Code: stop(); var Xpos:Number = 0; var Ypos:Number = 0;
I'm building a course to be hosted on my LMS and am unsuccessful at resizing my external SWF files in my player.
My Flash HTML output contains:
HTML Code: <style> html, body {margin-left:auto; margin-right:auto; height:100%; background-color: #ffffff;} body {margin:0; padding:0; overflow:hidden;}
[Code]....
When I launch introduction.swf in preview and resize my window, it all works great, but in the HTML page is does not scale the external SWF.
I have messed with various different solutions with now change in results.
What i try to do, is to make a "wrapper" in Flash, in which other swfs could be embedded. (passing the URL of the external SWF by URL) to attach a link to the swfs. (ClickTag - Issue, maybe someone knows this).In the HTML - Code this would look like this:
The SWF "wrapper.swf" should load the "path-to-external-swf.swf" an puts a onClick - Event on the whole area.That works just fine, BUT The loaded external SWF should always fit to the stage size (like 100% width and 100% height) .My code looks like this:
Code: // Variables should be passed by URL _root.filename = "http://example.com/animation.swf"; _root.clickTag = "http://www.example2.com";[code]....
Code: mClip._width = Stage.width;
When i click on the swf, the movie fits exactly to the stage width...
how to do this, But I cannot get my own to work. I am loading an external swf file into an empty movieclip. I would like the external swf to be centered initially, and after page resize.
Please help I've been researching this topic for like 2 days straight and it is driving me insane because I can't seem to find a specific answer for what I'm trying to achieve and I know it can be done because I've seen end results on the web. Here is what I'm doing:
1. I created a simple museum gallery with 3 portraits hanging on the wall 2. Inside the museum portraits I created 3 different uiLoaders with a black background 3. I gave all 3 uiLoaders their own unique movieClip names 3. Inside each uiLoader will be a loaded external image via a URL 4. I DO NOT want to resize the uiLoaders - I want to scale the external images proportionately to fit inside the entire contents of the uiLoaders and still remain centered
URL...As you can see currently the 3 random external images are loaded perfectly inside the uiLoaders but you see black background and I want the photos to fit the entire contents of the uiLoaders yet still remain proportionate.[code]
I have an application where I try to load an external SWF. So, we have: My application: The Stage's dimensions are 768x1280. ScaleMode = EXACT_FIT. External SWF: It's another application where its stage is: 800x600. ScaleMode = EXACT_FIT.
The problem is that the external SWF does not modify its size although I apply "scaleX, scaleY", change its width and so on. I also tried to insert it into a Canvas container (as "How to resize an external SWF to fit into a container?" ) but it didn't solve my problem.
The interesting piece of code is when the external SWF is loaded by my application: private function onLoadedApp( evt:Event ):void{ stage.scaleMode = StageScaleMode.EXACT_FIT; trace("Loading Application.."); var loaderInfo:LoaderInfo = evt.target as LoaderInfo; loaderInfo.removeEventListener( Event.COMPLETE, onLoadedApp); [Code] .....
I also tried to do it through SWFLoader, but the external.swf's content doesn't change its original size although I add the "scaleContent" parameter.
Visual results I got: The external SWF is loaded on the suitable position and it "seems" to have 320x240 dim. But its width is a bit cropped, since if I stretch the Flash Player I achieve to see the rest of the external swf's stage. Besides, the external SWF never is resized although I shrink/stretch the Flash Player. It always remains fixed (if I trace its dimensions, I always get 800x600, although I visually see 320x240)- If I increase the stage's width of the main application, this little clip disappear.
I know the original Stage's dimensions are 800, and this is greater than the original stage of my application (768), but I think, when I do the resizing, external SWF's Stage have to be fitted in the container. It is fitted, but a part of the external SWF is not seen. It's like Flash Player remembered that the external SWF Stage's width were greater than my application's one...
Iit works but it's just not perfect. Ihaven't played with flash since MX, things have changed a bit. Here is the online sample: [URL]. If you want the source it here: [URL]. So I would like to learn how to create an if / else function to control the height of a MC. i.e. This externalMC I used is 900 X 500, so divide 900/500 = 1.8:1 (or .5556:1) this gives you your relative ratio. Then just multiple the width of 75% of stageWidth by .5556 to get the proportional width, the problem is once the browser windows height is resized to <= 500. it stops.
Here is my problem (unfortunatelly didn't find solution @google or in this forum): I'm loading external swf[AS2] into main swf[AS3] using Loader class. The main swf is 800 x 600 and the external swf is 290 x 247. After adding the external swf to the main swf the external swf expands (scale to) from 290 x 247 to the main swf's size: 800 x 600. How can i prevent this? I want the loaded swf to save it's original stage size.
function aboutClick(e:MouseEvent):void { removeChild(loader); var about:URLRequest = new URLRequest("demo1.swf"); loader.load(about); addChild(loader);
I have designed a homepage that has 4 boxes on the right hand side that are of different size. I would like to have a movie loader that loads .jpgs randomly from a specified folder into each box. At the same time I don't want any repeats in any of the 4 boxes. Also is it possible to resize the images according to the box size without having to resize them outside of flash? I can have all the images in the external folder the same size, but then if I can just shrink them with whichever image falls into the box the random script assigns.
I have an application where I try to load an external SWF. So, we have:My application: The Stage's dimensions are 768x1280. ScaleMode = EXACT_FIT. External SWF: It's another application where its stage is: 800x600. ScaleMode = EXACT_FIT.The problem is that the external SWF does not modify its size although I apply "scaleX, scaleY", change its width and so on.I also tried to insert it into a Canvas container (as "How to resize an external SWF to fit into a container?" ) but it didn't solve my problem.The interesting piece of code is when the external SWF is loaded by my application:
private function onLoadedApp( evt:Event ):void{ stage.scaleMode = StageScaleMode.EXACT_FIT; trace("Loading Application..");
Here is my problem (unfortunatelly didn't find solution @google):I'm loading external swf[AS2] into main swf[AS3] using Loader class. The main swf is 800 x 600 and the external swf is 300 x 200.After adding the external swf to the main swf the external swf expands it's size from 300 x 200 to the main swf's size: 800 x 600.
my problem is that i need to make a reisze, cause the screen resolution for other users. My main and news movie works perfect, but the others movies re-scale everything bigger. The problem of the external loaded movie is: this movie needs the funktion:
Stage.scaleMode = "noScale"; Stage.align = "TL";
If i dont have this code inside the movie is not going to resize fullscreen into the main movie. Inside this movie im scalling photos and some mc's You can take a look what i mean under: [URL]
If you take a look to the bar where the Number of pictures (30) are you will see that the lower bar and the pictures is not going to scale to fill the full screen if i delete the this code;
I am using in AS3 "External Interface ". When I call the JS function that is on the same page as swf everything works fine.
I added a link in the html page to an external JS file, when I move the JS function to the external JS file the website crushes.
I would prefer to have all my JS functions on an external file so I can use them in the future in other project and it also makes it easier for me to update the site.
how to call a JS function that is on an external file from AS3?
Structure: There is 1 main file that loads external SWF files depending on what is clicked on.One of the external SWF files loads its text from external text files. This works fine when viewing the SWF applet on its own. But when viewing as a whole site, the text doesnt appear. Very annoying.I made that particular SWF on my mums computer running Flash MX 2004The flash file itself uses the Scrollbar component from MX.Could someone tell me why the text doesnt load in this scenario? It runs fine on its own, just not as an external SWF.