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?
 
AlanGBConnect With a Mentor Commented:
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
 
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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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
All Courses

From novice to tech pro — start learning today.