drflash / gaforflash

Automatically exported from code.google.com/p/gaforflash
Apache License 2.0
1 stars 0 forks source link

Using analytics within a Flex app built under MDM Zinc (exe) fails #52

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Take a flex app that uses the analytics library and works on the web

2. Build that SWF as an MDM Zinc executable

3. Run it

What is the expected output? What do you see instead?

When I call GATracker.trackPageView("myPath") I should receive no error.
However I get an Error thrown "Error #1069: Property host not found on
String and there is no default value."

What version of the product are you using? On what operating system?

The latest SWC provided on this website, Flex 3.2 on FP 10, MDM Zinc
builder 3.0.12

Please provide any additional information below.

Original issue reported on code.google.com by woods524...@yahoo.com on 2 Jun 2009 at 5:59

GoogleCodeExporter commented 9 years ago
Here is a stack trace:

at
com.google.analytics.external::HTMLDOM/cacheProperties()[/buRRRn/projects/GAforF
lash/GA_AS3/build/tmp/com/google/analytics/external/HTMLDOM.as:90]
    at
com.google.analytics::GATracker/_trackerFactory()[/buRRRn/projects/GAforFlash/GA
_AS3/build/tmp/com/google/analytics/GATracker.as:194]
    at
com.google.analytics::GATracker/_factory()[/buRRRn/projects/GAforFlash/GA_AS3/bu
ild/tmp/com/google/analytics/GATracker.as:156]
    at
com.google.analytics::GATracker()[/buRRRn/projects/GAforFlash/GA_AS3/build/tmp/c
om/google/analytics/GATracker.as:124]

Original comment by woods524...@yahoo.com on 2 Jun 2009 at 6:16

GoogleCodeExporter commented 9 years ago
I think if you guys test that "ExternalInterface.objectID != null" in
HTMLDOM.isAvailable(), if NULL return "false", this should fix it

Original comment by woods524...@yahoo.com on 2 Jun 2009 at 7:11

GoogleCodeExporter commented 9 years ago
Here you go, this block of code will fix it for an MDM Zinc wrapped exe version 
of an
SWF. Place in the HTMLDOM.isAvailable() method

            if (available && ExternalInterface.objectID == null) {
                available = false;
            }

Original comment by woods524...@yahoo.com on 2 Jun 2009 at 7:27

GoogleCodeExporter commented 9 years ago
thanks for the input, for further infos you can also see
http://bugs.adobe.com/jira/browse/FP-383

Original comment by zwetan on 3 Jun 2009 at 8:17

GoogleCodeExporter commented 9 years ago
What do you meen with "Place in the HTMLDOM.isAvailable() method"
Where ? in .as of the apps

Original comment by neot...@gmail.com on 5 Jun 2011 at 4:28