Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Actionscript / December 2006



Tip: Looking for answers? Try searching our database.

I NEED SOME MORE HELP NOW!!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Seise - 30 Dec 2006 02:43 GMT
Now I´m back with a new animation problem that I need help with. If you look at
my try out page at: http://www.mickesei.se/flash/index.html

The problem I have if I press on "Idéen" button it works OK, and the same if I
press "Fakta" button, but then the problem comes. If I want to go back to the
"Idéen" page again and press on the button the the page opening under the Fakta
page.. Why?

What will I write in the Action Script to open the Idéen page on top?

Please help me..

Micke
kglad - 30 Dec 2006 03:11 GMT
because that's the way you made it.  if you want that animation to be on-top use swapDepths() to change the depth of the most recently added movieclip to be the highest depth.
Seise - 30 Dec 2006 03:23 GMT
Where will I put it?
Here is the code to my buttons:

this.knapp1_mc.onRollOver = function(){
    knapp1_mc.gotoAndPlay("_over");
}

this.knapp1_mc.onRollOut = function(){
    knapp1_mc.gotoAndPlay("_out");
}

this.knapp1_mc.onRelease = function(){
    _root.anim1_mc.gotoAndPlay("1");
   
}

this.knapp2_mc.onRollOver = function(){
    knapp2_mc.gotoAndPlay("_over");
}

this.knapp2_mc.onRollOut = function(){
    knapp2_mc.gotoAndPlay("_out");
}

this.knapp2_mc.onRelease = function(){
    _root.anim2_mc.gotoAndPlay("1");
}

Thanks... Micke
kglad - 30 Dec 2006 03:31 GMT
try:

dep=0;
this.knapp1_mc.onRollOver = function(){
this.swapDepths(dep++);
knapp1_mc.gotoAndPlay("_over");
}

this.knapp1_mc.onRollOut = function(){
knapp1_mc.gotoAndPlay("_out");
}

this.knapp1_mc.onRelease = function(){
_root.anim1_mc.gotoAndPlay("1");

}

this.knapp2_mc.onRollOver = function(){
this.swapDepths(dep++);
knapp2_mc.gotoAndPlay("_over");
}

this.knapp2_mc.onRollOut = function(){
knapp2_mc.gotoAndPlay("_out");
}

this.knapp2_mc.onRelease = function(){
_root.anim2_mc.gotoAndPlay("1");
}
Seise - 30 Dec 2006 03:46 GMT
It didn?t work so i tried this instead:

this.knapp1_mc.onRollOver = function(){
    knapp1_mc.gotoAndPlay("_over");
}

this.knapp1_mc.onRollOut = function(){
    knapp1_mc.gotoAndPlay("_out");
}

this.knapp1_mc.onRelease = function(){
    _root.anim1_mc.gotoAndPlay("1");
    _root.anim1_mc.swapDepths(1)
}

this.knapp2_mc.onRollOver = function(){
    knapp2_mc.gotoAndPlay("_over");
}

this.knapp2_mc.onRollOut = function(){
    knapp2_mc.gotoAndPlay("_out");
}

this.knapp2_mc.onPress = function(){
    _root.anim2_mc.gotoAndPlay("1");
    _root.anim2_mc.swapDepths(1)
}

And it workt with one problem.. I have too press twice at the same button to
get i to work right, look at my page..
kglad - 30 Dec 2006 04:36 GMT
try:

dep=0;
this.knapp1_mc.onRollOver = function(){
_root.anim1_mc.swapDepths(dep++);
knapp1_mc.gotoAndPlay("_over");
}

this.knapp1_mc.onRollOut = function(){
knapp1_mc.gotoAndPlay("_out");
}

this.knapp1_mc.onRelease = function(){
_root.anim1_mc.gotoAndPlay("1");

}

this.knapp2_mc.onRollOver = function(){
_root.anim2_mc.swapDepths(dep++);
knapp2_mc.gotoAndPlay("_over");
}

this.knapp2_mc.onRollOut = function(){
knapp2_mc.gotoAndPlay("_out");
}

this.knapp2_mc.onRelease = function(){
_root.anim2_mc.gotoAndPlay("1");
}
Seise - 30 Dec 2006 04:44 GMT
It?s the same, I have too dubleclick the secondtime I want to get in on the current page...
kglad - 30 Dec 2006 07:20 GMT
does _root.anim1_mc exist when this.knapp1_mc is undergoing a rollOver?
Seise - 30 Dec 2006 18:33 GMT
I don?t know, It works pretty good, but if yo first click on "knapp1" "Id?en"
the anim1 or the bar opens, then you hit button2 "knapp2" and the anim2 "bar2"
opens.. But my problem is when you then click on knapp1 again, first the text
disappear, then when you click again the the bar opens.

Or you can double click on the button, but i want it to reopen on a singel
click.

Here is the code again:

dep=0;
this.knapp1_mc.onRollOver = function(){
    this.knapp1_mc.swapDepths(dep++)
        knapp1_mc.gotoAndPlay("_over");
   
}

this.knapp1_mc.onRollOut = function(){
    knapp1_mc.gotoAndPlay("_out");
}

this.knapp1_mc.onRelease = function(){
    this.knapp1_mc.swapDepths(dep++);
    _root.anim1_mc.swapDepths(1);
            _root.anim1_mc.gotoAndPlay("1");
           
       
   
}

this.knapp2_mc.onRollOver = function(){
    knapp2_mc.gotoAndPlay("_over");
}

this.knapp2_mc.onRollOut = function(){
    knapp2_mc.gotoAndPlay("_out");
}

this.knapp2_mc.onPress = function(){
    _root.anim2_mc.gotoAndPlay("1");
    _root.anim2_mc.swapDepths(1)
}

Is it because I use movieclip buttons and not button buttons you know, _mc
instead of _btn?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.