/ Forside / Teknologi / Multimedie & design / Flash / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Flash
#NavnPoint
bentjuul 4251
molokyle 1978
Klaudi 1488
jhvp 1265
pallenoc 1160
katekismus 1020
Fnollerpi.. 790
slander 510
Dr.Disco 500
10  Flash77 500
a problem with buttons!(auch)
Fra : Kim Nielsen


Dato : 07-08-02 20:31

Okay, I will make this a simple as possible, so you can understand me:

I have 1 button symbol and 1 graphic symbol.

both a used in a third symbol

The thing I want to make:
When you roll over the button symbol, I want it to trigger a update in the
graphic symbol(to change a frame in the graphic symbols owns timeline). This
change should show up in the third symbol.


And for those who didn´t understand the thing upthere, I try again.

I have a menu button, and when I roll over it, I want too see what info this
button contains. But the info cannot be put in the button itself. It must be
placed in a second symbol. That will function like a sort of database(frame
1 contains 1 info. Frame 2 contains some other info)

and the people who didn´t understand either, just say, then I will try to
explain myself again.

else, take a look at my non-flashed(yet) website:
http://www.g0d.dk





 
 
Bo Dudek (08-08-2002)
Kommentar
Fra : Bo Dudek


Dato : 08-08-02 23:26

[...]
>When you roll over the button symbol, I want it to trigger a update in the
>graphic symbol(to change a frame in the graphic symbols owns timeline). This
>change should show up in the third symbol.

when you want to use mouse triggering, a button symbol is the right
one.. so far, so good

when you want to trigger something you have to use a movieclip symbol,
and use an instance name for it - else Flash won't know, what to start
and stop.. and this is your problem

you'll have to convert your graphics symbol to a movieclip and give it
an instance name (ctrl+i).. and then you can use an ordinary mouse
event..


Kind regards

Bo Dudek
http://www.bodudek.dk
http://www.bodudek.dk/cd (dsl or faster conn. only)

Peo (09-08-2002)
Kommentar
Fra : Peo


Dato : 09-08-02 07:57

Movieclip with two (or three - one for each state of the button) frames and
stop-actions on each frame.
Place an instance of this mc on the stage and give it an instance name, ex.
"info".

Make a new button. Draw a square on the last frame of this button - The
Hitstate of the button.
This will be your "invisible" button, that you place on top of the info-clip
on the stage. To control the info-clip whit this button, place the following
code on it:

on (rollOver) {
info.gotoAndStop(2);
}
on (press) {
info.gotoAndStop(3);
}
on (release, rollOut, dragOut) {
info.gotoAndStop(1);
}

Thats about it - The simple model enywho...

/peo




Søg
Reklame
Statistik
Spørgsmål : 177495
Tips : 31968
Nyheder : 719565
Indlæg : 6408489
Brugere : 218886

Månedens bedste
Årets bedste
Sidste års bedste