Set Alpha Transparency For The Swap Depth Movie Clip
Hi friend,
I need to set the alpha transparency for the swap depth movie clip. I am hereby sending you the queries in jpg files format . Please help me out. Expecting your earliest reply.
Regards
Rajesh
ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 08-16-2005, 10:04 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Swap Depth With Another Movie Clip?
hello all,
i have 2 clips on my stage.
how can a swap the depths between the two of them?
in addition, how can i set the depth of a MovieClip?
Thanks for any help.
i used to do this:
clip1.swapDepths(clip2)
but AS3 has changed things, and i cant find the equivalent.
Swap Depth The Movie Clip In Flash
Hi,
Queries
------------
The problem that I am facing now is I cannot close the small thumbnail window using the close button in the top of the small thumbnail window. Could u pls give explain me how to close the small thumbnail window. and also how the alpha transparency of the large image window can be set i.e when i am clicking the large image window 1 that should appear brighter and the remaining imagae windows 2,3,4 should appear dull and also I am having another doubt if I open the large image from the first gallery and the second large image from the second gallery is that any possibilities there to swap depth that two movie clip. Expecting your earliest reply.
To view the source file pls check this url
http://216.69.167.77/flashquries/
Warm Regards,
Rajesh
Getting Dynamic Random Movie Clip To Swap Depth I Think?
Hi all on the forums. I hope you guys can help.
This is what I have done. experimenting thus far.
I loaded some data form an XML file into flash.
Then looped through the XML nodes and attached a movie clip to each of the nodes and data.
and to finish it off i added random movement to the movie clips.. they keep moving to new X and Y coordinates.
However if a movie clip in the lower part of the stage is moving up to the top portion of the stage it does not appear in front of the movie clip as it advances upwards.. and vice versa.. sometimes..
I am not sure if this happens because of the line of code that attaches the movie clip automatically attaches the clip to the next depth. The line is as follows.
Code:
var t = attachMovie("image","image"+i, i);
I am stumped.. what i would like to happen is as they advance towards each other those with the greater Y value (nearer the bottom of the stage) appear as it they should which is appear closer. I think that is the correct term I am using...
So any suggestions is appreciated.. Thanks for the help...
Using A Button To Control The Transparency (alpha) Of A Movie Clip
Hello i am completely new to the forum and i have been racking my brain searching for tutorials on this, i have done a search on buttons controlling movie clips and alot of stuff did come up but it was not exactly what i was looking for.
i am creating a HUD ( heads up display) for a game me and a few friends are making, i have windows i made in photoshop and turned into movie clips which i would like to control using buttons.
What i would like to do is when i click the buttons i would like them to control the transparency of the windows, for eg. when i click my button i would like the window to appear at 100% then when i click it again for it to go to 0% as if i have closed the window.
Any help would be greatly appreciated as this has had me up late so many nights. I am using flash cs3 and action script 2.0 as i a familiar with it.
Swap Depth/Load Movie
Im stuck again!.............basically, i have a slide in menu on the left hand side which works fine and i also have a load of buttons on that menu (in the form of brightly coloured boxes. at the minute!) On the button nearest the top i have put some action script asking it to load swf/image1.swf into the movie clip "photos," this works fine untill i add a swap depth action on the movie clip containing the button. im stuck! all the other buttons have a swap depth action on but no load movie, can someone please help me - i want to be able to load the movie and swap the depth of the button! here is the FLA (cos i probally sound like im talking rubbish!)
Any help would be greatly appreciated
Swap Depth With Attach Movie
this is driving me crazy!! I am trying to mask a mc I am attaching from my library with a mc on the root timeline.
I thought it could be done with swapDepths, but I can get it to work. any suggestions.
ActionScript Code:
_root.mask_mc.swapDepths(butTemp);
ActionScript Code:
newBut = attachMovie("butTemp", "but"+i, i, 0);
:
Problem About Depth Of Objects..(swap Depth) Plse.help
umph..hello i'm nameg sir
i'm trying to do dragging project. drag isomatric object in small room(isomatric view too) for test installation..(so i necessary have foreground objects,background objects ..u know)
now i can drag many objs. in same movie when i press it , by i use swap depth command (for see it above other)and drag it around sometime it works...but sometime it don't!...
1..... some obj. automatic swap its depth! when i release other one....i don't know why
2. some time i dup. new obj. to drag and it del some old obj. that call before
ps. i use swap code from this site tutorial ...s.a.Drag & Drop / Swap DepthsAuthor by : estudioworks
thank u so muchhhhhhhhhhhhh
Swap Movie Clip?
I am using draggable movie clips as navigation menus in my file. Throughout the file, the movie clip instances change depending on what point in the file you are at. But I want to keep the (x, y) location of the movie clip constant so that when the user drags the movie clip (not locked to any specific area) to a new area of the screen, the next scenario (instance) of the clip is in the new location. Is this possible, and if so can someone please explain how to do this?? I have been exploring set variable, get property and droptarget scripts but I am not having any success so far. Thanks.
Movie Clip Swap
Hi guys,
I am looking for a very evasive code. What I am looking to do is this:
onRelease{
If the playing of movieclip1 = true play movieclip2
else
if the playing of movieclip2 = true play movieclip1
}
Naturally... that is horribly wrong but hopefully you get the idea. Any hints/tips on where I should go to find the answer to this puzzler?
Thanks in advance.
Swap Movie Clip
Hi
can anyone help a newbie to coding. I just want a function on a button that swaps a movie clip from the library with one in the stage. Does anyone know what the code would look like on the button?
Cheers
Help is appreciated!
Swap A Movie Clip
In Flash MX is their a way to swap an exisiting movie clip on the stage with one from the library?
Mouse Rollover On One Movie Clip Increase Decrease Alpha Of Another Movie Clip..
So I really haven't messed with Actionscript much for a couple years and here is my issue.
I have several movieclips I put together that will eventually be a menu for my website. When you roll over a menu option (movieclip) I am trying to get another movie clip to fade in giving the description of the menu item.
For example - when you roll your mouse over the 'Live Chat' option a brief text description would appear telling you what the live chat is about. This description is a seperate movie clip appearing away from the original menu.
I have made the movieclips for the menu and the movie clips for the descriptions. I tried this action on the menu option to get the description to fade in:
Code:
onClipEvent (load) {
this._parent.mc_text_discussionBoard._alpha = 0;
}
onClipEvent (enterFrame) {
this.onRollOver = function() {
if (this._parent.mc_text_discussionBoard._alpha<100) {
this._parent.mc_text_discussionBoard._alpha += 5;
}
};
}
But the alpha only increases on the description (mc_text_discussionBoard) by 5 when I keep rolling my move over and out and over again. It makes sense why it does that, but I'm not exaclty sure how to get it to continually increase the alpha by 5.
any help would be great and I am anxiously waiting to get this solved!
Kevin
Movie Clip Swap Layer
I have several movie clips on several layers. I need to be able to bring any one of these move clips to the front when the user clicks.
Does anyone know the proper action for this?
How To Swap Instances In A Movie Clip?
Hey everyone, hopefully this should be an easy answer. I haven't had a lot of experience with actionscript other than setting up navigation for a website.
What my team is trying to do right now is build a game. It is a game where the user can build their own bike from different parts, and then test it in other challenges.
Right now I'm at the stage where they are building the bike. The first thing I'm trying to set up, is allow the user to push 3 different buttons that will change the appearance of the tires. I have the bike on a movie clip, then the tires on another movie clip within that, and then three different types of tire movie clips within that tires clip (make sense? bike>tires>3 tire clips). So I think the easiest thing would be is to somehow script each button on the root frame to just swap out the instance of the tire (the three types are: thick, aerodynamic, and trick).
I tried looking at the help and seeing if I could just have each one change visibility, but that wasn't working out well for me. Thanks for your help ahead of time!
Swap Depth
I have 5 buttons i my menu and have made a MC for each of the buttons. The MC's has their own layer. The problem is if u press
BTN 5 first then press BTN 1. The button 1 MC start playing under the MC related to BTN 5.
I was told that I have to use a swapDepth action. The button actions that I have used is:
on (release) {
_root.instance name.play();
}
what will the the swapDepths action be?
Swap Depth Nav
I am creating a swap depth nav
there are movie clips on the main stage each has a button inside
Kind of lost
-thanx for the help
p2studios.com
Swap Depth
hi folks,
can anybody please help me with some actionscript trouble?
in the attached file I sent you my problem. I got a master movie which loads over some buttons external swf's into my master movie. these swf should be able to swap their depth-value when clicking on them (like you already know it from MS Windows).
Until this point everything works fine, but if I load all the movies on my stage they dont behave as they should.
when I click on movie1 to bring it up on top of the others, movie3 is also kicking through. Is tere a way to avoid this effect?
every support is appreciated.
bye
smik
Swap Depth
i load external movie with loadMovie action.
It loads the SWFs into the movie correct.
I have problem, how simply switch between the loaded movies.
The last loaded movie overlay all loaded movies.
How is possible do it the swap of the loaded movies?
Please see the file u will understand.
Swap Depth
dunno why i am posting here again after 10000 posts for help and never got any bloody replies or help but still gonna give it last shot....
http://www.galleysgourmet.com/working/
(preloaders not in yet so might be a while as u see blank screen)
i got this problem of swapping depths. currrently the windows can swap depths when u click on itself, but if u open a new category, i could'nt get the depth to swap... any idea how should i do this? (go to EVENTS category and you'll know what i mean)
on the window to swap i had this script
on (press) {
_root.depthSwap(this._name);
startDrag(this);
}
on (release) {
stopDrag();
}
i figured if i dump this script on the buttons, it would make it swap when opening window... but it doesnt work no matter how i edit...
any help would REALLY BE APPRECIATED....
Swap Depth?
Hello,
I have a movie that is putting an mc under another. The mc that it's putting it under is undefined so far (not sure exactly how to define). I tried swap depth and on all of the other clips that I tested it with, I noticed it changing (they were undefined too says the trace, while the one I'd like on top shows up at depth 1).
So, my questions are: how do I define the depth of a clip before I put in swap depths if it hasn't been done, why is it showing up as undefined- I thought there was a default value,16383, for the depth ( I used thse directions) http://www.allflights.net/Macromedia...3lev1sec2.html
And last, is this the best way to get the clip on top of the others?
(note: the clip that is showing up on top is done all in action script while the other which I'd like to be on top is in the timeline. Maybe as overrides timeline clips?)
Any help would be appreciated.
Swap Depth
I´ve been working on my homepage for a while now. Bumped in to a problem the other day.
I have several rollout menus, each containing several buttons.
Every menu corresponds to a gallery and every button to a specific image in that gallery.
The menus are placed on different leyers on frame one on the main timeline.
Within every menu i´ve placed the corresponding gallery wich are invisable and become visable on press on one of the menu buttons
The problem is when i enter menu nr3 on leyer 3 and press one of the puttons to display the image in the gallery the image is displayed under the layer 1 and layer 2 so the menus 1 and 2 float on top of the image.
I´ve read about swap depths but don´t have a clue on how to apply it to my menu....
I´ve attached a fla
Would really apreciate if anyone can take the time and have a look.
//Dr.
Please Help Swap Depth
how do i control when the swapdepth happens in the time line of the movieclip whose depth i want to swap?
I want the depth to be swapped at the height of the menu buttons jump.
all the buttons overlap but when you rollover they jump.
here is the file
thanks
Swap Depth
Can someone please tell me why this swapdepths doesn't work?
heres the fla
http://www.soccerschool.com.ar/f/swap.zip
Here's the code:
Code:
//Action attached to frame 1
function depthSwap (x) {
for (i=0; i<cA.length; i++) {
if (cA[i] == x) {
xPos = i;
}
}
i = xPos;
for (i=xPos; i>0; i--) {
_root[x].swapDepths(_root[cA[i]]);
cA[i] = cA[i-1];
}
_root[x].swapDepths(_root[cA[0]]);
cA[0] = x;
}
cA = new Array();
for (i=0; i<7; i++) {
cA[i] = "c"+i;
}
//Action on the movieclip called c1 - the same on the other called c2 -
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse, false));
{_root.status = ( hitTest(_root._xmouse, _root._ymouse, false));
_root.depthSwap(this._name);
}
}
Swap Depth
i have 3 button that load 3 images, i have 2 movieClips when first button is clicked it loads 1 movieClip with the image and the 2nd button clicked once loaded would fade out the first(top) mc . and it would just keep swaping based on if its loaded.
PHP Code:
function swapPhoto(newHero) { var currHero = newHero; if (newHero == currHero) { _root.picture.loadMovie(newHero); _root.picture.swapDepths(_root.picture2); trace("D1"); } else { _root.picture.loadMovie(currHero); _root.picture2.swapDepths(_root.picture); trace("D2"); }}
Please Help Swap Depth
how do i control when the swapdepth happens in the time line of the movieclip whose depth i want to swap?
I want the depth to be swapped at the height of the menu buttons jump.
all the buttons overlap but when you rollover they jump.
here is the file
thanks
Swap Depth
Can someone please tell me why this swapdepths doesn't work?
heres the fla
http://www.soccerschool.com.ar/f/swap.zip
Here's the code:
Code:
//Action attached to frame 1
function depthSwap (x) {
for (i=0; i<cA.length; i++) {
if (cA[i] == x) {
xPos = i;
}
}
i = xPos;
for (i=xPos; i>0; i--) {
_root[x].swapDepths(_root[cA[i]]);
cA[i] = cA[i-1];
}
_root[x].swapDepths(_root[cA[0]]);
cA[0] = x;
}
cA = new Array();
for (i=0; i<7; i++) {
cA[i] = "c"+i;
}
//Action on the movieclip called c1 - the same on the other called c2 -
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse, false));
{_root.status = ( hitTest(_root._xmouse, _root._ymouse, false));
_root.depthSwap(this._name);
}
}
Swap Depth I AS3.0
Hello All... first of all im very happy to be here in this forum... thanks a lot!
I want to make a Circle and Square over that circle, but when i press the square that square will swap over the circle... i think this function in AS2.0 was executed by swapDepth but i never used it in AS2.0.. so i want to code it now in AS3.0 but i don't have any idea about the code.. someone can help me with this?
thanks a lot guys!
Swap Depth
i have an external movie with three movieclips/buttons inside it and i would like the depths of these to be swaped when clicked, so the clicked one is always on top. How would i do this?
Thanks
Square
Swap Depth
allow me to ask a simple question. I have 50 buttons that I can drag around, and I want to change their level when I click anyone of them...like if there's 3 buttons stacked to each other, when I click on the bottom one, it'll come to the front, and be the top one...how should I make this work?? thank you!!
Swap Depths Is Duplicating Movie Clip?
Hello,
I've got a looping animation where I want a couple clips to be able to jump around depth wise, but for some reason every time the timeline hits the swapDepths command, it duplicates the clip, leaving one sitting there static while another one does the desired animation. Well the first time through it's fine, but every time it loops is when it duplicates.
I've tried it on the timeline level as
e1.swapDepths(100);
and on the clip level (with a keyframe) as
onClipEvent (load) {
this.swapDepths(100);
}
But it does the duplication either way. I just want to be able to pick one of the clips to bring to the front on various keyframes.
Any ideas what I'm doing wrong? Thanks!
Swap Depth Inside MC.. ?
Hey.
Ok i have an MC.
Inside of it I have 3 other MC's that i want to use swapDepth
1st frame
------
level0:highest = "2";
------
on each of the drag bars (of the 3MC's) i have:
------
on (press) {
this.swapDepths( "_level0.window" + _level0:highest );
_level0:highest = substring ( _name, 7, 1 );
startDrag (this);
}
on (release) {
stopDrag ();
}
------
its works fine if its not inside an MC so is it the _level0 thats screwing it up?
THX in advance.
Swap Depth Problem
Hi all!
i am having a little problem "swapping depth" between several MC's that load on different levels into a main movie. i thought that perhaps some more experienced "FlashHead" could shed some light on this issue and stop me from pulling any more hairs out of my head....
specifically, i designed a neat little navigation system with 5 different movies (menu options) that load into levels 8, 7, 6, 5, & 4. i've gotten evertything to work, but MC's that load in at lower levels are covered up by higher ones. i tried by putting a button with the swapDepth command, but i don't think i have the action script quite right.
any help would be greatly appreciated. ;-)
-otama
Managing Swap Depth With Mc's
I have a set of thumbnail images. Each is a button that triggers the mc with the larger image to play. It slides out from the side of the movie, in its last slide out keyframe is a command to send the previously selected image mc back to frame 1.
That parts fine.
I used swap depth to bring the selected image mc to the top. I store the name of the selected mc in variable, when the next mc is selected I swap with it. It works but what I really need is the old image to slide out over the last viewed image.
To do this the "stacked" order of the mcs needs to be managed better. The new one has to come to the top and the last viewed has to go down to the level below.
Any idea how I can achieve this.
tutorials, code, suggestions, anything please
mark
Simple Swap Depth. How?
how do i make several windows swapdepth when i click on them. i had one that worked fine until i had more than 2 windows that had to swapdepth.
thanx
_level / Depth -- Swap
I,m building an app .. in wich I duplicate some Movies
therefore I use a container in _root; when I duplicate this container, it's placed in _level0 ..
Now when I load a SWF they load in _level1, over the other clips....
Is there a easy way .. to duplicate the movies in level2- or swap to level2 ..
I was thinking of loading an Movie with the container on level2 and duplicating that ..
THNXX in advange
Nyls
Will Swap Depth Work?
Hi all,
I'm new to actionscripting so please bare with me.
Basically I have 5 movie clips all in the same frame of my main timeline. There are 5 buttons, each of which will load its respective movie.
I would like to have it when the user clicks on which ever button, it will load its corresponding movie on TOP. I have tweening going on in the clips so I'm trying to create the illusion of stuff being added when you click on button 1 thru 5. This can be achieved with loading into levels, but of course only the movie on the highest level will be on top at all times - you can't click on button 1 and bring that movie on top.
Swapdepth can work in a sense but I've only been able to figure it out where it kicks out the previous movie, as if I were loading them into a container movie clip. I would like to keep the effect that can be achieved with levels, with each movie clip being added to one another.
I hope that isn't too confusing. Any help would really be appreciated...
Swap Depth Question Again
Hi,
I've got some trouble on using swap depth (i asked this question 2 days ago, but seems not work..). Let me describe what i've done.
I have create two layers in Flash. "upper layer" & "lower layer". I simply draw a big rectangle on "upper layer" and put a small rectangle movie clip on "lower layer". Here is the script for the movie clip.
onClipEvent(mouseDown) {
startDrag(this)
this.swapDepths(10);
}
onClipEvent(mouseUp) {
stopDrag();
this.swapDepths(0);
}
seems very straightforward...The purpose is: Before i drag the movie clip, the small rectangle movie clip should be covered by the big rectangle. Whenever my mouse is down. The big recentangle would now be under the movie clip, it works..but I want to make it below the big rectangle again whenever the mouse is UP. But now it is still on top of the big rectangle forever. Is there something wrong of my script? thanks.
Swap Depth Question
Hi,
I've got some trouble on using swap depth (i asked this question 2 days ago, but seems not work..). Let me describe what i've done.
I have create two layers in Flash. "upper layer" & "lower layer". I simply draw a big rectangle on "upper layer" and put a small rectangle movie clip on "lower layer". Here is the script for the movie clip.
onClipEvent(mouseDown) {
startDrag(this)
this.swapDepths(10);
}
onClipEvent(mouseUp) {
stopDrag();
this.swapDepths(0);
}
seems very straightforward...The purpose is: Before i drag the movie clip, the small rectangle movie clip should be covered by the big rectangle. Whenever my mouse is down. The big recentangle would now be under the movie clip, it works..but I want to make it below the big rectangle again whenever the mouse is UP. But now it is still on top of the big rectangle forever. Is there something wrong of my script? thanks.
I Don't Understand Swap Depth
Hi there.
I tried looking on the other posts for swap depths and I don't really understand it... tired a few different bits of code to no avail.
Basically I need the 1st and 2nd squares to swap depths. When you rollover the 2nd square, it is partially covered by the 'BIO' text of the first.
Ideally, I'd like ALL the squares to swap depths in case I need them to, i.e all come to the front.
Attached is my Flash MX FLA.
Any help would be fantastic.
Swap Depth Question
Hi everyone...is there a way or a code to swap the depth of a mc, to move it to the top. If I have 9 pictures loading into empty mc's, I want the viewer to be able to click on the open picture in the corresponding mc and have that pic/mc be the top depth. Is there a code to automatically make the mc that the person clicks on to be the top depth?
Swap Depth Question
Hi,
I've got a combobox with a few values in there, and what I'm trying to is have a number of movieclips over-lapping on the same layer, but be called to the from using the swapDepth feature. I might be going about it all wrong, but the reason behind this is that within the 'menu item' movie clips, there are draggable clips which I want to reamin on the stage while you can look at the rest of the menu items. (I hope this makes sense)
The code that I'm trying is ;
on (release) {
(style.getSelectedItem().data).swapDepths(BLANK);
}
Where my combobox is called 'style'.
Any help would be appriciated.
Thanks,
Berzenjak
Swap Depth Problem - Need Some Help
Hi,
I have 6 MC (rectangles), which I've given instance names b1 to b6 and which each containe a button which when clicked expands the selected rectangle over the full screen width and height.
The button contains the following script :
on (press) {
this.swapDepths( "_level0:b" + _level0:highest);
_level0:highest = substring ( _name, 7, 1 );
_root.back1height=520;
_root.back1width=680;
_root.win1height=465;
_root.win1width=680;
}
I've added the following script one the timeline :
_level0:highest = "6";
back1width=220;
back2width=220;
back1height=255;
back2height=255;
win1width=220;
win2width=220;
win1height=200;
win2height=200;
What I require is that when I click the button of the selected MC, this MC swaps depth with the remaining 5 MC's (goes on top). But with the script used it doesn't seem to work.
Can anyone help me out with this.
Thanks,
Smalco
Swap Depth Of Levels
is there anyway to swap the depth of levels, e.g if I have a movie loaded with loadmovie in level11 can I swap it with another movie loaded with loadmovie which is in level20? swapDepths doesn't seem to work for this.
TIA
percepts
Swap Depth Problem
Hi
I am having a strange problem with my swap depth code.
As soon as I drag the mc, the mc I drag reloads in its original place again so i end up with 2 copy’s of the mc I just dragged. When I take the swap dept code out of the button and drag the mc it works fine.
This is what I have done: I put this code on the first frame in main timeline
depths = 300;
I then put this in all of the buttons that drag the mc they are in:
_parent.depth++;
this.swapDepths(_parent.depth);
any ideas on why its doing that and how I could fix it?
This is a link so you can see what I am talking about:
www.flasexpression.com/firstpage.html
Drag the yellow bars of any of the menus an you will see what I mean.
any help in this will be much appreciated.
Swap Depth Of External Swf
hi everyone does anybody have an idea on how to swap depth of an external movie within the main movie..?
......it would be a great help if anyone can help me thanks ahead....
Swap Depths Set Max Depth
So, i thought i had this under control, but it still has bugs. I have a movie clip that i want to be set at the highest depth, so it will cover up these two other movie clip i have. These two moive clip are dragable and they swap depths. The problem i am having is that my two movie clips that swap depths are getting put at the highest depth, regardless of the code in place.
In the time line i have this code:
Code:
MovieClip.prototype.getMaxDepth = function() {
var maxDepth = 1;
for (var i in this) {
if (this[i] instanceof MovieClip) {
if ((this[i]).getDepth()>=maxDepth) {
maxDepth = (this[i]).getDepth()+1;
}
}
}
trace("maxDepth:"+maxDepth);
return maxDepth;
};
this.attachMovie("this.anim1.contactBox_mc", this.getMaxDepth());
this.attachMovie("this.anim2.infoBox_mc", this.getMaxDepth());
I have this code on the movie clip that i want set to the highest depth (it is placed inside my moive clip in the timeline):
Code:
var fdepth= this._parent.getMaxDepth();
this.swapDepths(fdepth);
Any ideas for me?
Swap Depth Trouble
ok i have all the code in there but for some reason it wont work so if someone could take a look and possibly find the problem then i would be grateful
The file is in Flash 5 format
Swap Depth Problems
hi, can anyone help me fix some code, i am using the swap depth function.
i have a movie with 10 thumbnail buttons, that open 10 images into a container (mc1). then the image is swaped to a lower depth container (mc2), and any new image loaded afterwards always appears in the upper container, and so infront of the older image.
that works fine, but then i added an additional 10 buttons and just copied the code into an additional location of the timeline in the same movie, and now it screws up. the screw up causes images to load into the lower container, under an already loaded image, it is intermittent and sometimes the first 10 images load in reverse, and sometimes the second. i have tried a few things like swiching the layers of the containers. but how i have it seems logical with container 1 (mc1) on a higher layer than container 2 (mc2). but strangely this doesn't always work and seems to work in reverse too, sometimes for both.
i test it and it works fine and then sometime later i find it doesn't work. not sure the cause, but i think the solution is a quick simplification of the code and possibly even just th location of it and ordering of the containers. i have the same code in 3 locations in the same clip-
scene 2- frame 10
scene 3- frame 1
scene 3- frame 26
attached is the fla- ex23mini.fla.zip (240k)
to see it in operation go to- www.youare.com and click on 'world', then click on '31', or '11', or '28'.
i am a action script novice and i would like to minimise overall changes to the code.
thanks for any help, i definately appreciate it.
mark
ps. if you have any comments on the site in general, let me know. thanks
Swap Depth Problems
hi, can anyone help me fix some code, i am using the swap depth function.
i have a movie with 10 thumbnail buttons, that open 10 images into a container (mc1). then the image is swaped to a lower depth container (mc2), and any new image loaded afterwards always appears in the upper container, and so infront of the older image.
that works fine, but then i added an additional 10 buttons and just copied the code into an additional location of the timeline in the same movie, and now it screws up. the screw up causes images to load into the lower container, under an already loaded image, it is intermittent and sometimes the first 10 images load in reverse, and sometimes the second. i have tried a few things like swiching the layers of the containers. but how i have it seems logical with container 1 (mc1) on a higher layer than container 2 (mc2). but strangely this doesn't always work and seems to work in reverse too, sometimes for both.
i test it and it works fine and then sometime later i find it doesn't work. not sure the cause, but i think the solution is a quick simplification of the code and possibly even just th location of it and ordering of the containers. i have the same code in 3 locations in the same clip-
scene 2- frame 10
scene 3- frame 1
scene 3- frame 26
attached is the fla- ex23mini.fla.zip (240k)
to see it in operation go to- www.youare.com and click on 'world', then click on '31', or '11', or '28'.
i am a action script novice and i would like to minimise overall changes to the code. thanks for any help, i definately appreciate it.
mark
ps. if you have any comments on the site in general, let me know. thanks
|