ActionScript 1/2 :: Loading A .swf But Doesn't Keep Size Of Original .swf?

Sep 16, 2009

I'm attemping to load a swf into my movie.  I have this code:
 
but.onPress = function() { _root.floors.createEmptyMovieClip("container",2); loadMovie("zoom.swf", "container");container._x = -460; container._y = -200;};
stop();

It loads in fine, but it is not staying the size of the stage of the .swf it was in before.
 
I tried setting the width and height of the container clip by:
 
container._width = 500; container._height = 100;
 
but once i added that it didn't load in?

View 17 Replies


Similar Posts:


ActionScript 3.0 :: Component - Scroll Panel Get Stuck While Loading And Doesn't Display The Full Size Image

Sep 10, 2008

I made a flash website with photo galleries using a component that I bought online. The component is loading the image in a thumbnail scroll bar via a XML file and the full size image display in a UILoader. So far nothing special. But when I reach a certain amount of pictures in the gallery, the scroll panel get stuck while loading and doesn't display the full size image. Then the thumbnails don't react at all.

[Code]...

View 4 Replies

Save Image With Its Original Size?

May 7, 2011

In my Flex application I load an image into the Image control. After loading the image I can apply filters like color transform or grayscale etc and then I want to save the image with the filter applied. I am having trouble saving the image with the filters applied. With the following code the Image gets saved without the filters.However, if I use [code]...

View 1 Replies

ActionScript 3.0 :: Importing Pictures With Original Size

Nov 30, 2008

I have been making animations (frame by frame) that I put into live action films of myself. I use flash so that I don't get any lag from the pictures not being close enough together. Trouble is...whenever I import pictures into flash, it lowers their size so it fits in the middle. How you can import the pictures with their original size intact.

View 1 Replies

ActionScript 1/2 :: Scaling SWF To Less Than Or Equal To Original Size

Apr 1, 2010

how to scale a SWF in the browser window, but not larger than the original stage size in the FLA file?  For instance, I've designed a course in Flash with stage size of 1024x768 in Flash.  In the published HTML document, I change the following values:
 
'width', '1024' changed to 'width', '100%'
'height', '768' changed to 'height', '100%'
'scale', 'noscale' changed to 'scale', '100%'
 
These changes in the HTML source code allow the SWF to size with the browser, but I don't want the SWF to grow larger than 1024x768 if the browser window is greater than these dimensions.  I want the max size of the SWF to be 1024x768 regardless of the browser window.
 
how to achieve this in the HTML source code and/or AS2?

View 3 Replies

Flash :: Return Movieclip To Original Size?

May 6, 2010

I made a gallery in flash. I have external images load in a fixed display area -- I call it 'imageStage'. When the image is loaded, I resize the movieclip at the _x and _y to make the image fit the stage.

But what happens -- when I flip prev/next through a couple images, they keep shrinking and shrinking. Images that are smaller than the fixed area are being shrunk even further.

I'm thinking maybe if I clear the existing image from the MovieClip, it will reset itself back to regular size and proportions. But I don't know how to go about it.

View 1 Replies

ActionScript 3.0 :: Drawing Image In Its Original Size?

Sep 24, 2010

I started with a simple code to draw image. But i didn't get the expected results. What i got is:1) Image gets rendered but it gets scaled to high resolution and images gets distorted.So i wanted to draw image in its original size. If image size is 300*400 then i want to get it drawn in its original size.I google searched and try to find on how to achieve it. But no success.i want to know how to achieve this two things:1) drawing image in its original size, i don't want it to get scaled .2) how to set the size of display screen ? when i ran the code, the display screen(flash) cover whole browser page area ? I want to set the screen size to 450*300I am using Flash Builder 4 for making actionscript project. Here is the code :

