TwelvestoneFlash

Newbie Help - URL clicks in a Flash script


Sign in

  • Waiting for Godot ( 730 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 5.1 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.9 k posts )
    general front end design an...
  • Back End ( 9.7 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
Rob Brink
 
2008-06-19

here's the code

stop(); speed = 10; initial_width = 75; target_width = 450; sp = rect1._x; this.createEmptyMovieClip("emptymc", 0); emptymc.onEnterFrame = function() {
for (i=1; i<=6; i++) { if (_root.hit.hitTest(_root._xmouse, _root._ymouse, true)) { if (_root["rect"+i].hitTest(_root._xmouse, _root._ymouse, true)) { new_x = (_root.sp-(75*(i-1)))-rect1._x; rect1._x += new_x/speed; n_width = target_width-_root["rect"+i]._width; _root["rect"+i]._width += n_width/speed; } else { n_width2 = initial_width-_root["rect"+i]._width; _root["rect"+i]._width += n_width2/speed; } } else { new_x = _root.sp-rect1._x; rect1._x += new_x/(speed+50); n_width2 = initial_width-_root["rect"+i]._width; _root["rect"+i]._width += n_width2/(speed-1); } _root["rect"+(i+1)]._x = _root["rect"+i]._x+_root["rect"+i]._width; _root["movie"+i]._x = _root["rect"+i]._x-1; } };

How or where do I insert URL links ?

Storm
 
2008-06-19

button_instance.onMouseUp = function() {

}

add it right to the end of that script

Note for the future, it helps get answers quicker if you specify AS2 or AS3 in the title.

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFlash

Newbie Help - URL clicks in a Flash script