Re: [Flashcoders] Object Oriented Programming with Actionscript source files

2010-05-27 Thread Henrik Andersson

Donald O. Davis wrote:

Hello,

Does anyone know where I can get the Object Oriented Programming with
Actionscript source files?



I would check the first few pages of the book. That and the last few 
pages of the book.

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


Re: [Flashcoders] Object Oriented Programming with Actionscript source files

2010-05-27 Thread John McCormack

Downloads for all books are here:
http://www.friendsofed.com/downloads.html

By the way, the eBook costs just $10 - today only:
http://friendsofed.com/dotw/

John

On 26/05/2010 23:30, Donald O. Davis wrote:

Hello,

Does anyone know where I can get the Object Oriented Programming with 
Actionscript source files?



Thanks,

Don

___
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] Get XML nodes path.

2010-05-27 Thread Glen Pike

Hi,

I have had a google and a read of the docs - I am trying to see if 
there is a shortcut to finding the full path to a specific node in an 
XML document from the node itself.


Can this be done without walking back up the node tree in E4X / 
XML, e.g. a method, or something?


Thanks

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


[Flashcoders] Loader.unload not freeing the memory

2010-05-27 Thread Sumeet Kumar

Hi All,

I have some AS2 swf files(with lots of AS2 code) which i am loading in a AS3 
file using Loader Class Object. The problem is that once i unload the as2 
swf from the AS3 file, the memory is not just getting freed. I have removed 
all the as3 listeners.


Has anyone experinced something like this or is there something which i am 
doing wrong. Any guidance and suggestions in this regard would be a great 
help


Thanks in Advance
Sumeet Kumar 



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


RE: [Flashcoders] Loader.unload not freeing the memory

2010-05-27 Thread Andrew Murphy
Hi. :)

Are you calling garbage collection after you unload?  If you don't call for
it then it may take a while for Flash to get around to doing it.

http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-
actionscript-3-with-air/

(The above article is AIR specific, but some of it should apply to Flash
coding as well.  I think...)


 --
Andrew Murphy
Interactive Media Developer
amur...@delvinia.com

Delvinia
370 King Street West, 5th Floor, Box 4 
Toronto Canada M5V 1J9
P (416) 364-1455 ext. 232
F (416) 364-9830  
W www.delvinia.com


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Sumeet Kumar
Sent: May 27, 2010 08:22 am
To: Flash Coders List
Subject: [Flashcoders] Loader.unload not freeing the memory

Hi All,

I have some AS2 swf files(with lots of AS2 code) which i am loading in a AS3

file using Loader Class Object. The problem is that once i unload the as2 
swf from the AS3 file, the memory is not just getting freed. I have removed 
all the as3 listeners.

Has anyone experinced something like this or is there something which i am 
doing wrong. Any guidance and suggestions in this regard would be a great 
help

Thanks in Advance
Sumeet Kumar 


___
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] Loader.unload not freeing the memory

2010-05-27 Thread Glen Pike

Also note that Flash will only free up memory it thinks it needs to...

On 27/05/2010 13:37, Andrew Murphy wrote:

Hi. :)

Are you calling garbage collection after you unload?  If you don't call for
it then it may take a while for Flash to get around to doing it.

http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-
actionscript-3-with-air/

(The above article is AIR specific, but some of it should apply to Flash
coding as well.  I think...)


  --
Andrew Murphy
Interactive Media Developer
amur...@delvinia.com

Delvinia
370 King Street West, 5th Floor, Box 4
Toronto Canada M5V 1J9
P (416) 364-1455 ext. 232
F (416) 364-9830
W www.delvinia.com


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Sumeet Kumar
Sent: May 27, 2010 08:22 am
To: Flash Coders List
Subject: [Flashcoders] Loader.unload not freeing the memory

Hi All,

I have some AS2 swf files(with lots of AS2 code) which i am loading in a AS3

file using Loader Class Object. The problem is that once i unload the as2
swf from the AS3 file, the memory is not just getting freed. I have removed
all the as3 listeners.

Has anyone experinced something like this or is there something which i am
doing wrong. Any guidance and suggestions in this regard would be a great
help

Thanks in Advance
Sumeet Kumar


___
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] Loader.unload not freeing the memory

2010-05-27 Thread allandt bik-elliott (thefieldcomic.com)
isn't unload buggy still?

http://www.gskinner.com/blog/archives/2008/04/failure_to_unlo.html

