Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Tween From Stage Right.



Hello all...I HAVE EDITED THIS POST NOW....OLD...I'm trying to create a motion tween from stage right of my movie onto the stage. I'm using full browser flash so I'm trying to create the tween effectively from Stage.width /-1; to Stage.width / 1 so the MC continues to hug the right side of the stage when the browswer is resized. I have been using the fuse kit - but just can't get the MC to slide in. Here is the stripped down code - in this example the MC just appears. I have managed to get it to appear the slide off stage right - but that's all! Really I'm on here to ask if it is possible to create a tween between these two properties Stage.width /-1; to Stage.width / 1 or I should look elsewhere?NEW....I can manage to get the MC to slide in but I can't get it too slide in from off the stage - it always appears on the stage in my browser - the problem here is obviously that I'm trying to get it too appear from stage right at keep it at the edge of the browser - it would be easier on the opposite side!THE CODE:Attach CodeStage.scaleMode = "noScale";Stage.align = "TL";var stageListener: Object = new Object();stageListener.onResize = stagePos;Stage.addListener(stageListener);function stagePos():Void { stage_mc._x = Stage.width /1;}import com.mosesSupposes.fuse.*;ZigoEngine.simpleSetup( Shortcuts, PennerEasing );var f:Fuse = Fuse.open();f.label = "stage";f.autoClear = true; // self-delete when done.Fuse.openGroup(); stage_mc.tween("_x", "-160", 2, "easeOutBounce"); Fuse.closeGroup();bgHolder_mc.onPress = function () {var f:Fuse = Fuse.getInstance("stage");if (f != null) {trace("Starting:");f.traceItems();f.start();}else {trace("Sorry, this Fuse has been deleted!");}}Edited: 04/05/2008 at 01:43:02 PM by phonemymum



Adobe > ActionScript 1 and 2
Posted on: 04/05/2008 09:18:38 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Stage Onresize Tween
attempting to reposition contents of swf on resize of browser window with tween class

Stage.align = "TL";
Stage.scaleMode = "noScale";
stageListener = new Object();
stageListener.onResize = function() {
moveIt();
};
Stage.addListener(stageListener);
moveIt = function () {
dash.onEnterFrame = function() {
this._x += ((Stage.width/2)-this._x)/5;
this._y += ((Stage.height/2)-this._y)/5;
};
};

Tween To Content Outside Of Stage
This is more a theoretical question about I project I want to do than a technical question.

Inspiration/similar effect: http://www.jonathanyuen.com/main.html


What I have:
1. A very large image that is deliberately going off the stage (width: 2000px~, height 1000)
2. Empty movieclip outside of the stage that content will be loaded into

What I want to do:
1. When a button is clicked on the main stage, it will fire a tween that will move the
scope of the stage over the image and to the empty movieclip.
2. Effect: it will (hopefully) be like the stage is gliding over the large image until it stops at the empty movieclip's coordinates.

What I've already done:
1. I've downloaded Tweenlite after researching what I want to do
2. I've looked at this example code: Tweenlite.to(mc, 1, {x:1500, y: 1000});

I'm wondering if I'm on the right track and if the effect I want will be produced using
Tweenlite.

Any ideas and/or suggestions would be greatly appreciated.

Color Tween On A Button Stage
do i have to convert the object on each stage of the button to a graphic or button?


how do i have one stage have a color tween?

Tween Stage.onResize Objects
I understand how to change a movieclip's coordinates based on the Stage size via stage.onResize, but I've noticed a few sites out there that tween a movieclip after the user releases the corner of the browser:

http://www.gskinner.com/

anyone know how he added that nice little touch?

standard stage.onResize functionality acts more like this:

http://www.tutorio.com/media/flash/liquid-demo.html

2nd Post...tween To Center Stage
I tried posting this a few days ago and didnt get a solution Im hoping someone can be of assistance.

I am trying to Have a movie clip tween to center when the browser window is resized ...originally I was using the mx transition class but under advisement I am now tring to do it using MC Tween:

