Re: [Flashcoders] AIR - Insert header in XML file

2008-04-03 Thread Ian Thomas
Uh... other way around, surely?
var myString:String = ?xml delcaration here?;
myString+=yourXML.toString();
save(myString, myString.xml);

But Steven's right - that's always worked for me, with no need to use
xmlDecl. I'd never heard of xmlDecl until Wagner mentioned it...

Ian

On Thu, Apr 3, 2008 at 12:18 AM, Steven Sacks [EMAIL PROTECTED] wrote:
 myString:String = yourXML.toString();
  myString += ?xml delcaration here?;
  save(myString, myString.xml);

  An XML file is just a text file with a .xml extension.


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


Re: [Flashcoders] books for flash programming

2008-04-03 Thread Gert-Jan van der Wel
I agree with Alan. All the books in Jeff's list (
http://www.codinghorror.com/blog/archives/20.html) are wonderful. I
especially liked The Pragmatic Programmer: From Journeyman to
Masterhttp://www.amazon.com/exec/obidos/ASIN/020161622X/codinghorror-20
.

Gert-Jan

2008/4/3, Muzak [EMAIL PROTECTED]:

 Not to mention that a programmer who knows AS3, Java, and Lisp is
  immensely more valuable than one who just knows AS3. It proves you
  have the capacity to learn, which is a very marketable trait.
 
 
 BS.. Doesn't prove a thing..
 Someone who *just* knows AS3 may have - scratch that - *has* the capacity
 to learn any other language, but may never have had the need to.

 - Original Message - From: Cory Petosky 
 [EMAIL PROTECTED]
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Wednesday, April 02, 2008 11:54 PM
 Subject: Re: [Flashcoders] books for flash programming


  A native English speaker, when learning German, will generally remark
  Wow! Because of this feature in German, I now understand English a
  little better.
 
  Programming languages are the same way. Learning another
  object-oriented language will help you identify how features in
  ActionScript work (or don't work). And learning a language from
  another paradigm entirely (functional or procedural, probably) will
  help you identify weaknesses and strengths of object-oriented
  programming.
 
  Not to mention that a programmer who knows AS3, Java, and Lisp is
  immensely more valuable than one who just knows AS3. It proves you
  have the capacity to learn, which is a very marketable trait.
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
Gert-Jan van der Wel
Co-Founder  CTO

Floorplanner.com
+31 (0)10 281 0799
+31 (0)6 1665 0338
[EMAIL PROTECTED]
http://www.floorplanner.com
skype: gertjan-floorplanner
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] some dying logic ...

2008-04-03 Thread Meinte van't Kruis
thanks,cool thread.

Now I have to drink some coffee, become less confused and let it sink in :)

On Wed, Apr 2, 2008 at 9:15 PM, EECOLOR [EMAIL PROTECTED] wrote:

 granted that the eventListener was added with a weak reference

 This seems to be one of the biggest mis-understandings these days. The
 listener does *not*add a reference to the object that you are
 listening too. For extensive discussion and proof of this issue you
 can read the following thread:



 http://www.mail-archive.com/flashcoders@chattyfig.figleaf.com/msg38700.html

 In short: adding a listener to an object will only create a reference from
 the object to the listener, not the other way around. This means that you
 can remove the object without removing the listener, the object will then
 still be garbage collected.


 Greetz Erik


 On 4/2/08, Meinte van't Kruis [EMAIL PROTECTED] wrote:
 
  granted that the eventListener was added with a weak reference
 
  On Wed, Apr 2, 2008 at 3:35 PM, EECOLOR [EMAIL PROTECTED] wrote:
 
   *if (this.basicNews != null) {
 
  this.basicNews.removeEventListener(RepeaterEvent.CLICK,
   this.onNewsClicked);
 this.removeChild(this.basicNews);
 this.basicNews.die();
 this.basicNews = null;
   }*
  
   In the above code I do not see why you would need any more then the
   following lines:
  
   *basicNews = null;
   removeChild(basicNews);*
  
   All references to basicNews are now removed and it is (along with its
   children) marked for garbage collection. Calling the other extra
 methods
   seems a waste of CPU.
  
  
   Greetz Erik
  
  
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
M.A. van't Kruis
http://www.malatze.nl/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash IRC Client

2008-04-03 Thread Meinte van't Kruis
this is what I came across today;

http://blog.je2050.de/2006/02/15/flirc-next-version-with-flex2-beta-1/


On Thu, Apr 3, 2008 at 1:46 AM, Elia Morling [EMAIL PROTECTED] wrote:

 Are there any Flash IRC clients that can connect to a real IRC server
 network? Preferably skinnable?

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




-- 
M.A. van't Kruis
http://www.malatze.nl/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] IDE TextField TextFormat

2008-04-03 Thread laurent
 
Hi,


Does TextFormat apply to none dynamic textfield ?

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


Re: [Flashcoders] Multiple SWFs (50) in one html page dramaticly increase memory ?

2008-04-03 Thread Flap Flap
I know, this his not my call to have 50 swfs...
And we make the test with IE as well it is the same problem.
If we reduce the number of swfs, memories is slowed (not sure ot a strictly
mathematical match of the size)...

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


[Flashcoders] Reading properties of a textbox [AS3]

2008-04-03 Thread Stuart (FunkDaWeb)
Hi all im tring to write a button that changes the format of a textbox from 
normal to italic and back again. I have written the below code but i cannot 
seam to get it to work!

var formatter:TextFormat = new TextFormat();
   
   if (formatter.italic == false)
   {
formatter.italic = true;
   }
   else
   {
formatter.italic = false;
   }
   
   _selectedBox.setTextFormat(formatter);

So my question is how do i read the properties of a textbox in order to create 
an if statment to change the properties?

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


[Flashcoders] how to use AV1Movie Class?

2008-04-03 Thread Sidnei Vladisauskis
Hi,

I´m developing my new portfolio in AS3 for learn.

I need load swf AS2 into the movieclip in my swf AS3.

I researched, but I don´t find one documentation for this.

I find a reference using AV1Movie Class?

is it correct for load a swf AS2?

But how to use this class with Loader class?

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


Re: [Flashcoders] Reading properties of a textbox [AS3]

2008-04-03 Thread jonathan howe
var formatter:TextFormat = _selectedBox.getTextFormat();

On Thu, Apr 3, 2008 at 10:43 AM, Stuart (FunkDaWeb) [EMAIL PROTECTED]
wrote:

 Hi all im tring to write a button that changes the format of a textbox
 from normal to italic and back again. I have written the below code but i
 cannot seam to get it to work!

 var formatter:TextFormat = new TextFormat();

   if (formatter.italic == false)
   {
formatter.italic = true;
   }
   else
   {
formatter.italic = false;
   }

   _selectedBox.setTextFormat(formatter);

 So my question is how do i read the properties of a textbox in order to
 create an if statment to change the properties?

 SM
 ___
 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] Reading properties of a textbox [AS3]

2008-04-03 Thread Stuart (FunkDaWeb)
thanks Jonathan for some reason i get this error when i change to your code...

ReferenceError: Error #1069: Property formatter not found on 
flash.text.TextField and there is no default value.
  - Original Message - 
  From: jonathan howe 
  To: Flash Coders List 
  Sent: Thursday, April 03, 2008 4:04 PM
  Subject: Re: [Flashcoders] Reading properties of a textbox [AS3]


  var formatter:TextFormat = _selectedBox.getTextFormat();

  On Thu, Apr 3, 2008 at 10:43 AM, Stuart (FunkDaWeb) [EMAIL PROTECTED]
  wrote:

   Hi all im tring to write a button that changes the format of a textbox
   from normal to italic and back again. I have written the below code but i
   cannot seam to get it to work!
  
   var formatter:TextFormat = new TextFormat();
  
 if (formatter.italic == false)
 {
  formatter.italic = true;
 }
 else
 {
  formatter.italic = false;
 }
  
 _selectedBox.setTextFormat(formatter);
  
   So my question is how do i read the properties of a textbox in order to
   create an if statment to change the properties?
  
   SM
   ___
   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] how to use AV1Movie Class?

2008-04-03 Thread ekameleon
hello :)

yes when you use the Loader class.. inside your reference you can find the
content reference who is the reference of the Bitmap or MovieClip, etc...
if the external swf is a AVM1 file the type of the reference is AVM1.

Use the Loader class and test the content property when the external swf is
loading.

EKA+ :)

2008/4/3, Sidnei Vladisauskis [EMAIL PROTECTED]:

 Hi,

 I´m developing my new portfolio in AS3 for learn.

 I need load swf AS2 into the movieclip in my swf AS3.

 I researched, but I don´t find one documentation for this.

 I find a reference using AV1Movie Class?

 is it correct for load a swf AS2?

 But how to use this class with Loader class?

 Tks.
 ___
 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] how to use AV1Movie Class?

2008-04-03 Thread Sidnei Vladisauskis
Hi ekameleon ,

tks for your help, but was you have a exemple??

tks again.

On Thu, Apr 3, 2008 at 12:17 PM, ekameleon [EMAIL PROTECTED] wrote:

 hello :)

 yes when you use the Loader class.. inside your reference you can find the
 content reference who is the reference of the Bitmap or MovieClip,
 etc...
 if the external swf is a AVM1 file the type of the reference is AVM1.

 Use the Loader class and test the content property when the external swf
 is
 loading.

 EKA+ :)

 2008/4/3, Sidnei Vladisauskis [EMAIL PROTECTED]:
 
  Hi,
 
  I´m developing my new portfolio in AS3 for learn.
 
  I need load swf AS2 into the movieclip in my swf AS3.
 
  I researched, but I don´t find one documentation for this.
 
  I find a reference using AV1Movie Class?
 
  is it correct for load a swf AS2?
 
  But how to use this class with Loader class?
 
  Tks.
  ___
  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] embedded fonts

2008-04-03 Thread Allandt Bik-Elliott (Receptacle)

wotcha

i have a quick query about embedded fonts.

I thought that when you used them in the movie, that you should call  
them by the Class name in the linkage identifier however when I try  
to do this, my text disappears (i have embedFonts set to true and  
I've triple checked the names), however when i use the font's  
original name, export, close the fonts and then open the swf,  
everything works as it should.


Was I originally wrong or is there something screwy going on with this?

examples:

original font: Helvetica 75 Bold
Linkage class name: Helvetica75Bold
Name used as .font property: Helvetica75Bold // causes text to  
disappear
Name used as .font property: Helvetica 75 Bold // causes text to  
reappear


original font: Helvetica with B selected
Linkage class name: HelveticaBold
Name used as .font property: HelveticaBold // causes text to disappear
Name used as .font property: Helvetica // causes text to reappear

hope you can help because this doesn't seem right to me.

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


Re: [Flashcoders] embedded fonts

2008-04-03 Thread Stuart (FunkDaWeb)
I too have a wierd problem with embeded fonts! When i set embededFont = true; 
it removes the text! :o(
  - Original Message - 
  From: Allandt Bik-Elliott (Receptacle) 
  To: flashcoders 
  Sent: Thursday, April 03, 2008 4:50 PM
  Subject: [Flashcoders] embedded fonts


  wotcha

  i have a quick query about embedded fonts.

  I thought that when you used them in the movie, that you should call  
  them by the Class name in the linkage identifier however when I try  
  to do this, my text disappears (i have embedFonts set to true and  
  I've triple checked the names), however when i use the font's  
  original name, export, close the fonts and then open the swf,  
  everything works as it should.

  Was I originally wrong or is there something screwy going on with this?

  examples:

  original font: Helvetica 75 Bold
  Linkage class name: Helvetica75Bold
  Name used as .font property: Helvetica75Bold // causes text to  
  disappear
  Name used as .font property: Helvetica 75 Bold // causes text to  
  reappear

  original font: Helvetica with B selected
  Linkage class name: HelveticaBold
  Name used as .font property: HelveticaBold // causes text to disappear
  Name used as .font property: Helvetica // causes text to reappear

  hope you can help because this doesn't seem right to me.

  thanks
  a
  ___
  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] how to use AV1Movie Class?

2008-04-03 Thread ekameleon
hello :)

see the example in the reference of the AS3 class :

http://livedocs.adobe.com/flex/2/langref/flash/display/Loader.html

See the example in the end of the page

In the completeHandler callback method you can test the type of the
event.target.content reference :)

Example

