A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: MX Origami - Papercrane

  1. #1
    F# A# oo Ian424's Avatar
    Join Date
    Jun 2001
    Posts
    1,070
    http://www.openedsource.net/ian/draw.html

    just messing around w/ MX cause i just got it, and found the drawing object, and how to set alpha settings in what is drawn.

    so, at first, i made a few things which followed the mouse, i was thinking "hey this is cool, if you messed w/ the curves you could get different shapes"

    so i made an incremental thing, and got some different, abstract shapes that would be really hard to design by hand.

    i was thinking at this point "hey i could really do some cool stuff w/ this"

    so, i started messing w/ values, and got a sort of triangular column, added another point to the shape, and there it is, something that resembled a paper crane nearly every time i ran it.

    so, i added some text in the corner, threw an fps meter component in, and tada!

    i'm hoping to do such favorites as "the origami boulder" and "stack of paper (huhuh its just squares!!1)" soon, but i think for a first day at mx, and about a half hour on this .. i think im getting to like mx

    [quick edit] source : http://www.openedsource.net/ian/draw.fla, MX only[/quick edit]

  2. #2
    Moderator CNO's Avatar
    Join Date
    Jun 2000
    Location
    Brooklyn, NY
    Posts
    3,446
    Rock on, Ian!
    Hooray for open source!

  3. #3
    official system error
    Join Date
    Dec 2000
    Location
    Italy
    Posts
    899
    Originally posted by CNO
    Rock on, Ian!
    Hooray for open source!
    Please, don't do posts like this one anymore or I'll have to ban u.
    ...
    ...
    ...
    ...
    ...
    ROFL

    Ok, only because it's u Chris I let u go

    no... please! Chris don't ban me now!!! I was just joking!!! I swear it!!!

    By the way, nice try Ian, I think API libraries on MX are the solution to any kind of idea!!!
    Everything u wondered to do with f5 and u couldnt do because of the program limitations now is just open to your immagination.

    Check this one, it's in italian but it's great:

    http://flash-mx.html.it/articoli/vie...?idarticolo=28

  4. #4
    F# A# oo Ian424's Avatar
    Join Date
    Jun 2001
    Posts
    1,070
    Originally posted by Ctrl+Alt+Del

    By the way, nice try Ian, I think API libraries on MX are the solution to any kind of idea!!!
    Everything u wondered to do with f5 and u couldnt do because of the program limitations now is just open to your immagination.

    Check this one, it's in italian but it's great:

    http://flash-mx.html.it/articoli/vie...?idarticolo=28

    couldnt read the article (articolo? ) but the code, is basically the stuff i used. it was pretty simple to do, just putting in random stuff until i learned to get some control over where things go.

    though keeping the mouse in 1 place or dragging it at certain times gets better results than just having it sit in some spots (lower area in the beginning draws a big bunch of curves down the right side, etc)

  5. #5
    F# A# oo Ian424's Avatar
    Join Date
    Jun 2001
    Posts
    1,070
    http://www.openedsource.net/ian/draw2.html


    another bunch of settings, thicker lines, color, no fills.

    i like this one better

    http://www.openedsource.net/ian/draw2.fla

  6. #6
    Fk's (working title)
    Join Date
    Mar 2002
    Posts
    98
    [[/B][/QUOTE]
    Please, don't do posts like this one anymore or I'll have to ban u.
    ...
    ...
    ...
    ...
    ...
    ROFL

    Ok, only because it's u Chris I let u go

    no... please! Chris don't ban me now!!! I was just joking!!! I swear it!!!
    [/B][/QUOTE]

    Hey man don't mess with CNO! lol

  7. #7
    Moderator CNO's Avatar
    Join Date
    Jun 2000
    Location
    Brooklyn, NY
    Posts
    3,446
    Originally posted by Ian424
    http://www.openedsource.net/ian/draw2.html


    another bunch of settings, thicker lines, color, no fills.

    i like this one better

    http://www.openedsource.net/ian/draw2.fla
    Just took a quick look at the code - using Stage.width will allow you to make the line travel left-right along the entire size of the screen rather than a set size - allows the lines to fill more of the screen.

    Also, rather than going in a fixed diagonal, it might be cool to have it travel from top to bottom along a randomized height sine wave...

    . )
    .(
    . )
    .(

  8. #8
    F# A# oo Ian424's Avatar
    Join Date
    Jun 2001
    Posts
    1,070
    Originally posted by CNO
    Originally posted by Ian424
    http://www.openedsource.net/ian/draw2.html


    another bunch of settings, thicker lines, color, no fills.

    i like this one better

    http://www.openedsource.net/ian/draw2.fla
    Just took a quick look at the code - using Stage.width will allow you to make the line travel left-right along the entire size of the screen rather than a set size - allows the lines to fill more of the screen.

    Also, rather than going in a fixed diagonal, it might be cool to have it travel from top to bottom along a randomized height sine wave...

    . )
    .(
    . )
    .(

    hmm, maybe if i knew any math
    http://www.openedsource.net/ian/draw3.html
    is still in progress, im going to add either gradients or something else to give it an "earthy" look, and make it look more like mountains (which, is what its supposed to be)


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