Rockin'

Thanks

Glen

Geoff Stearns wrote:
a good way to do this would be to make a static class for your tracking stuff.

then you can do things like:

StatsTracker.trackPage(url);

from any class or timeline (assuming you import the class first, etc. etc.)

then you can use ExternalInterface to make the js call to your tracking function.



On Mar 8, 2007, at 5:31 PM, Glen Pike wrote:

Hi,

I am trying to wrap the getURL function in order to track outgoing links using Google analytics...

   e.g.

   function getURLTracked(url, window, method) {
       getURL(url, window);
       getURL("javascript:alert('"+ url+"')");
      //getURL("javascript:urchinTracker('/app/" + url +"');");
             }

I would like to create a global function that is available to AS2 classes and the timeline

I have tried to write it in an external file and #include this file in the constructor of my classes, but still don't get the function in scope at compile time.

Apart from writing a method in my class, which I would have to repeat for a few different classes, is there a way of making this function available to the timeline and the AS2 classes in one foul swoop?

I have a core application and lots of loaded SWF's with nasty timeline buttons to track...
     Thanks

   Glen

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to