A Flash Developer Resource Site

Page 1 of 2 12 LastLast
Results 1 to 20 of 37

Thread: newbie with questions

  1. #1
    Member
    Join Date
    Aug 2006
    Posts
    91

    newbie with questions

    hi, ive had KoolMoves for about 3 months now...
    i know how to the basic stuff but i want to learn more about
    Action Scripting.
    Can someone tell me how to do the morphing thing...
    ive read the tuts and i get lost when it says make it an MC(movie clip)
    How do you do that?
    I also want to learn how to create a password frame.
    &
    on a menu type thing, how do i make it so the user uses his keys to move up and down? (does that make sense?)

    and 1 more thing
    a different kind of mouse cursor...

    Thanks-a-bunch!

    Edit: Also i want to learn how to add an E-mail form.
    Last edited by ch.strider; 08-25-2006 at 11:11 PM.

  2. #2
    Member
    Join Date
    Aug 2006
    Posts
    91
    b-u-m-p

  3. #3
    Relaxing tmoore935's Avatar
    Join Date
    Oct 2001
    Location
    colorado, usa
    Posts
    1,713
    For the mouse, make the shape and turn it into a MC by selecting the shape. Then go to the file and select shapes>>convert to MovieClip.

    Click on the MC twice and an info window should show up. Click on the actions and add this:

    onClipEvent(load){
    mouse.Hide();
    this.startDrag(true);
    }
    Any programming language is at its best before it is implemented and used.

  4. #4
    Polak Maly ant_Z's Avatar
    Join Date
    Jul 2006
    Location
    Poland
    Posts
    440
    Quote Originally Posted by ch.strider
    i get lost when it says make it an MC(movie clip)
    How do you do that?

    and 1 more thing
    a different kind of mouse cursor...

    Edit: Also i want to learn how to add an E-mail form.
    1. a) select shape.
    b) Menu -> shapes -> convert to MovieClip
    c) well done

    2. a) make your cursor
    b) menu -> effects -> motion script
    c) mouse trial (on left side)
    d) set parameters:
    ~ trail motion: figure 8
    ~ radius (px) : 1
    ~ speed: 0
    ~ trail lenght: 1, or as you wish
    ~ rotation speed: no rotation
    ~ hide orginal mouse: yes

    3. i think this is gonna need PHP

  5. #5
    Polak Maly ant_Z's Avatar
    Join Date
    Jul 2006
    Location
    Poland
    Posts
    440
    Quote Originally Posted by ch.strider
    i get lost when it says make it an MC(movie clip)
    How do you do that?

    and 1 more thing
    a different kind of mouse cursor...

    Edit: Also i want to learn how to add an E-mail form.
    1. a) select shape.
    b) Menu -> shapes -> convert to MovieClip
    c) well done

    2. a) make your cursor
    b) menu -> effects -> motion script
    c) mouse trial (on left side)
    d) set parameters:
    ~ trail motion: figure 8
    ~ radius (px) : 1
    ~ speed: 0
    ~ trail lenght: 1, or as you wish
    ~ rotation speed: no rotation
    ~ hide orginal mouse: yes

    3. i think this is gonna need PHP

    b-u-m-p
    w-h-a-t-?

  6. #6
    Polak Maly ant_Z's Avatar
    Join Date
    Jul 2006
    Location
    Poland
    Posts
    440
    hey tmoore, i was the first one im just typing slowly

  7. #7
    Member
    Join Date
    Aug 2006
    Posts
    91
    wow, thats was easier than i thought...
    how about the other stuff?

  8. #8
    That web bloke Stoke Laurie's Avatar
    Join Date
    Jan 2006
    Location
    England
    Posts
    869
    Hi Ch, if you haven't already done so, take a look at www.koolexchange.com where you will find examples of what you need. Take a look at how the stuff is put together, a great way to learn.

  9. #9
    Member
    Join Date
    Aug 2006
    Posts
    91
    yes i have looked at it,
    but i need like a cheat sheet or seomthing.
    for instance
    OnSubmit if text field=(passwordishere); goto key frame (3)
    if text field=(""); goto key frame (4)

    see i have no idea how to set it up... but i get the general idea

  10. #10
    That web bloke Stoke Laurie's Avatar
    Join Date
    Jan 2006
    Location
    England
    Posts
    869
    Try this, it uses php to check passwords, so it won't work locally on your machine, you will have to upload it to see it work.

  11. #11
    Polak Maly ant_Z's Avatar
    Join Date
    Jul 2006
    Location
    Poland
    Posts
    440
    you can also do 2 swf - one for registered users, 1 for guests. If isset cookie['login'] view registered.swf, else guest.swf. it uses php and ive got the code :] i can share if you want

  12. #12

  13. #13
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    Are you asking for a login/password that needs no serverside (php,etc)? Antz example would...mine would (I have two at the Exchange) and Stokes would.

    There are no examples of a login/pass that is internal (all inside the swf itself) because it is about as secure as a swish cheese barricade. If this is what you are looking for...maybe someone can help because there are none in the Exchange that use all internal coding.

  14. #14
    Member
    Join Date
    Aug 2006
    Posts
    91
    o i gotcha. kind of like viewing a source in html to find some passwords...
    alrigt.
    well thanks to all.
    i didnt realize you could that in flash

  15. #15
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    Koolmoves users can import your SWF into a new movie (flash users too) and read the coding unless:

    1. The movie is extremely complicated and might garble the scripts (usually causes the application to crash if someone tries to import) on import.

    or

    2. You ofuscate (encrypt it or protect with a third party app)


    Even then I would suggest a serverside (php,cgi,etc) to add a layer of protection should 1 or 2 fail.

  16. #16
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    One last tip. I don't suggest anyone (these days at least) attempt to protect a Flash6 movie because if you export as F7 or F8 (the preferred) you can block right clicking which allows users to step through your movies frames using the flash menu. This would bypass even a serverside protection so I highly recommend you get into the habit of exporting F7 or F8 and place this on frame 2 of every movie you make:

    Code:
    var newMenu = new ContextMenu();
    newMenu.hideBuiltInItems();
    _root.menu = newMenu;
    This way if they direct hit your SWF (bypass the html page it's embedded in) and try to step past your security by right clicking....they get blocked. That code will not work in F6 exports or below.

  17. #17
    Member
    Join Date
    Aug 2006
    Posts
    91
    Well my server supports .php files, and i have PhpMyAdmin, but im completel lost when it come to that. I treid to learn Cgi and php but i get really confused. html is a cinch and flash isnt to difficult.
    Is there any easy way to setup a php file to do this?

  18. #18
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    Well...I'm not tooting my own horn here because I wish there were hundreds of files to pick and choose from but I have one in the Exchange called "Loadvars Login w/SO" that is exactly what you want. It's in the misc section. It doesn't use http cookies to remember you...it uses a Shared Object (which works across browsers...http cookies don't).

    The backend is commented where to change the username/pass and after that as long as they exist (THE SWF AND PHP FILE) in the same directory on your server it should definitely let you better understand how php and flash integrate.

  19. #19
    Member
    Join Date
    Aug 2006
    Posts
    91
    Quote Originally Posted by Chris_Seahorn
    Well...I'm not tooting my own horn here because I wish there were hundreds of files to pick and choose from but I have one in the Exchange called "Loadvars Login w/SO" that is exactly what you want. It's in the misc section. It doesn't use http cookies to remember you...it uses a Shared Object (which works across browsers...http cookies don't).

    The backend is commented where to change the username/pass and after that as long as they exist (THE SWF AND PHP FILE) in the same directory on your server it should definitely let you better understand how php and flash integrate.
    okay i downloaded it, im lost. what .php file do i upload? sry...

  20. #20
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    Cut it out man...there is only one php file in it

    Edit these two lines (between the quotes)

    //Enter your admin username and password below!
    $adminuser="testadmin";
    $adminpass="testpass";
    //


    So if you wanted a username of "test" and a password of "user" the lines would be:

    $adminuser="test";
    $adminpass="user";


    Upload the php file and swf file to your server (same directory) and test

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