Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 09-14-2006, 12:16 AM   #1
Jupiter09
Registered User
 
Join Date: Sep 2006
Posts: 3
Question Targeting frame label within one MC from another MC?

I'm creating a gallery for a client (We'll call him Joe Blow to protect his identity.) He's done several pieces of work for several different clients. I created separate movie clips for each client within a file called "PrintSample.fla". In this file, there are two movie clips for two clients - one named DrPepper_mc and the other named DMAmap_mc.

These MCs live on the main timeline, side by side.

View sample SWF file
Download PrintSample.fla (593KB)

If you open DrPepper_mc, you'll see navigational buttons. These work beautifully. The last right arrow (located in Next under Frame Label "3") in DrPepper_mc is set to play frame 1 of the DMA stuff by using this code:
Quote:
on (release) {
_root.nextFrame();
}
Awesome. So then, DMAmap_mc loads up. If you only click the right/next arrows, everything is great... but if a user is looking at the first sample piece within DMAmap_mc, (the scrolling one) and they click the left/previous arrow, it takes them to the first frame in DrPepper_mc. Here's the code used on that arrow now:
Quote:
on (release) {
_root.prevFrame();
}
I don't want that left/previous arrow to take them to the first frame of DrPepper_mc. I want it to take them to the last section of DrPepper_mc. I've named the section I want to target within DrPepper_mc "3".

I tried using this code on that arrow:
Quote:
on (release) {
_root.DrPepper_mc.gotoAndPlay("3");
}
And this:
Quote:
on (release) {
_root.DrPepper_mc.gotoAndPlay(3);
}
But no luck. Please help if you can.

XOXO
Jupiter09 is offline   Reply With Quote
Old 09-14-2006, 04:48 AM   #2
oldnewbie
Banned by AS.org Staff
 
Join Date: Mar 2002
Posts: 10,533
Default

Check your Private Messages. I've sent you a link to a partly corrected .fla.
oldnewbie 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
targeting frame label warrens3 ActionScript 2.0 2 09-12-2006 01:44 PM
[F8] gotoAndStop does not go to correct frame, according to frame label supahdupahdan ActionScript 2.0 0 09-05-2006 09:20 PM
referencing frame label bearsark86 ActionScript 2.0 2 09-27-2005 08:37 AM
Frame label -1 dave_eire ActionScript 1.0 (and below) 2 03-11-2003 06:14 PM
reference frame label from AS monkeybrainz ActionScript 1.0 (and below) 2 02-25-2002 03:13 PM


All times are GMT. The time now is 07:39 PM.

///
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.