Next Highest Depth Problem
I'm building a tool that will allow users to draw shapes over another image. I'm importing the image as the background of the stage, and then placing the drawn shapes over that background.
I was successful in importing the background and the shape drawing scripting, however I'm trying to add a control bar over the background image to allow users to choose options before drawing, and I can't figure out how to control it's depth. I placed the control bar on the stage, but it's being hidden by the background image, which is being placed as such:
Code: var bgImage:MovieClip = this.createEmptyMovieClip("bgImage", this.getNextHighestDepth()); if (!url) url = "http://mysite/image.png"; bgImage.loadMovie(url); bgImage.moveTo(0,0); Any tips on how to define the depth of the control bar MC show it will show up OVER the background image?
Thanks in advance you geniuses.
porpoise
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 03-20-2007, 03:59 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Question About Depth And Highest Depth
Hello hello
I am learning AS and am now at the depth story.
I have questions about it : when I create an empty mc, where different swfs will load in ( loaded on main stage by several movie clips) is it interesting to use the getNextHighestDepth command ??
Thank you action scripters !!!
Highest Depth
I have a button that calls one of my photos but everytime the photo comes the photo hides my button what is the action to keep my button at layer 2 or something like that
Highest Depth
putting a movieclip into highest depth without knowing which clip is in the highest depth
Get New Highest Depth
If 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() ?
Next Highest Depth In AS3
I have a test FLA with four movie clips that when the user rolls over them I want them to rise to the top, I have some AS2 code for this but I'm struggling to convert it.
Can any one provide me with some sample code?
Thanks
Ricky55
Highest Depth
putting a movieclip into highest depth without knowing which clip is in the highest depth
How To Make Something Highest Depth?
I can't figure out the right syntax to make an object in my movie go to the highest depth. I'm doing this inside a swf that is loaded into my main swf.
This is what I have but it's not working
code:
var nextDepth:Number = this.getNextHighestDepth();
targetClip.swapDepths(nextDepth);
I'm wondering since I'm calling this inside of a loaded swf if I should be using "this"? Not sure why it's not working.
[MX04] Get Highest Depth In A Mc
I have a list that adds mcs dynamically on stage. When I click on a mc it get the depth and name of that mc (ie mc4, depth 4 )
I trying to get the highest depth on stage, so if there 20 mcs, I get depth 20
When I click on a mc, that mc is deleted, I then want to target all the mcs from (ie depth 4) to move up in the Y axcess.
So if theres 20 mcs on stage and I click on 4.
5 to 20 moves up say 100px's
Need help with the bits in red
Found the below code to find the highest depth in a mc but could not get it working. Can somebody help me in understand it
PHP Code:
/* gets the highest depth in a movieclip */
MovieClip.prototype.highestDepth = function(){
var curr, high = undefined;
for (var clip in this){
if (!isNaN(curr = this[clip].getDepth()) && this[clip]._parent == this){
if (curr > high || high == undefined) high = curr;
}
}
return high;
}
Three Mc's To The Highest Depth/level?
hi all,
still wrestling wildly with as3 - i 'do' think it will be worth the migration - but at the moment am trying to get my head around even the simplest of tasks!
okay if i have three mc's on my stage named sprite1 sprite2 sprite3 and i want them to sit above the image wall created by this script how do i do it?
PHP Code:
/*Created by Min Thu http://www.flashmo.com AS3 References and Credits http://blog.papervision3d.org/ http://theflashblog.com/?p=306 http://www.gotoandlearn.com/ http://www.onerutter.com/ http://labs.blitzagency.com/ http://vilebody.wordpress.com/2007/11/29/3d-papervision-plane-events/*/import org.papervision3d.scenes.*;import org.papervision3d.cameras.*;import org.papervision3d.objects.*;import org.papervision3d.materials.*;import fl.transitions.Tween;import fl.transitions.easing.*;import flash.display.Sprite;import flash.events.MouseEvent;var container:Sprite = new Sprite();container.x = 400;container.y = 300;addChild(container);var scene:Scene3D = new MovieScene3D(container);var cam:Camera3D = new Camera3D();cam.zoom = 6;tn_title.text = "";tn_desc.text = "";tn_url.text = "";var p_dict:Dictionary=new Dictionary();var pc:Plane = new Plane();pc.visible = false;cam.target = pc;var numOfRotations:Number = 3;var yPos:Number = 0;var angle:Number = 0;var filename_list = new Array();var url_list = new Array();var url_target_list:Array = new Array();var title_list = new Array();var description_list = new Array();var folder:String = "thumbnails/";var i:Number;var j:Number = 0;var k:Number = 0;var l:Number = 0;var m:Number = 0;var total:Number;var flashmo_xml:XML = new XML();var loader:URLLoader = new URLLoader();loader.load(new URLRequest("thumbnail_list_3.xml"));loader.addEventListener(Event.COMPLETE, create_thumbnail);function create_thumbnail(e:Event):void { flashmo_xml = XML(e.target.data); total = flashmo_xml.thumbnail.length(); var anglePer:Number = ((Math.PI*2) * numOfRotations) / total; for( i = 0; i < total; i++ ) { url_list.push( flashmo_xml.thumbnail[i].@url.toString() ); url_target_list.push( flashmo_xml.thumbnail[i].@target.toString() ); title_list.push( flashmo_xml.thumbnail[i].@title.toString() ); description_list.push( flashmo_xml.thumbnail[i].@description.toString() ); var bfm:BitmapFileMaterial = new BitmapFileMaterial( folder + flashmo_xml.thumbnail[i].@filename.toString()); bfm.oneSide = false; bfm.smooth = true; var p:Plane = new Plane(bfm, 140, 105, 2, 2); scene.addChild(p); var p_container:Sprite = p.container; p_container.name = "flashmo_" + i; p_dict[p_container] = p; p_container.buttonMode = true; p_container.addEventListener( MouseEvent.ROLL_OVER, p_rollover ); p_container.addEventListener( MouseEvent.ROLL_OUT, p_rollout ); p_container.addEventListener( MouseEvent.CLICK, p_click ); p.rotationY = (-i*anglePer) * (180/Math.PI) + 90; p.x = Math.cos(i * anglePer) * 480; p.z = Math.sin(i * anglePer) * 480; p.y = yPos; if( (i+1) % 20 == 0 ) { yPos += 115; } }}function p_rollover(me:MouseEvent) { var sp:Sprite = me.target as Sprite; var tw:Tween = new Tween(sp, 'alpha', Strong.easeOut, 1, 0.5, 0.6, true); var s_no:Number = parseInt(sp.name.slice(8,10)); tn_title.text = title_list[s_no]; tn_desc.text = description_list[s_no]; tn_url.text = url_list[s_no];}function p_rollout(me:MouseEvent) { var sp:Sprite = me.target as Sprite; var tw:Tween = new Tween(sp, 'alpha', Strong.easeOut, 0.5, 1, 0.6, true); tn_title.text = ""; tn_desc.text = ""; tn_url.text = "";}function p_click(me:MouseEvent) { var sp:Sprite = me.target as Sprite; var s_no:Number = parseInt(sp.name.slice(8,10)); navigateToURL(new URLRequest(url_list[s_no]), url_target_list[s_no]);}addEventListener(Event.ENTER_FRAME, render);function render(e:Event):void{ var dist2:Number = ((stage.mouseX) - 400) * 0.0001; angle += dist2; cam.x = - Math.cos(angle) * 150; cam.z = Math.sin(angle) * 150; var new_zoom = 5; cam.zoom += ( new_zoom - cam.zoom ) * 0.06; scene.renderCamera(cam);}
that script creates a scrolling image wall but the wall sits above the three mc's and not at a lower depth.
do i need to create each mc dynamically? something like
sprite1 = newsprite etc...
or can i just say that sprite 1,2,3 should appear at depth 10,11,12?
i also need the mc's to act as a navigation - so if sprite1 is clicked the swf timeline will go to frame2 - and if sprite2 is clicked goto frame3
how do i do these things in as3? i would be able to do it in as2 but i can't work it out for as3 - some much is different! - anyone shed some light for me? please?
Staying At Highest Depth
I have a about 70 movieClips floating about on the stage - all created dynamically using _getNextHighestDepth() to assign depth. The problem is I need a title bar that is always on top of all those movie clips.
The Monkey Wrench: Every 200 frames I create a new clip (a text graphic) and put that over the 70 floaters - using _getNextHighestDepth(). This clip swaps depths with the previous text mc that was there. If I set the title bar to then swap with that it still gets a few of the floaters going over it - but the text graphics ALWAYS stay on top. Why?
Is there a way to always check what the highest depth being used is and then automatically moving a movieclip to that highest depth?
Early on I use:
Code:
_root.createEmptyMovieClip("serviceVals_mc",this.getNextHighestDepth());
this.redV1_mc.swapDepths(serviceVals_mc);
this.serviceTTL_mc.swapDepths(redV1_mc);
The idea is to keep serviceTTL_mc always on top of everything else. Then later I,...
Code:
// Swap new text rectangle with previous
this.redV5_mc.swapDepths(redV4_mc);
// Attach previous value little red rect to newfloater
choiceOfRect = Math.random()*100 + 1;
xballName = "littleRED_3_mc";
_root.attachMovie("littleRED3_mc", xballName, this.getNextHighestDepth());
this.redV5_mc.swapDepths(_root[xballName]);
_root[xballName]._alpha = 35 + (Math.abs(choiceOfRect)/3);
If iI add this to the above...
Code:
this.serviceTTL_mc.swapDepths(this.redV5_mc);
.. it doesn;t work.
Any suggestions?
Mc's/sprites To Highest Depth~?
hi all,
still wrestling wildly with as3 - i 'do' think it will be worth the migration - but at the moment am trying to get my head around even the simplest of tasks!
okay if i have three mc's on my stage named sprite1 sprite2 sprite3 and i want them to sit above the image wall created by this script how do i do it?
PHP Code:
/*
Created by Min Thu
http://www.flashmo.com
AS3 References and Credits
http://blog.papervision3d.org/
http://theflashblog.com/?p=306
http://www.gotoandlearn.com/
http://www.onerutter.com/
http://labs.blitzagency.com/
http://vilebody.wordpress.com/2007/11/29/3d-papervision-plane-events/
*/
import org.papervision3d.scenes.*;
import org.papervision3d.cameras.*;
import org.papervision3d.objects.*;
import org.papervision3d.materials.*;
import fl.transitions.Tween;
import fl.transitions.easing.*;
import flash.display.Sprite;
import flash.events.MouseEvent;
var container:Sprite = new Sprite();
container.x = 400;
container.y = 300;
addChild(container);
var scene:Scene3D = new MovieScene3D(container);
var cam:Camera3D = new Camera3D();
cam.zoom = 6;
tn_title.text = "";
tn_desc.text = "";
tn_url.text = "";
var p_dict:Dictionary=new Dictionary();
var pc:Plane = new Plane();
pc.visible = false;
cam.target = pc;
var numOfRotations:Number = 3;
var yPos:Number = 0;
var angle:Number = 0;
var filename_list = new Array();
var url_list = new Array();
var url_target_list:Array = new Array();
var title_list = new Array();
var description_list = new Array();
var folder:String = "thumbnails/";
var i:Number;
var j:Number = 0;
var k:Number = 0;
var l:Number = 0;
var m:Number = 0;
var total:Number;
var flashmo_xml:XML = new XML();
var loader:URLLoader = new URLLoader();
loader.load(new URLRequest("thumbnail_list_3.xml"));
loader.addEventListener(Event.COMPLETE, create_thumbnail);
function create_thumbnail(e:Event):void
{
flashmo_xml = XML(e.target.data);
total = flashmo_xml.thumbnail.length();
var anglePer:Number = ((Math.PI*2) * numOfRotations) / total;
for( i = 0; i < total; i++ )
{
url_list.push( flashmo_xml.thumbnail[i].@url.toString() );
url_target_list.push( flashmo_xml.thumbnail[i].@target.toString() );
title_list.push( flashmo_xml.thumbnail[i].@title.toString() );
description_list.push( flashmo_xml.thumbnail[i].@description.toString() );
var bfm:BitmapFileMaterial = new BitmapFileMaterial(
folder + flashmo_xml.thumbnail[i].@filename.toString());
bfm.oneSide = false;
bfm.smooth = true;
var p:Plane = new Plane(bfm, 140, 105, 2, 2);
scene.addChild(p);
var p_container:Sprite = p.container;
p_container.name = "flashmo_" + i;
p_dict[p_container] = p;
p_container.buttonMode = true;
p_container.addEventListener( MouseEvent.ROLL_OVER, p_rollover );
p_container.addEventListener( MouseEvent.ROLL_OUT, p_rollout );
p_container.addEventListener( MouseEvent.CLICK, p_click );
p.rotationY = (-i*anglePer) * (180/Math.PI) + 90;
p.x = Math.cos(i * anglePer) * 480;
p.z = Math.sin(i * anglePer) * 480;
p.y = yPos;
if( (i+1) % 20 == 0 )
{
yPos += 115;
}
}
}
function p_rollover(me:MouseEvent)
{
var sp:Sprite = me.target as Sprite;
var tw:Tween = new Tween(sp, 'alpha', Strong.easeOut, 1, 0.5, 0.6, true);
var s_no:Number = parseInt(sp.name.slice(8,10));
tn_title.text = title_list[s_no];
tn_desc.text = description_list[s_no];
tn_url.text = url_list[s_no];
}
function p_rollout(me:MouseEvent)
{
var sp:Sprite = me.target as Sprite;
var tw:Tween = new Tween(sp, 'alpha', Strong.easeOut, 0.5, 1, 0.6, true);
tn_title.text = "";
tn_desc.text = "";
tn_url.text = "";
}
function p_click(me:MouseEvent)
{
var sp:Sprite = me.target as Sprite;
var s_no:Number = parseInt(sp.name.slice(8,10));
navigateToURL(new URLRequest(url_list[s_no]), url_target_list[s_no]);
}
addEventListener(Event.ENTER_FRAME, render);
function render(e:Event):void
{
var dist2:Number = ((stage.mouseX) - 400) * 0.0001;
angle += dist2;
cam.x = - Math.cos(angle) * 150;
cam.z = Math.sin(angle) * 150;
var new_zoom = 5;
cam.zoom += ( new_zoom - cam.zoom ) * 0.06;
scene.renderCamera(cam);
}
that script creates a scrolling image wall but the wall sits above the three mc's and not at a lower depth.
do i need to create each mc dynamically? something like
sprite1 = newsprite etc...
or can i just say that sprite 1,2,3 should at depth 10,11,12?
i also need the mc's to act as a navigation - so if sprite1 is clicked the swf timeline will go to frame2 - and if sprite2 is clicked goto frame3
how do i do these things in as3? i would be able to do it in as2 but i can't work it out for as3 - some much is different! - anyone shed some light for me? please?
MovieClip Highest Depth?
i checked out the movieclip depth range from depthManager
lowestDepth = -16383
highestDepth = 1048574
reservedDepth = 1048575
but why i can create the movieclip depth higher than reservedDepth??
i got tested it can up to 2130690045 depth, and over reservedDepth will be same as negative depth cannot be remove by removeMovieClip.
How Do I Keep An Object Always At The Highest Depth?
I have a legal disclaimer (symbol text, instance name is internalUseOnly) that must always remain visible in a corner of the stage. It's on the highest layer of the movie, but new objects in child MCs that get drawn or placed on the stage will cover it. How can I control the depth so it's always at the highest level?
I tried assigning a custom class to it (see below), but Flash keeps throwing errors at me. (Including an error that I can't use the this keyword in a class and that I can't use the listener as the method of an object, both of which are baloney. I thought class-based code was supposed to make life easier, not harder.)
Maybe I'm barking up the wrong tree and a custom class isn't the answer. Anybody have an idea?
Here is what does NOT work:
Attach Code
package {
import flash.display.MovieClip;
public class alwaysOnTop extends MovieClip {
addEventListener(Event.ENTER_FRAME, keepTopDepth);
public function keepTopDepth(event:Event):void{
stage.setChildIndex(internalUseOnly, stage.numChildren-1) ;
}
}
}
Edited: 02/03/2008 at 09:22:41 AM by tunghoy
[CS3] (AS2) External Swfs & Next Highest Bit Depth
i have a dress up doll on steroids site i am working on
i have the dress-up doll in the main SWF
I also have a few other external swfs for the other sections
at the moment i am loading the main navigation externally as well.
my problem is this.........
if i put the layer that contains the container for the main navigation on top of the layer containing the doll (all in the main swf) my doll gets all wacked out.
i think this is because of the animation on the buttons. the main navigation was done in after effects and the animations moves from the left side of the screen to the middle then animates. so its movie clip size causes it to cover the doll so the code does work correctly. if i move the layer under the doll everything works fine but the animation is behind the doll so how do i get the button to the top of the layer stack only when it is playing..
help please
God Bless
Mouse Cursor At Highest Depth
I built a drawing application, and use custom cursors while they are drawing. What I'd like, is to always have the cursors above the objects drawn, instead of what its doing now, which is hiding behind the objects. I tried sawpping depths with the last objects drawn, so it would always be on top, but it caused a bug that would make one of the other functions not work properly on occassion.
So I was just wondering if there is any way to set an object already created to the next highest depth?
Setting A Movieclip To The Highest Available Depth
Hi,
I am making a website where I have some thumbnails of images on the first page itself.
These thumbnails are all individual movieclips, acting as buttons....
When a user clicks over a particular thumbnail, the playhead goes to the fourth frame(of that movieclip) and loads a new movieclip (the full version of that thumbnail) already placed at that frame. And as soons he clicks on it again, the playhead comes back to the 1st frame....
Now the problem I am having is that I am not able to place the currently clicked thumbnail's movieclip to the highest depth....such that when the third thumbnail is clicked and the its bigger version is loaded at 4th frame, the previous two thumbnails are overlaying it due to the depth problem....
I am new to depths, and pls help me out to solve this problem...
Thanks.
Send Buttons To Highest Depth? Help
Hiya,
I'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. I've been at it for hours and hope someone here could give me a hand
Load Random Clips Into Highest Depth
(using flash cs3, as2 - fla attached)
i have a button,
when "1" is pressed it loads a random swf from an array into the next highest depth.
everyone time "1" is pressed it load a new random swf, but the previous swf loaded is removed.
how do i get each new random swf to load ontop of the previous one when "1" is pressed, like a never ending stake of cards?
i have used getNextHighestDepth, i expcted it to load the next random swf into a new movieclip infront of the previous ones, but it seems to load it into the same movieclip.
thanks
Chris
Setting Display Objects To The Highest Depth
Say I have a number of buttons placed on my stage. On roll over - I want this button to expand along both x and y axis. So I want my button to be on top of all the other buttons - otherwise there is high risk that the other buttons will lie on top of my expanded button.
I have found a quick and dirty solution:
ActionScript Code:
private function onMyButtonOver(e:MouseEvent)
{
removeChild(DisplayObject(e.target));
addChild(DisplayObject(e.target));
}
In the old days you would use getNextHighestDepth to be sure to put something on top. The solution above works but I find it kinda ugly. Any thoughts?
Move A MC To Highest Level/depth Without SwapDepth
Flash5.
I have 3 MC.
on release I want the MC (linked to that particular button) to move to a/the depth/level higher than the other two MC's.
on the next release, that particular MC should move again over the other two
et cetera.
So like Swapdepth, with the difference that I do not want two MC's swapping depth.
The new image should always go on top of the previous highest positioned image.
Is this possible and if so, how?
Thanks!
How Can I Load A Movie To The Highest Depth(level)?
hi
these tutorials are cool
I hope you guys help me out on this.
I'm trying to load an external mc to my web page, I have randomly
flying stars on my page that's why I want to load my mc to the highest
depth(highest level )
thanks
How To Move A MC To The Highest Level/depth Without SwapDepth (flash5)
Flash5.
I have 3 MC.
on release I want the MC (linked to that particular button) to move to a/the depth/level higher than the other two MC's.
on the next release, that particular MC should move again over the other two
et cetera.
So like Swapdepth, with the difference that I do not want two MC's swapping depth.
The new image should always go on top of the previous highest positioned image.
Is this possible and if so, how
Thanks!
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
The Highest Var
does anyone know how to detect the highest number of some variables for example:
myvar1=10;
myvar2=11
myvar3=7;
myvar4=11;
myvar5=12;
the highest number is the one done by myvar5
but how to write the code to detect it???
Getting Highest Value
I 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?
Thanks
Which Variable Is The Highest
I've got yet another problem...(if any of you were readin my posts in the official Macromedia Flash forum)...
How to get the Flash Player to work out which variable (of a set of 11) has the highest numerical value.
Tnx
W3bdevil
Getting Highest Value From The Array?
Let's imagine that I have the array with five numeric values: "10, 5, 2, 13, 9". How is it possible to get the highest value from that array? (The value "13", of course...) ...and the order of those values should remain "unsorted"! (...meaning that value "10" should remain the first value and so on...)
Any hints...? Some mathemathic "tricks"? I would need this highest value to compare it with another value not located in any array ...and for example to see if those two values are equal or not. Solving this would help me a lot in one actionscript-filled Flash-project.
Highest Level
Is there a way to load external swf's on the highest empty level available?
I've got 13 different buttons wich load 13 different swf's. The latest pressed button should load the swf on top of the already loaded. Each loaded swf can be closed at any time (I work in Flash 5).
At the moment I don't have a clue how to script this one and where to implement it; in the scripting of the button or in the swf.
Thanx already!
Highest Value Method(s)
I'm creating a series of dynamic textfields with varying heights using autoSize.
Has anybody got suggestions as to how I can best return a value as to the _height value of the highest textfield?
I was thinking of using an array, but I'm unfamiliar with creating a dynamic one.
Highest Of Four Variables
Hello. I'm trying to get flash to print the highest of four variables, I've tried Math.max(w, x, y, z), but it doesn't seem to handle more than two variables. Suggestions?
The Highest Number
Hi
I have what I thought would be a very simple problem. I have questions that the user clicks on and then they get an answer based on the question clicked on the most. I have created variables showing how many times each question is clicked on. ( there are only 3 questions) How do I script it so it goes to the highest number. It was simple enough with one question because I could just say
if (on (release) {
_root.totalB = _root.totalB+1;
if (_root.totalB>_root.totalA) {
gotoAndPlay("B");}
else {gotoAndPlay("A");
}
}
But once it becomes more than than 2 I need to know how to script it to basically say go to the highest number (variable)
Any ideas?
Thanks
Ella
Highest Variable
I need some help with some code that will determine what the highest number out of four variables are. (Don't worry about when it happens). The four variables/scores are:
_root.PlayerOne.PlayerOneScore
_root.PlayerTwo.PlayerTwoScore
_root.PlayerThree.PlayerThreeScore
_root.PlayerFour.PlayerFourScore
So, when a timer ends, I want "the game" to determine what is the highest score is, out of the four players, and tell the text box "_root.Winner" who it is.
I also need something in the same area, except when three scores drop to 0, the remaining player wins. (and is sent to _root.Winner).
I'm not that good at ActionScript, so hopefully any code you provide will be easy to pickup, and expand to other areas.
Thanks in advance for the help!
Get Highest Index
Whats the AS3 equivalent to getNextHighest.... I want one of my children to always be the highest index throughout the movie
Search For Highest Value
Hi
If I have 4 movieclips that each contains a numeric variable...how could I compare all their values then sort the movieclips in decending order?
I assume I have to use some sort of array and maybe createEmptyMovieClip() but I'm not sure how to go about it...any ideas?
Thanks
Determining Which One Has Highest Value
i have 3 variables and im executing a block of code depending which on has the highest .. how do i determine has the highest and the execute the code which ever has the highest
Finding The Highest Y Value In 2.0
Hi, I 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) Any ideas? Any help at all GREATLY appreciated.
Get Highest Value From Array
I have an Array of random numbers, and I need to get the highest value one. I have tried to use Array.sort(NUMERIC) and that only arranges them by 10 digit and some of these numbers can be in the thousands and up.
Getting The Highest Value From The Array?
Let's imagine that I have the array with five numeric values: "10, 5, 2, 13, 9". How is it possible to get the highest value from that array? (The value "13", of course...) ...and the order of those values should remain "unsorted"! (...meaning that value "10" should remain the first value and so on...)
Any hints...? Some mathemathic "tricks"? I would need this highest value to compare it with another value not located in any array ...and for example to see if those two values are equal or not. Solving this would help me a lot in one actionscript-filled Flash-project.
Finding The Highest Number
My question might be a bit basic for this board but...
I am running Flash MX and have an external .txt file containing x and y coordinates.
It looks a bit like this, but much longer.
x=1,2,3,4,5,6,7,8,9&y=3,4,6,8,12,19,5,2,1&
Can anyone suggest how I can find the highest value of y?
Thank You in advance,
Tim.
Finding Out The Highest Variable?
Can anyone help?
I need to get a variable to display the variable with the highest score.
I have 4 options that the user can mark out of 10.
I then need to another variable “winner’ to display the option with the highest score.
For example:
Option01 = 5
Option02 = 3
Option03 = 8
Option04 = 1
‘Winner’ will display ‘Option03’
Does anyone know of the script to work out which of the 4 options is the highest?
Ideally I’m working for Flash 5 but if it can only be done in Flash MX then that’s ok.
Any help would be great
Thanks Dan
Is There A Way To Find The Next Highest Level?
The subject basically says the question. I had a controller movie that loads a right side or a left side, and when u click on a button from one of the sides, it loads another movie. Is there a dynamic way to define the next available level? or do i have to keep track manually? thanks.
---
also out of curiousity, can you delete a level? other than loading a blank.swf?
Highest And Lowest Vars
I have about 200 variables that create a graph, and the variables come from different categories with different ranges of values. (ex: values ranging from 1-4, values from 23-50, etc.)
What I need to do is get the highest value and the lowest of all the vars so I know the range to dynamically set the graph at.
I know how to do it on vars like this ( var1=5, var2=3) but he var names are very different. What I really want is to dump all of the vars in an array, then get a Math.findMax, and a Math.findMin, checking them at a ++ rate.
Lets see what you Flash kitters can do.
Which Slot In An Array Is The Highest?
I have a small Array, only four slots; all with numbers.
Eg. [8,2,3,1]
What I need to know is: How can I make Flash return to me the slot number of the highest value.
For example an array of [2,3,5,2] would return 3 (five is highest)
[2,3,5,9] would return 4 etc.
Also, how would it handle if more than one was the highest?
[2,3,4,4] ????
I'm thinking it would have something to do with using RETURNINDEXEDARRY and/or UNIQUESORT. Maybe use the sort method to simply discover what value is the highest, then look for that value in the array to discver the slot number?
Finding Highest Total
i have jut posted a problem but i will explain a different way in an attempt to get help!
i have imported lots of values using XML, i have put them in variables named as follows
janV
febV
marV... etc
i need to take these variables and find the highest totals from them and display it in a text box? any ideas??
cheers people
Highest Quality Video
hi guys,
How can I stream the highest quality video?
Is it possible to connect and use a DV camera or other device and use that as a "webcam"? If so, will this result in higher quality video that the user on the other end will notice?
Any other ideas?
Thanks very much,
artane
Sort Values Highest First
I have an array with numbers [3,6,12,78,34,3,2,]
in flash is there a special function that sorts these numbers in the array highest first or lowest first in order? How would one do this?
raskolnikov
|