Re: [Flashcoders] Garbage Collection difficulty

2009-02-02 Thread Leandro Ferreira
quick trick:
http://blogs.eyepartner.com/adrian/flex/flex-tip-6-garbage-collection-in-flex/



On Thu, Jan 29, 2009 at 6:41 AM, Sander Schuurman 
sander.schuur...@oswaldandruby.com wrote:

 Thnx! ran a few tests on a server; and indeed my code is doing great, and
 the GC occurs when some more memory is needed... thnx again...

 I think the concept of this GC is key in AS3 development

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
 flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nate Beck
 Sent: Wednesday, 28 January 2009 17:34
 To: Flash Coders List
 Subject: Re: [Flashcoders] Garbage Collection difficulty

 Ah yes... I knew I read it somewhere... It's in that Grant Skinner article.


 *Deferred GC and Indeterminacy*
 A *very* important thing to understand about the Garbage Collector in FP9
 is
 that it's operations are deferred. Your objects will not be removed
 immediately when all active references are deleted, instead they will be
 removed at some indeterminate time in the future (from a developer
 standpoint). The GC uses a set of heuristics that look at RAM allocation
 and
 the size of the memory stack (among other things) to determine when to run.
 As a developer, you must accept that fact that you will have no way of
 knowing when (or even if) your inactive objects will get deallocated. You
 must also be aware that inactive objects will continue to execute
 indefinitely (until the GC deallocates it), so code will keep running (ex.
 enterFrames), sounds will keep playing, loads will keep happening, events
 will keep firing, etc.

 It's very important to remember that you have no control over when your
 objects will be deallocated, so you must make them as inert as possible
 when
 you are finished with them. Strategies to manage this will be the focus for
 a future article.


 On Wed, Jan 28, 2009 at 8:31 AM, Nate Beck n...@tldstudio.com wrote:

  It was my understanding that Garbage Collection doesn't always occur
 right
  away.  When you have orphaned objects sitting on the heap, they are *
  eligible* for garbage collection.  That doesn't mean they will be removed
  from memory right away.  Especially if you're testing for JUST that to
  happen.  Usually GC occurs when more memory is needed.
 
  Someone else could probably speak to this topic much more intelligently
  than me.. but that was my understanding of how GC in general works.
 
  Cheers
 
On Tue, Jan 27, 2009 at 6:04 AM, Sander Schuurman 
  sander.schuur...@oswaldandruby.com wrote:
 
  Thnx for the links... tried some, but still with no success... I now
 have
  the following:
 
  public class Image extends MovieClip
  {
   private var _thumbLoader:Loader;
   private var _largeLoader:Loader;
 
   private var _thumb:Bitmap;
   private var _large:Bitmap;
 
   public function loadThumb() :void
   {
   _thumbLoader = new Loader();
   _thumbLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
 thumbLoaded, false, 0, true);
   _thumbLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,
 errorOccured, false, 0, true);
   _thumbLoader.load(new URLRequest(_tu));
   }
 
   private function thumbLoaded( e :Event ) :void
   {
   _thumb = Bitmap(e.currentTarget.content);
   _thumb.smoothing = true;
 
   addChild(_thumb);
 
   _thumbLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE,
 
   thumbLoaded);
 
  _thumbLoader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR,
 
   errorOccured);
   _thumbLoader = null;
 
   dispatchEvent(new Event(Image.IMG_LOADED));
   }
 
   public function loadLarge() :void
   {
   _largeLoader = new Loader();
   _largeLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
 largeLoaded, false, 0, true);
   _largeLoader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,
 errorOccured, false, 0, true);
   _largeLoader.load(new URLRequest(_lu));
   }
 
   private function largeLoaded( e :Event ) :void
   {
   _large = e.currentTarget.content;
   _large.smoothing = true;
   addChild(_large);
 
   _largeLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE,
 
   largeLoaded);
 
  _largeLoader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR,
 
   errorOccured);
   //_largeLoader.content.dispose();
   _largeLoader = null;
 
   dispatchEvent(new Event(Image.IMG_LOADED));
   }
   public function disposeLarge() :void
   {
   if (_large)
{
 removeChild(_large);
 _large.bitmapData.dispose();
 _large = null;
}
   }
 
  public function dispose() :void
   {
   disposeLarge();
 
   removeChild(_thumb);
   _thumb.bitmapData.dispose();
   _thumb = null
   }
 
  }
 
  Anyone some tips? The large bitmap stays in memory...
 
  -Original Message-
  From: flashcoders-boun...@chattyfig.figleaf.com [mailto:
  

[Flashcoders] Full screen video in a full screen Flash..?

2009-02-02 Thread Andrew Murphy
Hello. :)
 
