Control the properties of flash video through script

Hi, all!

I want to control the flash video's properties on a html page during run time. For example, I want to hide the video when the page is loaded, then show the video and start to play it when I press a start button, and I can stop the video by click another button to stop it. Also, I want to hide it again if possible. I tried flashvideo.play() to play the video, but this method failed with netscape which always prompted me an error message like "Java script error..".

Thank you all for your help!

Yours sincerely
Zicai
LVL 2
zicaiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SuperMarioCommented:
Did you create a new FlashApi() object?
0
zicaiAuthor Commented:
Hi, SuperMario!

Can you teach me how to do all the necessary stuffs? It will be greately appricated if you have a working example for both IE and Netscape. I am absolutely new to this area. Thank you very much!


Yours sincerely
Zicai
0
AlanGBCommented:
Use Dreamweaver 2 - you can put the movie into a layer and then control the layer using a time line that can be started with a button.

You can allways put raw HTML in your code to change the properties of the movie - eg to hide the shortcut menu etc.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

zicaiAuthor Commented:
Hi, AlanGB

Please give some working code for both Netscape and IE. I tried Dreamweaver 2 and timeline already, but only works for IE, not for Netscape. Please help!


Yours sincerely
Zicai
0
AlanGBCommented:
Hi Zicai,

The problem lies in the way that Navigator and Explorer look at layers.

Include code in the page to detect the browser - Dreamweaver has the tools to do this. Then use javascript to hide or show the layers.

the time line can be used to trigger different functions as neccessary - just remember to make sure that everything needs to relate to the browser in use.

bit short of time at momnet so I'll post some code up later if you need it.
0
zicaiAuthor Commented:
Hi, AlanGB!

Please put some code to show me how to do the right thing in both Netscape and IE. I looked at the code generated by Dreamweaver for the timeline control, but don't quite understand them, and I don't know where to modify to make it work for Netscape..

Thank you for your help!


Yours sincerely
Zicai
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.