ActionScript 2.0 :: Putting A Movieclip Into Highest Depth Without Knowing Which Clip Is In The Highest Depth
May 11, 2004putting a movieclip into highest depth without knowing which clip is in the highest depth
View 2 Repliesputting a movieclip into highest depth without knowing which clip is in the highest depth
View 2 RepliesI'm creating this shooter game. I attached a crosshair mc at the beginning with the depth set to getNextHighestDepth.However I keep adding the monsters mc dynamically when the game progresses, also with getNextHighestDepth. So the monster mc will keep overriding the depth of my crosshair's depth. how to get my crosshair mc's depth always to be on top of everything including the monster mc.I tried getNextHighestDepth()+1000 for my crosshair mc. But it was dumb because the monsters keep getting getNextHighestDepth as well. I assume that monster's depth would be 1001, 1002 and so on...
View 3 RepliesI'm trying to get a movieclip to appear at the highest depth from the library.
View 1 RepliesI'm adding a custom cursor, and I need it to stay at the highest depth. Currently, whenever I add new movie clips to the screen, the custom mouse shows up behind the movie clips, which looks terrible. I have to add movie clips regularly during runtime, but I need the custom cursor to stay above them, just like the regular mouse would.
Here's how I'm adding the custom cursor:
Mouse.hide();
var cross= new crosshairs();
this.addChild(cross);
cross.depth = 999999;
cross.startDrag(true);
I recently downloaded an example of a xml slideshow from here
However I am having the hardest time trying to put another layer with an image, like a border over the slideshow. I have scoured google for solutions however anything actionscript i throw in to try and get the added layer to have the highest depth just does'nt work.
I'm adding a custom cursor, and I need it to stay at the highest depth. Currently, whenever I add new movie clips to the screen, the custom mouse shows up behind the movie clips, which looks terrible. I have to add movie clips regularly during runtime, but I need the custom cursor to stay above them, just like the regular mouse would.[code]...
View 6 RepliesI'm not sure how I would bring my buttons to the highest depth. I just finished the Kirupa slideshow, but the only prob is that the pics keep hiding my buttons.
View 4 RepliesWhen I trace the next highest depth at the initial frame of my SWF it returns 9877. Is this due to the way I setup the objects and layers through authoring? The reason I ask is that this is somehow interfering with my attachMovie and unloadMovie (unloadMovie stops working after another 6 extra depths).
View 6 RepliesIf I want an object to obtain the highest depth onRelease, which method from the following (or any other) would be the best? Using a createEmptyMC at highest depth and then swap to with that hight or use DepthManager.setDepthTo()?
View 2 Repliestrying to on mouse over set the parent of the moused over text field to the highest depth child of its parent i tried both of these: [code] private function
[Code]...
how do i load a movie clip SYMBOL at the highest level and then unload it.
i dont want a SFW or JPG to be loaded- that would be one of the symbols from the same swf file.
the issue is- i have used "getNextHighestDepth()" to create movie clips.. now i need to add a box on top of that- so again, i will have to use "getNextHighestDepth()" - which im having hard time to unload (when i use duplicateMovieClip) -
I am making a 3d engine using formulas from a different language and its coming along nicely but I am having depth issues. How do I set the depth of an object within the script? I need the depth to change so I objects that are farther in the distance are further behind other objects.
View 4 RepliesI have 3 movieclips and inside them loads external txt.files .To MovieClip number one loads 1.txt, to number two loads 2.txt and to number three loads file 3.txt.Allright everything works, but......what if I wantet to load the txt-file that has the highest number to the first movieclip example 65.txt, and to number two the 64.txt, and to movieclip 3 txt-file 63. And when there is txt-file called 66 in the folder it loads to movieclip one, and 65 loads to movieclip 2 etc... I think everybody gets the point.Is it possible, that Flash look up the txt file that has the highest value?
View 8 RepliesI'm having a huge problem trying to place movie clip under other stuff. Here is the thing I have three layers and I need to place vid_mc on the midle one i've tried creating a movie clip and intancing it as vid_mc and removing de addChild (vid_mc) from the code but ir didn't work.
[Code]...
is there a way to set the depth of a movie clip instance that is on the stage, ie. not created via createEmptyMovieClip, attachMovie, duplicateMovieClip and so on? Something like
View 5 RepliesI know when you assign an empty movieclip or a movieclip to the stage via actionscirpt you have to set a z depth on the layer.
Is it possible to change the depth of the movie clip? If so how?
I'm re-arranging how I have the movie set up (I used to have it in multiple .SWF's, but now I'm making it into one big movie), but I've ran into a snag. I don't know how to assign a movie clip a depth. The reason this is a problem is that if I were to attach a movieclip (Say Movie1), it would overlap another movieclip's (Movie2) drop shadow.Movie2 isn't assigned a depth because it's loaded along with the first movie, but Movie1 is assigned a depth when it's loaded on a click
View 1 Repliesi have 3 variables and im executing a block of code depending which on has the highestow do i determine has the highest and the execute the code which ever has the highest
View 3 RepliesI have a shape and I want to find out what the highest y value is for an x value.Example: I have an oval, and with width 200 px. I input an x value like 78 px from the left and I want to know what the highest y value is that matches the x value (the top of the oval at point x)
View 3 Repliesi had to remove the flash built form and place an iframe over the top of the animation with an html form! (my reason was that the exported flash file always recognised keystrokes as that of an american keyboard and the @ sign came out as this "when you hover over the icons at the bottom which bring up information contained in a button, it falls behind the iframe.is there anyway in which i can make that particular button that contains a movieclip get the next highest z index to go above the iframe?FYI:-i have tried this on the button instance but does not work...
on (rollOver) {
this.getNextHighestDepth();
}
[code]....
on this page .i had to remove the flash built form and place an iframe over the top of the animation with an html form! (my reason was that the exported flash file always recognised keystrokes as that of an american keyboard and the @ sign came out as this hen you hover over the icons at the bottom which bring up information contained in a button, it falls behind the iframe.is there anyway in which i can make that particular button that contains a movieclip get the next highest z index to go above the iframe??FYI:-i have tried this on the button instance but does not work...
on (rollOver) {
this.getNextHighestDepth();
}
[code]......
I've got a looping slideshow. I'd like to place a sliding menu at the bottom of the screen. The problem is I've created the slideshow dynamically, and the images being loaded all inherit a depth greater than 0.
how I can place the sliding menu at the very top of the presentation when it's already on the stage?
how to set the depth of a movie clip that is on my main timeline?
View 1 RepliesI m looking for method similat to MovieClip.swapDepths(depth).what is the method in as3, i have movieclips i wanne update those deths
View 4 RepliesHow can I set the depth for a movieclip.Actually I want my popup to always come on the top and there is some problem using swapdepth.Would it help setting the depth of movieclip to be something like 10000??
View 1 RepliesI'm trying to set the MovieClip I MOUSE_DOWN on to the highest index using
var mcToMove:MovieClip;
mcToMove = this[e.target.parent.name][e.target.name];
trace(mcToMove is MovieClip); // "true"
setChildIndex(MovieClip(mcToMove), (this.numChildren - 1));
but I think it's only giving me the e.target.name and not the whole path that includes the parent mc as well.
ok so in actionscript using xml I can find all the nodes of the same name using
xmlList.descendants("nodename");
and that returns me a XMLlist of those nodes that exist within the xmlList I provided all well and good but now I want to only get the one node of the returned value that has the largest value.
Do I have to loop through the resulting nodes or can I get that node without a loop maybe some other xmllist function I'm not aware of ?
How would I go about returning which object in an has the highest (numerically) of a particular variable? The variables are randomly generated.
[Code]...
I have an array of image width values pulled from XML. I want to simply look at the array and return a value that is equal to the highest number in the array. e.g. the array might end up like array [250,600,350,375]and I just want something that returns the highest value (in this case the 600).
View 9 Repliesway to find the highest number in an array? umbersArr(314,2613,221,103,77);is there a way to loop though this, compare all the numbers to each other and find the highest value while keeping the array in order?
View 14 Replies