RE: [flexcoders] Extending visual custom components
Chapter 2 of the Creating and Extending Flex Components followed by Chapter 7 perhaps? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mahuika1Sent: Thursday, May 04, 2006 9:57 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Extending visual custom components I would like to create a custom component that displays visualcontrols such as labels etc then extend that to display other controlsbeneath the previous ones. Does any one know how I can do this orshould I just have many small components and reuse them in othercomponents? For example..I want to: create a Doc component which contains header and footerdetails. Then create DocA component which extends Doc to also displaytext between the header and footer. Or: create Header and Footer components. Then create DocA which usesHeader and Footer and displays text.Silly example but ideally I would like to extend the component which Ican't seem to do. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Component inheritance -how to add new children to an already inherited component
You can do it with AS3 or mxml but maybe start with the latter. myLogin.mxml: user password stuff here myExtraLogin.mxml: new stuff here. As for lack of documentation, you obviously haven't found the zillion page pdfs. The forests don't stand a chance! From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of iuliubSent: Friday, March 31, 2006 9:12 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Component inheritance -how to add new children to an already inherited component Okay...so the new Flex and AS3.0 are revolutionary.However the available documentation is scarce.Does anyone know how to add children to an inherited component? Let's say , for example , I have al login component, that inherits from a TitleWindow.Furthermore, I want a more complex login panel, that have several additional text fields, and I want it to inherit from my initial login component.Couldn't do it by now.Anyone, I would be grateful!Iuliu -- 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.
RE: [flexcoders] AutoWidth/AutoHeight?
Hi scott, as a matter of course, I have subclassed all the tags. That way, when any defaults or behaviours irritate me, I have a place to fix them. From: Scott Barnes [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 1:49 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] AutoWidth/AutoHeight? I've found that i've been constantly typing width="100%" height="100%"and so on for containers within containers and what not, and havefound it to be tedious task.The thing is though, sometimes i want width="100%" but height to bedefault (ie whatever the height of the movieclip in question)but most of the time i've wanted 100% for both metrics for a typical container.To combat this i put together a buch of custom MXML components thatsimply use the MX built-in ones, but on initialize they simply setupsome default settings (margins, width/height etc)At the same time i have an attribute like autoHeight=false|true whichwill set the height to 100% or don't automatically define the heightso the code looks like:public var autoHeight:Boolean = true;function autoLayout() { if(autoHeight) { height = height || "100%"; }}then when i want to use an autoLayout container i would do this://... Stuff here.Now, does anyone else do something similiar? or have found it arepetitive task? have i overlooked an attribute setting somewhere - (Ihad thought of using CSS but thats not as agile as my autoLayoutcapabilities)-- Regards,Scott Barneshttp://www.mossyblog.comhttp://www.flexcoder.com (Coming Soon) Yahoo! Groups Sponsor ADVERTISEMENT 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 the Yahoo! Terms of Service.
RE: [flexcoders] Class path for component
Presumably in com/test/components with respect to the mxml. If you are using Flex Builder you might need an explicit upload. From: Tom Fitzpatrick [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 11:46 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Class path for component I'm getting an error when I try to instantiate a component using a classpath.In my application tag, I set a class path of xmlns:mk="com.test.components". In the folder com/test/components I have the Pod.as class. When I try to create a component with:I get an error:"The class being compiled, 'Pod', does not match the class that was imported, 'com.test.components.Pod'"This class works fine when I have it in the same directory as the app and invoke it without the classpath abbreviation.Any ideas?Thanks.- Tom
Defining the startup class in FlexBuilder
In Flexbuilder, when I press F6 or ALT/F6, it compiles and executes the file currently being edited. As most of my time seems to be in editing components, is there anyway of specifying the executeable application root without switching to it in the edit window.
RE: [flexcoders] Flex Bug or Not?
i've had something similar when using a mx:XML tag pointing to an external XML file. Flex seemed to want to create classes for all the different node types in the external file. From: Igor Costa [mailto:[EMAIL PROTECTED] Sent: Monday, March 07, 2005 5:13 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Flex Bug or Not? Did you used flex builder?On Mon, 07 Mar 2005 00:52:30 -, gevgelija50 <[EMAIL PROTECTED]> wrote:> > > While attempting to run in Debug mode, I received the following> message:> > 2 Errors found.> > Error generated version of _watcherSetup:260> Branch between 42711 and 75485 around line 1157 exceeds 32K span. If> possible, please refactor this component.> > Error> Branch between 42711 and 75485 around line 1157 exceeds 32K span.> > Any thoughts?> > Thanks, Alex> > > Yahoo! Groups Links> > > > > -- Igor Costawww.igorcosta.comwww.macromedia.com/go/team
RE: [flexcoders] Autocomplete text filed
Was it me or wasthat an empty attachment? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, March 04, 2005 10:00 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Autocomplete text filed Hi,I've attached a file you might like. I've used itfor Flash a while back. dontremember where I got it from but it sits in my class library. It might need tobe "adjusted" to be used with Flexbut its somewhere to start.-ArtQuoting Steven Webster <[EMAIL PROTECTED]>:>> For my current projectI need an autocomplete text field similar to >> google's suggestion.>> If anybody has an idea about how to implement this please drop a line.>> http://www.richinternetapps.com/archives/79.html>> Hope this helps,>> Steven>> --> Steven Webster> Technical Director> iteration::two>> This e-mail and any associated attachments transmitted with it may contain> confidential information and must not be copied, or disclosed, or used by> anyone other than the intended recipient(s). If you are not the intended> recipient(s) please destroy this e-mail, and any copies ofit, immediately.>> Please also note that while software systems have been used to try to ensure> that this e-mail has been swept for viruses, iteration::two do not accept> responsibility for any damage or loss caused in respect of any viruses> transmitted by the e-mail. Please ensure your own checks are carried out> before any attachments are opened.> Yahoo! Groups Links>>>
RE: [flexcoders] datagrid does not display http data
Not sure how fussy Flex is about validXML but your fault and result attributes are in single quotes. Also the HTTPService tag looks unclosed. From: jivankohinoor [mailto:[EMAIL PROTECTED] Sent: Thursday, March 03, 2005 4:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] datagrid does not display http data I try to fill a DataGrid from live XML data over http, but the grid desperately stays empty. The code is : method="GET" protocol="http" resultFormat="xml" url="" href="http://localhost:8080/protocore/getCatalogContents">http://localhost:8080/protocore/getCatalogContents" fault='alert(event.fault.faultstring,"",mx.controls.Alert.OK)' result='alert("Catalog OK","",mx.controls.Alert.OK)'> dataProvider="{catalogContents.result.element}"> Returned XML is like : npar="npar" UNKNOWN1="UNKNOWN1" UNKNOWN2="UNKNOWN2" Status="Status" Anom="Anom" label="label0" /> nloc="944" npar="649" UNKNOWN1="58" UNKNOWN2="" Status="CORRECT" Anom="OK" label="label1" /> I know that the Server part is OK, as I am able to display raw XML code in the following TextArea: I tried the same, with XML compiled statically, and it works : ource="D:\\src\\Flex\\Phoenix-proto\\cataloContents.xml" /> dataProvider="{catalogContentsModel.result.element}"> Help would be greatly needed, I tried many different combinations of returned XML without success (like returning / tags, specifying the object attributes as XML attributes or as XML elements, nothing work) Am I *really* an idiot as I seem to be the only one with this problem.
RE: [flexcoders] Flex + Java Classes (as RemoteObjects) Config Question
Presumably the last s in the folder was just an email typo ;-) {insall-server-root}/FlexProjects/Flex/WEB-INF/classess From: Ben Elmore [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 5:26 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex +Java Classes (as RemoteObjects) Config Question All. Basically I am trying to configure the my flex application to work with some server side java objects (basic pojos) and am getting a 'flashgateway.adapter.NoSuchServiceException' error thrown when I attempt to access it. I have been able to get this working on several different servers but am at a loss to why this one particular setup is causing an issue. I am running my connectivity test with the both a helloWorld java object and the sample java connector that comes with the flex install. This is my environment. Jrun 4.0 (running latest updater) install I have several Jrun servers running each with a couple of apps. For the environment I am trying to set up I have configured a new server (called FlexProjects) and extracted the flex.war file into a directory in that server called 'flex'. I loaded my test java classes (also tried the Cairngorm demo) into the {insall-server-root}/FlexProjects/Flex/WEB-INF/classess directory. Is there something that I am missing in the config of Jrun that is not having the gateway find the classes in that directory (oh, I can confirm that the classes work through a jsp running on that page). Thanks. Ben -- This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any partof it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.
RE: [flexcoders] ViewStack container
Use the change event of the ViewStack and then test the event.newValue for a page number. The sample below toggles between two panels incrementing a label each time. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 12:31 AM To: [EMAIL PROTECTED] Subject: [flexcoders] ViewStack container Hi , I have 3 diff. pages in a ViewStack container. I want to reset some values when one of the page in the viewstack is displayed everytime. Byusing which event or any method or way should I achieve this? -- Regards, Ketan Bengali Multimedia Programmer