Re: [Flashcoders] Testing display object if its MovieClip or BitMap?

2010-12-06 Thread Ktu
I know a solution may already be found but this was my first thought and I
am curious how any of you feel about switch (true) for this problem

switch (true) {
   case loadedDisplayObject is MovieClip:
   case loadedDisplayObject is Bitmap:
}

Is switch (true) just bad practice? and does 'is' not work in this case?
Anyone want to stab at it?

Ktu

On Sat, Dec 4, 2010 at 11:26 PM, Micky Hulse mickyhulse.li...@gmail.comwrote:

 On Thu, Dec 2, 2010 at 3:17 AM, Karim Beyrouti ka...@kurst.co.uk wrote:
  Hopefully the line breaks here wont be too bad, pasting the code:

 Very nice!!! Many thanks Karim

 I will test it out and let you know how it goes. :)

 Have an excellent day/night!

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




-- 
Ktu;

The information contained in this message may be privileged and/or
confidential. If you are NOT the intended recipient, please notify the
sender immediately and destroy this message.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Testing display object if its MovieClip or BitMap?

2010-12-04 Thread Micky Hulse
On Thu, Dec 2, 2010 at 3:17 AM, Karim Beyrouti ka...@kurst.co.uk wrote:
 Hopefully the line breaks here wont be too bad, pasting the code:

Very nice!!! Many thanks Karim

I will test it out and let you know how it goes. :)

Have an excellent day/night!

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


Re: [Flashcoders] Testing display object if its MovieClip or BitMap?

2010-12-02 Thread Karim Beyrouti
Hopefully the line breaks here wont be too bad, pasting the code:

CODE

package {

import flash.utils.describeType;
import flash.utils.getQualifiedClassName;

/**
 * @author karim @ kurst.co.uk
 */
public class ClassUtils {

public static  function getSuperClass( obj : Object ):String {

var superClass  : String= 
describeType(obj)@base;
var isBase  : Boolean   =  ( superClass 
== '' )

if ( isBase )
return getClassName( obj );
else 
return replaceChar(superClass, '::', '.')


return '';
}

public static function getFullClassPath( obj : * ) : String {

var className : String = getQualifiedClassName( obj );

if ( className != null ){

if ( className.indexOf( '::' ) == -1 ){

return className;

} else {
return replaceChar(className, '::', '.')


}
} else {
return '';

}

}


public static function getClassName( obj : * ) : String {

var className : String = getQualifiedClassName( obj );

if ( className != null ){

if ( className.indexOf( '::' ) == -1 ){

return className;

} else {

return className.substr( 
className.indexOf( '::' ) + 2 , className.length )

}
} else {
return '';

}

}



public static function replaceChar( str : String, charToRemove 
: String , charToReplace : String) : String {

var temparray:Array = str.split(charToRemove);
return temparray.join(charToReplace);   

}


}
}



/CODE
On 2 Dec 2010, at 03:21, Micky Hulse wrote:

 Hi Karim! Many thanks for the reply and code sample! I really
 appreciate the help. :)
 
 On Wed, Dec 1, 2010 at 5:19 PM, Karim Beyrouti ka...@kurst.co.uk wrote:
 attached a class that does that, hope it helps...
 
 Doh! Looks like the Flash Coders List does not allow attachments! :(
 
 Do you have a server you could upload the AS file to? Maybe you could
 post it on GitHub, or create a Gist? I would love see your class. :)
 
 https://gist.github.com/
 
 Thanks Karim!
 
 Cheers,
 Micky
 ___
 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] Testing display object if its MovieClip or BitMap?

2010-12-01 Thread Micky Hulse
Hello,

I am using this class:

http://code.google.com/p/as3-multiple-file-preloader/

And I need to determine the display object type (i.e. is it MovieClip
or Bitmap).

trace(getQualifiedClassName(loadedDisplayObject));

Gives me this output (in a loop of 3 images and 1 swf loaded):

flash.display::Bitmap
flash.display::Bitmap
flash.display::Bitmap
flash.display::MovieClip

Would that be the best way to test for MovieClip or Bitmap?

