Lady Foxy Wrote: Reaper of women's soles.
OwnerOfSuccuby Wrote:AS3: wright on the layer with button and name button bNext
function fNext(e:MouseEvent):void{
play();
}
bNext.addEventListener(MouseEvent.CLICK, fNext);
bNext.addEventListener(MouseEvent.CLICK, function fNExt(e:MouseEvent){
play();
});
FMPraxis Wrote:OwnerOfSuccuby Wrote:AS3: wright on the layer with button and name button bNext
function fNext(e:MouseEvent):void{
play();
}
bNext.addEventListener(MouseEvent.CLICK, fNext);
This should also work in AS3:
- Code: Select All Code
bNext.addEventListener(MouseEvent.CLICK, function fNExt(e:MouseEvent){
play();
});
Putting the function in the event listener makes more sense to some people, and it works the same for most purposes. (although most programmers would consider it a bad practice, but if you are like most people and don't care, go right ahead)
Otherwise, I'm delighted to see more people willing to start flash projects. Please, continue.
Mechanios Wrote:Dear god, I nearly had a goddamn heart attack when that fucking roar played.
Lucky777 Wrote:
The whole flabby slimy warty pigman thing is... not particularly up my alley, but apart from that I've nothing against the offering.
Users browsing this forum: No registered users