#include "mc_tween2.as"

// Create a function for the event you want to listen for
stageListener = new Object();
stageListener.onResize = function ()
{
// Get the width and height of the stage
// & multiply by half
var stageXCenter = Stage.width * .5;
var stageYCenter = Stage.height * .5;

// Offset the center point with half of
// the clip width and height
// (you can also use the -= operator and simply this)
stageXCenter = stageXCenter - (content_mc._width * .5);
stageYCenter = stageYCenter - (content_mc._height * .5);

// place the clip with the offset
content_mc.slideTo(stageXCenter, stageYCenter, 1, "easeOutExpo");
}

Stage.addListener(stageListener);


it doesn't work...any ideas?

Any help would be appreciated!
Thanks

Tween Offscreen With Resizable Stage
I'm building a fullscreen flash website. I have objects moving from offscreen to the center of the stage and from the center to offscreen. I use a simple onResize listener to keep everything centered when the user resizes the stage. I'm using the MC Tween engine for all my tweens and they are all coded relative to the size of the stage.

E.g. aMovieClip.tween( "_y", Stage.height / 2, ... );

Everything works great EXCEPT if the user resizes the stage while a tween is in motion. How do I update the tweens end value to the appropriate location?

Tween An MC From The Bottom To Stage.height.
Hi people,

So, what am i trying to do here. I'm trying to position an MC to the bottom ( that's the simple part ) of the stage that has an initial height and width of let us say 10px height and 30px width. Ok, and now i want to scale ( stretch ) and tween the MC at the same time until it gets to Stage.height. I'm not really sure about how to do this one, i tried using some conditions, some whiles but it seems that flash kinda crashes so that's not cool.

Ahh, and well, i want the whole MC to keep on resizing ( stretching and tweening again ) on stage resize... I guess i can manage with that one, the only thing i need some help with is the tween and scale. I have no idea how to tween and scale the MC at the same time ( by tweening i mean just like like a motion tween but the only problem here is that the height would be dynamic ).

Any suggestions or whatever are appreciated.

Kind regards,
Biro Barna

Movie Clip Tween Invisible On Stage...
I have 6 similar movie clips on stage with an action to play them on press. The Movie Clips contain a Symbol with a motion tween over a path, and a mask motion tween. When the Movie Clip is clicked it starts to play but the symbol tweening does not show up, while the mask tween works fine. Every symbol is in its own layer and the tweening seems fine in the .fla preview. I'm attaching the file, the smallest of the symbols on the stage is the one scripted. Thanks in advance for any help.

<mgl>

Movie Clip Tween Invisible On Stage...
I have 6 similar movie clips on stage with an action to play them on press. The Movie Clips contain a Symbol with a motion tween over a path, and a mask motion tween. When the Movie Clip is clicked it starts to play but the symbol tweening does not show up, while the mask tween works fine. Every symbol is in its own layer and the tweening seems fine in the .fla preview. I'm attaching the file, the smallest of the symbols on the stage is the one scripted. Thanks in advance for any help.

<mgl>

[F8] Resize Shape Tween According To Stage Size?
Hi

I was wondering if there is a way to resize a simple shape tween according to the stage size. for example is it possible to resize a rectangle ( which grows to a biger rectangle using shape tween) to match stage width and height minus 100 (this should occur after shape tween is finished and when stage resizes). I don't know if this makes any sense but let me know anyway.

Thanks

[MX] Video Clips Not Playing On Stage With Tween
Hi there

