A Flash Developer Resource Site

Search:

Type: Posts; User: dotSTAR

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    375

    Vector Intensive Scenes

    I have a fairly large vector environment that will pan left and right. The scene has a lot of furniture and people in it, some are animated and some are not. The scene becomes really choppy when...
  2. Thread: 2D vector

    by dotSTAR
    Replies
    1
    Views
    359

    2D vector

    Trying to create a 2D vector. I'm getting type coercion errors when trying to store the 2nd vector inside the first.






    var vector1:Vector.<Vector> = new Vector.<Vector>
    var...
  3. Replies
    1
    Views
    349

    Resolved

    I should have put more thought into this before posting... I was dispatching button event in the constructor of MovieClip Y... it wasnt added to the stage yet. Moving the event dispatching into an...
  4. Replies
    1
    Views
    349

    Event dispatcher getting cut off

    I have two movieclips: MovieClip X and MovieClip Y.

    MovieClip Y is nested inside of MovieClip X. MovieClip Y contains buttons with listeners attached to them. These listeners call a method ...
  5. Replies
    2
    Views
    427

    The variable myBg:bg that you create only has...

    The variable myBg:bg that you create only has scope within the addBg() method, this is why addSquare has no knowledge of it, and this is why the code works when you move the code to the addBg()...
  6. Very strange problem... application bug maybe?

    Earlier today I attempted to open and compile a project I have been working on lately and I got hit with the weirdest errors. A custom class I wrote with several constructor parameters is telling me...
  7. Replies
    1
    Views
    495

    I thought I had tested this before posting but...

    I thought I had tested this before posting but apparently not...

    I was mistakenly trying to override a private method... so for future reference a method you wish to override must not be private....
  8. Replies
    1
    Views
    495

    method overriding

    Running into a little trouble trying to override methods... I'm not sure if I am doing it properly. Can someone explain why this wont execute properly:



    public class CustomButton extends...
  9. Replies
    4
    Views
    2,792

    i am not sure if this is correct but... ...

    i am not sure if this is correct but...

    event.target.startDrag(); is a reference to the original displayobject which dispatched the event. this means that when you invoke the startDrag() method it...
  10. Replies
    6
    Views
    663

    Accessing a null

    Out of good programming practice, I generally check for null displayobjects before trying to access a method or property of said object. Ive noticed that the IDE compiler output will bark at you if...
  11. Replies
    2
    Views
    925

    yes, its possible. you can dynamically draw a...

    yes, its possible. you can dynamically draw a mask, add it to your display list, and set the mask property of the child you want masked.

    for example, if i had a container movie clip, which had an...
  12. Replies
    2
    Views
    2,014

    off the top of my head, i think your issue is you...

    off the top of my head, i think your issue is you are trying to typecast root as a movieclip in the middle of a displayobject list hierarchy. im not testing this, but try for example

    ...
  13. sorry i dont have time to give you a concise...

    sorry i dont have time to give you a concise answer to your question, but ill give you a little tip to help you follow your program flow... trace! learn it, love it.

    if you really wanted to see...
  14. Replies
    5
    Views
    553

    you could use a boolean to set whether or not the...

    you could use a boolean to set whether or not the button is active (ie, it has been clicked), and on your mouse out listener, check that boolean to see if it is active or not, if it is active, skip...
  15. Replies
    2
    Views
    3,449

    http://livedocs.adobe.com/flash/9.0/ActionScriptLa...

    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/MovieClip.html#currentFrame

    according to docs its a property of the movieclip class. you should be able to store the value...
  16. Replies
    8
    Views
    971

    did you say you were loading all of the fish into...

    did you say you were loading all of the fish into another movie clip? and is that containerMC on the main timeline or something? i might just be reading the output wrong but it looks like youre...
  17. Replies
    8
    Views
    971

    try this for (var i:int=1;...

    try this


    for (var i:int=1; i<=fishArray.length; i++) {
    MovieClip(getChildByName("fish" + i)).scaleX = -.6
    }

    edit: make sure this loop is run in the same displayobject that contains your...
  18. Replies
    7
    Views
    577

    is the MC in your library linked to a class or is...

    is the MC in your library linked to a class or is it already on the stage?
  19. Replies
    8
    Views
    971

    you could use getChildByName(); to access the...

    you could use getChildByName(); to access the display objects you already created with a for loop.

    MovieClip(getChildByName("fish" + i)).myVar = blahblah

    You must cast your method as a...
  20. Replies
    5
    Views
    866

    I'm not exactly sure if thats the proper way to...

    I'm not exactly sure if thats the proper way to do things in as3, thats just the way ive been able to accomplish sending functions through complex hierarchies of displayobjects. But yea, I agree that...
  21. if you know the index of your sprite you can call...

    if you know the index of your sprite you can call a function in your displayobject container and use the removeChildAt(index) method. you can find your sprites index by the method...
  22. Replies
    5
    Views
    866

    I'm fairly new to as3 myself but I have been...

    I'm fairly new to as3 myself but I have been doing quite a bit of cross class function calling in this project I'm working on. This is what I have been doing to accomplish event calling for...
  23. Replies
    0
    Views
    418

    Issues with masks

    Im working on a movieclip slider which has two buttons to move the movie clip left and right. The movieclip has a dynamically added mask which works properly. The arrow buttons which move the MC left...
  24. Replies
    2
    Views
    717

    Thanks for the quick response kirill, although...

    Thanks for the quick response kirill, although that is pretty unfortunate. My followup question i suppose is will this cause lag if the application is run for an extended period of time with...
  25. Replies
    2
    Views
    703

    hehe thanks a_modified_dog for teaching me...

    hehe thanks a_modified_dog for teaching me something new... before i was calling my_txt.restrict "0123456789". every char helps!
Results 1 to 25 of 26
Page 1 of 2 1 2




Click Here to Expand Forum to Full Width

HTML5 Development Center