[Flashcoders] [AS3] optional parameters - sans defaults for Boolean/Number/int

2008-02-29 Thread Jesse Graupmann
I'm trying to create typed functions using optional parameters sans the
defaults. I'm finding String to be the only thing that allows for null to be
passed. Is there a way to extend that functionality to other types like;
Numbers, Booleans, and/or ints?

NOTE : I am aware of ...rest and passing an object like what's used in
Tweener but that hides too much.


Thanks in advance,
Jesse



//  EXPECTED


function test ( a:String = null ) 
{
trace( test:  + ( a == null ) );
}

test ( test ); // false
test ( ); // true --- GOOD




//  UNFORTUNATE


function test2 ( a:Boolean = false ) 
{
trace( a:  + ( a == null ) );
}
test2 ( true ); // false
test2 ( false ); // false
test2 ( ); // false --- BAD



//  IDEAL


function test4 ( b:Boolean = null )
{
trace( b==null );
}

function test5 ( n:Number = null )
{
trace( isNaN(n) );
}

function test6 ( i:int = null ) 
{
trace( isNaN(i) );
}

test4 ( ); // true --- DESIRED
test5 ( ); // true --- DESIRED
test6 ( ); // true --- DESIRED



//  CURRENT WORK AROUND -- ONLY WORKS WHEN NEEDING POSITIVES


function test7 ( w:Number = -1, h:Number = -1 ) 
{
trace( (w  0 || h  0) );
}

test7 (10, 10); // false
test7 (10); // true
test7 (); // true

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] [AS3] optional parameters - sans defaults for Boolean/Number/int

2008-02-29 Thread Glen Pike

Hi,

   You can have * to specify any parameter:

   function myFunc(param1:Boolean, param2:*);

Matthew Houliston wrote:

don't you mean

function test2 ( a:Boolean = false )
{
trace( a:  + ( a == true ) );
}

?


A Boolean is never null.

var b:Boolean;
trace(b);



On 29/02/2008 10:42, Jesse Graupmann wrote:

I'm trying to create typed functions using optional parameters sans the
defaults. I'm finding String to be the only thing that allows for 
null to be

passed. Is there a way to extend that functionality to other types like;
Numbers, Booleans, and/or ints?

NOTE : I am aware of ...rest and passing an object like what's used in
Tweener but that hides too much.


Thanks in advance,
Jesse



//EXPECTED


function test ( a:String = null ) {
trace( test:  + ( a == null ) );
}

test ( test ); // false

test ( ); // true --- GOOD




//UNFORTUNATE

   
function test2 ( a:Boolean = false ) {

trace( a:  + ( a == null ) );
}
test2 ( true ); // false
test2 ( false ); // false
test2 ( ); // false --- BAD



//IDEAL


function test4 ( b:Boolean = null )
{
trace( b==null );
}

function test5 ( n:Number = null )

{
trace( isNaN(n) );
}

function test6 ( i:int = null ) {

trace( isNaN(i) );
}

test4 ( ); // true --- DESIRED
test5 ( ); // true --- DESIRED
test6 ( ); // true --- DESIRED



//CURRENT WORK AROUND -- ONLY WORKS WHEN NEEDING POSITIVES


function test7 ( w:Number = -1, h:Number = -1 ) {
trace( (w  0 || h  0) );
}

test7 (10, 10); // false
test7 (10); // true
test7 (); // true

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Glen Pike
01736 759321
www.glenpike.co.uk http://www.glenpike.co.uk
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] duplicate loaded image + convert object to image

2008-02-29 Thread Kaloudis Stathis
Hi all,

I'm trying to figure out how to duplicate a clip with an externally
loaded image in it.

Function duplicateMovieClip does not work for movieclips 
with content loaded using MovieClip.loadMovie() or the MovieClipLoader
and I'm stucked and confused on how to proceed.


Also, is it possible to create a multi-dimentional array with loaded
images (inside movieclips) in it
and then retrieve these images?

Thanks,


Stathis


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] bitMapData - function optimization

2008-02-29 Thread Karim Beyrouti
Yeh - saw that a while ago, Hans got this in answer to a question I posted
here a while ago. However, I just managed to get it working, and yeh - it's
really fast.

Thanks for the reminder...


- karim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hans Wichman
Sent: 28 February 2008 19:16
To: Flash Coders List
Subject: Re: [Flashcoders] bitMapData - function optimization

http://objectpainters.com/blog/2007/11/30/inverting-the-alpha-of-a-bitmap-im
age/
of
any help?



On Thu, Feb 28, 2008 at 6:56 PM, Steven Sacks [EMAIL PROTECTED]
wrote:

 maybe...

 private function createInvertedMask()
 {
var r:int = mask_bitmap.width;
var c:int = mask_bitmap.height;
var v:int;

while (--r -(-1))
{
while (--c -(-1))
{
v = mask_bitmap.getPixel32(r, c);
mask_bitmap.setPixel32(r, c, v ? 0x : 0xFF00);
 }
}
 }
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


-- 
No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.21.2/1304 - Release Date: 29/02/2008
08:18


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] duplicate loaded image + convert object to image

2008-02-29 Thread Ian Thomas
Stathis,
   No, in AS2 you can't duplicate loaded content using
