HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
What is this Type Identifier Error in this script
Post new topic   Reply to topic    HTML Help Forum Index -> Multimedia
View previous topic :: View next topic  
Author Message
iMergeAndSee



Joined: 10 Oct 2006
Posts: 2

PostPosted: Tue Nov 27, 2007 9:46 am     What is this Type Identifier Error in this script Reply with quote

Hey I have a project I am am trying to complete. Its basically a Flash Banner 160Wx600t. It plays a 5 second animation in 70 Frames (16 fps) In the last Frame when the animation stops I am building mp3 buttons (click it and it plays/streams music)

Here is the Script I am using below and here is the error messages i am receiving. At the end of this topic post is a link to the swf online so you can see for your self.

What is the solution, what is a type identifier?

LINK: http://radmarg.vo.llnwd.net/o1/vprecords/advertising/banners/stb160x600.swf

ERROR MESSAGE:
FOR LINE 1 of SCRIPT ITS ERROR SAYS- A type identifier is expected after the ':'.

FOR LINE 2 of SCRIPT ITS ERROR SAYS- ')' or ',' expected

SCRIPT:
<---BEGIN SCRIPT_______--->
function getSound(url:'http://radmarg.vo.llnwd.net/o1/vprecords/projects/18101811STB3738/music/1pickdrop.mp3'){
sound.stop();
delete sound;
sound = new Sound();
sound.onLoad = function(success:Boolean) {
if (success) {
trace("[MP3 Player]: file loaded");
} else {
trace("[MP3 Player]: Could Not load Sound Data from file, please try again");
}
};
sound.loadSound(http://radmarg.vo.llnwd.net/o1/vprecords/projects/18101811STB3738/music/1pickdrop.mp3, true);`
}
function audioStop() {
sound.stop();
$marker = sound.position/1000;
$state = false;
}
function audioPlay() {
sound.start($marker);
$state = true;
}
function checkState() {
if ($state == true) {
pause_wineup._visible = false;
audioStop();
} else {
pause_wineup._visible = true;
audioPlay();
}
}

getSound("myMP3.MP3");
sound.stop();
var $state = false;
var $marker = 0;
trigger_wineup .onRelease = checkState;
<--____END SCRIPT___--->


LINK for FILE: http://radmarg.vo.llnwd.net/o1/vprecords/advertising/banners/stb160x600.swf
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> Multimedia All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial