Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
Brian #1
stalling AS
I would like to halt the execution of some actionscript I have.
Basically, I have a funtion that does a bunch of stuff and I would like
to stall the excecution at certain points. Is there code that stops the
reading of the code for a certain amount of time?
Below is the code and I indicated where I want to stall the whole thing:
function homeSet01(){
// set the postion of the navigation for the home page...
navigation.endX = 40;
navigation.endY = 36;
//stall here for about 1 sec...???
mask_01.endX = 278;
mask_01.endY = 36;
mask_01.endWidth = 105;
mask_01.endHeight = 0;
mask_01.endAlpha = 100;
//stall here for about 1 sec...???
mask_02.endX = 387;
mask_02.endY = 36;
mask_02.endWidth = 105;
mask_02.endHeight = 0;
mask_02.endAlpha = 100;
//stall here for about 1 sec...???
mask_03.endX = 496;
mask_03.endY = 36;
mask_03.endWidth = 105;
mask_03.endHeight = 0;
mask_03.endAlpha = 100;
//stall here for about 1 sec...???
mask_04.endX = 605;
mask_04.endY = 36;
mask_04.endWidth = 105;
mask_04.endHeight = 0;
mask_04.endAlpha = 100;
};
Thanks so much for the help!!!
B
Brian Guest
-
FLV recording stalling
Sometimes when a nestream is published to FMS and recorded the first part of the stream stalls on frame one and then the rest of the stream plays... -
Intermittent stalling
This is behaviour I've never seen before. Basically the symptoms are: - every minute or two, ColdFusion stops processing requests - requests... -
Application Stalling
I have a multi-accordion, multi-tabs form, whth a login form initially. When i logon, then i begin to enter data in the form, perform several... -
Stalling on new sprites
I desperately hope somebody can help. I have put some serious hours in to a director presentation that runs as a slide show. Still images fade in... -
stalling AS execution
I would like to halt the execution of some actionscript I have. Basically, I have a funtion that does a bunch of stuff and I would like to stall... -
Peter Blumenthal #2
Re: stalling AS
you need to break it up into seperate functions, and use setInterval().
Something like:
function homeSet01(){
// set the postion of the navigation for the home page...
navigation.endX = 40;
navigation.endY = 36;
rCurrentInt = setInterval (homeSet02, 1000)
};
function homeSet02(){
clearInterval (rCurrentInt)
mask_01.endX = 278;
mask_01.endY = 36;
mask_01.endWidth = 105;
mask_01.endHeight = 0;
mask_01.endAlpha = 100;
rCurrentInt = setInterval (homeSet03, 1000)
};
function homeSet03(){
clearInterval (rCurrentInt)
mask_02.endX = 387;
mask_02.endY = 36;
mask_02.endWidth = 105;
mask_02.endHeight = 0;
mask_02.endAlpha = 100;
rCurrentInt = setInterval (homeSet04, 1000)
};
etc...
hth
}`¬P
--
---------------------------------------
[url]http://www.phageinteractive.com[/url]
PhageInteractive Ltd.
remove mm_ to mail
---------------------------------------
'I wish we lived in a world where it was possible to be religious and think
at the same time.' - Jonh Graves
"Brian" <info@agilitygraphics.com> wrote in message
news:bvceq9$6eo$1@forums.macromedia.com...> I would like to halt the execution of some actionscript I have.
> Basically, I have a funtion that does a bunch of stuff and I would like
> to stall the excecution at certain points. Is there code that stops the
> reading of the code for a certain amount of time?
>
> Below is the code and I indicated where I want to stall the whole thing:
>
> function homeSet01(){
> // set the postion of the navigation for the home page...
> navigation.endX = 40;
> navigation.endY = 36;
>
> //stall here for about 1 sec...???
>
> mask_01.endX = 278;
> mask_01.endY = 36;
> mask_01.endWidth = 105;
> mask_01.endHeight = 0;
> mask_01.endAlpha = 100;
>
> //stall here for about 1 sec...???
>
> mask_02.endX = 387;
> mask_02.endY = 36;
> mask_02.endWidth = 105;
> mask_02.endHeight = 0;
> mask_02.endAlpha = 100;
>
> //stall here for about 1 sec...???
>
> mask_03.endX = 496;
> mask_03.endY = 36;
> mask_03.endWidth = 105;
> mask_03.endHeight = 0;
> mask_03.endAlpha = 100;
>
> //stall here for about 1 sec...???
>
> mask_04.endX = 605;
> mask_04.endY = 36;
> mask_04.endWidth = 105;
> mask_04.endHeight = 0;
> mask_04.endAlpha = 100;
> };
>
> Thanks so much for the help!!!
> B
>
Peter Blumenthal Guest



Reply With Quote

