Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 06-02-2007, 06:54 PM javascript and flash
Junior Talker

Posts: 2
Trades: 0
Hi, I have problem
I have javascript

function call(path) {
thisMovie("video").setVideoPath(path);
}

function thisMovie(movieName) {
if (navigator.appName.indexOf("Microsoft") != -1) {
return window[movieName]
}
else {
return document[movieName]
}
}

and flash

<object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
width="150"
height="100"
id="video"
align="middle">
<param name="allowScriptAccess" value="always" />
<param name="movie" value="video.swf" />
<param name="quality" value="high" />
<embed src="video.swf" quality="high" width="150" height="100" name="video" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

and i call some videos by

<input type="button" onclick="call('video/black.flv')" value="Black" />

In firefox it is ok but IE has error.
Please, can somebody help me? thx
zbet is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-02-2007, 08:49 PM Re: javascript and flash
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Stop using those old deprecated calls, use the dom...
Code:
function call(path) {
  document.getElementById('video').setVideoPath(path);
}
Simple as that...
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 06-03-2007, 09:14 AM Re: javascript and flash
Junior Talker

Posts: 2
Trades: 0
thank you but this not working me
zbet is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to javascript and flash
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.18010 seconds with 12 queries