I used to be quite good with flash, but it's been a while since I used it and now I feel like a total newbie again. I'm trying to put a movie clip with fish swimming (I've animated their fins/bubbles etc) onto the stage and I've tried having a motion tween with the clip moving from the bottom left to the top right of the stage so it looks like their swimming across the scene, but the clip refuses to play when I test it. All I see is a still image of the fish moving across the stage... I know this is probably really simple and all, but I would really appreciate some help.

Thanks
Liz

Tween In Movie Clip Invisible On Stage... (now With Attachment)
I have 6 similar movie clips on stage with an action to play them on press. The Movie Clips contain a Symbol with a motion tween over a path, and a mask motion tween. When the Movie Clip is clicked it starts to play but the symbol tweening does not show up, while the mask tween works fine. Every symbol is in its own layer and the tweening seems fine in the .fla preview. I'm attaching the file, the smallest of the symbols on the stage is the one scripted. Thanks in advance for any help.

<mgl>

Tween Problem With Movie Clip On The Root Stage
The basic gist: I have an swf loaded into a movieclip on the stage. It plays fine, I can reference it without any problems. When I motion tween the holder clip on the root stage, however, it seems to unload the loaded movie... I checked it with a variable that I loaded within the loaded movie; as soon as the thing is tweened, that variable goes null. Don't want .swf to disappear.

I can’t find any untoward place with an unloadMovie() action, there’s nothing obvious that would be unloading the movie... Am I doing something stupid? Do I not know something I should? I’m authoring in Flash 8, exporting as Flash 6, for the record.

Thanks for any help.

Tween Class: Can One Tween More Than One Property Using The Same Tween
I want to scale both the _xscale and the _yscale properties of a clip, using a single execution of the Tween Class. See example below:


Code:
import mx.transitions.Tween;
var myTween:Tween = new Tween(myMovieClip_mc, "_xscale", Strong.easeOut, myMovieClip_mc._xscale, 300, 5, false);

Since one property at a time must be passed as a string to the constructor, I tried the following code, but it does not work quite as flawless as I expected:


Code:
myTween.onMotionChanged = function() {
//trace( this.position );
myMovieClip_mc._yscale += (300 - myMovieClip_mc._yscale)/12;
};
Any suggestions?

Using Stop(); On A Shape Tween Of A Swapped Movie Clip Symbol Within A Motion Tween
Thanks a lot for your time. I'm new to actionscript, and language syntax and I never really got along to begin with so I appreciate any help in the matter.

Basically the title says it all - I made a motion tween in the main scene, made a movie clip symbol (to shape tween a gradient) and added a stop(); inside the gradient-tweened-symbol. I then swapped the movie clip symbol with the motion tween in the main scene, and got exactly the effect I wanted (the item moved, then tweened itself) but the stop(); seems to have no effect.

I know this looks like one of those "that idiot didn't google before posting" questions, but I've been looking for about a half hour with different permutations of stop, doesn't work, actionscript, and flash, and I haven't found anything that seems to target this problem specifically.

If you've got any idea what's going wrong, please feel free to respond or show me how to better seek help on my own. Thanks again.

Tween Class If Moved Mc Passed Point Start Another Tween
Hey Actionscript Gurus

Now I am using the Tween Class to move some boxes in my movie, now I can move the first mc and then another mc after the first tween has finished with onMotionFinished but I was hoping someone could help with how do I start the second tween when the first mc has passed a certain _x coordinate.

ie starting the second mc moving while the first tween is still moving.

I am trying to do a intro loader for my front page controlling around 7 boxes. So I need to repeat this a few times.

Regs,
Jacko

Tween Class If Moved Mc Passed Point Start Another Tween
Hey Kirupa Flash Gurus

Now I am using the Tween Class to move some boxes in my movie, now I can move the first mc and then another mc after the first tween has finished with onMotionFinished but I was hoping someone could help with how do I start the second tween when the first mc has passed a certain _x coordinate.

ie starting the second mc moving while the first tween is still moving.

Regs,
Jacko

Laco Tween Engine Versus Flash Native Tween
i am wondering if there is a way to put a delay (seconds) on the flashs' native tween class like you can on the laco tween engine... such as

Code:
#include "lmc_tween.as"
my_mc.tween("_x",100,1,"easeOutStrong",1.5,callbackFunction)
where "1.5" is would be the one and a half second delay before the tween starts. this is very useful to me because i dont have to use a callback function or an onMotionFinished function to start a new tween.

thanks in advance to anyone who can teach me

-frankf

Tween Class Scaling Breaks Motion Tween?
I have a movie clip which uses a motion guide to animate the entry (and eventually the exit) of a bunch of other movie clips. These smaller clips contain buttons, and animate on rollOver and rollOut using the following code:


Code:
on(rollOver) {
this.swapDepths(2);
ParentxScale = new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Back.easeOut, this._xscale, 100/.6, .5, true);
ParentyScale = new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Back.easeOut, this._yscale, 100/.6, .5, true);
play();
}
on(rollOut) {
ParentxScale = new mx.transitions.Tween(this, "_xscale", mx.transitions.easing.Bounce.easeOut, this._xscale, 100, .5, true);
ParentyScale = new mx.transitions.Tween(this, "_yscale", mx.transitions.easing.Bounce.easeOut, this._yscale, 100, .5, true);
stop();
}
However, once an object has been moused over, it doesn't exit with the others. Any ideas why it seems to "fall off the track" of the motion guide?

