I'm tracking how fast does the text of a textArea change. If it changes faster than 500 ms then i don't want to do anything, but if it doesn't change in 500 ms, i want to call a method.
I tried like this:
public function textchangeListener(e : Event):void
{
if(((new Date).getTime() - changeTime)>500)
{
...
package designLab.events {
import flash.display.BlendMode;
import flash.display.Sprite;
import flash.events.Event;
import flash.filters.BlurFilter;
// Import designLab
import designLab.layer.IntroLayer;
import designLab.shadow.ShadowCaster;
import designLab.utils.LayerConstant;
// Import Papervision3D
import org.papervi...
Hi,
I'm wondering if there is a way for a SWF to check at runtime whether it is running as an online SWF or an AIR app? I need to use the same SWF to run both online and locally, however when running as an AIR app, external assets are located in a different directory. I'd like to check whether a SWF is local or online so I can change th...
Is there any non-hacky way to determine wether a class' superclass implements a particular interface?
For example, assume I've got:
class A extends EventDispatcher implements StuffHolder {
protected function get myStuff():Stuff { ... };
public function getStuff():Array {
if (super is StuffHolder) // <<< this doesn't wo...
Hi,
I'm trying to make some "social share" buttons at my site, but the urls I generate just don't get decoded by this services.
One example, for twitter:
private function twitter(e:Event):void {
var message:String = "Message with special chars âõáà";
var url:String = "http://www.twitter.com/home?status=";
var link:URLRequest = n...
I keep getting the below error only in firefox
ArgumentError: Error #1063: Argument count mismatch on com.flashden::MenuItem(). Expected 1, got 0.
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at com.flashden::Preview()
Below is my menu script:
package com.flashden
{
import ...
There's only room for three lines of text in the interface, but the content is external and variable, and if it ends up taking up more than three lines, there needs to be some sort of 'view all' button functionality. I can kind of think about what that function needs to look like, but I'm not quite sure what the best way to do it in AS3 ...
Hi All,
Currently I am working on flex application where I am using multicore variant of puremvc. My question is in my proxy I am making remote call and attaching some (RESULT and FAULT) event listener. So in my event handler code should I remove listeners explicitly for making remoteObject class eligible for garbage collecton ?
pub...
I have four movie clips (.f4v) in 4 frames in a movie with watch buttons.. This movie has them been imported into a main movie container that has next and previous buttons. However if i play a movie then hit next frame, the movie continues to play in the background. How can I shop this? The code below shows one of the actionscripts for...
BackGround: I have an advanced data grid. The data provider for this ADG is an ArrayCollection. There is a grouping collection on an ID field of this AC.
Example of a couple items within this AC the AC var name is "arcTemplates":
(mx.collections::ArrayCollection)#0
filterFunction = (null)
length = 69
list = (mx.collections::Arra...
Hi!
Flash/Actionscript 3 lack the possibility to "draw" text to a displayobject graphics - a textfield has to be created, added and set. This is rather clumsy and time consuming.
In the wait for simple and stable alternatives (for example http://lab.polygonal.de/2009/12/15/font-rendering-with-the-fp10-drawing-api/), is there a class or...
I like finding out about tricky new ways to do things. Let's say you've got a class with a property that gets set to the value of an argument in the constructor, like so:
package{
public class SomeClass{
private var someProperty:*;
public function SomeClass(_someProperty:*):void{
someProperty = _someProperty;
}
}
}
That's n...
Im new to ActionScript and Flex 3... im trying to develop an MVC 100% OOP application with Flex 3 using MXML,AS3 and PHP.
M (PHP)
V (MXML)
C (AS3)
The 3 layers i choose for my development. I have 10 AS3 classes that are object related between them and some inherit or implement interfaces.
The only problem here is how to interact 100% ...
the following method will be called many times. i'm concerned the continuous call for new rectangles will add potentially unnecessary memory consumption, or is the memory used to produce the previous rectangle released/overwritten to accommodate another rectangle since it is assigned to the same instance variable?
private function onDr...
I'm not referring to CVS or SVN! The thing I would like to do is:
I want to have a version number of the application ex. 0.0.120
I want to see this version number only in the About box or similar
This version number should change everityme I hit debug or release. ex. my version was 0.0.120, after I hit debug in the FlexBuilder, the ver...
I have been building a game for a while (nearly done) - But the game needs a replay button and its a big task.
I know the GC is dreadful in flash, but I wanted to know if there is a way to wipe EVERYTHING as if the flash app has just begun. Clearing memory, game data - I haven't to worry about game loading as its not really heavy on dat...
Hi All,
I need a message notifier when the application is running in the system tray. Like I have set a reminder for 4:00 PM & my application is minimized to system tray. Now at 4:00 PM a notification window should pop up like gtalk incoming message.
My notification windows is flex custom component.
Thanks in advance
...
Hi there
I am using AS3 to traverse through XML but the Flash help is really insufficient here. Do you know any easy-to-read tutorial on how to traverse E4X in for loops or similar?
(I don't think the question is Flash or AS3 specific as long as the tutorial is easy to understand)
Thanks!
...
Hi all,
I have a simple swf which create flvplayback object and load from time to time an flv, replacing the old one.
I manage everything in a wrapper class, identified with mdcVC in the code below, with a variable FLVPlayback in it.
I notice one strange thing, before loading a new flv, the old one is replaced and the listeners remove...
I was reading the Flex Compiler API User Guide at http://livedocs.adobe.com/flex/3/compilerAPI_flex3.pdf and tried to follow the example to create a Java application to compile a Flex application.
Here is my program:
import flex2.tools.oem.Application;
import java.io.*;
public class MyAppCompiler {
public static void main(String...