Current location: Hot Scripts Forums » General Web Coding » Flash & ActionScript » getting the onLoad command to work


getting the onLoad command to work

Reply
  #1 (permalink)  
Old 08-05-06, 10:10 AM
foffer foffer is offline
New Member
 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
getting the onLoad command to work

Hi there.

I got a problem regarding the onLoad command.

first of all: i put the .fla here so you guys can take a look at it first hand http://www.foffer.dk/1001vectorlogo.fla

now, what i want is that the logo_alpha plays when dots_jumping is done playing its timeline. i dont know if its because my path is very long or something, but i tried to give it this command:
Code:
this.logo_alpha.logo_alpha_inside.dots_jumping.onLoad(){
gotoAndPlay("randomframelabel")
}
but it doesnt work.

now, i've tried to put the path in many different ways, but it still doesnt work.

the .fla is changed, so that i made the logo alpha out and in again, by use of the timeline, but that isnt i ideal way i think. please, i would be very glad if you could modify the .fla so i could see how to do it. (i only postet the .fla because i thought it would be easier for you guys to figure out, not because i want you to do my work )

thanks in advance!

-foffer

edit: actually i dont know if it is a onLoad function i need... please help!

Last edited by nico_swd; 08-06-06 at 08:12 AM.
Reply With Quote
  #2 (permalink)  
Old 08-06-06, 04:14 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
the onLoad function will not do what you want: check the livedocs at:http://livedocs.macromedia.com/flash...=00000664.html

as you can read, onLoad requires an event, just as you wanted, and will execute that event when the movieclip appears at the timeline. so what you want is an event to happen when the movieclip disappears from the timeline.
This can be done with the function onUnload(). however i don't know for sure, as i know less of movieclips

note: why do you want this to be coded and not use the timeline as you do this now. if you just want the alpha-logo to play after the dots, and that's the only thing that has to play after the dots, you can just use the timeline. it's ways easier

Greetz, and good luck
UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #3 (permalink)  
Old 08-16-06, 01:51 PM
foffer foffer is offline
New Member
 
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by UnrealEd
the onLoad function will not do what you want: check the livedocs at:http://livedocs.macromedia.com/flash...=00000664.html

as you can read, onLoad requires an event, just as you wanted, and will execute that event when the movieclip appears at the timeline. so what you want is an event to happen when the movieclip disappears from the timeline.
This can be done with the function onUnload(). however i don't know for sure, as i know less of movieclips

note: why do you want this to be coded and not use the timeline as you do this now. if you just want the alpha-logo to play after the dots, and that's the only thing that has to play after the dots, you can just use the timeline. it's ways easier

Greetz, and good luck
UnrealEd
ok, thx! ill try to do that then.

the reason i want to do it the other way with the code is because i can time it precisely that way, and i actually thought it was a bit easier... but dunno

thx anyways!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Freelance PHP Developer needed to work with Amberfly Ltd petebarr Job Offers & Assistance 3 07-03-09 12:23 PM
The Art Nexus seeking PHP programmers TheArtNexus Job Offers & Assistance 5 02-26-08 03:08 AM
I'm desperate for work, I'll do any work for cheap [PHP/MySQL] Anastas Job Offers & Assistance 17 02-12-06 11:18 AM
How to make search engine to work? mhs12grade1992 PHP 1 02-16-05 04:50 PM
Grafix Work Submitting in PHP ports1980 PHP 1 08-09-04 11:31 AM


All times are GMT -5. The time now is 06:23 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.