ActionScript 2.0 :: Send To Back Or Front?
Jan 31, 2006I need to send back or bring to front a movie clip thru actionscript??
View 2 RepliesI need to send back or bring to front a movie clip thru actionscript??
View 2 RepliesI've developed a website and on the home page there is a series of css/ javascript dropdown hyperlinks. Some of these hyperlinks display a popup menu of further links on mousemover. Immediately below the hyperlinks is a small flash movie.
The problem is, when you mouseover the links and it displays the popup links, the flash movie appears OVER the drop links.
Is there a way I can either send the flash movie to the back using some kind of 'send to back' option like there is in dreamweaver? Surely I don't have to restructure my page to allow for this?
Is there someway that you can arrange movieclips in as3? Like when you right click on it and you can arrange "Send to back", "Send to front". For example I've exported 2 Mc:s to as3 and made a new instance in as3 by referring to the class I exported. So is there someway I can decide which one to put infront of the other one? If it's confusing my goal is to at some point bring one of the Mc:s to the front, and on another point bring the other MC so the front.
View 1 RepliesI have a site with an SWF that I can put some metrics into, such as ZIP Code, Weight, etc.. then, it takes that info and gives me shipping rates.
I need to build a front-end site that I can have a forms page that will push data to the backend SWF, and then return the data back from the SWF to the front end.
Front-end -> SWF (Zip Code, Weight, Size) -> *Calculates* -> Front-End
That should be the flow.. So I need to send data to the backend, GET the data that it calculated, and return the results to my front-end.
I have a project (see attached) where I need to have the folders seem like they are floating in space, and I need the best way to make it so when you click on a back folder, it slides off the screen and come back in front of all the folders.
View 2 RepliesI'm looking to send a list of variables (say 6 in total) from php to flash and for flash to pick a random one and send it back to php when clicking a button.
I would like it to appear in a dynamic text box. That randomly selected variable needs to be sent back to php on pressing a button.
I'm looking to send a list of variables (say 6 in total) from php to flash and for flash to pick a random one and send it back to php when clicking a button. I would like it to appear in a dynamic text box. That randomly selected variable needs to be sent back to php on pressing a button.
View 6 RepliesI have created a motion-tween with three images rotating in a flat circle from the foreground to the back. As the images move to the background, they shrink in size 25% and darken a bit. The motion has three stopping stages, with each image having a period in the foreground.
I am having an issue figuring how to make the images in the front to overlap those in the back as it rotates. I have tried placing each image on a seperate layer and placing the images on a single layer but it doesn't function the way I hope.
I don't understand how it's possible to have a lot of objects on the stage and be able to manage the motion tweens with all of them, but ALSO manage which objects are in front and which are in back of each other. I have a military type animation and there is a lot of action going on, and there are times where I need some of my guys to be in front of objects, and times when they need to be behind.
I don't know how to manage the objects in regards to layers and motions in a way so I can get the objects in the order I need them to be (like which item goes in front of the other).
Does anyone have any tips or a way that I can manage my objects and motions and be able to sort them on the stage so that I can arrange the objects how I need them to be in regards to placement and which should be in front of other objects?
how to create a two-sided movieclip and load a different image on each side.
View 1 RepliesI'm using Adobe Air 2.5 and would like to switch between the front and back camera on an Android device.
View 2 RepliesIs there any way to make a clicked movie clip go to front, and then when released, go back to it's original position?
I've been reading about swapDepths and a few functions that allow to bring to front the MC, but nothing to return them to their original positions between the layers.
Can this be done? Or is it any way to make it look as it?
I'm looking to slideshow or flash my magazine front and back cover and some interior pages on my website. So they will show the different pages back and forth.
View 1 RepliesI want to control which DisplayObject is displayed on the front or on the back. I can control that with zIndex style in css.
View 3 Repliesi hava two text boxs in flex.have to add two txt boxs values in back end java and have to return back to third text box in flex.
View 1 RepliesI've got a bunch of movieclips lying on top of each other like a stack. When you click one, it slides out, and comes forward. When clciked again it goes back and slides back into the stack.inside the movieclips iv'e placed:
Code:
this.swapDepths(1);
along the timeline at a spcific frame.I need to make it get the same depth value as it had before I clicked it when it goes back. Basicly:
Code:
this.swapDepths(same-as-before-the-swap-to-depth-1);
I guess I need som kind og listener to logg the changes made...
I need to write actionscript for a code so that when I place two graphics on one another when I click them they go to the back, that way I can click them and they will alternate. How do I do this?
View 19 Repliesi have searched on the web and i haven't found anything that works.
How can i send to back a movieclip by actionscript?
I've got some movieclips where everytime when you click on one, that movieclip has to be send to the back.Most logic solution is MovieClip.swapDepth(1), so you swap with the movie wich is at the lowest depth, but for one reason or another, this results in the movieclip jumping to the front.An examplefile is in attachment.this is my script:
mc1.onRelease = function() {
mc1.swapDepths(1);
};[code].....
I've been using flash vars to send info (such as numbers) into a swf file. I need to send info back to the webpage. something as simple as a interger (maybe, send as a "GET", like in a forum) if you could give me some sample code, or some keywords to look up
View 9 RepliesIf there is a movie clip over another one i want the first one to go back, but I don't know how to do it when the project is running.
View 1 RepliesI know how to get it to the top but I can't figure out how to get the child to the back
View 2 RepliesI have two swf files that I would like to communicate back and forth. Currently, I am able to get the LocalConnection to work one way.
But I'd like to have the 'Receiver' send info to the 'Sender' and back again and again.
am creating a shooting game. my main class in first frame now i want to add the title in front of the game if a adding frame in front make it stop function. the game play runs what can i do?
View 1 RepliesI have a layer called "home_movie" and on that later on the end frame is a movie clip that plays, what i want to happen at the end of the animation is it to send the user back to the frame above they started at. which is layer: home_movie, frame id: main_movieopt but its not working.
[Code]....
I'm trying to build a class for objects in my prog that can by manipulated in various ways.. I want right clicking them to send them to back, and left clicking, bring them to the front.
ActionScript Code:
package {
import flash.display.MovieClip;
import flash.events.MouseEvent;
[code]....
When I run it, however, I get ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.So something's not lining up, but I'm not sure how to write it so it'll work.
I am new to php and specially AMFPHP, now all I am trying to do is send and Array to PHP using AMFPHP and get it back, but it returns "null";.
Code:
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class Main extends Sprite {
[Code] .....
I try to make a simple login. I use the code
Code:
function sendVars_login(event:MouseEvent):void
{
var scriptRequest_login:URLRequest = new URLRequest("http://******.aspx");[code]...
when i send the vars i get back that user doesn't exists although i have checked that it exists.A funny thing is that when i change the following
Code:
scriptVars_login.u_pass = "somePass"
scriptVars_login.u_email ="someEmail"
I get correct results. So the .aspx script works and the way i'm sending the variable works. when i trace
scriptRequest_login.data
i get a url encoded string, so i tried to unescape the value
Code:
var unescapedString = unescape(String(scriptVars_login));
scriptRequest_login.data = unescapedString;
scriptLoader_login.load(scriptRequest_login);
now when i trace(scriptRequest_login.data) i get an unescaped value but it still doesn't work
how I can have a text field load some data from an xml and then the user can change the text in the text field and send it back to the xml file. Like load, edit, send.
View 14 Replieshow I can have a text field load some data from an xml and then the user can change the text in the text field and send it back to the xml file. Like load, edit, send.
View 14 Replies