Posted By

necnova on 09/18/10


Tagged

textmate swfaddress deeplink


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

davidino1978
tspitzr
mitien


swf address


 / Published in: ActionScript 3
 

How to use SWFAddress within AS3

  1. import com.asual.swfaddress.*;
  2.  
  3. SWFAddress.addEventListener(SWFAddressEvent.CHANGE, onChange);
  4.  
  5. private function onChange(e:SWFAddressEvent):void
  6. {
  7.  
  8. if(e.value != "/")
  9. SWFAddress.setTitle("My Title - " + e.value.substring(1));
  10.  
  11. switch(e.value)
  12. {
  13. case "/Biography":
  14. //Do Something here
  15. break;
  16. }
  17.  
  18. }
  19.  
  20. SWFAddress.setValue("/Biography");

Report this snippet  

You need to login to post a comment.