Is there a way to have a full screen Flash (not a video) which has a video
player in it, without having the video itself jump to full screen?
 
What I'd like to do is have a Flash piece which goes full screen, then at
some points in the user's interaction with it there may be a video player in
this Flash piece.  The user would then have the option to view the video
full screen within the already full screen Flash piece.
 
Currently whenever I load a video player into a full screen non-video Flash
the video jumps to full screen the moment it loads.
 


Andrew Murphy
Interactive Media Specialist
 mailto:amur...@delvinia.com amur...@delvinia.com

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.

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


Re: [Flashcoders] This is kind of Wonderfl

2009-02-02 Thread Alain Rousseau

not SPAM,

TYPO :)


http://wonderfl.kayac.com/

Merrill, Jason wrote:

Is this spam?  Or did that site not pay their ISP dues?  This 
(http://wonderfl.kayack.com/) seems to be a web site circa 1998 - what does 
this have to do with Flash?


Jason Merrill
Bank of America Instructional Technology  Media   ·   Learning Performance 
Solutions LLD

Interested in Flash Platform technologies?  Join the Bank of America Flash Platform Community 
Interested in innovative ideas in Learning?  Check out the Innovative Learning Blog and subscribe.






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Steve Mathews
Sent: Monday, February 02, 2009 10:58 AM
To: azf...@googlegroups.com; flexcod...@yahoogroups.com; Flash Coders List
Subject: [Flashcoders] This is kind of Wonderfl

Spotted a post over at Techcrunch about wonderfl.kayack.com . Looks like a
pretty cool project. And if the creator(s) happen to see this, a big thumbs
up!
Steve
___
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] This is kind of Wonderfl

2009-02-02 Thread Steve Mathews
Spotted a post over at Techcrunch about wonderfl.kayack.com . Looks like a
pretty cool project. And if the creator(s) happen to see this, a big thumbs
up!
Steve
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: This is kind of Wonderfl

2009-02-02 Thread Steve Mathews
And I jacked the url: http://wonderfl.kayac.com

On Mon, Feb 2, 2009 at 8:57 AM, Steve Mathews happy...@gmail.com wrote:

 Spotted a post over at Techcrunch about wonderfl.kayack.com . Looks like a
 pretty cool project. And if the creator(s) happen to see this, a big thumbs
 up!
 Steve

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


[Flashcoders] Re: [flexcoders] This is kind of Wonderfl

2009-02-02 Thread Paul Andrews
I think the word for this is SPAM. Don't waste your time.
  - Original Message - 
  From: Steve Mathews 
  To: azf...@googlegroups.com ; flexcod...@yahoogroups.com ; Flash Coders List 
  Sent: Monday, February 02, 2009 3:57 PM
  Subject: [flexcoders] This is kind of Wonderfl
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] This is kind of Wonderfl

2009-02-02 Thread Merrill, Jason
Just playing devil's advocate, why would anyone want to build Flash online?  
It's technically very impressive, but with all the free offline tools out 
there, I don't see why it would be necessary or useful.  ??  

Jason Merrill
Bank of America Instructional Technology  Media   ·   Learning Performance 
Solutions LLD

Interested in Flash Platform technologies?  Join the Bank of America Flash 
Platform Community 
Interested in innovative ideas in Learning?  Check out the Innovative Learning 
Blog and subscribe.






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Sidney de Koning
Sent: Monday, February 02, 2009 11:08 AM
To: Flash Coders List
Subject: Re: [Flashcoders] This is kind of Wonderfl

He wrote the link wrong, it is: http://wonderfl.kayac.com/

Its pretty f* awesome! And most def the coolest i've seen in   
along time!

Sid