Based on what is being loaded, I need to do different things (i.e. if
MovieClip, I will need to control the timeline, if bitmap then I can
skip all the timeiline commands).

Thanks so much!

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


Re: [Flashcoders] Testing display object if its MovieClip or BitMap?

2010-12-01 Thread Henrik Andersson

Micky Hulse skriver:

trace(getQualifiedClassName(loadedDisplayObject));
Would that be the best way to test for MovieClip or Bitmap?


It fails the empty base class test. It is an extremely bad way.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Testing display object if its MovieClip or BitMap?

2010-12-01 Thread Glen Pike

How about up-casting:


var mc:MovieClip = loadedDisplayObject as MovieClip;

if(mc) {
mc.play();

} else {
//could be a bitmap, but if it's not guaranteed, then you might 
need to do more tests.

var bmp:Bitmap = loadedDisplayObject as Bitmap;
}

On 01/12/2010 22:39, Micky Hulse wrote:

Hello,

I am using this class:

http://code.google.com/p/as3-multiple-file-preloader/

And I need to determine the display object type (i.e. is it MovieClip
or Bitmap).

trace(getQualifiedClassName(loadedDisplayObject));

Gives me this output (in a loop of 3 images and 1 swf loaded):

flash.display::Bitmap
flash.display::Bitmap
flash.display::Bitmap
flash.display::MovieClip

Would that be the best way to test for MovieClip or Bitmap?

Based on what is being loaded, I need to do different things (i.e. if
MovieClip, I will need to control the timeline, if bitmap then I can
skip all the timeiline commands).

Thanks so much!

Cheers,
Micky
___
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] Testing display object if its MovieClip or BitMap?

2010-12-01 Thread Glen Pike

Sorry, I meant downcast

On 01/12/2010 22:56, Glen Pike wrote:

How about up-casting:


var mc:MovieClip = loadedDisplayObject as MovieClip;

if(mc) {
mc.play();

} else {
//could be a bitmap, but if it's not guaranteed, then you might 
need to do more tests.

var bmp:Bitmap = loadedDisplayObject as Bitmap;
}

On 01/12/2010 22:39, Micky Hulse wrote:

Hello,

I am using this class:

http://code.google.com/p/as3-multiple-file-preloader/

And I need to determine the display object type (i.e. is it MovieClip
or Bitmap).

trace(getQualifiedClassName(loadedDisplayObject));

Gives me this output (in a loop of 3 images and 1 swf loaded):

flash.display::Bitmap
flash.display::Bitmap
flash.display::Bitmap
flash.display::MovieClip

Would that be the best way to test for MovieClip or Bitmap?

Based on what is being loaded, I need to do different things (i.e. if
MovieClip, I will need to control the timeline, if bitmap then I can
skip all the timeiline commands).

Thanks so much!

Cheers,
Micky
___
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] Testing display object if its MovieClip or BitMap?

2010-12-01 Thread Micky Hulse
Hi Henrik! Thanks for the quick reply, I really appreciate it. :)

On Wed, Dec 1, 2010 at 2:49 PM, Henrik Andersson he...@henke37.cjb.net wrote:
 It fails the empty base class test. It is an extremely bad way.

Ah, I am glad I asked! :D

Any tips on a better way to test display object if it is BitMap and/or
MovieClip?

When I trace the loaded array:

trace(pre.objects); // get the loaded objects as an array

Here is the output:

[object Bitmap],[object Bitmap],[object Bitmap],[object MovieClip]

I was thinking typeof(pre.objects[0]) would get me [object
Bitmap], for example, but it just outputs object.

Thanks again!

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


Re: [Flashcoders] Testing display object if its MovieClip or BitMap?

2010-12-01 Thread Micky Hulse
Hi Glen! Many thanks for the quick reply and example code. I really
appreciate it! :)

On Wed, Dec 1, 2010 at 2:56 PM, Glen Pike postmas...@glenpike.co.uk wrote:
 How about up-casting:
 var mc:MovieClip = loadedDisplayObject as MovieClip;
 if(mc) {
    mc.play();
 } else {
    //could be a bitmap, but if it's not guaranteed, then you might need to
 do more tests.
    var bmp:Bitmap = loadedDisplayObject as Bitmap;
 }

