dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: Sul

Page 1 of 20 1 2 3 4

Search: Search took 2.70 seconds.

  1. Replies
    11
    Views
    497

    It's up to you - depends on what you want to do,...

    It's up to you - depends on what you want to do, but you do need to give your movieclips instance names, where-ever you put them. You need to select your movieclip that's on stage first to name them...
  2. Replies
    11
    Views
    497

    I'm using Flash 8 too. If you cannot see the...

    I'm using Flash 8 too. If you cannot see the properties window, you need to access it through the windows menu.
  3. Replies
    13
    Views
    611

    function randRange(min:Number, max:Number):Number...

    function randRange(min:Number, max:Number):Number { //function from flash help file - gives random number between specified min and max number
    var randomNum:Number = Math.floor(Math.random() *...
  4. Replies
    2
    Views
    3,486

    Here's a tutorial for you:...

    Here's a tutorial for you: http://www.kirupa.com/developer/actionscript/sound.htm
  5. Replies
    6
    Views
    780

    The problem probably lies in you getting the path...

    The problem probably lies in you getting the path to the clip incorrectly. Where is your movieclip? If player1 is located on the main timeline, then it's something like...
  6. Replies
    11
    Views
    497

    An instance name is the identifier you assign to...

    An instance name is the identifier you assign to an "instance" of your movieclip. An instance of your movieclip is one copy of it on the stage. You assign a name to your instance via the properties...
  7. Replies
    15
    Views
    1,824

    _root.mc.endrotangle = 0; _root.mc.onEnterFrame...

    _root.mc.endrotangle = 0;
    _root.mc.onEnterFrame = function(){
    if(this._rotation == this.endrotangle){
    delete this.onEnterFrame;
    }else{
    if (this._rotation < 0){
    this._rotation++;...
  8. Replies
    15
    Views
    1,824

    The condition to check for that to stop it...

    The condition to check for that to stop it rotating would be =this.endrotangle, and to check which way to rotate it you'd need another conditional:


    if (this._rotation < 0){
    this._rotation+=2;...
  9. Replies
    15
    Views
    1,824

    You need to change the condition of the if...

    You need to change the condition of the if statement to check if it's rotated to the angle you want - you can't have the same condition for the other two buttons as the angles are different. So for...
  10. Replies
    15
    Views
    1,824

    Yes I did - I edited the actionscript on frame...

    Yes I did - I edited the actionscript on frame one, please check there. :)
  11. Replies
    15
    Views
    1,824

    You need to apply the code I gave you above to...

    You need to apply the code I gave you above to your movie and it'll work as you want.

    I've attached an edited version of your .fla so you can see an example of me applying the code.
  12. Replies
    15
    Views
    1,824

    Ah okay, on your button you need to add code...

    Ah okay, on your button you need to add code something similar to:


    on(press){
    _root.mc.endrotangle = _root.mc._rotation + 30; //set angle to rotate to - you want to rotate 30 degrees, so it's...
  13. Replies
    15
    Views
    1,824

    You can use the _rotation property to achieve...

    You can use the _rotation property to achieve this - it takes values in degrees.
  14. Replies
    5
    Views
    694

    It's returning undefined because your variables...

    It's returning undefined because your variables aren't set.

    You probably haven't set them in your text file..

    e.g. test.txt should be in the format:

    text1=whatever text I want to display
    ...
  15. Thread: Pixel Fonts?

    by Sul
    Replies
    1
    Views
    321

    Sometimes it's because of the placement of the...

    Sometimes it's because of the placement of the textfield, make sure its x, y position is an integer.
  16. Replied in your other thread.. please avoid...

    Replied in your other thread.. please avoid cross-posting. :)
  17. You can get the number of characters by using the...

    You can get the number of characters by using the string.length property.

    So


    name = "char"
    numchar = name.length //returns 4

    You could set the text field not to wrap, alternatively.
  18. Replies
    5
    Views
    694

    gparis' code seems fine to me - can you upload...

    gparis' code seems fine to me - can you upload your .fla so we can take a quick look?
  19. Replies
    11
    Views
    497

    Did you give your movieclips instance names?

    Did you give your movieclips instance names?
  20. Replies
    1
    Views
    466

    1. You need to give your library movie a linkage...

    1. You need to give your library movie a linkage identifier - right click that movie in the library and click on Linkage - check export for actionscript and give it a unique name, say you chose...
  21. Thread: Good books?

    by Sul
    Replies
    2
    Views
    540

    I've never really used or read any, but I've...

    I've never really used or read any, but I've heard many good things of the one that Keith Peters from Bit-101 contributed to / wrote - Flash Math creativity.
  22. This thread may help you:...

    This thread may help you: http://board.flashkit.com/board/showthread.php?t=698748
  23. Replies
    11
    Views
    497

    You have two unnecessary brackets.. that's...

    You have two unnecessary brackets.. that's possibly the problem, I've removed them here:


    //If the button 1 on the keyboard is pressed
    if (key.isDown(97)){

    var ranNum =...
  24. Replies
    12
    Views
    493

    Well you're telling the movie to play, but it's...

    Well you're telling the movie to play, but it's not on the right frame. So it'll play but you won't see it since it's not on the current frame in your main timeline.
  25. Replies
    12
    Views
    493

    I removed some unnecessary code, and added one...

    I removed some unnecessary code, and added one line of code on the last frame of your first movieclip that told it to advance to the next frame in the main timeline.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center