ActionScript 2.0 :: Have A Foreground When Using GetNextHighestDepth?
Feb 4, 2011
it is possible to have a foreground when using getNextHighestDepth? The problem i have is that unless the foreground is the highest depth then anything else attached after that will appear over it rather than under.
View 3 Replies
Similar Posts:
Aug 14, 2010
I made 4 windows (squares) and they each have a dragbar (moveiclip).Here is some code so you can drag them:
MC_windowQ.dragbarQ.onPress = function() {
startDrag(MC_windowQ);
MC_windowQ.getNextHighestDepth();
};
I also have code that stops it dragging. What I need answering though is how to make the window get the highest depth (so that it is on top of the other windows after pressing the dragbar. I tried using getNextHighestDepth() but it doesn't seem to be working.
View 3 Replies
Aug 12, 2011
i've a problem to a set a different child index of a Movieclip. This is the code:
function processMusica():void
{
var loadStatus:int=0[code].....
I want to move "riproduzioneDetails" MC on foreground, but when i attempt to launch application, it give me this error: TypeError: Error #2007: Parameter child must be non-null
View 1 Replies
Aug 12, 2011
i've a problem to a set a different child index of a Movieclip. This is the code:
[Code]...
I want to move "riproduzioneDetails" MC on foreground, but when i attempt to launch application, it give me this error: Error #2025: The supplied DisplayObject must be a child of the caller error
View 1 Replies
Aug 15, 2008
I have a flash movie with some buttons that load swf's into the movie. Here is the code I have attached to the buttons:
on(press){
var container:MovieClip = this.createEmptyMovieClip("weddingClip", this.getNextHighestDepth());
weddingClip.loadMovie("wedding.swf");
}
This actually works fine the first time. The problem is that if I press button 1 and it loads the appropriate swf, then I press button 2 and it loads it's appropriate swf, if I decide to go back to 1, it won't come up because it is already loaded below #2. I would think it would come up in depth.
Here is the link to the site for demonstration purposes: [URL]
View 2 Replies
Jul 2, 2009
i need help about a MC created by AS 3. This MC is Reflect class that extends MC class; when i instance it, the newer Mc is always on the foreground, even if its layer is on the backgrond. So what i have to do?
View 3 Replies
Sep 12, 2011
I am searching for a way to have my spritevisualelement have round corners so that it is displayed in a circular shape.The SpriteVisualElement contains a Video Stream from FMS to display but I do not want it to be rectangular.[code] But the Container keeps being in the background and the whole remote Video which is displayed in the "vid" (=id) is in the foreground.How can I set the Container to be in Foreground? then just setting whole application background would do the job.
View 1 Replies
Aug 27, 2010
Is there a way to tell as3 to leave an object always on the foreground no matter what happens so that anything will overlap it?
View 5 Replies
Mar 29, 2011
i have 3 movie clips,all loaded external into the scene with action script
clip 1 is the background.
clip 2 is thumbnails of photos that pass through the screen from top to bottom.and the clip 3 is a png file that i want to put in front of all other movie clips.My problem is that i cant put the clip 2 between the background and the png file cause the clip 2 uses the "getNextHighestDepth" method because everytime the user clicks on a thumbnail a larger image appears in top of all other layers.
View 8 Replies
Feb 20, 2009
I have an mc (mcBreakOut1) that contains some links (simple buttons) that sits on the root. The mc gets next highest depth on release and plays to reveal the links. The problem is that none of the button actions in mcBreakOut1 seem to work. I don't know if this has something to do with the getNextHighestDepth() or because mcBreakOut1 has an onRelease=function():Void {} function associated to it that is not allowing any onRelease functions within the mc to work.
View 2 Replies
Apr 5, 2010
i have attached the flash file and also xml file. Here i duplicate the movieclip, first for loop is working perfectly but inside of second for loop is not working properly.
View 5 Replies
Jan 30, 2012
I'm creating a game with movie clips that are generated using getnexthighestdepth, and have a pause menu too. However, as the movie clips are generated after the pause menu, they appear above it, partially obscuring it. Is there a way to make the pause menu permanently on top?
View 2 Replies
Apr 28, 2011
Is there an event dispatched when a modal is brought to the front in Flex? Basically there are two times when I would want to listen for this event: When the modal is first created (although in theory creationComplete / show / etc.. could suffice here). When the user brings a modal that is not in the front to the front by clicking on it. In my case the popups I am working with are descendants of TitleWindow and listening for focusIn does not seem to work reliably.
View 3 Replies
Apr 5, 2010
i have attached the flash file and also xml file. Here i duplicate the movieclip, first for loop is working perfectly but inside of second for loop is not working properly.
View 0 Replies
Feb 3, 2006
Is it possible to have a single jpg (1024x768) scale up & down with the browser window (no matter the aspect ratio, stretched to 100% browser width/height), while keeping the foreground content (most likely added via loadMovie) in a fixed scale and centered on the screen? An example can be seen on the Second Story home page.
View 9 Replies
Sep 24, 2010
I'm currently trying to create something akin to a simple 'page flip' effect for a site.The effect that I'm going for is basically a changing background, appearing by playing an MC (tweened movement of large rectangle that moves from off-screen to on-screen) that is, ideally, supposed to be executed by a button.
I currently have on the stage, four coloured buttons, with a corresponding MC off-stage that gets triggered by a button and slides on to take the place of the previous MC (background colours that slide in depending on which button you press). I also have a text box embedded in an MC which was basically just a test object that is supposed to stay on top of everything. The stack order should be [top]->[bottom], [text]->[buttons]->[background MCs]
The problem lies in the order of playing the MCs. A background colour rectangle MC should technically cover up whatever background MC is already there. However, when a new MC slides on, the one below it briefly changes to a seemingly random one. The MCs are currently not created dynamically, but I did ponder whether the problem could be solved by dynamically creating them using loadMovie and then removing it when the next one loads or something... I've made it work using swapDepths, but therein lies the problem I think, because swapDepths works by trading depths of MCs and, when giving the MC that you want to appear on top a certain depth, it takes that depth from an MC that already has it, thus causing THAT MC to adopt a new depth and the order seems to change completely... I considered using getNextHighestDepth(), but that obscures the text and, as I take it, getNextHighestDepth() gets THE highest possible depth (I think...), there doesn't seem to be any meaning in assigning a depth, no matter how high, to the text.
// MCs containing coloured buttons
// Plays each coloured button's associated coloured page MC and swaps the MCs'
// depth bringing it to the top of the stack
[code]....
View 7 Replies
Mar 5, 2010
I have a movie clip showing party streamers animating upwords, and another movieclip that has letters falling into place. What I want is for the streamers to be in the background and the letters to be in the foreground.
The AS for the streamers is -
import com.effects.BackgroundEffect;
var effect:BackgroundEffect = new BackgroundEffect ();
effect.bgEffect ("effect28","up",0.3,{zigZag:z = new Array (1, 30)});
[Code].....
I have tried giving the attachmovie click various depths, but that makes no difference. how to make sure the new BackgroundEffect movie clip appears in the background?
View 3 Replies
Aug 2, 2009
I have a problem with a preloader on a slideshow. The preloader works perfectly the first time the slideshow is loaded but if you move to another frame and then return the loader bar loads in the top left hand corner of the stage and does not function, it just duplicates every time you navigate back to the page.
[Code]...
View 1 Replies
Oct 23, 2008
I have created a Flash application running in a browser (Firefox 3 on Windows XP). When I move this application from foreground to background and (after some time) viceversa, I notice a considerable slowdown, i.e. for about thirty seconds the application becomes unusable.
My swf is very small (~200 KB), but this swf creates *many* buttons and *many* other graphical widget (with statical images), so the RAM occupied is considerable (~150 MB).
I initially assumed that was caused by the swap mechanism of the operating system or of the browser. This was *not* true, and it was confirmed by the fact that, by default, Mozilla Firefox prevent Windows from swapping out memory when the program is minimized (see config.trim_on_minimize option). Nothing has changed even disabling the paging system of Windows.[code]...
View 0 Replies