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


Similar Posts:


ActionScript 2.0 :: Buttons To Stay Orange Once Clicked And Only Roll Out Back To Grey When The User Has Clicked On Another Button In The List

Feb 7, 2007

I've got about 6 buttons laid out, one on top of the other in a list format. In their normal state the buttons are grey in colour, when I rollover them, the buttons flash and turn to orange. Now, what I need to happen is this: I want the buttons to stay orange once clicked and only roll out back to grey when the user has clicked on another button in the list. I've been told that the best way to do this is via adding a listener, however I am a little unsure as to how to go about this. I've checked the flash help file and have a basic understanding of how listeners work...but can't really wrap my head around applying it to this situation. Perhaps I will need to have all the buttons as separate broadcasters?

View 2 Replies

ActionScript 3.0 :: Flash Sending Variables When Movieclip Is Clicked?

Jun 5, 2011

I�m trying to send variables when a movieclip is clicked and use some frames later.

Code:
function langFr(e:MouseEvent):void{
var language = "fr";
play();
}

When the button is clicked, the movie plays until frame 10, where there�s the code:

Code:
if (language == "fr"){
trace ("French")
}

but it�s not working. I imagine that because I�m creating the variable inside the function and trying to read it outside. But how can it be done?

View 3 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 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 :: 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 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 :: 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 :: 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 :: Clicked Should Force The Browser To Jump Back To The Top Of The Html Doc Containing The Swf

Jan 4, 2011

Question: I have an swf that is 1024x1600 and is embedded in an html doc. I have content on the bottom of this swf that when clicked should force the browser to jump back to the top of the html doc containing the swf. This is simple to do with anchors and links in html, but is it possible with AS3?

View 3 Replies

ActionScript 2.0 :: Make The Browser Scroll Back To The Top When A Button Is Clicked?

Jan 5, 2011

I have a tall web site that requires browser scrolling.When a button is clicked, the main movie is replaced by another, and unfortunately, the viewer isn't brought back to the top of the page.Here's the site: http:[url].....Scroll down, and click on the purple box that says "Knowledge & Experience."You will see my dilemma.how to make the browser scroll back to the top when a button is clicked?

View 9 Replies

ActionScript 3.0 :: Close Window When Back Button Is Clicked On Movie Presentation

Jul 1, 2009

I have a .swf movie that is accessed through a link on a website. At the end of the movie are two buttons: one for "Back" and the other for "Replay." I have the buttons working so the Back button goes to the previous URL and the Replay button, well, replays. However, the Back button opens a new window. Is there a piece of Action Script 3 that I can add to the following to close the window in my .fla Action Script Window to close the window as it jumps to the URL? Here is the script.

[Code]...

View 2 Replies

Professional :: Make A Movie Clip Go Back To The Main Stage Once It Is Clicked

Mar 31, 2011

How do i make a movie clip go back to the main stage once it is clicked.. it has a roll in and out which is inside the movie clip.. i have a door and i want it so when you click the door it goes to another key frame on the main stage

View 1 Replies

ActionScript 2.0 :: Looping Menu - Go Back To Frame And Play From There So It Would Loop All Until The Button Is Clicked

Apr 10, 2010

I've got an intro for a movie,and a single button appears around frame 58,and I've tried giving it a function so it will skip to fram 478 and play the whole movie from there on:

PlayCompl_btn.onRelease = function() {
gotoAndPlay(478);
}

but it keeps saying "statement must appear within handler" and I've got the same problem when the movie reaches frame 477 I want it to go back to frame 58 and play from there so it would loop all until the button is clicked:

PlayCompl_btn.onEnterFrame = function() {
gotoAndPlay(58);
};

View 9 Replies

ActionScript 3.0 :: Movie To Play The Tween That Spans From 25 To 35, Then Stop UNLESS A Button Has Been Clicked Back On Frame 24?

Jan 8, 2010

Normally, I want the movie to play the tween that spans from 25 to 35, then stop UNLESS a button has been clicked back on frame 24 - then I want the tween played from 25 to 35 then jump to 46.Problem is, in the button function code, if I have...gotoAndPlay(25); gotoAndPlay(46);the timeline jumps straight to 46 - it doesn't play 25-35. Why?I tried putting a timer in between the two gotoAndPlays, but itignored that too and jumped to 46.o how do I tell it - 'play from 25-35 and stop, unless but_a was pressed back on Frame 24 - then play 25-35, and then play 46' ?

