[SWFObject] Using swfObject with named anchors

Nathan Meyers nmeyers at telkomsa.net
Thu May 4 07:30:38 PDT 2006


Sorry Geoff. I'm referring to the feature that was released with Flash  
MX for Flash 6 if I'm not mistaken. When publishing a file you have the  
option to choose which HTML template you want to use to generate the  
code for you. This is the code generated by the HTML template for Named  
Anchors. You will find the file anchors.html in the Flash directory.

<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/ 
swflash.cab#version=8,0,0,0" width="770" height="60" id="weather"  
align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="weather.swf" /><param name="quality"  
value="high" /><param name="bgcolor" value="#ffffff" /><embed  
src="weather.swf" quality="high" bgcolor="#ffffff" width="770"  
height="60" name="weather" align="middle" swLiveConnect="true"  
allowScriptAccess="sameDomain" type="application/x-shockwave-flash"  
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<!--bookmarks used in the movie-->
<a name="anchor1"></a>
<a name="anchor2"></a>
</body>
</html>

The anchors used are in the last 4 lines. This allows you to switch  
between keyframes in your movie using the browser buttons.
Any idea how to include this in swfObject?

Nathan Meyers @ The Orange Dog
The Orange Dog House | 32 Whittler's Way | Hout Bay, 7806 |  
T:+27[0]21 790 6092 | F:+27[0]21 791 4460

View our portfolio: http://www.orangedog.co.za/
Visit our Blog: http://www.orangedog.co.za/blog/
----
NEW in 2006
Hout Bay Online: http://www.houtbayonline.com
Powered by The Orange Dog


On May 4, 2006, at 4:16 PM, Geoff Stearns wrote:

> does this work normally in flash? or are you talking about some  
> javascript to control this?
>
>
>
> On May 4, 2006, at 8:50 AM, Nathan Meyers wrote:
>
>> Hi all
>> Is there a way to use the swfObject with keyframes named as anchors?  
>> I just want the back and forward buttons on the browser to work when  
>> going between frames on the main timeline.
>>
>> Any help would be appreciated.
>>
>> Thanks,
>> Nathan Meyers @ The Orange Dog
>> The Orange Dog House | 32 Whittler's Way | Hout Bay, 7806 |  
>> T:+27[0]21 790 6092 | F:+27[0]21 791 4460
>>
>> View our portfolio: http://www.orangedog.co.za/
>> Visit our Blog: http://www.orangedog.co.za/blog/
>> ----
>> NEW in 2006
>> Hout Bay Online: http://www.houtbayonline.com
>> Powered by The Orange Dog
>> _______________________________________________
>> SWFObject mailing list
>> SWFObject at lists.deconcept.com
>> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
> _______________________________________________
> SWFObject mailing list
> SWFObject at lists.deconcept.com
> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com




More information about the Swfobject mailing list