Actionscript 3 :: Resize Of External SWF Exported From Unity3d?

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


Similar Posts:


Flash :: 3D Home Planner Application Versus Unity3D?

Jan 25, 2012

We have for some time been discussing internally whether Flash or Unity is the best solution for our need.
 
Our plan is to make a 3D home planner application that runs online. Should be similar to this[URL]. however still with the 3D view, where you are able to walk around in the house you created.
 
At first glance Unity seem to handle 3D best (although I have seen some amazing 3D in flash aswell) but the problem is that not many people have unity and we want to reach the largest audience.
 
So I guess I am asking if a project like this is even possible in flash. Current status is that we have only little knowledge of Unity and very little knowledge in flash.

View 1 Replies

Exported SWF  Using External MOV Has All Sorts Of Path / Sandbox Errors

Nov 16, 2009

I need to say I'm VERY aggravated right now at all of this because I know whats going on I imported a QT h.264 640X480 mov into flash. I've used  both local files across the network and files on the live web server. 1. the exported SWF on the server want to use the skins. swf thats TWO folder levels higher then the output and the local MOV. there appears to be no way to edit this.I didn't export to here, I exported to a folder deeper down to hold everything. no idea how or why flash is reaching 2 levels up.

2. if I manually move the skin file up, then I get a sandbox secruity error with the hint that Security.loadPolicyFile("");

View 14 Replies

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 ...

my code in main

Code:
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;

[Code]....

View 14 Replies

ActionScript 2.0 :: Resize The 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

ActionScript 2.0 :: Resize External .SWF In A .FLA?

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

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

ActionScript 3.0 :: Resize External Swf Files?

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

Flash :: Resize An External SWF To Fit Into A Container?

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

ActionScript 3.0 :: External SWF Disappears On Resize?

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

ActionScript 3.0 :: External SWF Disappears On Browser Resize?

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

Load External SWF App In A New Air Window With Resize Functionality?

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

ActionScript 3.0 :: Loading External Swf With Resize Functionality?

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

ActionScript 3.0 :: Scaling External SWF Before Window Resize?

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

ActionScript 3.0 :: Resize External SWF To Full Screen?

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

IDE :: Resize External Swf Movie To Stage Size?

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

ActionScript 2.0 :: Loading External Jpgs And Resize?

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

ActionScript 3.0 :: External Swf To Be Centered Initially, And After Page Resize?

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

ActionScript 3.0 :: Resize External Images Loaded Into UiLoader?

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

Flex :: Impossible To Resize External Loaded SWF Content

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

ActionScript 3.0 :: Load And Proper Resize External Swf File?

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

ActionScript 3.0 :: Proportional Resize External MovieClip And Fill BG

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

ActionScript 3.0 :: Resize External Swf To Its Original Stage Size?

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

ActionScript 3.0 :: External SWF Scaling Relating To Window Resize?

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

ActionScript 2.0 :: Loading 4 External .jpgs Randomly And Resize Them?

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

Actionscript 3 :: Flex - Impossible To Resize The External Loaded SWF's Content?

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

Actionscript 3 :: Loader Class: Resize External Swf To It's Original Stage Size?

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

ActionScript 2.0 :: Resize Stage To Dynamically Match External Movieclip Loaded Into Empty?

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

ActionScript 3.0 :: Scale Or Resize The Image By Dragging And Resize Option?

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

ActionScript 3.0 :: Browser Resize Doesn't Trigger Resize Event?

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







Copyrights 2005-15 www.BigResource.com, All rights reserved