Shape Tween Like A Motion Tween, Using Guide Layer
How if possible, can i make a shape tween behave and follow a set path (like using a guide layer)while morhping/tweening?

So far it seems as each time i try it always goes in a straight line from a to b and in this case that's not what i'm after.

Unhappy Adjusting Columns And Rows On Stage Resize, According To Stage.width.
Hey fello flashers,

what i'm trying to achieve can be seen here, at the FWA's website.

When you resize the browser window the thumbnails rows and columns adjust accordingly to fit.I've managed to attach the thumbnails correct when my enableButtons() function is called but i'm unsure how to approach resizing.

if anyone has encounted this problem before or can help, then pls do i'm a little confounded on this one.

thanks
cam

Stage.align = "TL";

var numberOfGalleries:Number = 20;
var thumbMarginX:Number = 163;
var thumbMarginY:Number = 109;

function init():Void {
enableButtons(numberOfGalleries);
resizeStage();
}

function enableButtons(numberOfGalleries:Number):Void {
currentRow = 0;
currentColumn = 0;
for (i=0; i<numberOfGalleries; i++) {
tracker = i;
thumbsDisplayer = this.createEmptyMovieClip("thumbsDisplayer_mc", this.getNextHighestDepth());
currentThumbnail = thumbsDisplayer.attachMovie("thumbnail holder", "thumbnail"+(tracker+1), thumbsDisplayer.getNextHighestDepth());

currentThumbnail._x = currentColumn*thumbMarginX;
currentThumbnail._y = currentRow*thumbMarginY;
currentColumn++;
if (currentThumbnail._x>(Stage.width-(currentThumbnail._width + thumbMarginX))) {
currentRow++;
currentColumn = 0;
}
}
}

function resizeStage() {
var myListener:Object = new Object();
myListener.onResize = function(e:Object):Void {
//
}
Stage.addListener(myListener);
}


init();

Diference Between Motion Tween And Shape Tween
What exactly is the difference between a motion tween and a shape tween?

What's The Best Way To Do A Motion Tween And A Shape Tween At The Same Time?
Hi all,

I'm having some difficulty doing this. I have tried motion tweening a movie clip containing a shape tween but it just doesn't look right. Anybody have any ideas?

Cheers

Do I Use A Shape Tween? Mask? Motion Tween?
How do I make this arrow grow into shape? I want it to slowly appear...but not fade in...

it's hard to explain...but here is the arrow, hopefully you will understand what I want...

I tried using a mask, but instead of revealing the arrow little by little, it dissapeared little by little...(basically the exact opposite)...

I also tried putting a white box over it & motion tweening the box to reveal the arrow...but that didn't look good...


any ideas?...suggestions?

thanks in advance...

What's The Difference Between A Shape Tween And A Motion Tween?
Hi!
I just wanted to ask that what is the difference between a shape tween and a motion tween???

Not to bother you.

please reply me back

[MX04] Shape Tween And Motion Tween
Why do Flash doesn't allow ungrouped objects into motion tween and symbols into shape tween?

