Search:

Type: Posts; User: gorillabear; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Oh, and I was wondering about these two lines: ...

    Oh, and I was wondering about these two lines:

    spbTxt.autoSize = "center";
    spbTxt.x = -spbTxt.width/2;'


    What's the difference between this method of autosize and the other...
  2. Ah, interesting... So, the first two parameters...

    Ah, interesting...
    So, the first two parameters in graphics.drawCircle create the registration point, and because I was using each Sprite's x,y on the Stage as those parameters, my TextField was...
  3. Replies
    5
    Views
    943

    yep. I just switched the statements around,...

    yep.
    I just switched the statements around,
    from

    e.target.alpha = .4;
    e.target.transform.colorTransform = ct1;

    to

    e.target.transform.colorTransform = ct1;
  4. Replies
    5
    Views
    943

    nevermind -- I figured it out; had to add the...

    nevermind -- I figured it out; had to add the alpha AFTER the colorTransform, not before
  5. Replies
    5
    Views
    943

    Changing Alpha of Button on RollOver

    OK, so I created a Sprite, added a Listener, and then on ROLL_OVER, I have a function like this:



    function chgSPB(e:MouseEvent):void {
    var ct1:ColorTransform = new...
  6. Adding TextField to Sprite Generated by For Loop

    So, the title almost says it all. I'm trying to create some numbered buttons. I created a series of Sprites with a For loop and was trying to add a TextField to each one, also within the For Loop,...
  7. Replies
    6
    Views
    485

    nevermind. I figured out if I declare my alpha...

    nevermind.
    I figured out if I declare my alpha setting when I BeginFill on my Sprite that it doesn't affect the Children.
  8. Replies
    6
    Views
    485

    So, does a child automatically inherit some of...

    So, does a child automatically inherit some of the attributes of its parent (like scaling in this case)?
    Is there any way to circumvent this?

    I've made new containers, and now the buttons are...
  9. Replies
    6
    Views
    485

    Ah hah! You're a genius! Why didn't I think of...

    Ah hah! You're a genius!
    Why didn't I think of that???

    any way around this issue besides just using a different container?
  10. Replies
    6
    Views
    485

    Moving a Button

    Hi, I have a slight problem trying to move a button.
    I want the button, when it is clicked, to change size and be placed in a different location -- different parent as well.



    function...
  11. Replies
    4
    Views
    517

    Thanks for your replies. Creatify, I think you...

    Thanks for your replies.
    Creatify, I think you hit the nail on the head with your first paragraph.
    I'm still thinking in linear terms, thinking about what comes next on the timeline, so to speak....
  12. Replies
    4
    Views
    517

    Basic Class Question

    As I move forward with my project, I believe it would be beneficial for me to place different parts of the game in different classes. I imagine having the Scores in one class, the Word Puzzles in...
  13. Replies
    8
    Views
    585

    Thanks for the link, Creatify! I'll check it out.

    Thanks for the link, Creatify! I'll check it out.
  14. Replies
    8
    Views
    585

    THANKS!!!!!!!!!!!!!!!!!! for the Insight,...

    THANKS!!!!!!!!!!!!!!!!!!
    for the Insight, Canadian!!!!!!!!!!

    After digesting your thoughts (yum), I realized I could just forego the whole localToGlobal concept and place my bomb directly in the...
  15. Replies
    8
    Views
    585

    Oh, I can say it, all right! And, believe me, I...

    Oh, I can say it, all right! And, believe me, I DO!!!

    (doesn't do a damn bit of good, though)
    *sigh*
  16. Replies
    8
    Views
    585

    seemed like a good fix, or at least a better...

    seemed like a good fix, or at least a better expression of the new Point, but since I barely understand how localToGlobal works, I'm not sure how it's really better.

    Bottom line, though: it still...
  17. Replies
    8
    Views
    585

    Some Trouble with LocalToGlobal

    Hi, again, hope you can help me with this issue:

    I have a MovieClip that is added to one of several "sector Sprites" on a grid (which Sprite is randomly determined). I want to then have the...
  18. Replies
    9
    Views
    896

    I always need more! Thank you, sir! Can I have...

    I always need more!

    Thank you, sir! Can I have another!



    And am very excited!! now that this works, I can build the "wormbrain" for my randomly animated lines so that they won't behave all...
  19. Replies
    9
    Views
    896

    Thanks again, y'all.

    Thanks again, y'all.
  20. Replies
    9
    Views
    896

    Thanks for the replies -- I didn't see those...

    Thanks for the replies -- I didn't see those before I posted last time.
    And, thank you Kril for the clarification, but I already figured out which parentheses you were talking about.
    I guess it...
  21. Replies
    9
    Views
    896

    if something like this worked, that would be...

    if something like this worked, that would be awesome



    if (sectorArray[0 + 11].contains (barrier)) { ////barrier is variable for Sprite
    trace ("yes, yes, yes") ...
  22. Replies
    9
    Views
    896

    Sorry, I should have been more explicit -- I was...

    Sorry, I should have been more explicit -- I was just putting it out there in an abstract form.

    The sector Sprites are containers; some contain MovieClip children, some contain Sprite children;...
  23. Replies
    9
    Views
    896

    getChildAt and Is Operator

    From a position on an Array of sector Sprites on an 11 x 11 grid, I am trying to "sense" what Child occurs at nearby sector Sprites.

    I felt certain I could use something like this


    if...
  24. Well, it's not the total solution -- just a...

    Well, it's not the total solution -- just a simple setup of an Array I can hopefully use in my solution, but I was excited about it.

    Trace the array, and you get something like...
  25. Thanks, Canadian -- you've been a great help...

    Thanks, Canadian -- you've been a great help throughout. :)

    When I asked
    what I meant was should I ?
    I see now though that I can declare it outside without having to use it as a parameter.
    ...
Results 1 to 25 of 47
Page 1 of 2 1 2

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012