Groups | Blog | Home
all groups > flash actionscript > may 2005 >

flash actionscript : Buttons


SkidOvidiu
5/8/2005 12:00:00 AM
see this link http://Skid.go.ro/Enter.swf , go to "Animations"
there's the problem , I want to make all those buttons from the left side to
open different aniamtion in the right square
pls help me with this
kglad
5/8/2005 12:00:00 AM
SkidOvidiu
5/8/2005 12:00:00 AM
I know , copy , paste on you're browser
SkidOvidiu
5/8/2005 12:00:00 AM
ok if if u can't solve this problem than I have another qoustion:

How can I change my mouse cursor when it's over my flash page ofcourse ?
and if it makes any difference , in Flash MX 2004 Pro

but I would really like to solve my first proble , too :P
SkidOvidiu
5/8/2005 12:00:00 AM
ok if if u can't solve this problem than I have another qoustion:

How can I change my mouse cursor when it's over my flash page ofcourse ?
and if it makes any difference , in Flash MX 2004 Pro

but I would really like to solve my first proble , too :P
kglad
5/8/2005 12:00:00 AM
1. position an empty movieclip in the right-square and load (or attach) your
animations into (or to) your target movieclip.

2. create a movieclip cursor and have it track the mouse after using
Mouse.hide() to hide the mouse. use Mouse.show() to return to the system
cursor.
SkidOvidiu
5/8/2005 12:00:00 AM
1.this is what I have to do?:
insert > new simbol > movie clip > write this on the clips timeline :
function loadContent(fileName) {
this.picture.loadMovie(fileName);
}//loadContent

then on the button Im write :
on (release) {
loadContent('http://Skid.go.ro/Animations/Warcraft/Pheonix.gif');
}// on
if I'm doeing something wrong pls tell me what

2.OK I know so far but I have another problem :
I want to make a cursor of an imported image , (I can't draw it in flash )
and I can't get that image modificated , to make the cursors shape (cause the
imported image comes as a square)
is there any solution?
SkidOvidiu
5/8/2005 12:00:00 AM
I keep asking my question un the same topic so the other questions aren't
forgoten
so ..
I want to put a background music on my flash page but the song has 1.2 Mb ( to
much to load a page )
so can't I do something to load the music step by step ( buffering ) so u
don't have to wait that much
kglad
5/8/2005 12:00:00 AM
1. is probably incorrect because picture is undefined. it's also unnecessary
to create another function like loadContent() that adds nothing to the already
defined loadMovie().

if that right-square is a moviecip, attached to a frame you can use:

_root.createEmptyMovieClip("targetMC",_root.getNextHighestDepth());
_root.targetMC._x=right_square._x;
_root.targetMC._y=right_square._y;

and attached to your button, you can use:

on(release){
_root.targetMC.loadMovie("http://Skid.go.ro/Animations/Warcraft/Pheonix.gif");
}
kglad
5/8/2005 12:00:00 AM
p.s. there's no reason to use an absolute path when your swf file and gif file are in the same domain:

on(release){
_root.targetMC.loadMovie("/Animations/Warcraft/Pheonix.gif");
}
SkidOvidiu
5/9/2005 12:00:00 AM
I made what u said
there are 2 problems :
1.Look where the picture appears http://warcraft3.go.ro/Enter.swf
kglad
5/9/2005 12:00:00 AM
1. you must (properly) define _root.targetMC._x and _root.targetMC._y. if you
used the code i gave, then right_square isn't a movieclip name.

2. yes, i don't believe you can load a gif. that's a flash limitation. you
can import an animated gif and save it as a swf. then you can load it.
SkidOvidiu
5/9/2005 12:00:00 AM
the importing and converting animations works

but the first part I didn't understeand , maybe because I don't know English
or Flash language so well
how do I define _root.targetMC._x and _root.targetMC._y. ?I'm not sure what
define means
I have to make objects _root.targetMC._x and _root.targetMC._y.? movie clip o
something
another thing where do I put the code u gave me for the movie clip? on the
main timeline , on his timeline (double click on him) or on him (action - movie
clip)?and the movie clip needs to be empty or it can contain picture

10x very much for u're help so far , hope I hear from u again
kglad
5/10/2005 12:00:00 AM
_root.targetMC._x=?
_root.targetMC._y=?

AddThis Social Bookmark Button