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


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 :: 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

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 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 :: Send Child To Back Of Z Order?

Jan 8, 2010

I know how to get it to the top but I can't figure out how to get the child to the back

View 2 Replies

Flex :: Sending AMF Typed Objects Back To PHP?

Oct 29, 2011

I succeeded in sending typed objects from a PHP application to a flex front-end using Zend_AMF as per this question. The problem I am facing now is that I would like to send a typed object from flex to PHP and on the PHP side, be able to receive it as a typed object instead of stdClass.

Here is the class in flex:
package com.mysite{
[Bindable]
[RemoteClass(alias="CTest")]
public class CTest {
public var stuff1:String;
[Code] .....

After some testing, I removed the namespace from the PHP object and moved it into the global namespace. This seems to have resolved the issue. I have tried setting RemoteClass to modules estingCTest and also modules.testing.CTest. $_eplicitType was then set to the same value for both tests. The result is that when I use modules.testing.CTest, this is the classname that Zend_AMF sees. If I use namespace notation, Zend_AMF sees modulestestingCTest, as all the slashes get stripped out. But how can I get this working with php namespaces?

View 1 Replies

ActionScript 2.0 :: LocalConnection - Remote SWF Sending Back Value Twice

Nov 18, 2009

I've got a problem with the LocalConnection. I've got 2 swf's and I call one to get a value which then sends it back to the first. It's working, but it seems like the 2nd swf, which is called remote.swf, is sending the value back to the player.swf twice. I've pasted the codes form each swf below. The first is the player.swf which is asking for the value, and the second is from remote.swf which is generating the code:

ActionScript Code:
var comPlayLC = new LocalConnection();
comPlayLC.send("rpLC", "received");
comPlayLC2 = new LocalConnection();
comPlayLC2.received = function(val) {
info = val.split("|");
[Code] .....

View 3 Replies

ActionScript 2.0 :: Sending Rectangle To Back Layer

Mar 25, 2008

I've created a rectangular box with actionscript (code follows) and I need to make sure this stays in the background - so all other movieclips and symbols are visible when they are positioned over the top of it. I guess it's using the swapDepths function although not sure?

this.createEmptyMovieClip("rectangle_mc", 10);
rectangle_mc._x = 15;
rectangle_mc._y = 285;
drawRoundedRectangle(rectangle_mc, 520, 100, 15, 0x2C79BE, 100);
function drawRoundedRectangle(target_mc:MovieClip,
[Code] .....

View 3 Replies

ActionScript 2.0 :: Sending Images To The Back When Clicked?

Dec 20, 2011

basically im making an image gallery this is what ive done so far imported all of my images that i wanted to use and converted them to movie clips ive put these movie clips in another movie clip which is masked with an instance name of master_mcthe images are placed on top of each other so it looks like a stack of photos what i want to do is when the user clicks the image on the top it should send it to the back of the stack of images and continue to do this for all photos

View 8 Replies

ActionScript 3.0 :: FileReference - Sending Data Back To Flash From PHP?

Feb 11, 2009

Is there any way to send data back to flash after using a FileReference upload? Basically I'm uploading an image and I want my PHP script to return some information back to flash after the upload.

View 2 Replies

ActionScript 3.0 :: Store Sequence / Order Of Object In Flash To Be Played Back Later?

Apr 5, 2011

I was wondering if it was possible to store the order of objects being played and then later call up that sequence to be played back.For example:[code]so if the order that was played was movie clip a,c,b,b,b,d,a - is there an array or var I can use to store this order and then once the user puts in a comman to play it back, flash does play it back in the correct order?

View 5 Replies

ActionScript 3.0 :: Click On The X Box That Appears In Order To Go Back To Frame 42 In The Main Timeline?

Nov 9, 2011

Okay so our current assignment in class is to create our own version of the jeremy levine design website. But I am currently stuck and have not gotten anywhere for the last 3 days that I have worked on it.

The problem is when I click on the box to go into the wood grain texture, I want to be able to click on the X box that appears in order to go back to frame 42 in the main timeline. (the x is currently only on the box with the 1 on it.)

View 0 Replies

ActionScript 3.0 :: Sending Flash Form Data To PHP And Reading Back XML?

Sep 24, 2009

sent form data in Flash to a PHP script before and then read in a variable (say a user id) that gets passed back by the PHP. simple enough.but if the script passes back XML, how do i read that in?elow is the code i've used to send PHP a name and an email address and get back a userid, but i'm not sure how to go about writing the code if the script is passing flash a chunk of XML instead?

ActionScript Code:
var userRequest:URLRequest = new URLRequest("saveUser.php");
var userLoader:URLLoader = new URLLoader();

[code].......

View 1 Replies

ActionScript 3.0 :: Sending Variables In Flash Back To HTML Page

Dec 16, 2009

I had posted this in the PHP section but think it may be more relevant in Flash as have'nt had any replies yet..I have been asked to create a photo canvas website that allows users to upload an image, then apply several effects such as re-sizing/cropping/desaturate, then viewing the updated image on a generic wall and going to check out to buy the canvas.I am pretty new to web developing/designing, i am confident with html,css and actionscript to an extent, but have only used small parts of php before.My biggest worry is how to go between html > php >flash >back to html again.From what i understand i need to create the following functions:

1. Create a general html website which will store the upload form and flash photo editor swf on, when the user first access's the site i start the php session...

2. The user then uploads there image to the server using a simple php upload form which will store the file and create a unique named file also on the server...

3. The flash editor swf will then load up on the html page. Inside the actionscript of the swf i will tell flash to continue with the php session by calling it again and call users image on the server with the 'file reference' command. The editing functions such as cropping, canvas size will all have variables to mark what the user has chosen and these varaibles will get ent back to the html page using php to keep track of them for the checkout process...

4. Once the editing has finished the user will click 'finish' in the swf taking them to the php shopping basket/checkout which will call the variables sent in flash to determine final cost depending on what effects chosen.

Is the above correct and more importantly is it possible? The main part i am struggling to get my head around is editing in flash (say changing the uploaded image to 20 x 26) and then saving this back to the server and sending the new settings back into the html/php page.Is this all possible without using database and tables such as MySql?

View 0 Replies

ActionScript 3.0 :: Sending A Value From A Class Back To The Maintime Line & Calling A Method

Sep 22, 2009

I'm now finding the great need for classes as my current project is getting quite gummed up with too much scripting in the main document. Becoming a real pain to find stuff with in my code.

So I started writing a class to takes an id passed to it from the main time line, accesses my mySql DB, pulls the related info and the processes it. What I can't seem to figure out, is how to pass a variable back to the main time line. The traces all work, so I know my class works. I've searched here and via google, but I must not be searching the right stuff because I get a lot of results with are usually very complicated questions that don't yield the answers I need.

so here we go. my main.fla (and question):

Code:
import Name;
var theUserName:String = "Joe";
var processName:Name = new Name(theUserName);

[Code]....

ps: what's it called when trying to call a method from the main time line? or passing a property back to the main? are there specific terms for these?

View 10 Replies

ActionScript 1/2 :: Get Back Into Initial Frame After Sending User GotoAndPlay Action?

Feb 4, 2010

I have multiple frames with stop-points and labels on my timeline and an action where if the user holds down the button for >1 sec it will go to one frame, if <1 sec it will "gotoAndPlay" a warning animation. after that animation plays i want them to be sent back to the initial frame that they were previously in.

View 3 Replies

Actionscript 3.0 :: FireFox Upload - Get The Focus Back By Sending A Call To Javascript

Dec 21, 2009

I have a picture upload function in my flash and when I upload a picture I lose focus on the flash. This results in that all my listeners disappears. I cant click buttons, use dragbars etc. This only happens in FF. Im using flash player 10 and Snow Leopard. ive tried to get the focus back by sending a call to javascript:

[Code].....

View 2 Replies

ActionScript 3.0 :: Creating A Flip-book In Flash - The Pages Will Turn Back And Forward With A Button Click But They Flip Out Of Order?

Jun 23, 2011

creating a flip-book in flash (using AS3) . I've looked at the other flip-book programs and editors out there, and none really give the customization that my company wants.I have something working, but the page scoping seems to be off. The pages will turn back and forward with a button click but they flip out of order. However, it all runs fine with no error when the user clicks on the pages themselves. This is the code from the main timeline (where I'm getting an error).

View 6 Replies

Actionscript 3 :: Client + Grails Server - Processing Audio At The Client And Sending It Back To The Server

Mar 8, 2012

We're writing a flash application that can download a MP3 file, convert it to a Sound object, get the raw data and make some processing (like adding sounds, change octaves). After the processing, we want to send the data back to the server in chunks, so the server will be able to glue the data together and recover the new generated file. The problem is: if we send to the server "wav" pieces of sound, we are able to glue them together without any problem in the generated file. However, if we convert each wav piece to a mp3 file (so we can send a smaller file to the server) and join the mp3 files at the server, the result is a sound with some problems at the merge point.

This is how we load the mp3 file from the server:

sourceSnd.load(new URLRequest("sample url to mp3"));
sourceSnd.addEventListener(Event.COMPLETE, carregou);

This is how we convert each piece of mp3 to bytearray and wav:

[Code]....

View 1 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







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