ActionScript 2.0 :: Overlapping Menus In CS3 Stacking Order?

Oct 23, 2007

I've been working with this file for quite some time now. I have several buttons in this file - for example, general information. From this button (actually mc, using hittest to function as a faux button), another menu springs out. This menu overlaps the button underneath it.

The problem I've been having is that, when the submenu pops out, the user is still able to activate the buttons beneath the submenu (it overlaps the other "main" buttons).

My solution was to "hide" the movieclips that are overlapped by the submenus, like this:

[Code]...

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Sending MC's To The Back (stacking Order)?

Jan 28, 2004

Basically I have a little app where a pop up palette contains dragable movie clips that then are placed on the main stage. However when the palette pops up for a second time it remains behind the placed movie clips. The clips have to be on top of the palette initially, but something like on release swapDepths?

View 14 Replies

ActionScript 2.0 :: Changing Stacking Order (swapDepth)?

Jan 25, 2006

I've been following the Changing Stacking Order (swapDepth) tutorial but there's something I'd like to know.In this tutorial, we have 3 buttons inside 3 Mc's. Each Mc is called green, yellow and blue.The AS code for each button is:

Code:
on (press, release, dragOver, dragOut) {
x = 0;
x = x+2;[code]....

What I would like to get is that the MC (window) that I click, goes to the top, BUT respecting the relative position for the others. I mean, in this tutorial, if you run the swf file and put every window a bit one over the other, and click the bottom window, it will come to the top, but the other two won't keep their relative position because the clicked window will be swapped with the one on the top. Understand? (it's very simple although difficult to explain).To make it easier: let's imagine we have 3 papers on the table and I pick up the one in the bottom and put it on top....this is exactly what I want (but in this tutorial, the other 2 papers are moved aswell). I just want that the window I click gets on top of the other 2, nothing else.

According to Kirupa's words, this EXAMPLE here is done using swapdepth aswell, and IT'S EXACTLY the behaviour that I want. Just compare this one with the one in the tutorial and see the different window behaviour.The thing is that I don't know how to do this with "swapdepths". In the AS reference bok it says it can be done but (as usual) they don't tell you how to do it...

View 8 Replies

ActionScript 2.0 :: Changing Stacking Order Of Layers?

Sep 6, 2003

is there any way to switch the stacking order of layers during a movie clip. ctually i want to do it with an on(release) action.

View 4 Replies

ActionScript 2.0 :: Sending MC's To The Back (stacking Order)

Jan 28, 2004

Basically I have a little app where a pop up palette contains dragable movie clips that then are placed on the main stage. However when the palette pops up for a second time it remains behind the placed movie clips.

The clips have to be on top of the palette initially, but something like on release swapDepths?

View 14 Replies

ActionScript 3.0 :: Change Stacking Order On Display List?

Nov 3, 2009

I have a series of mc's that I'm adding to the a display list of "theContainer".

I've set up my code so I can click any mc in that list and make it "selected". I can then, with controls outside "theContainer", change the selected clip's  scale or alpha, etc.

I'd like to set up 2 buttons outside that display list so I can change the stacking order of those clips in "theContainer".

So if I add clip "a" to the display list, then add clip "b" to the display list then add "c" and "d" and "e and "f" to it, I want to be able to move any of those clips forward or backward.

View 9 Replies

ActionScript 3.0 :: Change The Stacking Order Of Display Objects?

Jul 10, 2010

How do I change the stacking order of Display Objects in AS3? I have a semi-transparent caption box that is supposed to be on top of externally loaded images. no matter where I place the script for that box in the code, the images always load on top of it.

View 5 Replies

ActionScript 3.0 :: Relative Stacking Order For Added Children?

Nov 16, 2011

I'm producing some animations that have movie clips introduced by a video player cue point handler.The video is on a given layer in the timeline scheme. When one uses addChild(); to introduce a movie clip, is there some way of specifying what layer it should appear on? Otherwise, is there a way of controlling the stacking order of the various components on the stage?

View 4 Replies

ActionScript 3.0 :: Flash - Change The Stacking Order Of Objects??

Mar 13, 2011

Is there a way to use actionscript to change the stacking order of objects?I run two functions when i start my game, one that adds the player and set it's properties and one that generates the map. The add player function is run last so the player will appear above the map, the problem is that i have some objects on my map that i would like to appear infront of the hero, like certain tree's for example.

Is there a way i can make these objects appear infront by using actionscript? Using different layers won't work as everything is generated dynamically.

View 2 Replies

ActionScript 2.0 :: Changing Stacking Order - Swap Between Images

Dec 21, 2004

I have an FLA with a section in it where I need to swap between images (one over the other and so on, which I have done using swap depth) what I want to know is if there is a way to make the transition from one pic to the other smoother by using alpha from 100% to zero, thus revealing the picture beneath.

View 3 Replies

ActionScript 2.0 :: SwapDepth Of MC's With Buttons (flash5) - Changing Stacking Order

