not sure if this is what you're looking for but....

We use a custom tag to include flash in a dmHTML page. Just call the
custom tag as part of a display method- before or after your body. To
put it in the middle of the body, you could put something like <!--
insert flash --> in the body and just use a regular expression to show
all before this, then the custom tag, then all after this text.

The custom tag displays any dmFlash objects that are siblings to the
dmHTML page  you're on.

HTH 

Gav

<cfsetting enablecfoutputonly="Yes" />

<cfif thistag.executionMode eq "Start">

<cfparam name="attributes.objectid" />

        <cfset aFilter = ArrayNew(1) />
        <cfset aFilter[1] = "status IN
(#listQualify(request.mode.lvalidstatus, "'")#)" />
        <cfset stNav =
application.factory.oTree.contentObjectGet(objectid=attributes.objectid)
/>

        <cfloop from="1" to="#ArrayLen(stNav.aObjectIDs)#" index="i">
                <cfset stSibling =
application.factory.oTree.contentObjectget(objectid=stNav.aObjectIDs[i])
/>
                <cfif stSibling.typename eq 'dmFlash'>
                        <cfoutput><div class="content-flash"></cfoutput>
                        <cfif len(trim(stSibling.teaser))>
                                
<cfoutput><p>#HTMLEditFormat(stSibling.teaser)#</p></cfoutput>
                        </cfif>
                        <cfoutput>
                                <object
                                        
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
                                        
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab##version=4,0,2,0";
width="#stSibling.flashwidth#" height="#stSibling.flashheight#">
                                <param name="movie"
value="#application.url.webroot#/files/#stSibling.FLASHMOVIE#" />
                                <param name="quality" value="#stSibling.FLASHQUALITY#" 
/>
                                <param name="bgcolor" value="#stSibling.FLASHBGCOLOR#" 
/>
         <!--[if !IE]> <-->
                <object data="#application.url.webroot#/files/#stSibling.FLASHMOVIE#"
width="#stSibling.flashwidth#" height="#stSibling.flashheight#"
                        type="application/x-shockwave-flash">
                <param name="quality" value="#stSibling.FLASHQUALITY#" />
                <param name="bgcolor" value="#stSibling.FLASHBGCOLOR#" />
                <param name="pluginurl" 
value="http://www.macromedia.com/go/getflashplayer"; />
                        FAIL (the browser should render some flash content, not this.
Please report this error to the Board of Studies).
                </object>
                <!--> <![endif]-->
                </object>
                        </div></cfoutput>
                </cfif>
        </cfloop>
        
</cfif>

<cfsetting enablecfoutputonly="no" />

---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to