flash - simple Q
- Started
- Last post
- 11 Responses
- indian_pole
i want to say 'if the root current frame is greater than 40 and less than 50...
if (_root._currentframe= ?)
sorry, i'm kinda crap at this! please help!...
- UndoUndo0
if (_root._currentframe > 40 && _root._currentframe < 50){
// do something
}
- skt0
if((_root._currentframe > 40)&&(_root._currentframe < 50))
- skt0
What undo said.
- indian_pole0
much appreciated.
- indian_pole0
one more Q...
say i want to target sections, i.e. if frame is between 2 - 7 'OR' 20 - 24i tried...
if ((_root._currentframe>2) && (_root._currentframe20) && (_root._currentframe
- joyride0
if((_root._currentframe >=2 && _root._currentframe =20 && _root._currentframe
- joyride0
damn it took out my code...
but | | < with no space is "or"
- indian_pole0
the PVN doesnt allow the correct text. can u email me?
thanks.
- joyride0
no!
if ((_root ._current frame>=2 & & _root ._current frame =20 & & _root. _current frame< =24 ) ) {
do something
}
added a bunch of spaces flash will validate logic.
- joyride0
wow it takes out entire sections... sorry. I guess NT wants you to learn on your own.
- stewart0
this is a good way to share actionscripts.
type it, submit, and you get an url to your code back