private function completeHandler(event:Event):void
{
 trace(completeHandler:  + describeType(
event.target.contentType ) ); // import the flash.utils.describeType
method in the header of your code.
}



and read :

http://livedocs.adobe.com/flex/2/langref/flash/display/AVM1Movie.html

.. after, open Flex or Flash CS3 and copy the code and test it with an
external swf in AS2 and AS3...

It's easy to test it :)

EKA+ :)


2008/4/3, Sidnei Vladisauskis [EMAIL PROTECTED]:

 Hi ekameleon ,

 tks for your help, but was you have a exemple??

 tks again.


 On Thu, Apr 3, 2008 at 12:17 PM, ekameleon [EMAIL PROTECTED] wrote:

  hello :)
 
  yes when you use the Loader class.. inside your reference you can find
 the
  content reference who is the reference of the Bitmap or MovieClip,
  etc...
  if the external swf is a AVM1 file the type of the reference is AVM1.
 
  Use the Loader class and test the content property when the external swf
  is
  loading.
 
  EKA+ :)
 
  2008/4/3, Sidnei Vladisauskis [EMAIL PROTECTED]:
  
   Hi,
  
   I´m developing my new portfolio in AS3 for learn.
  
   I need load swf AS2 into the movieclip in my swf AS3.
  
   I researched, but I don´t find one documentation for this.
  
   I find a reference using AV1Movie Class?
  
   is it correct for load a swf AS2?
  
   But how to use this class with Loader class?
  
   Tks.
   ___
   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


Re: [Flashcoders] Reading properties of a textbox [AS3]

2008-04-03 Thread jonathan howe
Hi, Stuart,

Based on the error message sounds like maybe you are trying to access
_selectedBox.formatter or something else invalid. Can you repaste your new
code after the change?

-jonathan


On Thu, Apr 3, 2008 at 11:15 AM, Stuart (FunkDaWeb) [EMAIL PROTECTED]
wrote:

 thanks Jonathan for some reason i get this error when i change to your
 code...

 ReferenceError: Error #1069: Property formatter not found on
 flash.text.TextField and there is no default value.
   - Original Message -
  From: jonathan howe
  To: Flash Coders List
  Sent: Thursday, April 03, 2008 4:04 PM
  Subject: Re: [Flashcoders] Reading properties of a textbox [AS3]


  var formatter:TextFormat = _selectedBox.getTextFormat();

  On Thu, Apr 3, 2008 at 10:43 AM, Stuart (FunkDaWeb) [EMAIL PROTECTED]
 
  wrote:

   Hi all im tring to write a button that changes the format of a textbox
   from normal to italic and back again. I have written the below code but
 i
   cannot seam to get it to work!
  
   var formatter:TextFormat = new TextFormat();
  
 if (formatter.italic == false)
 {
  formatter.italic = true;
 }
 else
 {
  formatter.italic = false;
 }
  
 _selectedBox.setTextFormat(formatter);
  
   So my question is how do i read the properties of a textbox in order to
   create an if statment to change the properties?
  
   SM
   ___
   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] embedded fonts

2008-04-03 Thread Allandt Bik-Elliott (Receptacle)
have you tried doing what i did and using the actual font name as  
the .font property rather than the linkage class name?


it's removing the text because it can't find the font


On 3 Apr 2008, at 17:04, Stuart ((FunkDaWeb)) wrote:

I too have a wierd problem with embeded fonts! When i set  
embededFont = true; it removes the text! :o(

  - Original Message -
  From: Allandt Bik-Elliott (Receptacle)
  To: flashcoders
  Sent: Thursday, April 03, 2008 4:50 PM
  Subject: [Flashcoders] embedded fonts


  wotcha

  i have a quick query about embedded fonts.

  I thought that when you used them in the movie, that you should call
  them by the Class name in the linkage identifier however when I try
  to do this, my text disappears (i have embedFonts set to true and
  I've triple checked the names), however when i use the font's
  original name, export, close the fonts and then open the swf,
  everything works as it should.

  Was I originally wrong or is there something screwy going on with  
this?


  examples:

  original font: Helvetica 75 Bold
  Linkage class name: Helvetica75Bold
  Name used as .font property: Helvetica75Bold // causes text to
  disappear
  Name used as .font property: Helvetica 75 Bold // causes text to
  reappear

  original font: Helvetica with B selected
  Linkage class name: HelveticaBold
  Name used as .font property: HelveticaBold // causes text to  
disappear

  Name used as .font property: Helvetica // causes text to reappear

  hope you can help because this doesn't seem right to me.

  thanks
  a
  ___
  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] embedded fonts

2008-04-03 Thread Kenneth Kawamoto
For embedded fonts you can either use the actual font name (as you have 
discovered it already), or YourFontClass.fontName


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

Allandt Bik-Elliott (Receptacle) wrote:

wotcha

i have a quick query about embedded fonts.

I thought that when you used them in the movie, that you should call 
them by the Class name in the linkage identifier however when I try to 
do this, my text disappears (i have embedFonts set to true and I've 
triple checked the names), however when i use the font's original name, 
export, close the fonts and then open the swf, everything works as it 
should.


Was I originally wrong or is there something screwy going on with this?

examples:

original font: Helvetica 75 Bold
Linkage class name: Helvetica75Bold
Name used as .font property: Helvetica75Bold // causes text to disappear
Name used as .font property: Helvetica 75 Bold // causes text to reappear

original font: Helvetica with B selected
Linkage class name: HelveticaBold
Name used as .font property: HelveticaBold // causes text to disappear
Name used as .font property: Helvetica // causes text to reappear

hope you can help because this doesn't seem right to me.

thanks
a

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


Re: [Flashcoders] Reading properties of a textbox [AS3]

2008-04-03 Thread Stuart (FunkDaWeb)
formatter is a blank variable and has nothing to do with reading the text 
propperties its used for setting them! I need to figure out how to tell if a 
text field is set to italic or not! once i can do this i can fix the if 
statement!

do you have any idea how to do this?





FUI - New code is this

var formatter:TextFormat = _selectedBox.getTextFormat();
   
   if (_selectedBox.formatter.italic == false)
   {
formatter.italic = true;
   }
   else
   {
formatter.italic = false;
   }
   
 _selectedBox.setTextFormat(formatter);
  - Original Message - 
  From: jonathan howe 
  To: Flash Coders List 
  Sent: Thursday, April 03, 2008 5:53 PM
  Subject: Re: [Flashcoders] Reading properties of a textbox [AS3]


  Hi, Stuart,

  Based on the error message sounds like maybe you are trying to access
  _selectedBox.formatter or something else invalid. Can you repaste your new
  code after the change?

  -jonathan


  On Thu, Apr 3, 2008 at 11:15 AM, Stuart (FunkDaWeb) [EMAIL PROTECTED]
  wrote:

   thanks Jonathan for some reason i get this error when i change to your
   code...
  
   ReferenceError: Error #1069: Property formatter not found on
   flash.text.TextField and there is no default value.
 - Original Message -
From: jonathan howe
To: Flash Coders List
Sent: Thursday, April 03, 2008 4:04 PM
Subject: Re: [Flashcoders] Reading properties of a textbox [AS3]
  
  
var formatter:TextFormat = _selectedBox.getTextFormat();
  
On Thu, Apr 3, 2008 at 10:43 AM, Stuart (FunkDaWeb) [EMAIL PROTECTED]
   
wrote:
  
 Hi all im tring to write a button that changes the format of a textbox
 from normal to italic and back again. I have written the below code but
   i
 cannot seam to get it to work!

 var formatter:TextFormat = new TextFormat();

   if (formatter.italic == false)
   {
formatter.italic = true;
   }
   else
   {
formatter.italic = false;
   }

   _selectedBox.setTextFormat(formatter);

 So my question is how do i read the properties of a textbox in order to
 create an if statment to change the properties?

 SM
 ___
 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] how to use AV1Movie Class?