On Feb 2, 2009, at 5:02 PM, Merrill, Jason wrote:

 Is this spam?  Or did that site not pay their ISP dues?  This 
 (http://wonderfl.kayack.com/ 
 ) seems to be a web site circa 1998 - what does this have to do with  
 Flash?


 Jason Merrill
 Bank of America Instructional Technology  Media   ·   Learning  
 Performance Solutions LLD

 Interested in Flash Platform technologies?  Join the Bank of America  
 Flash Platform Community
 Interested in innovative ideas in Learning?  Check out the  
 Innovative Learning Blog and subscribe.





 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com 
 [mailto:flashcoders-boun...@chattyfig.figleaf.com 
 ] On Behalf Of Steve Mathews
 Sent: Monday, February 02, 2009 10:58 AM
 To: azf...@googlegroups.com; flexcod...@yahoogroups.com; Flash  
 Coders List
 Subject: [Flashcoders] This is kind of Wonderfl

 Spotted a post over at Techcrunch about wonderfl.kayack.com . Looks  
 like a
 pretty cool project. And if the creator(s) happen to see this, a big  
 thumbs
 up!
 Steve
 ___
 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

Sidney de Koning - be a geek, in rockstar style!
Flash / AIR Developer @ www.funky-monkey.nl
Technical Writer @ www.insideria.com

___
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] AS3 - Font Haxe compilation

2009-02-02 Thread Juan José Díaz
Hello , I'm having some troubles creating a swf with fonts embedded.
first I create a swf from swmill with the font and works perfect
(resource.swf)
then compile another swf from haxe with resources included inside, and thats
also fine.
but when i test my swf to see my fonts , doesn't exists.
if i decompile my swf doesnt show my font class , that should be inside, but
it shows my real font included as resource(glyphs).

here is the code :

*swfmill* 
?xml version=1.0 encoding=iso-8859-1 ?
movie version=9
frame
library
font id=Symbols name=Symbols import=/home/*/arial.ttf  /
/library
/frame
/movie

*Haxe* 

*Compile.hxml*
-swf /home/**/SharedFont20090130.swf
-cp /home/***/
-swf-lib resources.swf
-swf-version 9
-main SharedFont


*SharedFont.hx*
class Symbols extends flash.text.Font {
 function new(){
 super();
 return;
 }
}
class SharedFont {
static function main() {
   trace('hello world');
}
}


Any Idea what am i doing wrong? .
i cant use that font in any textfield, it says that is fine ,... but the
glyphs are not shown. :(

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


RE: [Flashcoders] This is kind of Wonderfl

2009-02-02 Thread Merrill, Jason
Is this spam?  Or did that site not pay their ISP dues?  This 
(http://wonderfl.kayack.com/) seems to be a web site circa 1998 - what does 
this have to do with Flash?


Jason Merrill
Bank of America Instructional Technology  Media   ·   Learning Performance 
Solutions LLD

Interested in Flash Platform technologies?  Join the Bank of America Flash 
Platform Community 
Interested in innovative ideas in Learning?  Check out the Innovative Learning 
Blog and subscribe.





-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Steve Mathews
Sent: Monday, February 02, 2009 10:58 AM
To: azf...@googlegroups.com; flexcod...@yahoogroups.com; Flash Coders List
Subject: [Flashcoders] This is kind of Wonderfl

Spotted a post over at Techcrunch about wonderfl.kayack.com . Looks like a
pretty cool project. And if the creator(s) happen to see this, a big thumbs
up!
Steve
___
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] This is kind of Wonderfl

2009-02-02 Thread Anthony Pace

Hi Jason,

Actually I think something like this has the potential to be great if 
taken in the right direction, and given a GUI that is much better; 
however, there is definitely the draw back of speed, if the server has 
to compile a file for 10 to 100 to a 1000 users at once.


Imagine a scenario where a project is kept entirely on one server, and 
multiple people can edit a file separately or at the same time in 
realtime, like whiteboarding, using ajax or flash and amf, and choosing 
the revision, and of course all done without the hassles of purchasing 
licenses for multiple computers, downloading every file required for a 
build, and installing an app on every users machine.


They already do this with mainframe style apps, so I would like it 
greatly if one could just go online as per normal and use the app in the 
browser.  Mixing something like aviary, but with the ability to make 
animations, and having and ide with flashdevelop's feature set, would be 
downright awesome.


My 2 cents,
Anthony

Merrill, Jason wrote:
Just playing devil's advocate, why would anyone want to build Flash online?  It's technically very impressive, but with all the free offline tools out there, I don't see why it would be necessary or useful.  ??  


Jason Merrill
Bank of America Instructional Technology  Media   ·   Learning Performance 
Solutions LLD

Interested in Flash Platform technologies?  Join the Bank of America Flash Platform Community 
Interested in innovative ideas in Learning?  Check out the Innovative Learning Blog and subscribe.







-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Sidney de Koning
Sent: Monday, February 02, 2009 11:08 AM
To: Flash Coders List
Subject: Re: [Flashcoders] This is kind of Wonderfl

He wrote the link wrong, it is: http://wonderfl.kayac.com/

Its pretty f* awesome! And most def the coolest i've seen in   
along time!


Sid

On Feb 2, 2009, at 5:02 PM, Merrill, Jason wrote:

  
Is this spam?  Or did that site not pay their ISP dues?  This (http://wonderfl.kayack.com/ 
) seems to be a web site circa 1998 - what does this have to do with  
Flash?



Jason Merrill
Bank of America Instructional Technology  Media   ·   Learning  
Performance Solutions LLD


Interested in Flash Platform technologies?  Join the Bank of America  
Flash Platform Community
Interested in innovative ideas in Learning?  Check out the  
Innovative Learning Blog and subscribe.






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com 
] On Behalf Of Steve Mathews