duplicateMovieClip. Your choices are:
 - to load each image again, every time you need it (isn't as slow/bad
as it sounds - the cache speeds it up dramatically)
 - to duplicate the image by storing/copying loaded images's
BitmapData - this is your best bet, if you're using Flash Player 8+

Hope that helps,
   Ian

On Fri, Feb 29, 2008 at 11:06 AM, Kaloudis Stathis
[EMAIL PROTECTED] wrote:
 Hi all,

  I'm trying to figure out how to duplicate a clip with an externally
  loaded image in it.

  Function duplicateMovieClip does not work for movieclips
  with content loaded using MovieClip.loadMovie() or the MovieClipLoader
  and I'm stucked and confused on how to proceed.


  Also, is it possible to create a multi-dimentional array with loaded
  images (inside movieclips) in it
  and then retrieve these images?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] duplicate loaded image + convert object to image

2008-02-29 Thread Kaloudis Stathis
I hadn't thought using BitmapData, I 'll give it a try.
As for loading images twice, if this is the only way then I'll have to
walk it!

Many thanks Ian!

 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian
Thomas
Sent: Friday, February 29, 2008 1:23 PM
To: Flash Coders List
Subject: Re: [Flashcoders] duplicate loaded image + convert object to
image

Stathis,
   No, in AS2 you can't duplicate loaded content using
duplicateMovieClip. Your choices are:
 - to load each image again, every time you need it (isn't as slow/bad
as it sounds - the cache speeds it up dramatically)
 - to duplicate the image by storing/copying loaded images's
BitmapData - this is your best bet, if you're using Flash Player 8+

Hope that helps,
   Ian

On Fri, Feb 29, 2008 at 11:06 AM, Kaloudis Stathis
[EMAIL PROTECTED] wrote:
 Hi all,

  I'm trying to figure out how to duplicate a clip with an externally
  loaded image in it.

  Function duplicateMovieClip does not work for movieclips
  with content loaded using MovieClip.loadMovie() or the
MovieClipLoader
  and I'm stucked and confused on how to proceed.


  Also, is it possible to create a multi-dimentional array with loaded
  images (inside movieclips) in it
  and then retrieve these images?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] bitMapData - function optimization

2008-02-29 Thread Hans Wichman
ah yeah lol i just found the old thread:
http://readlist.com/lists/chattyfig.figleaf.com/flashcoders/5/27731.html


On Fri, Feb 29, 2008 at 12:15 PM, Karim Beyrouti [EMAIL PROTECTED] wrote:

 Yeh - saw that a while ago, Hans got this in answer to a question I posted
 here a while ago. However, I just managed to get it working, and yeh -
 it's
 really fast.

 Thanks for the reminder...


 - karim

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Hans
 Wichman
 Sent: 28 February 2008 19:16
 To: Flash Coders List
 Subject: Re: [Flashcoders] bitMapData - function optimization


 http://objectpainters.com/blog/2007/11/30/inverting-the-alpha-of-a-bitmap-im
 age/
 of
 any help?



 On Thu, Feb 28, 2008 at 6:56 PM, Steven Sacks [EMAIL PROTECTED]
 wrote:

  maybe...
 
  private function createInvertedMask()
  {
 var r:int = mask_bitmap.width;
 var c:int = mask_bitmap.height;
 var v:int;
 
 while (--r -(-1))
 {
 while (--c -(-1))
 {
 v = mask_bitmap.getPixel32(r, c);
 mask_bitmap.setPixel32(r, c, v ? 0x : 0xFF00);
  }
 }
  }
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


 --
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.5.516 / Virus Database: 269.21.2/1304 - Release Date:
 29/02/2008
 08:18


 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] duplicate loaded image + convert object to image

2008-02-29 Thread Michael Ypes
Stathis,

Create a class that deals with the loading of images. Once that image has
been loaded you can create a bitmapdata of that image and then distribute it
as many times as you want. I have used this method several times and have
built classes to deal with it.

If you need some class files then email me offlist and I can send them
through.

They are built in flex but can easily be converted to flash as3 if need be. 

This technique also does not load the images twice as it detects if that
image has already been loaded or not.

Cheers

Michael

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kaloudis
Stathis
Sent: 29 February 2008 12:45
To: Flash Coders List
Subject: RE: [Flashcoders] duplicate loaded image + convert object to image

I hadn't thought using BitmapData, I 'll give it a try.
As for loading images twice, if this is the only way then I'll have to
walk it!

Many thanks Ian!

 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian
Thomas
Sent: Friday, February 29, 2008 1:23 PM
To: Flash Coders List
Subject: Re: [Flashcoders] duplicate loaded image + convert object to
image

Stathis,
   No, in AS2 you can't duplicate loaded content using
duplicateMovieClip. Your choices are:
 - to load each image again, every time you need it (isn't as slow/bad
as it sounds - the cache speeds it up dramatically)
 - to duplicate the image by storing/copying loaded images's
BitmapData - this is your best bet, if you're using Flash Player 8+

Hope that helps,
   Ian

On Fri, Feb 29, 2008 at 11:06 AM, Kaloudis Stathis
[EMAIL PROTECTED] wrote:
 Hi all,

  I'm trying to figure out how to duplicate a clip with an externally
  loaded image in it.

  Function duplicateMovieClip does not work for movieclips
  with content loaded using MovieClip.loadMovie() or the