2008-04-03 Thread Sidnei Vladisauskis
tks...

I will try this example...

tks a lot...

On Thu, Apr 3, 2008 at 12:59 PM, ekameleon [EMAIL PROTECTED] wrote:

 hello :)

 see the example in the reference of the AS3 class :

 http://livedocs.adobe.com/flex/2/langref/flash/display/Loader.html

 See the example in the end of the page

 In the completeHandler callback method you can test the type of the
 event.target.content reference :)

 Example

 private function completeHandler(event:Event):void
 {
 trace(completeHandler:  + describeType(
 event.target.contentType ) ); // import the flash.utils.describeType
 method in the header of your code.
 }



 and read :

 http://livedocs.adobe.com/flex/2/langref/flash/display/AVM1Movie.html

 .. after, open Flex or Flash CS3 and copy the code and test it with an
 external swf in AS2 and AS3...

 It's easy to test it :)

 EKA+ :)


 2008/4/3, Sidnei Vladisauskis [EMAIL PROTECTED]:
 
  Hi ekameleon ,
 
  tks for your help, but was you have a exemple??
 
  tks again.
 
 
  On Thu, Apr 3, 2008 at 12:17 PM, ekameleon [EMAIL PROTECTED] wrote:
 
   hello :)
  
   yes when you use the Loader class.. inside your reference you can find
  the
   content reference who is the reference of the Bitmap or MovieClip,
   etc...
   if the external swf is a AVM1 file the type of the reference is AVM1.
  
   Use the Loader class and test the content property when the external
 swf
   is
   loading.
  
   EKA+ :)
  
   2008/4/3, Sidnei Vladisauskis [EMAIL PROTECTED]:
   
Hi,
   
I´m developing my new portfolio in AS3 for learn.
   
I need load swf AS2 into the movieclip in my swf AS3.
   
I researched, but I don´t find one documentation for this.
   
I find a reference using AV1Movie Class?
   
is it correct for load a swf AS2?
   
But how to use this class with Loader class?
   
Tks.
___
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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Tweening movieClip frames

2008-04-03 Thread laurent

  Hi,

What is the best Tweening class in the universe ?

Hehe, no... that's not my real question.

I read it's possible to tween movieClip frames, how do I do this using 
Tweener ?


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


Re: [Flashcoders] Tweening movieClip frames

2008-04-03 Thread Zeh Fernando
I read it's possible to tween movieClip frames, how do I do this using 
Tweener ?


// Once:
import caurina.transitions.properties.DisplayShortcuts;

DisplayShortcuts.init();


// Later:
import caurina.transitions.Tweener;

Tweener.addTween(mc, {_frame:100, time:1});


Using latest (svn) version.

Current (download version) is the same, just without the init().


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


[Flashcoders] Tree item continuous autoscrolling after drag-n-drop

2008-04-03 Thread Andrew Murphy
Hi.

 

I’m drag-n-dropping an object from one Tree component to another one.
Sometimes when I have an item dragged over the second Tree, ready to drop,
the dern thing starts scrolling.. usually upwards.. making it much more
challenging to drop the item in the right place.  It also sometimes gets
stuck scrolling, up or down, even when the mouse pointer is no long over the
Tree.  If the mouse exits from the top of the Tree it scrolls up, if it
exits from the bottom it scrolls down.. I can get it to flip back and forth
by moving the mouse over it.. but havn’t found any way to stop the scrolling
except by exiting the application and re-starting it.

 

Any ideas of what could be wrong or what I should investigate?

 

Thanks. :)

 


Andrew Murphy
Interactive Media Specialist
[EMAIL PROTECTED]

Delvinia
214 King Street West, Suite 214 

Toronto Canada M5H 3S6
P 416.364.1455 ext. 232
F 416.364.9830
W www.delvinia.com

CONFIDENTIALITY NOTICE
This email message may contain privileged or confidential information. If
you are not the intended recipient or received this communication by error,
please notify the sender and delete the message without copying or
disclosing it.

AVIS DE CONFIDENTIALITÉ
Ce message peut contenir de l'information légalement privilégiée ou
confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par
erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en
détruire le contenu sans le communiquer a d'autres ou le reproduire.

 


No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.22.5/1356 - Release Date: 02/04/2008
4:14 PM
 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Reading properties of a textbox [AS3]

2008-04-03 Thread jonathan howe
Okay, but in the simple example, you are using it for both:

Okay, but formatter should not be treated as a property of _selectedBox.
_selectedBox has no property named formatter.

This is the offending line:

if (_selectedBox.formatter.italic == false)

You already have set formatter to the value of _selectedBox.getTextFormat();
Thus your conditional should read:

if (formatter.italic == false)

To simplify it to keeping formatter separate from the current format, let's
rewrite:

