Difference between revisions of "SWFAddress"
From Wikicliki
Line 8: | Line 8: | ||
<pre>SWFAddress.onChange = function() { | <pre>SWFAddress.onChange = function() { | ||
// Your code goes here. | // Your code goes here. | ||
+ | |||
+ | |||
}</pre> | }</pre> | ||
Line 14: | Line 16: | ||
SWFAddress.setValue('/portfolio/'); | SWFAddress.setValue('/portfolio/'); | ||
}</pre> | }</pre> | ||
+ | |||
+ | |||
+ | your html links in your text boxes can be like this: | ||
+ | <pre><a href="asfunction:SWFAddress.setValue,/portfolio/">Go to Portfolio</a></pre> | ||
== See Also == | == See Also == |
Revision as of 09:49, 20 June 2008
SWFAddress allows deep-linking. Should be used with SWFObject at the same time.
insert this after swfobject:
<script type="text/javascript" src="swfobject/swfobject.js"></script> <script type="text/javascript" src="swfaddress/swfaddress.js"></script>
write your navigational logic:
SWFAddress.onChange = function() { // Your code goes here. }
set value on buttons which lead to their own links:
this.onRelease = function() { SWFAddress.setValue('/portfolio/'); }
your html links in your text boxes can be like this:
<a href="asfunction:SWFAddress.setValue,/portfolio/">Go to Portfolio</a>
See Also
- SWFObject
- Actionscript Sandbox
- SWFAddress, SWFObject, and Flash - someone tries to explain how to use it in AS3
- Adobe Developer Center on Deep Linking methods - another method offered for Deeplinking using the Hash
- SWFAddress Website