ActionScript 2.0 :: How To Resize External Swf
Mar 8, 2004
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...
View 2 Replies
Similar Posts:
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 ...
my code in main
Code:
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
[Code]....
View 14 Replies
Mar 8, 2004
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...
View 2 Replies
Mar 11, 2008
I need to load an external .swf (600pixels by 600pixels) into a .fla but I need shrink the size of the .swf to 200pixels by 200pixels.
I created an empty shell movieclip using menu called my_shell and then added the following code to a frame:
loadMovie ("my_movie.swf", "my_shell");
This loads the .swf but at full size 600pixels by 600pixels.How do I force the .swf to be loaded and resized down to 200pixels by 200pixels?
View 3 Replies
Nov 21, 2011
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]...
View 1 Replies
Aug 14, 2010
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.
View 1 Replies
Jul 5, 2010
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:
[Code]...
View 2 Replies
Jul 5, 2010
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
{
[Code].....
View 2 Replies
Mar 8, 2010
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.
View 2 Replies
Jan 10, 2012
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).
[Code]...
View 1 Replies
Nov 3, 2009
Im having problems displaying my loaded swf, with my resize code. If I comment out my resize code, the swf DOES get put on stage.
Heres my code...
import flash.display.*;
import flash.events.*;
stage.align = "TL";
[Code].....
View 0 Replies
May 23, 2010
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;
[Code].....
View 0 Replies
Aug 20, 2011
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.
View 1 Replies
Feb 5, 2009
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:
Code:
<embed src="wrapper.swf" ...>
<param name="filename" value="path-to-external-swf.swf"/>
<param name="clickTag" value="http://www.example.com"/>
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...
View 1 Replies
Apr 8, 2004
I want to know how can I load external jpgs into a "frame" and depending on the size of the jpg resize this "frame" as you can see here:
View 9 Replies
Jun 30, 2010
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.
import flash.ui.Mouse;
import flash.events.Event;
import caurina.transitions.Tweener;
[Code].....
View 1 Replies
Aug 18, 2011
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]
View 6 Replies
May 11, 2011
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...
View 2 Replies
Nov 4, 2010
I`m trying to load swf into mc using Class I made for loading external content and then I shrink that swf.
Everything works fine, but, when I create graphic outside of the stage in swf I`m loading, my Loader flash display even that graphic.
View 1 Replies
May 5, 2009
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.
Code:
Select all/*Resize*/
holder.smoothing = true;
var mainStage:Stage = this.stage;
mainStage.scaleMode = StageScaleMode.NO_SCALE;
mainStage.align = StageAlign.TOP_LEFT;
function initialDisplay(evt:Event):void {
[Code] .....
View 2 Replies
May 13, 2010
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.
View 2 Replies
May 23, 2010
menu_mc.about_btn.addEventListener(MouseEvent.CLIC K,aboutClick);
function aboutClick(e:MouseEvent):void {
removeChild(loader);
var about:URLRequest = new URLRequest("demo1.swf");
loader.load(about);
addChild(loader);
[Code]....
View 3 Replies
Jul 30, 2009
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.
View 2 Replies
May 11, 2011
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..");
[code].....
View 2 Replies
May 12, 2010
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.
View 1 Replies
Nov 15, 2004
Does anyone know how I can resize the stage to match the size of an external graphic/movieclip which is loaded into an empty movieclip
View 3 Replies
Sep 19, 2011
I am working on image and i like to scale or resize the image by dragging and resize option.same working as "free transform tool" in flash (design part); i need same functionality in application.
View 7 Replies
Jul 7, 2011
I'm having a bit of a problem here. As per the title, my flash swf file works fine when tested from the IDE, but when I publish it and open it through the browser, the stage doesn't seem to resize along with the window.I post below a bare-bones example. The "back" movie clip should resize, only it remains at the starting dimensions
Code:
import flash.events.Event;
import flash.display.MovieClip;
[code].....
View 9 Replies
Jul 29, 2009
I have Buttons which I have rotated vertically within a Canvas, that is working fine. The problem occurs, when the user resizes the window to a small size a vertical scroll bar appears, I would rather have each button squashed upto a smaller size.
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="40" maxWidth="40" xmlns:myComponents="myComponents.*"
horizontalScrollPolicy="off"
[code].....
View 2 Replies
Dec 8, 2010
I'm having a little issue with the resize event and resize effect of a VBox.
I have something like this:
<mx:VBox id="container"
backgroundColor="0xFFFFFF"
backgroundAlpha=".9"
paddingTop="15"
paddingLeft="15"
[Code]...
View 3 Replies