Groups | Blog | Home
all groups > flash actionscript > june 2004 >

flash actionscript : Problem with :: on (release) action


Netwave
6/21/2004 9:38:10 PM
I want to link my buttons in my swf file to a page within the that same page as
in a navigation bar in a website. I use the on (release) {
getURL("http://www.nt-wave.com/index.php", "_self");
}

but when i go to test the movie, i get these errors.

**Error** Scene=Scene 1, layer=Services, frame=1:Line 1: Mouse events are
permitted only for button instances
on (release) {

**Error** Scene=Scene 1, layer=Work, frame=1:Line 1: Mouse events are
permitted only for button instances
on (release) {

**Error** Scene=Scene 1, layer=Contact, frame=1:Line 1: Mouse events are
permitted only for button instances
on (release) {

**Error** Scene=Scene 1, layer=About, frame=1:Line 1: Mouse events are
permitted only for button instances
on (release) {

**Error** Scene=Scene 1, layer=Root, frame=1:Line 1: Mouse events are
permitted only for button instances
on (release) {

Total ActionScript Errors: 5 Reported Errors: 5

Some one please help me.

EMAIL: ntwave@hotmail.com
AIM: pballfreak908

or post here. ASAP please. Thanks
Laiverd.COM
6/22/2004 12:45:13 AM
Those messages would mean that you have not attached the code to the button.
One common error when coding actiosn for buttons is selecting the button you
want to attach code to, by clicking the frame in which the button sits. And
indeed the button will look selected, as you see the boundingbox. In reality
however you have selected the frame, and thus you're writing a framescript
and not a button script. So the way to go is to select the button on the
stage and NOT through the timeline.

John

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

Netwave
6/22/2004 2:40:48 AM
Netwave
6/22/2004 3:16:10 AM
And also, does it matter which fonts i use for my images because the font
looked all messed up, i used the font in photoshop and saved the whole button
as a .gif , which fonts should i use or what should i do to get the font to
normal.
Laiverd.COM
6/22/2004 9:50:26 AM
In my opinion if you create buttons in Photoshop and also text on them and
save as GIF-format, its best to set the export options for that image in
Flash to lossless/png. You can do that through the library panel. There's a
lot of things to be said about using fonts in Flash. I suggest using the
google link below to find previous posts on the topic. If you search on
words like, anti-aliasing, pixelfont, embedding fonts, dynamic textfield and
mask etc. they'll surely popup. If you also look for messages from Urami;
she has posted a great overview at times on how Flash basically deals with
fonts.

John

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

AddThis Social Bookmark Button