A Flash Developer Resource Site

Search:

Type: Posts; User: keyboardass

Page 1 of 3 1 2 3

Search: Search took 0.10 seconds.

  1. Replies
    3
    Views
    806

    Thanks guys

    Thanks guys
  2. Replies
    3
    Views
    806

    Enter Frame Event Efficiency Question

    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...
  3. Thanks flax, I thought that perhaps if the...

    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...
  4. Declare variables referenced in enterframe at function or class level?

    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...
  5. Ok thanks guys!

    Ok thanks guys!
  6. How do you assign defalut values for a point type?

    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...
  7. Replies
    0
    Views
    361

    Getting classname of instance

    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...
  8. Replies
    3
    Views
    1,014

    Thanks. Is it better to get all your results a...

    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?
  9. Replies
    3
    Views
    1,014

    Sifting through result sets

    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...
  10. I have to set the txt_msg variable in 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
  11. Newb Question - referencing TextField with variable

    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...
  12. Thanks for the suggestion, Still get the same...

    Thanks for the suggestion,
    Still get the same results.
  13. As a temporary hackish solution, I am adding a...

    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
    ...
  14. PHP files with includes returns garbage characters in result to flash.

    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
    ...
  15. I played with the PHP and discovered that the...

    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";
  16. Thanks, for the reply. Unescaping it returns...

    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...
  17. dataFormat.VARIABLES - garbage in loaded result

    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)
    ...
  18. URLLoader loaded variables have garbage attached to beginning.

    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...
  19. Replies
    3
    Views
    990

    Here is a link on Grant Skinners ...

    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.
  20. Replies
    3
    Views
    990

    Ohhh holy smokes! It surprises me that uint...

    Ohhh holy smokes! It surprises me that uint performs the slowest. I was expecting the opposite.

    Good link. Thanks for the reply
  21. Replies
    3
    Views
    990

    int and uint

    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...
  22. Haha you got my literary reference, thats...

    Haha you got my literary reference, thats awesome.

    The central eventManager works great. Thanks for the the solution. My problems are resolved.
  23. Thanks flax, here is further explanation. Suppose...

    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...
  24. Should an object be able to hear a dispatched event from a cousin?

    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...
  25. Thanks 691175002. I am new to OOP and am still...

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




Click Here to Expand Forum to Full Width

HTML5 Development Center