var currentFormat:TextFormat = _selectedBox.getTextFormat();
var formatter:TextFormat = new TextFormat();

  if (currentFormat.italic == false)
  {
   formatter.italic = true;
  }
  else
  {
   formatter.italic = false;
  }

 _selectedBox.setTextFormat(formatter);


-jonathan


On Thu, Apr 3, 2008 at 1:19 PM, Stuart (FunkDaWeb) [EMAIL PROTECTED]
wrote:

 formatter is a blank variable and has nothing to do with reading the text
 propperties its used for setting them! I need to figure out how to tell if a
 text field is set to italic or not! once i can do this i can fix the if
 statement!

 do you have any idea how to do this?



 


 FUI - New code is this

 var formatter:TextFormat = _selectedBox.getTextFormat();

if (_selectedBox.formatter.italic == false)
{
formatter.italic = true;
   }
   else
   {
formatter.italic = false;
   }

  _selectedBox.setTextFormat(formatter);
   - Original Message -
  From: jonathan howe
  To: Flash Coders List
   Sent: Thursday, April 03, 2008 5:53 PM
  Subject: Re: [Flashcoders] Reading properties of a textbox [AS3]


  Hi, Stuart,

  Based on the error message sounds like maybe you are trying to access
  _selectedBox.formatter or something else invalid. Can you repaste your
 new
  code after the change?

  -jonathan


  On Thu, Apr 3, 2008 at 11:15 AM, Stuart (FunkDaWeb) [EMAIL PROTECTED]
 
  wrote:

   thanks Jonathan for some reason i get this error when i change to your
   code...
  
   ReferenceError: Error #1069: Property formatter not found on
   flash.text.TextField and there is no default value.
 - Original Message -
From: jonathan howe
To: Flash Coders List
Sent: Thursday, April 03, 2008 4:04 PM
Subject: Re: [Flashcoders] Reading properties of a textbox [AS3]
  
  
var formatter:TextFormat = _selectedBox.getTextFormat();
  
On Thu, Apr 3, 2008 at 10:43 AM, Stuart (FunkDaWeb) 
 [EMAIL PROTECTED]
   
wrote:
  
 Hi all im tring to write a button that changes the format of a
 textbox
 from normal to italic and back again. I have written the below code
 but
   i
 cannot seam to get it to work!

 var formatter:TextFormat = new TextFormat();

   if (formatter.italic == false)
   {
formatter.italic = true;
   }
   else
   {
formatter.italic = false;
   }

   _selectedBox.setTextFormat(formatter);

 So my question is how do i read the properties of a textbox in order
 to
 create an if statment to change the properties?

 SM
 ___
 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




-- 
-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] Tree item continuous autoscrolling after drag-n-drop

2008-04-03 Thread Andrew Murphy
Oop!  Just realized this is a Flex issue, not Flash coding specific.  Sorry
'bout that...


Andrew Murphy
Interactive Media Specialist
[EMAIL PROTECTED]

Delvinia
214 King Street West, Suite 214 
Toronto Canada M5H 3S6
P 416.364.1455 ext. 232
F 416.364.9830
W www.delvinia.com

CONFIDENTIALITY NOTICE
This email message may contain privileged or confidential information. If
you are not the intended recipient or received this communication by error,
please notify the sender and delete the message without copying or
disclosing it.

AVIS DE CONFIDENTIALITÉ
Ce message peut contenir de l'information légalement privilégiée ou
confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par
erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en
détruire le contenu sans le communiquer a d'autres ou le reproduire.
 
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andrew
Murphy
Sent: April 3, 2008 2:11 PM
To: 'Flash Coders List'
Subject: [Flashcoders] Tree item continuous autoscrolling after drag-n-drop

Hi.

 

I’m drag-n-dropping an object from one Tree component to another one.
Sometimes when I have an item dragged over the second Tree, ready to drop,
the dern thing starts scrolling.. usually upwards.. making it much more
challenging to drop the item in the right place.  It also sometimes gets
stuck scrolling, up or down, even when the mouse pointer is no long over the
Tree.  If the mouse exits from the top of the Tree it scrolls up, if it
exits from the bottom it scrolls down.. I can get it to flip back and forth
by moving the mouse over it.. but havn’t found any way to stop the scrolling
except by exiting the application and re-starting it.

 

Any ideas of what could be wrong or what I should investigate?

 

Thanks. :)

 


Andrew Murphy
Interactive Media Specialist
[EMAIL PROTECTED]

Delvinia
214 King Street West, Suite 214 

Toronto Canada M5H 3S6
P 416.364.1455 ext. 232
F 416.364.9830
W www.delvinia.com

CONFIDENTIALITY NOTICE
This email message may contain privileged or confidential information. If
you are not the intended recipient or received this communication by error,
please notify the sender and delete the message without copying or
disclosing it.

AVIS DE CONFIDENTIALITÉ
Ce message peut contenir de l'information légalement privilégiée ou
confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par
erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en
détruire le contenu sans le communiquer a d'autres ou le reproduire.

 


No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.22.5/1356 - Release Date: 02/04/2008
4:14 PM
 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.22.5/1356 - Release Date: 02/04/2008
4:14 PM
 

No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.22.5/1356 - Release Date: 02/04/2008
4:14 PM
 


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


Re: [Flashcoders] Reading properties of a textbox [AS3]

2008-04-03 Thread Stuart (FunkDaWeb)
YAY! It works! Thank you! :o)

