473,788 Members | 2,692 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

movieclip.gotoA ndPlay

chunk1978
224 New Member
ok... i've been trying to make this work for 2 days:

i have a scene with a button and a movie clip. the movie clip is called "MovieClip1 ". within the movie clip i've labeled a frame late in the clip called "Near End". i want my button to make the playhead goto that labeled frame within the movie clip but it does not.

the button has the following actionscript 2.0:

Expand|Select|Wrap|Line Numbers
  1. on (release) {
  2.     _root.MovieClip1.gotoAndPlay("Near End");
  3.     }
  4.  
what am i doing wrong?
Feb 7 '08 #1
7 28747
nomad
664 Recognized Expert Contributor
ok... i've been trying to make this work for 2 days:

i have a scene with a button and a movie clip. the movie clip is called "MovieClip1 ". within the movie clip i've labeled a frame late in the clip called "Near End". i want my button to make the playhead goto that labeled frame within the movie clip but it does not.

the button has the following actionscript 2.0:

Expand|Select|Wrap|Line Numbers
  1. on (release) {
  2.     _root.MovieClip1.gotoAndPlay("Near End");
  3.     }
  4.  
what am i doing wrong?

try this instead
on (release) {
this.gotoAndPla y("Near End");
}

nomad
Feb 7 '08 #2
chunk1978
224 New Member
try this instead
on (release) {
this.gotoAndPla y("Near End");
}

nomad
nope, doesn't work... i've tried this. _root.this.goto AndPlay("Near End"); _root.MovieClip 1.gotoAndPlay(" Near End");... nothing works... i'm wondering if i need to somehow change the properties of the MovieClip1 MC, so that actionscript can use it? i've called the MovieClip1 instance onstage "MovieClip1 " but it's just not being called.
Feb 7 '08 #3
nomad
664 Recognized Expert Contributor
nope, doesn't work... i've tried this. _root.this.goto AndPlay("Near End"); _root.MovieClip 1.gotoAndPlay(" Near End");... nothing works... i'm wondering if i need to somehow change the properties of the MovieClip1 MC, so that actionscript can use it? i've called the MovieClip1 instance onstage "MovieClip1 " but it's just not being called.
is the MovieClip1 MC in the same scene?

nomad
Feb 7 '08 #4
chunk1978
224 New Member
is the MovieClip1 MC in the same scene?

nomad
yes, it's in the same scene... i have no idea why something so simple is not working... it's making me crazy
Feb 7 '08 #5
chunk1978
224 New Member
Here is a small FLA file which shows you what i'm trying to do:

essentially there's an if/else statement block on the button, but the main timeline stops at frame 40.

i'm trying to make the button direct the playhead to the "Red" frame label within the MC movie clip, but anyway i try to write it it just isn't working. i know i can do this by not making a MC in the first place and just use the main timeline, but this is a small example of a much larger project, so i have to have it work this way.

so any thoughts of what i'm doing wrong?
Feb 7 '08 #6
chunk1978
224 New Member
it seems my flash install is crazy... i switched my movie properties from AS2 to AS3, and then back again, and now everything works as expected... strange...
Feb 23 '08 #7
Habbau
2 New Member
Hello...Chunk ..

I did notice that you managed your problem, now am wondering if you could be kind enough to help me...

I made a flash photo gallery with( thumbnail,xml). now the problems is that I have to implement zoom in / out buttons on in the gallery. How do I go about?

thanks in advance!!

(am a student, beginner with flash)
Feb 25 '08 #8

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

Similar topics

1
4433
by: veenathi | last post by:
i am trying to write code for coping a certain portion of movieclip into another movieclip. for that i draw big stage movieclip. (stage_mc).Then i draw small rectangle movieclips on the stage movieclip. (rect_mc) Now what i want, is that the area of the stage_mc that the rect_mc is drawn on, should be made into another movieclip. So that portion of the stage_mc which had been selected by the rect_mc, becomes a new movieclip newMC_mc. ...
3
1987
by: endline | last post by:
ok for some odd reason the movie clip I'm using as a button will not gotoandplay the frame label I want. the code is as follows on(release) { trace("did you get here") _root.gotoandplay("firstquiz") }
2
2423
by: mrahmed | last post by:
hi i'm new here and also om new in actionscript i'm trying to make a menu with submenu and i want when the mouse over the menu or the submenu make an effect it works when the mouse is over the menu but when the mouse go over the submenu nothing happen stop(); // the menu effect _root.mainMovie.navBack.onRollOver = over; _root.mainMovie.navBack.onRollOut = out; function over() {
1
1759
by: Joaquin | last post by:
Hi, I'm a newbie on this, I've been hours with this and I can't find where is my problem. The 1st scene in my movie has this script on the last frame: gotoAndPlay("Scene2",1);
2
4502
sumaiya
by: sumaiya | last post by:
I know how to load dynamic images in a movieclip sPhoto.loadMovie('http://localhost/1.jpg'); I have two movieclips "mcMain" and "mcArticle" mcMain ---- mcArticle --- mcPhoto mcPhoto is inside mcArticle and is suppose load an image dynamicaly I am using the above code but it does not work. Please Help. My code is given below onClipEvent(load) {
1
2378
by: nagraj | last post by:
hi i have a problem in flash .how to call a movieclip to another movieclip give _root
1
9379
by: molle | last post by:
Hi, this is perhaps a common question, but everywhere I just find how to load external images into a movieclip. I have images in my Library that I want to load into a movieclip, so I used attachMovie like this: mc.attachMovie("imagename"); where imagename is the Linkage identifier, but this doesn't work, so I wonder what I am doing wrong?
1
3574
by: chromis | last post by:
Hi, This should be really simple to do and has really got me stumped. I have a movieclip inside a button, the button is called my_btn and the movieclip is called my_movie. What i want to happen is the movieclip goes to frame two when the button is rolled over, so i added this code to test the reference to the button: my_button.onRollOver = function() { trace(this.my_movie); }
1
3008
thosecars82
by: thosecars82 | last post by:
Hello I am trying to resize the image loaded in a movieclip. The problem is that I am just resizing the movie clip but not the image loaded in the movieclip. The movie clip is smaller than the size of the image and therefore the movieclip only shows part of the image. Could you please tell me any idea to scale the image so that the whole image fit the smaller movie clip? Thanks
0
9498
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10366
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10110
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9967
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7517
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5399
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3674
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.