[flexcoders] Performance feedback PLEASE
I was wondering if anyone could take a quick glance at my AS3 3d renderer http://api.pluton.webhouse.dk/pool3d/pool3d.html and reply what FPS they get on their gear. If you could also provide your CPU info that would be extremely helpful. For the curious the engine sports the following features: Subpixel positioning (1/4 pixel on both x y) Antialiasing Ambient light Specular light Best regards and have a wonderful day! Allan Pichler RIA Architect - ColdFusion/Flex/Ajax/UI Email: dreamc...@gmail.com Phone DK: +45 22 68 08 88 Phone US: +1 (415) 683 0313 Skype:apichler Yahoo:allan_pichler Facebook: www.facebook.com/apichler LinkedIn: www.linkedin.com/in/apichler
[flexcoders] Scanning documents
Anyone know if this is possible and if so, have any examples? Best regards and have a wonderful day! Allan Pichler Brewmaster - ColdFusion/Flex/AJAX/UI Email: dreamc...@gmail.com Skype: apichler Yahoo: allan_pichler
Re: [flexcoders] AIR - Ascynchronous file deletion - fixed order ?
You could hold a list (in this case with 2 filenames) that you delete from one by one... just pop an element and refire until the list is empty.. That would also facilitate a progess bar using the original / current length of the array. Best regards and have a wonderful day! Allan Pichler Brewmaster - ColdFusion/Flex/Ajax/UI Email: dreamc...@gmail.com Skype: apichler Yahoo: allan_pichler
[flexcoders] Datagrid with rotated headers
Does anyone have a simple example of a datagrid where the column header labels are rotated so they take up minimum space horizontally? Thanks in advance --Allan
[flexcoders] Weirdest error ever!
Hi All I am currently getting the weirdest error. It comes and goes quite randomly. For instance, it have showed up from me adding a comment to the code or disappeared from deleting blank lines in the source. I have tried it in both FB3 and FB4b2, but to no avail. Could someone please shed some light on this? Thank you in advance --Allan ReferenceError: Error #1065: Variable is not defined. at global/flash.utils::getDefinitionByName() at mx.utils::DescribeTypeCache$/describeType()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\utils\DescribeTypeCache.as:95] at mx.utils::ObjectUtil$/getClassInfo()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\utils\ObjectUtil.as:838] at mx.controls::DataGrid/generateCols()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:2416] at mx.controls::DataGrid/collectionChangeHandler()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:4180] at mx.controls.listClasses::ListBase/set dataProvider()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:1847] at mx.controls::DataGrid/set dataProvider()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:1343] at mx.core::Container/createComponentFromDescriptor()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\Container.as:3638] at mx.core::Container/createComponentsFromDescriptors()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\Container.as:3536] at mx.core::Container/createChildren()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\Container.as:2632] at mx.core::UIComponent/initialize()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5370] at mx.core::Container/initialize()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\Container.as:2569] at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5267] at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\Container.as:3348] at mx.core::Container/addChildAt()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\Container.as:2260] at mx.core::Container/addChild()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\Container.as:2183] at mx.core::Container/createComponentFromDescriptor()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\Container.as:3724] at mx.core::Container/createComponentsFromDescriptors()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\Container.as:3536] at mx.core::Container/createChildren()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\Container.as:2632] at mx.core::UIComponent/initialize()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5370] at mx.core::Container/initialize()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\Container.as:2569] at mx.core::Application/initialize()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\core\Application.as:864] at AgriNord/initialize()[C:\Documents and Settings\Pro-M\Adobe Flash Builder Beta 2\AgriNord\src\AgriNord.mxml:0] at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2127] at mx.managers::SystemManager/initializeTopLevelWindow()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:3396] at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:3219] at mx.managers::SystemManager/docFrameListener()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:3065]
[flexcoders] Sandbox Bridge Help!
Hi all and thank you for a great mailing list. I'm trying to use the parentSandboxBridge, but I can't really find any good explanations of it. Here is what i'm trying to do. I have an AIR application where the users can create overlays on a video file. One example of this would be to place a SWF file with a form in it on top of a video. The submit function of the form needs to call a function in the air application, which throws a security sandbox violation. It seems that the sandbox bridge should be able to allow this functionality, but i can't seem to figure out how. Any help would be greatly appreciated. Thanks Allan
Re: [flexcoders] Re: Flying text or passing text??
I have a more outrageous hippie version of a marquee on my experimental site. And as a sidenote the term marquee is probably the right one, but the fact that my coding career started back in 1982 and I used to be part of the C64/Amiga demo scene I will insist that it's a 'scroller'... In my example a D.Y.P.P. scroll. Different Y Pixel Positions :) http://www.unzipmenow.com/pixfun/bin2/scroll.html -Allan On Wed, Jun 17, 2009 at 8:42 AM, Harish Sivaramakrishnanhsivaramakrish...@gmail.com wrote: Joan Lafferty has a nice implementation of a marquee in her blog - http://butterfliesandbugs.wordpress.com/2007/09/06/marquee-component/ On Wed, Jun 17, 2009 at 6:56 PM, valdhor valdhorli...@embarqmail.com wrote: AFAIK it is called a ticker. There are many examples available. Try a Google search. Here are a couple to start you off... http://dreamwagon.com/blog/?p=7 http://dave.needlz.nl/index.php/2009/ticker/ --- In flexcoders@yahoogroups.com, hworke kanps...@... wrote: Hi, I am trying to create an effect using text. I do not know what to call it - flying text or passing text!! At the bottom of the TV screen we always see Headline news or stock market info text are moving from right to left - I want to do something like that. What is the best option for me? Regards..
[flexcoders] Ideas / input greatly appreciated
Hi all. I'm trying to find a low cost solution to do 1-1 screen sharing/remote control, preferably inside a flex application, alternatively as a popup window. The application also need some other collaboration widgets, so I was looking at Acrobat Connect, but I can't find any information about customization of the user interface and adding new pods. Any help You can give is much appreciated! Best regards and have a nice day! Allan Pichler Brewmaster - ColdFusion/Flex/Ajax/UI
RE: [flexcoders] Ideas / input greatly appreciated
But I was under the impression that connect pro is pretty expensive ??? Anyone know of an AIR app for the screen sharing that is launched from the main app??? --a From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Rick Winscot Sent: Friday, May 29, 2009 10:06 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Ideas / input greatly appreciated Screen sharing / remote control is a tall order for Flash based technologies at the present time. You might want to take a look at the Acrobat Connect Collaboration Builder SDK. http://www.adobe.com/devnet/acrobatconnect/articles/intro_sync_swf.html Cheers, Rick Winscot On 5/29/09 12:53 PM, Allan Pichler dreamc...@gmail.com wrote: Hi all. I'm trying to find a low cost solution to do 1-1 screen sharing/remote control, preferably inside a flex application, alternatively as a popup window. The application also need some other collaboration widgets, so I was looking at Acrobat Connect, but I can't find any information about customization of the user interface and adding new pods. Any help You can give is much appreciated! Best regards and have a nice day! Allan Pichler Brewmaster - ColdFusion/Flex/Ajax/UI image001.jpgimage002.jpg
RE: [flexcoders] Ideas / input greatly appreciated
Teamviewer is not an option since it costs $800 pr. Concurrent session. I should have been more specific, I probably need to support around 20-30 concurrent sessions. Can I launch acrobat connect in a separate window from within my flex app and possibly have flex listen for events in the adobe connect.. So I can force focus back to the flex app when the user closes the connect window --Allan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Rick Winscot Sent: Friday, May 29, 2009 10:30 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Ideas / input greatly appreciated You can create an account that allows 3 people to connect... for free (has this changed?). By 'tall order' I mean... 1. You cannot view a users desktop from Flash, Flex, or AIR 2. You cannot control the users computer (keyboard/mouse) from Flash, Flex, or AIR The only exception to this is Acrobat Connect - which uses a custom plugin to accomplish that feat. The only other alternative is to roll your own solution with a wrapper like Merapi to give you access to OS screen/input hooks which could be passed to AIR. A serious engineering effort to be sure. Flash - flash sharing (i.g. whiteboard) is possible if that is what you are trying to do... other than that you are out of luck. Have you looked at Flash VNC? http://www.darronschall.com/weblog/2005/11/flashvnc-released.cfm Alternatively, you could roll a hybrid solution: use Teamviewer for the remote viewing / control and then create a flex app that does all your custom pod stuffs. Cheers, Rick Winscot On 5/29/09 1:13 PM, Allan Pichler dreamc...@gmail.com wrote: But I was under the impression that connect pro is pretty expensive ??? Anyone know of an AIR app for the screen sharing that is launched from the main app??? --a From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Rick Winscot Sent: Friday, May 29, 2009 10:06 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Ideas / input greatly appreciated Screen sharing / remote control is a tall order for Flash based technologies at the present time. You might want to take a look at the Acrobat Connect Collaboration Builder SDK. http://www.adobe.com/devnet/acrobatconnect/articles/intro_sync_swf.html Cheers, Rick Winscot On 5/29/09 12:53 PM, Allan Pichler dreamc...@gmail.com wrote: Hi all. I'm trying to find a low cost solution to do 1-1 screen sharing/remote control, preferably inside a flex application, alternatively as a popup window. The application also need some other collaboration widgets, so I was looking at Acrobat Connect, but I can't find any information about customization of the user interface and adding new pods. Any help You can give is much appreciated! Best regards and have a nice day! Allan Pichler Brewmaster - ColdFusion/Flex/Ajax/UI image001.jpgimage002.jpg
RE: [flexcoders] Ideas / input greatly appreciated
Okay.. Let me elaborate a little more.. The requirement is that instructors and students are connected one to one.. And see/control each others desktop. Flashlight-VNC is a VNC Viewer / Player written in Flash. It can connect to a VNC server. wouldn't that mean that all users need to install a vnc server for it to work? Also only the top 2 versions of acrobat connect pro have options for customization and as far as I have been told the annual subscription for connect pro is 50K USD --Allan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jeffry Houser Sent: Friday, May 29, 2009 10:53 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Ideas / input greatly appreciated I have no idea what the costs are, but did you try googling Customize Connect: http://www.google.com/search?source=ig http://www.google.com/search?source=ighl=enrlz==q=customize+Connectbtn G=Google+Searchaq=foq= hl=enrlz==q=customize+ConnectbtnG=Google+Searchaq=foq= Allan Pichler wrote: Hi all. I'm trying to find a low cost solution to do 1-1 screen sharing/remote control, preferably inside a flex application, alternatively as a popup window. The application also need some other collaboration widgets, so I was looking at Acrobat Connect, but I can't find any information about customization of the user interface and adding new pods. Any help You can give is much appreciated! Best regards and have a nice day! Allan Pichler Brewmaster - ColdFusion/Flex/Ajax/UI -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust image001.jpgimage002.jpg
RE: [flexcoders] Ribbon in FLEX
Hi all.. I'm sorry to say that for some reason I am missing the list of people who wanted the code/graphics for a ribbon/editor toolbar I made quite a while ago. If interested parties would raise their hand off list (so to speak) please do so... I have finally had time to locate the files in question. I apologize for the trouble and wish everyone a great Sunday night! Allan Pichler Brewmaster - ColdFusion/Flex/Ajax/UI Email: dreamc...@gmail.com Phone: (415) 683 0313 Skype: apichler Yahoo: allan_pichler LinkedIn: http://www.linkedin.com/in/apichler Website: http://www.unzipmenow.com From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jeffry Houser Sent: Friday, March 13, 2009 9:43 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Ribbon in FLEX This is one of the components were were considering for Flextras; however I'm unclear how a Ribbon is different than a TabNavigator, though. I'd love to hear more thoughts on it, either on-list or off. Sam Lai wrote: http://office.microsoft.com/en-us/products/HA101679411033.aspx?pid=CL1007963 41033#2 Kind of like the toolbar for picking controls in Adobe Dreamweaver (unless they've changed it in recent versions). Unfortunately I haven't heard of any Flash implementations, only Silverlight implementations. You could implement it yourself using a TabNavigator and Panel controls inside each tab for groups, and buttons inside them. It's the styling that will be a pain - the official specs are available from Microsoft for free though, with some conditions attached (http://msdn.microsoft.com/en-au/office/aa973809.aspx). You could also use the images and even code if you know XAML from the Silverlight version - http://silverlightribbon.codeplex.com/ Personally I'd be making my own interpretation of the ribbon control instead of following the Microsoft version to the dot, especially seeing as they have changed a few bits in Windows 7 which will probably filter down to Office in Office 2010 (e.g. the confusion with the File menu - the Orb in the top corner is now gone). 2009/3/13 Tracy Spratt mailto:tspr...@lariatinc.com tspr...@lariatinc.com: I am not familiar with that control, can you describe it? Tracy Spratt, Lariat Services, development services available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Claudio M. E. Bastos Iorio Sent: Friday, March 13, 2009 2:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Ribbon in FLEX Hi, Is there any component (free or paid) similar to the office 2007 ribbon control? TIA __ Claudio M. E. Bastos Iorio -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62 079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust image001.jpgimage002.jpg
RE: [flexcoders] Re: Ribbon in FLEX
Hi all.. Let me dig up the files sometime today ( should be around here somewhere although I made it back in December 07 ) and I will send it to all interested parties as well as add them to my experimental site http://www.unzipmenow.com for anyone interested at a later stage. Thanks for all your kind words Best regards and have a nice day! Allan Pichler Brewmaster - ColdFusion/Flex/Ajax/UI Email: dreamc...@gmail.com Phone: (415) 683 0313 Skype: apichler Yahoo: allan_pichler From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Marius-Remus Mate Sent: Friday, March 13, 2009 3:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Ribbon in FLEX Check this out http://mindomo.com/demo.htm You should contact the nice guys at Mindomo, maybe you can work something out. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Claudio M. E. Bastos Iorio selecter...@... wrote: Hi, Is there any component (free or paid) similar to the office 2007 ribbon control? TIA __ Claudio M. E. Bastos Iorio image001.jpgimage002.jpg
[flexcoders] Creating multiple images and save
Hi all! I'm trying to create an little tool that initially loads an xml file containing the following: root xmlns= settings roundedCorners radius15/radius /roundedCorners dropShadow alpha0.7/alpha distance5/distance color0x00/color bgcolor0xff/bgcolor /dropShadow /settings files file names4.jpg/name folderimages/queue/folder /file file nameIMAGE_10.jpg/name folderimages/queue/folder /file file nameIMAGE_11.jpg/name folderimages/queue/folder /file /files /root Then I take each of those image files, make rounded corners and apply a drop shadow to them. Finally I need to send the created back to the server, but I'm not quite sure how to accomplish that.. Any help is appreciated Best regards Allan Pichler
[flexcoders] Posting extended Flexlib component?
Hi all I have extended the flexlib scrolling canvas to use for an image gallery and I'm wondering if it's okay to make the source of such a component downloadable from a public website? A beta non-source version can be found at www.unzipmenow.com/flib-gallery/index.html Feel free to comment/question me directly if you like, so we don't overload the mailing list! Thank you all in advance! Best regards Allan Pichler Brewmaster - ColdFusion/Flex/Ajax/UI Email: [EMAIL PROTECTED] Skype: apichler Yahoo: allan_pichler
RE: [flexcoders] Class file in flex
This would probably work as well.. Without changing the AS class. --A ?xml version=1.0 encoding=utf- 8? mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml http://www.adobe.com/2006/mxml xmlns:inc=includes.* layout=absolute mx:Script ![CDATA[ import Includes.ClassTesting; import mx.messaging.AbstractConsumer ; public function ansT():void { ans.text = tester( frst.text,scnd. text); } ]] /mx:Script inc:ClassTest / mx:Button x=52 y=192 label=Button id=b1 click=ansT( ) borderColor= #10DD10 height=26 width=69/ mx:Text x=52 y=77 text=12 width=293 id=frst visible=true / mx:Text x=52 y=103 text=23 width=293 id=scnd visible=true / mx:Text x=52 y=155 text=34 width=293 id=ans visible=true / /mx:Application From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Laurent Cozic Sent: Tuesday, August 12, 2008 4:10 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Class file in flex You can't include a class within a class, you can only include plain ActionScript files. So to fix your issue, you simply need to remove the package and class statements from your actionscript file. You should probably also remove the import Inculdes.ClassTesting;. Also it might compile, it won't make any sense once you convert the AS file. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com --- On Tue, 8/12/08, litesh_b321 [EMAIL PROTECTED] wrote: From: litesh_b321 [EMAIL PROTECTED] Subject: [flexcoders] Class file in flex To: flexcoders@yahoogroups.com Date: Tuesday, August 12, 2008, 10:59 AM hi guys, I am trying action script class in flex 3.0 I have action script class in Inculdes\ClassTest ing.as directory which is situated inside src directory. See code below : ?xml version=1.0 encoding=utf- 8? mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml http://www.adobe.com/2006/mxml layout=absolute mx:Script ![CDATA[ import Inculdes.ClassTesti ng; import mx.messaging. AbstractConsumer ; include Inculdes/ClassTest ing.as; public function ansT():void { ans.text = tester( frst.text,scnd. text); } ]] /mx:Script mx:Button x=52 y=192 label=Button id=b1 click=ansT( ) borderColor= #10DD10 height=26 width=69/ mx:Text x=52 y=77 text=12 width=293 id=frst visible=true / mx:Text x=52 y=103 text=23 width=293 id=scnd visible=true / mx:Text x=52 y=155 text=34 width=293 id=ans visible=true / /mx:Application Error I am facing Severity and Description Path Resource Location Creation Time Id Packages cannot be nested. [Generated code (use -keep to save): Path: C:\Documents and Settings\pacific\ My Documents\Flex Builder 3\test\src\Inculdes \ClassTesting. as, Line: 2, Column: 1] test Unknown 1218537300687 70656 Please help me out ThanX
Re: [flexcoders] Re: a simple question of BitmapData
I believe this should work. private var bitmapDataCopy:BitmapData; private var sourceBitmap:BitmapData; private function init():void { var imgLoad:Loader=new Loader(); imgLoad.contentLoaderInfo.addEventListener(Event.COMPLETE,init2); imgLoad.load(new URLRequest(assets/imagename.png)); } private function init2(e:Event):void { sourceBitmap = e.target.content.bitmapData as BitmapData; bitmapDataCopy = sourceImage.clone(); } On Sat, May 17, 2008 at 8:41 PM, Alex Harui [EMAIL PROTECTED] wrote: SWFLoader doesn't get going until you addChild it. If you use flash.display.Loader, you might be able to load w/o addChild -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *flexawesome *Sent:* Saturday, May 17, 2008 3:16 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: a simple question of BitmapData Hi there, I have updated the code ( enabled line5 ) and get the duplicate copy of gif file. Is there a way to prevent to use addChild but still can get the copy of the image? Cheers http://www.privatepaste.com/29lCTCERRY --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, flexawesome [EMAIL PROTECTED] wrote: Hi there, do you know how can I use it to duplicate the image? It seems doesn't work. any ideas? Thank you loader = new SWFLoader(); loader.addEventListener(Event.COMPLETE, Bitmapdata) loader.source = http://us.i1.yimg.com/us.yimg.com/i/us/nt/ma/ma_tech- grp_1.gif //addChild(loader); private function oBitmapdata(e:Event):void { var img:Image = new Image(); var data:BitmapData = Bitmap(loader.content).bitmapData; var bitmap:Bitmap = new Bitmap(data); img.addChild(bitmap) addChild(img); }
Re: [flexcoders] Re: a simple question of BitmapData
Sorry error in it try the code below instead private var bitmapDataCopy:BitmapData; private var sourceBitmap:BitmapData; private function init():void { var imgLoad:Loader=new Loader(); imgLoad.contentLoaderInfo.addEventListener(Event.COMPLETE,init2); imgLoad.load(new URLRequest(assets/imagename.png)); } private function init2(e:Event):void { sourceBitmap = e.target.content.bitmapData as BitmapData; bitmapDataCopy = sourceBitmap.clone(); } On Sun, May 18, 2008 at 4:55 PM, Allan Pichler [EMAIL PROTECTED] wrote: I believe this should work. private var bitmapDataCopy:BitmapData; private var sourceBitmap:BitmapData; private function init():void { var imgLoad:Loader=new Loader(); imgLoad.contentLoaderInfo.addEventListener(Event.COMPLETE,init2); imgLoad.load(new URLRequest(assets/imagename.png)); } private function init2(e:Event):void { sourceBitmap = e.target.content.bitmapData as BitmapData; bitmapDataCopy = sourceImage.clone(); } On Sat, May 17, 2008 at 8:41 PM, Alex Harui [EMAIL PROTECTED] wrote: SWFLoader doesn't get going until you addChild it. If you use flash.display.Loader, you might be able to load w/o addChild -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *flexawesome *Sent:* Saturday, May 17, 2008 3:16 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: a simple question of BitmapData Hi there, I have updated the code ( enabled line5 ) and get the duplicate copy of gif file. Is there a way to prevent to use addChild but still can get the copy of the image? Cheers http://www.privatepaste.com/29lCTCERRY --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, flexawesome [EMAIL PROTECTED] wrote: Hi there, do you know how can I use it to duplicate the image? It seems doesn't work. any ideas? Thank you loader = new SWFLoader(); loader.addEventListener(Event.COMPLETE, Bitmapdata) loader.source = http://us.i1.yimg.com/us.yimg.com/i/us/nt/ma/ma_tech- grp_1.gif //addChild(loader); private function oBitmapdata(e:Event):void { var img:Image = new Image(); var data:BitmapData = Bitmap(loader.content).bitmapData; var bitmap:Bitmap = new Bitmap(data); img.addChild(bitmap) addChild(img); }
Re: [flexcoders] layout question
verticalAlign=middle On Wed, May 14, 2008 at 12:42 AM, Maciek [EMAIL PROTECTED] wrote: Hi. I've been doing a fair amount of Actionscript, and am now getting to do some mxml layout. I I have a component with a login control (this is the only child in the component, and the parent is a VBox with width and height set to 100%): mx:Panel id=loginPanel mx:Form id=loginForm left=10 right=10 bottom=10 top=10 mx:FormHeading label=Welcome/ mx:FormItem label=User Name mx:TextInput id=username/ /mx:FormItem mx:FormItem label=Password mx:TextInput id=password displayAsPassword=true/ /mx:FormItem /mx:Form mx:Button label=Log in click=handleLogin(event) bottom=10 right=10/ /mx:Panel This does what I expect for the form, (it has a margin of 10px), but the button is clinging to the bottom left of the panel. I think I'm missing something. Any suggestions? -Maciek
[flexcoders] Call DLL functions from actionscript
Does anyone know if one can call functions from arbitrary dlls in actionscript? I know it's highly non-cross platform, but still? Thanks --Allan http://www.unzipmenow.com