[flexcoders] Validator._init method
Hi, I am creating forms items at runtime using createChild method, and I need to validate the controls in the form. How to use validator subclasses to validate the newly created form? Maybe a call to the Validator._init method ? But what are the parameters that need to go in?? Regards -- 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/
[flexcoders] Australian Flex Mailing List [flexaussie]
Hey Guys, I've started a new flex mailing list for us Aussies! This not an effort to move Australian developers away from using FlexCoders, rather it may be useful for Aussie developers to post messages that may not be suitable for the international list. Anyway the details. http://groups.yahoo.com/group/flexaussie/ Post message: [EMAIL PROTECTED] Subscribe: [EMAIL PROTECTED] Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies -- 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] Re: CairngormEvent Antipattern
e_baggg wrote: Andi- Tom was referring to having a hierarchy of FrontControllers. He happens to have a class called CoreController which all of his Flex apps would use. Then, each Flex app will have it's own FrontController that extends CoreController...this way each developer has their own controller. This assumes of course there's 1 developer working on a project. The CoreController would house the common Commands such as Login, Logout, and similar things. If you're in the situation where you have 1 large Flex app that has 1 large controller that all the developers are fighting for...I would suggest that users update the Contoller and check in their empty Command classes right away. Then begin development. That way if it takes them 2 days to implement the logic for an event, they won't have a lot of contacts. Another option is to make one developer the 'owner' of the front controller and have other developers e-mail them the line of code for the command. Thank you. I just wasn't sure this is the right way to do it. I mean, that cannot be more than one FrontController/project. It seems, this is the only solution. The problem I'm having with this is not regarding the 'owner', with a version control system that's not a problem. But the FrontController gets bigger and bigger, and less managable (although there is nothing much to manage :), just a bunch of addCommands :)), and I don't know weather this could cause problems or not (regarding speed for example). Andi --- In flexcoders@yahoogroups.com, Andrea Varga [EMAIL PROTECTED] wrote: Tom Chiverton wrote: On Wednesday 30 August 2006 13:14, Andrea Varga wrote: (For example, on a large project, when there are many developers working, all of them has to edit the FrontController to add an event.) This isn't a problem with a decent RCS. As it is, we've got a CoreController and then indivdual projects extend that to make their application specific events. Could you please tell me where can I found more about this? I cannot find anything. 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 Yahoo! Groups Links -- Andrea Varga Managing Partner / Project Manager Certified Macromedia Flash MX 2004 Developer -- Spin Development Srl Tel: +44 207 043 1304 Fax: +44 207 681 1376 Skype ID: vargaandrea Mon-Fri : 8 AM - 5 PM GMT+2 Saturday: 8 AM - 4 PM GMT+2 (Support only) -- -- 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] Re: Anyone actually able to save data from flex
It works fine for me - if you receive stream errors then this may be a security issue or an issue with the server not being able to handle the result correctly. Instead of sending a XML structure, have you tried POSTing simple String values? Does this work for you? Dirk. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mthielman11 Sent: Thursday, August 31, 2006 2:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Anyone actually able to save data from flex OK we tried this method as well. We have now spent another entire day on this! Does anyone have a simple example of sending an XML file (or XML model) Via aHTTP service Post?? We have tried this many ways and honestly this has become very, very frustrating for everyone involved. If no one has any ideas, how about some place where i might be able to find an answer. I tried the Adobe forums and no one ever seems ro respond over there. Help :) --- In flexcoders@yahoogroups.com, Mike Collins [EMAIL PROTECTED] wrote: HTTPService passes strings not objects so that is most likely the issue. Either convert the DataModel to a xml string or do something like this to pass in the variables as form variables. If you want to pass objects you need to use RemoteObject calls. public function submitURL() { var variables:Object = new Object(); // Build request variables.parent1firstname = parent1firstname.text; variables.parent1lastname = parent1lastname.text; // Submit submitData.request = variables; submitData.send(); } -- 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 -- 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/
[flexcoders] Re: how to show/hide a line in a chart
(see the first post in this topic) FLEX 1.5 ! -- 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] Re: Flex 2 patch timeline
On Wednesday 30 August 2006 22:58, jdixon428 wrote: Is there a location on Adobe's web site that lists all known bugs for Flex Builder 2? Adobe doesn't make the bug list public. -- Tom Chiverton Helping to biannually disintermediate magnetic users This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- 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/
[flexcoders] Problems with using mx:Validator tag in MXML and code-behind approach in Flex 2
Hello flexcoders, I am using code-behind approach (http://www.adobe.com/devnet/flex/quickstart/building_components_using_code_behind/) and my mx:Validator tag is declared in MXML. During compiling, I receive a warning Data binding will not be able to detect assignments to username. Thus, my binding to 'source' property in mx:Validator does not work! My MXML: 1) - ?xml version=1.0 encoding=utf-8? local:ValidationFormBase xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:local=* mx:Validator required=true id=_messageTextRequireValidator source={username} property=text / mx:TextInput left=85 right=10 top=10 id=username/ /local:ValidationFormBase - My code-behind AS3 'ValidationFormBase.as' class: 2) - package { import mx.core.Application; import mx.controls.TextInput; public class ValidationFormBase extends Application { public var username : TextInput; public function ValidationFormBase() { super(); } } } --- If I use Validator class in AS3 for validation, everything works fine, but I simply want to declare mx:Validator tag in MXML, it is sooo much convenient. We are using code-behind approach (http://www.adobe.com/devnet/flex/quickstart/building_components_using_code_behind/) for 1 year already for all our code and we do not want to resign from this approach. All developers in our company strongly believe that *ANY* AS3 code should be separated from the MXML markup. -- Best regards, Andriy mailto:[EMAIL PROTECTED] -- 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] Problems with using mx:Validator tag in MXML and code-behind approach in Flex 2
Hello all, During compiling, I receive a warning Data binding will not be able to detect assignments to username. Thus, my binding to 'source' property in mx:Validator does not work! I had figured out my error, I should use [Bindable] directive in my AS3 class with every variable that got binded in MXML, like this: [Bindable] public var username : TextInput; -- Andriy -- 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/
[flexcoders] accessing an XMLRPC service
hey, there, sorry for the cross posting (new to the group)I've googled around for 2 days and found Zero documentation about it.Can anyone give me a pointer on how I'd access an XMLRPC service in AS3?I've tried with AbstractService and HTTPService with no luck.any help would be greately appreciated..marcos All-new Yahoo! Mail - Fire up a more powerful email and get things done faster. __._,_.___ -- 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 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] calling XMLRPC
I've spent the last 2 days googling about this and wouldn't find a concrete answer. So far I've found ZERO documentation out there. Can anyone give me a pointer on how I'd call an XMLRPC service in AS3? I tried HTTPService and AbstractService with no luck. -- 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] Flex 2 Remoting and ASP.net (flourine?) examples?
That tutorial is currenlty for Flash and AS2.0. I intend on duplicating that tutorial for Fluorine with Flex, webOrb and flex, also for amfphp and flex. Unfortunately I don't have the hardware to cope at the moment so as soon as I fork out and upgrade i'll get on it. :) Dan-- http://danny-t.co.uk __._,_.___ -- 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 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] amfphp-AS class mapping issue
Hi, I'm in a Flex2 app.I can't manage to map a php return value to the right AS type...In my service method I have this return statement:return new Result( true, new Status() );In Result.php I havepublic $_explicitType = "org.bestiario.website.Result";In Status.php I havepublic $_explicitType = "org.bestiario.website.Status";I also have the corresponding Result.as and Status.as classes on the Flex side.In my HTTP debugger (Charles) I can see the AMF packet coming with correct types as you can see here: http://www.joangarnet.com/_otras/charles.gifBut when the callback executes and I do:public function onResult( event:* = null ):void{ var res:Result = Result(event.result);}I get the following exception:TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to org.bestiario.website.Result.Any ideas??Cheers!P.S. I'm using Renaun's RemoteObjectAMF0 class to call amfphp services. __._,_.___ -- 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 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] UK(HSMP),Student Visa Interview Guide or New Zealand Immigration??
UK(HSMP),Student Visa Interview Guide or New Zealand Immigration??The Highly Skilled Migrant Programme is one option that may be available topeople wanting to immigrate to the UK or who are interested in getting a workpermit for the UK. The Highly Skilled Migrant Programme operates on apoints-based system. The Highly Skilled MigrantProgram in the UK differs from the UK Work Permit Student visa Interview Points:You must not intend to work in UK unless you are accepted for acourse lasting longer than six months, when you may work part-time orduring vacations.You must intend to leave UK at the end of your studies.Documents Required For a Student Visa. A letter of acceptance on the course -- http://visahsmp.blogspot.com/ Do you Yahoo!? Get on board. You're invited to try the new Yahoo! Mail. __._,_.___ -- 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 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] help about styling Chinese character
Hi, i tried to set the fontFamily stlye to some Chinese Character,but it seems don't work, this is the code snip ... mx:Style .someStyle{ fontFamily: 黑体; /* a very common Chinese Font */ fontSize: 32; } /mx:Style mx:Text text=follow is 中文 styleName=someStyle / ... yes,it is simple,the English character works well ,but the Chinese character did not change the fontFace style as expected, I notice this issue exists a very long time(at least since flash 6),the flash did not support the Chinese character in dynamic text styled by Chinse font. is it a bug or is there a way to resolve this issue that i don't know? -- 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] Embedding fonts at runtime
Hi Daniel, I am a little confused what you mean exactly. I have tried to set a Label mxml component's style directly using the fontFamily name, and when I do the text in the label diappears. Did you get it to actually display the symbol font? Here is the pertinent part of my current code: mx:Label id=myLabel text=test / mx:Script ![CDATA[ private var ldr:Loader; private function onInit() : void { showFonts(); var context:LoaderContext = new LoaderContext(); context.applicationDomain = ApplicationDomain.currentDomain; var req:URLRequest = new URLRequest( SymbolInclude.swf ); ldr = new Loader(); ldr.contentLoaderInfo.addEventListener( Event.COMPLETE, onLoaderComplete ); ldr.load( new URLRequest( SymbolInclude.swf), context ); } private function onLoaderComplete(e:Event) : void { trace(onLoaderComplete: ); var content:DisplayObject = ldr.content; var c:Class = content[myFont]; Font.registerFont(c); myLabel.setStyle( fontFamily, mySymbol ); showFonts(); } public function showFonts():void { trace(showFonts()); var fontList : Array = Font.enumerateFonts(); for ( var i:String in fontList ) { trace(font: + Font( fontList[i] ).fontName); } } ]] /mx:Script Daniel Freiman wrote: I figured out how to use the textformat object. The textformat object does actually work, but a TextField will only retrieve the embeded font if it's parent has previously been sent set the font as a style. So for any component that uses a UITextField, set the fontFamily style of the parent UIComponent to the newly loaded font and then the UITextField should be able to use the font even if fontFamily is subsequently reset. I have no idea why this works, so there may be some improvements to this method. On 8/30/06, *Brian Deitte* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: One addition to this, which is that we always include the space character when you specify the unicode range. I'm not sure the original reasoning for this, but I just noticed it in the code. Also, you can specify multiple ranges, separated by commas. -Brian *From:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com] *On Behalf Of *Dirk Eismann *Sent:* Wednesday, August 30, 2006 2:07 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] Embedding fonts at runtime Yes, this is possible: [Embed(source=Arial.ttf, fontName=myArial, unicodeRange=U+0041-U+005A )] public var myClass:Class; Dirk. *Von:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com im Auftrag von Daniel Wabyick *Gesendet:* Mi 30.08.2006 18:58 *An:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com *Betreff:* Re: [flexcoders] Embedding fonts at runtime Awesome! I'll definitely have to check this out. On a related note, I wonder if its possible to embed fonts with a specific unicode range via this syntax. It doesn't appear to be. [Embed(systemFont='Symbol', fontName='mySymbol', mimeType='application/x-font')] var myFont:Class; I know you can use @font-face, which appears to automatically generate a variable in the class, but its not a consistently named variable. I am sure a utility function in the class could be used to ferret out that variable name. Daniel Freiman wrote: I altered the code a little and got it half working. It works if you're setting the imported font using setStyle, but not if you're setting the font through the TextFormat object. Simply add the lines: var content:DisplayObject = ldr.content; var c:Class = content[myFont]; Font.registerFont(c); to the begining of onloadercomplete. I'm going to continue working on how to get the font to show up through TextFormat. On 8/29/06, * Daniel Wabyick* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL
[flexcoders] Create Sound Spectrum in AS3
I'm trying to create a spectrum display for microphone input/playback in ActionScript 3 but can't seem to get it to work. I understand that the SoundMixer class does not control dynamically created Sound objects, but surely there is a way around this! Has anyone done this or have any ideas on how to approach this problem? I can record and playback the sound using rtmp and net streams just fine, but can't manage to create any form of sound spectrum from this sound. I'm at a loss here... Any suggestions would be appreciated!! -- 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/
[flexcoders] Re: Bubbling, Practical Use?
[EMAIL PROTECTED] wrote: Say you've got a DataGrid that uses a ComboBox as an itemRenderer. You probably wouldn't want the logic that handles the change event of the CB inside that itemRenderer component, you would want it in the parent of the DataGrid Ben, please forgive my lack of Flex experiance, but can I ask why not? shouldn't the ComboBox be seen as a self-contained component that should handle all it's own stuff? it's goal is to capture a users selection, the data of which is held as public var CbSelection:String;. lets say you want to have a custom version of this that is a listbox - it has a property of mandetoryItemsSelected where 2 means that the user has to select 2 items. Surely the validation of that goes into the itemRenderer component, not the parent of the datagrid? The output of the component is a list of the two items, and the parent shouldn't care whether it's a comboBox or a group of CheckBoxes? or am I wrong? if so, please correct me. thanx barry.b -- 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] Getting mouse and keyboared events to pass through transparent parts of flex?
On Wednesday 30 August 2006 11:29, Erik Kärrsgård wrote: Getting the transparency to work is not a problem (and it looks very nice to) but the texts and links below is annoyingly unreachable... ExternalInterface. -- Tom Chiverton Helping to heterogeneously transform prospective m-commerce This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- 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] Time calculation oddity
On Wednesday 30 August 2006 14:42, m88e24 wrote: Why does the result have a different timezoneOffset? Because everything is converted down to UTC (or not) before the milliseconds are subtracted. This can be very confusing :-( What TZ are you in ? Is there another way of calculation time differences? No, Flex lacks a proper set of date/time classes. -- Tom Chiverton Helping to synergistically disseminate 24/7 content This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- 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/
[flexcoders] Re: Webservice and column name question.
No it gave me the actual data. But thanks allot for the response. Here is what i have finally come up with: for(var i in test){ for(var j in test[i]){ trace(j); }} My initial thought about flex and actionscript: It is a hard road getting to the solution but once there it is such a simple answer. Thanks everybody! --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: Does this give you what you want? for each(var item in test) { for each(var colname in item) { trace(colname); } } --- In flexcoders@yahoogroups.com, dinger0007 scot.hershman@ wrote: I have a query result coming back from a webservice call and i want to pull the column names out of the results. I assumed that I can use the code below but can't figure how to pull the column names. If I do this, I get the data. test = new ArrayCollection( event.result as Array); for each(var item in test) { trace(item.Node1); } But how do I just get Node1 and not the data. Thanks in advance.. -- 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/
[flexcoders] Re: Anyone actually able to save data from flex
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 31 August 2006 01:06, mthielman11 wrote: Help :) You don't say what happens. Well what happens is the post gets logged on the server but the server does not see the XML data. There is no content body. You don't say what your backend is. Web server is resin. Database server is PostgreSQL You don't post its logs. You don't say you've verified the request leaves the Flash player 'on the wire' and even hits your server. We know it hits the server because the server logs the request. We see the Post request on the server but there is no content. The more info you give, the more chance someone will spot whatever wrinkle has got into your setup. This information is based of when we mess with our code a bit to eliminate the stream errors. Whenever we change content type to application/xml we get stream error 2032 Also I have tried sending logs and code but it keeps seeming to get cut off. It looks fine when I preview the message but the final message only contains a line or two of my code. Thanks. Honestly, it really is very very easy :-) -- Tom Chiverton Helping to greatly orchestrate dynamic clusters This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- 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/
[flexcoders] FocusOut ??
I am having an issue where the focusOut on a text input will run the function that I have assigned but will then return focus to the calling text input. The following code shows this occuring in a simple example. Just put your focus on the top text input and then tab out. You will see the alert and you can see the cursor in the 2nd text input underneath the alert but, closing the alert then returns the focus back to the top text input. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ private function doSomething():void{ mx.controls.Alert.show('t1 = ' + t1.text); } ]] /mx:Script mx:TextInput id=t1 text=Hello focusOut=doSomething() / mx:TextInput id=t2 / /mx:Application Rich -- 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/
[flexcoders] Using DateField control to set birthday
Hi All! DateField is a great control, though setting birthday even for people that were born in 198* it takes minutes to move through the months in order to get to the correct date. Does anybody have experience customizing this control for this particular need (selecting birthday)? Sergey. -- 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/
[flexcoders] Re: CairngormEvent Antipattern
The example has good intentions. Anytime you can reduce the amount of code in an application it's good, right? Not always. One of the main strengths of the Cairngorm framework is simplicity. What the example refers to as a big downside, exists for a reason; simplicity. By having one-to-one relationships, between CairngormEvents and Commands, it is easier to organize and maintain the events. Not that you have to, of course. However, in a typical use case the get, add, update and delete CairngormEvents would each use a different VO. The get VO would contain Select parameters, while the update VO would contain fields and/or instructions. The example would have to conditionally check the type of the event, to determine the appropriate VO to pass on to the command. Certainly an option, but conditional coding can be avoided by keeping the separate actions in separate classes. This keeps things simple, while enforcing encapsulation and promoting reuse. CairngormEvents can always placed in different events sub folders to increase orginization. As far as extending the FrontController (same applies to the ModelLocator), when classes get too big, break them apart into smaller pieces. The FrontController does nothing more than lookup the Command name to execute. Sub classing the FrontController wouldn't affect performance. These issues are more related to data transfer, command methods (functions) and rendering. -TH --- In flexcoders@yahoogroups.com, Andrea Varga [EMAIL PROTECTED] wrote: e_baggg wrote: Andi- Tom was referring to having a hierarchy of FrontControllers. He happens to have a class called CoreController which all of his Flex apps would use. Then, each Flex app will have it's own FrontController that extends CoreController...this way each developer has their own controller. This assumes of course there's 1 developer working on a project. The CoreController would house the common Commands such as Login, Logout, and similar things. If you're in the situation where you have 1 large Flex app that has 1 large controller that all the developers are fighting for...I would suggest that users update the Contoller and check in their empty Command classes right away. Then begin development. That way if it takes them 2 days to implement the logic for an event, they won't have a lot of contacts. Another option is to make one developer the 'owner' of the front controller and have other developers e-mail them the line of code for the command. Thank you. I just wasn't sure this is the right way to do it. I mean, that cannot be more than one FrontController/project. It seems, this is the only solution. The problem I'm having with this is not regarding the 'owner', with a version control system that's not a problem. But the FrontController gets bigger and bigger, and less managable (although there is nothing much to manage :), just a bunch of addCommands :)), and I don't know weather this could cause problems or not (regarding speed for example). Andi --- In flexcoders@yahoogroups.com, Andrea Varga andi@ wrote: Tom Chiverton wrote: On Wednesday 30 August 2006 13:14, Andrea Varga wrote: (For example, on a large project, when there are many developers working, all of them has to edit the FrontController to add an event.) This isn't a problem with a decent RCS. As it is, we've got a CoreController and then indivdual projects extend that to make their application specific events. Could you please tell me where can I found more about this? I cannot find anything. 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 Yahoo! Groups Links -- Andrea Varga Managing Partner / Project Manager Certified Macromedia Flash MX 2004 Developer -- Spin Development Srl Tel: +44 207 043 1304 Fax: +44 207 681 1376 Skype ID: vargaandrea Mon-Fri : 8 AM - 5 PM GMT+2 Saturday: 8 AM - 4 PM GMT+2 (Support only) -- -- 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/
[flexcoders] Re: Use of viewLocator and viewHelper
Thanks for the example.But I still have some questions. 1)Is viewHelper used to segregate as code from mxml? 2)Its not used in any of examples provided for Cairngorm 2 nor is it part of any discussion about cairngorm 2 architecture.Is it an optional feature retained from cairngorm 0.99? 3)If I dont have any need to manipulate the mxml file from other files(which you have mentioned below), should I still go ahead and create a viewHelper for each view? --- In flexcoders@yahoogroups.com, e baggg [EMAIL PROTECTED] wrote: //mainScreen.mxml ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% xmlns:viewHelper=com.myapp.view.* verticalGap=0 viewHelper:MainScreenViewHelper id=mainScreenViewHelper / mx:Label id=mylabel text=Hello World/ /mx:VBox //MainScreenViewHelper package com.myapp.view { import org.nevis.cairngorm.view.ViewHelper; import com.communify.model.ModelLocator; /** * Gives a handle to main.mxml and its subcomponents */ public class MainScreenViewHelper extends ViewHelper{ private var model:ModelLocator = ModelLocator.getInstance (); public function MainScreenViewHelper(){ super(); } public function updateLabel(updatedString : String):void{ Label(view.mylabel).text = updatedString; } } } So, the line of code viewHelper:MainScreenViewHelper id=mainScreenViewHelper / instantiates the ViewHelper class and registers it with the singleton class ViewLocator. This means that any class or mxml file can access the components of the MainScreen.mxml by calling: var viewHelper : MainScreenViewHelper = MainScreenViewHelper (ViewLocator.getInstance().getViewHelper(mainScreenViewHelper)); viewHelper.updateLabel(otherTextField.text); - Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min. -- 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/
[flexcoders] Re: Buffer progress bar for streaming FLV
So, does the following summary sound right? 1) I can't create a progress bar that shows buffering progress as long as I use the mx:videoDisplay component (I'm hoping my assumption on this point is wrong). 2) I have to use the netStream objects if I want to create a buffering progress bar, because that's the only way I can access the streams time and bufferLength properties. Thanks! Chris --- In flexcoders@yahoogroups.com, Chris Simeone [EMAIL PROTECTED] wrote: Hi All, I've been trying to create a Buffering progress bar for streaming FLV (via FMS) with the mx:videoDisplay component. But, the videoDisplay is not firing progress events for some odd reason. So I changed my strategy and started using the netStream object. The video is streaming via FMS, but the netStream bytesLoaded and bytesTotal properties are always zero. Any ideas what I may be doing wrong. The code's below. Also, it would be great if anyone can show how to pull this of with the mx:videoDisplay component as well!!! Thanks! Chris ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* layout=vertical horizontalAlign=left creationComplete=onCreationComplete(); mx:Script ![CDATA[ // import mx.events.VideoEvent; import myComponents.*; import flash.events.*; import flash.net.*; import flash.media.Video; import mx.controls.*; import mx.core.UIComponent; // private var nc:NetConnection; private var stream:NetStream; private var fmsUrl:String; private var flvName:String; private var video:Video; private var loaded_interval:Number; // NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; // public function onCreationComplete():void { nc = new NetConnection(); configureListeners(nc); var videoHolder:UIComponent = new UIComponent(); videoHolder.setActualSize(700, 525); video = new Video(); configureListeners(video); videoHolder.addChild(video); video.x = 0; video.y = 0; fmsUrl = rtmp://localhost/test_video; flvName = testVideo; theBox.addChild(videoHolder); nc.connect(fmsUrl); } / private function configureListeners(dispatcher:IEventDispatcher):void { dispatcher.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError); dispatcher.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onAsyncError); dispatcher.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus); dispatcher.addEventListener(ProgressEvent.PROGRESS, onProgress); dispatcher.addEventListener(Event.ENTER_FRAME, onEnterFrame); } / private function connectStream():void { if (stream) stream.close(); stream = new NetStream(nc); configureListeners(stream); video.attachNetStream(stream); stream.bufferTime = 10; stream.play(flvName); stream.client = this; } / private function onNetStatus(event:NetStatusEvent):void { trace(onNetStatus: + event); switch (event.info.code) { case NetConnection.Connect.Success: trace(NetConnection.Connect.Success); connectStream(); break; case NetConnection.Connect.Failed: trace(NetConnection.Connect.Failed);
[flexcoders] Re: Anyone actually able to save data from flex
We can not even get a simple sample like this to work. I can retieve and view data from the server but the posting is not working. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:HTTPService id=reviewCreateRequest url=http://x.x.x.154:8080/testServer/store?A=B; useProxy=false method=POST mx:request xmlns= review titleTesting/title authorJohn Smith/author scoreThe One/score textPLease Work/text /review /mx:request /mx:HTTPService mx:Canvas width=100% height=100% mx:Button label=Submit click=reviewCreateRequest.send();/ /mx:Canvas /mx:Application -- 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] Re: Specifying LineSeries itemRenderer with Actionscript
For documentation on renderers, there are a few places you can go. To get you started, there is a general discussion of item renderers and editors, including using the Component tag, here: http://livedocs.macromedia.com/flex/2/docs/0820.html There is a description in that chapter of setting an item renderer or item editor in ActionScript here: http://livedocs.macromedia.com/flex/2/docs/0832.html These chapters are on general usage of renderers and editors,not specifically to charts. There is a section on creating charts in AS here: http://livedocs.macromedia.com/flex/2/docs/1217.html But it does not get into the details of renderers. That is something we can add in an upcoming release. Stephen Flex Doc Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ely GreenfieldSent: Wednesday, August 30, 2006 12:38 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Specifying LineSeries itemRenderer with Actionscript Well, in theory, we've gone to great lengths (and had long, heated, philisophical 'discussions' (read: knock down drag out fights)) over what the relationship between MXML and actionscript should be. Right now, we try as much as possible to follow a very strict 'no compiler magic' policy...specifically: - there's are simple rules for how an actionscript class's API dictates how it is used in MXML. a developer should be able to look at a snippet of MXML and understand instantly how you would achieve the same thing in Actionscript (and vice versa). - variable references and expressions in MXML should be implemented using binding. That means a developer should be able to look at the MXML and know that if there are curly braces, it's a bit of code, and if there aren't, it's a literal value. - Beyond three or four core language tags (Script, Style, Repeater, Component, ??? ) the compiler should have no special knowledge of MXML other than the simple mapping rules described above. if it's all driven by rules and classes, then it improves the chances you the developer will be able to learn the rules and figure out. What's more, if it's driven by rules and classes, then you can extend the product by writing your own classes that get access to all the same features and functionality our classes do. That's the theory. And the debate continues to this day. As we add more functionality and features to the SDK, it gets very tempting to try and customize the MXML Schema in ways that don't quite follow the basic AS--MXML mapping rules. But so far we're still resisting them. Now one of the downsides of following these 'simple rules' is that at times the MXML for a particular construct or feature becomes much more verbose than we'd like it to be. In those cases, we've got three choices: 1) change the AS API to generate a less verbose MXML syntax. This works in some cases (i.e., the API for constraints was changed between beta 1 and beta 2 for this reason). But sometimes there's just a fundamental conflict between what dictates a good AS API vs. a good MXML syntax. 2) Another option would be to just allow custom syntax that breaks the mapping rules for that particular component. We don't like doing that (see above). 3) A third option is to extend the rules to allow for simplifying the syntax. If the use case your looking at it general enough, and it can be tied to a generic set of inputs (i.e., a particular interface, or base class, rather than a specific component), that can be a generally useful solution. It also has a cost associated with it, and can be abused, so we try and be judicious in how we use it. The more we complexify (? nice word, huh ?) the mappping rules of MXML, the harder it gets to do the translation in your head as you read some markup, and the less benefit we get as described above. So in this case, we decided that the situation was generically useful enough to extend the language. For 'renderer' or 'template' use cases, where you write a component that can be passed another component to instantiate for some sub-part of itself, we wanted to make the markup simple. So here the rule is that when the compiler sees a property of type IFactory, MXML allows two ways of specifying it. The first is just by providing a class name, like so: LineSeries itemRenderer="mx.charts.renderers.DiamondItemRenderer" / In which case the compiler automatically wraps the class in a ClassFactory instance and assigns it. The second is to specify an inline derived component, like so: LineSeries itemRenderer Component DiamondItemRenderer / / In which case the compiler reads the contents of the Component tag as a separate MXML component, creates a new class for it, wraps _it_ in a ClassFactory, and assigns that. So...once you know that rule, it should in theory be straightforward to recognize its use in some MXML or the API documentation and know how you
Re: [flexcoders] Re: Anyone actually able to save data from flex
On Thursday 31 August 2006 14:23, mthielman11 wrote: wrote: On Thursday 31 August 2006 01:06, mthielman11 wrote: Help :) You don't say what happens. Well what happens is the post gets logged on the server but the server does not see the XML data. There is no content body. What if you make the request using a normal web browser ? Can you get any of the many examples that use public web services working ? -- Tom Chiverton Helping to centrally market plug-and-play e-services This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- 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/
[flexcoders] Best way to use Formatters and Bindings
What's the best practice for using Formatters and Bindings together? For example: - I have a currency value that's stored as a number in my model (And in the database) - I retrieve the value and use the CurrencyFormatter to make it look like $15,123 which is displayed in a TextInput component. - So far, so good. But, now my user edits the value and wants to save it back to the database - But, the new valuein the TextInput component isn't a number anymore! Do I: - Have to write an unformatter for each formatter? - Create a custom CurrencyTextInput component that has both a formatted and unformatted version of the data - Am I looking at this all wrong and need to think differently? It seems like this situation must come up all the time, and I expect an easier way to make it work. All the examples in the docs show formatting with two fields -- One formatted and one not formatted. But, I don't think users want to see it this way. Thanks much for any advice! Clarke __._,_.___ -- 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 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] Embedding fonts at runtime
I've been working with a font I don't have installed on my computer, so I could be sure it was working, although I also tried it with system fonts and it has worked. The only thing I can think of is that I set the fontName to the same value as the actual font name. If that doesn't work I can send you my code. On 8/31/06, Daniel Wabyick [EMAIL PROTECTED] wrote: Hi Daniel,I am a little confused what you mean exactly. I have tried to set aLabel mxml component's style directly using the fontFamily name, andwhen I do the text in the label diappears. Did you get it to actually display the symbol font?Here is the pertinent part of my current code: mx:Label id=myLabel text=test /mx:Script ![CDATA[ private var ldr:Loader; private function onInit() : void { showFonts(); var context:LoaderContext = new LoaderContext(); context.applicationDomain = ApplicationDomain.currentDomain; var req:URLRequest = new URLRequest( SymbolInclude.swf ); ldr = new Loader(); ldr.contentLoaderInfo.addEventListener ( Event.COMPLETE,onLoaderComplete ); ldr.load( new URLRequest( SymbolInclude.swf), context ); } private function onLoaderComplete(e:Event) : void { trace(onLoaderComplete: );var content:DisplayObject = ldr.content;var c:Class = content[myFont];Font.registerFont (c); myLabel.setStyle( fontFamily, mySymbol ); showFonts(); } public function showFonts():void { trace(showFonts());var fontList : Array = Font.enumerateFonts();for ( var i:String in fontList ){trace(font: + Font( fontList[i] ).fontName); } } ]] /mx:ScriptDaniel Freiman wrote: I figured out how to use the textformat object.The textformat object does actually work, but a TextField will only retrieve the embeded font if it's parent has previously been sent set the font as a style. So for any component that uses a UITextField, set the fontFamily style of the parent UIComponent to the newly loaded font and then the UITextField should be able to use the font even if fontFamily is subsequently reset.I have no idea why this works, so there may be some improvements to this method. On 8/30/06, *Brian Deitte* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: One addition to this, which is that we always include the space character when you specify the unicode range.I'm not sure the original reasoning for this, but I just noticed it in the code. Also, you can specify multiple ranges, separated by commas.-Brian *From:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com] *On Behalf Of *Dirk Eismann *Sent:* Wednesday, August 30, 2006 2:07 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] Embedding fonts at runtime Yes, this is possible: [Embed(source=Arial.ttf, fontName=myArial, unicodeRange=U+0041-U+005A )] public var myClass:Class; Dirk. *Von:* flexcoders@yahoogroups.com mailto: flexcoders@yahoogroups.com im Auftrag von Daniel Wabyick *Gesendet:* Mi 30.08.2006 18:58 *An:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com *Betreff:* Re: [flexcoders] Embedding fonts at runtime Awesome! I'll definitely have to check this out. On a related note, I wonder if its possible to embed fonts with a specific unicode range via this syntax.It doesn't appear to be. [Embed(systemFont='Symbol', fontName='mySymbol', mimeType='application/x-font')] var myFont:Class; I know you can use @font-face, which appears to automatically generate a variable in the class, but its not a consistently named variable. I am sure a utility function in the class could be used to ferret out that variable name. Daniel Freiman wrote: I altered the code a little and got it half working.It works if you're setting the imported font using setStyle, but not if you're setting the font through the TextFormat object.Simply add the lines: var content:DisplayObject = ldr.content; var c:Class = content[myFont]; Font.registerFont(c); to the begining of onloadercomplete. I'm going to continue working on how to get the font to show up through TextFormat.On 8/29/06, * Daniel Wabyick* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote: I just tried to dynamically load a font at runtime, and the results are not too promising. For other's benefits, here is what I did: - Created an AS3 project and generated a SWF (SymbolEmbed.swf) with the Symbol font embedded. - Verified the font is available in the SWF via Font.enumerateFonts(); - Loaded SymbolEmbed.swf into a Flex app using the Loader class, following instructions to keep the SWF's on the same applicationDomain. - Checked if the font is available to the Flex app, it is not. Please let me know if anyone has any ideas, -Daniel Code: AS3 project with embedded font. ---
Re: [flexcoders] Re: i can not find flex 1.5 SDK
Thank YouOn 8/30/06, Matt Chotin [EMAIL PROTECTED] wrote: Oops! That was the staging site. http://www.adobe.com/support/flex/downloads_updaters.html#flex15 Matt -Original Message- From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Tom Chiverton Sent: Wednesday, August 30, 2006 7:06 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: i can not find flex 1.5 SDK On Tuesday 29 August 2006 06:49, Matt Chotin wrote: You can download the developer edition of Flex 1.5 from here: http://www.stage.adobe.com/support/flex/downloads_updaters.html#flex15 If you feel you should have access, please contact the appropriate authorities and give them your IP address: 194.75.179.34 -- Tom Chiverton Helping to conveniently innovate fine-grained markets This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- 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 __._,_.___ -- 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 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] Re: Best way to use Formatters and Bindings
We've been using unformatters. So the binding back to the model might look like this: mx:Binding source=numFormatter.format(myText.text) destination=model.textValue / --- In flexcoders@yahoogroups.com, Clarke Bishop [EMAIL PROTECTED] wrote: What's the best practice for using Formatters and Bindings together? For example: - I have a currency value that's stored as a number in my model (And in the database) - I retrieve the value and use the CurrencyFormatter to make it look like $15,123 which is displayed in a TextInput component. - So far, so good. But, now my user edits the value and wants to save it back to the database - But, the new value in the TextInput component isn't a number anymore! Do I: - Have to write an unformatter for each formatter? - Create a custom CurrencyTextInput component that has both a formatted and unformatted version of the data - Am I looking at this all wrong and need to think differently? It seems like this situation must come up all the time, and I expect an easier way to make it work. All the examples in the docs show formatting with two fields -- One formatted and one not formatted. But, I don't think users want to see it this way. Thanks much for any advice! Clarke -- 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] Flex 2 patch timeline
This is a good point. I believe Adobe also tried to replicate a bug I was getting on Flex 2 builder, even when we didnt purchase the software yet. I was still testing it out and got excellent support. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Impudent1 Sent: Wednesday, August 30, 2006 7:47 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 2 patch timeline .02 Well my experience is with the other adobe teams. BUT I have had devs/engineers call me on a sunday. On their own dime, to see what we could sort out regarding some persistant but hard to nail bugs. All the teams at adobe I have had the pleasure of working with have all busted themselves to make sure things were working. As for flex, we get a huge commitment just in them answering things on this list, not to mention all the adobe blogs with examples etc. I personally think anyone who cries for 24 hour personal tech service should be paying a hefty price for a yearly agreement ;) Impudent1 LeapFrog Productions __._,_.___ -- 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 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] Re: Buffer progress bar for streaming FLV
Hi Chris,In VideoDisplay, you can subscribe to playheadUpdate event and use playheadTime, which is similar to NetStream.time.You can subscribe to stateChange event and watch BUFFERING in event handler, if you want to show BUFFERING status to user... -abdulOn 8/30/06, Chris Simeone [EMAIL PROTECTED] wrote: Awesome!!! Worked perfectly. Thank You. With all this in mind, is there a way to pull this of using the mx:videoDisplay component? I created my app using that component but I could not figure out how to access the stream. I figured I would do a rewrite using the netStream object if necessary, but I would love to avoid doing that if possible. Thanks Again, Chris --- In flexcoders@yahoogroups.com, Michael Ritchie [EMAIL PROTECTED] wrote: Abdul is correct, you need to get the netstream time, use the following code for your enterframe function: private function onEnterFrame(event:Event):void { if(stream == null) return; var loadpct:Number = stream.bytesLoaded / stream.bytesTotal * 100; trace(onEnterFrame: + event + Loaded: + stream.time + %); } stream.time will return the % - mr --- In flexcoders@yahoogroups.com, Abdul Qabiz abdul.qabiz@ wrote: Hi, bytesTotal and bytesLoaded are used when you use progressive flv download. In case of streaming (via FMS/FCS), your actual file is not downloaded rather bits are streamed over pipe To show buffer progress, you can use NetStream's bufferLength and bufferTime properties instead of bytesTotal/bytesLoaded. -abdul On 8/30/06, Chris Simeone simspace@ wrote: Hi All, I've been trying to create a Buffering progress bar for streaming FLV (via FMS) with the mx:videoDisplay component. But, the videoDisplay is not firing progress events for some odd reason. So I changed my strategy and started using the netStream object. The video is streaming via FMS, but the netStream bytesLoaded and bytesTotal properties are always zero. Any ideas what I may be doing wrong. The code's below. Also, it would be great if anyone can show how to pull this of with the mx:videoDisplay component as well!!! Thanks! Chris ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=vertical horizontalAlign=left creationComplete=onCreationComplete(); mx:Script ![CDATA[ // import mx.events.VideoEvent; import myComponents.*; import flash.events.*; import flash.net.*; import flash.media.Video; import mx.controls.*; import mx.core.UIComponent; // private var nc:NetConnection; private var stream:NetStream; private var fmsUrl:String; private var flvName:String; private var video:Video; private var loaded_interval:Number; // NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; // public function onCreationComplete():void { nc = new NetConnection(); configureListeners(nc); var videoHolder:UIComponent = new UIComponent(); videoHolder.setActualSize(700, 525); video = new Video(); configureListeners(video); videoHolder.addChild(video); video.x = 0; video.y = 0; fmsUrl = rtmp://localhost/test_video; flvName = testVideo; theBox.addChild(videoHolder); nc.connect(fmsUrl); } / private function configureListeners(dispatcher:IEventDispatcher):void { dispatcher.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError); dispatcher.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onAsyncError); dispatcher.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus); dispatcher.addEventListener(ProgressEvent.PROGRESS, onProgress); dispatcher.addEventListener(Event.ENTER_FRAME, onEnterFrame); } / private function connectStream():void { if (stream) stream.close(); stream = new NetStream(nc); configureListeners(stream); video.attachNetStream(stream); stream.bufferTime = 10; stream.play(flvName); stream.client = this; } / private function onNetStatus(event:NetStatusEvent):void { trace(onNetStatus: + event); switch (event.info.code) { case NetConnection.Connect.Success: trace(NetConnection.Connect.Success); connectStream(); break; case NetConnection.Connect.Failed: trace(NetConnection.Connect.Failed);
Re: [flexcoders] Re: Anyone actually able to save data from flex
well, the server side method needs to be built to accept the xml. in our case, we found it easier to build webservice methods and pass it a single xml argument, rather than working with a servlet/.asp page to accept it as an http get/post. I'm sure you could do it with httpService, but i havent personally done it that way. At 10:32 AM 8/30/2006, mthielman11 wrote: do you mind me asking how. We can not even get this very simple sample to work. ?xml version=1.0 encoding=utf-8? mx:Application pageTitle=Flex 2 Style Explorer xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% mx:HTTPService id=srvsave url=http://0.0.0.4:8080/ZebraServer/store?a=b; method=POST resultFormat=e4x contentType=application/xml / mx:XML id=dataModel format=e4x physician testabc/test /physician /mx:XML mx:Script ![CDATA[ import mx.controls.Alert; //public var xmldata = parentDocument.parentDocument.phyRequest.lastResult; private function storePhysician_Basics():void { srvsave.send(dataModel); } ]] /mx:Script mx:Button label=Save click=storePhysician_Basics();/ /mx:Application -- 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 -- 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] Flex Builder 2, getting slower as code grows
Is that 1,700 lines of code in one file? - Original Message - From: Johannes Nel To: flexcoders@yahoogroups.com Sent: Tuesday, August 29, 2006 9:42 PM Subject: Re: [flexcoders] Flex Builder 2, getting slower as code grows switch off incremental compilation. build when you need it, or deploy to a seperate server and build there On 8/29/06, j_sevlie [EMAIL PROTECTED] wrote: Is there some kind of coding limitation on how much Flex Builder can handle before it gets completely unusable?I'm currently working on a rather complicated project that's sittingat about 1,700 lines of code, and the code editor in Flex Builder isgetting painfully slow to work with.If I just start typing anything I can watch my CPU spike to 100% and sit there until I'm done typing.I still need to use Design mode because it's *awesome* for liningeverything up.Is this a case where I'm just going to have to find away to break everything up into smaller components?About 70% of the1,700 lines is all Actionscript.I've got a P4 with 2 GB of RAM and Flex Builder will routinely consume400-600MB of memory while I'm working. Thanks, Jacob--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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/-- j:pn http://www.lennel.org __._,_.___ -- 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 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] Embedding fonts at runtime
It is however possible to [Embed] font(s) into an AS class used to build a SWF, and then dynamically load that SWF. -rg From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt HornSent: Wednesday, August 30, 2006 1:23 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Embedding fonts at runtime [Embed] is always at compile time, so I dont think this solution matchesyour requirements of loading teh fonts at run time.-m -Original Message- From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Tom Lee Sent: Wednesday, August 30, 2006 4:01 PM To: [EMAIL PROTECTED]ups.com Subject: RE: [flexcoders] Embedding fonts at runtime Just wondering, is [Embed] directive compile-time, or run-time? From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Brian Deitte Sent: Wednesday, August 30, 2006 2:43 PM To: [EMAIL PROTECTED]ups.com Subject: RE: [flexcoders] Embedding fonts at runtime One addition to this, which is that we always include the space character when you specify the unicode range. I'm not sure the original reasoning for this, but I just noticed it in the code. Also, you can specify multiple ranges, separated by commas. -Brian From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Dirk Eismann Sent: Wednesday, August 30, 2006 2:07 PM To: [EMAIL PROTECTED]ups.com Subject: RE: [flexcoders] Embedding fonts at runtime Yes, this is possible: [Embed(source="Arial.ttf", fontName="myArial", unicodeRange="U+0041-U+005A" )] public var myClass:Class;Dirk. Von: [EMAIL PROTECTED]ups.com im Auftrag von Daniel Wabyick Gesendet: Mi 30.08.2006 18:58 An: [EMAIL PROTECTED]ups.com Betreff: Re: [flexcoders] Embedding fonts at runtime Awesome! I'll definitely have to check this out. On a related note, I wonder if its possible to embed fonts with a specific unicode range via this syntax. It doesn't appear to be. [Embed(systemFont='Symbol', fontName='mySymbol', mimeType='application/x-font')] var myFont:Class; I know you can use @font-face, which appears to automatically generate a variable in the class, but its not a consistently named variable. I am sure a utility function in the class could be used to ferret out that variable name. Daniel Freiman wrote: I altered the code a little and got it half working. It works if you're setting the imported font using setStyle, but not if you're setting the font through the TextFormat object. Simply add the lines: var content:DisplayObject = ldr.content; var c:Class = content["myFont"]; Font.registerFont(c); to the begining of onloadercomplete. I'm going to continue working on how to get the font to show up through TextFormat.On 8/29/06, * Daniel Wabyick* [EMAIL PROTECTED]com mailto:[EMAIL PROTECTED]com mailto:[EMAIL PROTECTED]com wrote: I just tried to dynamically load a font at runtime, and the results are not too promising. For other's benefits, here is what I did: - Created an AS3 project and generated a SWF (SymbolEmbed.swf) with the Symbol font embedded. - Verified the font is available in the SWF via Font.enumerateFonts(); - Loaded SymbolEmbed.swf into a Flex app using the Loader class, following instructions to keep the SWF's on the same applicationDomain. - Checked if the font is available to the Flex app, it is not. Please let me know if anyone has any ideas, -Daniel Code: AS3 project with embedded font. --- public class SymbolInclude extends Sprite { public function SymbolInclude() { [Embed(systemFont='Symbol', fontName='mySymbol', mimeType='application/x-font')] var myFont:Class; trace("here in SymbolInclude"); var fontList : Array = Font.enumerateFonts(); for ( var i:String in fontList ) { trace("font: " + Font( fontList[i] ).fontName); } } } Code: Loader code in Flex app. --- mx:Script ![CDATA[ private var ldr:Loader; private function onInit() : void { showFonts(); var context:LoaderContext = new LoaderContext(); //context.securityDomain = SecurityDomain.currentDomain; context.applicationDomain = ApplicationDomain.currentDomain; ldr = new Loader(); ldr.contentLoaderInfo.addEventListener( Event.COMPLETE, onLoaderComplete ); ldr.load( new URLRequest( "SymbolInclude.swf"), context ); } private function onLoaderComplete(e:Event) : void { trace("onLoaderComplete: "); showFonts(); } public function showFonts():void { trace("showFonts()"); var
Re: [flexcoders] addressing items rendered in TileList
OK trying again ... I've worked out I can change a property of the dataProvider and the change is automatically reflected in the itemRenderer thanks Now what I'm struggling with is where the user clicks on the itemRenderer (aka thumbnail) I can't seem to disable the thumbnails response (the clickability seems to belong to the TileList rather than the thumbnail) - I've got a display component that uses the TileList.selectedIndex as the dataProvider, but I don't see how I can stop it using the items who's properties I've set to "don't use". See the old macromedia video gallery for the sort of functionality I'd like to emulate http://www.adobe.com/products/flash/flashpro/video/gallery/ So is there a way I can do a conditional response or conditional bind (bind to TileList.selectedIndex if the item has been set to "enabled = false" for instance?) Cheers, Phil Tracy Spratt wrote: With all flex data driven controls, you will want to work with the dataProvider. What exactly do you mean by address subselections? Tracy From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Phil Marston Sent: Monday, August 28, 2006 8:46 AM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] addressing items rendered in TileList Hi All, Anyone know how I can address items rendered in a TileList? I have a tileList mx:TileList id="tipList" dataProvider="{gallery.tips}" itemRenderer="gallery.Thumbnail"/ which renders c.50 thumbnails and now I'd like to address subselections of those thumbnails and can't figure it out. ANY help appreciated Cheers, Phil -- __ Phil Marston Technology Enhanced Learning Centre for Learning Teaching University of Aberdeen Aberdeen AB24 3QY Email: [EMAIL PROTECTED]ac.uk Tel: +44(0)1224 273329 Mob: +44(0)7798 723660 Web: http://www.abdn.ac.uk/clt/ __ The University of Aberdeen Open Day 29th August 2006 Booking is essential www.abdn.ac.uk/openday email [EMAIL PROTECTED]ac.uk or call 0800 027 1495 -- __ Phil Marston Technology Enhanced Learning Centre for Learning Teaching University of Aberdeen Aberdeen AB24 3QY Email: [EMAIL PROTECTED] Tel: +44(0)1224 273329 Mob: +44(0)7798 723660 Web: http://www.abdn.ac.uk/clt/ __ The University of Aberdeen Open Day 29th August 2006 Booking is essential www.abdn.ac.uk/openday email [EMAIL PROTECTED] or call 0800 027 1495 __._,_.___ -- 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 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] Re: Buffer progress bar for streaming FLV
Hi,With VideoDisplay, you don't need to use onEnterFrame or any external Timer instance. Just subscribe to VideoDisplay's playheadUpdate event and do progress bar logic in event handler.-abdul On 8/30/06, Chris Simeone [EMAIL PROTECTED] wrote: Ok, Below is my updated onEnterFrame() method that updates a progressBar component. It works great. Thanks again gang! Now I'm going to try and get this working using the mx:videoDisplay component. I'm not sure if I can get to its netStream object, so any ideas/recommendations would be helpful and appreciated. Thanks! Chris / private function onEnterFrame(event:Event):void { if(stream == null) return; if(duration == 0) return; var loadpct:Number = Math.round(Math.ceil((stream.time/duration)*100)); if(loadpct=100) { bar.setProgress(loadpct,100); bar.label= CurrentProgress + + loadpct + %; loadpct+=10; } if(loadpct100) { loadpct=0; } trace(onEnterFrame: Duration: + duration + Time: + stream.time + Loaded: + loadpct + %); } --- In flexcoders@yahoogroups.com, Chris Simeone [EMAIL PROTECTED] wrote: Hi All, I've been trying to create a Buffering progress bar for streaming FLV (via FMS) with the mx:videoDisplay component. But, the videoDisplay is not firing progress events for some odd reason. So I changed my strategy and started using the netStream object. The video is streaming via FMS, but the netStream bytesLoaded and bytesTotal properties are always zero. Any ideas what I may be doing wrong. The code's below. Also, it would be great if anyone can show how to pull this of with the mx:videoDisplay component as well!!! Thanks! Chris ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=vertical horizontalAlign=left creationComplete=onCreationComplete(); mx:Script ![CDATA[ // import mx.events.VideoEvent; import myComponents.*; import flash.events.*; import flash.net.*; import flash.media.Video; import mx.controls.*; import mx.core.UIComponent; // private var nc:NetConnection; private var stream:NetStream; private var fmsUrl:String; private var flvName:String; private var video:Video; private var loaded_interval:Number; // NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; // public function onCreationComplete():void { nc = new NetConnection(); configureListeners(nc); var videoHolder:UIComponent = new UIComponent(); videoHolder.setActualSize(700, 525); video = new Video(); configureListeners(video); videoHolder.addChild(video); video.x = 0; video.y = 0; fmsUrl = rtmp://localhost/test_video; flvName = testVideo; theBox.addChild(videoHolder); nc.connect(fmsUrl); } / private function configureListeners(dispatcher:IEventDispatcher):void { dispatcher.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError); dispatcher.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onAsyncError); dispatcher.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus); dispatcher.addEventListener(ProgressEvent.PROGRESS, onProgress); dispatcher.addEventListener(Event.ENTER_FRAME, onEnterFrame); } / private function connectStream():void { if (stream) stream.close(); stream = new NetStream(nc); configureListeners(stream); video.attachNetStream(stream); stream.bufferTime = 10; stream.play(flvName); stream.client = this; } / private function onNetStatus(event:NetStatusEvent):void { trace(onNetStatus: + event); switch (event.info.code) { case NetConnection.Connect.Success: trace(NetConnection.Connect.Success); connectStream(); break; case NetConnection.Connect.Failed: trace(NetConnection.Connect.Failed); break; case NetStream.Buffer.Empty: trace(NetStream.Buffer.Empty); break; case NetStream.Buffer.Full: trace(NetStream.Buffer.Full); break; case NetStream.Play.StreamNotFound: trace(stream not found: + flvName); break; } } / private function onEnterFrame(event:Event):void { if(stream == null) return; var loadpct:Number =
[flexcoders] Using Embedded fonts in htmlText
I was wondering if someone managed to achieve this. After struggling with embedding some fonts I finally got it working to some degree. The fonts are taken in most components. However, when Im trying to use an embedded font in a font tag and drop it in the htmlText attribute of a TextArea, the text is not using the embedded font, although the documentation claims it should. (devguide, Using tags in html text) This is what I have in the css: @font-face { src: url('/assets/fonts/arial_emb.ttf'); fontWeight: normal; fontFamily: arialtest } .textarea { embedFonts: true; font-weight: normal; } In the component I have something like this: mx:TextArea id=info width=200 height=100 htmlText= / info.htmlText = font face='arialtest' size='14'test test test test/font; This will take the default font setting of the flash application. arialtest is never applied. This however works: mx:TextArea id=info width=200 height=100 fontFamily=arialtest htmlText= / info.htmlText = font size='14'test test test test/font; But this is not what I want as there will be text in different formatting styles in that field Bart __._,_.___ -- 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 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] Include fonts in RSL Flex2
We've been working on something similar in a thread called embeding fonts at runtime although i'm not sure it's exactly what you want. Some of it might be useful. First check to see if the font is actually there using Font.enumerateFonts(). Second, we're currently looking into whether the embeded font name needs to be the same as the actual font. If the other thread is close enough jump on it, otherwise I tell you if anything comes up that may be applicable. On 8/30/06, Lance Linder [EMAIL PROTECTED] wrote: I have been scowering the internet for information on how to embed fonts in an RSL for Flex2. I ran accress this posting by Darron Schall but it looks like it is for Flex 1.5? Anyway I gave it a try but it doesn't work for me. I set up 2 projects, 1 regular flex project and another as a library project. My regular project references the library project as an RSL and in my library project I created one component with the @font-face css tag in the mx:Style tag. I also created a manifest file and set up the library project to use the manifest file. Everything compiles right and my component from the RSL shows up in my main app but when I try to use the font in the RSL the text in my main app disappears (ie just like in Flash if you tell it to use embedded fonts but the font doesn't exist). This has to be possible with Flex 2! Heck fonts alone are one of the most important things to stuff in an RSL half the time! What am I doing wrong? Is there some more documentation on this that I missed or a more recent blog post that I missed? Thanks for any help! Here is the code I have….. --- application code --- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx= http://www.adobe.com/2006/mxml xmlns:mystuff=http://mystuff layout=absolute mx:Style ![CDATA[ TextArea { font-family: mainFont; } ]] /mx:Style mystuff:MyStuff width=10 height=10 / mx:TextArea x=10 y=10 width=533 height=434 text=Hello There!/ /mx:Application --- rsl component code --- ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx= http://www.adobe.com/2006/mxml width=10 height=10 backgroundColor=0x00 mx:Style ![CDATA[ @font-face { src:url(verdana.ttf); font-family: mainFont; font-style: normal; } ]] /mx:Style /mx:Canvas --- manifest file --- ?xml version=1.0? componentPackage component id=MyStuff class=MyStuff/ /componentPackage __._,_.___ -- 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 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 Builder 2, getting slower as code grows
On 8/30/06, Paul Andrews [EMAIL PROTECTED] wrote: Is that 1,700 lines of code in one file? You know, this is a good question that I was wondering and forgot all about. My code base is probably 5000 to 1 lines of code, so 1700 isnt much unless as you suggest, its all in one file (ugh). Regards, Hank -- 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/
[flexcoders] Re: Anyone actually able to save data from flex
Here is the http service command. If i add contentType=application/xml and/or add method=POST we get [RPC Fault faultString=HTTP request error faultCode=Server.Error.Request faultDetail=Error: [IOErrorEvent type=ioError bubbles=false cancelable=false eventPhase=2 text=Error #2032: Stream Error. URL: http://10.250.20.154:8080/ZebraServer/store?a=b;]. URL: http://10.250.20.154:8080/ZebraServer/store?a=b;] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler() at mx.rpc::Responder/fault() at mx.rpc::AsyncRequest/fault() at ::DirectHTTPMessageResponder/errorHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::redirectEvent() -- 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/
[flexcoders] Project Problem with Flex Builder2
Hi Folks --I was debugging a piece of code in Flex Builder 2 and while requesting a browser debug session the system reported a problem with the project file and asked if I would like to continue. I clicked 'ok' and then it threw up a dialog box with the following error 'File not found: file:C/Documents and Settings/Flex Builder/Redesign/bin/main.html'. As far as I am able to tell all of the required files are present. Has anyone else encountered this problem and if so do they have a solution that is better than starting over?This is not the first time I have encountered this 'feature' but it is the first time that I would rather not rebuild my files from scratch or cut and paste.ThanksDavid This message was sent using IMP, the Internet Messaging Program. __._,_.___ -- 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 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] Re: Anyone actually able to save data from flex
Here is one sample. Server side code: File test1.cfm cfoutput#xmlout#/cfoutput MXML ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; width=335 height=100% paddingTop=2 paddingLeft=0 paddingRight=1 mx:Script ![CDATA[ import mx.controls.Alert; import mx.utils.StringUtil; [Bindable] var registerurl:String = 'http://www.xx.com/test1.cfm'; public function httpFault() { Alert.show('Hello World!', 'Fault') } public function httpResult() { Alert.show(mx.utils.StringUtil.trim(submitData.lastResult.toString()), 'Success') } public function submitURL() { var variables:Object = new Object(); variables.xmlout = dataModel.toXMLString(); submitData.request = variables; submitData.send(); } ]] /mx:Script mx:XML id=dataModel xmlns= rootnodeid100/idlabelTest/label/node/root /mx:XML mx:HTTPService id=submitData url={registerurl} resultFormat=text method=POST fault=httpFault() result=httpResult() / mx:Button id=bt width=100% label=Send click=submitURL() / /mx:Application -- 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] Re: Anyone actually able to save data from flex
On Thursday 31 August 2006 14:48, mthielman11 wrote: We can not even get a simple sample like this to work. I can retieve and view data from the server but the posting is not working. Right. And the web server is seeing the post, and there is a post body if you inspect it with Wireshark or something, but there is no body when you look for it in your (Java ?) code ? -- Tom Chiverton Helping to synergistically reintermediate unique methodologies This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- 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] Using Embedded fonts in htmlText
I don't know why that is happening, and I don't know what's causing it exactly, but one workaround that I've seen elsewhere that might work here is to set the fontfamily (Arial, Symbol) to every font you might want to use in that textarea and then you should using html be able to set the the htmlText to any font that you have set fontFamily to (even mixing fonts simultaneously). Don't know why this should work, but it has for me in UITextFields which is the textfield inside the TextArea. On 8/31/06, Bart Vanhulle [EMAIL PROTECTED] wrote: I was wondering if someone managed to achieve this. After struggling with embedding some fonts I finally got it working to some degree. The fonts are taken in most components. However, when I'm trying to use an embedded font in a font tag and drop it in the htmlText attribute of a TextArea, the text is not using the embedded font, although the documentation claims it should. (devguide, 'Using tags in html text') This is what I have in the css: @font-face { src: url('/assets/fonts/arial_emb.ttf'); fontWeight: normal; fontFamily: arialtest } .textarea { embedFonts: true; font-weight: normal; } In the component I have something like this: mx:TextArea id=info width=200 height=100 htmlText= / info.htmlText = font face='arialtest' size='14'test test test test/font; This will take the default font setting of the flash application. arialtest is never applied. This however works: mx:TextArea id=info width=200 height=100 fontFamily=arialtest htmlText= / info.htmlText = font size='14'test test test test/font; But this is not what I want as there will be text in different formatting styles in that field… Bart __._,_.___ -- 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 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] Include fonts in RSL Flex2
Think I figured part of the problem out. Seems Darron Schalls blog post is still valid as I am able to get this to work on Label or Button components but TextArea (which I first tried) is a different story. So it seems that TextArea is doing something under the covers that Label and Button dont. Any ideas? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Lance Linder Sent: Wednesday, August 30, 2006 6:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Include fonts in RSL Flex2 I have been scowering the internet for information on how to embed fonts in an RSL for Flex2. I ran accress this posting by Darron Schall but it looks like it is for Flex 1.5? Anyway I gave it a try but it doesnt work for me. I set up 2 projects, 1 regular flex project and another as a library project. My regular project references the library project as an RSL and in my library project I created one component with the @font-face css tag in the mx:Style tag. I also created a manifest file and set up the library project to use the manifest file. Everything compiles right and my component from the RSL shows up in my main app but when I try to use the font in the RSL the text in my main app disappears (ie just like in Flash if you tell it to use embedded fonts but the font doesnt exist). This has to be possible with Flex 2! Heck fonts alone are one of the most important things to stuff in an RSL half the time! What am I doing wrong? Is there some more documentation on this that I missed or a more recent blog post that I missed? Thanks for any help! Here is the code I have.. --- application code --- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns:mystuff=http://mystuff layout=absolute mx:Style ![CDATA[ TextArea { font-family: mainFont; } ]] /mx:Style mystuff:MyStuff width=10 height=10 / mx:TextArea x=10 y=10 width=533 height=434 text=Hello There!/ /mx:Application --- rsl component code --- ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml width=10 height=10 backgroundColor=0x00 mx:Style ![CDATA[ @font-face { src:url(verdana.ttf); font-family: mainFont; font-style: normal; } ]] /mx:Style /mx:Canvas --- manifest file --- ?xml version=1.0? componentPackage component id=MyStuff class=MyStuff/ /componentPackage __._,_.___ -- 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 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] Can a legend be draggable?
I was having space issues with a legend and thought that the ability to drag a legend around the graph would be cool. Is that possible, maybe a simple setting that i have missed? Thanks in advance! -- 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/
[flexcoders]MUltiply PrintDataGrid
--- Franca Daniel [EMAIL PROTECTED] escreveu: Data: Thu, 31 Aug 2006 15:14:42 + (GMT) De: Franca Daniel [EMAIL PROTECTED] Assunto: [FlexCoders]MUltiply PrintDataGrid Para: flexcoders@yahoogroups.com Hi, I need to use a dynamic number of PrintDataGrid to make a Report. Anyone hava some idea how to do that ? Thank you! ___ O Yahoo! está de cara nova. Venha conferir! http://br.yahoo.com ___ Novidade no Yahoo! Mail: receba alertas de novas mensagens no seu celular. Registre seu aparelho agora! http://br.mobile.yahoo.com/mailalertas/ -- 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] Using Embedded fonts in htmlText
Thank you for the suggestion. It tried it on the TextArea but it didnt work. (putting it in the css and applying it via the styleName). I might give it a try with the UITextField component later on, maybe it will work then. I wonder if this should be filed as a bug as the documentation clearly states that the face attribute in the font tag also checks for embedded fonts Bart From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Freiman Sent: donderdag 31 augustus 2006 16:58 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Using Embedded fonts in htmlText I don't know why that is happening, and I don't know what's causing it exactly, but one workaround that I've seen elsewhere that might work here is to set the fontfamily (Arial, Symbol) to every font you might want to use in that textarea and then you should using html be able to set the the htmlText to any font that you have set fontFamily to (even mixing fonts simultaneously). Don't know why this should work, but it has for me in UITextFields which is the textfield inside the TextArea. On 8/31/06, Bart Vanhulle bart.vanhulle@eun.org wrote: I was wondering if someone managed to achieve this. After struggling with embedding some fonts I finally got it working to some degree. The fonts are taken in most components. However, when I'm trying to use an embedded font in a font tag and drop it in the htmlText attribute of a TextArea, the text is not using the embedded font, although the documentation claims it should. (devguide, 'Using tags in html text') This is what I have in the css: @font-face { src: url('/assets/fonts/arial_emb.ttf'); fontWeight: normal; fontFamily: arialtest } .textarea { embedFonts: true; font-weight: normal; } In the component I have something like this: mx:TextArea id=info width=200 height=100 htmlText= / info.htmlText = font face='arialtest' size='14'test test test test/font; This will take the default font setting of the flash application. arialtest is never applied. This however works: mx:TextArea id=info width=200 height=100 fontFamily=arialtest htmlText= / info.htmlText = font size='14'test test test test/font; But this is not what I want as there will be text in different formatting styles in that field Bart __._,_.___ -- 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 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] Re: Buffer progress bar for streaming FLV
Hi Abdul Your last two responses were helpful, but I don't think they solve my problem. As far as I can tell, to show buffering progress of streaming video as a percentage reflected in a progress bar I need to do this... var loadpct:Number = ns.time / ns.bufferLength * 100; bar.setProgress(loadpct,100); bar.label= Buffering + loadpctRnd + %; After reading through the various Flex Video ActionScript Classes (found in my install path - C:\Program Files\Adobe\Flex 2\Flex Builder\Flex SDK 2\frameworks\source\mx\controls\videoClasses), I've learned that they don't expose the netStream bufferLength property. So, I answered my own question - showing streaming video buffering progress using the mx:videoDisplay component is not possible. However it could be possible. As an experiment, I've copied the Flex video classes to a test project. I'm changing all package references to point to my new project. I'm modifying the classes to expose the properties needed. And I'm adding a Boolean property to the mx:videoDisplay component that will show a buffering progress bar when set to true. At the very least, I think Adobe needs to modify their videoDisplay class to get a buffering progress percentage for an RMTP URL. I'll let you know how it goes. Chris --- In flexcoders@yahoogroups.com, Chris Simeone [EMAIL PROTECTED] wrote: Hi All, I've been trying to create a Buffering progress bar for streaming FLV (via FMS) with the mx:videoDisplay component. But, the videoDisplay is not firing progress events for some odd reason. So I changed my strategy and started using the netStream object. The video is streaming via FMS, but the netStream bytesLoaded and bytesTotal properties are always zero. Any ideas what I may be doing wrong. The code's below. Also, it would be great if anyone can show how to pull this of with the mx:videoDisplay component as well!!! Thanks! Chris ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* layout=vertical horizontalAlign=left creationComplete=onCreationComplete(); mx:Script ![CDATA[ // import mx.events.VideoEvent; import myComponents.*; import flash.events.*; import flash.net.*; import flash.media.Video; import mx.controls.*; import mx.core.UIComponent; // private var nc:NetConnection; private var stream:NetStream; private var fmsUrl:String; private var flvName:String; private var video:Video; private var loaded_interval:Number; // NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; // public function onCreationComplete():void { nc = new NetConnection(); configureListeners(nc); var videoHolder:UIComponent = new UIComponent(); videoHolder.setActualSize(700, 525); video = new Video(); configureListeners(video); videoHolder.addChild(video); video.x = 0; video.y = 0; fmsUrl = rtmp://localhost/test_video; flvName = testVideo; theBox.addChild(videoHolder); nc.connect(fmsUrl); } / private function configureListeners(dispatcher:IEventDispatcher):void { dispatcher.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError); dispatcher.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onAsyncError); dispatcher.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus); dispatcher.addEventListener(ProgressEvent.PROGRESS, onProgress); dispatcher.addEventListener(Event.ENTER_FRAME, onEnterFrame); } / private function connectStream():void { if (stream) stream.close(); stream = new NetStream(nc); configureListeners(stream);
[FlexCoders]MUltiply PrintDataGrid
Hi, I need to use a dynamic number of PrintDataGrid to make a Report. Anyone hava some idea how to do that ? Thank you! ___ O Yahoo! está de cara nova. Venha conferir! http://br.yahoo.com -- 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] ArrayCollection...how can I edit the data?
On Monday 28 August 2006 21:14, qnotemedia wrote: TextInputs. I've tried many things. The only thing that works is editing the values of the Flex2 objects (the combobox or the datagrid). This is not ideal, since in step5, I will have to rebuild If these controls are bound to a data provider, just update that. -- Tom Chiverton Helping to dynamically lead B2B bandwidth This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- 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] Re: Use of viewLocator and viewHelper
On Thursday 31 August 2006 05:38, mamatha_tn wrote: 1)Is viewHelper used to segregate as code from mxml? Sort of, or interactions with the model (as) from the view (mxml). 3)If I dont have any need to manipulate the mxml file from other files(which you have mentioned below), should I still go ahead and create a viewHelper for each view? I can't see the point for trival views. -- Tom Chiverton Helping to interactively aggregate value-added action-items This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- 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] output directive broken for absolute paths using compc
On Tuesday 29 August 2006 06:33, Michael wrote: Does anyone know why compc doesn't take absolute paths inside the output directive? Can you give compc command line arguments ? Any known fixes or am I missing a vital configuration directive elsewhere? output ../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../../bar/out.swc /output :-) -- Tom Chiverton Helping to continually restore next-generation information This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- 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] Include fonts in RSL Flex2
Thanks! I did quickly scan through the thread you mentioned. Very interesting stuff but I didnt see anything exactly like what I needed. I wasnt aware of the Font.enumerateFonts() functions so I will look into this. Right now I have it working 90% at least. Biggest issue is the TextArea which doesnt work with my embedded fonts but Button and Label do! Go figure L I think my biggest problem all along was that I was testing with only the TextArea component once I started testing with Label and Button components things started working but still dont work with TextArea components. I will keep an eye on the thread you mentioned though, very cool stuff! Thanks, Lance From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Daniel Freiman Sent: Thursday, August 31, 2006 9:14 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Include fonts in RSL Flex2 We've been working on something similar in a thread called embeding fonts at runtime although i'm not sure it's exactly what you want. Some of it might be useful. First check to see if the font is actually there using Font.enumerateFonts(). Second, we're currently looking into whether the embeded font name needs to be the same as the actual font. If the other thread is close enough jump on it, otherwise I tell you if anything comes up that may be applicable. On 8/30/06, Lance Linder [EMAIL PROTECTED]tal.com wrote: I have been scowering the internet for information on how to embed fonts in an RSL for Flex2. I ran accress this posting by Darron Schall but it looks like it is for Flex 1.5? Anyway I gave it a try but it doesn't work for me. I set up 2 projects, 1 regular flex project and another as a library project. My regular project references the library project as an RSL and in my library project I created one component with the @font-face css tag in the mx:Style tag. I also created a manifest file and set up the library project to use the manifest file. Everything compiles right and my component from the RSL shows up in my main app but when I try to use the font in the RSL the text in my main app disappears (ie just like in Flash if you tell it to use embedded fonts but the font doesn't exist). This has to be possible with Flex 2! Heck fonts alone are one of the most important things to stuff in an RSL half the time! What am I doing wrong? Is there some more documentation on this that I missed or a more recent blog post that I missed? Thanks for any help! Here is the code I have.. --- application code --- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx= http://www.adobe.com/2006/mxml xmlns:mystuff=http://mystuff layout=absolute mx:Style ![CDATA[ TextArea { font-family: mainFont; } ]] /mx:Style mystuff:MyStuff width=10 height=10 / mx:TextArea x=10 y=10 width=533 height=434 text=Hello There!/ /mx:Application --- rsl component code --- ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx= http://www.adobe.com/2006/mxml width=10 height=10 backgroundColor=0x00 mx:Style ![CDATA[ @font-face { src:url(verdana.ttf); font-family: mainFont; font-style: normal; } ]] /mx:Style /mx:Canvas --- manifest file --- ?xml version=1.0? componentPackage component id=MyStuff class=MyStuff/ /componentPackage __._,_.___ -- 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 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] Architecture question
On Wednesday 30 August 2006 01:18, Jeremy Merritt wrote: What we want to offer is a way to share the UI they create with others, over the web. I'd go with an XML description of the GUI. -- Tom Chiverton Helping to enthusiastically lead prospective platforms This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- 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/
[flexcoders] InputText + StyleSheet
Hi all,I'm developing a kind of markup editor. It has to allow the user to select text and apply some xml tags to it as well as write new text in the textfield. The problem I'm having is that when you apply a styleSheet to the inputText field to render this custom tags, this field stops being an inputText, it becomes not editable. I've been reading in livedocs (http://livedocs.macromedia.com/flex/2/langref/flash/text/TextField.html) that this is a known issue... but is there any creational workarroun/solution? I've been playing with textFormat but I haven't found a way to keep custom tags/attributes in the dirty autogenerated html code so I'm loosing my custom tags. Any light?Thx so much!X. __._,_.___ -- 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 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] Re: how to show/hide a line in a chart
You can get at the nth lineSeries as: myChart.series[i]._visible = true/false; Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of shemeshkaleSent: Thursday, August 31, 2006 12:28 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: how to show/hide a line in a chart (see the first post in this topic)FLEX 1.5 ! __._,_.___ -- 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 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] Re: Cairngorm / Hibernate Best Practices
Thanks for the info, I've actually been using Spring predominantly for my standard J2EE web apps, but haven't used it with Flex. I know it's possible, and have been thinking of doing a Flex/Spring/Hibernate setup, but haven't yet. Is it difficult to use Spring with Flex, and where would I go to begin? Also, 4 years of a going to a Liberal Arts school forces archaic words like 'hitherto' into your vocabulary, haha. --- In flexcoders@yahoogroups.com, e baggg [EMAIL PROTECTED] wrote: Brennan, I haven't seen the word Hithero used since I was forced to read Shakespeare back in high school. Way to bring it back! Anyway, Adobe has provided Hibernate support via the Hibernate Assembler: http://livedocs.macromedia.com/flex/2/fds2javadoc/flex/data/assemblers/HibernateAssembler.html I actually created an app that is front-to-end using the RemoteObject. I have my Java pojos which are mapped to my hibernate mapping files and I also have the AS classes that correlate to them too, using the: [Managed] [RemoteClass(alias=com.project.MyClass)] I pass all my objects to a pojo facade class which in turns invokes my Sprign beans. Within the facade, all the hibernate and trasactions are taken care. My objects are pretty light, so to avoid lazy-loading issues on the client side, i set lazy=false at the class level for all my hibernate mappings. This works well for me and I have not faced any performance issues. - Stay in the know. Pulse on the new Yahoo.com. Check it out. -- 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/
[flexcoders] HTTP Problem w/ TileList
I am trying to get this TileList to display my data from an HTTPService, however, in the itemRenderer(Thumbnail), Flex will display my data when I code my image source as {data.image}, but I want to know how does flexstore code it as {product.image} and their data gets displayed? I tried following their structure, but got lost somewhere. Can anybody help? Here is how I coded my App: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns=* creationComplete=initApp() mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.rpc.events.ResultEvent; [Bindable] public var catalog:ArrayCollection; public function initApp():void{ srv.send(); } public function resultHandler(event:ResultEvent):void{ catalog = event.result.catalog.product; } ]] /mx:Script mx:HTTPService id=srv url=data/catalog.xml useProxy=false result=resultHandler(event)/ mx:Canvas x=0 y=0 width=100% height=100% mx:HBox width=100% height=100% Cart id=cartPanel width=30% height=100%/ CatalogPanel id=catalogPanel width=70% height=100% catalog={catalog}/ /mx:HBox /mx:Canvas /mx:Application ?xml version=1.0 encoding=utf-8? mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns=* mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var catalog:ArrayCollection = new ArrayCollection(); ]] /mx:Script mx:TileList dataProvider={catalog} height=100% width=100% itemRenderer=Thumbnail id=productTileList rowCount=3 columnCount=4/ /mx:Panel ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.events.*; import mx.core.*; [Bindable] public var product:Object; ]] /mx:Script mx:VBox x=0 y=0 width=100% height=100% horizontalAlign=center verticalAlign=middle mx:Image width=85 height=85 verticalAlign=middle horizontalAlign=center source={product.image} id=image useHandCursor=true/ mx:Label text={product.name} fontSize=10 fontFamily=Arial/ /mx:VBox /mx:Canvas -- 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/
[flexcoders] Can Tabs be multi-row?
Hi, I have an interface Im building and it seems like the it has too many sections which causes the whole app to scroll left to right. Can the tabs be multi-row? Does anyone have another suggestion in dealing with many form links in an app? Thanks and I look forward to your reply. Louie __._,_.___ -- 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 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] Problem with Sorting
Hey everyone, I have an array collection of Industry objects which are all sub-industries. Each industry object has as a property a parent industry (of datatype Industry); Industry VO contains properties: industryId : int; parent : Industry; name : String; I want to sort the array by the parent industry first, and then the children industries names. I was going to do something like: var sort : Sort = new Sort(); sort.fields = [ new SortField(parent.name, true), new SortField(name, true) ]; ...but this isn't working. Is there any way of going deeper than just immediate properties for a sortfield? Brennan -- 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] Flex 2 patch timeline
Almost wish I hadn't asked :) Still it's nice to feel that Adobe are listening. Louie Penaflor wrote: This is a good point. I believe Adobe also tried to replicate a bug I was getting on Flex 2 builder, even when we didn’t purchase the software yet. I was still testing it out and got excellent support. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Impudent1 *Sent:* Wednesday, August 30, 2006 7:47 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Flex 2 patch timeline .02 Well my experience is with the other adobe teams. BUT I have had devs/engineers call me on a sunday. On their own dime, to see what we could sort out regarding some persistant but hard to nail bugs. All the teams at adobe I have had the pleasure of working with have all busted themselves to make sure things were working. As for flex, we get a huge commitment just in them answering things on this list, not to mention all the adobe blogs with examples etc. I personally think anyone who cries for 24 hour personal tech service should be paying a hefty price for a yearly agreement ;) Impudent1 LeapFrog Productions -- 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/
[flexcoders] extend textarea in PrintJob?
hi all, anyone knows how to print all the text of the textarea component it only prints the component but not the text also the text is bigger then the one in the texarea i also would like to know how to add a mx:image component next to the textarea i tried using the FormPrintView.mxml Example but it does not print the cursive, bold and underline text heres is the code i'm using to print: private function doPrint():void { var pj : PrintJob = new PrintJob(); if (pj.start() != true) return; pj.addPage(areaDeTexto,new Rectangle(0, 0, 400, 400)); if(pj.orientation == PrintJobOrientation.LANDSCAPE) { areaDeTexto.rotation = 90; } pj.send(); } -- 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/
[flexcoders] lockedcolumncount
has anyone been able to get the lockedcolumncount to work on a datagrid. I have it set, but the columns always resize to fit in the width of the grid. Is there some trick to this ? There used to be an example on the labs site, but it is gone now. -- 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/
[flexcoders] Customizing datatip function for 100% bar chart
Using Flex 2. I have a 100% bar chart that I need help figuring out how to get access to some of the series data for display in a data tip. Here's the scenario: There are 4 regions in the country, each of them gets their own bar in the chart. - North Region - South Region - West Region - East Region Each bar has 4 individual peices to it, which together sum to 100%: - Used Sales - New Sales - Parts - Accessories What I need is a way to display the name of the grouping (Used Sales, New Sales, etc) inside my datatip. I cannot for the life of me figure out how to do this. Here's the code that I'm working with: - mx:Script ![CDATA[ import mx.charts.HitData; public function dataTipsBarChart(e:HitData):String { /* so far I know how to get the region name, but how do you get the actual displayname of the series that is being rolled over? */ return e.item.region; } ]] /mx:Script mx:BarChart x=10 y=36 width=80% height=124 id=barchartDealers type=100% showDataTips=true dataTipFunction=dataTipsBarChart mx:dataProvider mx:Array mx:Object region=North newsales=50 usedsales=25 parts=15 accessories=10 / mx:Object region=South newsales=40 usedsales=35 parts=10 accessories=15 / mx:Object region=East newsales=65 usedsales=15 parts=10 accessories=10 / mx:Object region=West newsales=60 usedsales=20 parts=15 accessories=5 / /mx:Array /mx:dataProvider mx:verticalAxis mx:CategoryAxis categoryField=region displayName=/ /mx:verticalAxis mx:horizontalAxis mx:LinearAxis minimum=0 maximum=100/ /mx:horizontalAxis mx:series mx:BarSeries displayName=New Sales yField=region xField=newsales mx:fill mx:SolidColor color=0x009900/ /mx:fill /mx:BarSeries mx:BarSeries displayName=Used Sales yField=region xField=usedsales mx:fill mx:SolidColor color=0x00/ /mx:fill /mx:BarSeries mx:BarSeries displayName=Parts yField=region xField=parts mx:fill mx:SolidColor color=0xFF9900/ /mx:fill /mx:BarSeries mx:BarSeries displayName=Accessories yField=region xField=accessories mx:fill mx:SolidColor color=0xFF/ /mx:fill /mx:BarSeries /mx:series /mx:BarChart mx:Legend dataProvider={barchartDealers} x=74.5 y=151 width=522 height=31 fontSize=9 id=barchartDealersLegend/ - Any help with this would be greatly appreciated! I hope that my example was clear enough, it should run on it's own if you cut/paste it into a blank Flex app. -- 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] amfphp-AS class mapping issue
Have you changed your advancedsettings.php to correctly map your classes?2006/8/31, joangarnetdotcom [EMAIL PROTECTED]: Hi, I'm in a Flex2 app.I can't manage to map a php return value to the right AS type... In my service method I have this return statement: return new Result( true, new Status() );In Result.php I have public $_explicitType = org.bestiario.website.Result; In Status.php I havepublic $_explicitType = org.bestiario.website.Status; I also have the corresponding Result.as and Status.as classes on the Flex side.In my HTTP debugger (Charles) I can see the AMF packet coming with correct types as you can see here: http://www.joangarnet.com/_otras/charles.gif But when the callback executes and I do: public function onResult( event:* = null ):void{ var res:Result = Result(event.result); }I get the following exception: TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to org.bestiario.website.Result. Any ideas??Cheers! P.S. I'm using Renaun's RemoteObjectAMF0 class to call amfphp services. __._,_.___ -- 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 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] Can Tabs be multi-row?
I posted this component. You are free to use it.http://www.everythingflex.com/blog/1/2006/07/MultiRowTabs.cfmRich On 8/31/06, Louie Penaflor [EMAIL PROTECTED] wrote: Hi, I have an interface I'm building and it seems like the it has too many sections which causes the whole app to scroll left to right. Can the tabs be multi-row? Does anyone have another suggestion in dealing with many form links in an app? Thanks and I look forward to your reply. Louie -- Rich Tretolamx:EverythingFlex/http://www.EverythingFlex.com __._,_.___ -- 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 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] Configuring Flex 2 Data Services sample apps with full Jrun
Title: Enterprise RIA Development with Macromedia Flex I am trying to get the Flex 2 Data Services Express sample applications working correctly on a full install on top of Jrun. The first one works OK, but the others all seem to require a specific JNDI port and possibly some other configuration changes. I'm pretty new to this, so I could use any help I could get. Has anyone done this before? __._,_.___ -- 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 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. __,_._,___ -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.7/434 - Release Date: 8/30/2006
RE: [flexcoders] Customizing datatip function for 100% bar chart
return Series(e.item.element).displayName; Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of j_sevlieSent: Thursday, August 31, 2006 9:17 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Customizing datatip function for 100% bar chart Using Flex 2.I have a 100% bar chart that I need help figuring out how to getaccess to some of the series data for display in a data tip. Here'sthe scenario:There are 4 regions in the country, each of them gets their own bar inthe chart..- North Region- South Region- West Region- East RegionEach bar has 4 individual peices to it, which together sum to 100%:- Used Sales - New Sales- Parts- AccessoriesWhat I need is a way to display the name of the grouping (Used Sales,New Sales, etc) inside my datatip. I cannot for the life of me figureout how to do this.Here's the code that I'm working with:-mx:Script![CDATA[import mx.charts.HitData;public function dataTipsBarChart(e:HitData):String { /*so far I know how to get the region name, but how do youget the actual "displayname" of the series that is being rolled over?*/return e.item.region;}]]/mx:Scriptmx:BarChart x="10" y="36" width="80%" height="124"id="barchartDealers" type="100%" showDataTips="true"dataTipFunction="dataTipsBarChart"mx:dataProvidermx:Arraymx:Object region="North" newsales="50" usedsales="25" parts="15"accessories="10" /mx:Object region="South" newsales="40" usedsales="35" parts="10"accessories="15" /mx:Object region="East" newsales="65" usedsales="15" parts="10"accessories="10" /mx:Object region="West" newsales="60" usedsales="20" parts="15"accessories="5" //mx:Array/mx:dataProvidermx:verticalAxismx:CategoryAxis categoryField="region" displayName=""//mx:verticalAxismx:horizontalAxismx:LinearAxis minimum="0" maximum="100"//mx:horizontalAxismx:seriesmx:BarSeries displayName="New Sales" yField="region" xField="newsales"mx:fillmx:SolidColor color="0x009900"//mx:fill/mx:BarSeriesmx:BarSeries displayName="Used Sales" yField="region"xField="usedsales"mx:fillmx:SolidColor color="0x00"//mx:fill/mx:BarSeriesmx:BarSeries displayName="Parts" yField="region" xField="parts"mx:fillmx:SolidColor color="0xFF9900"//mx:fill/mx:BarSeriesmx:BarSeries displayName="Accessories" yField="region"xField="accessories"mx:fillmx:SolidColor color="0xFF"//mx:fill/mx:BarSeries/mx:series/mx:BarChartmx:Legend dataProvider="{barchartDealers}" x="74.5" y="151"width="522" height="31" fontSize="9" id="barchartDealersLegend"/-Any help with this would be greatly appreciated!I hope that my example was clear enough, it should run on it's own ifyou cut/paste it into a blank Flex app. __._,_.___ -- 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 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] Wacky SOAP request construction with .NET web service... again
I have already come across a couple of (confirmed by Adobe support) bugs with the way Flex constructs SOAP requests when using .NET web services and am wondering if I've found a third. I suppose this could be the expected behavior but it seems awfully weird to me. Part of the request that my web service expects is a ContainersToRetrieve node, which contains 1 or more child ContainerType nodes. Like this: ContainersToRetrieve ContainerTypeIndustryTrends/ContainerType ContainerTypeRPRSelections/ContainerType /ContainersToRetrieve When constructing the request in MXML, I have discovered that if I am only sending one ContainerType argument that I need to omit the ContainerType node and put the contents directly inside ContainersToRetrieve. Like this: ContainersToRetrieve IndustryTrends /ContainersToRetrieve But if I need to send more than one I have to include the ContainerType nodes in my MXML, like this: ContainersToRetrieve ContainerType IndustryTrends /ContainerType ContainerType RPRSelections /ContainerType /ContainersToRetrieve Is this how this should work? I am including my entire WebService tag below. Thanks in advance. Ben mx:WebService id=ws wsdl=http://mysite.com/WebService.asmx?WSDL; useProxy=false fault=getTrendsFault(event) result=getTrendsResult(event) mx:operation name=GetDocument resultFormat=e4x mx:request EnterpriseId1/EnterpriseId DocumentTypeRPR-EBD/DocumentType ContainersToRetrieve ContainerType IndustryTrends /ContainerType ContainerType RPRSelections /ContainerType /ContainersToRetrieve MetadataToRetrieve RPRDocumentHistory /MetadataToRetrieve /mx:request /mx:operation /mx:WebService -- 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] Stroke color on lineSeries - bug?
Thanks guys. Searched the forum later and saw this post by Ely. "You're using Beta 2? You need to set lineStroke, not stroke. The stroke property affects the color of the points on the line, not the line itself. There's a bug in beta2 where the legend is currently rendering the stroke color, not the lineStroke color. So for now, set both. It will be fixed in the next drop. Ely." - Original Message - From: Matt Horn To: flexcoders@yahoogroups.com Sent: Thursday, August 31, 2006 1:48 AM Subject: **SL-JUNK** RE: [flexcoders] Stroke color on lineSeries - bug? For LineSeries, you use the stroke style property to define a style forthe chart item's renderer. You use the lineStroke property to define thestroke of the actual line segments. This is documented here:"Defining strokes for LineSeries and AreaSeries"http://livedocs.macromedia.com/flex/2/docs/1262.html hth,matt hornflex docs -Original Message- From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Sam Shrefler Sent: Wednesday, August 30, 2006 3:20 PM To: [EMAIL PROTECTED]ups.com Subject: Re: [flexcoders] Stroke color on lineSeries - bug? Sree: I'm not sure if its a bug, an error in the documents, or none of the abover... If you need to change teh stroke color, I've successfully used the following... mx:LineSeries mx:lineStroke mx:Stroke color="0x33" weight="3"/ /mx:lineStroke /mx:LineSeries Hope that helps Sam On 8/30/06, Sreejith Unnikrishnan [EMAIL PROTECTED]com mailto:[EMAIL PROTECTED]com wrote: Applying the stroke color on lineSeries does not seem to have any effect. Even in the examples provided by Adobe, chart explorer the colors though specified, dont work! Is this a known bug, if it is one? Regards Sree __._,_.___ -- 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 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] Is FDS is a CGI technology?
Title: Enterprise RIA Development with Macromedia Flex Is Flex Data Services a type of CGI-like technology?If I have a Java application, I don't need to use servlets no more for having clients communicate with the application? Thx, -mL __._,_.___ -- 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 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] Unable to get trace to work...
I am writing some classes and am trying to use trace statements to test my methods; however, when I run (or debug) my application, my trace statements are not being output to the console window. Does anyone know if there is some setting or preference that I might be missing, or know what might be causing this? My test class looks like this: package { import flash.display.MovieClip; public class ProgrammingBasics extends MovieClip { private var _quantity:Number; public function ProgrammingBasics() { _quantity = 5; runTrace(); } private function runTrace():void { trace(getTraceValue()); } private function getTraceValue():Number { return _quantity; } } } The console output looks like this: [SWF] C:\Documents and Settings\kyle_vmix\My Documents\vMix\FLEX PRACTICE\bin\ProgrammingBasics-debug.swf - 395,243 bytes after decompression Thanks! -Kyle -- 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/
[flexcoders] Multiple Screen Application
I'm just looking for an theory overview / suggestions on how to handle multiple screens with nothing in common: For example, i have an application that I'd like to have a menubar on every single screen. After that, i'd have say 5 - 20 totally unrelated screens each with their own display and function. I see on each of those screens where viewStates would comein handy. My question is: Should I make viewStates for every single screen, or would using a viewStack be better? Is there a best practice for an application with multiple screens? ThanksSam __._,_.___ -- 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 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] Is FDS is a CGI technology?
FDS sits inside *your* servlet, so you are still using servlets. FDS has (as far as I know) nothing to do with CGI.Regards,HankOn 8/31/06, Mark Lapasa [EMAIL PROTECTED] wrote: Is Flex Data Services a type of CGI-like technology?If I have a Java application, I don't need to use servlets no more for having clients communicate with the application? Thx, -mL __._,_.___ -- 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 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] Re: Multiple Screen Application
I started out using states, with the current state being bound to a property in the model (using Cairngorm.) Lately, as my application has dozens of screens and different users are privelaged to have certain screens at their disposal, I use a view stack (it's easier on the eyes to program, IMO), and have each state's viewhelper extended to register that given state as a screen object in an arraycollection of available screens. I also have a constants file of screen titles (my menu reflects the title of the current screen.) I register each screen with its static title (pulled from the constants class), and fire off a custom cairngorm event when switching screens. e.g.: CairngormEventDispatcher.getInstance().dispatchEvent( new ScreenSwitchEvent(Constants.MainMenu)); Then I have a class that implements Command and have it do a search in the screen array for any object who's title is Constants.MainMenu. I've found this to be the best way, mainly because I rely on permissions and some screens have read-write access, some only have read, etc. For a smaller application, you could just use states and have a string property in the model called currentState that the currentState of your VBox is bound to. (I say VBox instead of application because I want a menu bar to be at the top of every screen, so the content is loaded into the vbox.) Then switching screens is as easy as calling: model.currentState = Constants.MainMenu Brennan --- In flexcoders@yahoogroups.com, Sam Shrefler [EMAIL PROTECTED] wrote: I'm just looking for an theory overview / suggestions on how to handle multiple screens with nothing in common: For example, i have an application that I'd like to have a menubar on every single screen. After that, i'd have say 5 - 20 totally unrelated screens each with their own display and function. I see on each of those screens where viewStates would come in handy. My question is: Should I make viewStates for every single screen, or would using a viewStack be better? Is there a best practice for an application with multiple screens? Thanks Sam -- 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/
[flexcoders] Re: how to show/hide a line in a chart
If you have your line chart bound to a series array, you can build a new array that contains only the lines you wish to show, and then change your chart's binding to that array instead of the original array. I used this approach with area/line combination charts with four elements, and it worked perfectly fine. - Doug --- In flexcoders@yahoogroups.com, shemeshkale [EMAIL PROTECTED] wrote: anyone? please help! --- In flexcoders@yahoogroups.com, shemeshkale baldhead72@ wrote: Igor, it seems u misunderstood my question. please read my first post again - i want to show/hide only ONE line (LineSeries) not the whole chart. your answer will hide the whole chart! since LineSeries can NOT have IDs the solution is not that simple. again: i have one chart with 4 different lines in it. i want to show/hide only ONE of them. tnx. --- In flexcoders@yahoogroups.com, Igor Costa igorcosta@ wrote: Hi there Just put an id to each linechart you have than at the mx:Script you could also do that. public function mouseEvent(event):Void{ // add the event here } LinecharId._visible = false; or lineCharId2._visible = true; Just that -- 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] Unable to get trace to work...
Do you have an mm.cfg file that enables tracing and sets the trace output file name and location? Here's a technote about how to get mm.cfg set up correctly: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19323 One that is all set up, your trace statements will be outputted to the file you specify and you can just tail that for all runtime trace statements. -deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kyle Sent: Thursday, August 31, 2006 10:19 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Unable to get trace to work... I am writing some classes and am trying to use trace statements to test my methods; however, when I run (or debug) my application, my trace statements are not being output to the console window. Does anyone know if there is some setting or preference that I might be missing, or know what might be causing this? My test class looks like this: package { import flash.display.MovieClip; public class ProgrammingBasics extends MovieClip { private var _quantity:Number; public function ProgrammingBasics() { _quantity = 5; runTrace(); } private function runTrace():void { trace(getTraceValue()); } private function getTraceValue():Number { return _quantity; } } } The console output looks like this: [SWF] C:\Documents and Settings\kyle_vmix\My Documents\vMix\FLEX PRACTICE\bin\ProgrammingBasics-debug.swf - 395,243 bytes after decompression Thanks! -Kyle -- 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 -- 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] Problem with Sorting
The SortField objects take the name of the field in the object to be sorted as a String so your dot _expression_ will not work. What you can do is write a custom compareFunction for your Sort object. A compareFunction takes two objects and returns -1, 0, or 1 depending on which order the two objects should be sorted. The ASDoc for Sort.compareFunction has the function signature and a good example so check that out for more info. Your custom compareFunction can access top-level and sub-properties on each object and then sort accordingly. -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dreuimar Sent: Thursday, August 31, 2006 9:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem with Sorting Hey everyone, I have an array collection of Industry objects which are all sub-industries. Each industry object has as a property a parent industry (of datatype Industry); Industry VO contains properties: industryId : int; parent : Industry; name : String; I want to sort the array by the parent industry first, and then the children industries names. I was going to do something like: var sort : Sort = new Sort(); sort.fields = [ new SortField(parent.name, true), new SortField(name, true) ]; ...but this isn't working. Is there any way of going deeper than just immediate properties for a sortfield? Brennan __._,_.___ -- 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 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] Playing back a SWF with Flex
Although the docs would lead me to believe this isn't possible, I wanted to confirm whether you can dynamically load a SWF animation created in Flash into a Flex application and be able to access it's timeline to jump to a frame or set the framerate, etc. I have been using SWFLoader to load the SWF file. Am I missing something here? Do we need to wait for Flash 9 until you can control a SWF animation in Flex? I hope I am just lamely confused... thanks Mitch -- 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/
[flexcoders] Re: Flex 2 Remoting and ASP.net (flourine?) examples?
I'm trying to do a mashup of your tutorial and what jessewarden has at: http://www.jessewarden.com/archives/2005/12/amfphp_10_works.html So far, I haven't gotten it working. I'm getting: Unknown Service Error: Unknown service type requested FluorineTest at com.TheSilentGroup.Fluorine.Filter.ProcessFilter.DoAction (AMFContext context, AMFBody, amfBody) Any tips on just making the connection? I'm using Jesse's custom NetConnection with: gateway_conn = new NetConnection2(); gateway_conn.objectEncoding = ObjectEncoding.AMF3; gateway_conn.connect(gatewayURL); I tried AMF0 also to no improvement. Thanks! -rd --- In flexcoders@yahoogroups.com, DannyT [EMAIL PROTECTED] wrote: That tutorial is currenlty for Flash and AS2.0. I intend on duplicating that tutorial for Fluorine with Flex, webOrb and flex, also for amfphp and flex. Unfortunately I don't have the hardware to cope at the moment so as soon as I fork out and upgrade i'll get on it. :) Dan -- http://danny-t.co.uk -- 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/
[flexcoders] Re: Unable to get trace to work...
Thanks Deepa, I have tried following the instructions on setting up my trace debug output; however, I cannot find the file mm.cfg anywhere on my system. From what I have seen in examples, I should simply be able to open the console window and see the trace outputs there when I debug the application; however when I run debug no traces are output to the console. Has anyone run into this issue, or successfully located the mm.cfg file on a window xp system? Thanks! -Kyle -- 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] web service result type=Object,E4X,XML and the conversion function
Yeah, was just wondering if there was a simple function to call that took a var in one format, then spit it back out in the desired format.It just seemed a shame if that function was built in there, but not exposed. =) On 8/30/06, Clint Modien [EMAIL PROTECTED] wrote: Hey Tom... I don't think that particular function is public... what exactly are you trying to do... maybe the framework has it built in? Are you just converting from objects to xml or vice versa? On 8/30/06, Tom Ortega [EMAIL PROTECTED] wrote: I imagine there's an internal function that does the converting between formats.Do we have a public access to that function?Thanks,Tom __._,_.___ -- 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 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] Re: Anyone actually able to save data from flex
Lets try this again. I continue to have trouble posting my coding example. Here is what we have tried now. mx:HTTPService id=srvsave url= useProxy=false method=POST contentType=application/xml mx:request obj{dataModel}/obj /mx:request /mx:HTTPService mx:XML id=dataModel format=xmls physician testabx/test /physician /mx:XML private function storePhysician_Basics():void { srvsave.url=parentApplication.dataServerURL+store?a=b; srvsave.send(); } and we are getting the following error: Error: Error #1023: Stack overflow occurred. at mx.utils::ObjectUtil$/getClassInfo() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() -- 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] Re: Multiple Screen Application
Brennan: Thank you very much. What do you mean by ViewHelper? Does each View in the ViewStack have a viewHelper? ThanksSam On 8/31/06, dreuimar [EMAIL PROTECTED] wrote: I started out using states, with the current state being bound to aproperty in the model (using Cairngorm.) Lately, as my application has dozens of screens and different users are privelaged to have certainscreens at their disposal, I use a view stack (it's easier on the eyesto program, IMO), and have each state's viewhelper extended toregister that given state as a screen object in an arraycollection of available screens. I also have a constants file of screen titles (mymenu reflects the title of the current screen.)I register each screen with its static title (pulled from theconstants class), and fire off a custom cairngorm event when switching screens.e.g.:CairngormEventDispatcher.getInstance().dispatchEvent( newScreenSwitchEvent(Constants.MainMenu));Then I have a class that implements Command and have it do a search inthe screen array for any object who's title is Constants.MainMenu.I've found this to be the best way, mainly because I rely onpermissions and some screens have read-write access, some only haveread, etc.For a smaller application, you could just use states and have a string property in the model called currentState that the currentState ofyour VBox is bound to. (I say VBox instead of application because Iwant a menu bar to be at the top of every screen, so the content isloaded into the vbox.) Then switching screens is as easy as calling: model.currentState = Constants.MainMenuBrennan--- In flexcoders@yahoogroups.com, Sam Shrefler [EMAIL PROTECTED] wrote: I'm just looking for an theory overview / suggestions on how to handle multiple screens with nothing in common: For example, i have an application that I'd like to have a menubaron every single screen. After that, i'd have say 5 - 20 totally unrelated screens each with their own display and function. I see on each of those screens where viewStates would come in handy. My question is: Should I make viewStates for every single screen, or would using a viewStack be better?Is there a best practice for an application with multiple screens? Thanks Sam--Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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/ __._,_.___ -- 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 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] Re: Unable to get trace to work...
Hi Kyle Check out the first line in step #2 in the technote: Make sure you have copied the mm.cfg file from your flex_install_dir/bin directory to the client machine's home directory. Alternatively, you can create a file, name it mm.cfg, drop it in your home directory and add the settings specified later in the technote. -deepa From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kyle Sent: Thursday, August 31, 2006 11:34 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Unable to get trace to work... Thanks Deepa, I have tried following the instructions on setting up my trace debug output; however, I cannot find the file mm.cfg anywhere on my system. >From what I have seen in examples, I should simply be able to open the console window and see the trace outputs there when I debug the application; however when I run debug no traces are output to the console. Has anyone run into this issue, or successfully located the mm.cfg file on a window xp system? Thanks! -Kyle __._,_.___ -- 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 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] Re: Buffer progress bar for streaming FLV
Well, my hack worked. I created a new package in my project. Then I copied the Flex video classes into the package folders and hacked those (about 50 lines of code in 10 files - less not counting the package name changes). Then I created a new video event - BUFFERINGPCT. The VideoEvent object now contains a numeric property named bufferingProgress. The hack works like a charm! Now I can track buffering progress using my hacked version of the mx:videoDisplay component. The question is how do I get Adobe to add this type of functionality to the framework? Greg Abdul, thanks for all your responses. I learned much and I hope other find this thread useful. Chris --- In flexcoders@yahoogroups.com, Chris Simeone [EMAIL PROTECTED] wrote: Hi All, I've been trying to create a Buffering progress bar for streaming FLV (via FMS) with the mx:videoDisplay component. But, the videoDisplay is not firing progress events for some odd reason. So I changed my strategy and started using the netStream object. The video is streaming via FMS, but the netStream bytesLoaded and bytesTotal properties are always zero. Any ideas what I may be doing wrong. The code's below. Also, it would be great if anyone can show how to pull this of with the mx:videoDisplay component as well!!! Thanks! Chris ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* layout=vertical horizontalAlign=left creationComplete=onCreationComplete(); mx:Script ![CDATA[ // import mx.events.VideoEvent; import myComponents.*; import flash.events.*; import flash.net.*; import flash.media.Video; import mx.controls.*; import mx.core.UIComponent; // private var nc:NetConnection; private var stream:NetStream; private var fmsUrl:String; private var flvName:String; private var video:Video; private var loaded_interval:Number; // NetConnection.defaultObjectEncoding = flash.net.ObjectEncoding.AMF0; // public function onCreationComplete():void { nc = new NetConnection(); configureListeners(nc); var videoHolder:UIComponent = new UIComponent(); videoHolder.setActualSize(700, 525); video = new Video(); configureListeners(video); videoHolder.addChild(video); video.x = 0; video.y = 0; fmsUrl = rtmp://localhost/test_video; flvName = testVideo; theBox.addChild(videoHolder); nc.connect(fmsUrl); } / private function configureListeners(dispatcher:IEventDispatcher):void { dispatcher.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurityError); dispatcher.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onAsyncError); dispatcher.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus); dispatcher.addEventListener(ProgressEvent.PROGRESS, onProgress); dispatcher.addEventListener(Event.ENTER_FRAME, onEnterFrame); } / private function connectStream():void { if (stream) stream.close(); stream = new NetStream(nc); configureListeners(stream); video.attachNetStream(stream); stream.bufferTime = 10; stream.play(flvName); stream.client = this; } / private function onNetStatus(event:NetStatusEvent):void { trace(onNetStatus: + event); switch (event.info.code) { case NetConnection.Connect.Success: trace(NetConnection.Connect.Success);
[flexcoders] Custom scrolling with TileList
I have a vertical scroll-only TileList. Is there anyway to: 1) remove the scrollbar, and 2) Use buttons at the top and bottom of the TileList that scroll the list while mouse over? As a test, so far, I have a skinny and short TileList with a bunch of items in it. When you mouseover a button it runs a function with the following code: while (tileListing.verticalScrollPosition 5) { tileListing.verticalScrollPosition = tileListing.verticalScrollPosition + 1; } Unfortunately, this obviously has the following problems: a) The code runs so fast that the list jumps. Is there any way to make the movement slow? b) How can I get the maximum length of the tileListing's dataProvider (i.e. to replace the 5 in the above example). c) In the end, I'd like the scroll to stop based on both the mouseOver and the tileList's dataProvider length. Is there a button.mouseOver == true type of condition? Thanks! - Chris -- 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/
[flexcoders] Is there a simple Cairngorm 2 walkthrough out there?
I realize that Cairngorm isn't exactly intended for an extremely small app, but I am wondering if anyone has seen a very basic tutorial on creating a simple app using Cairngorm. I have read all of the articles out there a couple of times and have a good grasp on the principles of the design pattern, but seem to get bogged down on the structure of an actual app. I would love to find a very simple app that walks through the creation from beginning to end. So, does anyone know of anything or should I start going through the Cairngorm Store again. :) Thanks!!! Joe -- 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/
[flexcoders] XrayLogger for AS3
I'm in the very early stages of getting Xray's connector ported over the AS3 and the first step has been to get the new Logger up and running. So far, it's working great and I've included an OutputPanel.mxml that users can include it in their app if they don't want to use the xray interface ( plus, i've not implemented log level switching with xray's interface yet ). http://mirror1.cvsdude.com/trac/osflash/xray/browser/downloads/connector/flex/XrayLogger_as3_alpha.zip?format=raw screenshot:http://www.rockonflash.com/xray/images/XrayLogger_Flex2_withInterface_0.png some featurues: 1. log level support (debug, info, warn, error, fatal) 2. time stamp 3. Calling method is reported 4. objects are recursed 5. outputs to Xray's interface if you have it running OutputPanel features (not necessary for running logger): 1. runtime log level control 2. Resizeable (drag lower right corner) 3. Window shade by double clicking header of OutputPanel's header area 4. Search Usage:copy com.blitzagency.xray.logger into your classes/src folderif you want to use the OutputPanel (optional):copy OutputPanel.mxml to your src folder or where ever your main app is. Add this line to your app:ns1:OutputPanel id=outputPanel/Add this property to your mx:Application node: xmlns:ns1=*Using it in your app: import com.blitzagency.xray.logger.XrayLog; . public var log:XrayLog; . log = new XrayLog(); log.debug(message:String [, dump:object]); log.info(message:String [, dump:object]); log.warn(message:String [, dump:object]); log.error(message:String [, dump:object]); log.fatal(message:String [, dump:object]);I've included the FlashDevelop project in the zip. I would love suggestions/comments on implementation and features. Right now, it doesn't color code the output based on the log level, but that is something I'm looking into. Anyway, if anyone wants to give it a whirl, I'd really appreciate the feedback,Thanksjpg __._,_.___ -- 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 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] Re: Multiple Screen Application
In Cairngorm you can associate helper classes for views. For instance, I have a package with all of my views, and in that package is a subpackage of helpers. Each view has it's own helper, so MainMenu might have MainMenuHelper as a class, which extends ViewHelper. ViewHelper registers itself with the singleton ViewLocator, so that you can access the logic of any particularly ViewHelper from anywhere in the application. I went further and have each helper implement an interface I call IViewHelper, which has two methods: enter() and exit(), which the SwitchStateCommand executes any code in them upon entering or exiting a screen. This makes me able to have alert windows show up if someone tries to leave a screen without saving their work, for example. I have the views set up like this: Class BaseState extends VBox and has within it: [Bindable] protected var model : Model = Model.getInstance(); This is so I don't need to keep getting the model for each view I design (in case I need to bind any of the fields to a property in the model. Then each of these BaseStates include their helper. e.g., MainMenu.mxml would have: helper:MainMenuHelper id=MainMenuHelper/ The helpers set up like: class MainMenuHelper extends ViewHelper implements IViewHelper Make sense? Brennan --- In flexcoders@yahoogroups.com, Sam Shrefler [EMAIL PROTECTED] wrote: Brennan: Thank you very much. What do you mean by ViewHelper? Does each View in the ViewStack have a viewHelper? Thanks Sam On 8/31/06, dreuimar [EMAIL PROTECTED] wrote: I started out using states, with the current state being bound to a property in the model (using Cairngorm.) Lately, as my application has dozens of screens and different users are privelaged to have certain screens at their disposal, I use a view stack (it's easier on the eyes to program, IMO), and have each state's viewhelper extended to register that given state as a screen object in an arraycollection of available screens. I also have a constants file of screen titles (my menu reflects the title of the current screen.) I register each screen with its static title (pulled from the constants class), and fire off a custom cairngorm event when switching screens. e.g.: CairngormEventDispatcher.getInstance().dispatchEvent( new ScreenSwitchEvent(Constants.MainMenu)); Then I have a class that implements Command and have it do a search in the screen array for any object who's title is Constants.MainMenu. I've found this to be the best way, mainly because I rely on permissions and some screens have read-write access, some only have read, etc. For a smaller application, you could just use states and have a string property in the model called currentState that the currentState of your VBox is bound to. (I say VBox instead of application because I want a menu bar to be at the top of every screen, so the content is loaded into the vbox.) Then switching screens is as easy as calling: model.currentState = Constants.MainMenu Brennan --- In flexcoders@yahoogroups.com, Sam Shrefler sshrefler@ wrote: I'm just looking for an theory overview / suggestions on how to handle multiple screens with nothing in common: For example, i have an application that I'd like to have a menubar on every single screen. After that, i'd have say 5 - 20 totally unrelated screens each with their own display and function. I see on each of those screens where viewStates would come in handy. My question is: Should I make viewStates for every single screen, or would using a viewStack be better? Is there a best practice for an application with multiple screens? Thanks Sam -- 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 -- 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/
[flexcoders] Re: Is this a bug? About Number type.
Thank you very much. That help me a lot. --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: You presumably meant the result should be 23.7, not 23.8. However, getting 23.703 isn't a bug; you'd get the same answer in other languages like Java and C++. The imprecision is because Number in ActionScript (like float in Java and C++) stores a floating-point value as a binary fraction, not as a decimal fraction. These datatypes use binary fractions because that's how current microprocessors store and manipulate floating-point values. Java solves this problem by having a BigDecimal class whjich can store decimal fractions. In that case, computations are slower because it takes many microsprocessor instructions to do a single operation. The current version of ActionScript doesn't have any decimal fraction datatype, but it is under consideration for a future version of the language. The lack of this feaure comes up about once a week, and some participants on flexcoders have discussed the possibiliy of porting BigDecimal or its equivalent to ActionScript. Perhaps you can simply round your results to the precision you need? Take a look at the toFixed() method of the Number class. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of beloved_zhou Sent: Wednesday, August 30, 2006 4:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Is this a bug? About Number type. I am using Flex2.0, and I try to get a result about 3 multiply 7.9, the result should be 23.8, but I got 23.703. Here is a sample code: ?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:TextInput x=76 y=348 id=txt_1 text=3/ mx:TextInput x=291 y=348 id=txt_2 text=7.9/ mx:TextInput x=560 y=348 id=txt_3/ mx:Button x=474 y=348 label=Button click=doIt()/ mx:Script ![CDATA[ private var num1:Number = 3; private var num2:Number = 7.9; private function doIt():void { txt_3.text = String(Number(txt_1.text) * Number(txt_2.text)); trace(num1 * num2); } ]] /mx:Script /mx:Application -- 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] Is FDS is a CGI technology?
Thanks for the response. I guess I should do more homework into knowing servlets before I get too deep into FDS. -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]On Behalf Of hank williamsSent: Thursday, August 31, 2006 1:59 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Is FDS is a CGI technology?FDS sits inside *your* servlet, so you are still using servlets. FDS has (as far as I know) nothing to do with CGI.Regards,Hank On 8/31/06, Mark Lapasa [EMAIL PROTECTED] wrote: Is Flex Data Services a type of CGI-like technology?If I have a Java application, I don't need to use servlets no more for having clients communicate with the application? Thx, -mL __._,_.___ -- 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 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] Re: Is there a simple Cairngorm 2 walkthrough out there?
Not a tutorial per se but this is a great, simple example with well commented code: http://www.jessewarden.com/archives/2006/07/flex_2_webservice.html HTH, Ben --- In flexcoders@yahoogroups.com, g8torjoe [EMAIL PROTECTED] wrote: I realize that Cairngorm isn't exactly intended for an extremely small app, but I am wondering if anyone has seen a very basic tutorial on creating a simple app using Cairngorm. I have read all of the articles out there a couple of times and have a good grasp on the principles of the design pattern, but seem to get bogged down on the structure of an actual app. I would love to find a very simple app that walks through the creation from beginning to end. So, does anyone know of anything or should I start going through the Cairngorm Store again. :) Thanks!!! Joe -- 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] Is FDS is a CGI technology?
Actually, while there are nuances that you can benefit from if you really understand servlets, if you can write java and have POJOs, you can access them in a relatively simple way. Then extending that to using the more advanced features of FDS (like Data Services) really has nothing to do with understanding servlets in particular. In other words, if you know some java, you are in good shape.Regards,HankOn 8/31/06, Mark Lapasa [EMAIL PROTECTED] wrote: Thanks for the response. I guess I should do more homework into knowing servlets before I get too deep into FDS. -Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]On Behalf Of hank williamsSent: Thursday, August 31, 2006 1:59 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Is FDS is a CGI technology?FDS sits inside *your* servlet, so you are still using servlets. FDS has (as far as I know) nothing to do with CGI.Regards,Hank On 8/31/06, Mark Lapasa [EMAIL PROTECTED] wrote: Is Flex Data Services a type of CGI-like technology?If I have a Java application, I don't need to use servlets no more for having clients communicate with the application? Thx, -mL __._,_.___ -- 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 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] Customizing datatip function for 100% bar chart
return Series(e.item.element).displayName; This didn't work for me, but this did: return BarSeries(e.element).displayName; hth, m -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ely Greenfield Sent: Thursday, August 31, 2006 1:27 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Customizing datatip function for 100% bar chart return Series(e.item.element).displayName; Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of j_sevlie Sent: Thursday, August 31, 2006 9:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Customizing datatip function for 100% bar chart Using Flex 2. I have a 100% bar chart that I need help figuring out how to get access to some of the series data for display in a data tip. Here's the scenario: There are 4 regions in the country, each of them gets their own bar in the chart.. - North Region - South Region - West Region - East Region Each bar has 4 individual peices to it, which together sum to 100%: - Used Sales - New Sales - Parts - Accessories What I need is a way to display the name of the grouping (Used Sales, New Sales, etc) inside my datatip. I cannot for the life of me figure out how to do this. Here's the code that I'm working with: - mx:Script ![CDATA[ import mx.charts.HitData; public function dataTipsBarChart(e:HitData):String { /* so far I know how to get the region name, but how do you get the actual displayname of the series that is being rolled over? */ return e.item.region; } ]] /mx:Script mx:BarChart x=10 y=36 width=80% height=124 id=barchartDealers type=100% showDataTips=true dataTipFunction=dataTipsBarChart mx:dataProvider mx:Array mx:Object region=North newsales=50 usedsales=25 parts=15 accessories=10 / mx:Object region=South newsales=40 usedsales=35 parts=10 accessories=15 / mx:Object region=East newsales=65 usedsales=15 parts=10 accessories=10 / mx:Object region=West newsales=60 usedsales=20 parts=15 accessories=5 / /mx:Array /mx:dataProvider mx:verticalAxis mx:CategoryAxis categoryField=region displayName=/ /mx:verticalAxis mx:horizontalAxis mx:LinearAxis minimum=0 maximum=100/ /mx:horizontalAxis mx:series mx:BarSeries displayName=New Sales yField=region xField=newsales mx:fill mx:SolidColor color=0x009900/ /mx:fill /mx:BarSeries mx:BarSeries displayName=Used Sales yField=region xField=usedsales mx:fill mx:SolidColor color=0x00/ /mx:fill /mx:BarSeries mx:BarSeries displayName=Parts yField=region xField=parts mx:fill mx:SolidColor color=0xFF9900/ /mx:fill /mx:BarSeries mx:BarSeries displayName=Accessories yField=region xField=accessories mx:fill mx:SolidColor color=0xFF/ /mx:fill /mx:BarSeries /mx:series /mx:BarChart mx:Legend dataProvider={barchartDealers} x=74.5 y=151 width=522 height=31 fontSize=9 id=barchartDealersLegend/ - Any help with this would be greatly appreciated! I hope that my example was clear enough, it should run on it's own if you cut/paste it into a blank Flex app. -- 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/