MovieClipLoader
  and I'm stucked and confused on how to proceed.


  Also, is it possible to create a multi-dimentional array with loaded
  images (inside movieclips) in it
  and then retrieve these images?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] [AS3] optional parameters - sansdefaults for Boolean/Number/int

2008-02-29 Thread Jesse Graupmann
Ha! That works just fine.

Thanks for reminding me Glen.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Glen Pike
Sent: Friday, February 29, 2008 2:49 AM
To: Flash Coders List
Subject: Re: [Flashcoders] [AS3] optional parameters - sansdefaults for
Boolean/Number/int

Hi,

You can have * to specify any parameter:

function myFunc(param1:Boolean, param2:*);

Matthew Houliston wrote:
 don't you mean

 function test2 ( a:Boolean = false )
 {
 trace( a:  + ( a == true ) );
 }

 ?


 A Boolean is never null.

 var b:Boolean;
 trace(b);

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] External Interface + Google Analytics + IE7

2008-02-29 Thread Glen Pike

Hi,

   Does anyone have any ideas about this?

   Glen

Glen Pike wrote:

Hi,

   I have encountered a problem with an ExternalInterface.call causing 
IE7 to throw a JS error.


   I get an error message saying:
   Line: 1
   Char 14:
   Error: Expected ';'
   Code: 0;
   URL: http://www.dijitl.co.uk/beta/
 So, my guessing is that somewhere the ExternalInterface call is 
not adding a semi-colon, but that IE 7 maybe getting it's knickers in 
a twist.  Either way, it's annoying and my tracking is not working.  
Can anyone shed light on this - I am using 
so.addParam(allowScriptAccess, always); with SWFObject too.

 Ta

   Glen

   AS code is like this:
 var page:String = evt.type.substr(5);
 if (ExternalInterface.available) {
   ExternalInterface.call (trackTesting, page);
   }

   Have also tried calling the pageTracker object directly - 
ExternalInterface.call(pageTracker._trackPageview, page); - but no joy.


   JS Code is like this:

   script type=text/javascript
   // ![CDATA[
   var pageTracker = _gat._getTracker(UA-DELETED);
   pageTracker._initData();
   pageTracker._trackPageview();
 function trackTesting(page) {
   alert(before  + page);
   pageTracker._trackPageview(page);
   alert(after);
   }
 // ]]
   /script


--

Glen Pike
01736 759321
www.glenpike.co.uk http://www.glenpike.co.uk
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] loadmovie

2008-02-29 Thread Bob Wohl
Use loadClip and wait for the onLoadInit to fire, then resize.



http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004file=1580.html



hth.

B

On Fri, Feb 29, 2008 at 7:45 AM, Lehr, Theodore M (N-SGIS) 
[EMAIL PROTECTED] wrote:

 I am loading a movie via:

 holder_lesson.loadMovie(lessons/+_root.wlesson+.swf);

 the problem is the movie is maxing to the size of the swf and not the
 size of the clip it is being loaded into... it takes up the whole swf...
 I am even trying to resize it:

 holder_lesson._width = 967;
 holder_lesson._height = 572;
 holder_lesson._x = 3;
 holder_lesson._y = 23;

 what's up?
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: Flashcoders Digest, Vol 5, Issue 32

2008-02-29 Thread Chris Wilcox

--

Bounce Digital Ltd
7 Greenland Street
London
NW1 0ND

+44 (0)20 7209 3620

-Original Message-
From: [EMAIL PROTECTED]

Date: Sat, 23 Feb 2008 12:04:12 
To:flashcoders@chattyfig.figleaf.com
Subject: Flashcoders Digest, Vol 5, Issue 32


Send Flashcoders mailing list submissions to
flashcoders@chattyfig.figleaf.com

To subscribe or unsubscribe via the World Wide Web, visit
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]

