A Flash Developer Resource Site

Search:

Type: Posts; User: Degraiver

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    1,213

    Can you Rotate a Drawn MovieClip

    So I've drawn a triangle and want it to rotate with the mouse. If this isn't possible please let me know.


    import flash.display.MovieClip;

    addEventListener(Event.ENTER_FRAME, drawShape)
    var...
  2. Perfect! thank you. I didn't know I could call...

    Perfect! thank you. I didn't know I could call functions like that. You have set me free fruitbeard! Thank you.

    Solved.
  3. [RESOLVED] AS3: having trouble getting EventListener to listen to Child dispatchEvent

    function createDmg(e) {
    var duck: enemydmg = new enemydmg;
    duck.name = "duck";
    addChild(duck);
    duck.x = enemy.x
    duck.y = enemy.y
    duck.flyholder.flydmg.text = hdmg;
    }...
  4. nvm i figured it out. the problem was the...

    nvm i figured it out.
    the problem was the display.label[i].visible
    should have been display["label"+i].visible
  5. (AS3) Using For Loop with repeated visible test

    Getting straight to the point this is what i want to do:


    for (var i:Number=0; i<28; i++)
    {
    if (isMap[i] == 1)
    {
    display.label[i].visible = true;
    }
    else
  6. This is how I learnt:...

    This is how I learnt:
    http://www.flashkit.com/tutorials/Interactivity/Control_-mike-1218/index.php
  7. Replies
    0
    Views
    1,486

    CS3 AS2 Random Number Generator

    So i have this Random number generator that looks like this


    O-O-O-O-O []
    | | | | | []
    O-O-O-O-O []
    | | | | | []
    O-O-O-O-O []
    | | | | | []
    O-O-O-O-O []
  8. Replies
    8
    Views
    4,195

    CS3 Well I'm no expert but I'm pretty sure this._x...

    Well I'm no expert but I'm pretty sure this._x and this._y gets the borders of the object and not just the area of the shape itsself. Most platformer games use this for their floors so they can have...
  9. Replies
    8
    Views
    4,195

    CS3 You could create a hitbox inside any of these...

    You could create a hitbox inside any of these objects and make the hitbox anysize you want. That way you can control where you want objects to be hit and not.



    ooooooooo
    o .|. o
    o---|---o...
  10. Replies
    13
    Views
    4,271

    CS3 ok... I dont know what you wanted to look at so...

    ok... I dont know what you wanted to look at so Im placing mob, and the Duplicater.

    Well here is the Mob's scripting. Its the object being duplicated.

    Some of the vars arent being used, but I...
  11. Replies
    13
    Views
    4,271

    CS3 well _root.mobList is _level0.mob1 which of...

    well _root.mobList is _level0.mob1 which of course you know is the root command, but to check the name of the mob I cant use the same list so I had it creat a second list that only has the name mob1...
  12. Replies
    13
    Views
    4,271

    CS3 attachMovie got way too complicated for me so i...

    attachMovie got way too complicated for me so i went back to duplicateMovieClip and I actually got it to work, the problem was
    (_root.mobList[i].hitTest(this)) was wrong and i switched it to ...
  13. Replies
    6
    Views
    1,459

    CS3 Well I wanted monsters to spawn at the top of a...

    Well I wanted monsters to spawn at the top of a mountain, and I wanted the hero to run up the hill to fight the monsters, and Vica versa.
  14. Replies
    8
    Views
    4,195

    CS3 try using: ...

    try using:

    if(this.hitTest(_root.star._x,_root.star._y,true){
    do this
    }

    "this" being what ever it is you wanted to be hitting it.
  15. Replies
    6
    Views
    1,459

    CS3 =D no uphill coding for me. Thanks i dont wanna...

    =D no uphill coding for me. Thanks i dont wanna spend too much time on this.
  16. Replies
    13
    Views
    4,271

    CS3 Awesome. I got it to add with attachMovie, but it...

    Awesome. I got it to add with attachMovie, but it has no script. Do I make a external script for it? Or how can I just copy the current script of the original into the copy. cause ive used _root.mob,...
  17. Replies
    2
    Views
    541

    well if its a button you can make the hover tab...

    well if its a button you can make the hover tab object a different color, but Im not really sure what you mean.
  18. Thread: arrow keys

    by Degraiver
    Replies
    3
    Views
    900

    You could also use the Key code: ...

    You could also use the Key code:

    if(Key.isDown(37)) {
    do this
    }

    though it will continuiously do that action unless you lock it up once pressed, I usually do this.

    if (Key.isDown(37)) {...
  19. Replies
    13
    Views
    4,271

    CS3 Hmm Ive been trying to work with this attachMovie...

    Hmm Ive been trying to work with this attachMovie thing, but it doesnt seem to be working....

    mob.attachMovie("mob1","mob"+ad,ad,this);

    Thats how its suppose to be setup right?
    idname = mob1...
  20. CS3 have you tried ...

    have you tried

    if(this.hitTest(_root.fallingobject)){
    do action;
    }
    this of course would be in the scrolling object.
  21. Replies
    6
    Views
    1,459

    CS3 Oh? I thought: if...

    Oh? I thought:

    if (_root.ground.hitTest(this._x, this._y, true)) {
    tells the object its borders.
    So how do I tell the object its slope?
  22. Replies
    13
    Views
    4,271

    CS3 Thanks. This Helps kinda. With this the original...

    Thanks. This Helps kinda. With this the original wont generate unnecessary scripts, but the duplicates still cant detect these codes for some reason.
  23. CS3 add one more } is what i believe Johnny was...

    add one more } is what i believe Johnny was trying to say.
  24. Replies
    6
    Views
    1,459

    CS3 [Solved] AS2 Uphill issues

    As the title says, I have an object moving downhil just fine but instead of moving uphill it will move through the hill.

    How do I make it move along the uphill slope?


    onClipEvent (load) {...
  25. Replies
    4
    Views
    780

    Flash8 is calculated a _root. value or inside a...

    is calculated a _root. value or inside a movieclip?
Results 1 to 25 of 37
Page 1 of 2 1 2




Click Here to Expand Forum to Full Width

HTML5 Development Center