473,563 Members | 2,668 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 3787
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
3925
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 you're still in the same browser, but the Back Button no longer works. I've done some experimentation and came up with the conclusion that...
27
1978
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 right direction i would appreaciate it: Private Sub tmrTarget_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles tmrTarget.Tick 'Move...
24
3390
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... Thank you.
0
1412
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. After the input fields have been filled out, a button is clicked that changes the target of the form to "_blank" and posts back - opening a new...
5
3537
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 attempting to add a seek method but am stymied by the above warnin, as well getting a seek on index 0 (zero) to work. public function...
8
7725
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 containing a single gridview - enable paging and give enough data to page. add checkbox with auto postback enable add button with auto postback enable in...
10
4891
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 to target back to the _root of the whole movie. It works great when the buttons and empty movieclip in the same stage or same movie clip, however I...
0
1561
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, when I click on this button (phone_btn), my video (called 'TyreChange.flv') will appear on the stage. And I will have the option of removing the video...
0
1457
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 switches on the next button and loads an external swf. Each button's instance name is button1, 2, 3..and more buttons I add the stage I would increase...
0
7583
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7885
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7948
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6250
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3642
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1198
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.