Ahhh, very interesting! That's a great idea! Thanks for tip.

I wonder if I will have to use try/catch to avoid any typecasting errors?

Testing now...

Works perfectly!

var mc:MovieClip = o[i] as MovieClip;
if (mc) { trace(movieclip); } else { trace(other); }

Pretty cool! Thaks for tip. :)

Have a great day! Much appreciated.

Cheers,
Micky

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


Re: [Flashcoders] Testing display object if its MovieClip or BitMap?

2010-12-01 Thread Micky Hulse
On Wed, Dec 1, 2010 at 3:02 PM, Glen Pike postmas...@glenpike.co.uk wrote:
 Sorry, I meant downcast

No worries!

I appreciate the code sample and help. That did the trick. :)

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


Re: [Flashcoders] Testing display object if its MovieClip or BitMap?

2010-12-01 Thread Glen Pike

Hi,

If your downcast does not work - the as bit - your variable will 
be null -it does not throw exceptions.



http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/operators.html#as


Glen

On 01/12/2010 23:07, Micky Hulse wrote:

Hi Glen! Many thanks for the quick reply and example code. I really
appreciate it! :)

On Wed, Dec 1, 2010 at 2:56 PM, Glen Pikepostmas...@glenpike.co.uk  wrote:

How about up-casting:
var mc:MovieClip = loadedDisplayObject as MovieClip;
if(mc) {
mc.play();
} else {
//could be a bitmap, but if it's not guaranteed, then you might need to
do more tests.
var bmp:Bitmap = loadedDisplayObject as Bitmap;
}

Ahhh, very interesting! That's a great idea! Thanks for tip.

I wonder if I will have to use try/catch to avoid any typecasting errors?

Testing now...

Works perfectly!

var mc:MovieClip = o[i] as MovieClip;
if (mc) { trace(movieclip); } else { trace(other); }

Pretty cool! Thaks for tip. :)

Have a great day! Much appreciated.

Cheers,
Micky

___
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] Testing display object if its MovieClip or BitMap?

2010-12-01 Thread Micky Hulse
On Wed, Dec 1, 2010 at 3:25 PM, Glen Pike postmas...@glenpike.co.uk wrote:
If your downcast does not work - the as bit - your variable will be
 null -it does not throw exceptions.
  
 http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/operators.html#as

Excellent! Thanks for the clarification.

Thanks Glen and Henrik! I really appreciate the pro help. :)

Have a great day!

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


Re: [Flashcoders] Testing display object if its MovieClip or BitMap?

2010-12-01 Thread Karim Beyrouti
attached a class that does that, hope it helps...

example : 

trace( ClassUtils.getFullClassPath( canvas ) ); // flash.display.Bitmap
trace( ClassUtils.getSuperClass( canvas ) ); // flash.display.DisplayObject








On 1 Dec 2010, at 23:40, Micky Hulse wrote:

 On Wed, Dec 1, 2010 at 3:25 PM, Glen Pike postmas...@glenpike.co.uk wrote:
   If your downcast does not work - the as bit - your variable will be
 null -it does not throw exceptions.
 http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/operators.html#as
 
 Excellent! Thanks for the clarification.
 
 Thanks Glen and Henrik! I really appreciate the pro help. :)
 
 Have a great day!
 
 Cheers,
 Micky
 ___
 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] Testing display object if its MovieClip or BitMap?

2010-12-01 Thread Henrik Andersson

Karim Beyrouti skriver:

attached a class that does that, hope it helps...


The mailer ate it.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Testing display object if its MovieClip or BitMap?

2010-12-01 Thread Micky Hulse
Hi Karim! Many thanks for the reply and code sample! I really
appreciate the help. :)

On Wed, Dec 1, 2010 at 5:19 PM, Karim Beyrouti ka...@kurst.co.uk wrote:
 attached a class that does that, hope it helps...

Doh! Looks like the Flash Coders List does not allow attachments! :(

Do you have a server you could upload the AS file to? Maybe you could
post it on GitHub, or create a Gist? I would love see your class. :)

