tags:

views:

75

answers:

2

Is it possibe to insert into GSP simple flash movie?

I tried this way:

<object type="application/x-shockwave-flash" data="${resource(dir:'flash',file:'movie.swf')}" width="400" height="400">
            <param name="movie" value="${resource(dir:'flash',file:'movie.swf')}" />
            <param name="bgcolor" value="#ffffff" />
            <param name="AllowScriptAccess" value="always" />
            <param name="flashvars" value="feed=${resource(dir:'flash',file:'movie.xml')}" />
            <p>This widget requires Flash Player 9 or better</p>
        </object>

It seems that movie is loaded but .xml and pictures are not...

UPD tried to use flash-plugin 1.3.0 - the same result

<g:flashPlayer id="test"
                       varFile="${resource(dir: 'flash', file: 'movie.swf')}" paramAllowScriptAccess="always" flashvars="feed=${resource(dir:'flash',file:'movie.xml')}"/>
+1  A: 

Having not used grails before, I'm not sure what's wrong with your syntax, but I can recommend using swfobject to embed your swf rather than the standard object/embed tags. There's a write up about using swfobject with grails here: http://fbflex.wordpress.com/2008/06/05/grails-seo-swfobject-and-flex-progressive-enhancement/.

I find it's a bit easier to debug your embed using swfobject, and it is also the recommended method for standards compliant flash embeds.

quoo
A: 

Workaround with iframe

ziftech