[flexcoders] strange behaviour of List
I have editor of xml content with remove button. Simple code with click handler: delete offfers.offer.(@id=itemsList.selectedItem.id)[0] where offer is XML type, itemsList is List type widget Problem is that delete removes xml node and ALL values of id attributes from my xml tree? What happen? -- robert -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] mxmlc -increment not working.
option is: -incremental and works for me Robert Was Paul Spitzer wrote: Did anyone ever figure this out? I've having the same problem. I'm trying to use incremental compiling w/ ANT but am getting the following error... "Failed to match the compile target with ... Administrator_405624.cache. The cache file will not be reused." The .cache file is created without any problems but the compiler is complaining about it. Any ideas? Thanks --- In [EMAIL PROTECTED]ups.com, "Lance Linder" [EMAIL PROTECTED] wrote: I am getting the following message from the MXMLC compiler when calling it from NAnt using the -increment parameter. "[exec] Failed to match the compile target with myApp_411843.cache. The cache file will not be reused." I don' t see any reason why this wouldn't work if I run multiple compiles back to back using the -increment parameter and I don't even change any code. I do see _x.cache files showing up but as you can see the compiler refuses to use them. Any ideas? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] loading font in runtime
I build interface where user select font form list, font is loaded and applied to text in textarea. I found that my method works only once on, subsequent loading not embed new font. What can i fix? 1. template class for compiling with embedded font package { import flash.display.Sprite; public class FontTemplate extends Sprite { [Embed(source='../../@FONT_FILE@', fontName='@FONT_NAME@', mimeType='application/x-font')] public var myFont:Class; } } 2.class fragment about loading private function loadFont():void{ var context:LoaderContext=new LoaderContext() context.applicationDomain=ApplicationDomain.currentDomain var req:URLRequest=new URLRequest(designElement.designElementVO.font.swf_glyphs_url) ld=new Loader() ld.contentLoaderInfo.addEventListener(Event.COMPLETE,evFontLoaded) ld.load(req,context) } private function evFontLoaded(e:Event):void{ var content:DisplayObject=ld.content var cl:Class=content[myFont]; Font.registerFont(cl) var fonts:Array=Font.enumerateFonts() var str:String=Embeded fonts:\n for(var i:uint=0;ifonts.length;i++){ str+=Font( fonts[i] ).fontName+\n } trace(str) tf.setStyle(fontFamily, ... -- Robert Was -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Font size limit
Is any technical rule for flash player that prevents set fontSize style above about 130? In flash ide i can set font size to very large sizes but if i have only flex compiler i can't. I try on native TextField too with similar result. Below my test class package { import flash.display.Sprite; import flash.text.TextField; import flash.text.TextFormat; public class FontTest extends Sprite { [Embed(source='../../@FONT_FILE@', fontName='@FONT_NAME@', mimeType='application/x-font')] public var myFont:Class; private var tf:TextField public function FontTest (){ tf=new TextField() addChild(tf) tf.width=100 tf.height=500 tf.text=a tf.embedFonts=true var tForm:TextFormat=new TextFormat(@FONT_NAME@,600) tf.setTextFormat(tForm) // tf.scaleY=tf.scaleX=3 //scaling works OK } } } -- Robert Was -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] loading font in runtime [fixed]
It was something with flex internals, flex can't register class with different variables values. Following works for me package { import flash.display.Sprite; public class [EMAIL PROTECTED]@ extends Sprite { [Embed(source='../../@FONT_FILE@', fontName='@FONT_NAME@', mimeType='application/x-font')] public var myFont:Class; } } and ant macro: macrodef name=compileFont attribute name=file / attribute name=name / attribute name=srcDir default=${basedir}\src\as\ / attribute name=destDir default=${basedir}/bin / attribute name=templateFile default=_FontTemplate.as / sequential copy file=@{srcDir}/@{templateFile} overwrite=true tofile=@{srcDir}/[EMAIL PROTECTED] encoding=utf-8 filterset filter token=FONT_FILE value=@{file} / filter token=FONT_NAME value=@{name} / /filterset /copy java jar=${flex2.sdk}\lib\mxmlc.jar dir=${flex2.sdk}\frameworks fork=true failonerror=true arg line= -load-config '${flex2.sdk}/frameworks/flex-config.xml' -output '@{destDir}/[EMAIL PROTECTED]' -source-path 'C:/Documents and Settings/robert/Moje dokumenty/work/VirtualDraftsman/src/as' -file-specs 'C:/Documents and Settings/robert/Moje dokumenty/work/VirtualDraftsman/src/as/[EMAIL PROTECTED]' / /java move file=@{destDir}/[EMAIL PROTECTED] tofile=fonts/@{name}.swf / /sequential /macrodef happy coding ;) -- Robert Was -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex AMFPHP and VOs
It is Reanaun's RemoteObjectAMF0, it works form me with php5, cairngorm 0.99, flex2 Robert Was Oriol Gual wrote: Well, it wasn't PHP 4, it was my fault. But, I still receive a plain Object, not an object of my class. I'm using Renaun's solution to connect to amfphp, what are you using? Thanks. 2006/7/22, Oriol Gual [EMAIL PROTECTED]: HI, Thank you for the responses. Using the registar class solved the problem form flex to php, I thought classes were automatically registered. On the other hand Robert, I suppose that you are using PHP 5, does it worked also on PHP 4? 2006/7/22, Robert Wąs [EMAIL PROTECTED]: registerClassAlias( "vd.vo.ProductVO", ProductVO ) php: class ProductVO{ public $_explicitType="vd.vo.ProductVO"; ... works for me in swf to php and reversed direction Robert Was Oriol Gual wrote: Hi, I've been using Flex and AMFPHP for a while, but there's one thing that is driving me nuts: class mapping. Has anyone mapped correctly a VO from Flex to PHP with AMFPHP or viceversa? I've tried several ways, but I all I get are plain objects. Any help would be very much appreciated, especially a working example. Oriol Gual. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] complex object in cairngorm
In the examples that i know i not found solution how persist complex objects in server side (for me sql) storage. For example following structure: Group -name Product -name -imageURL -price Model -color Group has 1...n Products, Product has 1...n Models Temporary i have VO for every objects, but VO are bloated if i use it in different context, for example sometimes my Product should has image I manage that structure view in swf but if i want persist them that should i do - just send whole tree to server via VO and create sql queries? I use cairngorm, amfphp. -- Robert Was -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] .actionScriptProperties, .flexProperties, .project files with SVN
Maybe you in "Adobe Flex Builder 2 Extensibility " manual you found simple solution but in practical life i found that closeopen project refresh that information Robert Was Sergey Kovalyov wrote: Hi All! When working in team with SVN and updating .actionScriptProperties, .flexProperties, .project files, it's necessary to restart Eclipse in order to get that setting working. Is there any option to turn on automatic project options update from those files upon change? Sergey. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Flex AMFPHP and VOs
registerClassAlias( "vd.vo.ProductVO", ProductVO ) php: class ProductVO{ public $_explicitType="vd.vo.ProductVO"; ... works for me in swf to php and reversed direction Robert Was Oriol Gual wrote: Hi, I've been using Flex and AMFPHP for a while, but there's one thing that is driving me nuts: class mapping. Has anyone mapped correctly a VO from Flex to PHP with AMFPHP or viceversa? I've tried several ways, but I all I get are plain objects. Any help would be very much appreciated, especially a working example. Oriol Gual. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] need solution/best practice regarding VO's
... On one hand: Class mappings won't work with VO's insite another VO. ... This works for me public class FaceVO implements ValueObject{ ... public var printAreas:Array } in component that binds vo (FaceVO instance) for(var i:uint=0;idata.printAreas.length;i++){ var row:PrintAreaVO=PrintAreaVO(data.printAreas[i]) //trace("is instance: "+(row is PrintAreaVO)) //traces "is instance: true" } Robert Was Andrea Varga wrote: Hi All! I'm going to ask my question through an example. (I'm using Cairngorm, but I think the problem is general) Let's say I have a database with 2 tables: 1. user - with fields: user_id, user_name, user_country_id (foreign key from country table) 2. countries - with fields: country_id, country_name Let's say I need an application that lists all the users, in a datagrid with 2 columns: User Name, Country Name. How should I approach this? Let's say I have 2 VO's, to reflect the database structure: class UserVO { public var ID:int; public var name:String; public var countryID:int; } class CountryVO { public var ID:int; public var name:String; } And I have in my Model: users:ArrayCollection; // array collection of UserVOs countries:ArrayCollection; // array collection of CountryVOs How could I create a binding of users to a Datagrid, so it will display the country names? Or how else should I approach the problem? In case I have: class UserVO { public var ID:int; public var name:String; public var country:countryVO; } I think the bindig would be possibe, but a bunch of other questions/problems appear. Eg.: I'm using remoting to get the data from the server (AMFHP). On one hand: Class mappings won't work with VO's insite another VO. On second hand: I have to load the list of countries (I need it somewhere else), and I would not want to carry the CountryVO inside the UserVO, for many reasons. One of them is: this is a simple example, but what if CountryVO is a more complex data, and i need to send a userVO to the server (to update the database for example), I don't need a CountryVO there, just a UserVO that has the ID of a country. Thanks, Andi __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] E4X (PLEASE READ ANY CLUE WILL HELP)
Tom Chiverton wrote: On Monday 03 July 2006 23:12, tonyx_788 wrote: IS IT POSSIBLE TO USE THE OPENOFFICE DOCUMENT INSTEAD OF DOING THE CHANGE TO XML BY TIPYING ALL OVER AGAIN Yes. OpenOffice files are just ZIP archives containing XML. SOME DOCS Have you tried the OpenOffice site ? I think you want server side program that (using xslt) generate openoffice xml doc with swf data, compress them. OO docs are rather big regards to visual information stored there. Robert -- Letnia wyprzedaz aparatow cyfrowych! Aparat Panasonic 5mln pikseli 400zl taniej! http://www.hoopla.pl/about_pr1.php?ref=40 Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] FlexBuilder - error during help panel usage
You have something wrong with explorer config, try check switch off script debuging in browser settings, maybe your have also script debuger installed from microsoft site. rw Thomas Rühl -akitogo- wrote: Hello list, i just came across a new bug(?) in my FlexBuilder installation - maybe someone can help me out here. Everytime I do stuff that involves the help panel in eclipse, it shows me an error message (see attachment). For the non-german folks - the translation should be something around this: ť A runteime error occured. Start the debug mode? Line: 91 Error: 'parent.titlebar.document' is NULL or not of type object YesNo Ť I select not to debug, and it ends up showing the help panel as it is supposed to - nothing unusual there. I think, the error comes somewhat out of the Internet Explorer, that is used to display html in eclipse, isn't it? However, in other scenarios, the IE integration works fine and without any errors. It's just the help panel in FlexBuilder. Anyways, it would be extremely nice to find a solution to that situation. Thanks and cheers, Thomas Thomas Rühl Design, Programming Concepts akitogo OHG Hanauer Landstrasse 188 60314 Frankfurt Telefon +49 (0) 69 800 69 445 Fax +49 (0) 69 800 69 449 Mobil +49 (0) 179 750 75 87 E-Mail [EMAIL PROTECTED] mailto:thomas.ruehl%40akitogo.com Web http://www.akitogo.com http://www.akitogo.com -- Letnia wyprzedaz aparatow cyfrowych! Aparat Panasonic 5mln pikseli 400zl taniej! http://www.hoopla.pl/about_pr1.php?ref=40 Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/