Groups | Blog | Home
all groups > flash (macromedia) > april 2005 >

flash (macromedia) : Handy Action Script Panel


Pete Cox
4/13/2005 10:59:18 PM
Hi guys and gals...

I am currently doing a course on Flash and the courseware uses Flash 5. In
Flash 5 there is an extra part to the object actions panel where you can
easily add action script. I am using Flash MX 2004 and this panel is not
present.

Is there a way of turning this part of the panel on in MX or has it been
dumped ? If not is there any extra actionscript code that has to be added
because im getting an error when I try and publish.

example:

My courseware wants me to add getURL("http://www.cnn.com"); as a behaviour
for a button.

When I publish I get this

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Statement must
appear within on handler
getURL("http://www.cnn.com");

Total ActionScript Errors: 1 Reported Errors: 1


Any ideas ?

Many thanks in advance,

Pete

[aenema]
4/15/2005 12:23:20 AM
[quoted text, click to view]

I hope you put the getURL inside a

on(release) {
....
}

statement :)

AddThis Social Bookmark Button