https://gist.github.com/

Thanks Karim!

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


[Flashcoders] Testing before removing a child

2009-11-18 Thread Alan Neilsen
I am using loader_clip.removeChild(ldr); to remove child objects from my loader 
clip, and I want to test if a child object is there before removing it. I 
thought it would be something like
if (loader_clip.child !=0) {   // or !=, or !=null, or ==true, or 
something like that
loader_clip.removeChild(ldr);
}

But when I trace (loader_clip.child) it comes back undefined whether the 
child is still there or not.

What can I use to test this so loader_clip.removeChild(ldr); doesn't produce an 
error if the child has already been removed?
Alan Neilsen


This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Testing before removing a child

2009-11-18 Thread Gregory Boland
try .numChildren property

On Wed, Nov 18, 2009 at 4:48 PM, Alan Neilsen aneil...@gotafe.vic.edu.auwrote:

 I am using loader_clip.removeChild(ldr); to remove child objects from my
 loader clip, and I want to test if a child object is there before removing
 it. I thought it would be something like
 if (loader_clip.child !=0) {   // or !=, or !=null, or ==true, or
 something like that
loader_clip.removeChild(ldr);
 }

 But when I trace (loader_clip.child) it comes back undefined whether the
 child is still there or not.

 What can I use to test this so loader_clip.removeChild(ldr); doesn't
 produce an error if the child has already been removed?
 Alan Neilsen


 This message is for the named person’s use only. It may contain
 confidential, proprietary or legally privileged information. No
 confidentiality or privilege is waived or; lost by any mistransmission. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and notify
 the sender. You must not directly or indirectly, use, disclose,
 distribute, print or copy any part of this message if you are not the
 intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
 any of its subsidiaries each reserve the right to monitor all e-mail
 communications through its networks. Any views expressed in this
 message are those of the individual sender, except where the
 message states otherwise and the sender is authorised to state them
 to be the views of any such entity.


 #
 This e-mail message has been scanned for Viruses and Content and cleared
 by MailMarshal

 #
 ___
 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] Testing before removing a child

2009-11-18 Thread Francis Turmel
If I understand properly what you mean, the contains method is what you're
looking for.

if (loader_clip.contains(ldr)){
loader_clip.removeChild(ldr);
}

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/DisplayObjectContainer.html#contains%28%29



On Wed, Nov 18, 2009 at 8:25 PM, Gregory Boland
breakfastcof...@gmail.comwrote:

 try .numChildren property

 On Wed, Nov 18, 2009 at 4:48 PM, Alan Neilsen aneil...@gotafe.vic.edu.au
 wrote:

  I am using loader_clip.removeChild(ldr); to remove child objects from my
  loader clip, and I want to test if a child object is there before
 removing
  it. I thought it would be something like
  if (loader_clip.child !=0) {   // or !=, or !=null, or ==true, or
  something like that
 loader_clip.removeChild(ldr);
  }
 
  But when I trace (loader_clip.child) it comes back undefined whether
 the
  child is still there or not.
 
  What can I use to test this so loader_clip.removeChild(ldr); doesn't
  produce an error if the child has already been removed?
  Alan Neilsen
 
 
  This message is for the named person’s use only. It may contain
  confidential, proprietary or legally privileged information. No
  confidentiality or privilege is waived or; lost by any mistransmission.
 If
  you receive this message in error, please immediately delete it and all
  copies of it from your system, destroy any hard copies of it and notify
  the sender. You must not directly or indirectly, use, disclose,
  distribute, print or copy any part of this message if you are not the
  intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
  any of its subsidiaries each reserve the right to monitor all e-mail
  communications through its networks. Any views expressed in this
  message are those of the individual sender, except where the
  message states otherwise and the sender is authorised to state them
  to be the views of any such entity.
 
 
 
 #
  This e-mail message has been scanned for Viruses and Content and cleared
  by MailMarshal
 
 
 #
  ___
  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] Testing

2009-09-16 Thread Allandt Bik-Elliott (Receptacle)

i always use


this is a test

