I could be overlooking something, but Flash / AS3 seems to be missing basic date formatting functionality. How do I get a formatted string from a Date ? There's a few options like .toLocaleDateString() and .toUTCString(), but that a bit limiting, to say the least.
So, how do I format a Date object in AS3?
...
Hello,
I would like to know if there is a way to avoid processing some objects in a away3DLite scene. The problem is that I Have a scene with a lot of spheres, some of them are not visible ( out of camera range ) and I would like not to processing them.
Maybe Away3D automatically does that.
Maybe visible = false can help
Any good tut...
In mxml you declare states like this:
<box:states>
<s:State name="active"/>
<s:State name="disabled"/>
</box:states>
How do you acheive the same in an ActionScript class? Apparently it's the same in Flex 3 and Flex 4, whatever it is.
...
Task:
Design a class that is a collection of other objects and could be used in for each (..)
public class Cards
{
public function add( $Card : Card ) { ... }
}
//...
var $Cards:Cards = new Cards();
//...
for each ( var $Card:Card in $Cards) {
// do things
}
My first attemt was to use Array class as parent:
public class Ca...
This is a question about implementing a Flash plugin for FlowPlayer, allowing viewing of an MJPEG stream within the content area of the video widget.
I'm tasked with designing and implementing an MJPEG-viewing plugin for flowplayer. If you have the requisite knowledge to answer these four questions, I'll be extremely grateful for any he...
I have a main.fla, in the library, i created two new fonts:
RegularFont and BoldFont.
And I found the following piece of code somewhere, which works fine!
var regularFont:Font = new RegularFont();
var boldFont:Font = new BoldFont();
var regular:Object = {fontFamily:regularFont.fontName};
var bold:Object = {fontFamily:boldFont.fontName}...
Hi gang,
Yet another woe with the AdvancedDataGrid - this time, with the AdvancedDataGridEvent.
It seems that when listening to the ITEM_EDIT_END event, several of the event properties are returned null. I've been getting null for event.column, event.item, etc.
Has anyone experienced this before? If so, did you find a way to resolve...
WHat is the standard method for say a server to update an already loaded SWF on the client browser, i.e. something analogous to how an html page is partially updated via ajax (though I don't know a lot about ajax yet either.) Would the mechanism be the same if user-initiated.
I assume the .SWF should have public functions that can be ...
I am getting a string from Twitter into my Actionscript which is a unformatted string. I want to be able to extract any links and or any @replies from the string, then display it in htmlText.
So far I have this
var txt:String = "This is just some text http://www.thisisawebsite.com and some more text via @sumTwitter";
var twitterText:...
How do I change the values of arrays from different classes?
i've array in one class called creation
all the array are global variable
import addClass;
public var first1:Array = new Array();
public var op:Array = new Array();
public var second:Array = new Array();
public var res:Array = ...
Hi folks,
I've got a situation where I have a visitor arriving at a php page with a ID key. They then navigate to page 2 where they key id is carried along in a querystring variable.
i.e. http://www.mysite.com?x=abcde12345
Page 2 has a flash video on it - that is playing a movie. Once the movie stops playing I want flash to redir...
Is it safe to share data between flash and javascript using ExternalInterface? I'm building a game where I want to pass scores to js, not sure if this is safe enough.
Thanks
...
Hi StackOverflow,
I'm trying to build a flash component for my upcoming website where I have to read data from a XML file and show these with a fading 5 second interval - I guess you could call it an image-fader/content-fader or some such :-)
Before I post my code I would like to let you know that my experience with AS3 is quite limite...
Hello!
Is there any way to get interface to play along with custom namespace? Example follows.
IHeaderRenderer.as:
public interface IHeaderRenderer{
function set header(value:IHeader):void;
function get header():IHeader;
}
HeaderRenderer.as
import fi.test.internalNamespace;
public class HeaderRenderer implements IHeaderRenderer{
...
Hi Everybody,
My math knowledge has never been very broad, so this maybe a simple question but I'm not really sure.
Basically I'm using the curveTo function to draw some lines for flight paths, what I'm not sure how to do is dynamically finding the curve points, so for example if you look at the ryan air site: http://www.ryanair.com/en/...
Hi
I am having problems with Flash and AS3 and I hope someone can help me out here.
Here is my test code :
var htmlTextData:String = "<body><h1>Lorem</h1> ipsum dolor <em>sit</em> amet,\nconsetetur <h2>sadipscing</h2> elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</body>"
v...
Hello,
I've made an AIR app with Flash Builder 4. Works great but I want to run the app without installing it. So..... when I install the app, I copy the files from program files and paste it on a CD and give it to somebody. He runs it on another computer without AIR runtime with as result that it doesn't work.
How can I bypass this? Li...
When rotating a bitmap with actionscript, the edges are jagged and not properly anti-aliased.
How do you force anti-aliasing of the bitmap ?
this.stage.quality = StageQuality.BEST; // Tried this, but seems useless
var imgFromLib = new imgFromLib ();
imgFromLib.rotation = 30;
...
Hi All,
I am trying to update a visual component giving some information in 1st state, while I make changes in the 2nd State...Question : Is it possible ? If yes, then is just data binding the solution? how ?!
Clearer Description :
State 1 : Has a form, in which I enter some data value for 3 boxes.
State 2 : Has 3 boxes, who have t...
Hi. I wish for a movie clip to slowly blur over a couple of seconds. Is there some way to do this without using Tweener or some other external class? I only wish to use the tween class.
The code I use at the moment is below, but this doesn't do it gradually, just turns the blur on like a switch:
var blur : BlurFilter = new BlurFilter()...