dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: v5000

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    465

    High-speed download in Air

    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...
  2. Replies
    6
    Views
    3,478

    Well, CS4 and CS5 each have their own compilers...

    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,...
  3. Replies
    2
    Views
    1,201

    Well, now I think about it, guess it is because...

    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...
  4. Replies
    6
    Views
    3,478

    No, I don't know the limit. Try dividing your...

    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...
  5. php or asp or jsp or whatever, the client-side...

    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...
  6. Replies
    2
    Views
    1,201

    Why does Vector not inherit from Array?

    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...
  7. Replies
    6
    Views
    3,478

    Do you have any extremely long lines of code? I...

    Do you have any extremely long lines of code? I am pretty certain there is a character limit the length of a statement.
  8. Gianduia, I had that once. Went to the doctor,...

    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...
  9. Replies
    6
    Views
    532

    Sure, no prob. I have to make a correction...

    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...
  10. Replies
    6
    Views
    532

    For something like particles, I would not put a...

    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...
  11. Replies
    6
    Views
    532

    The enterFrame event is a weird one, it does not...

    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...
  12. Replies
    2
    Views
    374

    You need to create a reference to the literal...

    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...
  13. Replies
    6
    Views
    483

    Sorry about that, the hazards of writing code you...

    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...
  14. Replies
    6
    Views
    483

    When deleting from an array, go in reverse to...

    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;...
  15. Replies
    3
    Views
    408

    You should wrap indented code in code, php or as...

    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 {...
  16. Replies
    2
    Views
    479

    I did consider using a generic...

    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...
  17. Replies
    26
    Views
    3,242

    I didn't want to hijack the OP's thread so I...

    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
  18. Replies
    2
    Views
    479

    stage and static, coding nasties?

    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...
  19. Replies
    26
    Views
    3,242

    Out of curiosity, can you elaborate on this?...

    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...
  20. Replies
    2
    Views
    392

    Since URLVariables is a dynamic object, you can...

    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...
  21. Replies
    2
    Views
    585

    Since you are setting the stage.align when...

    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...
  22. Replies
    4
    Views
    1,030

    RTFM:...

    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(...
  23. Replies
    6
    Views
    531

    "No battle plan survives first contact with the...

    "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...
  24. Replies
    6
    Views
    1,660

    The path should be just "test.bat", the fscommand...

    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.
  25. Replies
    6
    Views
    1,660

    If you are publishing a projector, you can use...

    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.
Results 1 to 25 of 227
Page 1 of 10 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center