Dec 27, 2002

I know, there is a tutorial about changing stacking order [URL], but the makers were so kind to use Mx files for the .fla's.

[Code]...

When I click one of the 4 buttons, the image related to that button has to move to the hightest position. And ofcourse the previous highest one should be the one under the new highest image. Well, I tried to fix the script, but for some reason it gets all confused and starts switching images, and sometimes none.

View 14 Replies

Actionscript 3 :: Trace "depth" Or Stacking Order Of A Display Object?

Mar 24, 2011

How can you trace the "depth" or stacking order of a display object with AS3? I'm trying to figure out if my sprite is behind another sprite.

View 4 Replies

Actionscript 3.0 :: Xml Accordion Menu That Has Main Menus / Sub Menus Buttons With A Mask

Feb 3, 2009

I'm trying to create an xml accordion menu that has main menus and a sub menus buttons (movieClips) revealed with a mask. Simple question, How do I stop the mask area which reveals the sub menus catching mouseEvents on the submenus?The main menu button is a movieClip, it has the mask sprite attached to it as a property so it can scale dynamically to reveal the subMenus. They are set as children of the main menu button container. In my code I've set mainMenu.mouseChildern = true. But when the mainMenu is clicked I change mouseEnabeled = false to help prevent the main menu receiving events. This helps on rollOver rollOut events, but when I click or mouseDown on the subMenu the mask catches the event also and activates the main menu again. I've tried the obvious mask.mouseEnabled = false; mask.mouseChildern = false; mask.hitArea = null; and even setting mask.alpha = 0 but this has no effect at all.

I don't understand why the mask has to extend the hitArea property of the mainMenu and why this can't be set to null. It also seems crazy that when mouseChildren = true the parent clip also has to receive notice of the event.

View 2 Replies

ActionScript 2.0 :: Creating An Order Form For Flash Site - Results Of The Order Sent To A Pre-specified Email Adress In A Certain Format?

Aug 17, 2004

I am creating an order form for my flash site. I have never done this before in flash but I have in visual basic. I have a few questions:

1. Is assigning variable names to checkboxes and radio buttons the same as in visual basic? I mean i know that you probably assign them in the properties. ex..say i name a radio button 'radio1', to run a check in my actionscript whether radio1 was checked or not would it be something like if(radio1){}

2. After the person fills out the form I would like to have the results of the order sent to a pre-specified email adress in a certain format. What would be a good way to do this?

View 3 Replies

Sorting Number Ascending Order And Descending Order?

Jun 15, 2010

sorting number Ascending Order and Descending Order tutorial with out useing sort property[Array sorting like 91,3,5,4,6,8,3,6,1,0]

View 6 Replies

Ascending Order And Descending Order Array Merge

Jun 16, 2010

