Link to home
Start Free TrialLog in
Avatar of zicai
zicai

asked on

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
Avatar of SuperMario
SuperMario

Did you create a new FlashApi() object?
Avatar of zicai

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of AlanGB
AlanGB

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zicai

ASKER

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
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.
Avatar of zicai

ASKER

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