ActionScript 2.0 :: Flash Root Movie Resize?

Dec 18, 2006

My problem is this - I have a parent flash movie of size 900x800. I have a button inside this parent that then loads an external swf (size 300x200) into an empty mc in the parent.My problem is that when the external swf loads, it resizes the parent movie (or repositions it depending on whether I am using IE or Firefox).I can't seem to work out why or how it's happening, and it happens whether I use the standard Flash embedding or the swfobject method for my HTML page that the movie is embedded in.The actionscript code in the parent is very basic:

Code:
but1.onRelease = function() {
_root.createEmptyMovieClip("mp3_player", getNextHighestDepth());

[code]......

View 1 Replies


Similar Posts:


Data Integration :: Resize - Flash Movie In Vertical?

Aug 28, 2010

I have more reach application, in simplify my problem looks so: How do it? With JavaScript? or exists decision in ActionScript 3?

View 1 Replies

ActionScript 2.0 :: Resize The Window In A Flash Movie At Different Intervals?

Sep 12, 2005

how would i resize the window in a flash movie at different intervals? example here:[URL] in that movie, the window box resizes at different set intervals.

View 4 Replies

ActionScript 2.0 :: Resize Flash Movie To Different Size Broswers?

Mar 14, 2009

I'm using Flash CS4 and dreamweaver CS4 and AS2.

Because i design on a new mac book pro, my resolutions is very high and the flash movie fits perfect in my screen, just the way i want it to sit in every computer.

But on a computer with a lower resolution, i now that that my web site would be much larger and not fit right.

So how can i make it so the movie adjusts to different resolutions and sits just perfect?

View 5 Replies

Flash - Tell The Root Timeline To Root.gotoAndStop(2); From The Timeline Of A MovieClip Added Using AddChild?

Nov 7, 2011

How do you tell the root timeline to root.gotoAndStop(2); from the timeline of a movieClip added using addChild?In the maintime line I have

addChild(fade_eng);

and in fade_eng I have the following on frame 20

root.gotoAndStop(2);
this.gotoAndStop(1);

But I am getting 1061: Call to a possibly undefined method gotoAndStop through a reference with static type flash.display:Stage.

View 1 Replies

ActionScript 3.0 :: Enable User To Resize An Object In Flash Movie?

Aug 18, 2010

Is it possible to enable the user to resize an object in the flash movie?

What I want is a box for example, that can be dragged and dropped but also resized both vertically and horizontally. For example the user is able to drag the bounds of the box in a direction thereby making the box bigger or smaller. The mouse should also change to tell the user that he/she is enabled to do so.

View 1 Replies

ActionScript 3.0 :: Flash Movie Match Browser Size On Resize

May 6, 2009

is there anyway to have a published flash swf fill 100% of the browser? especially when the broswer resizes, so does the movie to match the browser size?

View 2 Replies

Professional :: Browser Resize Of Flash Movie Mis-positions Objects?

Feb 16, 2011

IE 8 Flash CS4 v10 Windows XP Home SP3 (NOTE: The word "Resize" refers to an HTML change of the movie size;  it does not refer to a Window resize)
  
Objective: Display a transparent 800x600 flash movie in IE, stretching movie to 100% width and height of webpage but keeping the objects within the movie from getting re-scaled.  Objects are re-positioned at runtime via ActionScript with values meant to be relative to stage dimensions.
 
Problem: The movie resize is messing up the object re-positioning.  The movie is indeed stretching to 100% of the width & height of the browser window's client area, but the objects are repositioned relative to something else (perhaps screen dimensions, but not sure). Result: Objects which were programatically positioned relative to original stage size are spaced way too far apart in IE, in some cases off the screen entirely, though they were not like this in the Flash editor.Question(s): Why are objects which were positioned within the original stage dimensions being kicked off the browser screen while the movie itself remains entirely on-screen even after resize?  What dimensions/values are guiding the automatic post-resize repositioning of the objects? (These proportions appear to be different from the change in proportions of the movie itself.)

View 1 Replies

ActionScript 2.0 :: Make The Flash Movie Resize In The Browser Window?

Mar 12, 2005

I'm working on a school project. It contains a main section which has 7 buttons. Each of these buttons is a character which you can zoom in to, see who they are, click and see a small cinematic/animation and proceed to it's respective section. I have a couple of concerns.

1. What is the best way of loading my project? I've been thinking of using the loadMovie and have placeholders, each section with a progress bar. what should I load when?

2. how can I make the flash movie resize in the browser window using actionscript ? so that I have no problems with screen resolution sizes. I use 1280x1024, but I guess there are still people on 800x600(which is lame) Here is an example of the resizing I mean: [URL]

View 2 Replies

Flex :: Flash - Resize Children When Parent Is Resize?

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

ActionScript 3.0 :: Accessing MC In Root Of Movie?

Apr 16, 2009

here's my problem/code:
 
I have a mc in the main timeline named contactBox_mc, within this mc I have another mc named closeBtn_mc. I have added an EventListener to closeBtn_mc to set the visibility of contactBox_mc to false on MouseEvent.Click.. but no matter what method I try, I get the following error:
 
1180: Call to a possibly undefined method contactBox_mc.
 
This is the code I placed within closeBtn_mc to set the visibility of its parent movie to false:
 
closeBtn_mc.addEventListener(MouseEvent.CLICK, closeBox);
function closeBox(e:MouseEvent):void{
contactBox_mc(this.parent).visible = false;
}
 
I also tried: root.contactBox_mc.visible = false; and got the same error,

View 4 Replies

ActionScript 3.0 :: GotoAndPlay Movie In Root?

May 24, 2011

In the past I've used _root.smoke.gotoAndPlay(1);.I can't seem to target this "smoke" movie clip that is on the root with actionscript 3.

View 7 Replies

ActionScript 2.0 :: Resize External Loaded Movie To Main Movie

Jan 9, 2010

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;

Stage.scaleMode = "noScale";
Stage.align = "TL";

View 3 Replies

MX Making Root Movie Clip Invisible?

Apr 11, 2009

I have a button inside a movie clip that when pressed it launches another movie clip. That part works great. The problem I'm having now is either removing the original movie clip or at the very least making it invisible when the next movie launches. So far for my button script this is what I have:

onRollOver=function(){
this.gotoAndPlay("_over");
};
onRollOut=function(){

[code]...

View 3 Replies

ActionScript 1/2 :: Load Movie In Root And Go To Particular Frame?

Oct 10, 2009

I have main flash file called index.swf and in that I'm loading an external movie called help.swf using the below code: loadMovie("help.swf",1);

On help.swf I have a button which brings me back to the main file i.e. index.swf using the below code. _root.loadMovie("index.swf");

When index.swf is loaded I want it to go to a particular frame. I tried using levels but then my print function doesn't work properly.

View 1 Replies

ActionScript 3.0 :: Link In Root Movie Not Working?

May 15, 2011

I have a problem trying to get a button to go back to the start of the a main movie. I have added the button(see below) into the main movie which is only one frame and contains a quiz movie. I want the start button to be visible in the quiz movie (which happens ok) but want it to link back to the main movie when clicked. The link is not working and no errors are showing.

ActionScript Code:
import fl.controls.Button;
var startTextFormat:TextFormat = new TextFormat();
startTextFormat.bold = false;

[code]....

View 1 Replies

Movie Clips - Layers On Root Timeline?

Feb 28, 2010

I have only been using FLASH CS3 for a little under a month. I have messed about with it to create some basic stuff. However recently I started on a bit of a larger project. I 'm by no means an expert in FLASH CS3 or AS3.My problem -I created a .FLA file that has seven movie clips on the main timeline, each in its own layer. These are listed below in the order they appear within the main time line.

layer ------------ movie clip
ON -------------- on_mc
RIM ------------- rim_mc
NAV-------------- coverbase_mc
PLAYER---------- player_mc
MAIN------------- main_mc
NAMEBOX------- shellname_mc
BASE------------ Base_mc

The art work for these was all imported from adobe photoshop. They all only have one frame on the main timeline. Each movie clip though has its own internal time line and some have further nested movie clips within them.The issue occurs within the NAV layer/coverbase_mc. I placed a movie clip(to act as a button) within coverbase_mc. This movie clip is called navbut_mc.Now, I already have a couple of similar movie clips, that act as buttons, in on_mc and rim_mc these work as I intended them to. However navbut_mc does not work at all in its current position. I get no errors at all on testing the movie but the action that I want it to do does not work even buttonmode = true; will not work on it.

However, if I use the same movie clip in the rim.mc, but obviously give it a seperate instance name (start_mc), then it works as intended. I have looked at various diffrent things but have to admit i'm stummped. Its almost as if when its in coverbase_mc its being hidden by the clips above it, if thats possible.The reasons I need it to work in coverbase_mc are for a) the overall look of the project b)I have some other buttons in that location that need to work from there.

View 1 Replies

ActionScript 2.0 :: Go To The Next Frame Of Root From A Movie Clip?

Dec 6, 2005

I am trying to do up the framework for a flash project which has a transistion fadein and fadeout whenever it loads a new content but faces no result. How is this done? I have created fade in and fadeout as movieclips. Is there any script that I can use in my fadein movie clip that tell the root frame to jump to another frame?

View 3 Replies

ActionScript 2.0 :: Unload Movie On Root From Child?

Oct 5, 2011

I'm loading a movie in externally. The external movie has a button to unload itself from the main movie. It loads into _root.calContainer. The button is called xButton. This is the script that's not working:

_this.xButton.onRelease = function() {
_global.calContainer.unloadMovie;
}

I've also tried. _root.calContainer to no avail.

View 1 Replies

ActionScript 2.0 :: Controlling Movie Clip Speed From Root?

Mar 2, 2010

In my document I have my actionscript on Layer 1. In this I duplicate an enemy movie clip.The controls for moving the enemy are inside the enemy movie clip, so setting speed, where to start from etc.On the Layer 1, I also run a script which acts as a timer, and when it reaches set values (eg. 10 seconds) it "levels up" (basically just changes background colour). I wand this to increase the speed of the enemy movie clips so that they get faster. I have this code:

Actionscript Code:
for(i=1;i<=enemies;i++){  _root["enemyRight"].duplicateMovieClip("enemyRight"+i,i+1000,enemyRight); 

[code].....

View 2 Replies

ActionScript 2.0 :: Load Movie And Goto Frame In Root?

Feb 2, 2011

I have an swf with a menu button that loads an external swf on(release) {loadMovie("Unit-Type.swf",_root.MC_UnitTypes);}When that menu movie is loaded I want to be able to click a button and have it go to a certain frame in the root movie and close itself. I have this code but it's not workingon(release){_root.gotoAndPlay(25);}

View 1 Replies

ActionScript 3.0 :: Controlling Root Timeline From Movie Clip?

Nov 18, 2008

I'm trying to control the root timeline from a movie clip. On the last frame of the movie clip, I have:

MovieClip(root).gotoAndPlay (10);

which successfully brings me back to frame 10 on the main timeline. However, from here, none of the ActionScript that is on Frame 1 seems to work... the rollovers aren't working, except on those embedded in a separate movie clip.

View 2 Replies

ActionScript 1/2 :: Load Movie And Goto Frame In Root

Feb 2, 2011

I have an swf with a menu button that loads an external swf: on(release) {loadMovie("Unit-Type.swf",_root.MC_UnitTypes);} When that menu movie is loaded I want to be able to click a button and have it go to a certain frame in the root movie and close itself. I have this code but it's not working: on(release){_root.gotoAndPlay(25);}

View 5 Replies

ActionScript 3.0 :: Control Root Timeline From A Movie Clip

Oct 1, 2007

In Flash CS3 using Action Script 3, how can I tell the main timeline to gotoAndStop(); a certain frame from within a movie clip.

I have a menu (which is a movie clip) with various buttons. Each button corresponds to a certain frame in the main movie. So if a user click on Button1, it should gotoAndStop(1); and Button2 should gotoAndStop(2); and so on.

In Action Script 2, I could use _root.gotoAndPlay(2); from what I understand, but that does not work in Action Script 3.

View 9 Replies

ActionScript 3.0 :: Controlling Loader On 'root' From Movie Clip

Nov 4, 2009

I have on my main timeline a movie clip (emptyMC) that I am loading my external SWFs into and I need to be able to access this loader movie clip from my menu, which is it's own movie clip. As it stands, when I have my buttons on the main timeline I have no issue. But once I put these same buttons into the menu MC I am lost as to how to "get back" to the loader on the main timeline to load and unload the external SWFs.Here is my current code that allows for me to load and unload with buttons on the main timeline. Is there away to modify this same code for my purposes?[code]

View 0 Replies

ActionScript 3.0 :: Attach A Movie Clip To The Stage Or Root?

Nov 12, 2009

how to attach a movie clip to the stage or root. I have created a movie clip called movClip and have checked export for actionscript and have chosen "movClip" as its class.I have used this script:

ActionScript Code:
function button1(evt:MouseEvent):void {
var mc1:movClip=new movClip();
mc1.x=0;

[code]....

This attaches the movie clip. Great! Problem is it doesn't attach the movie to the root or stage, but rather as a child of this function?? weird! so when I want to use removeChild(mc1) from a different function from a different button or even from an action set on a different timeline it can't target mc1?So how do I make this work. Basically I want one function from button 1 to attach the movie clip and I want a second function from a second button to remove the movie clip.

View 4 Replies

Actionscript 3.0 :: Access The Root Timeline From A Movie Clip?

Jun 9, 2009

What the best way to access the root timeline from in a movie clip?

View 3 Replies

ActionScript 2.0 :: Unloading Movie Clip From Root Container?

Aug 5, 2008

I've created a main page with my main links on top, and a container as my body.I load my pages with this action to the container.

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "production";
container.loadMovie("production.swf");

[code]....

Inside the production.swf files I've created a gallery with a MovieClip that loads from my library to a container1 inside the production.swf. In the galleryMC(from library), Ive created a close button to unload it from the container1. It works fine from my production.swf file, but when it loads to the main page it doesn't unload. This is the ActionScript that I have to unload the Movie Clip.

on (release) {
this._root.container1.unloadMovie();
}

View 2 Replies

ActionScript 2.0 :: Properties Of The Main Movie Root Timeline?

Jul 2, 2004

I'm re-writing a movie so that elements of it are modular movieclips, so that should I wish to re-use them, I can simply copy onto the root time-line. What should I watch out for regarding my paths in the modular clips? should I always ensure they are relative or absolute? How example should I reference mouse properties (e.g. _root._xmouse) which which will always be properties of the main movie root timeline?

View 1 Replies

ActionScript 2.0 :: CS3 : Access A Function From The Root That Is Inside Another Movie Clip?

Oct 21, 2009

How can i access a function, from the root, that is inside another movie clip?

_root.mc_1.mc_1_1.mc_1_1_1

Inside of the mc_1_1_1 is a function called test_me.How can i call that same function from the root?

View 1 Replies







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