Sent: Monday, February 02, 2009 10:58 AM
To: azf...@googlegroups.com; flexcod...@yahoogroups.com; Flash  
Coders List

Subject: [Flashcoders] This is kind of Wonderfl

Spotted a post over at Techcrunch about wonderfl.kayack.com . Looks  
like a
pretty cool project. And if the creator(s) happen to see this, a big  
thumbs

up!
Steve
___
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



Sidney de Koning - be a geek, in rockstar style!
Flash / AIR Developer @ www.funky-monkey.nl
Technical Writer @ www.insideria.com

___
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] This is kind of Wonderfl

2009-02-02 Thread Merrill, Jason
Hmmm, yeah, but right now, I can't see past these issues (along with your 
better GUI and compiling :

Code completion and other nice features of code editors! - they would 
definitely need to implement that - and how would that handle smart import 
statements for your project?  Could be tricky,
How comfortable are people with having all your sourcecode online instead of 
local  online storage - would make me nervous on very large projects
Using third party code - or importing classes of your own - they would have to 
support that.
What happens when you want to compile and the server is down or hiccups?  It 
was doing that to me when I tested - annoying and a big productivity waster.
Must be online to develop - no working on the airplane or places without Wi-Fi
Working inside a browser - that's going to impose several limitations there - 
like hotkey combination conflicts
Not seeing your file structure locally - they would have to create a pretty 
slick UI for viewing your project
Working with media assets - what about having to upload images, movies, sound, 
fonts, yuck!

I think it maybe has potential a long way down the road, but so far, this isn't 
anything I think people will be able to do anything useful with just yet.  
Seems the disadvantages far outweigh the advantages - at least right now. Maybe 
someday. 


Jason Merrill
Bank of America Instructional Technology  Media   ·   Learning Performance 
Solutions LLD

Interested in Flash Platform technologies?  Join the Bank of America Flash 
Platform Community 
Interested in innovative ideas in Learning?  Check out the Innovative Learning 
Blog and subscribe.






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Anthony Pace
Sent: Monday, February 02, 2009 5:12 PM
To: Flash Coders List
Subject: Re: [Flashcoders] This is kind of Wonderfl

Hi Jason,

Actually I think something like this has the potential to be great if 
taken in the right direction, and given a GUI that is much better; 
however, there is definitely the draw back of speed, if the server has 
to compile a file for 10 to 100 to a 1000 users at once.

Imagine a scenario where a project is kept entirely on one server, and 
multiple people can edit a file separately or at the same time in 
realtime, like whiteboarding, using ajax or flash and amf, and choosing 
the revision, and of course all done without the hassles of purchasing 
licenses for multiple computers, downloading every file required for a 
build, and installing an app on every users machine.

They already do this with mainframe style apps, so I would like it 
greatly if one could just go online as per normal and use the app in the 
browser.  Mixing something like aviary, but with the ability to make 
animations, and having and ide with flashdevelop's feature set, would be 
downright awesome.

My 2 cents,
Anthony

