Kinmaxpu
05-24-2010, 02:15 PM
Hi, im working in my bros. page in swishmax, and im adding some flash and scripts, when i test each flash file in player they work perfect, but when I test them in browser they dont do the rollover, please help me.
I have 6 diferent files: index, button1, button2, button3, button4 and button5, in button3 and button4 i have rollover images for show, as I told you, they work good in player and browser, but when I export them to index.html and button4.swf, it loads the page, but the rollover DOSNT work?
Here is the code in index file:
on (rollOver) {
gotoAndPlay("on");
}
on (rollOut) {
gotoAndPlay("off");
}
on (release) {
_parent[_parent.but].gotoAndPlay("off");
_parent.but="Button4";
_parent.filename="Button4.swf";
_root.LoadingActions.gotoAndPlay("time");
gotoAndPlay("hit");
}
-----------------------
and here is the code in button4:
on (rollOver) {
tellTarget (_root.Content.controls) {
gotoAndPlay("image1");
}
}
onFrame (6, afterPlacedObjectEvents) {
setLabel("image1");
tellTarget (_root.Content.masked_things.things) {
_x -= 300;
_x *= 0.8;
_x += 300;
}
}
onFrame (7, afterPlacedObjectEvents) {
prevFrameAndPlay();
}
onFrame (11, afterPlacedObjectEvents) {
setLabel("image2");
tellTarget (_root.Content.masked_things.things) {
_x -= 0;
_x *= 0.8;
_x += 0;
}
}
onFrame (12, afterPlacedObjectEvents) {
prevFrameAndPlay();
}
onFrame (16, afterPlacedObjectEvents) {
setLabel("image3");
tellTarget (_root.Content.masked_things.things) {
_x -= -300;
_x *= 0.8;
_x += -300;
}
}
onFrame (17, afterPlacedObjectEvents) {
prevFrameAndPlay();
}
------------------------
I can send You the files if You want, please help me
Thanks
I have 6 diferent files: index, button1, button2, button3, button4 and button5, in button3 and button4 i have rollover images for show, as I told you, they work good in player and browser, but when I export them to index.html and button4.swf, it loads the page, but the rollover DOSNT work?
Here is the code in index file:
on (rollOver) {
gotoAndPlay("on");
}
on (rollOut) {
gotoAndPlay("off");
}
on (release) {
_parent[_parent.but].gotoAndPlay("off");
_parent.but="Button4";
_parent.filename="Button4.swf";
_root.LoadingActions.gotoAndPlay("time");
gotoAndPlay("hit");
}
-----------------------
and here is the code in button4:
on (rollOver) {
tellTarget (_root.Content.controls) {
gotoAndPlay("image1");
}
}
onFrame (6, afterPlacedObjectEvents) {
setLabel("image1");
tellTarget (_root.Content.masked_things.things) {
_x -= 300;
_x *= 0.8;
_x += 300;
}
}
onFrame (7, afterPlacedObjectEvents) {
prevFrameAndPlay();
}
onFrame (11, afterPlacedObjectEvents) {
setLabel("image2");
tellTarget (_root.Content.masked_things.things) {
_x -= 0;
_x *= 0.8;
_x += 0;
}
}
onFrame (12, afterPlacedObjectEvents) {
prevFrameAndPlay();
}
onFrame (16, afterPlacedObjectEvents) {
setLabel("image3");
tellTarget (_root.Content.masked_things.things) {
_x -= -300;
_x *= 0.8;
_x += -300;
}
}
onFrame (17, afterPlacedObjectEvents) {
prevFrameAndPlay();
}
------------------------
I can send You the files if You want, please help me
Thanks