A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: >>> Variables <<<

  1. #1
    Member
    Join Date
    Jan 2003
    Location
    CPU
    Posts
    38

    >>> Variables <<<

    i put an input text on the stage and i call it 'cow'.

    i want this:
    when the user clicks on the button 'GO'... Flash© reads the variable cow and if the user has written 'flashkit.com' it goes to frame 2 else if has written 'netscape.com' it goes on frame 3.....


    ok?

    thanX

  2. #2
    TeePee
    Join Date
    Sep 2002
    Location
    Brisbane, Australia
    Posts
    52
    put this on the button

    on (release)
    if (_root.cow == "flashkit.com"
    _root.gotoAndStop(2)

    if (_root.cow == "netscape.com"
    _root.gotoAndStop(3)

    simple
    MSN:Teepee47_@hotmail.com

    TeePee

  3. #3
    Member
    Join Date
    Jan 2003
    Location
    CPU
    Posts
    38
    Originally posted by TeePee47
    put this on the button

    on (release)
    if (_root.cow == "flashkit.com"
    _root.gotoAndStop(2)

    if (_root.cow == "netscape.com"
    _root.gotoAndStop(3)

    simple
    yes...simple...i made a mistake...


    but in yer script Flash© finds errors

  4. #4
    Member
    Join Date
    Jan 2003
    Location
    CPU
    Posts
    38
    on (release)
    {if (_root.ricerca == "a")
    _root.gotoAndStop(2);

    if (_root.ricerca == "b")
    _root.gotoAndStop(3);
    }

    yep...now it's ok...

    thank u a lot

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