473,511 Members | 15,852 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

target/rewind another MC from another button on stage???

elamberdor
39 New Member
Hi All!
Have a complex roll in / roll out button (ag_mc) that unwraps, then re-wraps a chocolate upon roll in - roll out. However - to complicate things, I would also like another button ( ag_desc) when rolled over / out, to also target/animate/control that other button to animate on the stage as it does as if it was pressed itself...


The rollover button (ag_desc) has a simple movie clip inside on the rollover state to let ppl know to click it, and the ag_mc I'm targeting has a shape tween that I would like to rewind on roll out.

Here is the current complete working script (for anyone who would like it) that is inside the animated button to make it play back and forward easily on roll over:

on ag_mc button, frame 1:
Expand|Select|Wrap|Line Numbers
  1. stop(); 
  2.  
  3. this.onEnterFrame = function(){
  4.     if(rewind == true){ 
  5.         prevFrame();
  6.     }
  7. }
  8.  
  9. this.onRollOver = function(){
  10.     rewind = false; 
  11.     play(); 
  12. }
  13.  
  14. this.onRollOut = function(){
  15.     rewind = true;
  16. }
this above script works great on the actual button that is being pressed, but now I would like to target that movie clip animation playing from ag_desc movie clip... they are both on the same stage also.

This is what makes the other clip play (working) on ag_desc for ag_mc:
Expand|Select|Wrap|Line Numbers
  1.  
  2. on (rollOver) {
  3.     ag_mc.play();
  4. }
  5.  
I think someone has the right track/thought/idea with this:
Expand|Select|Wrap|Line Numbers
  1. sociology_btn.onRelease = function () {
  2.  
  3.     _global.nyusoc_click = 1;
  4.  
  5.     _parent._parent._parent.gotoAndPlay ("folio");
  6.  
  7. }
  8.  
I'm trying things like:
Expand|Select|Wrap|Line Numbers
  1. on (rollOver) {
  2.     ag_desc.onRelease = function() {
  3.         _root.ag_mc.gotoAndPlay("open");
  4.     };
  5. }
  6.  
but not quite getting there!

Any ideas to target another movie clips frames to make it animate??

Thanks so much in advance!!!

=D
Feb 18 '08 #1
1 3783
elamberdor
39 New Member
Ok! well, I got this working!

After some fishing around, I've changed direction and used tellgarget and if statements to control my remote movie clips, (six of one half a dozen of the other i know... but it feels a bit cleaner to work with when its all actionscript on the stage)

This progbox tutorial was great!

http://www.progbox.co.uk/wordpress/?p=18

I just have to make sure that on the button that is targeting the other movie clip, in its hit state it has another invisible button over the area of the animation, and it also animates! yay!
Feb 18 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

36
3912
by: randau | last post by:
I would like to use the Link Target attribute, but am inhibited by the likelihood of a newly opened browser window completely hiding the Parent browser window. Thus offering the illusion that...
27
1965
by: Deek | last post by:
I have a target(graphic) that moves via, i am trying to detect a hit of the target with and essay(copied below) my prof gave us, but I am not sure what to do, if you could get me going in the...
24
3379
by: Olaf \El Blanco\ | last post by:
Where is exactly neccesary to put "rewind(stdin)"? After a printf? Before a scanf? I have a lot of problems with strings... If somebody know any good document, please let me know where is... ...
0
1410
by: David Adams | last post by:
Hi, I have an aspx page that has a series of radio buttons that are autopostback. When a selection is made, the form posts back and displays specific input fields for the radio button selected....
5
3527
by: gp | last post by:
i am implementing Iterator in a class, I have pretty much copied the code from php.net on Object Iteration. Adding all the normal methods for the task...rewind, current, next, etc. I was...
8
7708
by: gerry | last post by:
The PagerSettings.Visible property is not being handled properly by the GridView control. The value assigned to this property is not applied until after a postback. Simplest test : .aspx...
10
4880
elamberdor
by: elamberdor | last post by:
Hello All! Well, I can load in swf's just loverly, but what I have is a sliding menu, with buttons in it, that when pressed, load an image into an empty movieclip. I really just need to know how...
0
1550
by: james8901 | last post by:
Hi folks, I need your help. I'm new to flash so please bear this in mind. My problem is this: I have a picture of a phone on the stage which I have made into a button. What I want is that,...
0
1451
by: sarakmak | last post by:
Hi, I have 3 movieclips on the main stage. btn1, 2, 3 I have this code in the maintime line, that when i click a button, the btn the stays static (like its on), when i click another btn, it...
0
7138
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7418
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7075
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7508
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5662
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3222
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3212
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.