Thanks for your answering. Actually, when i embedded outside the Yii, it worked fine with IE. But when I took this under Yii’s “views” folder, IE browser couldn’t find the flash file by src’s path(even i changed the path to http site, ex. http://xx.yy/oo.swf). The most curious to me is the code can work fine in Firefox and Safari, so I just want to know where the problem is. Thanks!
The only thing you are using is - <?php echo Yii::app()->request->baseUrl . ‘/flash/’ ?>
Check the source of the generated page (in the browser: view source) to see what value is here and if it’s the same value you use when embedding outside Yii
Yep, the path is the same as my other web site which used Myflash.swf. And I tried to change the authority about flash file to www-data, it’s still couldn’t work. I even tried some clear sample flash files, but still the same result. Sigh…it bothered me for a week long
I found where the problem is. It's just my stupid fault. The tag <param>'s value should include th path of the flash file. When i changed <param name="movie" value="Myfalsh.swf" /> to <param name="movie" value="<?php echo Yii::app()->request->baseUrl . '/flash/' ?>Myfalsh.swf" />. It worked fine. Thanks for all answers!! <img src='http://www.yiiframework.com/forum/public/style_emoticons/default/smile.gif' class='bbc_emoticon' alt=':)' />
Glad you solved this… it’s strange that firefox and safari does not need the complete path for the movie param… One more in a big line of IE tips/hacks…