Question in Flash


#1

Hey guys, I know that this is a photoshop forum but I have a flash question. I’m a relatively new user, glad to be on board.

Quite simply, I dont know AS3. I dont know anything about event handlers. If anyone could point in the right direction to learn i’d appreciate it. However, my dilemma is this:

All i’m trying to do is have a button so that when you click it the button will take me to another frame. I know that this is such a remedial question, so I apologize in advance…it is also why it is bothering me so much that I can’t figure it out. Thanks again guys!


#2

Try the adobe exchange. Also the help files do help!

Here are a list of sites I visit from time to time:

http://www.actionscript.org/

Adobe Exchange - Flash

http://www.flashandmath.com/

http://www.gotoandplay.it/_articles/2006/07/as3intro.php

http://theflashblog.com/

Honestly though - if you want to learn Action Scripting or even Flash, you need to go to a few fundamental classes and or order some tutorials. A good place is http://www.lynda.com. I love Sterling Ledet if you have the money/time to go to a workshop class - they are one of the best.

I do believe that Adobes site is pretty in depth when it comes to developers and such sharing information so check them out as well: http://www.adobe.com/devnet/actionscript/


#3

I dont wish to put you off but… unless you have some expertise in other scripting languages (eg Java) AS3 is not an easy place to start.
If you are at the artist end of the spectrum (like me) you might find that AS2 will fill all your needs for buttons, timeline navigation, scripted animation etc.

In addition to the resources listed by suztv I can recommend a couple of books for AS3: Learning Actionscript 3 by Shupe and Rosser, and Actionscript 3.0 Animation by Keith Peters.

Many of the posts out there are from developers who use the OOP of AS3 to the max and use the Document Class.
However you dont have to do that. It is perfectly OK to use functions in the timeline as described in Shupe & Rosser.


#4

Your kidding me? Javascript and Actionscript are amongst the most easy languages.

I’d say, just get some tuts for this. you don’t need extensive AS for your problem.


#5

choose your button then open action script window and write this: on(release) {nextFrame();}
if ti’s a movie clip then write this: this.onRelease = function(){nextFrame();}


#6

As you might know this is AS2 and it’s not possible in AS3.

@thejellymon
If you know AS2, perhaps this Adobe articel will be a good start point. Flash provides also great help documents, available in the help-menu.
I think it will be a good choice to inform yourself about OOP, too, because AS3 is more or less OOP.

According to your button problem, this might help you:
(Put it into a new layer)

yourButton.addEventListener(MouseEvent.MOUSE_DOWN, yourFunction);

function yourFunction (e:MouseEvent):void {
  var url:String = "http://www.adobe.com";
  var request:URLRequest = new URLRequest(url);
  navigateToURL(request)
}

I hope, I could help you =)

Greetings,
Micha


#7

thanks guys! I went ahead and utilized AS2 just so i could finish off the project but I will certainly look at those articles for future projects and know-how. thanks again!


#8

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.