PDA

View Full Version : Script


Wellswood
01-18-2008, 11:54 AM
I wish to have a page that includes an input box where a user can enter a name. If the users' name is entered the sound file should stop and the user move to the next page. If no name is entered in the input box an error message should appear. The user remains on the page with the sound playing until a name is entered.

I am a complete beginner and only obtained AutoPlay Media Studio less than a week ago. I have no experience of scripts and need someone to explain things in simple terms.

I hope someone can help me.

longedge
01-18-2008, 12:48 PM
Welcome to the forum.

I've attached a small example. All the code is in the Project/Actions i.e. it runs before anything else is displayed. The valid usernames are in a text file in the docs folder.

Wellswood
01-19-2008, 01:17 PM
Thank-you longedge for sending me such a fine example. I am new to AudioPlay Media Studio and your help is appreciated.

Wellswood
01-20-2008, 10:27 AM
Archive sent as attachment.

longedge
01-21-2008, 09:32 AM
This is your project with some additions as per my reply to your pm. I think it does roughly what you want.

I've had a lot of fun working out how to do things in AMS over the years and like I said, I still learn new ways of doing things on a daily basis. It is difficult sometimes particularly if like me you're not a developer/programmer but it's worth it when things work out :) :yes

Wellswood
01-22-2008, 11:26 AM
Thanks. I have just download the file and will let you know how I get on.

Wellswood
01-24-2008, 11:58 AM
The script from Longedge was just right for me. I have studied the code and learnt a lot.

Sincere Thanks.