Re: [Flashcoders] custom font in Combobox dropdown
Thanks a lot Glen! Exactly what i was looking for. On Fri, Oct 17, 2008 at 11:35 PM, Glen Pike [EMAIL PROTECTED]wrote: Hi, The list / combobox a few other components in AS3 / CS3 use the DataProvider to specify what goes in the boxes... //Create, then fill up the data provider or pass an array to the constructor... var dp:DataProvider = new DataProvider(); //set the combobox's dataprovider. myCB.dataProvider = dp To change the style of the text, you will have to implement a Custom CellRenderer - there is an example on this page: http://www.rockabit.com/2008/04/15/combobox-text-formatting-in-as3/ This only sets one font up for the whole box, but hold on a minute... If you want to display a list of fonts on the system, the first few lines of the code in this page will tell you how to get them and then add them to a list / combobox: http://www.emanueleferonato.com/2008/05/21/create-a-font-browser-with-flash-as3/ So now what you need to do, is see what the data is in each row of your list - you can do this by overriding some of the getters and setters in your Custom CellRenderer: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/controls/listClasses/CellRenderer.html#data //Something like this: override public function set data(value:Object):void { var tf:TextFormat = new TextFormat(); tf.font = value.label; textField.setNewTextFormat(tf); this._data = data; } CellRenderers are a bit fiddly to get right, but once they are working, they are quite nice - if the code I put here does not work, read up in the doc's because my code may be wrong... HTH Glen Digg Yeah wrote: Hi All, Is it possible to display custom fonts in the dropdown list of a Flash cs combobox component? I am trying to do something as shown at http://arulprasad.blogspot.com/2006/07/showing-list-of-fonts-in-flash-v2.html But im getting stuck at myCB.dropdown.listContent[i].cell.getTextFormat (); What is the equivalent of listContent in AS3? Thanks for your time. Any help would me much appreciated. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] custom font in Combobox dropdown
Hi All, Is it possible to display custom fonts in the dropdown list of a Flash cs combobox component? I am trying to do something as shown at http://arulprasad.blogspot.com/2006/07/showing-list-of-fonts-in-flash-v2.html But im getting stuck at myCB.dropdown.listContent[i].cell.getTextFormat (); What is the equivalent of listContent in AS3? Thanks for your time. Any help would me much appreciated. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re: How to take screenshot of sites , as seen on snap.com
Thank you guys. Thuy Nguyen, can you just give a little bit more detail on how this is possible using just js and css? Ain Tohvri, i tried browsershots. But what they do is to fire the browser, and take screenshots using Python. Is there anyway to take snaps without physically launching the browser? Thanks! Roger. On Mon, Mar 31, 2008 at 6:22 PM, Thuy Nguyen [EMAIL PROTECTED] wrote: JavaScript and CSS --- Thuy Nguyen Web Developer Angus Productions Inc. On Mar 30, 2008, at 11:03 AM, flashcoders- [EMAIL PROTECTED] wrote: Send Flashcoders mailing list submissions to flashcoders@chattyfig.figleaf.com To subscribe or unsubscribe via the World Wide Web, visit http://chattyfig.figleaf.com/mailman/listinfo/flashcoders or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of Flashcoders digest... Today's Topics: 1. How to take screenshot of sites , as seen on snap.com (Digg Yeah) -- Message: 1 Date: Sun, 30 Mar 2008 19:29:56 +0530 From: Digg Yeah [EMAIL PROTECTED] Subject: [Flashcoders] How to take screenshot of sites , as seen on snap.com To: flashcoders@chattyfig.figleaf.com Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=ISO-8859-1 Not sure if this is the right place to ask this, but can anybody share a pointer to how snap.com capture sceenshot of sites? Any help would be much appreciated. Thank you for your time. -- ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders End of Flashcoders Digest, Vol 6, Issue 48 ** ___ 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] How to take screenshot of sites , as seen on snap.com
Not sure if this is the right place to ask this, but can anybody share a pointer to how snap.com capture sceenshot of sites? Any help would be much appreciated. Thank you for your time. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Adobe trial download links screwed up??
Good evening, Looks like all trial download links are broken at: www.adobe.com/downloads/ This doesnt seem to be a browser issue .Can someone at Adobe please take a look at this issue? Thanks in advance. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] AS3 custom mouse pointer from library impossible??
OMG!!! Thanks a lot!! Wow! Thanks a lot Leandro . /Here is the solution // from Leandro Amano | leandroamano.com.br // Quote See the solution (1 line... lol) //this is the solution, please, post in Flashcoders. //cursor.mouseEnabled = false; package{ import flash.display.MovieClip; import flash.events.Event; import flash.events.MouseEvent; import flash.ui.Mouse; public class MouseManage extends MovieClip{ private var cursor:pseudoMouse; public function MouseManage():void{ cursor=new pseudoMouse(); cursor.mouseEnabled = false; addChild(cursor); pad.addEventListener(MouseEvent.MOUSE_OVER,mOver); pad.addEventListener (MouseEvent.MOUSE_OUT,mOut); } private function mOut(event:MouseEvent):void{ Mouse.show(); pad.removeEventListener(MouseEvent.MOUSE_MOVE, redrawCursor); cursor.visible = false; } private function mOver(event:MouseEvent):void{ Mouse.hide(); cursor.visible =true; pad.addEventListener(MouseEvent.MOUSE_MOVE, redrawCursor); } private function redrawCursor(event:MouseEvent):void{ cursor.x = event.stageX; cursor.y = event.stageY; event.updateAfterEvent(); } } } best regards -- Leandro Amano /Quote //Original question: To clarify the situation a bit more better, i have uploaded the most relevant code along with a sample file at this thread: http://www.kirupa.com/forum/showthread.php?t=265342. // ___ 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 custom mouse pointer from library impossible??
Creating a custom mouse pointer by attaching [addchild ] from library seems impossible in as3. Everytime i do it,the mouse actually shows up over the pointer movieclip if i move the mouse fast! Did anyone try using addchild to create mouse pointers from library ? I tried a lot, never works .[it works with simple geometrical objcts created with as , as shown in CS3 documentation ] Thanks in advance. Shane ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] AS3 custom mouse pointer from library impossible??
Thanks a lot for your reply Leandro. To clarify the situation a bit more better, i have uploaded the most relevant code along with a sample file at this thread: http://www.kirupa.com/forum/showthread.php?t=265342. It would be great if you could look into the code and the attachment [its just the most scaled down version to illustrate the mouse pointer issue] Once again,thanks a lot for the response Leandro. -Shane On 6/26/07, Leandro Amano [EMAIL PROTECTED] wrote: Hi Digg, You do not obtain to attach from the Library or not obtain to manipulate the level? To attach the Display List it saw Library, it uses new Object, to manipulate the niveis, uses setChildIndex (DisplayObject (object), numChildren-1); var mc = new Symbol(); addChildAt(mc, numChildren-1); best regards Leandro Amano On 6/26/07, Digg Yeah [EMAIL PROTECTED] wrote: Creating a custom mouse pointer by attaching [addchild ] from library seems impossible in as3. Everytime i do it,the mouse actually shows up over the pointer movieclip if i move the mouse fast! Did anyone try using addchild to create mouse pointers from library ? I tried a lot, never works .[it works with simple geometrical objcts created with as , as shown in CS3 documentation ] Thanks in advance. Shane ___ 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 -- -- Leandro Amano Digital Bug Chief Creative Officer Adobe Certified Expert Adobe Certified Instructor Adobe User Group Leader ___ 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] custom mouse pointer using Actionscript 3.0
Hi All, I tried the example for custom mouse pointer as shown in Flash cs3 documentation. It works fine. But when the pointer graphics is added from library, it works in a weird way. Mouse gets over the pointer graphics resulting in flickering and choppy animation. I have posted the source files here: http://www.actionscript.org/forums/showthread.php3?t=139310 Here is the code i am using: // pseudoMouse is the class of an mc in Library //pad is the instance name of an mc on stage //When mouseover mc, the cursor shows up package{ import flash.display.MovieClip; import flash.events.Event; import flash.events.MouseEvent; import flash.ui.Mouse; public class MouseManage extends MovieClip{ private var cursor:pseudoMouse; public function MouseManage():void{ cursor=new pseudoMouse(); addChild(cursor); pad.addEventListener(MouseEvent.MOUSE_OVER,mOver); pad.addEventListener(MouseEvent.MOUSE_OUT,mOut); } private function mOut(event:MouseEvent):void{ Mouse.show(); pad.removeEventListener(MouseEvent.MOUSE_MOVE, redrawCursor); cursor.visible = false; } private function mOver(event:MouseEvent):void{ Mouse.hide(); cursor.visible =true; pad.addEventListener(MouseEvent.MOUSE_MOVE, redrawCursor); } private function redrawCursor(event:MouseEvent):void{ cursor.x = event.stageX; cursor.y = event.stageY; event.updateAfterEvent(); } } } Any help would be highly appreciated. Thanks. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] wmode performance headache
In normal situation, flash player draws directly to the rectangular area of screen it resides in . But when wmode is set, the job is routed through browser. So basically, the setting wmode value puts performance at the mercy of the browser . If the browser has a bad implementation of wmode, then it would result in poor performance. Its a well known fact that setting wmode to transparent results in extremely bad performance in Gecko browsers. On 6/18/07, Martin Klasson [EMAIL PROTECTED] wrote: Hi Everyone, I got a campaign which is using some intense animations, and everything works well and fast as usual in the flash IDE. but in the browser it doesnt reach the same speed, as usual, BUT, in Firefox, when setting wmode to opaque, than it really goes great, the fps-counter I have really shows the same fps as the movie. but in Internet Explorer, opaque makes the flash player to freeze in some of the intense animations, the framerate doesnt go down -the whole flash just freezes for a short time. That is so strange. So window mode makes the best performance in Internet Explorer. Anyone who can clarify why, how and what I should do to make the best performance out of this? Martin ___ 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
Re: [Flashcoders] Re: External preloader using loadClip() - is it a good idea?
To see the preloader: Test the movie in flash ide itself. Control Test movie This will publish and open your swf. From View Download settings choose a very small value [or you can set your own value ] Now try ViewStimulate download. On 6/18/07, Alexander Farber [EMAIL PROTECTED] wrote: Thank you, but unfortunately this: On 6/18/07, Digg Yeah [EMAIL PROTECTED] wrote: [to prevent cacheing, ToolsInternet optionstemporary internet files settingscheck every visit to page ] won't clear the flash cache for me: I don't see my preloader Load.swf anymore, I see the Main.swf instantly... Regards Alex ___ 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