After Tween, Jump To New Frame (using Tween Class)
I need some help with using the tween class (among other things).

See my attached test file. It's clearer than my description.

You're supposed to be able to click the "next" or "prev" buttons and see the movie clip move forwards or backwards. It works, but only on the first click of the button. After the initial click I need the timeline to jump to frame label "2", and after the second click I need the timeline to jump to frame label "3", and so on, so that I can implement a new set of perameters. Is that clear? I'm so annoyed with this. Please help!

Thanks.

Tween Class Problem. Tween Freeze?
I am using the tween class to do an alpha tween on some jpgs that get loaded into a movieclip. Everything thing works great until the user rapidly clicks on the 'next' arrow to jump forward to a new picture. If the user clicks too quickly something happens and the tween function stops working.

Here is the tween code:

Code:
//set up tweening
import mx.transitions.easing.*;
import mx.transitions.Tween;
var tweenAlpha:Tween;
function alphaTween(object,duration){
easeType = mx.transitions.easing.Regular.easeIn;
tweenAlpha = new mx.transitions.Tween(object, "_alpha", easeType, 0, 100, duration, true);
}
http://12dogsofchristmas.com/12_dogs_menu2.swf

You'll notice that if you click slowly on the arrows the pictures load correctly with the story. However, if you click fast they stop tweening.

thanks for the help.

Change From Motion Tween To Shape Tween
I am trying to have a motion tween of some text move on the page and then change into a shape (i.e, a shape tween). I can't seem to make this work. I put a keyframe at each end of the motion tween and that works fine. Then I add another keyframe, delete the text and replace it with my shape. Then I select just those frames and add the shape tween but nothing happens. How do I accomplish this successfully?

Thanks.

Shape Tween / Motion Tween Problem
I must be missing something very obvious.

I have created a movie that draws a box, fills in the box with color and then is supposed to have the menu swoop in from the right. Mind you this is for learnnig, not cosmetic appeal Why is it when I use tweens I get the dotted line versus a solid line in the time line?

If you take a peek at the FLA it is obvious what I am referring to. I must be using the tween function or symbols in an improper manner.

I have attached the FLA.
Any help appreciated.
Thanks,
Kerry
www.skurz.com

Tween.stop(). Part Of The Tween Class?
I need to know if tween.stop() is part of the Tween class in Flash 8 or if it's related to an extension I installed (ie. TweenExtended).

How To Programmatically Begin A Tween When Another Tween Ends?
Hey everybooody,

In this example, I'm trying to programmatically fade-in the alpha of menu items created from xml data. Using the tween object, I'm trying to start the next tween once the first or previous tween has finished.

Clearly in my attempt below, the “if” statement isn't cutting it because it's not waiting for the tween to be finished.

Using the oListener.onMotionFinished method, I tried using a Boolean to return true when finished, and then to start the next tween. But clearly I haven’t figured out the proper control flow for this.

I also tried a 'do while' statement, attempting to creating a waiting-loop until the bCheck returned true, but that just created a series of open loops, and crashed the program.

The big problem here is that I'm trying to figure out how to do this while looping through an array of menu items, so that I triggure the fade in of each menu item...



Has anyone had experience with this? Thanks!!!

Here's what I was trying to do:

function fadein_menu() { var bCheck:Boolean = false;
var oListener:Object = new Object();
oListener.onMotionFinished = function(twObject:Tween):Void {
bCheck=true;
};
for (var i = 0; i<totalMenuItems; i++) {if (i==0) {var twMenuAlpha:Tween = new Tween(menuitems[i], "_alpha", Strong.easeIn, 0, 100, 3, true);
twMenuAlpha.addListener(oListener);
} else if (i>0) {if (bCheck==true) {bCheck=false;
var twMenuAlpha:Tween = new Tween(menuitems[i], "_alpha", Strong.easeIn, 0, 100, 12, true);
twMenuAlpha.addListener(oListener);
};
};
};
};