You can reach the person managing the list at
[EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than Re: Contents of Flashcoders digest...


Today's Topics:

   1. Re: re: Looking for Expanding menu along a curved path
  (Pedro Kostelec)
   2. Re: re: Looking for Expanding menu along a curved path
  (Pedro Kostelec)


--

Message: 1
Date: Sat, 23 Feb 2008 16:21:21 +0100
From: Pedro Kostelec [EMAIL PROTECTED]
Subject: Re: [Flashcoders] re: Looking for Expanding menu along a
curved path
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Message-ID:
[EMAIL PROTECTED]
Content-Type: text/plain; charset=UTF-8

Isn't there a way to get the source code?

On Fri, Feb 22, 2008 at 7:16 PM, Norman Cousineau [EMAIL PROTECTED]
wrote:


 Very cool. Worth a look for everybody.
 Requires Flash Player 9.

 http://flash-ripper.com/tests/bezier.ru/demo/test.swf


  --  Message: 18 Date: Fri, 22 Feb 2008
 13:09:54 +0300 From: Ivan Dembicki [EMAIL PROTECTED] Subject:
 Re: [Flashcoders] Looking for Expaning menu along a curved path To: Flash
 Coders List flashcoders@chattyfig.figleaf.com Message-ID: 
 [EMAIL PROTECTED]
 Content-Type: text/plain; charset=UTF-8  Hello Norman,  You can see
 example of moving point along curved path here:
 http://flash-ripper.com/tests/bezier.ru/demo/test.swf (6 and 7 example)
  Sourcecode here:
 http://code.google.com/p/bezier/source/checkout  I hope it can help
 you.  --  iv http://www.bezier.ru http://bezier.googlecode.com  
 -- 
 ___ Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders   End of
 Flashcoders Digest, Vol 5, Issue 30
 **
 _

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
Pedro D.K.


--

Message: 2
Date: Sat, 23 Feb 2008 16:31:55 +0100
From: Pedro Kostelec [EMAIL PROTECTED]
Subject: Re: [Flashcoders] re: Looking for Expanding menu along a
curved path
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Message-ID:
[EMAIL PROTECTED]
Content-Type: text/plain; charset=UTF-8

I like it. But in exemple 7, is there no way to limit the lenght of the
curve? If you drag one pont quite fast the length of the curse is huge, how
could i limit it, i.e make the mx lenght of the curve 700 pixels or
something like that.

On Sat, Feb 23, 2008 at 4:21 PM, Pedro Kostelec [EMAIL PROTECTED] wrote:

 Isn't there a way to get the source code?

 On Fri, Feb 22, 2008 at 7:16 PM, Norman Cousineau 
 [EMAIL PROTECTED] wrote:

 
  Very cool. Worth a look for everybody.
  Requires Flash Player 9.
 
  http://flash-ripper.com/tests/bezier.ru/demo/test.swf
 
 
   --  Message: 18 Date: Fri, 22 Feb 2008
  13:09:54 +0300 From: Ivan Dembicki [EMAIL PROTECTED]
  Subject: Re: [Flashcoders] Looking for Expaning menu along a curved path
  To: Flash Coders List flashcoders@chattyfig.figleaf.com
  Message-ID: 
  [EMAIL PROTECTED]
  Content-Type: text/plain; charset=UTF-8  Hello Norman,  You can see
  example of moving point along curved path here:
  http://flash-ripper.com/tests/bezier.ru/demo/test.swf (6 and 7
  example)  Sourcecode here:
  http://code.google.com/p/bezier/source/checkout  I hope it can help
  you.  --  iv http://www.bezier.ru http://bezier.googlecode.com  
  -- 
  ___ Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders   End of
  Flashcoders Digest, Vol 5, Issue 30
  **
  _
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 Pedro D.K.




-- 
Pedro D.K.


--

___
Flashcoders mailing list

Re: [Flashcoders] Border color change of UILoader

2008-02-29 Thread anuj sharma
Hi Kenneth
Thanks for reply. When i am trying to use ocusRectSkin it is giving me
error.
Can yo please provide some sample code which helps me to implement it.
Appreciate ur help
Anuj

On Fri, Feb 29, 2008 at 2:33 AM, Kenneth Kawamoto [EMAIL PROTECTED]
wrote:

 Can you set the focusRectSkin style?

 --
 Kenneth Kawamoto
 http://www.materiaprima.co.uk/

 anuj sharma wrote:
  Hi
  Does anyone now how to change the border color of the UILoader component
  when user clicks on that. I have put UILoader in the sprite container
 and i
  need to implement that if user selects that UILoader its border color
 will
  be changed (to red may be).
  Please help me out . Here's the my dummy code for that. Basically what I
  need is the border of  UILoader to be shown as soon as mousedown event
 is
  generated and the border to hide as soon as mouseup event is generated.
  Any help or any new idea will be highly appreciated.
  Thanks
  Anuj
 
  /CODE**
  var container:Sprite=new Sprite();
  var myUILoader:UILoader = new UILoader();
  myUILoader.source = XYZ.swf;
  myUILoader.load();
  container.addChild(myUILoader);
   addChild(container);
 
  myUILoader.addEventListener(MouseEvent.MOUSE_DOWN,dragUILoader);
  myUILoader.addEventListener(MouseEvent.MOUSE_UP,dropUILoader);
  myUILoader.addEventListener(MouseEvent.CLICK, moveSelectedVideoOnFront);
 
  function moveSelectedVideoOnFront(event:MouseEvent):void
  {
  //Brings selected UILoader on top
  }
  function dragUILoader(e:MouseEvent):void
  {
  //Allows dragging of the UILoader
  }
  function dropUILoader(e:MouseEvent):void
  {
  //Allows dropping of the UILoader
  }
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Extending Flash [AS3]

2008-02-29 Thread Stuart (FunkDaWeb)
Hi i need to convert text to a shape via actionscript i have come accross this 
while on my search...
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=3895.html

Unfortunaly i get an errror when trying to use it 1180: Call to a possibly 
undefined method getDocumentDOM.

Can anyone give me any idea how to go about using it?

SM
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Extending Flash [AS3]

2008-02-29 Thread Steven Sacks

It's not Actionscript, it's JSFL.


Stuart (FunkDaWeb) wrote:

Hi i need to convert text to a shape via actionscript i have come accross this 
while on my search...
http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=3895.html

Unfortunaly i get an errror when trying to use it 1180: Call to a possibly 
undefined method getDocumentDOM.

Can anyone give me any idea how to go about using it?

SM
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] loadmovie

2008-02-29 Thread Marc Hoffman

Theodore,

How was holder_lesson created? If it has been scaled up from some 
other mc, the loaded movie will also be scaled up. Best to use a 
non-scaled clip as a holder. AS2 example:


this.createEmptyMovieClip(holder_lesson,this.getNextHighestDepth());
holder_lesson._x = 10; // or wherever you want to place it
holder_lesson._y= 10; // or wherever you want to place it
holder_lesson.loadMovie(lessons/ + _root.wlesson + .swf);

As Bob mentioned, you can also resize after loading but you must wait 
until the onLoadInit event has fired. In AS2 you'd use 
MovieClipLoader class to handle this.


Marc

At 06:45 AM 2/29/2008, you wrote:

I am loading a movie via:

holder_lesson.loadMovie(lessons/+_root.wlesson+.swf);

the problem is the movie is maxing to the size of the swf and not the
size of the clip it is being loaded into... it takes up the whole swf...
I am even trying to resize it:

holder_lesson._width = 967;
holder_lesson._height = 572;
holder_lesson._x = 3;
holder_lesson._y = 23;

what's up?


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Extending Flash [AS3]

2008-02-29 Thread Stuart Moir [FunkDaWeb]

Thanks for that i wasnt aware! lol

I know its JSFL but i will be triggering it using AS3 hence the question! 
Any help would be great!


- Original Message - 
From: Steven Sacks [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Friday, February 29, 2008 6:21 PM
Subject: Re: [Flashcoders] Extending Flash [AS3]



It's not Actionscript, it's JSFL.


Stuart (FunkDaWeb) wrote:
Hi i need to convert text to a shape via actionscript i have come accross 
this while on my search...

http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=3895.html

Unfortunaly i get an errror when trying to use it 1180: Call to a 
possibly undefined method getDocumentDOM.


Can anyone give me any idea how to go about using it?

SM
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] loadmovie

2008-02-29 Thread jonathan howe
And if you are loading it into a clip that you've set _xscale + _yscale on,
the movie replaces those properties when it's loaded. loadMovie essentially
replaces the movie it's called from, wiping its properties.

On Fri, Feb 29, 2008 at 1:28 PM, Marc Hoffman [EMAIL PROTECTED]
wrote:

 Theodore,

 How was holder_lesson created? If it has been scaled up from some
 other mc, the loaded movie will also be scaled up. Best to use a
 non-scaled clip as a holder. AS2 example:

 this.createEmptyMovieClip(holder_lesson,this.getNextHighestDepth());
 holder_lesson._x = 10; // or wherever you want to place it
 holder_lesson._y= 10; // or wherever you want to place it
 holder_lesson.loadMovie(lessons/ + _root.wlesson + .swf);

 As Bob mentioned, you can also resize after loading but you must wait
 until the onLoadInit event has fired. In AS2 you'd use
 MovieClipLoader class to handle this.

 Marc

 At 06:45 AM 2/29/2008, you wrote:
 I am loading a movie via:
 
 holder_lesson.loadMovie(lessons/+_root.wlesson+.swf);
 
 the problem is the movie is maxing to the size of the swf and not the
 size of the clip it is being loaded into... it takes up the whole swf...
 I am even trying to resize it:
 
 holder_lesson._width = 967;
 holder_lesson._height = 572;
 holder_lesson._x = 3;
 holder_lesson._y = 23;
 
 what's up?

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
-jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] loadmovie

2008-02-29 Thread jonathan howe
Yes, my apologies.

I guess I was mixing up dynamic properties with the standard properties.

Dynamic properties do get wiped, but standard ones are preserved, as Marc
states.
loader2.idiot = jonathan;
loader2.onRelease = function(){
this.loadMovie(circle.swf);
}

// then once it is loaded
trace(loader2.idiot); // traces undefined, (which is clearly not true. we
know exactly who the idiot is, yes?)




On Fri, Feb 29, 2008 at 3:22 PM, Marc Hoffman [EMAIL PROTECTED]
wrote:

 Jonathan,

 Sorry, but as far as AS2, you're wrong. A loaded movie inherits the
 properties of the clip it's loaded into. Test it yourself. Create
 circle.swf, a movie of a round circle. Create a base movie with two
 loaders (loader1 and loader2)  based on a square mc. Code it like this:


 loader2._xscale = 50;
 loader1.onRelease = function(){
 this.loadMovie(circle.swf);
 }
 loader2.onRelease = function(){
 this.loadMovie(circle.swf);
 }


 Test the base movie. loader1 loads the circle as a circle. loader2
 loads it as an elipse half as wide as it is high.

 Marc

 At 11:19 AM 2/29/2008, you wrote:
 And if you are loading it into a clip that you've set _xscale + _yscale
 on,
 the movie replaces those properties when it's loaded. loadMovie
 essentially
 replaces the movie it's called from, wiping its properties.
 
 On Fri, Feb 29, 2008 at 1:28 PM, Marc Hoffman [EMAIL PROTECTED]
 wrote:
 
   Theodore,
  
   How was holder_lesson created? If it has been scaled up from some
   other mc, the loaded movie will also be scaled up. Best to use a
   non-scaled clip as a holder. AS2 example:
  
   this.createEmptyMovieClip(holder_lesson,this.getNextHighestDepth());
   holder_lesson._x = 10; // or wherever you want to place it
   holder_lesson._y= 10; // or wherever you want to place it
   holder_lesson.loadMovie(lessons/ + _root.wlesson + .swf);
  
   As Bob mentioned, you can also resize after loading but you must wait
   until the onLoadInit event has fired. In AS2 you'd use
   MovieClipLoader class to handle this.
  
   Marc
  
   At 06:45 AM 2/29/2008, you wrote:
   I am loading a movie via:
   
   holder_lesson.loadMovie(lessons/+_root.wlesson+.swf);
   
   the problem is the movie is maxing to the size of the swf and not the
   size of the clip it is being loaded into... it takes up the whole
 swf...
   I am even trying to resize it:
   
   holder_lesson._width = 967;
   holder_lesson._height = 572;
   holder_lesson._x = 3;
   holder_lesson._y = 23;
   
   what's up?
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
 
 
 
 --
 -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
-jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Border color change of UILoader

2008-02-29 Thread Kenneth Kawamoto

Scrap focusRectSkin :) You can just add a border Sprite to the UILoader
and toggle its alpha on mouse up/down.

A quick example:

public class Main extends Sprite {

public function Main():void {   
var ldr:UILoader = new UILoader();
with(ldr){
buttonMode = true;
mouseChildren = false;
}

ldr.addEventListener(MouseEvent.MOUSE_DOWN, onLdrMouseDown);
ldr.addEventListener(MouseEvent.MOUSE_UP, onLdrMouseUp);

ldr.load(new URLRequest(sky.jpg));

var ldrBdr:Sprite = new Sprite();
with(ldrBdr){
name = border
alpha = 0;
}
with(ldrBdr.graphics){
lineStyle(1, 0xff);
drawRect(0, 0, ldr.width, ldr.height);
}
ldr.addChild(ldrBdr);

addChild(ldr);
}

private function onLdrMouseDown(e:MouseEvent):void {
e.target.getChildByName(border).alpha = 1;
}

private function onLdrMouseUp(e:MouseEvent):void {
e.target.getChildByName(border).alpha = 0;
}
}


Kenneth Kawamoto
http://www.materiaprima.co.uk/

anuj sharma wrote:

Hi Kenneth
Thanks for reply. When i am trying to use ocusRectSkin it is giving me 
error.

Can yo please provide some sample code which helps me to implement it.
Appreciate ur help
Anuj

On Fri, Feb 29, 2008 at 2:33 AM, Kenneth Kawamoto 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:


Can you set the focusRectSkin style?

--
Kenneth Kawamoto
http://www.materiaprima.co.uk/

anuj sharma wrote:
  Hi
  Does anyone now how to change the border color of the UILoader
component
  when user clicks on that. I have put UILoader in the sprite
container and i
  need to implement that if user selects that UILoader its border
color will
  be changed (to red may be).
  Please help me out . Here's the my dummy code for that. Basically
what I
  need is the border of  UILoader to be shown as soon as mousedown
event is
  generated and the border to hide as soon as mouseup event is
generated.
  Any help or any new idea will be highly appreciated.
  Thanks
  Anuj
 
  /CODE**
  var container:Sprite=new Sprite();
  var myUILoader:UILoader = new UILoader();
  myUILoader.source = XYZ.swf;
  myUILoader.load();
  container.addChild(myUILoader);
   addChild(container);
 
  myUILoader.addEventListener(MouseEvent.MOUSE_DOWN,dragUILoader);
  myUILoader.addEventListener(MouseEvent.MOUSE_UP,dropUILoader);
  myUILoader.addEventListener(MouseEvent.CLICK,
moveSelectedVideoOnFront);
 
  function moveSelectedVideoOnFront(event:MouseEvent):void
  {
  //Brings selected UILoader on top
  }
  function dragUILoader(e:MouseEvent):void
  {
  //Allows dragging of the UILoader
  }
  function dropUILoader(e:MouseEvent):void
  {
  //Allows dropping of the UILoader
  }



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] loadmovie

2008-02-29 Thread Lehr, Theodore M (N-SGIS)
Thanks - worked perfectly

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bob Wohl
Sent: Friday, February 29, 2008 10:21 AM
To: Flash Coders List
Subject: Re: [Flashcoders] loadmovie

Use loadClip and wait for the onLoadInit to fire, then resize.



http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/ht
ml/wwhelp.htm?context=Flash_MX_2004file=1580.html



hth.

B

On Fri, Feb 29, 2008 at 7:45 AM, Lehr, Theodore M (N-SGIS) 
[EMAIL PROTECTED] wrote:

 I am loading a movie via:

 holder_lesson.loadMovie(lessons/+_root.wlesson+.swf);

 the problem is the movie is maxing to the size of the swf and not the
 size of the clip it is being loaded into... it takes up the whole
swf...
 I am even trying to resize it:

 holder_lesson._width = 967;
 holder_lesson._height = 572;
 holder_lesson._x = 3;
 holder_lesson._y = 23;

 what's up?
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] loadmovie

2008-02-29 Thread Marc Hoffman
Well-put, Jonathan.  Thanks for a useful clarification -- wish all 
idiots were as clever as you!

-Marc

At 12:59 PM 2/29/2008, you wrote:

Yes, my apologies.

I guess I was mixing up dynamic properties with the standard properties.

Dynamic properties do get wiped, but standard ones are preserved, as Marc
states.
loader2.idiot = jonathan;
loader2.onRelease = function(){
this.loadMovie(circle.swf);
}

// then once it is loaded
trace(loader2.idiot); // traces undefined, (which is clearly not true. we
know exactly who the idiot is, yes?)




