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


Similar Posts:


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

Keep Center Of The Movie In The Center Of The Scree Regardless Of Browser Size?

Mar 23, 2009

My flash movie is 1440x900 but the area where all the important stuff happens in within 1024x768, i am trying to keep the middle in the center regardless of browers size or aspect ratio.

I can center the page but it doesn't work as i need it to. If the browers is small (1024x768) the swf is justified against the left edge, but not keeping the middle in the middle of the brower.

[URL] is an example of exactly what i am trying to achieve.

View 13 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 :: 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 :: Flash8 - LoadMovie - Set Size Of The Movie

May 7, 2008

We have used loadMovie to load some small SWF files on a home page we have made. The swf files are in different sizes and we need to be able to set the size. How do we do this? We hoped the problem was solved with the following code, but this code only sets the size of the variable "minRamme", the contents are still to big, resulting in only a part of the swf file being visible. Anyway the following code ignored the onRelease command, so the swf file started playing at once. How come?

knapp.onRelease = Function(); {
minRamme = this.createEmptyMovieClip("clip",0);
minRamme.loadMovie("ann kristin.swf");

[Code]....

View 8 Replies

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

ActionScript 3.0 :: Play External Preloader Before It's Load Original Movie Index.swf?

Sep 21, 2010

I like to play external preloader before it's load original movie index.swf.But I have a problem on resizing index movie.

Here is preload AS3 code:

package
{
import flash.display.*
import flash.display.MovieClip;

[code]....

View 1 Replies

ActionScript 3.0 :: Detect When Resolution Is Below 800x600 And Goto Frame/movie?

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

ActionScript 2.0 :: Retain External XML File In Swf?

Jan 20, 2010

I am working on a project with several collaborators who edit the project through XML files that are read into the flash file. The final swf file will be distributed across thousands of websites, and we are not allowed to include any other files with the swf. Is there any way to read in the XML, compile the swf with all of that information intact and then not have to have those XML files with the swf to run it?

View 2 Replies

ActionScript 2.0 :: Flash8 Resetting MC's To Original Place?

May 16, 2009

Right now I am in the beginning stages and I have it set up so you can drag different sounds to the timeline (in the game, not in flash) and it'll snap in place which works perfectly.

But here's my problem: When I try to click the reset button the sounds snap to their original places (which sounds good right?) but then they tween back to where you dragged them on the in-game timeline.

I have put in various codes and no matter what I try, when I click the reset button, they always go back to where you dragged them to the timeline, making the reset button pointless.

Here's my code on the Flash timeline:

Code:
function dragSetup(clip, targArray) {
clip.onPress = function() {
startDrag(this);

[Code].....

I know, I know, that whole s(N) thing is very beginner but I didn't know what else to use, and it worked fine.

View 1 Replies

Exported Swf Doesn't Retain Movie Controls?

Jan 16, 2012

In any case I had a question about exporting. You see I imported a flv file (which was converted from a wmv) into Flash Prof CS5, when I did this I got a nice interface to choose a player control skin for the movie. However when I export the movie the player controls are no longer present.I'm doing this simply so I can embed the swf on a website and wish the user to have some control over it.

View 1 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 :: 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

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 2.0 :: [Flash8] - Resizing - Movieclip Resize On Center, But I Want Is On Left?

Apr 26, 2007

resizing movieclip using action script. I doing a resize on the width of the moviclip. What i got is the movieclip resize on center, but i want is on left. the code i use as below:

MovieClip.prototype.resizeMe = function(w) {
var speed = 3;
this.onEnterFrame = function() {[code]......

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

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

Flash8 :: Cannot Edit Text Box Size

Sep 7, 2009

I am editing a website but flash wont allow me to edit the text-box size, I can only make it wider, not taller. Does anyone know how I can fix this?

View 3 Replies

Flash8 : Reduce The File Size?

Nov 6, 2009

I am designing a website. My flash file comes up to a size of 1.5 mb. It takes around 1 minute to load.reduce the file size.

View 1 Replies

Flash8 :: Link To A Certain Size Html Page

Jul 9, 2010

for flash 8 I have created a nice flash site to show some portfolio work. I have all the thumbnails in place but I wanted them to open a new HTML window in the size of the portfolio piece. How is this done and will it be blocked by popup blockers. edit: the html page i want to link to is in the same folder as the flash site.

View 1 Replies







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