Wont work with embedFonts = true thought! :o(

Onwards and upwards!

Thanks for your help!

SM
  - Original Message - 
  From: jonathan howe 
  To: Flash Coders List 
  Sent: Thursday, April 03, 2008 6:53 PM
  Subject: Re: [Flashcoders] Reading properties of a textbox [AS3]


  Okay, but in the simple example, you are using it for both:

  Okay, but formatter should not be treated as a property of _selectedBox.
  _selectedBox has no property named formatter.

  This is the offending line:

  if (_selectedBox.formatter.italic == false)

  You already have set formatter to the value of _selectedBox.getTextFormat();
  Thus your conditional should read:

  if (formatter.italic == false)

  To simplify it to keeping formatter separate from the current format, let's
  rewrite:

  var currentFormat:TextFormat = _selectedBox.getTextFormat();
  var formatter:TextFormat = new TextFormat();

if (currentFormat.italic == false)
{
 formatter.italic = true;
}
else
{
 formatter.italic = false;
}

   _selectedBox.setTextFormat(formatter);


  -jonathan


  On Thu, Apr 3, 2008 at 1:19 PM, Stuart (FunkDaWeb) [EMAIL PROTECTED]
  wrote:

   formatter is a blank variable and has nothing to do with reading the text
   propperties its used for setting them! I need to figure out how to tell if a
   text field is set to italic or not! once i can do this i can fix the if
   statement!
  
   do you have any idea how to do this?
  
  
  
   

  
  
   FUI - New code is this
  
   var formatter:TextFormat = _selectedBox.getTextFormat();
  
  if (_selectedBox.formatter.italic == false)
  {
  formatter.italic = true;
 }
 else
 {
  formatter.italic = false;
 }
  
_selectedBox.setTextFormat(formatter);
 - Original Message -
From: jonathan howe
To: Flash Coders List
 Sent: Thursday, April 03, 2008 5:53 PM
Subject: Re: [Flashcoders] Reading properties of a textbox [AS3]
  
  
Hi, Stuart,
  
Based on the error message sounds like maybe you are trying to access
_selectedBox.formatter or something else invalid. Can you repaste your
   new
code after the change?
  
-jonathan
  
  
On Thu, Apr 3, 2008 at 11:15 AM, Stuart (FunkDaWeb) [EMAIL PROTECTED]
   
wrote:
  
 thanks Jonathan for some reason i get this error when i change to your
 code...

 ReferenceError: Error #1069: Property formatter not found on
 flash.text.TextField and there is no default value.
   - Original Message -
  From: jonathan howe
  To: Flash Coders List
  Sent: Thursday, April 03, 2008 4:04 PM
  Subject: Re: [Flashcoders] Reading properties of a textbox [AS3]


  var formatter:TextFormat = _selectedBox.getTextFormat();

  On Thu, Apr 3, 2008 at 10:43 AM, Stuart (FunkDaWeb) 
   [EMAIL PROTECTED]
 
  wrote:

   Hi all im tring to write a button that changes the format of a
   textbox
   from normal to italic and back again. I have written the below code
   but
 i
   cannot seam to get it to work!
  
   var formatter:TextFormat = new TextFormat();
  
 if (formatter.italic == false)
 {
  formatter.italic = true;
 }
 else
 {
  formatter.italic = false;
 }
  
 _selectedBox.setTextFormat(formatter);
  
   So my question is how do i read the properties of a textbox in order
   to
   create an if statment to change the properties?
  
   SM
   ___
   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
  



  -- 
  -jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
  ___
  Flashcoders mailing list
  

[Flashcoders] maximum length of an xml document?

2008-04-03 Thread Allandt Bik-Elliott (Receptacle)
can anyone tell me what the maximum length i can go to is for an xml  
file to load into flash?


i'm working on a biggie

ta
a

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


Re: [Flashcoders] Reading properties of a textbox [AS3]

2008-04-03 Thread Cory Petosky
Replace that with:

formatter.italic = !currentFormat.italic;

The conditionals aren't necessary in that situation. :)

On Thu, Apr 3, 2008 at 1:21 PM, Stuart (FunkDaWeb) [EMAIL PROTECTED] wrote:
 YAY! It works! Thank you! :o)

  Wont work with embedFonts = true thought! :o(

  Onwards and upwards!

  Thanks for your help!

  SM


   - Original Message -
   From: jonathan howe
   To: Flash Coders List
   Sent: Thursday, April 03, 2008 6:53 PM
   Subject: Re: [Flashcoders] Reading properties of a textbox [AS3]


   Okay, but in the simple example, you are using it for both:

   Okay, but formatter should not be treated as a property of _selectedBox.
   _selectedBox has no property named formatter.

   This is the offending line:

   if (_selectedBox.formatter.italic == false)

   You already have set formatter to the value of _selectedBox.getTextFormat();
   Thus your conditional should read:

   if (formatter.italic == false)

   To simplify it to keeping formatter separate from the current format, let's
   rewrite:

   var currentFormat:TextFormat = _selectedBox.getTextFormat();
   var formatter:TextFormat = new TextFormat();

 if (currentFormat.italic == false)
 {
  formatter.italic = true;
 }
 else
 {
  formatter.italic = false;
 }

_selectedBox.setTextFormat(formatter);


   -jonathan


   On Thu, Apr 3, 2008 at 1:19 PM, Stuart (FunkDaWeb) [EMAIL PROTECTED]
   wrote:

formatter is a blank variable and has nothing to do with reading the text
propperties its used for setting them! I need to figure out how to tell 
 if a
text field is set to italic or not! once i can do this i can fix the if
statement!
   
do you have any idea how to do this?
   
   
   

 
   
   
FUI - New code is this
   
var formatter:TextFormat = _selectedBox.getTextFormat();
   
   if (_selectedBox.formatter.italic == false)
   {
   formatter.italic = true;
  }
  else
  {
   formatter.italic = false;
  }
   
 _selectedBox.setTextFormat(formatter);
  - Original Message -
 From: jonathan howe
 To: Flash Coders List
  Sent: Thursday, April 03, 2008 5:53 PM
 Subject: Re: [Flashcoders] Reading properties of a textbox [AS3]
   
   
 Hi, Stuart,
   
 Based on the error message sounds like maybe you are trying to access
 _selectedBox.formatter or something else invalid. Can you repaste your
new
 code after the change?
   
 -jonathan
   
   
 On Thu, Apr 3, 2008 at 11:15 AM, Stuart (FunkDaWeb) [EMAIL PROTECTED]

 wrote:
   
  thanks Jonathan for some reason i get this error when i change to your
  code...
 
  ReferenceError: Error #1069: Property formatter not found on
  flash.text.TextField and there is no default value.
- Original Message -
   From: jonathan howe
   To: Flash Coders List
   Sent: Thursday, April 03, 2008 4:04 PM
   Subject: Re: [Flashcoders] Reading properties of a textbox [AS3]
 
 
   var formatter:TextFormat = _selectedBox.getTextFormat();
 
   On Thu, Apr 3, 2008 at 10:43 AM, Stuart (FunkDaWeb) 
[EMAIL PROTECTED]
  
   wrote:
 
Hi all im tring to write a button that changes the format of a
textbox
from normal to italic and back again. I have written the below code
but
  i
cannot seam to get it to work!
   
var formatter:TextFormat = new TextFormat();
   
  if (formatter.italic == false)
  {
   formatter.italic = true;
  }
  else
  {
   formatter.italic = false;
  }
   
  _selectedBox.setTextFormat(formatter);
   
So my question is how do i read the properties of a textbox in order
to
create an if statment to change the properties?
   
SM
___
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] books for flash programming