Merrill, Jason wrote:
 Just playing devil's advocate, why would anyone want to build Flash online?  
 It's technically very impressive, but with all the free offline tools out 
 there, I don't see why it would be necessary or useful.  ??  

 Jason Merrill
 Bank of America Instructional Technology  Media   ·   Learning 
 Performance Solutions LLD

 Interested in Flash Platform technologies?  Join the Bank of America Flash 
 Platform Community 
 Interested in innovative ideas in Learning?  Check out the Innovative 
 Learning Blog and subscribe.






 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com 
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Sidney de 
 Koning
 Sent: Monday, February 02, 2009 11:08 AM
 To: Flash Coders List
 Subject: Re: [Flashcoders] This is kind of Wonderfl

 He wrote the link wrong, it is: http://wonderfl.kayac.com/

 Its pretty f* awesome! And most def the coolest i've seen in   
 along time!

 Sid

 On Feb 2, 2009, at 5:02 PM, Merrill, Jason wrote:

   
 Is this spam?  Or did that site not pay their ISP dues?  This 
 (http://wonderfl.kayack.com/ 
 ) seems to be a web site circa 1998 - what does this have to do with  
 Flash?


 Jason Merrill
 Bank of America Instructional Technology  Media   ·   Learning  
 Performance Solutions LLD

 Interested in Flash Platform technologies?  Join the Bank of America  
 Flash Platform Community
 Interested in innovative ideas in Learning?  Check out the  
 Innovative Learning Blog and subscribe.





 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com 
 [mailto:flashcoders-boun...@chattyfig.figleaf.com 
 ] On Behalf Of Steve Mathews
 Sent: Monday, February 02, 2009 10:58 AM
 To: azf...@googlegroups.com; flexcod...@yahoogroups.com; Flash  
 Coders List
 Subject: [Flashcoders] This is kind of Wonderfl

 Spotted a post over at Techcrunch about wonderfl.kayack.com . Looks  
 like a
 pretty cool project. And if the creator(s) happen to see this, a big  
 thumbs
 up!
 Steve
 

[Flashcoders] Details of extending UIComponent

2009-02-02 Thread Merrill, Jason
I posted this on Flexcoders earlier today without any responses.  But then, 
Yahoo's servers have also been timing out - maybe the forum is not working 
well.  I figure someone else might be able to point me to some information.

Can someone send me some links to information on all the ins and outs
of creating visual custom Flex UIComponents with AS3 3 - NOT
MXML (i.e. a class that extends UIComponent) ?

I've actually done it before, but had some bugs and headaches because I
didn't fully understand all the intricacies of method overriding you
have to/should do - things like measure(), clone(), updateDisplayList
(), etc. - so that it looks/works right and the UIComponent stays
within its container (for example, you create a UIComponent that draws
a large circle, but you want the circle to remain within the bounds of
a scrollpane component it is a child of).

I've googled all over the place, including adobe devnet and the
Flexcoders archives and have come up short. Seems to be bits and
pieces - I'm looking for some kind of explanation or simple example of
writing a visual component

I understand the AS3 drawing API and databinding, I just want info on
the rest of best practices for extending UIComponent. Seems like I had
seen a tutorial on this before on devnet, but I can't locate it now
(the search on that thing is terrible!) - also others have made some
good posts on that here as well, but can't find those either.

Thanks!


Jason Merrill
Bank of America Instructional Technology  Media   ·   Learning Performance 
Solutions LLD

Interested in Flash Platform technologies?  Join the Bank of America Flash 
Platform Community 
Interested in innovative ideas in Learning?  Check out the Innovative Learning 
Blog and subscribe.




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


Re: [Flashcoders] Light-weight AS3 text scroll bar? (alternative to UIScrollBar)

2009-02-02 Thread Matt S.
There's also a video tutorial on gotoandlearn.com, look for the
Object-Oriented Scrollbar.

On Mon, Feb 2, 2009 at 11:09 AM, Cor c...@chello.nl wrote:
 You can build your own.
 If I remember correctly there is a tutorial on www.focusonflash.com


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of
 confustic...@gmail.com
 Sent: maandag 2 februari 2009 1:12
 To: Flash Coders List
 Subject: [Flashcoders] Light-weight AS3 text scroll bar? (alternative to
 UIScrollBar)

 Hi List,

 Can anyone recommend a light-weight AS3 scroll bar component for scrolling
 textfields? I used TextScroller (http://play.ground.gr/?p=85) in AS2.

 I tried out UIScrollBar and it added 16KB to my (previously 4KB) swf. Any
 suggestions for lighter alternatives would be very much appreciated.

 Thanks and cheers,

 CB.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 No virus found in this incoming message.
 Checked by AVG - http://www.avg.com
 Version: 8.0.176 / Virus Database: 270.10.16/1930 - Release Date: 2-2-2009
 7:51

 ___
 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] This is kind of Wonderfl

