package {
import flash.display.Sprite;
import flash.utils.*;
public class SetTimeoutExample extends Sprite {
private var delay:Number = 1000; // delay before calling myDelayedFunction
public function SetTimeoutExample() {
var intervalId:uint = setTimeout(myDelayedFunction, delay,stopTime);
}
public function myD...
Hello,
This all works perfectly, but one thing. How do I count in ones now?
Thanks
OUTPUT OF LIFE LOSS
580
560
540
520
500
480
460
ect...
OUTPUT NEEDS TO BE
600
599
598
597
596
595
ect...'and ending with time left counter if there is no win'
SCREENSHOT OF COUNTDOWN
ActionScript
//Starts with 600 life points, counts from 30-0
//gam...
Hi Guys,
The coding language is Java.
I have a ByteArray embedded in ActionScriptObject.(Smartfox Server)
I want to convert it into ByteArray.
The idea is to save it as an image.
This a sequel to the post --> Convert Byte Array from Action Script to Image in Java and save it
Have tried this method
It failed with the
java.io.NotSeri...
Can i use javascript to check whether the video is running or stopped? I have to loop the video but putting loop='true' in the embed doesnt work out well. Is there a javascript method to check if the video is running or stopped?
...
Hi,
I have movieclips containing FLV video sequences.
When this FLV plays in a SWF compiled from mxmlc, the video is completely corrupted - all different coloured blocks. If I compile from the IDE the video plays fine.
It's a bit more involved than this:
if I play multiple copies of the same FLV at the same time, they're fine, wher...
I am having a heck of time???
I have about 25 buttons and when a user hover overs the button, I want a symbol (box with info) that I created to pop up. I have been trying this with the button options, but I am running into layering problems, I always want the info box to be on top layer???
Thanks in advance. This should be super easy,....
I have a Flash browser application that is used as the front end for a game I'm working on. I would like the application to be able to communicate with other instances of the application. Currently it works using URLRequests, reading from a remote PHP page that echos the data in XML. For this to work it must send a request on a specific ...
What are the pros and cons of various Flash 3D engines with regards to performance on mobile devices? Which do you prefer -- which have you tried (examples of apps developed) implementing on mobile devices?
...
Essentially what I'm trying to do is nearly the same as this:
http://www.senocular.com/flash/source/?id=0.16
However I'd like to ease/tween the movieclip position and rotation to the mouse position.
The main issue I see is trying to get the current movieclip rotation and the target rotation, then tween it cockwise or counterclockwise f...
Hi
I'm building LCCS application.
Is it possible to use the NetConnection that the rtc:ConnectSessionContainer uses to connect to LCCS?
I want to use a custom NetStream that is not provided by LCCS pods and containers.
Is it possible to connect with a new NetConnection without using LCCS ConnectSessionContainer?
Is it possible to see ...
I have two spark lists and want to drag items from one list to the other. When im dragging an item and over the other list item, i want the target item to change the background coloer.
Basically instead of showing the black line indicating that I will drop between elements, I want to see the target item highlight.
Thanks in advance.
...
Hi-
I've been looking around for a good web automator (something that can simulate a real web user's experience) for Flash, but none seem to exist. Does anyone know of a good web automator or tester for Flash?
...
I have a website with a large .swf file. However when people with smaller screens view the website, I would like the .swf (which takes up the entire screen) to resize to fit on exactly. Just like how on most flash sites when viewed they fit the screen perfectly, however also then when viewed on computers with smaller screens they resize ...
Hi, as the title suggests, I'm looking for a Flash page flipper which I can integrate with an existing database of users and allow them to create their own flash books - I don't need anything complex as this isn't a CSS, just something which allows users to insert images and some text in each page. I've had a look at quite a few now and ...
i am trying to design a website in flash , and would like to know how to design a loading flash movie , something like a circle rotating till the website loads . I might not be able to explain properly , but its like when you install a software , the installation bar that you get , how to get that on a website using flash or java script?...
Lest just say i have a movieClip A which contains movieClips B1,B2,B3,B4,B5
I write code in A to receive all movieclips that a contains and like print there name.
i tried this with no succes:
for each (a:MovieClip in this)
trace(a.name);
does anyone know how to get this working.
** note the trace name is actually an example i ...
I have a FLASH site that has stopped working on PC's? It seems to hang on loading? Everything still works fine on Macs. Has anyone run into this before?
I've attached a link to the site below:
http://ow.ly/23Gfs
...
I'm trying to open a connection to a URL that will periodically send over a JSON object. I know that I need to use URLStream and some event callbacks, but I'm in the dark when it comes to knowing how streams of data "work," or the general flow of operations. Assume I know how to open the connection and send the correct request headers. F...
I want to make my flash file to play on my dvd player. It has some scripted buttons on it, so it is important that this works, is it even possible to make a swf into a DVD format and then play it with scripted buttons?
...
Hi!,
I need to implement a custom cell renderer in a project of mine, i have done some search on google but couldn't find what i need, i need each cell in the tilelist to display 2 icons with couple of labels, i need a good example to start it.
If possible i need a way to design the template as a movie clip and pass it to the tilelist...