Search:
Type: Posts; User: wvxvw
Search:
Search took 0.05 seconds.
-
I need to tell Flex compiler that my custom class is SystemManager and it has to create on it info() and create(...rest) functions.
Why do I need this:
- lots of additional compiler arguments are...
-
If the handler doesn't need event.target - i.e does something like:
function handler(event:Event):void
{
trace(Math.PI);
} Then, sure it is better to have only one handler of that kind (not...
-
I continue working on that project, so, couple of bugs ware fixed, + some features ware added. Now it can be called from command line with -in <file or directory [repeateble]> argument, so you can...
-
http://code.google.com/p/e4xu/downloads/detail?name=codeparser.air
Hi all.
The link above is for downloading the AIR installer (for AIR 1.5).
But you may also find the sources, at least the most...
-
This definitely doesn't mean this is what it is doing in AS3 :)
There's no _width property on display objects, and you don't define one either. Also making initializer an expression isn't really a...
-
What's this:
public var radius:Number = this._width / 2;
?
Besides that the code compiles without errors.
-
Your private function onEnterFrame is outside the class scope, put it inside the class definition and rename, otherwise you'll get a "deprecated" warning because the function with the same name was...
-
I don't think there is, but you could just convert all your timeline stuff into a single clip and then place it on the stage of the only frame that you'll use. Thus, even though the commands will be...
-
var list:XMLList =
XMLList(<component name="gun" size="0"/> +
<component name="armor"/>);
list.@*.(name() == "size" ? setSize(parent()) : "");
function setSize(value:XML):void
{
trace("setting...
-
This really depends on your testing conditions... were you testing it in debug or release mode, was it on the timeline of the clip or inside class constructor / class instance method / class static...
-
Regexp there is actually a weak part... because you will get the index of the actually displayed text, and not of the HTML text the field contains... also, the actuall HTML text is defferent from...
-
function blueShirt (event:MouseEvent):void {
if(_currentShirt)
{
// othervise you may get an error when removing existing DisplayObject which
// is not a child of...
-
>> i usually did the i-- thing also and thought it was faster.
For AS2 this would be faster.
The forward iteration is a special optimization made in AS3. However, for considerably short loops you'd...
-
var abc:String = "ABCDEFGHGIJKLMNOPQRSTUVWXYZ ";
var someText:XML =
<p>
Here the paragraph begins <a href="event:eventID">{createRandomLink()}</a> and it goes on here.
</p>;
function...
-
>> A.) Generally speaking, what is better about AS3 over AS2?
AS2 is a fake programming language =) it's actually AS1 that mocks other more advanced languages =) And it lacks many necessary...
-
It's the same Namespace you use with XML, why would it behave differently with classes / functions? =)
-
var ns:Namespace = new Namespace(describeType(foo).method.@uri[0]);
var fn:String = describeType(foo).method.@name[0];
trace(foo.ns::[fn](1, "foo", this));
foo has a method aMadeUpFunction in...
-
Hm... Are you sure you call Security.loadPolicyFile() before connecting to WS? And, is SWF itself loaded using HTTPS? And is crossdomain.xml displayed if you try to view it in browser? And are the...
-
Here's what you may try to do for testing: there's no error generated in FP9.124 if Security.loadPolicyFile() fails, but it will generate an error in FP10. So, may be just for the test update the...
-
If user loads SWF via HTTPS you have to set <allow-access-from domain="*" secure="true"/>
>> catch (error:SecurityError)
URLLoader.load() doesn't throw SecurityError, you have to subscribe to...
-
or slice() with no arguments (this will also create a copy of an array).
-
tf1 and tf2 are references to the fields, so, you may modify textField properties by targetnig them:
tf1.border = true; For eg. will draw black border around the tf1 text field.
-
background:
http://livedocs.adobe.com/flash/8/main/00002736.html
border:
http://livedocs.adobe.com/flash/8/main/00002738.html
autoSize:
http://livedocs.adobe.com/flash/8/main/00002734.html
If...
-
For the XML as you can see in commented part it'd be something like this:
import mx.utils.Delegate;
import mx.xpath.XPathAPI;
/**
*<?xml version="1.0" encoding="utf-8" ?>
*<data>
...
-
if (e.target is Fruit)
{
trace(this.hitTestObject(e.target as Fruit));
}
This will always be true as you hittest the object against itself......
|
Click Here to Expand Forum to Full Width
|