Re: [Flashcoders] Extending List v2 component
Hi, well, this will not help because my problem is not related to custom cellrenderer which I'm aready using.. I need a different logic for building and displaying all rows of the list when beeing scrolled.. -tom- On 2/6/07, Rákos Attila <[EMAIL PROTECTED]> wrote: Look into the CellRenderer API: http://livedocs.macromedia.com/flash/8/main/3127.html Attila TL> Hello Flashers, TL> TL> I'd like to have some advice on customizing List v2 component since I have TL> no deeper knowledge of v2 components set architecture. TL> TL> I need to extend the List component in some custom List class that would TL> physically render all items of its data provider TL> and not just use virtual rows that are filled with changed content on every TL> scrolling event.. TL> TL> I'd need some hints, how could I achieve this. TL> Is this not possible to do with standard List component by some tweaks? TL> Or if I have to extend the List component what exactly should I do and which TL> methods do I have to override in the class? TL> I'm somehow lost in that v2 code.. TL> TL> Thanks TL> TL> -tom- ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Extending List v2 component
Hello Flashers, I'd like to have some advice on customizing List v2 component since I have no deeper knowledge of v2 components set architecture. I need to extend the List component in some custom List class that would physically render all items of its data provider and not just use virtual rows that are filled with changed content on every scrolling event.. I'd need some hints, how could I achieve this. Is this not possible to do with standard List component by some tweaks? Or if I have to extend the List component what exactly should I do and which methods do I have to override in the class? I'm somehow lost in that v2 code.. Thanks -tom- ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Capturing FMS video streams from multiple cameras
Hello, does anybody know if it is possible to capture and record video on Flash Media Server from multiple cameras on one system? Our client needs to capture one video at a time but would like to be able to select which camera will capture and record the live stream to FMS. Is Flash capable to select which camera will capture the stream? Or is there any other solution you would choose to achieve this? thanks in advance Tomas Lehuta Flash Senior Developer Kremsa Design (http://www.kremsadesign.com) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] AS3: List of dispatched events from any EventDispatcher in run-time
Hello ActionScripters, is it somehow possible in ActionScript 3.0 to retrieve the list of all events that any subclass of EventDispatcher dispatches? I need to add event listeners dynamically at run-time and would like to check if the event type is valid for given EventDispatcher. Thanks for comments.. Tomas Lehuta lharp / http://lharp.net ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Font embedding using Font Symbols
Hello, I need to embed fonts into my SWF using Font symbols in my library.. Could anybody tell me which character sents are embeded if a Font symbol is created from an installed font. I'd like to include all Unicode characters (for ex. Chinese characters of Arial font) to be able to display multiple languages.. Is this possible? best regards Tomas Lehuta --- Flash Developer www.felisconsulting.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3: How to get BitmapData from embeded image
I've got it! well.. in truth my friend has come with very nice solution. In case someone else is interested how to do that, here's the example: public class ImageEmbedTest extends MovieClip { [Embed(source="wood.gif")] private var Wood:Class; public function ImageEmbedTest() { var sprite:Sprite = Sprite(new Wood()); var bitmapData:BitmapData = new BitmapData(sprite.width,sprite.height); bitmapData.draw(sprite,new Matrix()); var bitmap:Bitmap = new Bitmap(bitmapData); addChild(bitmap); } } Tomas Lehuta [http://lharp.net] - Original Message - From: "Darron J. Schall" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Monday, November 14, 2005 2:22 PM Subject: Re: [Flashcoders] AS3: How to get BitmapData from embeded image Tomas Lehuta wrote: No no, Darron, I'd like to extract image's BitmapData to be able to manipulate it. So prior to displaying it via addChild() I need to do some transformations and image distortion.. Is it possible with new API? Ah, sorry - that's what I get for not fully reading the question before answering :-) I believe right now the Embed meta data is mainly intended for Flex skinning purposes (hence the SkinSprite when you create a new instance) - I think if you want to get the bitmap data of an image you need to load it in at runtime, something like this: package { import flash.display.*; import flash.events.*; import flash.net.*; public class Example extends Sprite { private var bitmap:Bitmap; public function Example() { var loader:Loader = new Loader(); loader.addEventListener( EventType.COMPLETE, loadComplete ); loader.load( new URLRequest( "example.jpg" ) ); } public function loadComplete( event:Event ):Bitmap { var loader:Loader = Loader( event.target ); bitmap = Bitmap(loader.content); // manipulate bitmapdata here: bitmap.bitmapData.setPixel( 0, 0, 0xFF ); addChild( bitmap ); } } } I wouldn't be surprised if there was an easier way.. but it might have to wait until Flash authoring has support for AS3. -d ___ 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] Eclipse/FDT/Subclipse weirdness
Jim, I'm using Subclipse in both Eclipse/FDT and Flex Builder 2 and everything goes ok. Which version of Eclipse/FDT/Subclipse do you have? I'm running the latest versions: Eclipse SDK 3.1.0 FDT 1.0.4 Subclipse 0.9.37 Tomas Lehuta [http://lharp.net] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jim Kremens Sent: Monday, November 14, 2005 4:54 PM To: [EMAIL PROTECTED] Figleaf. Com Subject: [Flashcoders] Eclipse/FDT/Subclipse weirdness This might be slightly OT, as it doesn't directly deal with code. But it does concern tools of the trade, so here goes... I'm using Eclipse, FDT and Subclipse. Occasionally, a project just 'goes bad.' It seems like something is getting corrupted, and I don't know what it is. Here are the symptoms: Use project for a while - all is fine. Click refresh. Get 'An error occurred during Refresh' message with *no additional information*. (yay error handling!) From this point on, the project is completely shot - you can't do much if you can't refresh... Checking it out again from the repository doesn't work. The only way I can fix the project is to: 1. Detach it and all of its linked libraries from SVN control (and delete SVN information from the system). 2. Delete the project and the libraries it links to from the Eclipse workspace (without deleting all of the files from the system). 3. Re-import the project and various linked libraries, thereby rebuilding the project. Of course, I then lose all of my SVN history. Needless to say, this is really a bummer Anyone experienced anything like this? The key would be the meaningless 'An error occurred during refresh' message. Thanks, Jim Kremens ___ 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] AS2: Dividing code and user interface in separate SWF
Hello, I've came to such a problem when I have to split the code and user interface of the application into separate SWF files. The concept is that my core (core.swf) contains only classes and will load all necessarry external files such as user interface (ui.swf). My UI contains only layout and graphics in a set of MovieClips either on the stage or in the library which are exported by linkage identifiers and use custom classes extended from MovieClip. The problem is that my MovieClips on the stage in ui.swf are not bound to my custom classes since they are not compiled into ui.swf but reside only in core.swf. Are there any limitations for this concept? If the classes from core.swf are loaded prior to ui.swf and defined in _global scope they should be correctly instantiated on the stage when ui.swf is loaded or not? Please, correct me if I'm wrong.. Tomas Lehuta [http://lharp.net] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] AS3: How to get BitmapData from embeded image
Thanks for tip, Darron, so now it's not possible to have images compiled in application's SWF or have them in external SWF to be loaded dinamicly? I think such feature would be helpful for game developers that do not need Flex Framework API. Tomas Lehuta [http://lharp.net] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Darron J. Schall Sent: Monday, November 14, 2005 2:23 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] AS3: How to get BitmapData from embeded image Tomas Lehuta wrote: > No no, Darron, > I'd like to extract image's BitmapData to be able to manipulate it. > So prior to displaying it via addChild() I need to do some > transformations and image distortion.. > Is it possible with new API? Ah, sorry - that's what I get for not fully reading the question before answering :-) I believe right now the Embed meta data is mainly intended for Flex skinning purposes (hence the SkinSprite when you create a new instance) - I think if you want to get the bitmap data of an image you need to load it in at runtime, something like this: package { import flash.display.*; import flash.events.*; import flash.net.*; public class Example extends Sprite { private var bitmap:Bitmap; public function Example() { var loader:Loader = new Loader(); loader.addEventListener( EventType.COMPLETE, loadComplete ); loader.load( new URLRequest( "example.jpg" ) ); } public function loadComplete( event:Event ):Bitmap { var loader:Loader = Loader( event.target ); bitmap = Bitmap(loader.content); // manipulate bitmapdata here: bitmap.bitmapData.setPixel( 0, 0, 0xFF ); addChild( bitmap ); } } } I wouldn't be surprised if there was an easier way.. but it might have to wait until Flash authoring has support for AS3. -d ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] AS3: How to get BitmapData from embeded image
No no, Darron, I'd like to extract image's BitmapData to be able to manipulate it. So prior to displaying it via addChild() I need to do some transformations and image distortion.. Is it possible with new API? Tomas Lehuta [http://lharp.net] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Darron J. Schall Sent: Monday, November 14, 2005 1:24 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] AS3: How to get BitmapData from embeded image Tomas Lehuta wrote: > > Hello, > > I've got a question on AS3 DisplayObject API.. How can I get > BitmapData from ebedded image? > Since images are embeded via the construct > > [Embed(source="myimage.jpg")] > private var MyImage:Class; > If you're just trying to display the image, this should work: addChild( new MyImage() ); -d ___ 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: How to get BitmapData from embeded image
Hello, I've got a question on AS3 DisplayObject API.. How can I get BitmapData from ebedded image? Since images are embeded via the construct [Embed(source="myimage.jpg")] private var MyImage:Class; and the BitmapData.loadBitmap(linkageID) from Flash 8 is removed in AS3. So I don't know how to obtain BitmapData from my image. I've inspected the instance of MyImage to be a mx.core.SkinSprite. But it has no API for getting its bitmapData.. How could I achieve this? thanx Tomas Lehuta [http://lharp.net] ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders