A Flash Developer Resource Site

Search:

Type: Posts; User: Sparticus007

Page 1 of 12 1 2 3 4

Search: Search took 0.11 seconds.

  1. Frames per second drops when game is minimized :(

    In one of the newer flash player versions, adobe added a feature to the flash player that drops the frame rate of the swf to something like 2 FPS when it's minimized (ie. you switch tabs on your...
  2. Replies
    1
    Views
    831

    Base Path and [[IMPORT]] weird issue

    I have a swf located at :

    http://www.mydomain.com

    I set my base path to some other location such as :

    http://www.myOtherDomain.com/folder/

    and then from within my swf I load in another...
  3. Check if an object is a Bitmap... how?

    I have some code that loops through all the objects in the displaylist. Is there a way to tell is the object it found is a Bitmap?

    I've tried things like :

    1.) typeof(obj)
    2.) if(obj is...
  4. Replies
    2
    Views
    884

    Which is more efficient?

    I have never put much thought into this before, but when going through optimizing a game today I ran into the following question.

    Let's say you have an image of a light bulb on the screen. It has...
  5. Replies
    16
    Views
    7,994

    That sucks. lol I tried your suggestion of...

    That sucks. lol

    I tried your suggestion of waiting for the downloaded movieclip to be ADDED_TO_STAGE and that works!

    Sure, it's more of a workaround to get around Adobe's bug.

    Well, I...
  6. Replies
    16
    Views
    7,994

    Hmm, I did some reading in other forums and...

    Hmm, I did some reading in other forums and someone said that AS1/2 error can happen if you call your document classes constructor twice.

    I do this :


    var GameBoard:Class =...
  7. Replies
    16
    Views
    7,994

    Ok, I added that code the function that gets...

    Ok, I added that code the function that gets called when INIT fires. I get :
  8. Replies
    16
    Views
    7,994

    The FLA that created the swf that is being loaded...

    The FLA that created the swf that is being loaded has no code in it at all. Just some images/assets in the library. I do set the Document Class to "GameBoard".

    There is a Gameboard.as file.

    I...
  9. Replies
    16
    Views
    7,994

    Hmm, I tried that.... but I read that INIT...

    Hmm, I tried that.... but I read that INIT actually fires before COMPLETE.

    Read this somewhere :


    A very similar event to the Event.COMPLETE is the Event.INIT which is triggered when the...
  10. Replies
    16
    Views
    7,994

    Thanks joshstrike. Very close to having it...

    Thanks joshstrike. Very close to having it working.

    However, after the SWF has downloaded if I try and do :


    var GameBoard:Class =...
  11. Replies
    16
    Views
    7,994

    Ok, I changed a few filenames in my original post...

    Ok, I changed a few filenames in my original post as to not complicate things.

    In my example Game.swf is actually MPLobby.swf that has a document class of "GameBoard". So instead of game.as I...
  12. Replies
    16
    Views
    7,994

    Loading a SWF and calling a method in it

    I have a preloader which loads a swf file, and once it's fully loaded it, it calls a function in it.

    However, it doesn't seem to work. I get an error basically saying the function doesn't exist. ...
  13. Replies
    1
    Views
    1,129

    Tween Engines.... They needed?

    Hey all,

    In the past, I have always animated objects using an Enter Frame event (ie. slide it 5 pixels to the right every frame).

    I am seeing many companies I work at using the TweenLite...
  14. Replies
    4
    Views
    1,645

    Event Listeners and efficiency

    Hey all,

    Lets say I had had a game where there were 100 enemies on the screen. The player can click on an enemy to interact with it.

    Would it be better to have one event listener listening to...
  15. Replies
    4
    Views
    1,028

    Hmm, well I do remove the eventlistener for each...

    Hmm, well I do remove the eventlistener for each timer. But I see what your saying.

    I guess what I should be doing (if I undertsnad you correctly), it create a timer, set it to fire in 5 seconds,...
  16. Replies
    4
    Views
    1,028

    Thanks for the reply :) I left out a few...

    Thanks for the reply :)

    I left out a few details, but here is the workflow of the app :

    1.) It starts the timer and I mentioned in my first post
    2.) after the 5 seconds have passed, I...
  17. Replies
    4
    Views
    1,028

    Timer Event Not Firing! :(

    Hey all,

    I have a little flash app that I have running constantly on my server (I made it an exe). It runs great for a few days, but then eventually it just stops. I was able to track down...
  18. Just curious, is there any way for me to tell if...

    Just curious, is there any way for me to tell if an object has any references to it remaining? (just like there is a way for a parent to see all it's children).
  19. Thanks for the reply. I read over the link you...

    Thanks for the reply.

    I read over the link you sent me. Makes sense.

    One more question... I used the "delete" from within the instance of the class itself. Does that work? Or does the...
  20. Replies
    4
    Views
    955

    There are many reasons for the delay, but the one...

    There are many reasons for the delay, but the one that probbaly applies to you is this :

    If you dynamically (using code) add objects to your screen from the library, one of the options in it is...
  21. Proper way to remove objects. Memory leak??

    Hey all,

    I am making a flash game. The game starts off running fast and smooth, however 15 minutes into the game it's noticibly slower. I worry that I am causing memory leaks by not removing...
  22. Replies
    2
    Views
    1,010

    Thanks for the reply. Unfortunately the game...

    Thanks for the reply.

    Unfortunately the game is still in development (it's a larger game of over 8000 lines of code). Showing you a link to the game or showing you the code is not possible at...
  23. Replies
    2
    Views
    1,010

    Mouse over SWF causes lag??

    Hey all,

    I'm make a game (yet it's not really a game related question). The game has lots of things moving around the screen in it. It runs quite smooth while the mouse is not over top the...
  24. Thanks guys. What 5TonsOfFlax said was what i...

    Thanks guys. What 5TonsOfFlax said was what i was looking for.

    Phix, I had simplified what i was doing just for the example. Passing a variable into the method won't work for what i am...
  25. Redefining a function on the fly? Possible?

    Hey all,

    I have a method/function inside my class called "doSomething()". This function gets called once a frame.

    I am trying to figure out if it's possible to redefine that function on the...
Results 1 to 25 of 294
Page 1 of 12 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center