2009-02-02 Thread Pedro Kostelec
Great!! Now i will be able to create Flash stuff even at school's breaks.
That's just what i always wanted. Sometime i have to be waiting more than 2
hours without anything to do. Great timepass activity.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Light-weight AS3 text scroll bar? (alternative to UIScrollBar)

2009-02-02 Thread Cor
You can build your own.
If I remember correctly there is a tutorial on www.focusonflash.com


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of
confustic...@gmail.com
Sent: maandag 2 februari 2009 1:12
To: Flash Coders List
Subject: [Flashcoders] Light-weight AS3 text scroll bar? (alternative to
UIScrollBar)

Hi List,

Can anyone recommend a light-weight AS3 scroll bar component for scrolling
textfields? I used TextScroller (http://play.ground.gr/?p=85) in AS2.

I tried out UIScrollBar and it added 16KB to my (previously 4KB) swf. Any
suggestions for lighter alternatives would be very much appreciated.

Thanks and cheers,

CB.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.176 / Virus Database: 270.10.16/1930 - Release Date: 2-2-2009
7:51

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


Re: [Flashcoders] Details of extending UIComponent

2009-02-02 Thread Ian Thomas
Somewhere I had a link to an excellent article on the Flex component
lifecycle - but I can't find it here at home. I'll try and dig it out
tomorrow - sorry, I know that's useless of me!

In the meantime, a quick hunt around the 'net came up with this, which
is a pretty decent overview:

http://flexcomps.wordpress.com/2008/05/09/flex-component-life-cycle/

HTH,
   Ian

On Mon, Feb 2, 2009 at 10:31 PM, Merrill, Jason
jason.merr...@bankofamerica.com wrote:
 I posted this on Flexcoders earlier today without any responses.  But then, 
 Yahoo's servers have also been timing out - maybe the forum is not working 
 well.  I figure someone else might be able to point me to some information.

 Can someone send me some links to information on all the ins and outs
 of creating visual custom Flex UIComponents with AS3 3 - NOT
 MXML (i.e. a class that extends UIComponent) ?

 I've actually done it before, but had some bugs and headaches because I
 didn't fully understand all the intricacies of method overriding you
 have to/should do - things like measure(), clone(), updateDisplayList
 (), etc. - so that it looks/works right and the UIComponent stays
 within its container (for example, you create a UIComponent that draws
 a large circle, but you want the circle to remain within the bounds of
 a scrollpane component it is a child of).

 I've googled all over the place, including adobe devnet and the
 Flexcoders archives and have come up short. Seems to be bits and
 pieces - I'm looking for some kind of explanation or simple example of
 writing a visual component

 I understand the AS3 drawing API and databinding, I just want info on
 the rest of best practices for extending UIComponent. Seems like I had
 seen a tutorial on this before on devnet, but I can't locate it now
 (the search on that thing is terrible!) - also others have made some
 good posts on that here as well, but can't find those either.

 Thanks!


 Jason Merrill
 Bank of America Instructional Technology  Media   ·   Learning 
 Performance Solutions LLD

 Interested in Flash Platform technologies?  Join the Bank of America Flash 
 Platform Community
 Interested in innovative ideas in Learning?  Check out the Innovative 
 Learning Blog and subscribe.




 ___
 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] object passed to function has values undefined

2009-02-02 Thread Matt McKeon
Hi,

I'll try to break the problem out, but its pretty embedded in our code.
So I'm not sure the problem will follow out of this context.
I did however find out that passing primitives such as a string or int
into the second function works fine, but objects won't work.

Any suggestions, even shots in the dark are most welcome.
Thanks!

Hans Wichman wrote:
 Hi,

 can you reproduce the problem and put up some fla for download for us to
 test?

 greetz
 JC

 On Fri, Jan 30, 2009 at 10:07 PM, Matt McKeon m...@camadro.com wrote:

   
 Hi all,

 I've got some code in AS2, and a function that has one parameter of type
 Object. That function gets called from a callback function from an
 event; basically its just passing along the object.

 The crazy thing is in the callback function I can loop through the
 object parameter and see all the properties and values, but in the other
 function looping through the object only displays the property names and
 *not* the values (values all say undefined). Very bizarre.

 // in class A
 // this is the callback for an event
 // say o is the object:
 var o:Object = {}
 o.param1 = 'val1';
 o.param2 = 'val2';

 public function onObjectReceivedHandler(o:Object) : Void  {
// this prints the object with all values
for(var d in o) {
trace(d +  ::  + o[d]);
}

mc.classb.testobjectparam(o);
}
 }

 // in class B
 public function testobjectparam(myobj:Object) : Void {
// this only prints the property name, no value
for(var d in myobj) {
trace(d +  ::  + myobj[d]);
}
 }

 Both classes extend MovieClip and are in separate SWF's. So class B is
 in a dynamically loaded SWF if that makes any difference.

 Has anyone seem something like this happen? I'm hitting my head here and
 not sure what to try next. Any advice would be great!

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


