A Flash Developer Resource Site

Results 1 to 18 of 18

Thread: v3 sample

  1. #1
    Senior Member
    Join Date
    Oct 2000
    Location
    York, Pennsylvania
    Posts
    380
    I've been playing with v3, and Bob has lived up to his reputation... this new version is incredible!!!!

    The following took about 10 minutes to do....

    http://www.reedassociates.com/flash/

    sound, draggable, and custom cursor....

    (thanks for your help with the AS johnie!)

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    I like the crayola mouse... Its funny. Very nice.

  3. #3
    Senior Member
    Join Date
    Sep 2001
    Location
    Australia
    Posts
    379
    Yes, Bob has done some great work.
    Like your example mmreed.

    I have also been playing - mostly with ActionScript.

    This is an example of the great things you will be able to do with Version 3 and ActionScript:

    http://www.bridel.org/koolmoves/demo...llisions2.html

    It uses one MovieClip, duplicated several times - random speed, and direction and collision detection.

    Hilary

    --

  4. #4
    Senior Member
    Join Date
    May 2001
    Posts
    119
    DuplicateMovieClip is working? Last time I checked, it was not in version 3.0.

  5. #5
    Senior Member
    Join Date
    Sep 2001
    Location
    Australia
    Posts
    379
    Yes, it worked for me since the first version 3 Beta, but dynamic property references (_root["x" + i]._x) were not, so it made it very hard to reference duplicated mc's.

    Bob has now fixed this in ver 3 beta 5.
    Here is another that uses duplicateMovieClip:

    Blurred Text:

    http://www.bridel.org/koolmoves/demo...urredtext.html

    Hilary

    --


  6. #6
    Senior Member
    Join Date
    May 2001
    Posts
    119
    Well the last one that I got was version 3.0 Beta 1 -- I have not played with it much though -- have been busy in trying to finish something else for a client of mine.

    But Bob can you please mail me the Beta 5. I would like to change the calendar I did in Koolmoves to database driven event calendar and a half finished Guestbook.

  7. #7
    Member
    Join Date
    Jun 2001
    Posts
    94
    Originally posted by mmreed
    I've been playing with v3, and Bob has lived up to his reputation... this new version is incredible!!!!

    The following took about 10 minutes to do....

    http://www.reedassociates.com/flash/

    sound, draggable, and custom cursor....

    (thanks for your help with the AS johnie!)
    The timing of the motion and sound seems to be spot on! Very Very nice! Thanks for posting!

    Bob C.

  8. #8
    Junior Member
    Join Date
    Feb 2002
    Posts
    3
    guys when you post someone else work it'd be nice to mention the original author and the link to the work too.taking someone else hard work and passing it off as your own is blatant plagiarism.it is not right.this circle collision is take right out of actionscripts.org line by line word by word.it was originally done by flashjunkie who also has done some other great work.this is a copy and paste.even the headings are still entact.compare the scripts to see what i mean.
    http://actionscripts.org/tutorials/a...s/index2.shtml
    i am sorry to be harsh but this is just so wrong.

  9. #9
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    Originally posted by JeffRussell
    guys when you post someone else work it'd be nice to mention the original author and the link to the work too.taking someone else hard work and passing it off as your own is blatant plagiarism.it is not right.this circle collision is take right out of actionscripts.org line by line word by word.it was originally done by flashjunkie who also has done some other great work.this is a copy and paste.even the headings are still entact.compare the scripts to see what i mean.
    http://actionscripts.org/tutorials/a...s/index2.shtml
    i am sorry to be harsh but this is just so wrong.
    I was mightly tempted to edit your post as you posted the same thing here and on this thread http://board.flashkit.com/board/show...hreadid=259638

    However I did not. Like I said in the other thread the two scripts are different and have to be becuase Koolmoves scripting is not 100% the same as Flash's. I am sorry that before you posted this you did not actually compare the two scripts.

    Although I have no doubt that Hilary used the Actionscript.org tutorial for guidence, and should have mentioned the source, she did not as you put it, " take [it] right out of actionscripts.org line by line word by word". If you would have opened the file which she has posted for download with KM 3.0 Beta , the version she wrote it in, you would have seen that.

    Oh yeah before I forget... This is my contribution to the samples http://jsnider.0catch.com/FunGame.html (Its on a freebie server so there's an add- sorry about that)
    [Edited by johnie on 02-06-2002 at 03:40 AM]

  10. #10
    Junior Member
    Join Date
    Feb 2002
    Posts
    3
    i am sorry if i posted it in two places and broke any rules of the forum.maybe i should not have said "word by word".i saw the other one a long time ago.i compared them when i saw this one.i am going to post both of them here.this is guidance?i am sorry i disagree.
    original script is
    Comment: ----------------------------------------------
    Comment: start move
    Comment: ----------------------------------------------
    Set Variable: "my_radius" = (GetProperty ("", _width) / 2)
    Comment: 'n' is always 'name' of circle.
    Set Variable: "my_x" = GetProperty("",_x)
    Set Variable: "my_y" = GetProperty("",_y)
    Set Variable: "my_n" = GetProperty("",_name)
    If (ymov="")
    Comment: *********************************
    Comment: ----------------------------------------------
    Comment: first run through code,
    Comment: this will initialize circle
    Comment: ----------------------------------------------
    Comment: *********************************
    Comment: pick a distance:
    Set Variable: "ymov" = Random(/:speed)+1
    Set Variable: "xmov" = Random(/:speed)+1
    Comment:
    Comment: pick a direction:
    Set Variable: "ysign" = random(2)-1
    If (ysign=0)
    Set Variable: "ysign" = 1
    End If
    Set Variable: "xsign" = random(2)-1
    If (xsign=0)
    Set Variable: "xsign" = 1
    End If
    Comment: adjust x and y movement
    Set Variable: "xmov" = xmov*xsign
    Set Variable: "ymov" = ymov*ysign
    Comment: ----------------------------------------------
    End If
    Comment: *********************************
    Comment: ----------------------------------------------
    Comment: check edges
    Comment: ----------------------------------------------
    If (my_x<=my_radius+/:speed)
    Set Variable: "xmov" = xmov*-1
    Set Variable: "my_x" = my_radius+/:speed
    End If
    If (my_y<=my_radius+/:speed)
    Set Variable: "ymov" = ymov*-1
    Set Variable: "my_y" = my_radius+/:speed
    End If
    If (my_x>=/:movie_width-my_radius-/:speed)
    Set Variable: "xmov" = xmov*-1
    Set Variable: "my_x" = /:movie_width-my_radius-/:speed
    End If
    If (my_y>=/:movie_height-my_radius-/:speed)
    Set Variable: "ymov" = ymov*-1
    Set Variable: "my_y" = /:movie_height-my_radius-/:speed
    End If
    Comment: ----------------------------------------------
    Comment: check for collision
    Comment: ----------------------------------------------
    Set Variable: "n" = 1
    Comment: start checking for collisions
    Loop While (n<=/:total_circles)
    Comment: don't check myself
    If (n ne my_n)
    Set Variable: "n_x" = GetProperty("../"&n,_x)
    Set Variable: "n_y" = GetProperty("../"&n,_y)
    Set Variable: "n_radius" = (GetProperty ("../"&n, _width) / 2)
    Set Variable: "delta_x" = (my_x+xmov)-(n_x)
    Set Variable: "delta_y" = (my_y+ymov)-(n_y)
    If ((delta_x * delta_x + delta_y * delta_y) < ((my_radius + n_radius) * (my_radius + n_radius)))
    Comment: ----------------------------------------------
    Comment: handle collisions
    Comment: ----------------------------------------------
    Comment: I collided with circle 'n'.
    Set Variable: "nx" = Eval("../"&n&":xmov")
    Set Variable: "ny" = Eval("../"&n&":ymov")
    Comment: swap travel values with it.
    Set Variable: "tempx" = xmov
    Set Variable: "xmov" = nx
    Set Variable: "../"&n&":xmov" = tempx
    Set Variable: "tempy" = ymov
    Set Variable: "ymov" = ny
    Set Variable: "../"&n&":ymov" = tempy
    Set Variable: "../"&n&":collision" = my_n
    Else
    End If
    End If
    Set Variable: "n" = n+1
    End Loop
    Comment: ----------------------------------------------
    Comment: move me
    Comment: ----------------------------------------------
    Set Property ("", X Position) = my_x + xmov
    Set Property ("", Y Position) = my_y + ymov


    this script
    // ----------------------------------------------
    // start move
    // ----------------------------------------------
    my_radius = this._width/2;
    // 'n' is always 'name' of circle.
    my_x = this._x;
    my_y = this._y;
    my_n = this._name;
    if (ymov == "") {
    // *********************************
    // ----------------------------------------------
    // first run through code,
    // this will initialize circle
    // ----------------------------------------------
    // *********************************
    // pick a distance:
    ymov = Math.floor(Math.random() * _root.speed +1);
    xmov = Math.floor(Math.random() * _root.speed +1);
    //
    // pick a direction:
    ysign = Math.floor(Math.random() * 2 - 1);
    if (ysign == 0) {
    ysign = 1;
    }
    xsign = Math.floor(Math.random() * 2 - 1);
    if (xsign == 0) {
    xsign = 1;
    }
    // adjust x and y movement
    xmov = xmov*xsign;
    ymov = ymov*ysign;
    // ----------------------------------------------
    }
    // *********************************
    // ----------------------------------------------
    // check edges
    // ----------------------------------------------
    if (my_x <= my_radius + _root.speed) {
    xmov = xmov*-1;
    my_x = my_radius + _root.speed;
    }
    if (my_y <= my_radius + _root.speed) {
    ymov = ymov*-1;
    my_y = my_radius + _root.speed;
    }
    if (my_x >= _root.movie_width - my_radius - _root.speed) {
    xmov = xmov*-1;
    my_x = _root.movie_width - my_radius - _root.speed;
    }
    if (my_y >= _root.movie_height - my_radius - _root.speed) {
    ymov = ymov*-1;
    my_y = _root.movie_height - my_radius - _root.speed;
    }
    // ----------------------------------------------
    // check for collision
    // ----------------------------------------------

    // start checking for collisions

    for (n = 1; n <= _root.total_circles - 1; n++){
    path = _root["colour" + n];
    otherName = _root["colour" + n]._name;
    // don't check myself
    if (otherName != my_n) {
    n_x = path._x;
    n_y = path._y;
    n_radius = path._width /2;
    delta_x = my_x + xmov - n_x;
    delta_y = my_y + ymov - n_y;
    if ((delta_x*delta_x + delta_y*delta_y) < (my_radius + n_radius * my_radius + n_radius)) {
    // ----------------------------------------------
    // handle collisions
    // ----------------------------------------------
    // I collided with circle 'n'.
    nx = path.xmov;
    ny = path.ymov;
    // swap travel values with it.
    tempx = xmov;
    xmov = nx;
    path.xmov = tempx;
    tempy = ymov;
    ymov = ny;
    path.ymov = tempy;
    //path.collision = my_n;
    } else {
    }
    }
    }
    // ----------------------------------------------
    // move me
    // ----------------------------------------------
    this._x = my_x + xmov;
    this._y = my_y + ymov;
    // ----------------------------------------------


  11. #11
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    Yes this is guidance...

    First the Example you have posted is all Flash 4 and not 1 lick of Flash 5.

    Now KoolMoves does not support Flash 4 AS so obviously it is different.

    Lets start with the unsupported syntaxt:
    None of this is supported by KoolMoves Scripting which is much more tightly based on Ecma 262;

    Comment: KM uses / for comments
    IF( - not supported. KoolMoves Syntax is If(condition){statements)
    End IF- not supported in KM.
    Set Variable: not supported. Vars are set in KM by targeting them then assigning a value
    Get Variable: not supported by KM. To return a var from KM you must use the var= property
    Random() Not supported by KM, Math.Random() is supported by KM
    ../,/ and /: is not supported by KoolMoves it only supports the . targeting syntax
    Loop While is not supported. instead while(conditions){statements} is used
    endloop - not supported


    well that's over 95% of the script you are acusing her of ripping off. Just looking at the scripts would tell you that they are indeed different. Her script would not work in Flash 4 at all but may work in Flash 5 while the original script would not work at all in KoolMoves. In fact she had to change every line of code.

    [Edited by johnie on 02-06-2002 at 04:26 AM]

  12. #12
    Senior Member
    Join Date
    Sep 2001
    Location
    Australia
    Posts
    379
    Ok guys,
    I apologise for not quoting a reference to the original tutorial for the collision stuff - I should have done it - I have done it for others in the past, but I forgot this time.

    Jeff, is this stuff guidance? Absolutely !

    As Johnnie has pointed out, I had to alter the Flash 4 script line-by-line to conform to Flash 5, and also for the differences that KM has over MMFlash 5. I think users here need to be aware of the differences and how to work around them, and these examples will hopefully help a little.

    I am new to AS and was keen to test out the new AS functionality of KoolMoves. I did not "pass it off as my own" - I am just guilty of being over-enthusiastic in posting the dramatically altered code example without a reference.

    Once again, sorry to all that I have upset....

    Hilary

    --


    [Edited by bridelh on 02-06-2002 at 10:11 AM]

  13. #13
    Senior Member
    Join Date
    Jun 2000
    Posts
    3,512
    A minor interjection into this discussion: "if .. else if .." is supported in the beta.

    Was there a request in the original tutorial that credit should be given for derivative works?

    It is very common for C++ developers to get code snippets or code inspirations from CodeGuru. It is generally not specified that any credit should be given because it is understood that there is a free exchange of code on that site. Sometimes a request for credit is made.

    I suspect that many many people have based preloaders or dynamic text scroll bars on code obtained from Flash tutorials without giving credit and probably no credit was expected.
    [Edited by Bob Hartzell on 02-06-2002 at 08:46 AM]

  14. #14
    Senior Member
    Join Date
    Sep 2001
    Location
    Australia
    Posts
    379
    Originally posted by Bob Hartzell

    Was there a request in the original tutorial that credit should be given for derivative works?
    No, not in the tutorial or the source code, but the site small-text says that all the tutorials are protected by international copyright laws.

    An email (after the thought) to the author of the tutorial was returned undelivered.


    Hilary

    --

  15. #15
    Member
    Join Date
    Apr 2001
    Posts
    65

    hey Bob

    When do we get the link for v3?

  16. #16
    Member
    Join Date
    Jan 2001
    Posts
    59
    Originally posted by bridelh
    Originally posted by Bob Hartzell

    Was there a request in the original tutorial that credit should be given for derivative works?
    No, not in the tutorial or the source code, but the site small-text says that all the tutorials are protected by international copyright laws.

    An email (after the thought) to the author of the tutorial was returned undelivered.


    Hilary

    --
    Ok, Hilary has forgotten to give credits and she has apologized - thats it: She did not make money from it.

    Nevertheless I (and I think a lot other people too)thank Hilary for porting the macromedia As to KM Actionscript.

    Gorky

  17. #17
    Senior Member
    Join Date
    Jun 2000
    Posts
    3,512

    Re: hey Bob

    Version 3.0 will be a paid upgrade (as explained on the purchase page of the web site) for those who bought prior to Nov 25 last year. I haven't figured out the upgrade price yet but it will be less than or equal to $12. Version 3.0 will probably be ready some time next week. Upgrades to 3.0 will be free until Jan 2003. I will be sending out emails when the version is ready with either a download link or a link for purchase of the upgrade.

    These are the feature improvements for 3.0 (plus we may have a button library by that time)

    1. Added movie clip editing environment
    2. Added 72 more clip art items
    3. Added image preview to open image file dialog
    4. Added option for adding clip art from gallery to multiple frames
    5. Added change in cursor shape when mouse is over a point in point selection mode
    6. Added URL Target option to Send Form Data action
    7. Added 'for', 'while', 'else', 'i++', 'i--', _root["mc" + i] action script capabilities
    8. Added shape type to title of properties dialog
    9. Added default directory paths for libraries in Preferences
    10. Changed behavior of properties dialog so it remains open even if there is no shape selected
    11. Changed position data on status bar so they are relative to the movie frame corner or movie clip origin

  18. #18
    Senior Member
    Join Date
    May 2001
    Posts
    119
    Hillary,

    This is meant as an apology to you from my side -- That post was from a friend of mine who was over at my place. Him being a Flash Developer, I tease him all the time as how Koolmoves is going to kick Flash ass one of these days ---- I was showing him some of the examples done here by different people -- Then I started watching TV, and before I knew that post was on here -- I apologize to you. I have known you on here for a while, and we have exchanged a few e-mails too. You are a helpful, nice and very kind person, and that post was just unwarranted.

    I emulate other people examples myself. I am new too in AS, but even in ASP which I know inside out, I still pluck codes from the opensource code sites ---- just because I do not want to re-invent the wheels. I have been busy lately and have not been on here, but in a week or two I will have more time and then plan to finish a few unfinished Koolmoves project that I undertook a while ago. Being here on this Koolmoves forum for a while and loving every minute of it, I thought it was my reponsibility to aplogize to you for that rude post.

    Take care -- and I am glad you are back -- It will now give me some motivation to finish my projects!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center