2008-04-03 Thread Cory Petosky
That's not true. I'd say the majority of Flash coders I've met in real
life are pretty awful at AS3, and they're not worth hiring. Yet, they
get hired, because there's not enough Flash programmers to go around,
and the theory (in marketing agencies, anyway) is that a bad Flash
programmer is better than no Flash programmer at all. Beyond that,
most small marketing agencies can't tell a good Flash programmer from
a bad one anyway.

Knowing multiple languages well is a good indicator that you're a good
Flash programmer. This is not a causation statement, merely a
correlation. There are undoubtedly people who know multiple languages
who suck at Flash programming. Similarly, there are definitely people
who only know AS3 but are great Flash programmers. Nevertheless, in my
experience, the guys who have learned multiple languages (myself
included) understand the strengths and weaknesses of AS3/Flash much
better, on average, than those who have only ever used AS3/Flash.

In the end, though, the advantage to learning multiple languages is
that you'll be better at what you do. No question. It's been common
knowledge among programmers since the 1970s.

On Wed, Apr 2, 2008 at 6:38 PM, Muzak [EMAIL PROTECTED] wrote:

  Not to mention that a programmer who knows AS3, Java, and Lisp is
  immensely more valuable than one who just knows AS3. It proves you
  have the capacity to learn, which is a very marketable trait.
 
 

  BS.. Doesn't prove a thing..
  Someone who *just* knows AS3 may have - scratch that - *has* the capacity
 to learn any other language, but may never have had the need to.

  - Original Message - From: Cory Petosky
 [EMAIL PROTECTED]
  To: Flash Coders List flashcoders@chattyfig.figleaf.com
  Sent: Wednesday, April 02, 2008 11:54 PM

  Subject: Re: [Flashcoders] books for flash programming



  A native English speaker, when learning German, will generally remark
  Wow! Because of this feature in German, I now understand English a
  little better.
 
  Programming languages are the same way. Learning another
  object-oriented language will help you identify how features in
  ActionScript work (or don't work). And learning a language from
  another paradigm entirely (functional or procedural, probably) will
  help you identify weaknesses and strengths of object-oriented
  programming.
 
  Not to mention that a programmer who knows AS3, Java, and Lisp is
  immensely more valuable than one who just knows AS3. It proves you
  have the capacity to learn, which is a very marketable trait.
 
 


  ___
  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] books for flash programming

2008-04-03 Thread Kerry Thompson
Cory Petosky wrote:

 In the end, though, the advantage to learning multiple languages is
 that you'll be better at what you do. No question. It's been common
 knowledge among programmers since the 1970s.

I have to agree with Cory. I've been programming since 1981, and, to stay
employed, I have needed to learn Basic, COBOL, Fortran, Assembler, RPG,
Pascal, C, C++, HTML, JavaScript, VBScript, XSLT, Lingo, ActionScript (3
versions), and probably some others that I can't recall at the moment. (For
the record, my all-time favorite is ActionScript 3.)

I'm not saying that to boast, but to point out how quickly the industry
changes, and how adaptable you need to be. The ability to learn new
languages, and apply the algorithms you know to the new syntax, is crucial.
You young whippersnappers may not realize it, but ActionScript 3 will be
obsolete so quickly you won't know what happened. Flash itself may be
obsolete--it's already being replaced by Flex for a lot of code-heavy apps.
Look what happened to Director and Shockwave, once the king of the RIA.

When I started programming, only a few academics and military types knew
what a network was, nobody had e-mail, and even the term hyperlink was a
dreamer's concept. Nobody knows what computer science will look like in 10
years, much less 25. How many people here know how to program a quantum
computer where the unit of information is the Quark, which is not binary,
but may have 28 different states?

Programming languages are much like human languages. Learning a second
language makes it much easier to learn a third, then a fourth, and so on.
Plus, knowing another language helps you understand your primary language
better. I speak from experience (so to speak), as I learned Chinese as an
adult. It was a revelation, as was learning Assembler.

Don't get complacent with your AS3 or AS2 knowledge. You'll get stuck in a
rut, and your understanding of computers will be limited. Ask any programmer
who has done significant assembly-language programming. There's nothing like
getting close to the machine, on the bit level, to help you understand
what's happening in your ActionScript code, and how to optimize and organize
it.

Cordially,

Kerry Thompson


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


Re: [Flashcoders] how to use AV1Movie Class?

2008-04-03 Thread Sidnei Vladisauskis
Hi,

I tried use your example, I trace in completeHandler and see that the object
loaded is a AV1Movie, ok...

But my problemes are some functions not run, for examples hitTest, tweener
and other functions excluded in AS3.

Very bugs happen with my swf-AS2 loaded in my swf-AS3.

I need they run whitout bugs.
:o(

Is there any way?


On Thu, Apr 3, 2008 at 2:37 PM, Sidnei Vladisauskis [EMAIL PROTECTED]
wrote:

 tks...

 I will try this example...

 tks a lot...


 On Thu, Apr 3, 2008 at 12:59 PM, ekameleon [EMAIL PROTECTED] wrote:

  hello :)
 
  see the example in the reference of the AS3 class :
 
  http://livedocs.adobe.com/flex/2/langref/flash/display/Loader.html
 
  See the example in the end of the page
 
  In the completeHandler callback method you can test the type of the
  event.target.content reference :)
 
  Example
 
  private function completeHandler(event:Event):void
  {
  trace(completeHandler:  + describeType(
  event.target.contentType ) ); // import the flash.utils.describeType
  method in the header of your code.
  }
 
 
 
  and read :
 
  http://livedocs.adobe.com/flex/2/langref/flash/display/AVM1Movie.html
 
  .. after, open Flex or Flash CS3 and copy the code and test it with an
  external swf in AS2 and AS3...
 
  It's easy to test it :)
 
  EKA+ :)
 
 
  2008/4/3, Sidnei Vladisauskis [EMAIL PROTECTED]:
  
   Hi ekameleon ,
  
   tks for your help, but was you have a exemple??
  
   tks again.
  
  
   On Thu, Apr 3, 2008 at 12:17 PM, ekameleon [EMAIL PROTECTED]
  wrote:
  
