PDA

View Full Version : swapdepths heartache


Crapatscript
12-10-2001, 08:30 PM
ok, my problem... i understand how to swap depths in the way the tutorial showed... the drag movie crap...

have a look at this...
http://digitalblinx.digitaldoormats.com/ideas/stormy.html

as you can see i have the tutorial part working fine... but what i wanted is that when you click a link, that brings the right window to the top also... now it works ok as in it brings it to the top...
but, try draggin another window and see what happens...
if you click the link again it gets worse, try again...
NOTE:only the home link works, :D

the menu is a movie clip, and i added the same code to the link as is added to the other movie clips with the exception of taking out the drag script... and also changing this.swapdepths to _root.window0.swapdepths

where am i going wrong? or am i not clear enough?

Ricod
12-11-2001, 08:17 AM
Have u read Jesse's follow up to the tutorial ? Cyclic Swap Depths ? Basically u need to use variables to check exactly which one is where in the stack. Search the library for the source code.

Jesse
12-11-2001, 08:55 AM
PS - Search 'cyclic' in the Movies section for this open source.

Crapatscript
12-11-2001, 06:13 PM
ok... so i downloaded the source file, took a look at it :confused: :confused: :confused:

i didn't see a tutorial on this so i am guessing you didn't write one... at least i couldn't find one...
i couldn't understand any of the script in the source... hmmmm, depressing thought...

Jesse
12-12-2001, 06:25 AM
There's isn't a tutorial for that source. have you read the basic swpDepths tute by me though? Basically that source creates an arrawy of which element is highest and swaps each element around so that hte stacking order remains the same, rather than just swapping two elements. But I'm not sure it's what you need based on the post...

Ricod
12-12-2001, 08:00 AM
The problem is that it swaps whatever u click wether or not its the highest. So the cyclic thing should do it ! Also crapat, there used to be a fla too. Maybe thats more clear ?

Crapatscript
12-12-2001, 02:47 PM
i have read the basic swapdepth tutorial...

my problem is that i don't understand the code in the source of the cyclic script... but i'm gonna try some things out and see if i get it...

my main problem is that i want to have links also that when clicked, the rellevant window is on top, that should work now with the cyclic right?

Crapatscript
12-12-2001, 07:25 PM
ok, i know this is getting boring for you guys and all but i just need to know this one thing...

i have worked out with the cyclic, got it working just great...

but i want to be able to make a particular window gotto the top through clicking a link in another movie, how can i go about doing this???

Ricod
12-13-2001, 07:39 AM
On the link put yer code, which checks which one is the highest and if its not the one yer linking to, swapDepths that with the highest. If its already the highest, do nothing. Then, reshuffle .

Crapatscript
12-13-2001, 05:54 PM
i'm beginning to hate flash, it is so damn fickle... that script was working at first, but now it half works and then stops... and goes all screwy... it's probably my **** pc but it's really anoying me and i aint in the mood for it... sorry to bother you guys... later