I have a movieclip in frame 1 doing an animation. I would like to use a listener to determine when the movie clip is finished then move to the next frame.
i'm making a game and to score some extra performance im rendering every frame of every entity into an array of bitmapdata's the first time the frame is seen, and it works well, but its wasting alot of memory because we have alot of animations, and most of them are double framed at least, so more than half of the bitmaps could be ignored if there was a way to determine if a frame is a keyframe or not
I want to update a row in mysql when a user uses an application with flash. And when they exit that application, I want to change the row to reflect that the user has left. Is there a way to do this easily? Currently, I'm thinking of writing a connection manager with sockets.
What command do I enter for the movie to rewind to first frame on entering a certain frame / stopping in a frame?It's my first time using Flash, and I'm working on a double menu (second menu has a "close" button, where I want to get back to the first menu).
i am trying to make a photo gallery so when people click on a thumbnail it expands to full screen, my problem is i have lots of pictures and i want to determine which one has been clicked. i thought i would use the e.target in a simple if statement like this:
[Code].....
in this picture one and two are both on the stage with instance names of picture and picture2.
We generate a LOT of swfs where I work. We've got a group of people managing putting the swfs into our asset management system. These people do NOT have flash or anything adobe. However, they need to be able to determine the AS setting on the swfs. Is there a tool (preferably cheap or even free) that can be used to determine the Actionscript level of a swf?
I need to know how to tell when I've reached the end of video. I seem to recall there's a command new to flash 10 that will let you know without having to track the total bytes used or time elapsed or anything complicated like that.
Is there any way via Actionscript that I can have a swf determine what URL it's hosted under? For instance, if I put my swf on this site, I want it to behave one way and on another behave completely differently. Make sense?
Is there an easy way to determine whether a swf is being tested in the IDE? Have a number of params that change whether I'm working in development or production .. it's getting tiresome changing them .. i'ld be nice if I could do it programatically ..
I'm trying to use NetStream events from an FMS 3.5.4 server but am having trouble. I'd like to simply know when a video is playing, buffering, or idle. I know about Play.Start and Play.Stop, but these can mean the video is playing, or the video is buffering. Buffer.Full and Buffer.Flush can occur when a video is paused, playing, stopped, seeking, etc. I'm scouring over every event I get, but I really see no good way to determine what the exact state of a NetStream is at a given time.
We have a set of FMS's deployed on Amazon's EC2. One of the things we want to be able to do is automatically detect when we should start up another FMS instance. To do that, I've been looking for metrics I could measure on the local FMS box to help me identify "transition" points, e.g., when we should add capacity or remove excess capacity.
I ran some load testing to find out where the capacity limits of a particular box, but ran into a couple of problems[code]...
I need to swap a JSP form with a Flash form should the user have it installed. I know there is a JavaScript option, but don't want to use this as that cuts out people who have Flash but not JavaScript.
Is FarmVille on the iOS built with Flash? And if so, how can you tell? Are there certain flags that exist in the form of certain files or magic numbers within the .app folder hierarchy?
What is the correct way to determine if a Dictionary contains a particular key or not?
In Java I can do: HashMap x= new HashMap(); x.containsKey("test"); // returns true/false Is this the correct way in AS3? var xictionary = new Dictionary(); x["test"] == null
suppose I have a set of movieclips on stage. Each movieclips has its own name. I can drag one of these and check when my dragged movieclip collide with the other ones. Is there a way to determine the name of the movieclip that was hit by the dragged one without having to use a for-loop statement and/or array?
Is there a way in actionscript to determine if something is rotating CW or CCW? I created a knob in Flash but i'm stuck on how to tell which way the user is dragging it?
How would I go about determining the time in-between key presses in AS3? Basically, if a user is tapping the space bar to a beat, I want to be able to average the time in between 10 taps/key presses and get an output time in milliseconds.
My thought was to use an interval and after every press I would add that amount of time to an array. After 10 presses, I would take the average of all the numbers in the array and then output that number.
I am building a menu system. There are 4 main menu buttons for the 4 different pages of the site. When you click on one of these I want to animate the existing menu structure off the page in a fancy way. So each area has an exit animation if you like. The thing is i would only rather have this ONCE in the timeline for each page/area. So would it be possible to play it once and then after it, have a variable to determine where yuo go next that is already assigned a value depending on what button the end user pressed.
This PNG image is rather large, and only a small portion is filled with pixels. Most of the image is transparant.I want to apply the effect only to the part with pixels, so I'd like to create a boundingbox around that part of the image. I need to know 4 things to do this (the way I see it...): The position of the top-most non-transparant-pixelThe position of the left-most non-transparant-pixelThe postition of the bottom-most non transparant-pixelThe position of the right-most non-transparant-pixel
Is there any way for me to move the mouse to a spot on the stage and determine what the x/y coords are? It's really hard writing some action script and just continually guessing what x/y coord i want until i get it close enough.
I have a image slider movie setup. When a user mouse's over the image I have a tooltip appear. I want the tooltip to contain the value of the "desc" value stored in the XMLfile. How can I determine which image is moused over? Is there an ID tied to the image?
I am using the Loader class to load images into a photo gallery. When a user navigates to the next image in the gallery, I need to unload the Loader using the "unload" method and then load the next image.The code for this is simply:
My question is if there is someway to determine if a Loader is already loaded? That is, I don't need to unload the Loader if nothing has been loaded so I am wondering if there is some sort of conditional statement I could use to control when the unload method is used.