do not adjust your set

a






On 11 Sep 2009, at 23:57, Glen Pike wrote:


8,16,32

Karl DeSaulniers wrote:

Aaap ya missed 3

;)

Karl


On Sep 11, 2009, at 5:45 PM, Glen Pike wrote:


1,2,4
--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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



--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
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] Testing

2009-09-11 Thread Glen Pike

1,2,4
--

Glen Pike
01326 218440
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] Testing

2009-09-11 Thread Karl DeSaulniers

Aaap ya missed 3

;)

Karl


On Sep 11, 2009, at 5:45 PM, Glen Pike wrote:


1,2,4
--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Re: [Flashcoders] Testing

2009-09-11 Thread Glen Pike

8,16,32

Karl DeSaulniers wrote:

Aaap ya missed 3

;)

Karl


On Sep 11, 2009, at 5:45 PM, Glen Pike wrote:


1,2,4
--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

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



--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

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


[Flashcoders] Testing

2009-09-08 Thread Glen Pike
1,2,4


  

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


[Flashcoders] Testing

2008-09-16 Thread Charles Parcell
Testing  my messages are not getting through I think.

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


Re: [Flashcoders] Testing

2008-09-16 Thread Ian Thomas
Yes they are.

This is a common issue with Gmail - it is 'clever' enough not to show
you your own emails to a mailing list unless they're replied to.

Ian

On Tue, Sep 16, 2008 at 3:54 PM, Charles Parcell
[EMAIL PROTECTED] wrote:
 Testing  my messages are not getting through I think.

 Charles P.
 ___
 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] Testing

2008-09-16 Thread Charles Parcell
Hmm I just never noticed it before. :)  Thanks.

Charles P.


On Tue, Sep 16, 2008 at 11:00 AM, Ian Thomas [EMAIL PROTECTED] wrote:

 Yes they are.

 This is a common issue with Gmail - it is 'clever' enough not to show
 you your own emails to a mailing list unless they're replied to.

 Ian

 On Tue, Sep 16, 2008 at 3:54 PM, Charles Parcell
 [EMAIL PROTECTED] wrote:
  Testing  my messages are not getting through I think.
 
  Charles P.
  ___
  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] Testing

2008-09-16 Thread Romuald Quantin
I didn't know that, I've got the same issue. Any way to solve it?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas
Sent: 16 September 2008 16:01
To: Flash Coders List
Subject: Re: [Flashcoders] Testing

Yes they are.

This is a common issue with Gmail - it is 'clever' enough not to show
you your own emails to a mailing list unless they're replied to.

Ian

On Tue, Sep 16, 2008 at 3:54 PM, Charles Parcell
[EMAIL PROTECTED] wrote:
 Testing  my messages are not getting through I think.

 Charles P.
 ___
 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] Testing

2008-09-16 Thread Ian Thomas
Not that I know of. It's not really a problem, is it? If you really
think your email didn't get through (I haven't had it happen, but you
never know), you could always check the archives of the appropriate
mailing list...

Ian

On Tue, Sep 16, 2008 at 4:35 PM, Romuald Quantin
[EMAIL PROTECTED] wrote:
 I didn't know that, I've got the same issue. Any way to solve it?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas
 Sent: 16 September 2008 16:01
 To: Flash Coders List
 Subject: Re: [Flashcoders] Testing

 Yes they are.

 This is a common issue with Gmail - it is 'clever' enough not to show
 you your own emails to a mailing list unless they're replied to.

 Ian

 On Tue, Sep 16, 2008 at 3:54 PM, Charles Parcell
 [EMAIL PROTECTED] wrote:
 Testing  my messages are not getting through I think.

 Charles P.
 ___
 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

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


[Flashcoders] Testing online and offline

2008-03-19 Thread Helmut Granda
I am testing an application extensibly localy and on the server,
there are just a comple of methods that I want them to run locally but they
need to be user initiated when running on the server.

At the moment if I post the files to the server then I comment out the
automatic calls and so forth...

I started testing the ApplicationDomain and
ApplicationDomain.currentDomain but that still turns undefined off line and
online...

