hi there all,
just simple create action for a button (on release { get URL}) but I forgot command, with MX 2004 I don’t know where to find (no normal or expert mode) :((
do you agree with me that MX2004 harder to use ?
please show me how to use, thanks
There’re a few ways to handle button clicks. The easiest would be to just say something like:
[AS]
btnInstanceName.onRelease = function() {
//your code here
}
[/AS]
That would fire whatever code you have in the function whenever you click a button instance named “btnInstanceName”.
The prefered way would be to create your own event listener object, but I think that what you’re looking for is what I just said…
have fun.
As for 2004 being harder to use, I would disagree. I think they’re finally getting it together as far as AS is concerned. As a developer I felt EXTREMELY crippled by AS1.0, and have already been able to handle some pretty interesting scenarios using AS2.0…
what is it that you are asking for exactly? if you want a button to open a webpage then all you need is something like,
on (release) {
getURL(“http://www.thewebpage.com/location/”, “target”);
}
Target should equal one of the following:
_self
_blank
_parent
_top
If you have alot of buttons in your file I would follow justchad’s example. Just put everything after “on (release){” in the section he labeled your code. I use his method myself because it just makes it easier to edit things when you don’t have to hunt through your project.
As for mx2004 being harder to use… If you are sticking to the basics then it doesn’t take too long to get used to AS2.0. I have found that the syntax for alot of the commands I used to use have changed and caused me a few head aches. Most of that is ironed out now. I am really starting to like how Actionscript is becomming more refined. It’s starting to feel more like a real programming language.:beam:
Also is their no normal or expert mode? I haven’t noticed, I stuck to the expert mode in mx because it’s just faster to code and I can put it in a format thatis easier for me to read. Their must be a normal/expert switch some where. If not then just use the index. The index does a pretty good job of explaining the proper usage for the commands along with the syntax.
One helpful hint:
Help works a LOT better than it did in MX. If you’re stuck on how to use a command, you can highlight it and press F1 to get the help on that particular command. Very useful.
thanks all for helping me, if I start learning flash with this version, I wonder how I am close to it grrrrrr, complex!
by the way, who want to find serial of flashMX 2004 let visit [edit by kode]Link removed![/edit] searh MX 2004
I’m new here, but I can honestly say that I’m 100% sure that posting about how to pirate software is considered unacceptable by whoever’s in charge.
I’d edit that post before anyone notices you said that.
Im new to a/s in general. But I found that in MX 2004 you can use the behavior panel to assign simple (normal mode) action script to buttons and what not.
Hope that helps.
Originally posted by OKtrust
thanks all for helping me, if I start learning flash with this version, I wonder how I am close to it grrrrrr, complex!
by the way, who want to find serial of flashMX 2004 let visit [edit by kode]Link removed![/edit] searh MX 2004
Do not promote warez/cracks/etc sites here at kirupaforum.com!