Search:
Type: Posts; User: v5000
Search:
Search took 0.04 seconds.
-
I am building a desktop Air app (PC and Mac) that requires downloading a list of media files (10-20 average) that will be fairly large (10-50MB each). The files do not need streamed playback, it is...
-
Well, CS4 and CS5 each have their own compilers so can't expect them to behave identically, especially under extreme conditions... I have noticed in general, for large projects where it is noticable,...
-
Well, now I think about it, guess it is because Array is (still) a dynamic class where Vector is not.
var array:Array = new Array();
trace( array.foo ); //no compile error here
var...
-
No, I don't know the limit. Try dividing your array into several push statements. Is there a requirement for your project that needs the data compiled with the swf? Can you use an external...
-
php or asp or jsp or whatever, the client-side flash code should be identical. If your response is coming back wrapped in an html body then you probably need to set the content type of the response...
-
1067: Implicit coercion of a value of type __AS3__.vec:Vector.<Foo> to an unrelated type Array.
Really? Doesn't Vector include all the properties, methods and signatures of Array? Is there some...
-
Do you have any extremely long lines of code? I am pretty certain there is a character limit the length of a statement.
-
Gianduia, I had that once. Went to the doctor, got some pills and it cleared right up.
Correct me if I'm wrong but Webobjects, which appears to be a major component of the framework, is not free...
-
Sure, no prob. I have to make a correction though. If an enterFrame listener uses a weakReference it is not garbage collected as is normally the case. If the enterFrame listener is explicitly removed...
-
For something like particles, I would not put a listener on every particle. It would not be very efficient and wastes memory when you could accomplish the same with one listener and an array. The...
-
The enterFrame event is a weird one, it does not seem to follow the normal garbage collection rules. I generally use a timer instead of enterFrame when possible.
If you have to use enterFrame...
-
You need to create a reference to the literal Class to construct:
var starClass:Class = Star;
var star:Star = new starClass();
If all you have is the class name as a string, then you have to...
-
Sorry about that, the hazards of writing code you can't actually compile. Yes I meant:
var player:Player = gameObjectArray[ i ] as Player;
Explicit casting is a better idea when dealing with an...
-
When deleting from an array, go in reverse to avoid indexes that have shifted:
for( var i:int = gameObjectArray.length -1; i > -1; i-- ){
var player:Player = gameObjectArray as Player;...
-
You should wrap indented code in code, php or as tags so people can better read it:
yellow_btn.addEventListener(MouseEvent.CLICK,explosion);
function explosion(e:MouseEvent):void {...
-
I did consider using a generic DisplayObjectContainer instead of stage, but since the tooltip x/y positioning requires access to stage.stageWidth/stage.stageHeight I wanted to avoid null stage...
-
I didn't want to hijack the OP's thread so I started a new one:
http://board.flashkit.com/board/showthread.php?p=4238887#post4238887
-
Ok, here's an example of using the stage directly for a static (singleton for slackers) TootlTipManager class. The short story is ToolTipManager checks every MOUSE_OVER event target to see if it...
-
Out of curiosity, can you elaborate on this? Personally I use stage listeners frequently for singleton type interactivity (i.e tooltips, text input) or for communication between separate branches of...
-
Since URLVariables is a dynamic object, you can iterate over its properties with a for-in loop, you dont need to know the length.
var vars:URLVariables = new URLVariables( loader.data );
for( var...
-
Since you are setting the stage.align when entering fullscreen you need to set stage.align back to whatever it was when exiting fullscreen. I think stage.align = "" will set it to the defualt center...
-
RTFM:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/index.html?flash/media/Sound.html&flash/media/class-list.html
Here's the jist:
var urlRequest:URLRequest = new URLRequest(...
-
"No battle plan survives first contact with the enemy." - Helmuth von Moltke the Elder
But that doesn't mean you shouldn't try, got to start somewhere. For complex projects UML diagrams, CRC...
-
The path should be just "test.bat", the fscommand folder is the root. Also, it will not work when testing the movie in Flash, only from the projector.
-
If you are publishing a projector, you can use fscommand( "exec", "file_to_execute.bat" ). The file must be in a subfoleder named fscommand. It is not possible with a swf in a browser.
|
Click Here to Expand Forum to Full Width
|