http://www.gskinner.com/blog/archives/2008/04/failure_to_unlo.htmla

On 27 May 2010 13:55, Glen Pike g...@engineeredarts.co.uk wrote:

 Also note that Flash will only free up memory it thinks it needs to...


 On 27/05/2010 13:37, Andrew Murphy wrote:

 Hi. :)

 Are you calling garbage collection after you unload?  If you don't call
 for
 it then it may take a while for Flash to get around to doing it.


 http://www.craftymind.com/2008/04/09/kick-starting-the-garbage-collector-in-
 actionscript-3-with-air/

 (The above article is AIR specific, but some of it should apply to Flash
 coding as well.  I think...)


  --
 Andrew Murphy
 Interactive Media Developer
 amur...@delvinia.com

 Delvinia
 370 King Street West, 5th Floor, Box 4
 Toronto Canada M5V 1J9
 P (416) 364-1455 ext. 232
 F (416) 364-9830
 W www.delvinia.com


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Sumeet
 Kumar
 Sent: May 27, 2010 08:22 am
 To: Flash Coders List
 Subject: [Flashcoders] Loader.unload not freeing the memory

 Hi All,

 I have some AS2 swf files(with lots of AS2 code) which i am loading in a
 AS3

 file using Loader Class Object. The problem is that once i unload the as2
 swf from the AS3 file, the memory is not just getting freed. I have
 removed
 all the as3 listeners.

 Has anyone experinced something like this or is there something which i am
 doing wrong. Any guidance and suggestions in this regard would be a great
 help

 Thanks in Advance
 Sumeet Kumar


 ___
 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] Funny, Code Worked Before...

2010-05-27 Thread John Singleton
Hi;
I have this code:

function completePreloader()
{
navigateToURL(new URLRequest('index.py'));
trace('yep');
}

that is triggered after all the assets have loaded in the preloader. It prints 
the trace. But it doesn't surf to the URL. It just sits there. Also, when I run 
the other code that works, which is basically identical, it prints this error:

Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

because it can't surf to that relative URL. But my new *.as file doesn't print 
that error. Why?
TIA,
John



  

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


Re: [Flashcoders] Funny, Code Worked Before...

2010-05-27 Thread Matt S.
does it work differently locally vs when uploaded to the server?

.m

On Thu, May 27, 2010 at 10:43 AM, John Singleton
johnsingleton...@yahoo.com wrote:
 Hi;
 I have this code:

        function completePreloader()
        {
            navigateToURL(new URLRequest('index.py'));
            trace('yep');
        }

 that is triggered after all the assets have loaded in the preloader. It 
 prints the trace. But it doesn't surf to the URL. It just sits there. Also, 
 when I run the other code that works, which is basically identical, it prints 
 this error:

 Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

 because it can't surf to that relative URL. But my new *.as file doesn't 
 print that error. Why?
 TIA,
 John





 ___
 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] Funny, Code Worked Before...

2010-05-27 Thread Deepanjan Das
Hi John,
No in this case no need to pass the Event.

Try classifying the SWF file as local-with-networking or trusted.

Check for allowScriptAccess=always in the containing document.

You will not be able to navigate the windows _self, _top, or _parent
if the SWF file is contained by an HTML page that has set the
allowScriptAccess to none, or to sameDomain when the domains of the HTML
file and the SWF file do not match.

Check all of these

Cheers
Deepanjan Das

On Thu, May 27, 2010 at 8:38 PM, John Singleton
johnsingleton...@yahoo.comwrote:

 From: Deepanjan Das deepanjan@gmail.com
 
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Cc: johnsingleton...@yahoo.com
 Sent: Thu, May 27, 2010 10:57:38 AM
 Subject: Re: [Flashcoders] Funny, Code Worked Before...
 
 Just a guess as I am not aware of the whole picture:
 try this -
 
  function completePreloader(e:Event)
 

 Well, I tried that, but what argument am I supposed to pass? Again, this
 doesn't seem to be on track, because this same code works fine with another
 *.as file. All I've done is changed this:

private function imageLoaded9(event:Event):void
{
imgFlag9 = true;
if (imgFlag1 == true  imgFlag2 == true  imgFlag3 == true 
 imgFlag4 == true  imgFlag5 == true  imgFlag6 == true  imgFlag7 == true
  imgFlag8 == true  imgFlag9 == true)
{
completePreloader();
}
trace('9');
}

 which is called after each image is loaded (in this case the 9th). When all
 the images load, then completePreloader() is called, and it gets called
 because the trace in the same prints. But for some reason this:

navigateToURL(new URLRequest('index.py'));

 never gets called. Why??
 TIA,
 John

 
 as you call this on an event.
 
 Let me know. Also check if your debugger is on.
 
 
 On Thu, May 27, 2010 at 8:13 PM, John Singleton 
 johnsingleton...@yahoo.com wrote:
 
 Hi;
 I have this code:
 
 function completePreloader()
 {
 navigateToURL(new URLRequest('index.py'));
 trace('yep');
 }
 
 that is triggered after all the assets have loaded in the preloader. It
 prints the trace. But it doesn't surf to the URL. It just sits there. Also,
 when I run the other code that works, which is basically identical, it
 prints this error:
 
 Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
 
 because it can't surf to that relative URL. But my new *.as file
 doesn't print that error. Why?
 TIA,
 John
 
 
 
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 --
 Warm Regards
 Deepanjan Das
 M: +91 9836582808
 
 Think of the environment before printing this email
 







-- 
Warm Regards
Deepanjan Das
M: +91 9836582808

Think of the environment before printing this email
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] GPU, Direct or Normal?

2010-05-27 Thread Kevin Newman
I'd like a lot more info on this subject as well - general info - when 
is which mode better, what happens if the GPU isn't supported on the 
particular hardware, how can I take better advantage of GPU, etc.


Kevin N.



On 5/24/10 8:28 AM, Fahim Akhter wrote:

Hi,

In a event driven game with lots of graphics (static essentially ) which
mode would you suggest ? Direct/GPU or normal?

Fahim Akhter
Game Developer | White Rabbit Studios |
http://apps.facebook.com/feline-frenzy/
___
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] Funny, Code Worked Before...

2010-05-27 Thread John Singleton
 From: John Singleton johnsingleton...@yahoo.com

 To: Deepanjan Das deepanjan@gmail.com
 Sent: Thu, May 27, 2010 1:03:10 PM
 Subject: Re: [Flashcoders] Funny, Code Worked Before...
 
 From: Deepanjan Das 
 href=mailto:deepanjan@gmail.com;deepanjan@gmail.com
To: 
 John Singleton 
 href=mailto:johnsingleton...@yahoo.com;johnsingleton...@yahoo.com; 
 ymailto=mailto:flashcoders@chattyfig.figleaf.com; 
 href=mailto:flashcoders@chattyfig.figleaf.com;flashcoders@chattyfig.figleaf.com
Sent: 
 Thu, May 27, 2010 11:22:51 AM
Subject: Re: [Flashcoders] Funny, Code 
 Worked Before...

Hi John,
No in this case no need to pass 
 the Event.

Try classifying the SWF file as local-with-networking 
 or trusted.

Do I really need to go to that length? I have another script 
without that that works fine. When I run said script on my Mac Pro, since it 
can't find the relative URL, it throws an error, that the script in question 
here doesn't throw. If I need to do this, can you suggest how to do 
this?


Check for allowScriptAccess=always in the containing 
 document.

I changed it to no avail :(
TIA,
John


  

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


Re: [Flashcoders] Papervision 3d help

2010-05-27 Thread allandt bik-elliott (thefieldcomic.com)
yeh you're going to have to get heavily into some as3 - there's no half
measures with pv

a

On 25 May 2010 21:26, Merrill, Jason jason.merr...@bankofamerica.comwrote:

 You need to download the Papervision3D library. And you have to know how
 to use Papervision - you can't just apply small little parts of it to
 other Flash objects very easily - you need to work within the
 Papervision3D framework for your project.


 Jason Merrill

 Instructional Technology Architect
 Bank of  America  Global Learning

 Join the Bank of America Flash Platform Community  and visit our
 Instructional Technology Design Blog
 (note: these are for Bank of America employees only)






 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Lehr,
 Theodore
 Sent: Tuesday, May 25, 2010 4:07 PM
 To: Flash Coders List
 Subject: [Flashcoders] Papervision 3d help

 Sorry for being such a newbie, but if I want to use papervision 3d (i.e.
 something like: import
 org.papervision3d.core.effects.view.ReflectionView) what do I need to
 do?

 Is there a component I need to download?
 ___
 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] Font embedding with Regular Bold versions