// just for testing purposes:
import flash.system.ApplicationDomain;
this.applicationDomain = ApplicationDomain.currentDomain
trace(this.currentDomain );

any ideas of a different implementation or a different class that I
should be using?

I know there is a way to get the domain address
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Testing online and offline

2008-03-19 Thread Matthew Houliston

On 19/03/2008 20:28, Helmut Granda wrote:


I started testing the ApplicationDomain and
ApplicationDomain.currentDomain but that still turns undefined off line and
online...

// just for testing purposes:
import flash.system.ApplicationDomain;
this.applicationDomain = ApplicationDomain.currentDomain
trace(this.currentDomain );



ApplicationDomain isn't related to the server hostname - it's for 
managing classes in external swf files.


You can get the current hosting address with
trace(root.loaderInfo.loaderURL);


Even better, IMO, you can check system.Capabilities.playerType to see 
if it's running locally:


import flash.system.Capabilities;

trace(Capabilities.playerType); // 'External', when running in the IDE



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


[Flashcoders] Testing

2008-02-14 Thread Glen Pike

0-1-0-1
--

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] Testing

2008-02-14 Thread Kerry Thompson
 0-1-0-1

5


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


[Flashcoders] testing it

2007-03-02 Thread Gustavo Duenas
Hi, my emails to the list were bounced back and I don't know why...I  
hope this not.


Regards


Gustavo Duenas

___
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] Testing... Please disregard...

2006-06-07 Thread Jason

Testing...  Please disregard...
Haven't got any email since 6/2...  :(

___
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] Testing

2006-05-31 Thread Brian Mays
Not getting messages.  Sorry for inconvenience.

___
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


Re: [Flashcoders] Testing ExternalInterface on Windows for me.

2006-04-23 Thread Geoff Stearns

i'm just reading this now... but here's how to fix all your problems:

1) as for 'getting the movie' - since you are using FlashObject, it's  
really easy, just use document.getElementById();


once you call fo.write() you can get the reference to the movie and  
you don't have to get it again - no sense in running that every time  
you call a function.


normally i'll embed the flash movie inline in the page, then put the  
externalinterface initialization stuff in an onload event. that way  
you know the flash movie will be there, and it gives all the other  
elements on the page time to load as well.


2) the form issue is a sort of known issue - there's a lot of  
problems when placing the flash movie inside a form, although i  
haven't heard of issues with placing it before vs. after.


read the comments on the livedocs here:
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/ 
html/wwhelp.htm?context=LiveDocs_Partsfile=2200.html


and maybe try some googling for more info.






On Apr 20, 2006, at 3:35 PM, David Rorex wrote:


Instead of creating a reference to your flash movie and storing it, I
get it every time.

JS Code:

function getMovie(movieName) {
if (navigator.appName.indexOf(Microsoft) != -1) {
return window[movieName]
}
else {
return document[movieName]
}
}


Example usage in JS:

getMovie('myMovie').someFunctionInFlash();

-David R

On 4/18/06, Aaron Smith [EMAIL PROTECTED] wrote:

Mark, Ryan,

Thanks for the input. I looked at that other guys ExternalInterface
testing. I switched all of my code to follow what he is doing. I am
still getting IE errors. I can't figure out what is going on. IE
doesn't like calling methods on the flash object for some reason.
When it calls ( flashMovieScroller.gotoStepFromJS(num) ) it errors
out. Why would it be doing that for my methods and not Geoff's
methods. Weird!.

take a look again at this. Look at the update JS and HTML compared to
that other guys. See if there's anything you notice that might be  
wrong.


http://www.smithaaronlee.net/jstest/ImgScrollerTEST333.html

The only thing I haven't tried yet was rearranging the flash objects
on the page to see if that helps. I guess i'll give that a try

thanks for taking the time.

-Smith



On Apr 18, 2006, at 12:46 PM, Mark Llobrera wrote:


Ryan:

When testing locally with Windows/IE, you can set allowScriptAccess
to 'always' - it'll save you having to upload to a server.