View 7 Replies

Actionscript 3 :: Sending Images Via Socket?

Feb 29, 2012

I'm trying to send an image via a socket in as3 between two AIR applications that I made. It works fine with small images, but with the bigger ones, it gives me this error: "Error #2044: Unhandled IOErrorEvent:.text=Error #2124: Loaded file is an unknown type.". It repeats it several times, so I thought that the image might be cut to smaller ones, is that right? And if it is right, how to restore it??

View 1 Replies

IDE :: Sending And Loading Gif Images Via Loadvars?

Jun 24, 2009

I'm trying to create a test taking application for a system that already exists. Currently everything is done in HTML, but they need to convert the app to flash to add tricky components. So for now, everything is in HTML format and everything is created dynamically using mod_perl and a mysql database.The problem really comes in when one of the test questions has an image included with it. The image is stored in the database and with HTML was just inserted into the <HEAD> tag in raw format. The image does not actually reside anywhere on the server , just in the database.

View 6 Replies

ActionScript 2.0 :: Submit Form - Sending Images To Server PHP

Aug 14, 2009

In my submit form I've got 5 images in UI components LOADERS. How to write the AS code to send the images to the server PHP.

This is my current AS code.
var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();
sender.onRelease = function () {
senderLoad.thename = thename.text;
[Code] .....

View 0 Replies

ActionScript 2.0 :: Sending User-drawn Images To An Adaptable Grid Layout In The Next Scene

Nov 16, 2008

I've created a drawing application intended as an interactive art piece for a gallery. I'd like to have what each visitor draws in one scene to somehow be carried over into the next scene and be displayed on clicking a button. Ideally, the user-drawn images will scale and position themselves accordingly to maximize the screen space. This way, if only three people have visited and drawn something, their three images would enlarge to fill the screen. If 12 people draw something, those 12 images would shrink to fill the space.

I'm thinking I might need to look at creating adaptable/expandable grids, but I'm also just stumped on how to carry user-drawn images over to other scenes. I have very little AS background and need things spelled out for me explicitly...

I'm working in CS3, but writing in AS2. On the stage, I have a palette of colours the user can choose from, a movieclip called "canvas," and another called "controller." Here's my code:

Attached to a movieclip called "Controller" is:
onClipEvent (load) {
topDog = "window1";
_root.createEmptyMovieClip("holder",100);

[Code]....

View 2 Replies

Load Up Images As Well As Text When An Item Is Clicked On The 3D Carousel?

Mar 12, 2011

Im trying to load up images as well as text when an item is clicked on the 3D carousel. How do i go about doing this?

View 1 Replies

Flash8 :: Move Images From Front To Back?

Jan 13, 2010

I 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.

View 2 Replies

ActionScript 3.0 :: Photo Gallery Navigation - Can't Go Back To Images?

Oct 13, 2010

i have a photo gallery up on page [URL].. that is giving me the blues as far as navigation. i can't go back to images i've already viewed.

View 1 Replies

Professional :: Create New MovieClip With Front And Back Images?

Apr 4, 2011

how to create a two-sided movieclip and load a different image on each side.

View 1 Replies

Flex :: Move Images Into And Out By Converting Back And Forth Between ByteArrays

Jun 21, 2010

I would like to be able to move images into and out of Flex by converting back and forth between ByteArrays. I've been having some trouble with this, so I designed a simple test program, and even that I can't get to work. Here's the code I'm trying right now:

[Code]...

So far the process follows top to bottom: Click button 3, image displays, everything is going well. Click button 4, and I get "Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type." after the line "loader.loadBytes(myByeArray);" in the function button4_clickHandler. As far as I can tell I'm using everything as intended.

View 1 Replies

ActionScript 2.0 :: XML Gallery At The Moment Which Loads In Thumbnails And Displays The Larger Images When Clicked

Sep 8, 2008

I have a xml gallery at the moment which loads in thumbnails and displays the larger images when clicked. What I am having trouble with is that some of the thumbnails have their own multiple images (more than 1 image for that thumbnail). I want to have a numbered menu 1,2,3,4 and when I click on the thumbnail depending how many sub photos there are for that one thumbnail I want to display an that image. And just to be dificult I also am displaying the larger images in another swf on the same page using local connection.

View 1 Replies







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