Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
yn #1
get _root properties?
Ey and thanks for reading.
First off, I'm trying to get the _wdith and _height properties of my root most
swf file. I know how to target a movie clip FROM the main root timeline to
navigate down into empty_mc's or whatever the structure is at hand. However
what I am trying to access is the root dimensions. In the project properties
my dimensions are like 500x400. How can I trace this?
Goofy question I know, but I'm experimenting and was curious....
Thanks in advance,
Noel
yn Guest
-
_root._alpha = 0? :(
hi i am trying to make all of the screen to go to 0 _alpha... i am loading a movie into an mc in the first frame of the loaded mc i put... -
How can i unload _root?
My script looks so: on (press) {_root.othermc.music_choice1.gotoAndStop(2);} "music_choice1" - the name for movie clip which loads "othermc"... -
_root[whichpiece]
hi guys i am reading a tutorial built in the flash and i am doing the "puzzle" i have there something like 60 pieces and som how it controls them... -
Why no onLoad or onUnload on _root?
Subject line says it all. In other programming environments, I can interecept the "exit" call (for instance) and pop up a "Do you want to save?"... -
Variables in _root
if I create a "base" movie, call it base.fla and on frame 1 I loadmovie child1.swf, then I loadmovie child2.swf, then set the variable _root.testvar... -
jerreye04 #2
Re: get _root properties?
Put this code on the first frame of the main timeline:
trace("Stage Width: "+Stage.width+" Stage Height: "+Stage.height);
jerreye04 Guest
-
yn #3
Re: get _root properties?
neat. thank you, I never would have found that keyword! Are the properties
dynamic? eh, Can I change them via code similar to how I would change my _mc
properties? I've tried to type up a few lines and have not been able to get
anything working. eh, just another point of view I suppose... anyway, thanks
already for the help already!
Noel
yn Guest
-
jerreye04 #4
Re: get _root properties?
your welcome...
I don't think you can SET the width or height of the stage during runtime. You
can only GET the info. (dimensions are taken from the HTML width and height
properties)
Example taken from Flash Documentation:
Stage.scaleMode = "noScale"
myListener = new Object();
myListener.onResize = function () {
trace("Stage size is now " + Stage.width + " by " + Stage.height);
}
Test the movie in the Flash environment, then maximize the flash window. It
will trace the new dimensions.
jerreye04 Guest



Reply With Quote

