Skip to main content
Inspiring
June 9, 2009
Answered

Need help with Strings

  • June 9, 2009
  • 1 reply
  • 519 views

How do I convert the string myName_btn into myName?

And can someone provide a link or tell me where I can find the actual manual for Flash CS4?

Thanks

This topic has been closed for replies.
Correct answer kglad

var var1:String="myName_btn";

var var2:String = var1.split("_")[0];

and check the comments here:

http://evolve.reintroducing.com/2008/10/24/news/adobe-flash-cs4-f1-help/

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
June 9, 2009

var var1:String="myName_btn";

var var2:String = var1.split("_")[0];

and check the comments here:

http://evolve.reintroducing.com/2008/10/24/news/adobe-flash-cs4-f1-help/

reindeer4Author
Inspiring
June 9, 2009

Thanks kglad.

And thanks for the link in a "misery loves company" sort of way.

I find it hard to believe, though, so I'm going to ask again in case I missed something: are you saying there aren't any real manuals for Adobe CS4 Flash, Photoshop, After Effects and so on?

And about that workaround mentioned in the thread you pointed me to (where you can move or rename the default 'Help' files, thereby forcing Flash to 'regress' to the older Local help panel) - does that load Help files for CS4 of CS3?  And does the same trick work for all the Adobe products?

Thanks

kglad
Community Expert
Community Expert
June 9, 2009

cs3 uses offline help files that are stored locally, by default.

cs4 uses online help files, by default.

you can force cs4 to use the offline help files, if you want.