2010-05-27 Thread dopeco...@hotmail.com

Hi all,

I have searched far and wide for the solution on this one, but to no 
avail. The old chestnut of font issue rears it's head again (reminds me 
of good old Flash 4 days), the basic scenario is this, and a link to a 
sample file is below:


Two textfields on stage, the first, a static text field using a regular 
weighting of a font, for example Arial Regular. The second, a dynamic 
text field, using a bold weighting of the same font, e.g. Arial Bold. 
The dynamic field has its character embedding set appropriately, but 
here is the kicker. If I manually type something into this field and 
publish, all is well in font land .. however if I set it's .text 
property in AS, the bold text field will not render while the static 
field is using the regular version of the font.


To add more fun and games, if I set the static field to the italic or 
anything else version of the same font, the dynamic bold field shows 
fine ... this happens on multiple fonts, the test file below uses Arial 
in an attempt to have something most people will have on their system.


Any ideas at all? .. Even embedding the entire bold font as a library 
item doesn't work (and is not practical for what it is for), so any help 
would be most appreciated.


Sample file:

http://singlenotion.com/tmp/fontTest.zip

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


[Flashcoders] union 1000-user free licence announced (multiuser dev platform)

2010-05-27 Thread co...@moock.org

greetings flashcoders.

at fitc, we recently announced a free 1000-user licence for union:

http://www.unionplatform.com/?p=1115

also, this week, we posted an online multiplayer pong game tutorial:
http://www.unionplatform.com/?page_id=1229

and a multiuser fridge magnets tutorial:
http://www.unionplatform.com/?page_id=1159

both tutorials include all demo source code.

what's union?

Union is a development platform for creating multiuser applications. It 
includes the Union Server, a multiuser communications server, and 
Reactor, an ActionScript 3.0 framework for creating Adobe Flash client 
applications.


sorry for the intrusion, but I'm trying to get the word out that there's 
now a free option for large-scale multiuser game and app projects.


dave, please let me know if this type of announcement is inappropriate 
for flashcoders.


kind regards,
colin moock
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Font embedding with Regular Bold versions

2010-05-27 Thread Sumeet Kumar

Hi :)

Not sure why, but unchecking the auto kern  checkbox solved the problem for 
me.


Thanks
Sumeet Kumar

- Original Message - 
From: dopeco...@hotmail.com

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Friday, May 28, 2010 6:25 AM
Subject: [Flashcoders] Font embedding with Regular  Bold versions


Hi all,

I have searched far and wide for the solution on this one, but to no
avail. The old chestnut of font issue rears it's head again (reminds me
of good old Flash 4 days), the basic scenario is this, and a link to a
sample file is below:

Two textfields on stage, the first, a static text field using a regular
weighting of a font, for example Arial Regular. The second, a dynamic
text field, using a bold weighting of the same font, e.g. Arial Bold.
The dynamic field has its character embedding set appropriately, but
here is the kicker. If I manually type something into this field and
publish, all is well in font land .. however if I set it's .text
property in AS, the bold text field will not render while the static
field is using the regular version of the font.

To add more fun and games, if I set the static field to the italic or
anything else version of the same font, the dynamic bold field shows
fine ... this happens on multiple fonts, the test file below uses Arial
in an attempt to have something most people will have on their system.

Any ideas at all? .. Even embedding the entire bold font as a library
item doesn't work (and is not practical for what it is for), so any help
would be most appreciated.

Sample file:

http://singlenotion.com/tmp/fontTest.zip

Cheers
Adam
___
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] GPU, Direct or Normal?

2010-05-27 Thread Fahim Akhter
That makes two of us brother.

Fahim Akhter
Game Developer | White Rabbit Studios |
http://apps.facebook.com/feline-frenzy/


On Thu, May 27, 2010 at 9:33 PM, Kevin Newman capta...@unfocus.com wrote:

 I'd like a lot more info on this subject as well - general info - when is
 which mode better, what happens if the GPU isn't supported on the particular
 hardware, how can I take better advantage of GPU, etc.

 Kevin N.




 On 5/24/10 8:28 AM, Fahim Akhter wrote:

 Hi,

 In a event driven game with lots of graphics (static essentially ) which
 mode would you suggest ? Direct/GPU or normal?

 Fahim Akhter
 Game Developer | White Rabbit Studios |
 http://apps.facebook.com/feline-frenzy/
 ___
 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