Search:
Type: Posts; User: keyboardass
Search:
Search took 0.02 seconds.
-
-
I'm looking for information on how to best handle many sprites that are updated every frame. (A game with lots of characters and bullets) Is it better to:
use one enter_Frame event and add a...
-
Thanks flax, I thought that perhaps if the variable was only declared only once at the class level instead of being redeclared every time the enterFrame function was called, there might be a...
-
Hi,
If i have a series of variables that are referenced on an enter frame function, is it better to declare the frequently used vars at the class level? Is there a performance benefit? What is the...
-
-
If you have a function that accepts a parameter of Point type, how do you assign a default value?
setPosition(position:Point =(0,0)){
}
I tried (0,0), (x:0, y:0) {x:0, y:0} and none...
-
Is there a way to get the class name of an instance other than "getQualifiedClassName"? I just want the class name and not the whole path. I'd like to avoid doing string manipulation when getting the...
-
Thanks.
Is it better to get all your results a single sql query and use php to find the rows? or would it be more efficient to use multiple querys?
-
If i have a result set back from the db and I want to search for a specific value in a row/column based on a known value in another row/column, is there a more efficient way of searching for the...
-
I have to set the txt_msg variable in the constructor. of course.
package
{
import flash.display.Sprite;
import flash.text.*;
public class Controller extends Sprite
-
I've been away from flash for a few months and I'm having a silly little problem.
I have a text field named msg
I want to create a variable that holds the reference to the msg text field with...
-
Thanks for the suggestion,
Still get the same results.
-
As a temporary hackish solution, I am adding a value to the mystery characters that precede my result so they don't interfere with any other of my variables:
<?php
...
-
Here is the problem I am having;
My php file is returning garbage characters to flash, but only if there is an include in the php code.
Example:
<?php
...
-
I played with the PHP and discovered that the strange characters only occur when there is an include.
Example:
<?php
include("any_included_php_script.php");
echo "name=value";
-
Thanks, for the reply. Unescaping it returns  which are phantom characters and not supposed to be part of my result.
It seems this extra bit of information is being added in php. Is...
-
I am using PHP to load content from a database into flash.
The data returned has %EF%BB%BF%EF%BB%BF preceding my variables
Also, one of my name/value pairs has an underscore (record_name)
...
-
I am using PHP to load variables from mysql into flash.
I am using the dataFormat = URLLoaderDataFormat.VARIABLES
I am having two problems.
The first problem is that the data returned has...
-
Here is a link on Grant Skinners blog that has additional benchmark results on the number types. Turns out the uint type is much slower than int and Number according to his tests.
-
Ohhh holy smokes! It surprises me that uint performs the slowest. I was expecting the opposite.
Good link. Thanks for the reply
-
Is it better practice to use uint instead of int when you know your integer will never be signed?
Is there any drawback or benefit to this practice other than knowing the variable should never be...
-
Haha you got my literary reference, thats awesome.
The central eventManager works great. Thanks for the the solution. My problems are resolved.
-
Thanks flax, here is further explanation. Suppose the Farm class creates a Barn class and a Coup class. The Barn class creates a Pig class, and the Coup class creates a Chicken class. The Chicken...
-
You know what i mean?
Like if you have a farm object and there is a chicken on the farm but also a pig on the farm, and the pig is in the barn, and the chicken is in the coup, If the chicken...
-
Thanks 691175002. I am new to OOP and am still trying to learn how things work. Your explanation makes sense to me. I passed in the object that dispatches the event and it works. The new code looks...
|
Click Here to Expand Forum to Full Width
|