Tween Class Not Always Fulling Complete Tween
I have a switch statement that is a part of the tween effects found on the header of http://gfxcomplex.com/blog.

the problem is this case will change the rotation of a sprite and then tween it to zero. The funny thing is some times ("not all the time") some of the tween stop in the middle and do not complete leaving the sprite with a rotation somewhere in the middle of 180 to 0. My question is, is there something in my code that could be the reason for this or is this a bug??

You may have to watch the header for a long time to see this bug happen as it seems to be more a fluke then a true code bug.


PHP Code:



case 7 :            var u:uint = 0;            test1.getChildAt(0).rotation = 180;            test1.getChildAt(1).rotation = 180;            test1.getChildAt(2).rotation = 180;            test1.getChildAt(3).rotation = 180;            test1.getChildAt(4).rotation = 180;               intervalId = setInterval(function myFunction(){                                                          myTween1 = new Tween(test1.getChildAt(u), "rotation", Bounce.easeOut, 180, 0, 3, true);                                                          u++;                                                          if(u == 5){                                                                                                                      clearInterval(intervalId);                                                                                                                        }                                                          },                                                          150);break; 

Shape Tween / Motion Tween Problem
I must be missing something very obvious.

I have created a movie that draws a box, fills in the box with color and then is supposed to have the menu swoop in from the right. Mind you this is for learnnig, not cosmetic appeal Why is it when I use tweens I get the dotted line versus a solid line in the time line?

If you take a peek at the FLA it is obvious what I am referring to. I must be using the tween function or symbols in an improper manner.

I have attached the FLA.
Any help appreciated.
Thanks,
Kerry
www.skurz.com

Seperating Motion Tween From Alpha Tween
I am trying to fade in the alpha on a graphic symbol rather quickly at the same time the symbol scrolls very slowly up the stage, but the two seem linked, so that a very slow scroll means a very slow opacity gain. How can I fade the photo in quickly while the photo motion tweens slowly?

Laco Tween Pause/Stop Tween
Hi There,

I am using laco tween to move dynamic text that is taken from XML. I need the text to pause when the user rollsover the text, is there anyway of using the stopTween() function, then on rollOut getting flash to continue with the tween?

Thanks.

Dabush

Jerky Tween- How To Get A Smooth Slow Tween- Help
I'm working with a very slow tween of an image (800 by 350px and 50 kb) over a time of 60 seconds and it's jerky.

Code:

Tweener.addTween(pic, {x:pic.x-100, time:60, transition:"linear"});

I tried upping the frame rate to 30, then 60, but it didn't seem to make a difference.

I also tried using TweenLite, Tweener, and the built-in Tween class. None really performed better than the other. Another thing I tried was importing the image as a swf, masking it, and then tweening it. None of those really made a difference, still jerky.

Any ideas?

How To Motion Tween Thats Not Linear Using Script Or MC Tween?
If you wanted to do an animation of a ball that goes from A to B but not linear, how would you do it by code or Mc tween. How would you make the ball go in a curve line for example instead of a straight line from A to B?

I understand you can use a guide to get all types of non linear motion tweens on a timeline, but how would you do it using MC tween or coding.

Stage.width && Stage.height Doesn't Work Anymore?
How do you get Stage.width and Stage.height in ActionScript 3.0

2.0 this works like a charm. I guess they may have moved this inside a deeper class or something.

thanks in advance.

Create Array On Stage, Mathematically Referring To Objects On The Stage
Ok what I want to do is create a set of small images on the stage and name them sequentially like you would an array, then refer to them mathematically in actionscript. I tried naming them as an array but it says that the name is reserved for the system or something. Does anyone know how to get an array of objects onto the stage, or have an idea of something else I could do to get the same effect?

Create Array On Stage, Mathematically Referring To Objects On The Stage
Ok what I want to do is create a set of small images on the stage and name them sequentially like you would an array, then refer to them mathematically in actionscript. I tried naming them as an array but it says that the name is reserved for the system or something. Does anyone know how to get an array of objects onto the stage, or have an idea of something else I could do to get the same effect?