hello :)
   
yes when you use the Loader class.. inside your reference you can
  find
   the
content reference who is the reference of the Bitmap or MovieClip,
etc...
if the external swf is a AVM1 file the type of the reference is
  AVM1.
   
Use the Loader class and test the content property when the external
  swf
is
loading.
   
EKA+ :)
   
2008/4/3, Sidnei Vladisauskis [EMAIL PROTECTED]:

 Hi,

 I´m developing my new portfolio in AS3 for learn.

 I need load swf AS2 into the movieclip in my swf AS3.

 I researched, but I don´t find one documentation for this.

 I find a reference using AV1Movie Class?

 is it correct for load a swf AS2?

 But how to use this class with Loader class?

 Tks.
 ___
 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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] books for flash programming

2008-04-03 Thread Vlado Krempl

Kerry Thompson wrote:


I have to agree with Cory. I've been programming since 1981, and, to stay
employed, I have needed to learn Basic, COBOL, Fortran, Assembler, RPG,
Pascal, C, C++, HTML, JavaScript, VBScript, XSLT, Lingo, ActionScript (3
versions), and probably some others that I can't recall at the moment. (For
the record, my all-time favorite is ActionScript 3.)


Hi Kerry,

I'm a designer who is getting more and more interested in programming and 
not just actionscript 3.
From your list above, and in your opinion, which are the must learn 

programs to learn?
I have been doing alot of reading on PHP, HTML, Javascript and Actionscript 
3.


Any advice would be appreciated.

Cheers,

Vlado Krempl
Sydney, Australia

- Original Message - 
From: Kerry Thompson [EMAIL PROTECTED]

To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
Sent: Friday, April 04, 2008 7:14 AM
Subject: RE: [Flashcoders] books for flash programming



Cory Petosky wrote:


In the end, though, the advantage to learning multiple languages is
that you'll be better at what you do. No question. It's been common
knowledge among programmers since the 1970s.


I have to agree with Cory. I've been programming since 1981, and, to stay
employed, I have needed to learn Basic, COBOL, Fortran, Assembler, RPG,
Pascal, C, C++, HTML, JavaScript, VBScript, XSLT, Lingo, ActionScript (3
versions), and probably some others that I can't recall at the moment. 
(For

the record, my all-time favorite is ActionScript 3.)

I'm not saying that to boast, but to point out how quickly the industry
changes, and how adaptable you need to be. The ability to learn new
languages, and apply the algorithms you know to the new syntax, is 
crucial.

You young whippersnappers may not realize it, but ActionScript 3 will be
obsolete so quickly you won't know what happened. Flash itself may be
obsolete--it's already being replaced by Flex for a lot of code-heavy 
apps.

Look what happened to Director and Shockwave, once the king of the RIA.

When I started programming, only a few academics and military types knew
what a network was, nobody had e-mail, and even the term hyperlink was a
dreamer's concept. Nobody knows what computer science will look like in 10
years, much less 25. How many people here know how to program a quantum
computer where the unit of information is the Quark, which is not binary,
but may have 28 different states?

Programming languages are much like human languages. Learning a second
language makes it much easier to learn a third, then a fourth, and so on.
Plus, knowing another language helps you understand your primary language
better. I speak from experience (so to speak), as I learned Chinese as an
adult. It was a revelation, as was learning Assembler.

Don't get complacent with your AS3 or AS2 knowledge. You'll get stuck in a
rut, and your understanding of computers will be limited. Ask any 
programmer
who has done significant assembly-language programming. There's nothing 
like

getting close to the machine, on the bit level, to help you understand
what's happening in your ActionScript code, and how to optimize and 
organize

it.

Cordially,

Kerry Thompson


___
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] books for flash programming

2008-04-03 Thread Kerry Thompson
Vlado Krempl wrote:

 I'm a designer who is getting more and more interested in programming and
 not just actionscript 3.
 From your list above, and in your opinion, which are the must learn
 programs to learn?
 I have been doing alot of reading on PHP, HTML, Javascript and
Actionscript
 3.

Of the languages I know, the only one I could recommend for a young
programmer would be C++ (and, of course, ActionScript 3). Even that is
problematic, though--C++ may be an obsolescent language itself.

More to the point would be what language would I learn that I don't already
know. PHP would be near the top of the list. If you want to branch out, I
think C# and .NET is the up-and-coming language for the next few
years--actually, make that Visual Basic and C#, both with .NET. 

Java would be high on my list, too, especially since it is so similar to
AS3. I think there is a future also for Python and some other Web-oriented
languages.

What is clear is that, at the moment, Web-oriented development is the growth
field, more so than desktop apps.

Cordially,

Kerry Thompson


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


Re: [Flashcoders] books for flash programming

2008-04-03 Thread iHuman
I would suggest books where you can learn the principles of object  
oriented programming - as this will carry over to many languages. I  
wish I had learned it from the start!


elaine


On Apr 3, 2008, at 7:45 PM, Kerry Thompson wrote:

Vlado Krempl wrote:

I'm a designer who is getting more and more interested in  
programming and

not just actionscript 3.
From your list above, and in your opinion, which are the must  
learn

programs to learn?
I have been doing alot of reading on PHP, HTML, Javascript and

Actionscript

3.


Of the languages I know, the only one I could recommend for a young
programmer would be C++ (and, of course, ActionScript 3). Even that is
problematic, though--C++ may be an obsolescent language itself.

More to the point would be what language would I learn that I don't  
already
know. PHP would be near the top of the list. If you want to branch  
out, I

think C# and .NET is the up-and-coming language for the next few
years--actually, make that Visual Basic and C#, both with .NET.

Java would be high on my list, too, especially since it is so  
similar to
AS3. I think there is a future also for Python and some other Web- 
oriented

languages.

What is clear is that, at the moment, Web-oriented development is  
the growth

field, more so than desktop apps.

Cordially,

Kerry Thompson


___
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