Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-20-2006, 05:42 PM   #1
ros
Registered User
 
Join Date: Apr 2005
Posts: 23
Default Help with code

i want one button to do opperate two MC at the same time
the button is made up of a MC which has two frames,
the code i have for them on the on the first frame is

if (backward eq "1") {
tellTarget ("_root.map") {
prevFrame();
}
}

and the other is

if (backward eq "1") {
tellTarget ("_root.boxline") {
prevFrame();
}
}

the button is made up of a MC which has two frames the second frame is

gotoAndPlay(1);

the button itself has this attached

on (press) {
backward = "1";
}
on (release) {
backward = "0";
}


Obviously I have a foward control as well

HaveI got it right?
ros is offline   Reply With Quote
Old 07-07-2006, 05:10 AM   #2
sunlis
Mac user and proud
 
sunlis's Avatar
 
Join Date: Feb 2006
Location: Canada
Posts: 694
Send a message via MSN to sunlis Send a message via Skype™ to sunlis
Default

ActionScript Code:
if (backward == "1") {       tellTarget ("_root.map") {             prevFrame();       } } if (backward == "1") {       tellTarget ("_root.boxline") {             prevFrame();       } }
__________________
//dA
//blog
//site
sunlis 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
Always get desired FPS in browser jasonoda ActionScript 1.0 (and below) 10 01-06-2011 01:52 PM
Persistant Code Problem CisTrans ActionScript 1.0 (and below) 0 06-11-2006 05:25 AM
code consolidation subquark ActionScript 1.0 (and below) 11 01-21-2003 11:53 PM
Adding code to a component event handler? BlueTree ActionScript 1.0 (and below) 0 12-02-2002 11:17 PM
code not working jaredly ActionScript 1.0 (and below) 6 06-05-2002 07:56 PM


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