Code:
package
{

[code].....

View 1 Replies

ActionScript 3.0 :: Flashpaper Size Does Not Match The Original File

Apr 30, 2010

I have some pdf documents that have been converted to flashpaper, I'm using a little AS3 code to include in flash, however the size does not match the original file; i try load the swf (flashpaper file) into 800x600 movie, but not works, btw there is the code and screenshot

[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

Javascript :: Show Flash Using Original Canvas Size Dimensions?

Sep 2, 2010

I have a generalized media player web app that I wish to be able to use flash in. The client uploads the flash to a particular directory, and a webpage is produced automatically that houses that flash file. The output of this process currently looks something like this:

<OBJECT id="flashContent" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<PARAM value="always" name="allowScriptAccess" />
<PARAM value="#FFFFFF" name="bgcolor" />

[Code]......

I am trying to get the flash to display using the original canvas size (540 x 400 by default) but every time I load this in chrome I get 300 x 150 and in IE the box is square.

how to get it to render using the flash canvas size?

View 2 Replies

ActionScript 2.0 :: Changing Original External Swf Size In The Main Movie?

Sep 21, 2006

I have an external swf that loads into my main movie using loadMovie. The original .swf that is being loaded is larger than what I'd like to appear in the main movie. Is it possible to tell the movie clip that the external is being loaded into, to reduce the size of the loaded .swf?

note:
I tried a
scaleContent = true;

View 2 Replies

ActionScript 2.0 :: Scale And Zoom - Back To Its Original Size And Position?

Apr 19, 2004

how i could create a function to do the following. I have a mc and when you click on it i want it to scale too say 150% and move to a different x y position, then when you click on it again i want it to go back to its original size and position.

View 3 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 :: Make Swf File Lager Than Its Original Size / When Mouse Is Rolled Over

Nov 2, 2009

can any one tell me that how to make an swf file lager than its original size when mouse is rolled over to it .eg)like yahoo.com they have flash banners when the mouse is rolled over to it the flash banner enlarges than tis original size.

View 0 Replies

ActionScript 2.0 :: Flash8 - External Swf To Retain Its Size In The Center Of The 800x600 Original Movie

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

ActionScript 1/2 :: Sliding Photo Gallery - Graphic Symbol A Different Size From The Original Template

Mar 16, 2009

I just pulled together a picture gallery, where the pictures simply scroll across the screen using arrows. I used the template from [URL] The problem is that when I added my own pictures, the graphic symbol was obviously a different size from the original template. So when the images scroll they should stop at a certain point as to not show any empty space. I changed the values that i guessed were the ones setting up where the graphic has to stop at, but it doesnt seem to be doing anything. The code below is the only script of any importance, at least that I know of. The other stuff just points to targets and gotoandplay stuff.

View 3 Replies

ActionScript 3.0 :: Flash Senocular's TransformTool - MovieClip Is Relocated Much Smaller Than Its Original Size ?

Jul 5, 2010

I see a number of cool sites and examples using Senocular's TransformTool. Most of them look and function really well. I've downloaded and reviewed the code for a number of different examples.I can see how everyone else's works.I'm having difficulty with 2 points:

1. When I select a movieClip, the TransformTool appears in the correct spot and in the correct dimensions. But the movieClip itself is relocated much above the TransformTool and is MUCH smaller than its original size and the current (and correct) dimensions of the TransformTool. Selecting one of the handles and dragging stretches the movieClip but does not make it the same dimensions as the TransformTool

2. Releasing one of the handles seems to cause the handle to behave in the same way the movieClip did -- you can resize and move the handle.

View 4 Replies

ActionScript 3.0 :: SWF Sound And Make The Flash Stage The Size Of The Original Screen Capture Video Of 1024 X 768

May 24, 2010

Made a swf [URL] some viewers see and hear fine but others are having sound and size issues and I need some practical answers. SIZE: I make the Flash stage the size of the original screen capture video of 1024 x 768 and right now it is set to

[Code]...

View 2 Replies

ActionScript 2.0 :: Keep Text In Text Field With Original Size?

Apr 19, 2007

how do i keep text in a text field from being stretched? when i say text i also mean pics cuz i loaded from a html file.the thing is, i have a container thatresizes to display different content and the text field is in it.. i dont want to alter it

View 3 Replies

Flash :: Get The Maximum Width & Height Size Image When Loading Several Images Before Loading Them Completely?

Mar 23, 2011

I am loading images of different size and then images are scaled and border is drawn for each image as shown in below link,[URL]... I want that border of images to be of the same width and height and for that I need to find out the max width and height size image before loading all the images. Is there any way that I can know the width and height of an image before loading it completely?

View 1 Replies

Flash - Why Doesn't AIR Start Full Size?

Feb 24, 2010

I have an AIR application set to 800px wide and 600px high. When I launch it, the window starts too small with horizontal and vertical scrollbars?

Test.mxml:

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="800" height="600">
</mx:WindowedApplication>

View 1 Replies

ActionScript 2.0 :: Create A Mass Of Images Which Doesn't Have The Same Size/ratio?

Apr 15, 2008

I would like to create a mass of images which doesn't have the same size/ratio. The images cannot overlap, but they should be placed as close to each other as possible, so you get a big picture created by a lot of small ones.

View 1 Replies

ActionScript 3.0 :: Loading Swf In Swf With Defined Size?

Feb 23, 2011

I need to load some fixed size swf(800*600) in main swf file which displayed 100% in page, i just need to not "resize" secondary swf. Can anyone show me the AS with size definition functions loading other swf.

View 3 Replies

CS3 : Sizing A Preloader To The Size Of The Movie Loading?

May 29, 2009

I have a preloader(as3) that is working great, I use FlashVars to pass it what movie it is loading, then it loads that movie, and shows it on the stage after loaded. I would like to make this a bit more dynamic. Right now I can use the same preloader for any movie so long as the movie and the preloader is the same size. I would like to pass the size of the movie im loading to the preloader with flashvars just like im passing it the file path for the movie itself. Here is how im passing the movie:

var swfLocation = this.loaderInfo.parameters.flashPath;
var myRequest:URLRequest = new URLRequest(swfLocation);

now i just access the variable wherever i want to say load the movie

I tried:

var swfHeight = this.loaderInfo.parameters.flashHeight;
var swfWidth = this.loaderInfo.parameters.flashWidth;
stage.stageHeight = swfHeight;
stage.stageWidth = swfWidth;

then in my flashvars i have a value of flashPath=<?=path?>&flashHeight=<?=height?>&flashW idth=<?=width?> (passing these to the embed and object using php btw)

View 2 Replies

ActionScript 2.0 :: FMX - Loading An Image To Fit A Specific Size Using XML

Sep 29, 2004

Ive been searching high and low to find out how i can dynamically load an image into a container [i.e. im using the xml_photogallery tut. template] and setting it so that it scales to fit specific dimensions. At the moment Im having to resize images in photoshop so that it fits with in the container/webcontents dimensions. Otherwise different images with different sizes will bleed on main body of the site.

View 4 Replies

ActionScript 2.0 :: Loading In An External SWF At A Pre-determined Size?

Jan 10, 2007

Ok so basicaly what I want to do is load in an external swf onto the stage which is 1024x768, above all existing items (so preferably into an existing container mc) but set the loaded swf's width/height so that it fits into a pre-determined space of 700x400, even though the loaded SWF is larger.

The stage of the SWF being loaded in is 700x400, which as stated above is the desired size, but objects within it are larger than it's stage for purposes of the animation. This means that when you load the SWF onto your current stage with the normal loadMovie("xxx.swf","container") you wind up seing parts of the object that would normaly be outside the 700x400 stage if you were to view the SWF on it's own, obviously resulting in an ugly movie clip.

I could cover up those parts with extra layers, but the majority of the primary stage is transparent so this isn't really an option. So, is there a way to load an external SWF but only display the actual stage of that SWF, or set the width/height to mimmick the same sort of thing?

View 6 Replies

ActionScript 3.0 :: Loading Image To An Exact Size?

Jun 25, 2009

how can i load an image to an exact size in the movie clip ?

lets say i have an img which is 1000X1000 and i want to leave it at the same proportion but display it at 800X800

View 2 Replies

ActionScript 3.0 :: File Size And Loading Classes?

Feb 6, 2010

i have several custom classes which all contain Sprites.does the fact that each as file imports flash.display.Sprite increase file size?i would assume when compiling that flash is smart enough to just import each package once but i just want to make sure.an over simplified example (obviously in this example the over all effect is 0 but i am starting to have more and more custom classes so i want to know)say i have a simple class that extends sprite to include an index property.

public class NewSprite extends Sprite {
public var index:int
}

now if in my code i would like to have "Sprite"s and "NewSprite"s for my own benefit of keeping track of what needs an index but does it add to file size to import flash.graphics.Sprite twice or would i be better off just importing NewSprite.also if i add variables to a custom class but dont give them a value does it take up extra space - for instance if the above NewSprite had 99999 indices instead of 1 - i am assuming if each index has a value the NewSprite is much bigger, but if i leave each index null, does it still increase file size?

View 1 Replies

ActionScript 3.0 :: Swf Loading Into Movieclip Is Wrong Size

Jan 28, 2011

I am trying to load a swf into a movieclip of the same size but the swf seems to be resized somehow.The Movieclip and the swf are both 300 x 300 pixels. Yet the swf loads in scaled down and is only taking up part of the movieclip.I have the following code on the 1st frame of the timeline of the container movie:[code]

View 1 Replies

ActionScript 2.0 :: Loading SWF Into Project - Appears At Different Size

Mar 27, 2011

i'm creating a button to load my 360 panorama swf onto my stage, it works but it appear at different size and it appear on my button, i decide to solve it by using an empty movie clip called "container" This is my code:

[Code]...

View 1 Replies







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