Aaron:
I was stalled with ExternalInterface myself yesterday; I had the
hardest time getting it to work on the Windows/IE combo. The
included samples from Macromedia didn't work, and several others on
the web didn't work either. Other browsers (Firefox, Safari/Firefox
on the Mac) worked fine.  Since I was using flashobject to embed
the swf, I wandered over to Geoff Stearns's blog and found this
example: http://blog.deconcept.com/code/externalinterface.html. I
eventually ended up taking that html (since it worked on Win/IE)
and using it as the basis for my html page, just so I could figure
out what was wrong. I found two things different between my page
that didn't work and the deconcept example:

If you look at the code on that page the reference to the flash
movie isn't initialized until the entire page is loaded. That would
be the first place I would look.

The second thing I learned yesterday (and this is where it starts
to devolve into voodoo) is that the order of items on the page
matters greatly (but seemingly only on Win/IE). I was calling a
flash movie from a javascript function triggered by a form button
(http://www.dirtystylus.com/sandbox/feedroom/filebrowser/
file_browser.html - an attempt to feed an flv on a local filesystem
to a video object). When the form was placed before embedding the
swf, it didn't work on Win/IE. As soon as I moved the form after
the embedded swf in the html code, it worked. Extremely weird.

-Mark

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ryan
Potter
Sent: Tuesday, April 18, 2006 3:19 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Testing ExternalInterface on Windows for
me.


I get the same as you.  I looked at the external interface code  
that I
have and the only difference I can see is I have swLiveConnect  
set to

true but I don't think that is it.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of  
Aaron

Smith
Sent: Tuesday, April 18, 2006 12:46 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Testing ExternalInterface on Windows for
me.

Yes I tried it out on yours and my server. works just fine. Now have
a look at this. on Firefox and IE: ( http://www.smithaaronlee.net/
jstest/ImgScrollerTEST.html )

It works in firefox like it should. But in IE it doesn't work
completely.  I'm having troubles figuring out what is wrong in  
IE, IE
throws errors when you click

Re: [Flashcoders] Testing ExternalInterface on Windows for me.

2006-04-20 Thread David Rorex
Instead of creating a reference to your flash movie and storing it, I
get it every time.

JS Code:

function getMovie(movieName) {
if (navigator.appName.indexOf(Microsoft) != -1) {
return window[movieName]
}
else {
return document[movieName]
}
}


Example usage in JS:

getMovie('myMovie').someFunctionInFlash();

-David R

