Search:
Type: Posts; User: Sparticus007
Search:
Search took 0.11 seconds.
-
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...
-
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...
-
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...
-
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...
-
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...
-
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 =...
-
Ok, I added that code the function that gets called when INIT fires. I get :
-
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...
-
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...
-
Thanks joshstrike. Very close to having it working.
However, after the SWF has downloaded if I try and do :
var GameBoard:Class =...
-
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...
-
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. ...
-
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...
-
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...
-
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,...
-
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...
-
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...
-
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).
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
|
Click Here to Expand Forum to Full Width
|