View Full Version : how can i write the "" in a string
mlk
March 22nd, 2003, 02:56 PM
since the double quotes limit the string, how can i incluide them in my string, is it something like
string = "/"2/",2"
which would output: "2",2
Btw I am doing that because a buttton tells the _root to go to string, would it then goto to scene 2 frame 2 or does that not function ???
thnx !
ahmed
March 22nd, 2003, 03:04 PM
close enough,, it's
string = "\"2\",2" :)
mlk
March 22nd, 2003, 03:20 PM
All right thnx for the tip, however what i wanted to do doesnt work:
on (release, keyPress "<Left>") {
gotoAndPlay(_root.framelabel);
}
I want the button to send the user to scene 1 frame one which i have called
'framelabel on the root level:
framelabel = "\"1\",1"
it just daint work !
fluid_0ne
March 22nd, 2003, 03:23 PM
framelabel = '"2"'
works for sure
ahmed
March 22nd, 2003, 03:32 PM
im not sure if it's possible to do that, as the gotoAndPlay(scene, frame) expects two arguments, and the scene name must be quoted string, i.e. you cant have a variable name in there.
eyezberg
March 23rd, 2003, 07:26 AM
Get rid of those scene/frame numbers, just USE a framelabel in your goto!
label="location";
on release gotoAndPlay (label);
mlk
March 23rd, 2003, 11:08 AM
i'd love to but does the label work for a different scene too ?
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.