On Fri, Feb 29, 2008 at 3:22 PM, Marc Hoffman [EMAIL PROTECTED]
wrote:

 Jonathan,

 Sorry, but as far as AS2, you're wrong. A loaded movie inherits the
 properties of the clip it's loaded into. Test it yourself. Create
 circle.swf, a movie of a round circle. Create a base movie with two
 loaders (loader1 and loader2)  based on a square mc. Code it like this:


 loader2._xscale = 50;
 loader1.onRelease = function(){
 this.loadMovie(circle.swf);
 }
 loader2.onRelease = function(){
 this.loadMovie(circle.swf);
 }


 Test the base movie. loader1 loads the circle as a circle. loader2
 loads it as an elipse half as wide as it is high.

 Marc

 At 11:19 AM 2/29/2008, you wrote:
 And if you are loading it into a clip that you've set _xscale + _yscale
 on,
 the movie replaces those properties when it's loaded. loadMovie
 essentially
 replaces the movie it's called from, wiping its properties.
 
 On Fri, Feb 29, 2008 at 1:28 PM, Marc Hoffman [EMAIL PROTECTED]
 wrote:
 
   Theodore,
  
   How was holder_lesson created? If it has been scaled up from some
   other mc, the loaded movie will also be scaled up. Best to use a
   non-scaled clip as a holder. AS2 example:
  
   this.createEmptyMovieClip(holder_lesson,this.getNextHighestDepth());
   holder_lesson._x = 10; // or wherever you want to place it
   holder_lesson._y= 10; // or wherever you want to place it
   holder_lesson.loadMovie(lessons/ + _root.wlesson + .swf);
  
   As Bob mentioned, you can also resize after loading but you must wait
   until the onLoadInit event has fired. In AS2 you'd use
   MovieClipLoader class to handle this.
  
   Marc
  
   At 06:45 AM 2/29/2008, you wrote:
   I am loading a movie via:
   
   holder_lesson.loadMovie(lessons/+_root.wlesson+.swf);
   
   the problem is the movie is maxing to the size of the swf and not the
   size of the clip it is being loaded into... it takes up the whole
 swf...
   I am even trying to resize it:
   
   holder_lesson._width = 967;
   holder_lesson._height = 572;
   holder_lesson._x = 3;
   holder_lesson._y = 23;
   
   what's up?
  
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
 
 
 
 --
 -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--
-jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] External Interface + Google Analytics + IE7

2008-02-29 Thread Glen Pike

Hi,

   I am using AS3, so this is not an option, but thanks.

   Glen

Karim Beyrouti wrote:

