Old 14-12-2004, 05:49   #1 (permalink)
paulanthony
mingin dawg baitch
 
paulanthony's Avatar
 
Join Date: Apr 2004
Location: Belfast
Posts: 1,041
Send a message via MSN to paulanthony
Actionscript Strings and Things

I have the following

trace(this);
// returns _level0.pattern.clip2.empty

how do I use substrings etc to obtain a variable with

_level0.pattern.clip2 ?
__________________
  Reply With Quote
Old 14-12-2004, 09:39   #2 (permalink)
paulanthony
mingin dawg baitch
 
paulanthony's Avatar
 
Join Date: Apr 2004
Location: Belfast
Posts: 1,041
Send a message via MSN to paulanthony
Got it

clipname = String(this);
clipnameNew = clipname.substring(0,clipname.lastIndexOf(".empty" ));
__________________
  Reply With Quote
Old 14-12-2004, 16:00   #3 (permalink)
Denver
Registered User
 
Denver's Avatar
 
Join Date: Nov 2004
Posts: 14
Better:
clipnameNew = this._name.substring(0,this._name.lastIndexOf(".em pty"));
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8