Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.18 / 5.00 3,534 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.80 / 5.00 4,200 Viewsi just started flash and i am getting the hang of the basics.
but there is one basic thing i can't get to work right: Buttons
i use Adobe Flash CS3 Professional and Action Script 3.0 but i don't seem to find any button script for it. i guess the one i use is for AS 2.0, but i did found out they are very different.
basicly, i want a button at frame 1 that goes to and start frame 2.
i have used this script:
on (release)
gotoAndPlay(2)
but everytime i export the video, i get a message saying it is an error in the script.
i tried using the same script in a Action Script 2.0. then the button kinda worked. i could press it in the movie, but nothing happened...
so does someone know about a good button script for Action Script 3.0 or a way to get this one working in Action Script 2.0?
in AS 2
on(release){
gotoAndPlay(2);
}
will work, so will nextFrame();
at the top of this forum there is a "new to flash topic", click that and look for the button tutorial.
Be water my friend.
FlashGameMakers.ning.com
Real Flash Programmers + Real Flash Artists = Awesome Flash games
At 3/4/10 06:42 PM, JoeSkull wrote: in AS 2
on(release){
gotoAndPlay(2);
}
will work, so will nextFrame();
at the top of this forum there is a "new to flash topic", click that and look for the button tutorial.
Thank you for the help. button comming along good now =)
i have already watched a lot of the tutorials on this site. gonna check out what the forum thread have to show now.
ok. that was the tutorials i have already been looking at.
still, many thanks for the help =)
i'm going back to my basic flash test's now...
You motherfucker.
Start on AS3, AS2 is outdated AND EVERYONE STILL FUCKING USES IT.
Every person using AS2 makes it harder for AS3 users to find resources.
so yeah start on AS3.
At 3/4/10 07:17 PM, elementell wrote: You motherfucker.
Start on AS3, AS2 is outdated AND EVERYONE STILL FUCKING USES IT.
Every person using AS2 makes it harder for AS3 users to find resources.
so yeah start on AS3.
i did. but i don't find any button script for AS3.
so far the button script in AS2 is the only AS2 script i have used.
so please. if you do have a button script for AS3 so please share with the rest of us so we don't have to use AS2 at all...
The majority of coding you do in AS3 is set up via events as such:
//this is the button code used to play your movie.
function playbutton(event:MouseEvent) :void { // basically this points out that it is a mouse event and it's
// name is playbutton.
play();// Like in AS2 this plays the movie.
}
(reference_object).addEventListener(MouseEvent.CLICK, playbutton); // reference object refers to the
// instance that is your button. Here you are basically add an Event listener for the Event .CLICK or
// clicking. It then does the code inside the function playbutton.
Hope this helps.
*Gamekrazzy
He can't even make a button! Then it's not really adviced to start with AS3 and OOP xD
Also, try using "_root." if it still doesn't work.
on(release) {
_root.gotoAndPlay(2);
}
BTW, check my button tutorial flash submission ; )
thanks for all help =D
but there is still one thing i can't do which anoy the hell out of me...
how do i turn a character to face another way?
i only found out how to rotate but not turn around...
i find the drawing tools pretty hard to use in general...
At 3/5/10 01:32 PM, ghdude85 wrote: thanks for all help =D
but there is still one thing i can't do which anoy the hell out of me...
how do i turn a character to face another way?
i only found out how to rotate but not turn around...
i find the drawing tools pretty hard to use in general...
Frame by frame my friend!
YOU SON OF A BITCH, YOU BITCH OF A SON
At 3/5/10 02:50 PM, rakan610 wrote:At 3/5/10 01:32 PM, ghdude85 wrote: thanks for all help =DFrame by frame my friend!
but there is still one thing i can't do which anoy the hell out of me...
how do i turn a character to face another way?
i only found out how to rotate but not turn around...
i find the drawing tools pretty hard to use in general...
Noo....
There's a property called _xscale or scaleX for AS2 and AS3 respectively. Look that up in Flash help (F1).
again it seems like i have problems with the drawing tools...
see picture
it don't seems like i can just fill in colors inside the lines like in MS Paint...
so is it possible to just fill in colors on those walls and the door?
i can't sit color it with the brush... would take forever to color that much inside the lines...
or do i have to paint eveything like that in MS Paint then inport it to the flash studio?