easy question - gotoAndPlay within a onLoadComplete



  • 1. Retrieve some datas from javascript
    Hi on my HTML page, i have a RealPlayer movie. I have a timeline made with Flash From flash, i want to take the total length of the Real movie. The command in Javascript is : document.vid.GetLength() When i try to send the length from HTML to FLASH using SetVariable, sometimes it didn't work because the timeline.swf is not loaded when my javascript want to send the variable to the flash. That's why i want the Flash to get the length of the real movie but i don't know how to do that. I tried that in actionscript : "movieLength.text = getURL("document.vid.GetLength()");" Hope you understood my problem
  • 2. Form submission - SIMPLE
    Is there an easy way to submit a form with flash where the input text values would not be displayed in thr url?
  • 3. How to script step back & forward buttons approx. 50 frames
    I'm creating a video with playback buttons. I was able to program the play, stop, rewind (to start) and forward (to end) buttons. Since the video is a few minutes long, I was thinking of using the "step back" & "step forward" buttons to be able to go back or forward, say, 50 frames. Does anyone know how to do this? I tried: on (release) { play(-50); } but didn't work. Any suggestions? Seems like I need to know the current frame but don't know the script to do this. Thank you.
  • 4. Cannot open a protected movie
    Hello I have a rare thing to ask. A colleague of us left us his work in Flash for our intranetsite. I need to modify some menufiles now and I get an error when opening the file. It says "CANNOT OPEN A PROTECTED MOVE MOVIE". Can anyone please tell me what this could mean and how I get rid of that 'protection'. I'd like to modify this file soon. Thanks for your replies and help, kind regards. Kevin
  • 5. Installing Flash/Shockwave
    have a broadband connection and when I normally connect to IE my streaming content home page from my broadband provider usually appears as usual. For the past two week I have had the "new version of flash" needed message appear, I download it, but every time I go back into the home page it says "new flash player needed", I have disbled my virus software for a second and tried to launch again, but nothing, I have gone into my security screen and enabled Download Active x Controls, Run AX xontrols and plug ins and Scrips AX controls prompts. But I still cant get my streaming home page to work, also gone into Temp internet files and deleted flash/shockwave and re-installed the player. But I cant get it to work on connection to my broadband homepage. Robert

easy question - gotoAndPlay within a onLoadComplete

Postby nickfromgreece » Wed, 06 Jul 2005 05:52:52 GMT

hey people,

just a quick one for all you FLASH experts out there...
I am using MovieClipLoader to load an SWF file (avli55_main_mc.swf) into
a movie clip instance (theClip_mc). Once the loaded movie has finished
I would like to go to a specific frame on my main movie. I tried the
following code
with no luck - any ideas?

my_mcl = new MovieClipLoader();
myListener = new Object();
myListener.onLoadComplete = function(target_mc) {
my_mcl.loadClip("avli55_main_mc.swf", "theClip_mc");

Similar Threads:

1.2 easy (easy for you, that is) questions Flash MX pro

We have Flash MX Pro in the office. I'm trying to do a SIMPLE site. I have 2 questions.

1. What's the easiest way to click on text and have it take you to another frame on the timeline?

2. What's the easiest way to click on text and have it open a new browser window?

Thanks in advance!

2.Easy easy flash question

Could somebody tell me what the name of this flash object is:
 -On some websites they have a flash header that, when scrolling horizontally 
across it, will move across a picture 
 inside the same box...just move the picture down.....does anyone know what im 
talking about? i cant think of a website 
 to describe it offhand, but if someone could tell me the name of this 
function, i would greatly appreciate it. Thanks!

3.GotoandPlay within a _mc

I have a timeline with a stop action on frame 3.
 Frame three has a movie clip symbol. 
 upon completion of this movie clip there is a "click to proceed" button
 On release it should go to frame 4 of the main timeline.

 i am mental jell-o today, i've done this many times but for the life of me I 
have not been able to remember how all morning.  I feel like an idiot. (pretty 
typical feeling though)

 Also can i enable buttons on my maintime line from a button within a movieclip?

4.gotoAndPlay(); Question


This is my first time for posting to this forum -- I hope that my 
question is appropriate.

I have created a moving logo (a flash movie) that repeats using:


action script at the last frame -- that's no big deal, works great.

However, what I want is for the logo to repeat to a specific frame in 
one run and then to a different frame in the next run. In other words, 
in the first viewing I want it run from frames 1 through 255 and in the 
second run from frames 60 to 255 and then repeat the process again.

I tried using the action script of:


But all that does is to repeat the entire movie again and again -- it 
never observes the first gotoAndPlay(60).

I also tried using:

	for (i=1;2;i++)

but that didn't work.

Any ideas?

Many thanks for any help.


5.gotoAndPlay question Please Help.

I am working on a website and I have a horizontal links bar on the top and then 
each page comes down in its own box. My problem is that if I am on say Page 2 
and want to go to Page 3 I want Page 2 to go up in the same way it came down 
and then Page 3 comes down. So it looks like it is all one box that rolls up 
and down with different information according to which page you are on. So how 
can I gotoAndPlay a set of frames which will roll up Page 2 and then after that 
gotoAndPlay the set of frames that roll down Page 3. The real problem is that 
since there are several different pages I cant just add code to the end of the 
Page 2 frames to go to Page 3 frames. Maybe there is a completely different way 
to go about it which if there is I would love to know. Thank you for reading my 
very long question. 

6. Quick Question about gotoAndPlay in AS2

7. gotoAndPlay question

8. gotoAndPlay(); question

Return to FLASH


Who is online

Users browsing this forum: No registered users and 83 guest