On 4/18/06, Aaron Smith [EMAIL PROTECTED] wrote:
 Mark, Ryan,

 Thanks for the input. I looked at that other guys ExternalInterface
 testing. I switched all of my code to follow what he is doing. I am
 still getting IE errors. I can't figure out what is going on. IE
 doesn't like calling methods on the flash object for some reason.
 When it calls ( flashMovieScroller.gotoStepFromJS(num) ) it errors
 out. Why would it be doing that for my methods and not Geoff's
 methods. Weird!.

 take a look again at this. Look at the update JS and HTML compared to
 that other guys. See if there's anything you notice that might be wrong.

 http://www.smithaaronlee.net/jstest/ImgScrollerTEST333.html

 The only thing I haven't tried yet was rearranging the flash objects
 on the page to see if that helps. I guess i'll give that a try

 thanks for taking the time.

 -Smith



 On Apr 18, 2006, at 12:46 PM, Mark Llobrera wrote:

  Ryan:
 
  When testing locally with Windows/IE, you can set allowScriptAccess
  to 'always' - it'll save you having to upload to a server.
 
  Aaron:
  I was stalled with ExternalInterface myself yesterday; I had the
  hardest time getting it to work on the Windows/IE combo. The
  included samples from Macromedia didn't work, and several others on
  the web didn't work either. Other browsers (Firefox, Safari/Firefox
  on the Mac) worked fine.  Since I was using flashobject to embed
  the swf, I wandered over to Geoff Stearns's blog and found this
  example: http://blog.deconcept.com/code/externalinterface.html. I
  eventually ended up taking that html (since it worked on Win/IE)
  and using it as the basis for my html page, just so I could figure
  out what was wrong. I found two things different between my page
  that didn't work and the deconcept example:
 
  If you look at the code on that page the reference to the flash
  movie isn't initialized until the entire page is loaded. That would
  be the first place I would look.
 
  The second thing I learned yesterday (and this is where it starts
  to devolve into voodoo) is that the order of items on the page
  matters greatly (but seemingly only on Win/IE). I was calling a
  flash movie from a javascript function triggered by a form button
  (http://www.dirtystylus.com/sandbox/feedroom/filebrowser/
  file_browser.html - an attempt to feed an flv on a local filesystem
  to a video object). When the form was placed before embedding the
  swf, it didn't work on Win/IE. As soon as I moved the form after
  the embedded swf in the html code, it worked. Extremely weird.
 
  -Mark
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] Behalf Of Ryan
  Potter
  Sent: Tuesday, April 18, 2006 3:19 PM
  To: Flashcoders mailing list
  Subject: RE: [Flashcoders] Testing ExternalInterface on Windows for
  me.
 
 
  I get the same as you.  I looked at the external interface code that I
  have and the only difference I can see is I have swLiveConnect set to
  true but I don't think that is it.
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Aaron
  Smith
  Sent: Tuesday, April 18, 2006 12:46 PM
  To: Flashcoders mailing list
  Subject: Re: [Flashcoders] Testing ExternalInterface on Windows for
  me.
 
  Yes I tried it out on yours and my server. works just fine. Now have
  a look at this. on Firefox and IE: ( http://www.smithaaronlee.net/
  jstest/ImgScrollerTEST.html )
 
  It works in firefox like it should. But in IE it doesn't work
  completely.  I'm having troubles figuring out what is wrong in IE, IE
  throws errors when you click on a step button. Just viewsource to see
  the JS.
 
  this is what it is supposed to do:
 
  when you click a 'step' button it reloads different thumbnails in the
  scroller piece. when you click on a thumbnail it communicates through
  js to the other flash piece to load a larger img.
 
 
 
  On Apr 18, 2006, at 11:29 AM, Ryan Potter wrote:
 
  I tested it and it works.  It is the testing locally issue.  Here is
  your code on a server:
 
  http://www.thoughtwillrise.com/flash/exttest/
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Aaron
  Smith
  Sent: Tuesday, April 18, 2006 12:22 PM
  To: Flashcoders mailing list
  Subject: Re: [Flashcoders] Testing ExternalInterface on Windows for
  me.
 
  ok, yeah I wonder if thats the issue (local). I was just testing it
  locally. I'll try it on a server.
 
 
 
 
  On Apr 18, 2006, at 11:17 AM, Ryan Potter wrote:
 
  Did you upload it to a server

[Flashcoders] Testing ExternalInterface on Windows for me.

2006-04-18 Thread Aaron Smith
I am at work right now. And we only have one windows machine. We are  
using some ExternalInterface functionality in one of our projects.  
It's not working on out windows machine. It doesn't work in either  
Firefox or Internet Explorer. It works fine in every browser on MAC.


I've been doing some testing to figure out what it was. And could not  
figure it out. So I created an even smaller test. There is two lines  
of code in the fla that calls an ExternalInterface call to a js  
method that just displays an alert. Even that doesnt work.


If someone could take a quick look at my src files. Test it on IE and  
Firefox Windows. And let me know if it works. If it does work for  
others it means we have a problem with our win machine.


here is a zip ( www.smithaaronlee.net/ExtIntTest.zip ) file with the  
src (fla, swf, html) . just open it up and look at the test.html file  
in firefox and IE. it should just pop up an alert right away.


I would really appreciate someone doing this. it will only take a sec.


thanks,
smith

___
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


RE: [Flashcoders] Testing ExternalInterface on Windows for me.

2006-04-18 Thread Ryan Potter
Did you upload it to a server and test it or just do it locally?

It doesn't work for me if it is local but it works like a champ when
uploaded and I am on windows too.

I will look at your source.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Aaron
Smith
Sent: Tuesday, April 18, 2006 12:12 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Testing ExternalInterface on Windows for me.

I am at work right now. And we only have one windows machine. We are  
using some Ext