Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flash General Questions > Other Flash General Questions

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-18-2004, 09:40 AM   #1
cmbarsotti
Senior Member
 
cmbarsotti's Avatar
 
Join Date: Dec 2003
Location: Kansas City, MO
Posts: 298
Default referencing dynamic frame label

Well, I'm just having a stupid problem. I can't seem to call a frame label unless I type the entire name in the gotoAndPlay field.

I have frame labels FrameSec1, FrameSec2, FrameSec3, etc. I call a init function for each section passing that number, in the end I want to go to that frame

gotoAndPlay("FrameSec" + thisSecNum);

This doesn't work!

If I type gotoAndPlay("FrameSec1") it's fine, but...

Any ideas what I'm doing wrong?

Publishing as Flash 7 using AS 2.0
__________________
Michael [the idiot] Barsotti
cmbarsotti is offline   Reply With Quote
Old 03-18-2004, 12:04 PM   #2
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

I could be wrong, but you cannot use dyanmic variable for the frame label and the scene name...

[EDIT]
You can use dynamic frame label with gotoAndStop()/gotoAndPlay() function...
[/EDIT]
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...

Last edited by CyanBlue; 03-21-2004 at 07:00 PM.
CyanBlue is offline   Reply With Quote
Old 03-18-2004, 01:02 PM   #3
Ruben
Me
 
Ruben's Avatar
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 3,512
Send a message via MSN to Ruben Send a message via Skype™ to Ruben
Default

I'm not sure I understand what you're trying to do here...

You want to give a frame some label [in flash, not with actionscript] and then calling it from a variable??

Because that's what I just did, here's the fla.

Good luck - Ruben
Attached Files
File Type: zip dynamicframelabel.zip (2.2 KB, 279 views)
__________________
.
Originally Posted by MichaelxxOA
"He sounded like he knew which words he was going to use before he knew what he was going to say. I hate that shit."
Ruben is offline   Reply With Quote
Old 03-19-2004, 11:07 AM   #4
Ruben
Me
 
Ruben's Avatar
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 3,512
Send a message via MSN to Ruben Send a message via Skype™ to Ruben
Default

.....??? Did it work??

People often appreciate it when you let them know if it worked, espacially when they've put time and effort in helping you: read this

- Ruben
__________________
.
Originally Posted by MichaelxxOA
"He sounded like he knew which words he was going to use before he knew what he was going to say. I hate that shit."
Ruben is offline   Reply With Quote
Old 03-21-2004, 07:12 PM   #5
cmbarsotti
Senior Member
 
cmbarsotti's Avatar
 
Join Date: Dec 2003
Location: Kansas City, MO
Posts: 298
Default

Sorry I did not post a response immediately after you posted your suggestion, I was busy.

Your file worked fine, I just (10 minutes ago) was able to sit back down with this Flash file and I realized I was calling the gotoAndPlay too soon. The mc hadn't loaded yet. For some stupid reason I thought attached mc's (addressed via linkage ID) would load faster then not.
__________________
Michael [the idiot] Barsotti

Last edited by cmbarsotti; 03-21-2004 at 07:15 PM.
cmbarsotti is offline   Reply With Quote
Old 03-22-2004, 11:18 AM   #6
Ruben
Me
 
Ruben's Avatar
 
Join Date: Jul 2002
Location: Netherlands, Europe
Posts: 3,512
Send a message via MSN to Ruben Send a message via Skype™ to Ruben
Default

About your PM:
Quote:
You really have to allow people some time to answer your posts, I don't think most of us spend all day answering questions on newsgroups like it seems you do.
1. Yeah, I might be a bit over-active on the AS[org]Forums, that's because I'm online practically all day and I like helping people [when I start my PC I check the FMX04GeneralForums for new threads where I might be able to help and reply/subscribe to them]...
2. I've noticed there are a lot of people who start threads, get answers but don't say anything like 'thanks heaps' and stuff, sometimes it gets a bit irritating, so it happens that I just take it out on the wrong person...
3. I guess it could be kinda offending, but look at it this way: better telling people [incl. a few of the wrong people ] that it's polight to say 'thanks' then letting parasites get away with not being gratefull at all....
4. Sorry anyways...

See you around - Ruben

PS. You disabled your 'receiving PMs'-thingie
__________________
.
Originally Posted by MichaelxxOA
"He sounded like he knew which words he was going to use before he knew what he was going to say. I hate that shit."
Ruben 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


All times are GMT. The time now is 08:05 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.