Stage.width And Stage.height Not Matching Document Settings?
Ok, so I have no idea why this would be happening and its driving me nuts. I have my Flash movie size set to 960x650. However, when I trace stage.width and stage.height, I get:

950.05x630

Why in the world would this be happening? It's screwing up all the work I'm trying to put into positioning elements relative to the stage size. Thanks for any help!

Stage.height And Stage.width Erratic Values?
Hey folks,

I was wondering if it happens in all Flash everywhere, or just in mine:

When I trace Stage.height and Stage.width, I always get erratic values:

Stage.height gets me always 4 pixels less than real
Stage.height gets me always 104 pixels less than real

This, way if my stage has 760 x 400, it will return values 756 x 296.

Anybody knows why?

Thanks!

F8 Movieclip Change On Stage Causes The Entire Stage To Dissapear
I have my stage with a background picture.

On stage left are buttons, and on stage right I have a movieclip (mc_Preview).

When the user puts his mouse over each button I would like the movieclip to move to a different frame.

the problem is when the mouse moves over a button, i see the movieclip move but then the entire stage dissappears and turns a few shades of gray.

Does this sound familiar to anyone?
Any help would be greatly appreciated!

External MC Loaded On Stage, I Can Press Buttons That Are On The Stage Through It...
I'm used to AS3, and I don't have much experience in AS2. I'm trying to modify an older flash file done in AS2.

An external swf is loaded using this code...


ActionScript Code:
on(release) {
    loadMovieNum("supplimental/external.swf", 500);
}

The problem is that even though this external movie covers the whole stage, My mouse can still "see" buttons that are on the stage, and I can click them. I don't want to be able to click the buttons through my external movie. Thanks for any help.

Stage.width, Stage.height, Add.Listeners Problem
Hi
i found the way yesterday to ensure my mc stays full screen. now i want to animate the same mc if i can in reaction to a button click.

not sure how this next step goes. do i need another addlistener to the background mc that im tweening ?

kindly check the .fla. to see what i mean.
its very rough cut but hopefully you can get the gist of it.
when the text button is clicked, the bg reverts to the top left of the screen.

thanks
-dj

MX2004 -- Stage.height And Stage.width Different From Mac To Windows
I have a really strange problem that is ruining my movie. I have set the size of the stage to 450px by 400px in the properties dialog. In my actionscript, I've got all kinds of things that rely on Stage.width. So, I developed everything in MX2004 on Mac, and everything worked swimmingly. So, I opened up the exact same file in MX2004 and everything is placed wrong on the stage. So when I did a trace of Stage.width, I got 940px, and a trace of Stage.height gave me a figure of 763 pixels. If I do the same traces on the Mac, I get what I expect, 450px for width and 400px for height. Does anybody have any ideas as to what might cause this kind of discrepancy?

Thanks,
John

External MC Loaded On Stage, I Can Press Buttons That Are On The Stage Through It...
An external swf is loaded using this code...


Code:
on(release) {
loadMovieNum("supplimental/external.swf", 500);
}
The problem is that even though this external movie covers the whole stage, My mouse can still "see" buttons that are on the stage, and I can click them. I don't want to be able to click the buttons through my external movie. Thanks for any help.

Stage.width & Stage.height Problems
Why is it when I use this script attached to an empty movie clip the box seems to always be short on the height side? The width is fine. See attached FLV.

frame.fla.zip

Thanks in advance for any feedback.


Code:
onClipEvent (load) {
this._x = 0;
this._y = 0;
this.moveTo(0, 0);
this.lineStyle(1, 0x000000, 100);
this.beginFill(0x000000, 0);
this.lineTo(Stage.width-1, 0);
this.lineTo(Stage.width-1, Stage.height-1);
this.lineTo(0, Stage.height-1);
this.lineTo(0, 0);
this.endFill();
}

Copyright © 2005-08 www.BigResource.com, All rights reserved