TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

telltarget and startdrag

Page: 1 Reply
Aug 4th 2002#62867 Report
Member since: Dec 24th 2001
Posts: 222
ok my first question is about the telltarget i was looking at a tutorial about creating dragable menus and it in it there was a minimize button and the telltarget was used this way
on (release) {
telltarget("/menu")
gotoAndStop(5);
}
doesnt that do the same thing as
on (release) {
_root.menu.gotoAndStop(5);
}
?
also i was looking at the tutorial for draggable menu and the only code they have to drag the menu is
on (press) {
startdrag("/menu")
}
on (release) {
stopdrag()
}
is that really all the code you need ot drag the menu?
Reply with Quote Reply
Aug 4th 2002#62895 Report
Member since: Mar 18th 2001
Posts: 1604
telltarget was the flash 4 and previous way of referring to objects. the _root method introduced in flash 5 does pretty much the same thing more efficiently.

and yes, that should be all you need. see my response in your other post :D

chris
Reply with Quote Reply
Aug 24th 2002#65935 Report
Member since: Aug 24th 2002
Posts: 5
tellTarget was eplaced with dot syntax or the with command, for multiple actions

with(yourClip){
_x=50
_y=300
}

so for your example

on(release){
with(_root.menu){
gotoAndStop(5);//u should label your frames though as it makes iot easier to add or remove frames
}
}

or
on(release){
_root.menu.gotoAndStop(5);
}

that should work

for the dragging u can use dot syntax

on(press){
_root.menu.startDrag(true);
}

on(release){
_root.menu.stopDrag();
}

also man u should checkout the online actionscript dictionary
http://www.macromedia.com/support/flash/action_scripts_dict.html

also i highly recommend moock's book the definitive guide for your actionscript needs
Reply with Quote Reply
Page: 1 Back to top
Please login or register above to post in this forum