Re: [Flashcoders] This is kind of Wonderfl

2009-02-02 Thread Sidney de Koning

He wrote the link wrong, it is: http://wonderfl.kayac.com/

Its pretty f* awesome! And most def the coolest i've seen in   
along time!


Sid

On Feb 2, 2009, at 5:02 PM, Merrill, Jason wrote:

Is this spam?  Or did that site not pay their ISP dues?  This (http://wonderfl.kayack.com/ 
) seems to be a web site circa 1998 - what does this have to do with  
Flash?



Jason Merrill
Bank of America Instructional Technology  Media   ·   Learning  
Performance Solutions LLD


Interested in Flash Platform technologies?  Join the Bank of America  
Flash Platform Community
Interested in innovative ideas in Learning?  Check out the  
Innovative Learning Blog and subscribe.






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com 
] On Behalf Of Steve Mathews

Sent: Monday, February 02, 2009 10:58 AM
To: azf...@googlegroups.com; flexcod...@yahoogroups.com; Flash  
Coders List

Subject: [Flashcoders] This is kind of Wonderfl

Spotted a post over at Techcrunch about wonderfl.kayack.com . Looks  
like a
pretty cool project. And if the creator(s) happen to see this, a big  
thumbs

up!
Steve
___
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


Sidney de Koning - be a geek, in rockstar style!
Flash / AIR Developer @ www.funky-monkey.nl
Technical Writer @ www.insideria.com

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


Re: [Flashcoders] Full screen video in a full screen Flash..?

2009-02-02 Thread Matt S.
Are you loading the video player into its own holder mc? If you do
that, then place that holder on the display list, then set

if (stage.displayState == StageDisplayState.NORMAL) {
stage.displayState = 
StageDisplayState.FULL_SCREEN;
}

it should go full screen without FS'ing the video.

.m

On Mon, Feb 2, 2009 at 8:23 AM, Andrew Murphy amur...@delvinia.com wrote:
 Hello. :)

 Is there a way to have a full screen Flash (not a video) which has a video
 player in it, without having the video itself jump to full screen?

 What I'd like to do is have a Flash piece which goes full screen, then at
 some points in the user's interaction with it there may be a video player in
 this Flash piece.  The user would then have the option to view the video
 full screen within the already full screen Flash piece.

 Currently whenever I load a video player into a full screen non-video Flash
 the video jumps to full screen the moment it loads.


 
 Andrew Murphy
 Interactive Media Specialist
  mailto:amur...@delvinia.com amur...@delvinia.com

 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.


 ___
 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] jpeg enhancement

2009-02-02 Thread [p e r c e p t i c o n]
Hi All,I have some JPEGs that I display in my app...the problem is that the
quality isn't so great...does anyone know of a way to enhance the quality of
a jpeg once you load it or am i skrewed
thanks
percy
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] This is kind of Wonderfl

2009-02-02 Thread Muzak
Haven't really looked into all the wonderfl details, but - at first looks - seems similar to what is already possible with Flex and 
Coldfusion.
Flex 1.0 and 1.5 were both compiled on the server, there was no swf output like there is with Flex 2 and 3 and what we're used from 
the Flash IDE.


Flex 2/3 can still be compiled server side in combination with Coldfusion.

So rather than having an html + swf, you'd browse to an mxml file.
http://domain.com/index.mxml


How comfortable are people with having all your sourcecode online instead of local 
 online storage
- would make me nervous on very large projects


Doesn't change anything development wise.
You'd still have a local copy - deploying to a local (or network) server for 
testing.
Upload to live server when done.


What happens when you want to compile and the server is down or hiccups?
Must be online to develop - no working on the airplane or places without Wi-Fi


Same as above, not an issue if you'd develop locally.
And that goes for most of your other concerns.

Just because they're demoing it online, doesn't mean you *have* to develop 
online, well at least that's the way I see it :).

