PDA

View Full Version : Error :(



Area+browN
06-07-2003, 02:26 PM
I aint really done much flash at all...

but I have a button (in a frame called '>' ) which chnages to the next frame...

and i get this output error




Scene=Scene 1, Layer=>, Frame=1: Line 2: Mouse events are permitted only for button instances



ALSO....when i press a button it re loops a sound i have in the background...:S (nooooobie ! )

this is the link for it...[ My Flash thingy ] (http://www.coderx.net/atomyc/vexed/flash/console.swf)

(do save target as cus opening it in exploere f***s the size up)

any one tell me
1/ Why i am gettin this error
2/ Why the sound is playing over its self when i press a button

thx

[Edited on 8-6-2003 by Area+browN]

simontheak
06-09-2003, 07:51 AM
Hi Area,

What version of Flash are you using? Is there any chance you could post up the .fla so I could have a look at it?

It sounds as though you've got some code where you shouldn't have. Do you have an on(release) bit of code stuck on a movie clip or in a frame on the main timeline at all??

kiwicolin
06-09-2003, 07:57 AM
Do you have the symbol type for the button set to button or graphic. You can only add actions to buttons and in MX you can also add them to movie symbols. Press F8 and choose button or movie for your type if you are using mx.

Waxpants
06-09-2003, 05:49 PM
I suggest home brewing your buttons.

To do this make movie clips instead of buttons.

Movie clips are much more functional than buttons and when you get into more advanced Flash you'll probably need to start home cooking your own buttons so you may as well learn now.

This link has a bit of a tutorial, I don't garauntee it's understandable but it may help you out.

LINK (http://www.dreamweavercafe.com/cafe/viewthread.php?tid=119)

Area+browN
06-10-2003, 10:10 AM
Thanks !

Any one got ne suggestions about the sound?
[ l i n k ] (http://www.coderx.net/atomyc/vexed/flash/console.swf)

The size gets messeed up when u open it there

-What my problem with the sound is when i press the previous button (As far as i can see its th previous button ) the sound starts playing again ...so it will be playing twice...gets quite loud

-Thx

Waxpants
06-10-2003, 11:53 AM
Your sound problem is probably related to where you place the sound trigger.

Do you have it attatched to a button?
If so that's probably the problem.

Use this command to play your song if the song is going to run independant of the buttons:

onClipEvent (load) {
stick your sound in here;
}

You can put this in the first frame of your movie. You can even make a seperate layer for your sound and put it in the first frame there.

scruff
07-24-2003, 06:13 AM
i get this same error when i try to put buttons inside a movie clip. i'm reading this book and whenever i try to do it, the error pops up... here's the link to the book, perhaps you can help:here (http://www.informit.com/isapi/product_id~%7B7171FE6E-FE0D-4706-B08C-C2BBF1EE3227%7D/st~%7B822202F4-E865-472D-B32F-BE77D3B7ACE1%7D/content/index.asp)

kudos!:)

Waxpants
07-24-2003, 01:32 PM
You could try using absolute path names instead of 'this'.

try changeing it to _root.'name of your movie clip'.gotoAndStop (2);

Just make sure that the movie clip is named.

scruff
07-25-2003, 04:55 AM
aha! eureka! i got it now, thanks for your advice :D