Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-11-2007, 11:22 PM   #1
happypants
Registered User
 
Join Date: Aug 2005
Posts: 3
Default making a target path into a string

I have a file where I've created several mcs titled "bubble"+number, like bubble1, bubble2, etc. I need to make a mc within those bubble mcs find the number of the bubble that it is in, but I don't know how to...

I apparently can't do [this._parent._parent].substr(#), so how do I make this._parent._parent into a string? some sort of this._parent._parent.mc_name type thing (replacing the mc_name with something real...)

many thanks
happypants is offline   Reply With Quote
Old 03-12-2007, 12:02 AM   #2
Cota
Super Moderator
 
Cota's Avatar
 
Join Date: Jul 2001
Location: NYC
Posts: 10,175
Default

when you create/attach the clip, you can do something like this
ActionScript Code:
var myArr:Array = new Array(); myArr[ValueHere] = this.createEmptyMovieClip()//etc etc
Then the paths will be stored in the array. Is that what you're after?
__________________
Color Wars™ | (kul′ər wôrs) n. - Open conflict between factions. www.theColorWars.com

cota - www.chadworkman.com | http://shavedplatypus.com
occupation: designer | flash developer | server-side developer (php, asp, mssql, mysql)
Cota is offline   Reply With Quote
Old 03-12-2007, 07:15 AM   #3
happypants
Registered User
 
Join Date: Aug 2005
Posts: 3
Default

I feel like an idiot. Turns out the _name property exists. Wow. Sorry for wasting your time.
happypants is offline   Reply With Quote
Old 03-12-2007, 06:49 PM   #4
Cota
Super Moderator
 
Cota's Avatar
 
Join Date: Jul 2001
Location: NYC
Posts: 10,175
Default

not a waste of time if you found a solution on your own.
__________________
Color Wars™ | (kul′ər wôrs) n. - Open conflict between factions. www.theColorWars.com

cota - www.chadworkman.com | http://shavedplatypus.com
occupation: designer | flash developer | server-side developer (php, asp, mssql, mysql)
Cota is offline   Reply With Quote
Old 03-19-2007, 03:04 AM   #5
WebsitesinaFlash.com
Registered User
 
Join Date: Mar 2007
Posts: 2
Thumbs up Ha! You are my savior!!

I had that EXACT same problem with my Flash Movie!

Thanks for posting your solution.
WebsitesinaFlash.com is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
var in target path Reean ActionScript 2.0 0 10-18-2006 05:31 PM
target path problem icemart525 ActionScript 2.0 5 06-23-2006 08:12 AM
Multi level target path from string dans ActionScript 1.0 (and below) 0 05-30-2005 07:04 AM
why can't I target this MC (puzzling path problem) pisosse ActionScript 2.0 14 02-27-2005 08:10 PM
need help in target path!!!!! rotikosong ActionScript 1.0 (and below) 1 04-16-2002 08:02 AM


All times are GMT. The time now is 07:03 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.