regards,
Muzak


- Original Message - 
From: Merrill, Jason jason.merr...@bankofamerica.com

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Monday, February 02, 2009 11:26 PM
Subject: RE: [Flashcoders] This is kind of Wonderfl



Hmmm, yeah, but right now, I can't see past these issues (along with your 
better GUI and compiling :

Code completion and other nice features of code editors! - they would definitely need to implement that - and how would that 
handle smart import statements for your project?  Could be tricky,
How comfortable are people with having all your sourcecode online instead of local  online storage - would make me nervous on 
very large projects

Using third party code - or importing classes of your own - they would have to 
support that.
What happens when you want to compile and the server is down or hiccups?  It was doing that to me when I tested - annoying and a 
big productivity waster.

Must be online to develop - no working on the airplane or places without Wi-Fi
Working inside a browser - that's going to impose several limitations there - 
like hotkey combination conflicts
Not seeing your file structure locally - they would have to create a pretty 
slick UI for viewing your project
Working with media assets - what about having to upload images, movies, sound, 
fonts, yuck!

I think it maybe has potential a long way down the road, but so far, this isn't anything I think people will be able to do 
anything useful with just yet.  Seems the disadvantages far outweigh the advantages - at least right now. Maybe someday.



Jason Merrill
Bank of America Instructional Technology  Media   ·   Learning Performance 
Solutions LLD

Interested in Flash Platform technologies? Join the Bank of America Flash 
Platform Community
Interested in innovative ideas in Learning? Check out the Innovative Learning 
Blog and subscribe.




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


Re: [Flashcoders] Details of extending UIComponent

2009-02-02 Thread Muzak

Flexcoders can be a bit overwhelming and posts get lost in the masses.
Try FlexComponents on yahoo instead for component related posts.
http://tech.groups.yahoo.com/group/flexcomponents/

Does this have the information you need?
http://livedocs.adobe.com/flex/3/html/help.html?content=ascomponents_advanced_1.html
http://livedocs.adobe.com/flex/3/html/ascomponents_advanced_3.html#214104

Here's a summary from the docs:
http://livedocs.adobe.com/flex/3/html/ascomponents_advanced_2.html#219779

quote

To implement your component, follow these general steps:

  1. If necessary, create any skins for the component.
  2. Create an ActionScript class file.
1. Extend one of the base classes, such as UIComponent or another 
component class.
2. Specify properties that the user can set by using an MXML tag 
property.
3. Embed any graphic and skin files.
4. Implement the constructor.
5. Implement the UIComponent.createChildren() method.
6. Implement the UIComponent.commitProperties() method.
7. Implement the UIComponent.measure() method.
8. Implement the UIComponent.layoutChrome() method.
9. Implement the UIComponent.updateDisplayList() method.
   10. Add properties, methods, styles, events, and metadata.
  3. Deploy the component as an ActionScript file or as a SWC file.

/quote

regards,
Muzak

- Original Message - 
From: Merrill, Jason jason.merr...@bankofamerica.com

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Monday, February 02, 2009 11:31 PM
Subject: [Flashcoders] Details of extending UIComponent


I posted this on Flexcoders earlier today without any responses.  But then, Yahoo's servers have also been timing out - maybe the 
forum is not working well.  I figure someone else might be able to point me to some information.


Can someone send me some links to information on all the ins and outs
of creating visual custom Flex UIComponents with AS3 3 - NOT
MXML (i.e. a class that extends UIComponent) ?

I've actually done it before, but had some bugs and headaches because I
didn't fully understand all the intricacies of method overriding you
have to/should do - things like measure(), clone(), updateDisplayList
(), etc. - so that it looks/works right and the UIComponent stays
within its container (for example, you create a UIComponent that draws
a large circle, but you want the circle to remain within the bounds of
a scrollpane component it is a child of).

I've googled all over the place, including adobe devnet and the
Flexcoders archives and have come up short. Seems to be bits and
pieces - I'm looking for some kind of explanation or simple example of
writing a visual component

I understand the AS3 drawing API and databinding, I just want info on
the rest of best practices for extending UIComponent. Seems like I had
seen a tutorial on this before on devnet, but I can't locate it now
(the search on that thing is terrible!) - also others have made some
good posts on that here as well, but can't find those either.

Thanks!


Jason Merrill
Bank of America Instructional Technology  Media   ·   Learning Performance 
Solutions LLD



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