The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.36 / 5.00 33,851 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 12,195 ViewsWhat I'm trying to do is get
if (this._currentframe == ###) {
only instead of having to put the number of the frame, get it to search for the frame label
AS 2.0 by the way
is this possible?
Flash ROCKES!!!!!!
In actionscript 3.0 this is very possible and there is nice support for it, I did some research and found out that there is no way to get the currentLabel like you can in AS3. So you need to make your own framelabels and store them in your class. A 'fix' is to initialize your code something like this:
//init code
public function init():void
{
var myFrameLabel:String == "blahblahFrame";
gotoAndStop(myFrameLabel);
myFrameLabelPosition = _currentFrame;
gotoAndStop(1);
}
Its not pretty but I think that the only way to store the position of a framelabel is to convert it to the frame number and then use that to check it. OR you go learn AS3 ;)
I would Lear AS 3.0 if only i had 600$ for a better version of flash
but thanks for the info
Flash ROCKES!!!!!!
At 9/1/11 01:28 PM, 2-3-ryan-5 wrote: I would Lear AS 3.0 if only i had 600$ for a better version of flash
but thanks for the info
Maaayn, just get FlashDevelop and the Flex SDK...I get ticked off hearing how everyone complains about needing to pay for a newer Flash version when using the latest Actionscript is just 2 downloads away...
At 9/1/11 01:52 PM, PSvils wrote:At 9/1/11 01:28 PM, 2-3-ryan-5 wrote: I would Lear AS 3.0 if only i had 600$ for a better version of flashMaaayn, just get FlashDevelop and the Flex SDK...I get ticked off hearing how everyone complains about needing to pay for a newer Flash version when using the latest Actionscript is just 2 downloads away...
but thanks for the info
Well mabey you should think about mabey I'v never heard of FlashDevelop or Flex SDK,
because I haven't.
Flash ROCKES!!!!!!
There is absolutely a way to locate frames according to their frame label in AS2.
onEnterFrame=function(){
if(_currentframe=="framelabel"){
dostuff();
}
}
At 9/2/11 01:27 PM, bikinigames wrote: There is absolutely a way to locate frames according to their frame label in AS2.
onEnterFrame=function(){
if(_currentframe=="framelabel"){
dostuff();
}
}
That dosen't work.
It was my first guess but no.
Flash ROCKES!!!!!!
You are applying it wrong then, I just tried it.
But if you trace out the _currentFrame property you will get a numeric value. It doesnt make sense that if you check this numeric value against a String value you get a positive check.
Here is the FLA file I made that uses your code to check for framelabel and it doesnt work:
http://www.newgrounds.com/dump/item/1780 6020e93a705d4707cdd88810b8dc
(Flash CS4)