dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: swak

Page 1 of 20 1 2 3 4

Search: Search took 0.56 seconds.

  1. AS 2 Code follows a logical sequence. In this case it...

    Code follows a logical sequence. In this case it runs from top to bottom.
    if(_x > 1390 &&_x < 1440){
    if(!Key.isDown(Key.UP)){
    _parent.gotoAndPlay("start");
    }
    }
    This is a simple way. The problem...
  2. Replies
    3
    Views
    318

    Have you seen this series of videos:...

    Have you seen this series of videos: https://www.youtube.com/watch?v=N_gLSBBKHPM&list=PLCHMGNv_yp6jFCg6vRaFNy2nD5AsrWSIR Also, if you upload your fla I can take a look at it.
  3. Replies
    3
    Views
    318

    It depends on how complex you want it to be. One...

    It depends on how complex you want it to be. One of the simpler ways would be to use a direction and when a hit happens to reverse it. This requires you to check hit in the direction you're moving....
  4. Replies
    2
    Views
    404

    AS 2 Very simple answer for this one. SharedObject...

    Very simple answer for this one. SharedObject instead of sharedobject.
  5. AS 2 I forgot int would be short for integer. as2...

    I forgot int would be short for integer. as2 doesn't have that so you can either just delete it or replace it with Number. It won't matter too much.

    Ugh, I just found out that it's a bad idea to...
  6. AS 2 https://we.tl/t-HebVi9mfzY It's still wonky but I...

    https://we.tl/t-HebVi9mfzY It's still wonky but I think this does more. In my opinion it's probably better to keep multiple frames contained in movieclips. This is actually the most I've done with...
  7. AS 2 Fair enough. BTW, on this forum you can...

    Fair enough. BTW, on this forum you can encapsulate code by using the tag: [ CODE]put code here[/ CODE] with no extra spaces.

    Kind of a side note. How I would handle the text example would be to...
  8. AS 2 Just create a variable at the start and then: ...

    Just create a variable at the start and then:

    var lastFrame=0;
    onEnterFrame = function() {
    if(Key.isDown(Key.ENTER)){
    switch(lastFrame){
    case 1:
    ...
  9. AS 2 Depending on what you're trying to accomplish,...

    Depending on what you're trying to accomplish, you're making things rather complicated. Would you like to set up a chat session to talk this through? It would allow for me to talk you through this....
  10. AS 2 https://www.dreamincode.net/forums/topic/57643-as-...

    https://www.dreamincode.net/forums/topic/57643-as-20-basics-1-variables/ is a basic tutorial on variables for actionscript 2.0. In practice for you, you should create a variable and have it equal...
  11. Thread: I have a question

    by swak
    Replies
    2
    Views
    361

    Depending on skill you can probably make any game...

    Depending on skill you can probably make any game with flash. You just have to be aware of any limitations that any properly sandboxed app that you'll see online. The application version will have...
  12. AS 2 In my experience, unless you have a simple...

    In my experience, unless you have a simple project it's better to keep your code organized. With flash it's way to easy to scatter the code everywhere. In this case I suggest you add another layer...
  13. AS 2 No problem. I like to help but I prefer directing...

    No problem. I like to help but I prefer directing a person to understand instead of just laying out the answer. This is actually kind of how I learned how to code. I basically grabbed code that...
  14. AS 2 By itself the code won't work. It needs to be...

    By itself the code won't work. It needs to be placed properly. When you put code on a frame in the timeline then it'll only run once. You'll want to put in in an enter frame event. Either way that...
  15. AS 2 You can do this 2 different ways. If you place...

    You can do this 2 different ways. If you place the code on the movieclip then you use either _root.gotoAndPlay(2) or _parent.gotoAndPlay(2). If you place the code on frame 1 then you need to give the...
  16. Replies
    11
    Views
    1,606

    Path deals with anything that can contain code....

    Path deals with anything that can contain code. If you put code in anything but a layer then you will have to deal with it. Say you create an object and put code on it. Then you want to have that...
  17. Replies
    11
    Views
    1,606

    There are 2 ways to handle this with as3. 1 is to...

    There are 2 ways to handle this with as3. 1 is to use relative paths from the object. You'll have to use parent and so forth. You could also create a global variable root and assign the stage as that.
  18. Replies
    3
    Views
    565

    Torrent Stream: #6 on this list:...

    Torrent Stream: #6 on this list: https://www.raymond.cc/blog/2-apps-to-simultaneously-download-and-play-videos-from-rapidshare-links/ I believe that this is a chrome extension so platform shouldn't...
  19. Replies
    11
    Views
    1,606

    Add something like this: _root.starsTxt.text =...

    Add something like this:
    _root.starsTxt.text = "Star: "+star;
    You have make the textfield dynamic and give it the name starsTxt for this to apply.
  20. One thing to keep in mind for networking is there...

    One thing to keep in mind for networking is there are 2 different main protocols for computers to communicate. They are TCP and UDP. TCP is more reliable for making sure no data is lost. UDP is for a...
  21. No problem. Have fun!

    No problem. Have fun!
  22. This should probably do it: t.text.substr(0,...

    This should probably do it:
    t.text.substr(0, t.text.length-1)
    Something like this.
  23. Replies
    80
    Views
    9,075

    As far as I know, actionscript is not set up to...

    As far as I know, actionscript is not set up to listen at all for socket connections. https://github.com/phax/as2-server is the closest I got to that for as2 and the server side is built in java....
  24. No. The purpose of static text is it can't be...

    No. The purpose of static text is it can't be modified by code. That's what dynamic text is for. https://www.youtube.com/watch?v=n-umk8FdfBY is a tutorial for loading external text.
  25. Replies
    4
    Views
    1,325

    Flash has been going downhill for years. This is...

    Flash has been going downhill for years. This is the end result. You only have a few active people on the board.
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