I know this is not what you are asking for, but I use a getURL command to
call the tracking script: getURL(javascript:pageTracker._trackPageview(' +
str + '););

I have built two classes for google analytics 1 for the urchin tracking, and
another for the gaTracker, Here are the links to the classes:

http://underground-bunker.com/transfer/gaTracker.as
http://underground-bunker.com/transfer/urchinTracker.as

maybe they will be usefull to someone.


- karim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Glen Pike
Sent: 29 February 2008 13:57
To: Flash Coders List
Subject: Re: [Flashcoders] External Interface + Google Analytics + IE7

Hi,

Does anyone have any ideas about this?

Glen

Glen Pike wrote:
  

Hi,

   I have encountered a problem with an ExternalInterface.call causing 
IE7 to throw a JS error.


   I get an error message saying:
   Line: 1
   Char 14:
   Error: Expected ';'
   Code: 0;
   URL: http://www.dijitl.co.uk/beta/
 So, my guessing is that somewhere the ExternalInterface call is 
not adding a semi-colon, but that IE 7 maybe getting it's knickers in 
a twist.  Either way, it's annoying and my tracking is not working.  
Can anyone shed light on this - I am using 
so.addParam(allowScriptAccess, always); with SWFObject too.

 Ta

   Glen

   AS code is like this:
 var page:String = evt.type.substr(5);
 if (ExternalInterface.available) {
   ExternalInterface.call (trackTesting, page);
   }

   Have also tried calling the pageTracker object directly - 
ExternalInterface.call(pageTracker._trackPageview, page); - but no joy.


   JS Code is like this:

   script type=text/javascript
   // ![CDATA[
   var pageTracker = _gat._getTracker(UA-DELETED);
   pageTracker._initData();
   pageTracker._trackPageview();
 function trackTesting(page) {
   alert(before  + page);
   pageTracker._trackPageview(page);
   alert(after);
   }
 // ]]
   /script



  


--

Glen Pike
01736 759321
www.glenpike.co.uk http://www.glenpike.co.uk
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] External Interface + Google Analytics + IE7

2008-02-29 Thread Steven Sacks
SWFAddress 2.0 has Google Analytics stuff built in.  It might be worth 
it to check out Rostislav's source code to see how he does it.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] External Interface + Google Analytics + IE7

2008-02-29 Thread Cory Petosky
Glen,

Somebody on my team had the same problem with AS3, Google Analytics,
and IE7. He used the global sendToURL function instead. According to
him, neither navigateToURL nor ExternalInterface worked for him.

On 2/29/08, Glen Pike [EMAIL PROTECTED] wrote:
 Hi,

 I am using AS3, so this is not an option, but thanks.


 Glen


  Karim Beyrouti wrote:
   I know this is not what you are asking for, but I use a getURL command to
   call the tracking script: getURL(javascript:pageTracker._trackPageview(' 
 +
   str + '););
  
   I have built two classes for google analytics 1 for the urchin tracking, 
 and
   another for the gaTracker, Here are the links to the classes:
  
   http://underground-bunker.com/transfer/gaTracker.as
   http://underground-bunker.com/transfer/urchinTracker.as
  
   maybe they will be usefull to someone.
  
  
   - karim
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of Glen Pike
   Sent: 29 February 2008 13:57
   To: Flash Coders List
   Subject: Re: [Flashcoders] External Interface + Google Analytics + IE7
  
   Hi,
  
   Does anyone have any ideas about this?
  
   Glen
  
   Glen Pike wrote:
  
   Hi,
  
  I have encountered a problem with an ExternalInterface.call causing
   IE7 to throw a JS error.
  
  I get an error message saying:
  Line: 1
  Char 14:
  Error: Expected ';'
  Code: 0;
  URL: http://www.dijitl.co.uk/beta/
So, my guessing is that somewhere the ExternalInterface call is
   not adding a semi-colon, but that IE 7 maybe getting it's knickers in
   a twist.  Either way, it's annoying and my tracking is not working.
   Can anyone shed light on this - I am using
   so.addParam(allowScriptAccess, always); with SWFObject too.
Ta
  
  Glen
  
  AS code is like this:
var page:String = evt.type.substr(5);
if (ExternalInterface.available) {
  ExternalInterface.call (trackTesting, page);
  }
  
  Have also tried calling the pageTracker object directly -
   ExternalInterface.call(pageTracker._trackPageview, page); - but no joy.
  
  JS Code is like this:
  
  script type=text/javascript
  // ![CDATA[
  var pageTracker = _gat._getTracker(UA-DELETED);
  pageTracker._initData();
  pageTracker._trackPageview();
function trackTesting(page) {
  alert(before  + page);
  pageTracker._trackPageview(page);
  alert(after);
  }
// ]]
  /script
  
  
  

  --

  Glen Pike
  01736 759321
  www.glenpike.co.uk http://www.glenpike.co.uk
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



-- 
Cory Petosky : Lead Developer : PUNY
1618 Central Ave NE Suite 130
Minneapolis, MN 55413
Office: 612.216.3924
Mobile: 240.422.9652
Fax: 612.605.9216
http://www.punyentertainment.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] External Interface + Google Analytics + IE7

2008-02-29 Thread Glen Pike

Hi,

   Thanks that seems to have solved the problem, now I just need to 
wait and check that Analytics is registering these.


   Glen

Cory Petosky wrote:

Glen,

Somebody on my team had the same problem with AS3, Google Analytics,
and IE7. He used the global sendToURL function instead. According to
him, neither navigateToURL nor ExternalInterface worked for him.

On 2/29/08, Glen Pike [EMAIL PROTECTED] wrote:
  

Hi,

I am using AS3, so this is not an option, but thanks.


Glen


 Karim Beyrouti wrote:
  I know this is not what you are asking for, but I use a getURL command to
  call the tracking script: getURL(javascript:pageTracker._trackPageview(' +
  str + '););
 
  I have built two classes for google analytics 1 for the urchin tracking, and
  another for the gaTracker, Here are the links to the classes:
 
  http://underground-bunker.com/transfer/gaTracker.as
  http://underground-bunker.com/transfer/urchinTracker.as
 
  maybe they will be usefull to someone.
 
 
  - karim
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Glen Pike
  Sent: 29 February 2008 13:57
  To: Flash Coders List
  Subject: Re: [Flashcoders] External Interface + Google Analytics + IE7
 
  Hi,
 
  Does anyone have any ideas about this?
 
  Glen
 
  Glen Pike wrote:
 
  Hi,
 
 I have encountered a problem with an ExternalInterface.call causing
  IE7 to throw a JS error.
 
 I get an error message saying:
 Line: 1
 Char 14:
 Error: Expected ';'
 Code: 0;
 URL: http://www.dijitl.co.uk/beta/
   So, my guessing is that somewhere the ExternalInterface call is
  not adding a semi-colon, but that IE 7 maybe getting it's knickers in
  a twist.  Either way, it's annoying and my tracking is not working.
  Can anyone shed light on this - I am using
  so.addParam(allowScriptAccess, always); with SWFObject too.
   Ta
 
 Glen
 
 AS code is like this:
   var page:String = evt.type.substr(5);
   if (ExternalInterface.available) {
 ExternalInterface.call (trackTesting, page);
 }
 
 Have also tried calling the pageTracker object directly -
  ExternalInterface.call(pageTracker._trackPageview, page); - but no joy.
 
 JS Code is like this:
 
 script type=text/javascript
 // ![CDATA[
 var pageTracker = _gat._getTracker(UA-DELETED);
 pageTracker._initData();
 pageTracker._trackPageview();
   function trackTesting(page) {
 alert(before  + page);
 pageTracker._trackPageview(page);
 alert(after);
 }
   // ]]
 /script
 
 
 

 --

 Glen Pike
 01736 759321
 www.glenpike.co.uk http://www.glenpike.co.uk
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





  


--

Glen Pike
01736 759321
www.glenpike.co.uk http://www.glenpike.co.uk
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders