ActionScript 3.0 :: Setup An Application That Has Certain Movieclips?
May 31, 2009
I'm trying to setup an application that has certain movieclips that have to chance position depending on a selected option. The application basically has the main stage with a movieclip called "Options" and a movieclip called "Objects". The selected options in the movieclip "Options" define what positions the movieclips in the "Objects" movieclip have later on.
I figured that I had to script it so that if I click "Option 1" in the "Options" movieclip, that it defined 2 variables called "option1_x" and option1_y" and when selecting Object 1 in the movieclip "Objects", that it would set the X and Y values of "Object 1" to .x=object_x and .y=object_y
However, I'm rather new to AS3 (read: very new) and I'm struggling to figure out how to get this to work, because my attempts so far have been.. rather bad.What I have right now is this for the "Options" movieclip:
Code:
var object_x:Number=0;
var object_y:Number=0;
option01.addEventListener(MouseEvent.CLICK, Click01);
[code]...
But this doesn't work at all?
View 1 Replies
Similar Posts:
Jun 12, 2011
I am planing to setup all of controls ( more than 100 visible ) on a Flex application to alpha below 1, which will make them a bit transparent, but i am wondering if this will affect the performance of the application. So :I would like to know if alpha actually affecting performance on Flex applications ?
View 2 Replies
Aug 30, 2011
how to setup, develop and run flex application with flashdevelop.
I am an experienced programmer (PHP, JAVA, JS, ActionScript....) so I just need a good quickstart....
View 1 Replies
Feb 22, 2011
I have started the vhost setup. I have cpanel on the server and I added the domain and it resolves to
the hosting account just fine pull up www.domain.com and goes to server.
I added the www.domain.com vhost. I pointed the application dir to /home/domain/public_html/applications/
I copied live over to applications dir. I setup user and pass for the virtual host login.
View 3 Replies
Jul 1, 2009
I'm trying to create an application that has three movieclips that when rolled over show a movie clip over everything that the user reads then they drag one of three pictures over to the corresponding movieclip. I have the Movieclip alpha down until roll over but i had issues with layer order. If its on top i cant access the drag items beneath it and if its below i cant see it.I tried using swapChild but then it makes it crazy. The DragItem "sticks". It shows up on pages it shouldn't (i have it on one frame but it sticks to everything and i cant get rid of it). It works when im on the current frame so i must be close?
here is what my code is currently:
//This is the graphic that i want them to hover over to call the movie clip to show
msdsHover_mc.buttonMode=true;
msdsHover_mc.addEventListener( MouseEvent.ROLL_OVER,
[code].....
View 1 Replies
Aug 24, 2011
I am trying to port a pure Flash/AS3 card game to Flex 4.5.
It works mostly well, but I'm missing few puzzle parts there:
I've created a custom component based on UIComponent representing a deck of cards (which are an array of Sprites or MovieClips):
In the original pure Flash/AS3 game I was using Tween for the 3 cards at the table - to show the game user, who has put which card (by sliding them towards playing table middle):
import fl.transitions.*;
import fl.transitions.easing.*;
public class Deck extends UIComponent {
[Code]....
However Flash Builder 4.5 doesn't seem to know fl.transitions.* packages at all?
Like I've written the rest (my custom Flex component, moving card-Sprites around, etc.) works well. Only the Tween lines had to be commented.
View 2 Replies
Feb 10, 2010
Just curious to know if empty movie clips or sprite can slow down a application or game.Reason being is because I want to use multiple sprites as containers for my object. So I can easy manage what objects are in front of others. Some points in the game, layers will be empty so I am just curious if I should just make those layers null if they arent being used or will that even make a big difference
View 1 Replies
May 22, 2009
I'm trying to setup a button to exit my swf.I used:
System.exit(0);
But always get the error:
SecurityError: Error #2018: System.exit is only available in the standalone Flash Player. at flash.system::System$/exit() at menu_fla::MainTimeline/sair_fc()
How should I do this?
View 3 Replies
Dec 9, 2010
I'm trying to set up the first page in my project so that I capture a person name.and I can use it again later on. I had discussed this in a previous thread with Ned
[Code]...
View 3 Replies
Jul 15, 2010
I am trying to make a progress bar to show the my application loading status. I google a lot but it only shows how to use progress bar for elements (ex: images, datagrid). I need to know the progress bar setup for the entire application.
View 1 Replies
May 11, 2010
the traces Show what data I want to have access to and the rest I but you all will fine right simple to fix..it this
//s_array[futureObj] = new Object();
//s_array[futureObj]["Storename"] = StorenameArray[i];
//s_array[futureObj]["Dicsriptions"] = DicsriptionsArray[i];
[code]...
View 0 Replies
Sep 13, 2011
i'm trying to setup a 2D array, but not geting very far. here's a simple bit of sample code i've got.
Code:
var temp:Array = new Array();
temp[0] = [1,3];
temp[1] = [2,4];
temp[2] = [3,6];
trace(temp[1][2]);
as far as i understand, that trace should output 4. but instead it gives me undefined
View 5 Replies
Feb 8, 2007
My client wants to make some of his original songs available for download. How do I script a button to begin downloading? How do I setup the MP3 file? Should I just place it in a folder on the server or make it a part of an HTML file?
View 5 Replies
Oct 29, 2009
We have an application that works no problems on our server with FMS in test mode. As soon as we enter our FMS license key we get this error: "application is not a valid signed application loading access denied".We removed the license key and it works again, but with user limits obviously, so this is not an acceptable fix.
View 5 Replies
Nov 9, 2011
I am using Flash profassional cs5 and want to create an iPad application but it only allow to make iphone application. It allows to install on iPad but the resolution is very small.
View 1 Replies
Oct 8, 2010
I'm trying to develop a simple mxml Flex application to start Skype from the AIR/Flashplayer runtime. Is it possible to get back events from a native Windows application? In the simple example of Skype, the OS returns control to the Flex app when Skype exits. But what about native applications which have their own event model and wants to communicate with the Flex event model. For example, a Face detection system which shows "Hello" on a Flex app when the camera detects a face. Can this be done in the current Flex framework?
View 1 Replies
Mar 4, 2011
I am working on an Adobe AIR Application. The size on Application window is 800X600 and is contains border container and border container contains many controls. What I want is to if user re-sizes the application then that container should also be re-sized according to scale. i.e If user maximizes or minimizes the window then that border container should also be maximized or minimized respectively.
View 3 Replies
Aug 4, 2011
How I will be back in Login Page after click of logout which is in application's component.
Project.mxml
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%"
[Code]....
View 2 Replies
Aug 18, 2011
I have made one one mobile application in flash builder using flex mobile project I have a question that "why size of an .ipa file is large as I export a mobile application as iOS application.???? in compare to that same application for android takes small size!
View 1 Replies
Dec 22, 2011
how can i delete storage directory instances or folder while uninstalling any air application. In my application when i first time run my application, application copy some data from application directory to application storage directory. now i want to delete all data and application directory folder also while uninstalling application.
I am doing that because when i launch any update then application is accessing old data which conflict with my application new features.
View 1 Replies
May 16, 2010
I'm new to flex. Now I'm writing an flex application. I plan to split my application into some MXML files(Application as the root tag). How can I switch from one mxml to another?BTW, what is the best practice for design large flex application? Just one MXML Application and many MXML component or many MXML Application?
View 1 Replies
Feb 4, 2011
I have an AIR app that gets bundled with XML files that the app needs. These get put into the APP Storage Directory, of course. Works great. But when I install a new version ( which includes new XML files) , the new files don't get added or overwrite the ones from the previous version. It seems that if that directory is there from a previous install, the installer will ignore the part where it moves included files.
View 1 Replies
Jul 15, 2011
I want to read xml data to a mxml application from a xml file on my filesystem. The example I found was for AIR,link2, link3. But I want to target the Flash Player runtime. If I use the the tag, I can do it; however the xml compiles into my swf. How can I retain the xml file in my release build?
View 2 Replies
Sep 20, 2011
I am creating an application. At one view I have three states. If I changes state and than back button pressed it unloads the application.I am developing it in Adobe AIR.
View 1 Replies
Oct 30, 2009
how to setup Planes with papervision, then retrieve them later?I've set up the 3d scene like this:
PHP Code:
var con:Sprite = new Sprite();
con.x = this.width * 0.5;
con.y = this.height * 0.3;
holder.addChild(con);
[code]....
but none of these methods seem to work,, possibly because you can't do the same things to Planes that you can to movieclips...(?)the scene.numChildren seems to work though.
View 1 Replies
Feb 7, 2010
I'm making a dialogue based flash game.When a player clicks the right response I want them to gain/lose points.What is the best way to accomplish this?I'm in need of correct code/script because the way I'm doing things now doesn't work.
The buttons that allow for a gain/loss of points are inside of movie clips and are also on different layers, so I thought using a global variable would allow for editing it anywhere,but when I click the buttons that //should// make the player lose or win points, the value does not change, either that or I get a "NaN" in my dynamic text box.
Initiated variable;
_global.love = 0
The code I'm using right now;
on (release) { _root.love += 5;
}
the variable I set the dynamic text box too;
View 1 Replies
Mar 18, 2010
Below is my code and it is working. What I need to know is how to setup multiple passwords for one result. So look at the first four actions.. they go to the same page. I also want it to go if it is small caps verses large. How do I put all in one statement or do I have to do it this way. How do I put this in a text file if I have multiple passwords going to different pages. So as you see below if they put in password1,PASSWORD1,cash,CASH this all goes to page1.html If this put in password2,PASSWORD2 it goes to page2.html[code]...
View 1 Replies
Jan 4, 2011
HI have a php setup to echo an XML document.In actionscript, I'm trying to send the artist's name to PHP, PHP will pull the artist info from SQL and echo out in XML for flash.Is there something wrong with my Flash Script? The artistName variable will contain a string with an artist's name...just an FYI, but like I said, it returns back with information, but not in XML format.[code]
View 1 Replies
Oct 4, 2011
I've watched a really helpful tutorial on FB4.5 for PHP by Mihai Corlan and am hoping to use some of his techniques but would like to use a different PHP server because Zend Server costs money and I'd rather avoid polluting my workstation with still more daemon-type services. I've set up numerous Debian and CentOS servers from scratch and would like to configure FB4.5 for PHP so that I can debug both my Actionscript and PHP. Has anyone done this? I could certainly used advice from someone who's gone through all the trouble already. I'd very much like to capitalize on all of the ways that FB4.5 automatically generates code and creates links for you rather than writing all that stuff by hand.
View 1 Replies
Mar 3, 2009
Apparently, there is a way to have one library, update a symbol in that library, and have the one update be reflected in 10 different documents that share that library. However, I cannot find any (coherent) documentation on how to do that.
View 1 Replies