Hi guys..
I always have a question about override custom event. I am not sure why or what do to inside override function. I searched google but didn't get too many feedbacks. I appreciate if someone can light me up. Thanks.
EDIT:
My projects seem work fine even though I use my custom event without override. Anyone could explain it? ...
Hi,
I'm using the Loader class in AS3.0 to load external images. I need to load a random image each time and I'm using a timer to load a new image after 5 seconds or so. When I load the first image, I call...
myMovieClip.addChild(loader);
After the first time I call...
if (myMovieClip.numChildren > 0) {
myMovieClip.addChildAt(lo...
I want to build a simple Video chat system in flash.
For the client side, I want it to be pure flash -- no plugins involved.
Given that, is there anyway I can have the backend be based on open source tools?
PS: I run Linux / am familiar with C/C++.
Thanks!
...
I have a table which stores high-scores, along with player ids. I want to be able to extract a record by a players id, and then get the rank, or position of their score in the table. Means, Basically I want to be able to say "you are in Nth" position, purely based on the players score against all other scores. For Example: if i am at 46t...
I've just installed Flash builder on my machine, which went ahead and installed the debug version of Flash on my machine as well. It appears now that this has broken Flash in my browsers or at least the browsers have no idea where flash is located on my machine. When I open a browser and navigate to a Flash page I get the message,
"Alte...
I did not have any problems on CS4 but I encountered this error below when I used CS5.
Fonts should be embedded for any text that may be edited at runtime, other than text with the "Use Device Fonts" setting. Use the Text > Font Embedding command to embed fonts.
Can anyone help? Thanks in advance.
...
I have a presentation built in Flash using AS3 and would like the projector to launch NOT in fullscreen, but as a maximized window.
Is there any way to do this via AS3?
...
I have a movieclip wich has a simple movement of a simple shape. This movieclip is copied many times to create a graphical effect.
As the number of copies, or the complexity of the movieclip increases, CPU usage goes up. As from 90 copies, when I keep moving the mouse over the swf movie in a circle, playback stops (hangs). When the mous...
I'm building a Flash application and I want to put a movie in it. I wish it had a navigation control like in youtube.
I'm a programmer dealing with an application designed by a client, so I had to do it in Flash, even not been very skillful in it.
...
I would like to serve high quality video (H.264) between a server and a single Flash Player client with low latency (RTMFP). The single client will be controlling a robotic device and seeing the results through the video stream, so low latency is important.
Option A: The Flash Player supports low latency streaming of video between two P...
I'm trying to visualize the results of a quiz in ActionScript 3.0.
What I would like some input on is how to best link the "filters" (top right corner in attached image) to the data source in a flexible OOP way.
The result array now contains both number of correct answers and meta data about the person taking the quiz. The meta data cou...
the AS2 code is:
MovieClip.prototype.setModel = function(m)
{
this.model = m;
this.drawModel(m);
}
MovieClip.prototype.drawModel = drawModel;
I tried:
package
{
import flash.display.MovieClip;
public class Prototype extends MovieClip
{
public function Prototype()
{
super();
}
...
I have a button labeled 'blueButton' and I'd like to use an anonymous function to handle the click, like so:
blueButton.addEventListener(MouseEvent.CLICK, function(event:MouseEvent):void {
trace( "-----click detected-----" );
// now do other stuff
});
Problem is, the click handler is called multiple times per click. The number of ti...
Hey guys,
I am hoping someone can explain about subclasses accessing variables from the super class.
I found that the subclass can only access variables which are set in the constructor of the super class. Is there any way around this?
package Character {
import flash.display.MovieClip;
public class Character extends MovieClip {
...
The title says it all. When I compile my project with MXMLC I get a light grey font; if I specify a CSS style Application { color: black;} it fixes some of the colors but not most of them. When I compile with Flash Builder it's a nice solid black. I'm using Halo.swc and not any Spark stuff, I have the same fonts installed on the MXMLC co...
Hi there,
I have to make an application that will do the following:
Open a video file embedded in the application
Open some pdf files, preferably embedded in the application, but if it will have to open externally, it's no problem.
Work in fullscreen on the user computer, with a minimal resolution of 1024x768. I'm thinking in make the...
Are there any APIs that would allow to read scene information from FLA files (like symbol coordinates) programatically?
...
I got this ActionScript 2 code:
fuseModel = [{mx:0, my:-5.5, x:0, y:-4, pen:.5, clr:0x000033, alpha:50}];
MovieClip.prototype.setModel = function(m)
{
this.drawModel(m);
}
MovieClip.prototype.drawModel = function(m)
{
var pt = m[0];
beginFill(pt.bf, pt.bfa);
lineStyle(pt.pen,pt.clr,pt.alpha);
lineTo(100,100);
endFill();
}
_root...
I'm trying to make the code below reusable. I need multiple toggle buttons in my flash project. Right now the code below works on one button. If I continue and create more buttons, and follow the format below, I would need to create separate functions for each button.
I would like to put the reusable code in a separate ActionScript file...
I am writing a web application that will serve as a configuration for a random data generator that I have written in Java. The values that I set in this application will write to xml. The xml data is updated by a file called simulationParams.as and that file is added to each child in the "viewStack" so that when I change any of those v...