[code]how to do Ascending Order and Descending Order this array merge(don't use sort property)

View 1 Replies

ActionScript 3.0 :: Re-order Array In Ascending Order?

Mar 20, 2009

I have an array, and I add info dynamically into it. I need some way to re-order the array into ascending order.

Another thing. How can I add a value in the first position of the array pulling keeping all the other values jumping to the next position.

View 2 Replies

IDE :: CS4 Stacking Layers?

Mar 22, 2011

I've made my site with photoshop and all images are in *.*png, saved with transparency and in the same resolution 1000x750. I exported them into my working file in Flash. No problems here.I've started to put each of the images in separate layers and in stacking order I wish, still no problems.Now, I am about in 20th layers I am inserting the image, again in separate layer and what happened? The layer will cover over the layer which is almost at the bottom. Meaning...only the trasparency which is very strange.

View 3 Replies

IDE :: Load And Unload Swf W/ Flv W/out Stacking?

Nov 20, 2009

I want to load and unload EXTERNAL SWF that contains FLV on mouse click. Loading and unloading the swf is NOT the issue. The problem is how do i get the external swf which contains an flv to stop playing and stacking up on each other.

I can load and unload the swf's as long as I pause the videos before I click on another thumbnail, but if I click on another thumbnail while the external swf is playing it's flv, the previous flv keeps playing and stack up under the newly loaded swf.

[Code]...

View 3 Replies

Stacking Several Masking Layers Do Not Work

Jul 31, 2009

The attachment contains two screen shots of a movie clip timeline. The images consist of a text mask symbol sliding diagonally other a text layer, and a picture button sliding to the left under an aqua blue mask. When I scrub the timeline -- things work great. But when I view the movie via the control menu, the dynamic text is not displayed. The images illustrate the masking layers in unlocked and locked mode.
I'm using CS4.
Attachments: masking.jpg (136.8 K)

View 17 Replies

Actionscript 3 :: Re-stacking MovieClips In An Array?

May 13, 2011

I was trying to make a similar thing with the game SameGame (ie. the block above the removed blocks fall downward). Before trying this with an Array that contains MovieClips, this code worked (tried it with int values). With MovieClips on the array, it seems not working the same way.With int values, example:

popUp(0, 4): Before: 1,2,3,4,5,6,7,8,9,10; After: 1,2,3,4,6,7,8,9,10

But with MovieClips:

popUp(0, 4): Before: 1,2,3,4,5,6,7,8,9,10; After; 1,2,3,4
// Assume the numbers are movieclips XD

Basically, it strips everything else, rather than just the said block >_< Here's the whole method. Basically, two extra arrays juggle the values above the soon-to-be removed value, remove the value, then re-stack it to the original array.

function popUp(col:uint, row:uint)
{
var tempStack:Array = new Array();
var extraStack:Array = new Array();

[code]....

View 1 Replies

ActionScript 3.0 :: XML Gallery - Images Stacking On Top Of Each Other

Aug 10, 2009

I'm worried about images stacking on top of each other. The thumbnails are loaded using a for loop through XML, (10 thumbnails). And by using event.target.name when you click on any thumbnail it calls a function (showPicture).

[Code]....

View 8 Replies

ActionScript 2.0 :: Stacking Thumbnails In From XML In Flash?

Nov 18, 2006

I have this simple xml photogallery script. I have 6 thumbnails and want to stack them 2 thumbnails in each row - giving me a stack of three rows (two thumbnails in each row).how I can do this? I'm kind of stuck....Here is my code in the flash piece ------ //

myPhoto = new XML();
myPhoto.ignoreWhite = true;
myPhoto.onLoad = function(success) {

[code].....

View 9 Replies

ActionScript 2.0 :: Can't Keep Movie Clips From Stacking

Oct 24, 2008

I'm trying to call movieclips from the library to the stage. To do so, I have a list of questions in a list. As a user clicks on the questions, the movieclip associated with it will be placed (at the top of a list) on the stage.This part seems to be working.The problem is that all of the movie clips are being stacked on top of each other instead of actually displaying in a list.[code]

View 1 Replies

HTMLText - Image Stacking And Putting Tag On One Line

Apr 4, 2009

I have a dynamic text box that reads data from an external file using the htmlText and load() functions. My external file contains HTML code for images. I want to have each image displayed next to each other (side by side). Currently, Flash is rendering my images so they are stacking on each other (ontop of each other). I have even tried putting all of my <a> tag on one line, but it is not working.

ActionScript 2 Code from file:
contentData = new LoadVars()
contentData.onLoad = function() {
contentText.htmlText = this.myVariable
} contentData.load("html/news.txt")
contentText.html:
[Code]......

View 4 Replies

Flex :: Get Cooridnates When Using VBox For Stacking Up Components?

Aug 9, 2010

In flex, I am using VBox & HBox to stack components. When I try to get x,y coordinate of a component, I always get 0. If I specify cooridnate like mx:VBox x="120", then I get the value.

How can I get the coordinate without explicitly stating it.

View 2 Replies

ActionScript 3.0 :: Stacking Clicked Would Display The Appropriate Information

Jun 19, 2009

I created a list using xml, which when clicked would display the appropriate information. Everything is working fine, except when a second item on the list is clicked, the information appears on top of the previous information.

[Code]....

View 2 Replies

ActionScript 3.0 :: Dynamic Textfield Is Stacking Xml Text?

Sep 14, 2011

Do anyone know what causes a dynamic text field to display text in stacking order?[code]...

View 8 Replies

ActionScript 3.0 :: TweenLite CPU Optimization - Just Stacking And Never Garbage Collecting?

May 12, 2011

I'm currently working on a game where every "Step" - defined by a global time modifier - everything on screen calculates where it's next position will be, then uses tweenlite to animate itself to that location. This program runs for about 10 seconds before it eats 100% of my CPU. iMac i5 quad core, so it's not the hardware.

The problem is specifically in the following snippet, and the peculiar thing is if I teleport everything to it's next position (i.e. don't tween it there) the CPU is stable at 6% (where flash IDE consumes 4%). Does anyone know why these tweens are just stacking and stacking and never garbage collecting? (This is what I assume the problem is, as I can't find another explanation as to why the problem only exists when i TWEEN to the next location)

[Code]...

View 3 Replies

Flex :: Column - Prevent Duplicate Stacking In ColumnChart Control?

Feb 9, 2011

Here is my Problem: I'm currently using a ColumnChart to display 6 label/value pairs. When two labels are the same, the chart stacks them up, one on top of the other. I want to display these duplicates side by side, their value might be the same or it might be distinct. My first thought was to append a unique id to the label, but that's not possible according to the client. So, is there a way to tell the chart to also take a hidden id into consideration? Someone suggested to do some sort of grouping, but I need to display each chart separate, as if they were distinct charts.

the chart's data provider is an array of these objects:
obj.description = "des";
obj.countV = 3;//some arbitrary number
obj.id = 2; //a unique id..

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved