Deprecated: Function split() is deprecated in /var/www/mlabs/web/blog/pivot/pvlib.php on line 4750

Deprecated: Function split() is deprecated in /var/www/mlabs/web/blog/pivot/pvlib.php on line 4751

Notice: Undefined index: SCRIPT_URI in /var/www/mlabs/web/blog/pivot/pvlib.php on line 60

Deprecated: Function ereg_replace() is deprecated in /var/www/mlabs/web/blog/pivot/pvlib.php on line 2119

Notice: Undefined index: debug in /var/www/mlabs/web/blog/pivot/pv_core.php on line 72
Mindless Labs dev blog - Haxe & Google Flash Analytics

Haxe & Google Flash Analytics

I investigated how to use the recently relased google analytics flash tracking with Haxe. The solution is simple, and I prepared an out-of-the box demo pack.

Start downloading google_analytics_flash_haxe_demo.zip and read on for details (or see the included readme)

Instructions for compiling:

  1. unzip the package
  2. edit Main.hx and replace your google analytics code
  3. swfmill simple res.xml library.swf
  4. haxe build.hxml
  5. flashplayer_dbg test.swf (don't forget allowscriptaccess=always when embedding the swf on a website)

Details:

Happy Haxing!

Comments

Comment by [ron], (URL) on 09.04.16. 16:37
Unfortunately it seems that this technique cannot be used to track live events in a game for example, because each single analytics request is instantly sent, and results in a well noticable lag in the game.

Comment by Tarwin, () (URL) on 09.08.04. 09:36
Sweet! Thanks for that.

I did things a little differently.



Comment by [ron], (URL) on 09.08.04. 18:26
Nice! Having the Flash IDE helps in this case :)

Comment by Cristi Baluta, () (URL) on 09.12.13. 06:05
for me the additional 98k added to the file is a disaster, i’m trying to port only the basic functionality directly to haxe but it’s hard to understand what they have done there.

Comment by joint pains, () (URL) on 11.09.15. 11:44
thanks for the great post!

Comment by LV Bags, () (URL) on 11.10.08. 13:09
It is part of a flurry of activity over the weekend which will also see the French leader visit Berlin for talks with German Chancellor Angela Merkel.They will discuss how to help banks over-exposed to sovereign debt.The European Commission has urged member states to draft a bailout plan to restore confidence in banking.However, Germany and France, the eurozone’s dominant economic powers, have yet to agree on the way to proceed.On Friday, the international ratings agency Fitch downgraded the sovereign credit ratings of Italy and Spain, putting new pressure on two of the eurozone’s biggest economies.

Comment by coach purses, () (URL) on 11.10.29. 07:13
Coach is one of the most distinguished leather brand all over the world. You can find many wonderful cheap Coach Purses on our Coach Factory Stores

Comment by coach outlet store online, () (URL) on 11.10.29. 08:12
coach outlet store online has been voted by Hour Detroit magazine readers as the Best of Detroit in their 12th annual readers’poll. Coach Outlet Store is in part simply a response to consumer demand. Consumers accept the notion of the desirability of select consumer product brands and designer labels.

Comment by coach outlet, () (URL) on 11.10.29. 11:24
coach outlet has a zippered closure and buckles for extra security. Shiny brass hardware, rounded leather handle, and an interior pocket. It also includes a limited edition Hawaii luggage tag and lock. Here you can find the latest products in different kinds of coach outlet store online making best materials.They are leisure practical products in the new generations.

Comment by herve leger, () (URL) on 11.11.28. 07:21
Nice to be visiting your blog again Herve Leger, it has been months for me. Well this article that i’ve been waited for so long. I need this article to complete my assignment in the college, and it has same topic with your article Herve Leger Dresses. Thanks, great share.

Comment by evening dress, () (URL) on 11.11.29. 10:31
Right, I am fully agree with your post.This kind of evening dress is so perfect.Not only cheap but also beautiful.I like it so much and hope you will like it too!

Comment by uggs outlet, () (URL) on 12.01.02. 09:11
It’s good to see this information in your post, I was looking the same but there was not any proper resource, thanks now I have the link which I was looking for my research.

  
Remember personal info?

/ Textile
  (Register your username / Log in)

Notify:
Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.

About

Flash game development using HaXe and pals.

Archives

01 Nov - 30 Nov 2009
01 Oct - 31 Oct 2009
01 Sep - 30 Sep 2009
01 Jul - 31 Jul 2009
01 May - 31 May 2009
01 Apr - 30 Apr 2009
01 Mar - 31 Mar 2009
01 Feb - 28 Feb 2009
01 Jan - 31 Jan 2009
01 Dec - 31 Dec 2008
01 Nov - 30 Nov 2008
01 Oct - 31 Oct 2008
01 Sep - 30 Sep 2008
01 Aug - 31 Aug 2008
01 Sep - 30 Sep 2007

Calendar

Linkdump

Game design document - §

If you are about to create a new game, be sure to read this nice article along with its predecessors.

09.11.24. 13:29 | nine comments

VelociRapid game element preview - §

Click the banner to play a preview of prey fleeing, and also take a peek underneath to see the quadtree space partitioning (nodes do not collapse right now). WSAD to control the dino.

09.11.19. 23:18 | 55 comments

Gambit's response to recent virtual currency changes - §

An interesting read at the Gambit blog.

09.11.05. 10:19 | two comments

Dirty coding tricks of game developers - §

Read it at Gamasutra

09.11.03. 10:02 | comment!

Payment providers - §

Some alternative payment providers for running your own virtual curreny system:

09.07.13. 21:38 | two comments

ssh tunneling in linux - §

To forward the local port X to the local port Y of the remote machine:

ssh -L X:127.0.0.1:Y remote.machine -N

Usage example: Setup a local web proxy (like privoxy) on a remote university machine, and connect to it from home. This way you can access university resources with ease.

09.05.14. 10:28 | seven comments

Free flag images - §

http://www.33ff.com/flags/index.htm

09.04.08. 11:52 | comment!

Render text with ImageMagick - §

convert -font font.ttf -background none -geometry +0+0 -fill \#ffffff -pointsize 18 label:"`cat txt`" -set label '' out.png

09.04.02. 15:16 | three comments

Online Latex equation editor - §

Online latex is

09.03.11. 09:02 | comment!

Create swc from a tree of as3 files - §

V1 (thanks to Jarrad Hope!) compc -output my_swc.swc -include-sources .

V2 (the old and hacky :) cd tree_top; compc -source-path . -output my_swc.swc -include-classes `find . -regex .*as | awk '{gsub(/\.\//, "", $0); gsub(/\.as/, "", $0); print $0}'`

09.03.06. 09:58 | 19 comments

Delete first line from file - §

sed -i '1d' file.txt

09.02.18. 12:28 | comment!

Gentoo: check security holes - §

glsa-check -p $(glsa-check -t all)

09.02.04. 11:30 | four comments

Execution speedup with fifo - §

Speed up the execution of programs that generate massive unwanted log-files by sending those logs to null through a fifo: mkfifo logfile
cat logfile > /dev/null &
./myprogram -log logfile

09.01.19. 14:09 | three comments

ImageMagick PNG background and auto-crop - §

Set background to white and auto-crop with ImageMagick: for i in `ls *png`; do convert -flatten $i x.png; convert -trim x.png out_$i; done

09.01.12. 17:15 | six comments

Linux: split file on pattern - §

awk '/PATTERN/{i++}{print > "file.pdb."i}' file, found here

08.12.15. 17:46 | four comments

Replace in multiple files on Linux - §

perl -pi -w -e 's/search/replace/g;' *.php
Found here.

08.12.10. 10:42 | seven comments

XPath in Python - §

A nice summary about options for xpath with python here.

08.12.09. 18:41 | comment!

Christmas Icons - §

Free Chrismtas Icons!

08.12.08. 11:46 | comment!

PS print on WinXP - §

Print to PS on WinXP without any printers! Cool :)

08.12.04. 12:59 | comment!

Sorry, OpenOffice - §

OpenOffice is simply a no-go. Ill UI, missing features. Go for Latex or Crossover Office instead.

08.12.02. 14:31 | four comments

Last Referrers

Miscellany

Powered by Pivot - 1.40.7: 'Dreadwind' 
XML: RSS Feed 
XML: Atom Feed