SWFAddress 2.4 and Flash AS2 Player 8

If you have trouble using deep-linking with SWFAddress 2.4 and AS2 (probably the same with AS3) have a good look at the new SWFAddressEvent class. It has an event INIT.

Under some circumstances SWFAddress.getValue() only returns “/” if you do not wait for that event to occur. Do something like that before you use getValue().

 
SWFAddress.addEventListener(SWFAddressEvent.INIT, Delegate.create(this, this.onSWFAddressInit));
 
function onSWFAddressInit():Void {
// here goes the code where you can read out SWFAddress.getValue() savely ...
}

Do not forget to import mx.utils.Delegate because it just dies silently if it is not imported correctly.

Dieser Beitrag wurde unter HowTo, Programming abgelegt und mit , , verschlagwortet. Setze ein Lesezeichen auf den Permalink.

3 Antworten auf SWFAddress 2.4 and Flash AS2 Player 8

  1. Wiyono sagt:

    I don’t Understand, Nothing!!!

  2. wiyono sagt:

    Hehehee..
    Sorry.. now i understand.. and few days was succes..
    Now i have problem.. but i don’t know what the problem, is that my browser or my computer… i try to open in html.. all swfaddress don’t work… sometimes “Adobe flash plyer einstellungen” i try to download original sample swfaddress and i preview is don’t work too…

    Eeyyy.. Thank you for your sharing and I’m sorry that make confused… (my English not good)

    Regard
    Wiyono
    Indonesia

Hinterlasse eine Antwort

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *

*

Du kannst folgende HTML-Tags benutzen: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">