Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script Error: When playing a Flash movie

Status
Not open for further replies.

BongoMudpie

IS-IT--Management
Apr 27, 2002
32
GB
Can anyone help with this script error, I am trying to play a Flash movie at the front of my presentation using this script:

on exitFrame
if sprite(1).frame < sprite(1).member.frameCount then
go to the frame
end if
end on

It plays the movie but then it comes up with this script and will not continue on to the rest of the presentataion which has all been authored in Director. I have placed the Flash file in channel 1 - I am new to Director and wondered if I am doing something wrong?

Here is the script error message:

Script error: Zero parameters expected
if sprite(1).frame < sprite(1).member.frameCount then
 
From what you have described it seems that it should be working. The reason is you get that script error: &quot;Zero pararmeters expected&quot; when you mismatch the channel numbers of the flash sprite and the one referenced in your script. As you say you have your flash file in channel 1 and the script you provided shows channel 1. So all i can suggest is double checking your script and location of the flash file.
 
Thank you for pointing that out, now all fixed and running well.

Thank you again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top