[flexcoders] Help--Volume Control
hi..hw to control volume using Hslider...explain with som examples... regards stephen __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[flexcoders] Update Insert via DataServices
If I have list a table in a datagrid using data services in flex 4 how do I update insert or delete in that datagrid/table. Usually I use HTTPServices so have a array collection to work with but there is no array collection this time. all i have is an obj:Object containing the insert or update data?
[flexcoders] Re: Update Insert via DataServices
So is this built into Flex Builder 4 or do I have to download something else? --- In flexcoders@yahoogroups.com, Evan Klein e...@... wrote: You would use the dataservice.addItem() and dataService.deleteItem() methods. Then, if autoCommit=true is not on you'll need to do a dataService.commit() to send these transactions to the server. You'll need this - LCDS Manual: http://help.adobe.com/en_US/LiveCycleDataServicesES/3.1/Developing/index.html http://help.adobe.com/en_US/LiveCycleDataServicesES/3.1/Developing/index.html On Wed, May 26, 2010 at 10:02 AM, Stephen sd_br...@... wrote: If I have list a table in a datagrid using data services in flex 4 how do I update insert or delete in that datagrid/table. Usually I use HTTPServices so have a array collection to work with but there is no array collection this time. all i have is an obj:Object containing the insert or update data? -- Evan Klein
[flexcoders] Channel Disconnected (Stumped!)
Channel Disconnected Before An Acknoledgement was recicved! at createView_clientsResult.token = ... Anyone advise notice something wrong? protected function manageClientData(event:ClientEvent):void { // build client view object to add or update. var obj:View_clients = new View_clients(); obj.ClientId = 0 as int; obj.ClientName = event.clientName as String; obj.ClientContacts = event.clientContacts as String; obj.ClientDate = event.clientDate as Date; obj.ClientAddress1 = event.clientAddress1 as String; obj.ClientAddress2 = event.clientAddress2 as String; obj.ClientCity = event.clientCity as String; obj.ClientCounty = event.clientCounty as String; obj.ClientPostCode = event.clientPostCode as String; obj.ClientPhone = event.clientPhone as String; obj.ClientMobile = event.clientMobile as String; obj.ClientFax = event.clientFax as String; obj.ClientEmail = event.clientEmail as String; createView_clientsResult.token = viewclientsService.createView_clients(obj); } fx:Declarations s:CallResponder id=getAllView_clientsResult/ viewclientsservice:ViewclientsService id=viewclientsService fault=Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail) showBusyCursor=true/ s:CallResponder id=createView_clientsResult/ valueObjects:View_clients id=view_clients/ s:CallResponder id=updateView_clientsResult/ !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations
[flexcoders] Dynamic DropDownList Default Setting Problem
This is a Flex 4 problem. I have dynamically filled a drop down box using PHP Data/Services and wish to set the initial display to the current Engineer. What I have is the value of the EngineerId. I have tried to access the values of the dropdown with no louk either, I feel like I'm getting no where, any help is much appreciated. CREATE VIEW view_engineer AS SELECT EngineerId, EngineerFullName FROM tblEngineer; mx:FormItem label=Name: s:DropDownList width=200 id=dropDownList creationComplete=dropDownList_creationCompleteHandler(event) labelField=EngineerFullName s:AsyncListView id=alvEngineer list={getAllDisp_engineer_fullnameResult.lastResult}/ /s:DropDownList /mx:FormItem
[flexcoders] Re: Dynamic DropDownList Default Setting Problem
There is no ArrayCollection, it is Dynamic? --- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote: --- In flexcoders@yahoogroups.com, Stephen sd_brown@ wrote: This is a Flex 4 problem. I have dynamically filled a drop down box using PHP Data/Services and wish to set the initial display to the current Engineer. What I have is the value of the EngineerId. I have tried to access the values of the dropdown with no louk either, I feel like I'm getting no where, any help is much appreciated. CREATE VIEW view_engineer AS SELECT EngineerId, EngineerFullName FROM tblEngineer; mx:FormItem label=Name: s:DropDownList width=200 id=dropDownList creationComplete=dropDownList_creationCompleteHandler(event) labelField=EngineerFullName s:AsyncListView id=alvEngineer list={getAllDisp_engineer_fullnameResult.lastResult}/ /s:DropDownList /mx:FormItem You'll need to look through the ArrayCollection and get either the index or the actual item with that id so that you can set the selected item/index.
[flexcoders] DropDownList Data Services
I am populating a datagrid with data from database using Zend Data Services, I then select to amend a line of the datagrid using a master detail form. One of the fields is an index to another table and thus I need to use a DropDownList how do I set the drop down list to what the current setting is so I can then present the form for change. mx:FormItem label=Name: s:DropDownList width=200 id=dropDownList creationComplete=dropDownList_creationCompleteHandler(event) labelField=ProductName s:AsyncListView list={getAllDisp_product_nameResult.lastResult}/ /s:DropDownList /mx:FormItem This is how I believe I would read the data for the drop down list, how would I set it to default to a specific setting? - Cryptopus
[flexcoders] Update Datagrid
I have two tables a contract table and a client table. I have one view of the contract joined to the client table. I display the view in a data grid and I provied a detail area for client I then try to update the table and and refresh the datagrid. Fields in the dataGrid from the client do not update. W H Y ? - Stephen
[flexcoders] CallResponder
Is it possible to get feedback when a call reponder has updated a row in the database. I managed to get an addition to work probably because it had to return a key as a result. But update wont return a result so far as I have tried. All their seems to have is ACTIVE, DEACTIVE, FAULT RESULT none of which fires when updating. I can not bind to the datagrid for update as its a join, I can only update a table, when I do I need to know when it has been done so that I can call an update on the join to refresh the datagrid. - Any help? - Stephen
[flexcoders] Can DataGrids multiply columns
I have a dataGrid as bellow and need to have the total of each row be calculated as the quantity and price are typed in. mx:DataGrid editable=true mx:DataGridColumn headerText=Quantity/ mx:DataGridColumn headerText=Price/ mx:DataGridColumn headerText=Total editable=false/ /mx:DataGrid How would I do this? - Stephen
[flexcoders] PHP Data Service
I have copied the getView_ByID function and recoded the copy to filter by a specific field rather than the ID by changing the following... public function getView_heatingByID($itemID) { -to- public function getView_heatingByName($itemID) { $stmt = mysqli_prepare($this-connection, SELECT * FROM $this-tablename where heating_id=?); -to- $stmt = mysqli_prepare($this-connection, SELECT * FROM $this-tablename where heating_name=?) mysqli_stmt_bind_param($stmt, 'i', $itemID); -to- mysqli_stmt_bind_param($stmt, 's', $itemID); ...and the service runs fine as far as the Test goes with in Flash Builder 4's Test Operation panel. -But- The callResponder does not return a ValueObject like it would if I had simply requested it by using service.getView_heatingByID? s:CallResponder id=getView_heatingByNameResult result=callResponder2();/ protected function callResponder2():void { var x:Object = getView_heatingByNameResult.lastResult; view_heating = x as View_heating; } What I should get is... valueObjects.View_heating (@113479e9) [inherited] _115792uid view_heatingRPCDataManager:#:1 _1464461640heating_name Forced Air _1471128022_model _View_heatingEntityMetadata (@11226fb1) not... mx.utils.ObjectProxy (@af3bf29) dispatcher flash.events.EventDispatcher (@af3bf71) listeners null heating_id 1 heating_nameForced Air _id null Can someone explaine how I can get the valueObject as this object can not be force to conform to a valueObject as I have tried with no luck. Thanks for any help recieved, this one is a puzzler! - Stephen
[flexcoders] Re: PHP Data Service
Further to my previous post I have noticed a slight diffrence in the returned data from the service. This object was returned by var_dump($o-getView_heatingByID(2)); and works. object(stdClass)#4 (2) { [heating_id]= int(2) [heating_name]= string(12) Radient Heat } While this object was returned by var_dump($o-getView_heatingByName('Radient Heat')); and does not work? object(stdClass)#3 (2) { [heating_id]= int(2) [heating_name]= string(12) Radient Heat } Whats going on here is my code... public function getView_heatingByName($itemID) { $stmt = mysqli_prepare($this-connection, SELECT * FROM $this-tablename where heating_name=?); $this-throwExceptionOnError(); mysqli_stmt_bind_param($stmt, 's', $itemID); $this-throwExceptionOnError(); mysqli_stmt_execute($stmt); $this-throwExceptionOnError(); mysqli_stmt_bind_result($stmt, $row-heating_id, $row-heating_name); if(mysqli_stmt_fetch($stmt)) { return $row; } else { return null; } }
[flexcoders] Re: PHP Data Service
Data type was not set correctly in Data/Services Solved.
[flexcoders] ViewStack Event
What ViewStack Event Listener is activated when public variables within the view stack become available. I don't fancy using the CreationPolicy=All as it slows the web site down too much. - Stephen
[flexcoders] Updating ValueObjects
I have written a program where you select a record and it is displayed due to the form being bound to the value object, when I update the record it updates in the database okay, but when I re-query it it crashes with the following, cant seem to make head nor tail of it... mx.data::Conflict { cause = mx.data.messages::DataMessage { body = [[heating_name], { heating_id = 2 heating_name = Radient Heat x }, valueObjects::View_heating { heating_id = 2 heating_name = Radient Heat }] clientId = null correlationId = destination = view_heatingRPCDataManager headers = { newReferencedIds = null prevReferencedIds = null } identity = { heating_id = 2 } messageId = BEC62CE9-C4FA-4DB9-19A3-3459879B4269 operation = 3 timestamp = 0 timeToLive = 0 } causedByLocalCommit = false clientObject = valueObjects::View_heating { heating_id = 2 heating_name = Radient Heat } destination = view_heatingRPCDataManager errorID = 0 message = Local item has changes to properties that conflict with remote change. name = Error originalObject = { heating_id = 2 heating_name = Radient Heat x } propertyNames = [heating_name] resolved = false serverObject = heating_id=2 serverObjectDeleted = false serverObjectReferencedIds = { } }
[flexcoders] PHP Data Services - Compound Keys
I have a table in my database that uses compound keys. Apparently Flash Builder 4 does not support compound keys. Does anybody have a work around for this problem?
[flexcoders] Re: Updating ValueObjects
--- In flexcoders@yahoogroups.com, Stephen sd_br...@... wrote: I have written a program where you select a record and it is displayed due to the form being bound to the value object, when I update the record it updates in the database okay, but when I re-query it it crashes with the following, cant seem to make head nor tail of it... mx.data::Conflict { cause = mx.data.messages::DataMessage { body = [[heating_name], { heating_id = 2 heating_name = Radient Heat x }, valueObjects::View_heating { heating_id = 2 heating_name = Radient Heat }] clientId = null correlationId = destination = view_heatingRPCDataManager headers = { newReferencedIds = null prevReferencedIds = null } identity = { heating_id = 2 } messageId = BEC62CE9-C4FA-4DB9-19A3-3459879B4269 operation = 3 timestamp = 0 timeToLive = 0 } causedByLocalCommit = false clientObject = valueObjects::View_heating { heating_id = 2 heating_name = Radient Heat } destination = view_heatingRPCDataManager errorID = 0 message = Local item has changes to properties that conflict with remote change. name = Error originalObject = { heating_id = 2 heating_name = Radient Heat x } propertyNames = [heating_name] resolved = false serverObject = heating_id=2 serverObjectDeleted = false serverObjectReferencedIds = { } } Apparently this is due to loss of data management and can be corrected by going to Data/ServicesDataTypeView_heating and enabling data management of the valueObject on each of the CRUD service operations. Took me 5 hours to figure out by a process of elimination hope it saves some one some time.
[flexcoders] Re: Interface Over Public/Dispatch
Can applications still listen for events triggered by their modules using this method, I am having trouble setting up a listner? - Stephen --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Interfaces create a level of abstraction and define a contract. If properly written they do not have major class dependencies. You always use then in components published from modules since the loading app can't talk directly to the class otherwise the class gets linked into the main app and the module is worthless. In other cases, you don't care what class implements the contract so that other folks can supply alternate implementations that don't require the same base classes. On 2/4/10 2:49 AM, criptopus sd_br...@... wrote: Why would you choose when making a component to create a interface for the component to pass variables to and from it over using say public variables to send data to the component and dispatch and listen events to return data back? I have been using the Lynda.com tutorials and they use public/dispatch and I noticed from the MobileTitleWindow you could use a class interface with get and set? - Stephen -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Re: Interface Over Public/Dispatch
Thanks for that, all sorted out now.
[flexcoders] Dynamic Validation
Take a dropDownList dynamically created and added to a dynamically created HGroup and placed in a static VGroup. See bellow.. -- protected var cohab_hgroup:Array = new Array(); protected var cohab_gender:Array = new Array(); cohab_gender.push(new DropDownList()); cohab_gender[cohab_hgroup.length-1].width = 100; cohab_gender[cohab_hgroup.length-1].prompt = Select; cohab_gender[cohab_hgroup.length-1].dataProvider = gender_list; cohab_hgroup[cohab_hgroup.length-1].addElement(cohab_gender[cohab_hgroup.length-1]); cohab_list.addElement(cohab_hgroup[cohab_hgroup.length-1]); s:VGroup id=cohab_list width=100% clipAndEnableScrolling=true/ --- But now I need to add a validator... protected var cohab_gender_validator:Array = new Array(); cohab_gender_validator.push(new NumberValidator()); cohab_gender_validator[cohab_hgroup.length-1].source = cohab_gender[cohab_hgroup.length-1]; cohab_gender_validator[cohab_hgroup.length-1].property = selectedIndex; cohab_gender_validator[cohab_hgroup.length-1].minValue = 0; cohab_gender_validator[cohab_hgroup.length-1].lowerThanMinError=A choice must be made.; --- I's just not working, anyone with an idea of whats missing? - Stephen
[flexcoders] Data Management
If I create two tables and wish to display attributes from both and I join these tables together and display the results everything is fine. If I then need to change some of this data by updating or deleting from one of the tables (as update and delete wont work for the joined tables) I get a conflict error... Local item has changes to properties that conflict with remote change. instructing that my local joined table (that I read in from the database) is now diffrent from the current state of the table (on the server). This Data Management is getting to be a pain, does anybody know how to get around this proble or simply turn it off. I was hoping maybe their was a way to tell Zend to drop all refrences to the joined table so that their wouldn't be any more errors when the data is re-displayed. - Stephen
[flexcoders] Handling XML
var xml:XML = library shelf book chapterOnce Upon A Time/chapter /book /shelf /library ; var path1:XMLList = xml.shelf.book.chapter; trace(path1: + path1.text()); // output: path1: Once Upon A Time var string:String = xml.shelf.book.chapter; var path2:XMLList = XMLList(xml.shelf.book.chapter); trace(path2: + path2.text()); // output: path1: Why do I get no output with the second trace, it looks like the XMLList() dosn't work, any tips would be great. - Criptopus
[flexcoders] Re: Handling XML
Managed to pop the XML into an XMLList var list:XMLList = XMLList(xml); And then recorsively count through items list = list.decendants(item); Then finaly recover what I was looking for trace(list.toXMLString()); So all good. - Criptopus --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: There is no eval in actionscript. To pass XMLLIst a string it would have to be a string that can be converted to XML, not something that references variables. On 8/17/10 1:40 PM, Stephen sd_br...@... wrote: var xml:XML = library shelf book chapterOnce Upon A Time/chapter /book /shelf /library ; var path1:XMLList = xml.shelf.book.chapter; trace(path1: + path1.text()); // output: path1: Once Upon A Time var string:String = xml.shelf.book.chapter; var path2:XMLList = XMLList(xml.shelf.book.chapter); trace(path2: + path2.text()); // output: path1: Why do I get no output with the second trace, it looks like the XMLList() dosn't work, any tips would be great. - Criptopus -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Overriding Item Background In ItemRenderer Problem.
I can change the Label color but cant change the background color, its anying. Can anybody suggest a solution. s:ItemRenderer xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx autoDrawBackground=true fx:Script ![CDATA[ override public function set data(value:Object):void { trace(value); if (value == Option 7) { labelDisplay.setStyle(color,#FF); //bgRect.left = 10; } else { labelDisplay.setStyle(color,#00); //bgRect.left = 0; } } ]] /fx:Script s:states s:State name=normal / s:State name=hovered / s:State name=selected / /s:states s:Rect id=bgRect includeIn=normal,hovered,selected left=0 right=0 top=0 bottom=0 s:fill s:SolidColor color = #8080FF color.selected=#404080 color.hovered=#5050A0/ /s:fill /s:Rect s:Label id=labelDisplay color=black color.hovered=red color.selected=white left=3 right=3 top=4 bottom=3/ /s:ItemRenderer
[flexcoders] Nested ItemRenderers Problem
I have placed a Label renderer inside of a Drop Down List inside of a Data Grid and I am having trouble makeing the Drop Down List scroll properly. I have included a link to the application which has the attached source code available if you need to look. When I click to drag the list closes for some reason. http://sbrown.myip.org/files/NestedRenders/NestedRenderers.html - Stephen
[flexcoders] Re: Nested ItemRenderers Problem
If I make the DataGrid editable I can select from the drop down and it updates the Data Grid which I can show by scrolling the Drop Down List off the panel and back on and it is still changed at the same time the Drop Down List scroll bars just close the drop down list when you click on them. If I make the Data Grid Un-editable the scroll bars begin to work but the editorDataField does not pass the update into the Data Grid and so it won't remember the changes. editable=true Scrolling fails, Update works editable=false Scrolling works, Update fails - Help!!
[flexcoders] Drop Down List Scroll Bar not working in DataGrid
Here is my code, every time I click on the drop down list scroll bars it closes rather than scrolls. I've not had any answers to this problem. So if you can figure it out their is a heap of kudos for you. Good luck! ** inbed.mxml ** ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx minWidth=955 minHeight=600 s:layout s:VerticalLayout horizontalAlign=center paddingTop=10 gap=10/ /s:layout fx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] protected var acPeople:ArrayCollection = new ArrayCollection( [ { people_id: 1, people_name: 'Stephen', people_family:1}, { people_id: 2, people_name: 'Sheila', people_family:1}, { people_id: 3, people_name: 'David', people_family:1}, { people_id: 4, people_name: 'Ross', people_family:2}, { people_id: 5, people_name: 'Gareth', people_family:2}, { people_id: 6, people_name: 'Joyce', people_family:2} ]); ]] /fx:Script fx:Declarations !-- Place non-visual elements (e.g., services, value objects) here -- /fx:Declarations s:Label text=People And Family Names fontWeight=bold/ mx:DataGrid dataProvider={acPeople} rowCount=3 editable=true mx:columns mx:DataGridColumn headerText=Index dataField=people_id editable=false/ mx:DataGridColumn headerText=First Name dataField=people_name editable=false/ mx:DataGridColumn headerText=Family Name dataField=people_family itemRenderer=render rendererIsEditor=true editorDataField=selection/ /mx:columns /mx:DataGrid /s:Application ** render.mxml ** ?xml version=1.0 encoding=utf-8? s:MXDataGridItemRenderer xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx focusEnabled=true fx:Script ![CDATA[ import mx.collections.ArrayCollection; import spark.events.IndexChangeEvent; public var selection:int; [Bindable] protected var acFamily:ArrayCollection = new ArrayCollection( [ { family_id: 1, family_name:Brown}, { family_id: 2, family_name:Owen}, { family_id: 3, family_name:Johnson}, { family_id: 4, family_name:Harding}, { family_id: 5, family_name:Manson}, { family_id: 6, family_name:Philips}, { family_id: 7, family_name:Hedge} ]); protected function dropdownlist1_changeHandler(event:IndexChangeEvent):void { selection = event.newIndex; } ]] /fx:Script s:DropDownList dataProvider={acFamily} labelField=family_name selectedIndex={int(dataGridListData.label)} change=dropdownlist1_changeHandler(event) width=100% top=2 bottom=2 left=2 right=2/ /s:MXDataGridItemRenderer
[flexcoders] How would you do this?
The Kentucky Post is going paperless. They've decided to cover prep school sports as their trial for their new online editions. See the link below for a demo of the new concept. http://kypostpreps.com/ We think they should use Flex to build this and the supporting CMS. What do you think? Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Tricky Flash Form Question
Mehdi, Agha wrote: I have a CF Flash Form, which when I hit submit does a little validation on form fields using ActionScript before it should submit the form. The validation is working great except that I can't submit it using AS. I have tried calling JS from AS and submitting the form through that but that's not working either. My guess is that since flash form is converted into a swf, it doesn't work like traditional document.form.submit(); action. Sorry for posting CF Form questions here. What should I do? In flash forms you have a specific custom action script function called submitForm() that will do this for you. Depending on where you call it from, ie. from within a defined function, you may have to prefix it with _root. Check out this URL in the MM livedocs regarding Custom Actionscript in CFForm : http://snipurl.com/CFFormCustomAS Regards Stephen Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Flex Beginner
Hi All, I am doin some RD on flex intergration with J2EE. I vesome doubts. * Howdo Inavigate from one mxml page to another.. feature similar to that of RequestDispatcher or do you any alternate approach. * Is there any framework kindoff for intergrating Flex with J2EE application. * What is the best practice to communicate with J2EE application like should I opt for remoteobject or httpService or webService. * Any recommendation on good books for Flex intergration to J2EE. Please guide me. Many thanks in advance. Jerry Stephen Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. -- 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] Flex Beginner
Many thanks Steven, Your inputs was very valuable for me to proceed forward. I m workin with your framework right now for my prototype. But Still, I have trouble stuff gettin inside my head.. the concept of thick web client and gettin rid of the request/response paradigm... * Should I try to fit in my whole application in one mx:application and render appropriately..?OR *Should I make you use of jsp or html andlink different mxml application (modules/pages)?. * Will it not make page loading slow and hit performance?. -many thanks and regards Jerry Stephen PS: I feel guilty of askin too many question. But.. :-) Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort. -- 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] Re: How to implement custom drawing for selected list items?
Hi Tobias, There are a few examples in doc for implementing an interface in MXML. You can find one in the Creating Advanced MXML Components chapter of the Creating and Extending Flex Components book, and another in the Working with Cell Editors in the Developing Flex Applications book. Both books are available here: http://labs.macromedia.com/wiki/index.php/Flex:Release_Notes#Beta_1_docu mentation Stephen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tobiaspatton Sent: Monday, March 13, 2006 11:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to implement custom drawing for selected list items? Hi Manish. I never knew about the implements tag for MXML components. It seems obvious now, but I never saw it mentioned in documentation or example code. My custom selection behavior is mostly working now. I've got one anomaly that I need to track down. If it starts looking like a bug, I'll post a follow-up. Thanks again for your help. It's nice to have a mailing list with representatives from Adobe that are so repsonsive. Tobias. --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 3/11/06, tobiaspatton [EMAIL PROTECTED] wrote: I take this to mean that my VBox-based list item renderer should implement this interface, but I don't know how to accomplish this. If my component were an AS file, it would be simple. But how can an MXML component implement an interface? Simply use the implements attribute: VBox implements=mx.controls.listClasses.IDropInListItemRenderer ... /VBox Or you can just reference the DataGrid directly from your item renderer's code (there's no need to implement this interface). Manish -- 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] Flex2 documentation - FlexEvent.DATA_OBJECT_CHANGED
FlexEvent is a class in mx.events. I believe that it is new for Beta 2, so are you using the Beta 1 doc with Beta 2 bits? Stephen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of thunderstumpgesatwork Sent: Thursday, March 16, 2006 11:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2 documentation - FlexEvent.DATA_OBJECT_CHANGED Hello Flex Team! I've noticed the IDropInListItemRenderer documentation (and classes that implement it) is not up to date (or just not correct) as the they reference a FlexEvent.DATA_OBJECT_CHANGED. FlexEvent doesn't appear to exist at all. Is this just the Event class? if so, is the DATA_OBJECT_CHANGED constant defined somewhere else? For now I'm just using: this.dispatchEvent(new Event(dataObjectChanged)); cheers, Thunder -- 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] Re: Flex2.0 Beta BUG: cellRender/cellEditor
You can also see an example of an MXML cell renderer that implements an interface here: http://livedocs.macromedia.com/flex/20beta1/docs/1102.html Stephen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tobias Patton Sent: Thursday, March 16, 2006 1:36 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Flex2.0 Beta BUG: cellRender/cellEditor You need to put: implements=mx.controls.listclasses.IDropInListItemRenderer in the declaration of your MXML component. Tobias. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of t_msreddy Sent: Thursday, March 16, 2006 10:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex2.0 Beta BUG: cellRender/cellEditor I not implementing a cellRenderer as AS class instead i do it in the mxml. In mxml I have set and get listData methods. I no where specify that I am implementing the interface. Ss it not implicit in MXMLs that if it has set and get listData methods that it is implementing the IDropInListItemRenderer interface? Creating a cellrenderer in AS is a big mess, which I want to avoid. Can you please tell me how can i implement a interface in mxml? --- In flexcoders@yahoogroups.com, thunderstumpgesatwork [EMAIL PROTECTED] wrote: I have implemented this interface in Beta1 and it works just fine for me... did you specify implements IDropInListItemRenderer in your class declaration? For example, mine looks like this: public class PivotTableCellRenderer extends mx.containers.HBox implements IDropInListItemRenderer The rest (the getter/setter methods) were a cut and paste from the docs with the exception of TWO things... the internal variable in the documentation has two underscores (__listData vs _listData) I make mine all use one underscore. I believe that is better practice. Also, the documentation references FlexEvent.DATA_OBJECT_CHANGED which doesn't exist, so I've just called it this way: this.dispatchEvent(new Event(dataObjectChanged)); Hope this helps... I always hate the It works for me answer, but it does =) good luck, Thunder --- In flexcoders@yahoogroups.com, t_msreddy t_msreddy@ wrote: So I understand that editorProperty and cellEndEdit are mutually exclusive. They both do the same but for complicated stuff we have to use cellEndEdit event hook. But the bug is really in the cellRenderer listData object which is never set. When the datagrid is rendered for the first time, it cannot depend on cellEndEdit. It will depend on dataObject in cellRenderer to render values. And since dataObject cannot help in getting the cell indices, we need listData. And the documentation says that the cellRenderer has to implement IDropInListItemRenderer interface. But it looks like this set and get methods are never called and so my listData object is always null. --- In flexcoders@yahoogroups.com, Stephen Gilson smgilson@ wrote: There is an example of returning multiple results from a cell renderer in the Beta 1 doc at: http://livedocs.macromedia.com/flex/20beta1/docs/1110.html Basically, you have to handle the cellEndEdit event, extract the data from the cell editor, and write it directly to the control. Please let me know if this example is helpful. Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of t_msreddy Sent: Thursday, March 16, 2006 9:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2.0 Beta BUG: cellRender/cellEditor I have posted this question many times in the group, but this time I want to put it very clearly so that people notice this problem The BUG is if you cellRenderer implements IDropInListItemRenderer (where you implement set and get listData methods, refer http://livedocs.macromedia.com/labs/1/flex/langref/index.html? mxml-tag-d etail.htmlmxml-tags.html), its set and get listData methods are never invoked. So you cellRenderer's listData local var is always null. There are couple of issues here. The problem on hand is related to cellRenderer/cellEditor for a DataGrid. I really see no value in editorProperty attribute in datagrid, becuase most of times when you implement a cellRenderer/cellEditor it will have more than one editable property. So what will you set the editorProperty. They dont talk about this in the documentation. They only talk about simple examples which has only one editable property. Manish suggested that we use a composite label of all the editable properties in cellRenderer to set to the editorProperty. I am not sure how this works. When the datagrid sets the editorProperty, it will set the composite label and how does the cellRenderer know how to split this label to set the values to appropriate textInput
RE: [flexcoders] How to create new custom Style in custom component?
Sure, there is a chapter on this topic in the Creating Components book at: http://livedocs.macromedia.com/labs/1/flex20beta2/1813.html Stephen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stanislav Zayarsky Sent: Thursday, March 23, 2006 11:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to create new custom Style in custom component? Hi FlexCoders, I'm wondering how I can create new custom style in my ActionScript Component? And how to use it with StyleManager? Can anybody point me to documentation where this topic is described? Best regards Stanislav -- 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] How to create new custom Style in custom component?
That will work for Flex 2.0 only. Stephen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stanislav Zayarsky Sent: Thursday, March 23, 2006 12:13 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to create new custom Style in custom component? Thanks Stephen, I suppose it will work with Flex 1.5 too? Best regards Stanislav On 3/23/06, Stanislav Zayarsky [EMAIL PROTECTED] wrote: Thanks Anatole, This helps! Best regards Stanislav On 3/23/06, Anatole Tartakovsky [EMAIL PROTECTED] wrote: I believe the simplest way is to look in the generated code - it gives you the better understanding on both code and timing. The code would go like this: .. var style:CSSStyleDeclaration; style = StyleManager.getStyleDeclaration(.yourStyleName); if (!style) { style = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(.yourStyleName, style, false); } if (style.factory == null) { style.factory = function():void { this.paddingBottom = 0; this.paddingTop = 0; }; } Hope this helps, Anatole Tartakovsky - Original Message - From: Stanislav Zayarsky To: flexcoders@yahoogroups.com Sent: Thursday, March 23, 2006 11:29 AM Subject: [flexcoders] How to create new custom Style in custom component? Hi FlexCoders, I'm wondering how I can create new custom style in my ActionScript Component? And how to use it with StyleManager? Can anybody point me to documentation where this topic is described? Best regards Stanislav -- 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. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. - Original Message - From: Stanislav Zayarsky To: flexcoders@yahoogroups.com Sent: Thursday, March 23, 2006 11:29 AM Subject: [flexcoders] How to create new custom Style in custom component? Hi FlexCoders, I'm wondering how I can create new custom style in my ActionScript Component? And how to use it with StyleManager? Can anybody point me to documentation where this topic is described? Best regards Stanislav -- 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. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- 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] Formatting cells in datagrid
Is this data entered by the user? There is an example in the doc of a custom item editor that uses the NumberFormatter with a DataGrid control to format data entered by the user. You can see it here: http://livedocs.macromedia.com/labs/1/flex20beta2/1131.html Otherwise, the doc on item renderers should show you what you need to know to create a custom item renderer that just formats the data: http://livedocs.macromedia.com/labs/1/flex20beta2/1118.html Stephen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Torben Nielsen Sent: Sunday, March 26, 2006 3:07 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Formatting cells in datagrid Hi Nicolas, I have number values like 8, 7.567 or 3.54 that I would like to format so they all have 3 decimals like this: 8.000, 7.567 and 3.540 I try to do this with the number formatter, but I can't make it work. I hope that makes it clearer for you. Thanks. Best regards. Torben Nielsen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nicholas Lansbury Sent: venerdì 24 marzo 2006 23.35 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Formatting cells in datagrid hi torben you don't say what it is you are trying to format but I expect you need to use a cell renderer. you then reference the cellrenderer from your datagridcell. hth Torben Nielsen wrote: Hi, I have studied the documentation on the datagrid, but have been unable to find any usefull information about how to format the values of a datagrids cells. I found some information about the NumberFormatter, but I run into trouble when I try to use it on my datagrid. I hope some of you could give me a heads up on how to achieve this. Thanks. Best regards. Torben Nielsen -- 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 http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service 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 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 -- 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] Do we submit corrections to Livedocs
Please submit them using the "Add Comment" button on each Livedocs page. Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manuel Saint-VictorSent: Thursday, March 30, 2006 7:11 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Do we submit corrections to Livedocs Is there a place to submit errors that we come across in the Livedocs? Is it helpful at all if we submit errors when we come across them or is that someone's job which we should just leave them alone and let them do? Mani -- 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] Flex2 :: Documenting :: Effects
There is an Effect metadata tag in the code, like a Style or Event metadata tag. Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael SchmalleSent: Friday, March 31, 2006 10:24 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex2 :: Documenting :: Effects Hi,I'm writting an as3/mxml documenter;Would anybody from Adobe care to tell me how you document your effects in you source code? I need to know so I can parse them. IE Styles, Events are obvious becasue they have meta data tags with comments. I have already got this working.I just need to know if you actually put a declaration in your code or is it some database thing? Or is it a tag in a doc comment above a method, or tied to an event description?This would help me greatly!Peace, Mike-- What goes up, does come down. -- 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] Developing Flex Book Example not working in Flex 2 Beta 2
Can you be more specific on the code that you are trying? What section or page in the book is it in? Thanks, Stephen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sof4real03 Sent: Friday, April 21, 2006 1:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Developing Flex Book Example not working in Flex 2 Beta 2 I'm trying to use a similar function as in Chapter 8 of the flex book regarding Forms. In the chapter, we create a base custom component that extends the Form component. We then use that base custom component to make the individual child forms which will be the different panes in the accordian component. When I apply this in Flex 2 Beta 2, the player gives me an error that says: Error: Multiple sets of visual children have been specified for this component (base component definition and derived component definition) Any insight? -- 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 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] Re: Developing Flex Book Example not working in Flex 2 Beta 2
That is the Developing Rich Clients with Macromedia Flex book which was written for Flex 1.0. You should look at the Flex 2.0 documentation, including the migration guide, if you want to try to get that example working. Validators have changed quite a bit since Flex 1.0. Stephen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sof4real03 Sent: Saturday, April 22, 2006 9:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Developing Flex Book Example not working in Flex 2 Beta 2 Sure it's Chapter 8: Validating Form Driven Applications, page 192. I'm trying to build the ValidatingForm.mxml base component. I then will use that base component to create each of the child forms that will eventually be children of the accordian. Any insight? --- In flexcoders@yahoogroups.com, Stephen Gilson [EMAIL PROTECTED] wrote: Can you be more specific on the code that you are trying? What section or page in the book is it in? Thanks, Stephen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sof4real03 Sent: Friday, April 21, 2006 1:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Developing Flex Book Example not working in Flex 2 Beta 2 I'm trying to use a similar function as in Chapter 8 of the flex book regarding Forms. In the chapter, we create a base custom component that extends the Form component. We then use that base custom component to make the individual child forms which will be the different panes in the accordian component. When I apply this in Flex 2 Beta 2, the player gives me an error that says: Error: Multiple sets of visual children have been specified for this component (base component definition and derived component definition) Any insight? -- 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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex 2.0 b2: List, itemEditEnd event
If you have Beta 3, you can see an example in the doc here: http://livedocs.macromedia.com/labs/1/flex20beta3/0886.html Stephen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin Sent: Saturday, April 29, 2006 10:45 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Flex 2.0 b2: List, itemEditEnd event If the item was null we didn't do anything to create the item. The DataGrid doesn't know how to create a new item of your class so it may have just filled in the itemRenderer without doing anything. This allows you to create the object yourself, which you should probably do in the itemEditBeginning event. You'd get the information as to where the thing is about to be created and if it's null you'd go ahead and create an empty object and make sure that the it gets put into your dataProvider. I'm not sure if it will work, but I'm assuming otherwise we'd throw errors for the value being null. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tyombria Sent: Friday, April 28, 2006 1:14 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 2.0 b2: List, itemEditEnd event Hi, all. i have a problem with itemEditEnd event. How can i get data was being entered? see the code: someList.addEventListener( ListEvent.ITEM_EDIT_END, onItemEditEnd ); ... ... private function onItemEditEnd( event : ListEvent ) : void { var itemRenderer : IListItemRenderer = event.itemRenderer; trace( itemRenderer.data ); // outputs null // (row i've edited // was null before) trace( someList.dataProvider ); // outputs, for example: 1,2,,5 // although between rows with // data '2' and '5' // i've entered, for example, '8' // and i can see it in list. } -- 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 -- 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] Re: problems with ApplicationControlBar ...
borderStyle is not listed as a valid style of ApplicationControlBar. Stephen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani Sent: Thursday, May 11, 2006 1:31 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: problems with ApplicationControlBar ... On 5/11/06, bobpardoe1959 [EMAIL PROTECTED] wrote: If you set the borderstyle to applicationControlBar it all works as expected, set the borderstyle to default and you get a black background, set it to solid and the colour is blue in my case Setting borderStyle on ApplicationControlBar is not supported. What do the docs say? Yahoo! Groups Sponsor ~-- Get to your groups with one click. Know instantly when new email arrives http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- 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] SWFLoader Issues
There are a couple of examples in the doc that might help: http://livedocs.macromedia.com/flex/2/docs/0543.html http://livedocs.macromedia.com/flex/2/docs/0975.html Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexnewbie06Sent: Wednesday, July 12, 2006 7:25 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] SWFLoader Issues Does anyone have any experience using SWFLoader to load SWF in Flex APP? Specifically, maniputlating the SWF.Thanks. __._,_.___ -- 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] ActionScript 3: Has anyone been using the new Tween Class
There are a few examples using Tween in the doc starting here: http://livedocs.macromedia.com/flex/2/docs/1781.html Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of efeminellaSent: Tuesday, July 11, 2006 3:33 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] ActionScript 3: Has anyone been using the new Tween Class I was wondering if anyone had any quick examples of how to use the newTween class APIThanks in advance,Eric Feminella __._,_.___ -- 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] Public list of open issues, available?
You should probably start with the releases notes: http://www.adobe.com/support/documentation/en/flex/releasenotes.html Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Weyert de BoerSent: Wednesday, July 19, 2006 8:02 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Public list of open issues, available? I am curious if anyone know a public list all open issues regarding to Flex and Flash both ont he Windows and Macintosch platform. Lately I am hitting strange things in Flash or Flex while I would love to know if this is a (common) bug or not.If anyone know such thing please let me know, I think such list will help really well.Yours,Weyert __._,_.___ -- 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] Flex2: Binding from actionscript
Hi, bindSetter() might not be the best name of that method. It could really be called bindFunction() because you are specifying a function to be called, not a real set method. If you have a real set method, use bindPropety() and specify the property name defined by the set method. You can see examples here: http://livedocs.macromedia.com/flex/2/docs/1043.htmlhttp://livedocs.macromedia.com/flex/2/docs/1044.html Here's an example using bindSetter(): ?xml version="1.0"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" mx:Script![CDATA[ import mx.binding.utils.*;import mx.events.FlexEvent; !-- Event listener to configure binding with a setter. --public function mySetterBindingInline(event:FlexEvent):void {var watcherSetter:ChangeWatcher = BindingUtils.bindSetter(function(v:String):void { taSetter1.text = v}, tiSetter1, "text");}// Set method. public function setMyString(val:String):void {taSetter2.text = val; }!-- Event listener to configure binding with a setter. --public function mySetterBinding(event:FlexEvent):void {var watcherSetter:ChangeWatcher = BindingUtils.bindSetter(setMyString, tiSetter2, "text");}]]/mx:Script mx:Panel title="My Application" paddingTop="10" paddingBottom="10"paddingLeft="10" paddingRight="10" mx:Label text="Bind Setter using inline setter"/mx:TextInput id="tiSetter1" text="Hello Setter" /mx:TextArea id="taSetter1" initialize="mySetterBindingInline(event);"/ mx:Label text="Bind Setter using setter method"/mx:TextInput id="tiSetter2" text="Hello Setter" /mx:TextArea id="taSetter2" initialize="mySetterBinding(event);"/ /mx:Panel/mx:Application From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of AlexSent: Wednesday, July 19, 2006 5:45 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex2: Binding from actionscript Hi all,Im trying to translate an mxml binding tag to actionscript :I got this mxml tag:mx:Binding source="model.podManager.getPod( mypodId ).destroy" destination="handleDestroy" /and its setter function :private function set handleDestroy( destroy:Boolean ): void {// some code}This works 100%. Im now trying to implement this binding in actionscript. I have tried things like:BindingUtils.bindSetter( handleDestroy, model.podManager.getPod( mypodId ), "destroy", false );and the setter function defined identically and it doesnt compile. It complains about the "set" in the setter function. Removing the "set" keyword makes it compile but the binding never fires and the function is never executed.What am I doing wrong? How can I make this work? Is there any working example on implementing a binding to setter function in actionscript ?I need expert help :)Thank you all 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 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] Adobe Resources
You can access all of the doc, in all available formats, from here: http://www.adobe.com/support/documentation/en/flex/ Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Hindman, JeffSent: Monday, July 17, 2006 3:37 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Adobe Resources Is there a PDF available of this doc to download? Thanks -- -- Jeff Hindman -Original Message-From: JesterXL [mailto:[EMAIL PROTECTED]Sent: Monday, July 17, 2006 11:54 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Adobe Resources This one works for me:http://livedocs.macromedia.com/flex/2/langref/index.htmlNot you?- Original Message - From: "flexnewbie06" flexnewbie06@yahoo.caTo: [EMAIL PROTECTED]ups.comSent: Monday, July 17, 2006 2:26 PMSubject: [flexcoders] Adobe ResourcesI just need to say it seems that every page I need to access on the Adobe livedocs is missing...this is very frustrating. Sorry folks, needed to see if others are experiencing this also.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 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 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] textInput autocommit?
focusOut is an inherited event. If you expand the list of inherited events, you will see it. Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ryan harlinSent: Friday, July 28, 2006 11:33 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] textInput autocommit? wow. I feel really silly. The language reference forthe textInput control doesn't mention focusOut. Itonly mentions 4 things under the events section: change, dataChange, enter, and textInput.But you're right. focusOut works like a charm. *blush*--- sinatosk [EMAIL PROTECTED]com wrote: have you tried "focusOut" event? http://livedocs.macromedia.com/flex/2/langref/flash/display/InteractiveObject.html#event:focusOut On 28/07/06, ryan harlin [EMAIL PROTECTED]com wrote: I posted a similar question with more explanation but I'll simplify since I probably bored people away from answering: How do I get a textInput field to autocommit to my data source (FDS)? On leaving the field I want the changes to update the database but I can't seem to figure it out. I can get it work on pressing the enter key but not upon losing focus. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.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 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] Custom containers in Flex 2
There is an example in the Creating Components book of creating a subclass of VBox that might be useful: http://livedocs.macromedia.com/flex/2/docs/1737.html Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jgraham_usSent: Wednesday, August 23, 2006 9:20 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Custom containers in Flex 2 Any tips, tutorials or examples on creating custom containers anyone can point me to? Looks like the main methods to override are updateDisplayList() and measure().Anything else?Basically I am looking at doing some sort of canvas then implementing an autolayout feature for it. __._,_.___ -- 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] How to assign NetStream to VideoDisplay component?
Hi, There is an example in the VideoDisplay controldoc showing how to connect to FMS: http://livedocs.macromedia.com/flex/2/docs/0546.html I'm not sure if this is exactly your situation, but it might get you started. Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ?? Sent: Friday, August 25, 2006 5:27 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] How to assign NetStream to VideoDisplay component? Hi all I have Flex application which connects to FMS 2 and retrieves NetStream. How can I use VideoDisplay or other resizable component instead Video object for displaying media? Thanks Mozilla By __._,_.___ -- 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: loading whole Application
Were you not able to find this information in the API guide: http://livedocs.macromedia.com/flex/2/langref/ Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yaagcurSent: Tuesday, August 29, 2006 7:46 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: loading whole Application As a side note, is there anywhere in the documentation that defaultscan be found. Not just for things like this but for component colors etc.--- In [EMAIL PROTECTED]ups.com, "Tracy Spratt" [EMAIL PROTECTED] wrote: ViewStack and Tabnavigator have creationPolicy="none" by default. You can set this to "all" and all the children will be instantiated when the app first loads.Be aware that this may degrade your user's experience by causing the app to load slowly. There are instanitation methods the give you more granular control over the children's rendering. Tracy From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of arnold_charming Sent: Monday, August 28, 2006 12:20 PM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] loading whole Application Hi! How to load the whole application? I'm asking this because I'm using sevral viewstack and it is evident that the screens have to be loaded every time. __._,_.___ -- 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] checkCellRender Validation
Hi Valy, In Flex 2, there was an issue with the reason property of the DataGridEvent and ListEvent class not being set properly when you change cell focus. Which example is this? The page you mention takes me to a page with no example on it. Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Valy SivecSent: Tuesday, November 07, 2006 1:18 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] checkCellRender Validation Hello flexcoders,I've spent the last few hours trying to validate a cell on a editable datagrid without any luck. Do you have any example?. The example from the adobe docs doesn't work :(. It seems that preventDefault() always works for tab but not for the mousehttp://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0857.html#230761Any help is greatly appreciated,Thanks,Valy Get your email and see which of your friends are online - Right on the new 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 SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] Error in Flex 2.0.1 MX: States Example
Hi, Can you be more specific as to which example it was? In which book or section of the doc did you find it? Thanks, Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of djSent: Tuesday, November 07, 2006 1:58 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Error in Flex 2.0.1 MX: States Example The example from the documentation gives me an Actionscript error:Severity Description Resource In Folder Location Creation Time Id2 Type was not found or was not a compile-time constant: states. [Generated code (use -keep to save): Path: states-generated.as, Line: 304, Column: 14] states November 7, 2006 11:00:15 AM 11409 __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] checkCellRender Validation
Hi Valy, This issue will be fixed in the upcoming Flex release. I'm not aware of a workaround, but maybe someone else in the group had come up with one. Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Valy SivecSent: Tuesday, November 07, 2006 2:27 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] checkCellRender Validation Hi Stephen,Sorry, didn't realize that the page was part of the frame... Here is the document I was referencing: http://livedocs.macromedia.com/flex/2/docs/0867.htmlThe ! tasks I have seems pretty basic, have a grid with multiple columns and only 2 columns should be editable. I want to be able validate the cell content at edit. As you said the reason property of the DataGrid event doen't work correctly and seems that I have ran out of luck tryingDo you have any work around? Any advice?I'm kinda stuck right nowThank you for the message.Valy - Original Message From: Stephen Gilson smgil! [EMAIL PROTECTED] e.comTo: [EMAIL PROTECTED]ups.comSent: Tuesday, November 7, 2006 1:24:16 PMSubject: RE: [flexcoders] checkCellRender Validation Hi Valy, In Flex 2, there was an issue with the reason property of the DataGridEvent and ListEvent class not being set properly when you change cell focus. Which example is this? The page you mention takes me to a page with no example on it. Stephen From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Valy SivecSent: Tuesday, November 07, 2006 1:18 AMTo: [EMAIL PROTECTED] ups.comSubject: RE: [flexcoders] checkCellRender Validation Hello flexcoders,I've spent the last few hours trying to validate a cell on a editable datagrid without any luck. Do you have any example?. The example from the adobe docs doesn't work :(. It seems that preventDefault( ) always works for tab but not for the mousehttp://livedocs. macromedia. com/flex/ 2/docs/wwhelp/ wwhimpl/common/ html/wwhelp. htm?context= LiveDocs_ Partsfile=0857. html#230761Any help is greatly appreciated,Thanks,Valy Get your email and see which of your friends are online - Right on the new 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 SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Dynamic text in buttons
Cool, that's great for languages, but we are also thinking about when we create an application, which we sell to different clients and each one of those may what to use different text. For example a button which says Add New Member of Staff a client may want this to say Add New User. Ideally we would just want to make a change in a database to change these kind of things instead of recreating the entire application. On 24/11/06, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 24 November 2006 16:01, stephen50232 wrote: Is it possible and if so how, to dynamically name buttons, label and text in general for a Flex app. Especially if you want to create a mulit-language app where all the text has to be changed at the click of a button. Have a look at resource bundles in the docs. -- Tom Chiverton Helping to widespreadedly envisioneer open-source 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
[flexcoders] Flex and CF (or how ActionScript is making me want to cry)
Hi, I'm trying to get my head around using Flex with ColdFusion, but I'm really getting stuck with how Flex works with CF. I'm trying to create a application which has several forms in which the user enters, save and update user details, simple stuff really. I can create the CF code (using DAO's, gateways and Beans. But linking the methods in my CF to Flex is melting my brain. Every example I've seen says it easy, and then uses tons of ActionScript, which I get lost in. SO what's the basic steps in linking CF and Flex, are they: 1. Create your CF code (DAO's, Bean's and Gateways) 2. Create your flex layout 3. Call the CF Gateway using mx:RemoteObject 4. Then link the results of the methods to the layout (this is the bit I'm lost at, passing data back and forth to CF methods) Any help will be great and stop me running down the road screaming. Thanks Stephen
RE: [flexcoders] validation for form reset
Since validators do not retain state, you do not have to disable/enable them, just set the errorString property of the associated control to '', as in: name.text=''; name.errorString=''; Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of relisanhard52 Sent: Sunday, November 26, 2006 12:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] validation for form reset Hi I am having a form whose fields i can validate without any issues. I need to have an option of reset. In my reset, i have private function reset():void { nameValidator.enabled= false; name.text=''; nameValidator.enabled= true; } This works fine when the user has input some text in name field and then resets it. But when user clicks reset without having entered in textinput, it shows the red outline with the error message on that field. I have pasted code above for just one field, obviously I have many other fields in the form. Please advise how to successfully reset form, no matter if the user has input text in field or not. Regards Husain
RE: [flexcoders] How i can acces to other component of SWF loaded file?
This won't answer all of your questions, but the doc has an example of using the SWFLoader control to load a SWF and then interact with it: http://livedocs.macromedia.com/flex/2/docs/0543.html SMG From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, December 06, 2006 8:14 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How i can acces to other component of SWF loaded file? X-IPI Cienfuegos-MailScanner: Found to be clean X-IPI Cienfuegos-MailScanner-From: [EMAIL PROTECTED] mailto:odiel%40ipicfg.rimed.cu Hello. I'm a novice in Flex world. My first application that I working is an intranet. I'm using RemoteObject tech with php and SabreAMF, it work fine. My implementation are a first page with login window, then if you can login, other SWF file are loaded from server and inside of the file others SWFs, the modules of application load dinamically. I have some doubts about how load SWFs dinamycally, how (best way) create SWFLoader and load other modules, and how interact with components inside of the other SWF file. Best regards. -- Este mensaje ha sido analizado por MailScanner en busca de virus y otros contenidos peligrosos, y se considera que está limpio. MailScanner agradece a IPI Cienfuegos por su apoyo. Nodo de Comunicaciones del IPI Cienfuegos
RE: [flexcoders] customising preloader
There is an example in the doc starting here: http://livedocs.macromedia.com/flex/2/docs/0647.html Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Giles Roadnight Sent: Thursday, December 14, 2006 11:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] customising preloader Hi All I've been trying to create a custom preloader for my flex app. I want to keep the DownloadProgressBar object on the screen when the app has finished loading and initialising and then load my own xml configuration file. I've been trying to extend the DownloadProgressBar class and had a look at extending the prelaoder class but didn't get very far. Can anyone point me in the right direction? I did find one example that replaced the prelaoder with an image but I couldn't alter this to what I want. I also tried to create my own DownloadProgressBar object and use it to display progress of a load after the app has finished initialising but this didn't work either. Unless I can get it to work I'll have to just create my own popup and load the xml once hte app has initialised but I'd rather it all happens with the 1 popup. Many Thanks. Giles Roadnight
RE: [flexcoders] Creating Events
There is a chapter in the Creating Components book on this topic: http://livedocs.macromedia.com/flex/2/docs/1640.html Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John C. Bland II Sent: Thursday, December 14, 2006 11:02 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Creating Events Here is a custom event class. Just change LevelEvent to whatever you want and the public var level to whatever custom data you want/need. But...you only need this if you need to pass some sort of data with your event. You could easily do dispatchEvent(new Event(myEventName)) and it'll work fine. package events{ import flash.events.Event; public class LevelEvent extends Event{ public var level:Object; public function LevelEvent(level:Object, type:String, bubbles:Boolean=false, cancelable:Boolean=false){ super(type, bubbles, cancelable); this.level = level; } public override function clone():Event{ return new LevelEvent(level, type); } } } On 12/14/06, marloscarmo2004 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I need create a personalized event in my class in AS3. In AS2 I use the dispatchEvent comand. this.dispatchEvent( { type : onResult, target : this, data : result_arr } ); How do I do in AS3? See my code below. package as3.db { import flash.net.NetConnection; import flash.net.ObjectEncoding; import flash.net.Responder; public class AMFConnection { public var gateway : NetConnection; public function AMFConnection() { gateway = new NetConnection(); gateway.objectEncoding = flash.net.ObjectEncoding.AMF0; gateway.connect( http://branco:8080/projetos/5clicks/extranet/source/flex/bin/amfphp/gate way.php http://branco:8080/projetos/5clicks/extranet/source/flex/bin/amfphp/gat eway.php ); } public function callMethod( nameMethod : String, params : Array ) : void { gateway.call( extranet.callMethod , new Responder( onResult, onFault ), nameMethod, params ); } public function onResult( result : String ) : void { } public function onFault( result : String ) : void { } } } -- John C. Bland II Chief Geek Katapult Media, Inc. - www.katapultmedia.com http://www.katapultmedia.com --- Biz Blog - http://blogs.katapultmedia.com/jb2 http://blogs.katapultmedia.com/jb2 Personal Blog - http://blog.blandfamilyonline.com http://blog.blandfamilyonline.com http://www.lifthimhigh.com http://www.lifthimhigh.com - Christian Products for Those Bold Enough to Wear Them Home of FMUG.az - http://www.gotoandstop.org http://www.gotoandstop.org Home of AZCFUG - http://www.azcfug.org http://www.azcfug.org
RE: [flexcoders] Re: BindSetter?
Just a note, we added several examples on bindSetter() to the docs for the 2.0.1 release. Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of maikelsibbald Sent: Tuesday, December 19, 2006 12:57 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: BindSetter? Binding 101 can be found here: http://labs.flexcoders.nl/?p=24 http://labs.flexcoders.nl/?p=24 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Steve Hindle [EMAIL PROTECTED] wrote: Thank You Lachlan!!! I can't believe this isn't documented somewhere. Seems like a pretty basic thing. Anyway, glad to know I'm not going crazy.. On 12/5/06, Lachlan Cotter [EMAIL PROTECTED] wrote: I think you're right Steve. I have asked myself the same question in the past and ended up using bindProperty... When you say *function set ():void*or function *get ():Something *you're really telling the method to masquerade as a property, so it makes sense that you can treat it as such. I have used * BindingUtils.bindProperty* to bind a setter method and it seems to work. Cheers, Lach On 04/12/2006, at 4:31 PM, Steve Hindle wrote: Sorry for reply to myself - but this is driving me _nuts_! I can't find an example of bindSetter with a 'real' accessor function with either yahoo or google. And the example on the 'bindUtils' page at adobe.com (stuck in the comments at the bottom) - doesn't bind to a 'function set blah'... (isn't that the _required_ to consider a funciton/method a 'setter' ??) It just binds to a 'normal' function. Anyway, I'm starting to think that 'bindSetter' is really a poorly named 'bindFunction' and that _all_ properties - var OR accessor based should be using bindProperty. Can someone confirm/refute this and save my sanity please! Thanks
RE: [flexcoders] Re: Docs included in 2.0.1 are broken
There is a period at the end of that URL. Try this one: http://www.adobe.com/go/flex_documentation_zip Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of DannyT Sent: Monday, January 08, 2007 10:18 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Docs included in 2.0.1 are broken Thanks Randy, although the link is currently not found. Dan On 08/01/07, jrunrandy [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: If you are not using Flex Builder, which has all Flex docs in the Help system, you can get a local copy of the Flex docs by downloading the ZIP file (~45 MB) at http://www.adobe.com/go/flex_documentation_zip. http://www.adobe.com/go/flex_documentation_zip. This contains usage docs in PDF format and reference docs in ASDoc format. HTH Randy Nielsen Flex Documentation Manager Adobe Systems, Inc. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Collin Peters [EMAIL PROTECTED] wrote: All I'd like is a local version of the Language Docs so I don't have to depend on adobe.com (or more specifically the load on adobe.com during the middle of the day). What is the recommended way to access those via browser? -- http://danny-t.co.uk http://danny-t.co.uk
RE: [flexcoders] Drag and Drop within TileList - why does my code copy instead of move?
I did not run the code, but two things jump out at me. In your doDragEnter event, you have this: else { DragManager.NONE; } DragManager.NONE is a constant, and I'm not sure what you are trying to do. In doDragOver(), you are calling showFeedback() on every item dragged. I think you only need to call this once, based on whether you want to do a move or a copy. Hope that helps, Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rachel Maxim Sent: Tuesday, January 09, 2007 12:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Drag and Drop within TileList - why does my code copy instead of move? Hello, I would really appreciate another set of eyes taking a look at this code to see what I'm doing wrong. I have several tile lists where tiles can be dragged and dropped around. This code is pretty much straight out of the docs plus a few rules, It's working fine except that the tiles are copying, not moving as I want them to. Before I overrode the default drag-and-drop functionality, they moved, but when I implemented my rules to ensure they are being dragged to a list that accepts them, they started copying. Thanks so much for any help! Rachel Maxim ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml verticalScrollPolicy=auto horizontalScrollPolicy=off !-- component properties to identify this item for drag and drop listeners -- mx:String id=userName{ data.userName}/mx:String mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.controls.List; import mx.core.DragSource; import mx.events.DragEvent; import mx.managers.DragManager; import mx.containers.Tile; import mx.collections.IList; //drag enter handler private function doDragEnter(event:DragEvent):void { //drag target - where item is being dragged var dragInitiator:TileList = TileList(event.currentTarget); //dragged items var items:Array = event.dragSource.dataForFormat(items) as Array; for (var i:uint = 0; i items.length; i ++) { var fromCaseName:String = items[i].caseName; //the case name that the deal is being dragged from var toCaseName:String = data.caseName; //the case name that the deal is being dragged too //check to ensure drop is allowed on this object if (isDropAllowed(fromCaseName, toCaseName)) { DragManager.acceptDragDrop(dragInitiator); } else { DragManager.NONE; } } } private function doDragOver(event:DragEvent):void { //dragged items var items:Array = event.dragSource.dataForFormat(items) as Array; for (var i:uint = 0; i items.length; i ++) { var fromCaseName:String = items[i].caseName; //the case name that the deal is being dragged from var toCaseName:String = data.caseName; //the case name that the deal is being dragged too //check to ensure drop is allowed on this object if (isDropAllowed(fromCaseName, toCaseName)) { DragManager.showFeedback(DragManager.MOVE); } else { DragManager.showFeedback (DragManager.NONE); } } } //drop handler private function doDragDrop(event:DragEvent):void { //define the drop target var dropTarget:TileList = TileList(event.currentTarget); //dragged items var items:Array = event.dragSource.dataForFormat(items) as Array; //get the drop location in the destination var dropLoc:int = dropTarget.calculateDropIndex(event); //loop over dragged items to get data from each for (var i:uint = 0; i items.length; i ++) { trace(The deal + items[i].caseID + + items[i].companyName + + items[i].caseName + was assigned to + userName); //debugging trace //add to drop target IList(dropTarget.dataProvider).addItemAt(items[i], dropLoc); trace(the deal was dropped
RE: [flexcoders] Replacement of headerRenderer of Datagrid??
headerRenderer is a property of DataGridColumn. Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjaypmg Sent: Friday, January 12, 2007 2:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Replacement of headerRenderer of Datagrid?? Hi All, Does anyone now What is the replacement of headerRenderer of Flex 1.5 in Flex 2.0? headerRenderer was a property of DataGrid in flex 1.5. If anyone knows, please let me know. Thanks, Sanjay Sharma
RE: [flexcoders] Some AS3 component troubles
You can find the Creating and Extending Flex 2 Components doc here: http://livedocs.macromedia.com/flex/201/html/Part3_CreateComps_135_1.html You can also try the Flex QuickStart for building components in ActionScript: http://www.adobe.com/devnet/flex/quickstart/building_components_in_as/ Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Janis Radins Sent: Monday, January 15, 2007 9:16 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Some AS3 component troubles Thankyou both for answers. You finally gave me some pointers to explore. 07.15.1 Ralf Bokelberg [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] rakstīja: Hi Janis Your component looks very different from a common Flex component. Flex components follow a certain structure to create sub instances and update their ui. I don't remember the url, but i think you can find some introductory tutorials about Flex component development at Adobe's website. Good luck, Ralf. On 1/15/07, Janis Radins [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hey people! I already tried to ask in here but no one answered, then I tried flashcoders list and no solution in there as well, so I'm trying one more time, maybe someone can explain where is my problem. I'm trying to make some pretty simple UI component in Flex and it seems like I'm missing something. I think I've read everything I could but I cannt find what is it I'm missing, maybe someone on this list knows wheres the problem. So what I am doing is: 1. I create some pretty simple MXML project just for test with this content ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx= http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml xmlns:myComp=components.* layout=absolute myComp:TestComponent/myComp:TestComponent /mx:Application Pretty simple. xmlns:myComp=components.* defines that components can be found in folder named components in root of project, where I have this file TestComponent.as with following content package components { import mx.core.UIComponent; import mx.controls.Image; import flash.display.Shape; public class TestComponent extends UIComponent { private var imageInstance:Image = null; public function TestComponent() { super(); imageInstance = new Image(); imageInstance.source = icon.gif; addChild(imageInstance); trace(TestComponent initialized!); var shape:Shape = new Shape(); shape.graphics.beginFill(0xFF); shape.graphics.drawCircle(50,50,25); addChild(shape); } } } icon.gif is bitmap stored in root folder of project. Seems like pretty stright forward and theres nothing to break, but it isnt so. Shape appears, which make me think that component instance is initialized and placed in display list. But I really have bad luck with creating mx.controls.Image i think I tried everything with no luck. There must be something I'm missing, but I have no idea what is it :) Oh, and when I tried to extend some component directly it works, seems like thers no blank components for me! Any help will be apreciated! Jānis -- Ralf Bokelberg [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
RE: [flexcoders] Re: title window on app first run
There are several examples in the doc starting here: http://livedocs.macromedia.com/flex/201/html/layouts_065_43.html Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jonalexander370 Sent: Wednesday, January 17, 2007 3:57 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: title window on app first run Hi Jeff, Thank you for your reply. What sample code in the Flex docs? I am studying via www.lynda.com. If you could provide a URL to the Flex docs sample code, this would most greatly appreciated. Jon Alexander [EMAIL PROTECTED] mailto:sales%40e-revenues.com --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Battershall, Jeff [EMAIL PROTECTED] wrote: Don't have time to write the code for you - but I will give you the following hints: 1) Your TitleWindow would be a separate MXML component, i.e., LoginWindow.mxml. 2) Your app has a 'creationComplete' event which should fire a private function to popup your TitleWindow. You can build off the sample code in the Flex docs. Maybe someone else can help more... Jeff -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of jonalexander370 Sent: Wednesday, January 17, 2007 3:28 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: title window on app first run Hello, as I am having great difficulty completing this task, CAN ANYONE STEP IN and help, please, I am offering a cash payment of $100 for anyone to complete the initial coding with extensive commenting of the code so I can learn from it, please. Jon Alexander [EMAIL PROTECTED] --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , jonalexander370 jonalexander370@ wrote: Hello, Am very new to Flex am trying to have the first web page view being a primary login / registration TitleWindow with the main application as a fuzzy background. 1. Upon arrival at our web page at http://www.e-revenues.com http://www.e-revenues.com the first view would be a login / register page with an advertising Flash intro similar to Raymond Camden's Lemonade Stand Game at: http://ray.camdenfamily.com/index.cfm/2006/11/21/My-Thanksgiving-Flex-Ho http://ray.camdenfamily.com/index.cfm/2006/11/21/My-Thanksgiving-Flex-H o mework and actual application at: http://ray.camdenfamily.com/demos/ls/main.html http://ray.camdenfamily.com/demos/ls/main.html 2. EXCEPT, I wish to have the main application background fuzzy'ed out, if you click the START GAME button you shall see the effect with the Instructions being forefront and the main application being fuzzy'ed out in the background. 3. To clarify, the main app would be in the background fuzzy'ed out with the login / registration being a TitleWindow in the foreground. Any and all suggestions would be greatly appreciated. Thank you. Jon Alexander -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] Trouble coding AS Effect
Hi, You use the setStyle() method to apply effects in AS. There are a few examples in the doc: http://livedocs.macromedia.com/flex/201/html/behaviors_068_03.html http://livedocs.macromedia.com/flex/201/html/behaviors_068_09.html Are these the same ones that you saw in the help? Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Buitenveld Sent: Saturday, January 20, 2007 11:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Trouble coding AS Effect Hi all - I am having trouble locating the proper way to attach an effect via AS code.. at a high level, I have controllers that are associated with views (Canvas descendants).. works well for me, but now I would like to have controllerA hand off control to controllerB/ViewB using a WipeDown effect.. in other words, user clicks something, a new canvas slides down displaying something else and so on.. if I understand correctly, I don't get to use Transitions unless I change my views to be ViewStates.. I first tried using the help examples, which embed the effect in a tag, mxWipeDown duration=1000 id=myEffect but the problem is that this tag is embedded inside the components mx:Canvas tag and so setting the Canvas' showEffect is not working.. I can't even see how to set the showEffect prop in code.. Next, I tried creating a WipeDown in code, setting its duration prop and either setting the canvas.visible=true, OR calling wipeDown.play().. both fail - setting visible=true just ignores the effect, calling play seems to do nothing whatsoever.. tried attaching the canvas to the effect via effect constructor and also during the call to play(myCanvas).. same behavior (nothing).. this all looks like: var _wipeDown:WipeDown; _wipeDown = new WipeDown(myCanvas); _wipeDown.showTarget = true; // the default, I know _wipeDown.duration = 800; . . _wipeDown.play(); OR _wipeDown.play([myCanvas]); thanks for any thoughts - david buitenveld
RE: [flexcoders] Binding a property to a function
There are several examples in the updated data binding doc on the Flex Doc blog: http://blogs.adobe.com/flexdoc/ Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Uhlmann Sent: Friday, January 26, 2007 11:27 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Binding a property to a function Checkout mx:Binding and function bindings from Chapter 37 in Part 5 of Flex 2 Developer Guide about Bindings. and Observe/ObserveValue http://weblogs.macromedia.com/auhlmann/archives/2006/09/using_binding_s. cfm#more http://weblogs.macromedia.com/auhlmann/archives/2006/09/using_binding_s .cfm#more http://weblogs.macromedia.com/paulw/archives/2006/05/the_worlds_smal.cf m Best, Alex Alex Uhlmann Consultant (Rich Internet Applications) Adobe Consulting Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK p: +44 (0) 131 338 6969 m: +44 (0) 7917 428 951 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://weblogs.macromedia.com/auhlmann http://weblogs.macromedia.com/auhlmann From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Lieven Cardoen Sent: 26 January 2007 13:21 To: flexcoders@yahoogroups.com Subject: [flexcoders] Binding a property to a function Is it possible to bind a property to a function... A bit like the MVC-pattern... When a property changes, a function should be triggered... BindingUtils can't seem to do this. Thx, Lieven Cardoen Lieven Cardoen Application developer indiegroup interactive digital experience engelse wandeling 2 k18 b8500 kortrijk att14d75.gif Description: att14d75.gif
RE: [flexcoders] List of styles for the StyleName properties
There is an issue with LiveDocs that the Add Comment button is not appearing on some pages - most of the affected pages seem to be in the API reference. This should be fixed soon. Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dorkie dork from dorktown Sent: Monday, January 29, 2007 4:04 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] List of styles for the StyleName properties The DateChooser has a property headerStyleName. The datagrid and other components have the same type of somethingStyleName property. Where do I find the list of supported properties for the DateChooser headerStyleName property and in the future the other stylename properties? http://livedocs.macromedia.com/flex/2/langref/mx/controls/DateChooser.ht ml#styleSummary http://livedocs.macromedia.com/flex/2/langref/mx/controls/DateChooser.h tml#styleSummary Thanks PS I think the submit comments feature of the LiveDocs is down
RE: [flexcoders] Does asdoc work??
Have you checked the doc on ASDoc: http://livedocs.macromedia.com/flex/201/html/asdoc_127_1.html Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tvikatos Sent: Wednesday, January 31, 2007 11:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Does asdoc work?? I decided to play a bit with asdoc to document my project, but I just can't get the damn thing to work. At some point it started complaining about not being able to find the cairngorm lib classes. I used the -library-path option to point to the swc, but still getting errors with very meaningful descriptions: Error #1095: XML parser failure: Unterminated attribute. or Error: null Is this a product we can use or just wasting our time?
RE: [flexcoders] Re: Does asdoc work??
Here is how I generated ASDoc for Cairngorm: 1. Copied the Cairngorm files to the asdoc directory under wherever you installed the sdk. The source files are therefore in: FLEXINSTALLDIR\asdoc\Cairngorm\com\adobe\cairngorm 2. Ran the following command from the asdoc directory: ..\bin\asdoc -source-path Cairngorm -doc-sources Cairngorm\com -main-title Cairngorm Documentation -window-title Cairngorm Documentation -output cairngorm-asdoc The output is written to FLEXINSTALLDIR\\asdoc\cairngorm-asdoc Let me know if that works. Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tvikatos Sent: Wednesday, January 31, 2007 1:42 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Does asdoc work?? Yes, I have. I am probably doing something wrong but it's extremely difficult to figure out what. This has to become friendlyer than command line and give meaningful feedback... --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Stephen Gilson [EMAIL PROTECTED] wrote: Have you checked the doc on ASDoc: http://livedocs.macromedia.com/flex/201/html/asdoc_127_1.html http://livedocs.macromedia.com/flex/201/html/asdoc_127_1.html Stephen From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of tvikatos Sent: Wednesday, January 31, 2007 11:56 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Does asdoc work?? I decided to play a bit with asdoc to document my project, but I just can't get the damn thing to work. At some point it started complaining about not being able to find the cairngorm lib classes. I used the -library-path option to point to the swc, but still getting errors with very meaningful descriptions: Error #1095: XML parser failure: Unterminated attribute. or Error: null Is this a product we can use or just wasting our time?
RE: [flexcoders] ASDoc ignoring [Bindable] properties in mxml files
Do you have a test file that I can try? I just ran ASDoc on Button.as, which inserts [Bindable] before setter/getters for labelPlacement, listdata, and several other properties and it works as expected. I then modified Slider.as to add [Bindable] before allowThumbOverlap and allowTrackClick and they also work: [Inspectable(defaultValue=false)] [Bindable] /** * If set to codefalse/code, then each thumb can only be moved to the edge of * the adjacent thumb. * If codetrue/code, then each thumb can be moved to any position on the track. * * @default false */ public var allowThumbOverlap:Boolean = false; //-- // allowTrackClick //-- [Inspectable(defaultValue=true)] [Bindable] /** * Specifies whether clicking on the track will move the slider thumb. * * @default true */ public var allowTrackClick:Boolean = true; Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jer_ela Sent: Thursday, February 01, 2007 10:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ASDoc ignoring [Bindable] properties in mxml files I am finding that ASDoc (2.01) is ignoring bindable properties in mxml files public var myProperty:String gets documented [Bindable] public var myBindableProperty:String does not set/get pairs are also affected
RE: [flexcoders] datechooser bug?
You have to check that selectedDate is not null. From the do at http://livedocs.macromedia.com/flex/201/langref/mx/controls/DateChooser. html#selectedDate Selecting the currently selected date in the control deselects it, sets the selectedDate property to null, and then dispatches the change event. There is an example at the bottom of the page showing this. Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jmfillman Sent: Monday, February 05, 2007 1:00 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] datechooser bug? Try the code below. If you click on a date, then click on the same date, this throws an error. Am I doing something wrong or is this a bug? ?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:DateChooser x=10 y=10 id=schCalendar change=setDate ()/ mx:Script ![CDATA[ public function setDate():void { if (schCalendar.selectedDate.day == 0) { day.text=Sunday; } if (schCalendar.selectedDate.day == 1) { day.text=Monday; } if (schCalendar.selectedDate.day == 2) { day.text=Tuesday; } if (schCalendar.selectedDate.day == 3) { day.text=Wednesday; } if (schCalendar.selectedDate.day == 4) { day.text=Thursday; } if (schCalendar.selectedDate.day == 5) { day.text=Friday; } if (schCalendar.selectedDate.day == 6) { day.text=Saturday; } } ]] /mx:Script mx:Text x=192 y=51 id=day width=101 height=20/ /mx:Application
RE: [flexcoders] Flex books
There are 30 or so short 'QuickStart' articles on the Flex Dev Center for people new to Flex: http://www.adobe.com/devnet/flex/ Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pan Troglodytes Sent: Monday, February 05, 2007 11:16 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex books Is there any particular book out yet you would recommend for someone who is not as much of a programmer? Or are there good websites at this point they will help you get your feet under you with Flex 2? I'm tasked with helping another person get into Flex and I'm having a difficult time figuring out where he should start. -- Jason
RE: [flexcoders] dropEnabled property of Image tag?
Only drop targets that are subclasses of ListBase (such as List, Tree, DataGrid) have a dropEnabled property. For all other components, you have to handle the dragEnter and dragDrop drag events. For more information, see the doc here: http://livedocs.macromedia.com/flex/201/html/dragdrop_081_01.html Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjaypmg Sent: Thursday, February 08, 2007 6:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] dropEnabled property of Image tag? Hi, I have embd a trash image in the image tag. I want to drop a datagrid item over this trash image to delete it from the grid. But I didnt find dropEnabled property of Image tag. how can I do it? please suggest.. Thanks for support. Sanjay
Re: [flexcoders] Flex 2 + Wiimote + PaperVision 3D = good times
Cool stuff! There's no Flex in that vid? Adam Robertson over a http://www.dustypixels.com/blog/ has a nice lil framework working with the Wiimote. You can detect everything from it, and also make it vibrate, control the LED's etc. He was round mine the other day and he put together this lil example http://www.youtube.com/watch?v=8WTZEnvIuD8 (model skanked from http:// www.ricardocabello.com/?postid=309) cool stuff On 8 Feb 2007, at 20:37, slangeberg wrote: By way of bytearray.org: http://blog.je2050.de/2007/02/02/wiiflash-and-papervision3d/ : : ) Scott
Re: [flexcoders] What's the official consensus of using CodeBehind??
I originally was all go to separate the view and code using the source prop in a script tag. What i didn't like about this was that it was a loose link. Code behind makes this a more solid link but after experimenting with that also i've found I end up with some many files open it begins to turn into a negative. I've settled on putting code in a script block. For me it makes things more manageable and I really don't see the problem with having the functionality for that component inside it (just like all the classes in the framework (i.e. they don't have an AS class for the functionality, and then an AS class extending that which creates the view items)). cheers Tink On 8 Feb 2007, at 21:20, Ralf Bokelberg wrote: What is your reasoning to use code behind? Why would you want to double every class and add an additional inheritance layer just to separate Mxml from ActionScript? Why would you want to declare every component you are using twice, once in AS and the second time in Mxml? Is it to separate presentation from functionality? Generally this is a good idea, but i think it is important where to draw the line between the two. When you think of traditional systems with a template engine as the presentation layer, the templates also contain some code to build the presentation, while the functionality is implemented by plain classes. Now if we translate this thinking to Mxml and ActionScript, we should leave all the code we need to build the presentation inside the Mxml files and factor out the real functionality into classes. So i'd say, there is nothing wrong with ActionScript in Mxml files as long as it is strictly presenation related. Cheers Ralf. On 2/8/07, Mike Anderson [EMAIL PROTECTED] wrote: Hello All, Could some of you more savvy coders, please take a moment of your valuable time and throw some words of wisdom out there regarding CodeBehind? Since I love using Packages and Classes, it feels very natural for me to use this method. BUT, based on where things are going with Flex, is this considered to be a good programming practice? I would love to know sooner versus later, so that I don't have to back and redo a bunch of coding. I am a REAL stickler when it comes to good coding practices. Thanks in advance for your time on this, Mike -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany Phone +49 (0) 221 530 15 35
RE: [flexcoders] If Flex 2 Livedocs still supported or we shall move on to Flex 2.0.1 Livedocs?
Hi, I just opened http://livedocs.adobe.com/flex/2/langref/mx/controls/Tree.html in FireFox and IE, clicked the 'Frames' link at the top of the page to open the class and package lists, and navigated the pages. What errors are you seeing? Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andriy Panas Sent: Wednesday, February 21, 2007 10:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] If Flex 2 Livedocs still supported or we shall move on to Flex 2.0.1 Livedocs? Dear Adobe representative, Why the following Livedocs page from Flex 2 Livedocs is broken http://livedocs.adobe.com/flex/2/langref/mx/controls/Tree.html http://livedocs.adobe.com/flex/2/langref/mx/controls/Tree.html (virtually goes to nowhere)? FYI, not yet indexed page from Flex 2.0.1 Livedocs is OK: http://livedocs.adobe.com/flex/201/langref/mx/controls/Tree.html http://livedocs.adobe.com/flex/201/langref/mx/controls/Tree.html -- With best regards, JabbyPanda
RE: [flexcoders] Re: Custom Component Styles
Hi Graham, Isn't that similar to the example in the docs here: http://livedocs.adobe.com/flex/201/html/skinstyle_149_7.html Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of g_odds Sent: Monday, February 26, 2007 11:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Custom Component Styles It would appear the link I gave is broken. But nevermind, I have found the solution by delving through the framework source code, where the developers do it differently from what is documented in the Live Docs. The solution is to use something along the lines of: private static var stylesInitialised:Boolean = initStyles(); private static function initStyles():Boolean { var sd:CSSStyleDeclaration = StyleManager.getStyleDeclaration(AreaZoom); if (!sd) { sd = new CSSStyleDeclaration(); StyleManager.setStyleDeclaration(AreaZoom, sd, false); } sd.defaultFactory = function():void { this.borderColour = 0x017C98; this.borderAlpha = 1; this.fillColour = 0x96CEFD; this.fillAlpha = 0.2; } return true; } Graham --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , g_odds [EMAIL PROTECTED] wrote: I have been looking through the Adobe documentation for a few hours now and have no suggestion of how to achieve what I want to do. I have a custom component that has some custom style attributes. I would like these style attributes to have default values. So, I followed what is described in the Live Docs (http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/js/html/wwhelp.h tm?href=Part2_DevApps_048_1.html http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/js/html/wwhelp.h tm?href=Part2_DevApps_048_1.html ). All is fine and dandy, except for a (rather major?) problem. This method of setting defaults forces someone using the component to set all the style values or none, because if they set a single style attribute the default values are not set for any of the other attributes. Am I missing something or is this styling malarky complicated? Cheers, Graham
RE: [flexcoders] How can I access public members of custom MXML component using inline statemen ?
There is a section in the doc on creating and accessing properties in MXML components: http://livedocs.adobe.com/flex/201/html/mxmlcomponents_advanced_145_03.h tml Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of helihobby Sent: Tuesday, February 27, 2007 8:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How can I access public members of custom MXML component using inline statemen ? Hello all, How can I access public members of custom MXML component using inline statemen ? For example, I have my own MXML component name myComp which has public members. How can I access these public member from inling mxml. In other words, of couse I can do myComp.myMember = ABC; But I wish to do it not in ActionScript but in MXML ( inline ). In other words, I wish to do: myview:MyComp x=100 y=100 myMember=ABC / In other words, in line MXML ( not in AS ). I tried using the setter function in myComp, but no luck. As always, Thank you for all the help and support. Regards, Sean - http://www.HeliHobby.com http://www.HeliHobby.com P.S. You can read my solution for Flex Component communication here: http://www.helihobby.com/html/alon_desingpattern.html http://www.helihobby.com/html/alon_desingpattern.html public function doThis():void { } Now I want ns1 leDisplay id=viewerContainer x=263 y=85 /ns1 leDisplay
RE: [flexcoders] Drag Drop Compiler Bug/Problem
One thought is that the doc specifies to use a container as a drop target, you must use the backgroundColor property of the container to set a color. Otherwise, the background color of the container is transparent, and the Drag and Drop Manager is unable to detect that the mouse pointer is on a possible drop target. Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of richmcgillicuddy Sent: Saturday, March 03, 2007 11:53 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Drag Drop Compiler Bug/Problem I have a very (very) simple demo program that is listed below. I was having trouble dropping a tilelist item onto a canvas. I was able to get the drop to work only if I set the toolTip of the canvas. This seems very odd, like the canvas was not initialized yet. The drag operation starts OK enough but I get the cannot drop marker when I try to drop on the canvas, UNLESS I set the tooltip to something. Any ideas? Rich -- ?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 creationComplete=onInit() mx:Script ![CDATA[ import mx.utils.ObjectProxy; import mx.collections.ArrayCollection; import mx.core.DragSource; import mx.managers.DragManager; import mx.events.*; var anArrayCollection : ArrayCollection = new ArrayCollection(); private function onInit() : void { var thisItem : ObjectProxy = new ObjectProxy(); thisItem.title = Item 1; anArrayCollection.addItem(thisItem); thisItem = new ObjectProxy(); thisItem.title = Item 2; anArrayCollection.addItem(thisItem); tlTest.dataProvider = anArrayCollection; cvsDropTarget.addEventListener(DragEvent.DRAG_ENTER, onSpaceDragEnter); cvsDropTarget.addEventListener(DragEvent.DRAG_DROP, onSpaceDragDrop); } private function onSpaceDragEnter(event : DragEvent) : void { var dropTarget: Canvas = Canvas(event.currentTarget); // Accept the drag only if the user is dragging data // identified by the 'color' format value. if (event.dragSource != null) { DragManager.acceptDragDrop(dropTarget); } } private function onSpaceDragDrop(event : DragEvent) : void { var thisItem : SimpleThumbnail = new SimpleThumbnail(); thisItem.lblName.text = Test; thisItem.x = event.localX; thisItem.y = event.localY; thisItem.width = 200; thisItem.height = 200; cvsDropTarget.addChild(thisItem); } ]] /mx:Script mx:Canvas id=cvsDropTarget x=0 y=0 width=100% height=100% toolTip= / mx:TileList id=tlTest x=0 y=0 width=140 height=100% itemRenderer=SimpleThumbnail dragEnabled=true allowMultipleSelection=false / /mx:Application --- // Simple Thumbnail ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml width=120 height=120 verticalAlign=middle cornerRadius=10 borderStyle=solid backgroundColor=#c0c0c0 mx:Label text={data.title} id=lblName fontSize=28 textAlign=center width=100%/ /mx:HBox
RE: [flexcoders] Using an embedded image at runtime, Please help.
There is an entire chapter in the docs on this topic that might help: http://livedocs.adobe.com/flex/201/html/embed_082_1.html Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Giles Roadnight Sent: Friday, March 09, 2007 12:39 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Using an embedded image at runtime, Please help. Many thanks for the reply but I am still having some problems. I have this code: [Embed(source=../assets/mixi.swf)] [Bindable] private var mixiLogo:Class; at the top of my class and this code: private function printMovies(e:Event):void { var mixiLogo:Image = new Image(); mixiLogo.load({this.mixiLogo}); this.addChild(mixiLogo); } That fires when I press a button but I am still getting a broken image. When I try to load the image into a panel that I am building to print nothing appears. Is this code correct? Thanks Giles Roadnight From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: 09 March 2007 16:43 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Using an embedded image at runtime, Please help. @Embed is a compiler directive so you can't put it in quotes. You have to declare a variable [Embed('../assets/mixipix.swf'); Var mixipix:Class And load that From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Giles Roadnight Sent: Friday, March 09, 2007 7:16 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Using an embedded image at runtime, Please help. Hi I am still trying to get this print job done. I have got all of the text working fine but I can't get the logo to appear at the top, I hope someone can help. I have this code: private function printMovies(e:Event):void { var mixiLogo:Image = new Image(); mixiLogo.load(@Embed('../assets/mixipix.swf')); this.addChild(mixiLogo); } But I just get a broken image appearing when I fire the function. With this version of the function: private function printMovies(e:Event):void { this.printJob = new FlexPrintJob(); if(this.printJob.start()){ this.printPanel = new Panel(); var txtApprovedList:Text = new Text(); var mixLogo:Image = new Image(); mixLogo.load(assets/logo.swf); txtApprovedList.setStyle(color,0x00); txtApprovedList.width = printJob.pageWidth; txtApprovedList.text = this.txtMovieIDs.text; this.printPanel.addChild(mixLogo); this.printPanel.addChild(txtApprovedList); this.printPanel.setStyle(borderStyle,none); this.addChild(this.printPanel); printPanel.addEventListener(FlexEvent.CREATION_COMPLETE,this.doPrintCanv as); } } I get the panel and text appearing but no iamge at all, not even a broken one. I hope someone can help. Giles Roadnight
RE: [flexcoders] tutorials for writing custom classes
There are several places that you can start. From the Flex Dev Center, try the 4 Quickstarts on creating components: http://www.adobe.com/devnet/flex/ From the doc, there is an entire book on the subject: http://livedocs.adobe.com/flex/201/html/Part3_CreateComps_135_1.html Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Sent: Thursday, March 15, 2007 5:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] tutorials for writing custom classes Are there any good tutorials someone can point me to for writing custom Flex classes? I've been writing AS for a few years now but havn't really dived into Classes. I can find a lot of examples from digging into code but I'd like to find one that shows step by step what it is and why you're doing it. Thanks
RE: [flexcoders] Re: using videoDisplay with netstream (FMS)
There is an example in the doc showing this: http://livedocs.adobe.com/flex/201/html/controls_059_20.html Was that helpful? Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John Wilker Sent: Friday, March 16, 2007 10:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: using videoDisplay with netstream (FMS) nobody? I searched and found a few references but none were clear enough (my failing, not the poster's) Thanks On 3/15/07, John Wilker [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: So I've got a videDisplay component and I want to talk to FMS. I've got code to get my rtmp path for the media figured out. What I can't figure out is how to get my netstream to the VideoDisplay. Probably something I'm missing? source wants a Str. netstream is video. Any help, GREATLY appreciated -- John Wilker Vice President Software Development/Writer Red Omega Solutions, Inc. www.johnwilker.com http://www.johnwilker.com / www.red-omega.com http://www.red-omega.com Everything changes, nothing remains without change. ~Buddha c.483 bc -- John Wilker Vice President Software Development/Writer Red Omega Solutions, Inc. www.johnwilker.com http://www.johnwilker.com / www.red-omega.com http://www.red-omega.com Everything changes, nothing remains without change. ~Buddha c.483 bc
RE: [flexcoders] Re: using videoDisplay with netstream (FMS)
There is an example in the doc showing this: http://livedocs.adobe.com/flex/201/html/controls_059_20.html Was that helpful? Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John Wilker Sent: Friday, March 16, 2007 10:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: using videoDisplay with netstream (FMS) nobody? I searched and found a few references but none were clear enough (my failing, not the poster's) Thanks On 3/15/07, John Wilker [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: So I've got a videDisplay component and I want to talk to FMS. I've got code to get my rtmp path for the media figured out. What I can't figure out is how to get my netstream to the VideoDisplay. Probably something I'm missing? source wants a Str. netstream is video. Any help, GREATLY appreciated -- John Wilker Vice President Software Development/Writer Red Omega Solutions, Inc. www.johnwilker.com http://www.johnwilker.com / www.red-omega.com http://www.red-omega.com Everything changes, nothing remains without change. ~Buddha c.483 bc -- John Wilker Vice President Software Development/Writer Red Omega Solutions, Inc. www.johnwilker.com http://www.johnwilker.com / www.red-omega.com http://www.red-omega.com Everything changes, nothing remains without change. ~Buddha c.483 bc
RE: [flexcoders] About dialog boxes
You can get more info on Alerts from the doc here: http://livedocs.macromedia.com/flex/15/flex_docs_en/0318.htm For info on using TitleWindows with the PopUpManager, see: http://livedocs.macromedia.com/flex/15/flex_docs_en/0375.htm Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXLSent: Tuesday, April 19, 2005 11:25 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] About dialog boxes Check out mx.core.Application; it has a show alert function, or you can use the mx.controls.Alert singleton. Additionally, you can do anything with mx.maangers.PopUpManager, modal or not, and typically I put a decorated, closeButton enabled TitleWindow of sorts in it. - Original Message - From: Jesus Salvador Ramos Cardona To: flexcoders@yahoogroups.com Sent: Tuesday, April 19, 2005 7:08 PM Subject: [flexcoders] About dialog boxes Hello, all. This comes from our GUI Developer who comes from a Java background and is moving on to Flex. Is there an easy way in Flex to show dialog boxes? Anything similar to javax.swing.JOptionPane, with its constants and predefined icons? If not, is it safe to assume thar customizing TitleWindow is the correct approach? Thanks in advance. J. 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] Creating custom components with Flash
There is documentation on the process here: http://download.macromedia.com/pub/documentation/en/flex/15/flex_components_themes.pdf However, the note is correct - this process supports creating components for Flex 1.5 for backward compatibility with Flex 1.0. Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kristopher SchultzSent: Wednesday, April 20, 2005 11:38 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Creating custom components with Flash I want to know how to create a custom visual component in Flash that can be used in Flex. However, the extremely brief (and confusing), dead-endentry below is the only one I could find on thistopicin the documentation. Can someone point me to some more helpful information? = In Flex 1.0, you could create custom components for Flex in the Flash development environment. You modified the components in the flexforflash.zip file, and then exported them as SWC files for use in your Flex applications. This workflow has been deprecated for Flex 1.5. You can still create components for Flex using the Flash environment, but Macromedia supports only creating components using the functionality supported in Flash for Flex 1.0 (including Updaters 1 and 2). Do not create new components using the flexforflash.zip file for Flex 1.5 in Flash. This functionality has been deprecated. The flexforflash.zip file is provided for backward-compatibility only. = Kris -- Kristopher Schultz Developer Resource Interactive p: 614.410.2123 www.resource.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 the Yahoo! Terms of Service.
RE: [flexcoders] ActionScript Components
Title: Message Excuse me for the late reply, but you are coming across a known limitation when creating an MXML component that uses a container as its base tag. If you define the mxml component to contain a child, you cannot add a child to it when you use the tag. In order to be able to add children to panel.mxml, you must not define any children within the definition. Here's the doc on it: http://livedocs.macromedia.com/flex/15/flex_docs_en/0455.htm Stephen From: Erik Westra [mailto:[EMAIL PROTECTED] Sent: Thursday, April 07, 2005 11:03 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] ActionScript Components Well, flex is whining about subclassing mxml components wich have children with other mxml components containing children: The component mx.controls.Button may not be used as a child of erik.extend.panel because the erik.extend.panel is a container with internal children. [panel.mxml] mx:Panel xmlns:mx="http://www.macromedia.com/2003/mxml"mx:Button label="crazy" //mx:Panel [panelSub.mxml] panel xmlns:mx="http://www.macromedia.com/2003/mxml" xmlns="erik.extend.*"mx:Button label="yellow" //panel Greetz Erik From: JesterXL [mailto:[EMAIL PROTECTED] Sent: donderdag 7 april 2005 16:48To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] ActionScript Components Can you be more specific? I don't have any problems sub-classes my MXML components. - Original Message - From: Erik Westra To: flexcoders@yahoogroups.com Sent: Thursday, April 07, 2005 5:42 AM Subject: RE: [flexcoders] ActionScript Components A good reason to make pure actionscript components is that they can be subclassed. When u create an mxml component, u cant extends a custom mxml component wich has children. Greetz Erik From: Gordon Smith [mailto:[EMAIL PROTECTED] Sent: donderdag 7 april 2005 9:04To: 'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] ActionScript Components It is essentially a matter of preference. There are no performance differences that I know of. I generally recommend creatingcomponents in MXML because it makes several things easier, such as creating internal subcomponents, laying them out, and assigning event handlers to them.For example, if I was creating a LoginPanel, I would certainly do it in MXML. Can you explain what is "a bit messy" about MXML components? - Gordon 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] how to modify the loading interface while a MXML file is transfering
You can find information on the preloader in the docs here: http://livedocs.macromedia.com/flex/15/flex_docs_en/0323.htm Stephen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lwz7512 Sent: Monday, April 25, 2005 11:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] how to modify the loading interface while a MXML file is transfering I want a loading effect like this file showing, http://moonblue.vicp.net:8080/fsamples/dyn.mxml any help will be appreciated! if source file will be provided, it would be great! Yahoo! Groups Links 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 API Docs - Feature request
LiveDocs is a great way to make a request to the Flex doc group, but we also participate in this group as well. The advantage to using LiveDocs is that your comment appears on the Tree API doc pagefor all other Flex users to see if they encounter the same issue. Stephen Flex Doc From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simon FifieldSent: Saturday, May 14, 2005 12:53 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Flex API Docs - Feature request Hi Jess, To be honest I'd completely forgotten about the comments on the LiveDocs. 99% of the time I use the API docs that came as part of FlexBuilder. But I've added the livedocs to my favourites now just to see if anyone's added some useful extra info. Thanks, Simon -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]On Behalf Of JesterXLSent: 14 May 2005 16:18To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Flex API Docs - Feature request Did you add that comment to the LiveDocs as well (about the Tree)? - Original Message - From: Simon Fifield To: [EMAIL PROTECTED] Com Sent: Saturday, May 14, 2005 11:12 AM Subject: [flexcoders] Flex API Docs - Feature request I've just requested the following improvement of the Flex API docs because I think they are lacking some very useful and basic information: The API documentation lacks a lot of information that would save a considerable amount of time looking and testing for the answers - for example, you can find which node is currently selected in a Tree component by using the Tree.selectedNode property. The API docs explains that the item returned is dependent on the type of item selected - fair enough, but what if the user deselects a node so that no node is selected? I know that its probably going to be undefined, but why doesn't the API say that, I have to check it before I can carry on with other coding. This is not the first item that I've had this with, in fact the only reason I'm asking for this feature request is because there are so many times that I've thought that the API doc doesn't really cover what I need to know about the Class. The Java docs are very thorough although not perfect - I'm not asking for perfection because its not achievable, but the API docs can be massively improved. Thinking about it, if the code was being written "test first" surely a lot of the information would be there ready. Kind Regards, Simon Fifield Mango Solutions 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] HOw to change the foldericon of the tree dynamically acording to some condition?
There is an example in the doc for this at: http://livedocs.macromedia.com/flex/15/flex_docs_en/0249.htm Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt ChotinSent: Wednesday, May 11, 2005 10:12 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] HOw to change the foldericon of the tree dynamically acording to some condition? iconFunction should return the symbol that should be used as the icon. So you would embed your image and then return it as appropriate: [Embed(source=myBookIcon.jpg)] var bookIcon : String; function iconFunc(item) { if (item.label == books) return bookIcon; else return someOtherIconName; } If you want to use the original icons if yours isnt appropriate you can get the defaultLeafIcon, folderOpenIcon, and folderClosedIcon (myTree.getStyle(defaultLeafIcon)) HTH, Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of nithya karthikSent: Wednesday, May 11, 2005 2:41 AMTo: flexcodersSubject: [flexcoders] HOw to change the foldericon of the tree dynamically acording to some condition? hai, I'd like to know how to change the folderopen and folderclose icon of a tree control dynamically according to some condition (say when the node label is "books", i want the folderopenIcon to be 'books.png'..) help me with some code for this How should i use the IconFuntion in a tree? thanks, nithya Yahoo! Messenger - Communicate instantly..."Ping" your friends today! Download Messenger Now 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] using the Style control tag
In an MXML component, one that does not contain the mx:Application tag, you cannot define a type selector, only a class selector. Stephen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Abdul Qabiz Sent: Thursday, May 19, 2005 2:06 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] using the Style control tag Hi, You can use style tag as shown below, not sure why you got errors. Which version of Flex you are using? You can see into flex docs under section Using Styles and Fonts: http://livedocs.macromedia.com/flex/15/flex_docs_en/0532.htm ##StyleTagExample.mxml## mx:Application width=800 height=600 xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Style LinkBar { color:#00; border-style:solid; background-color:#FF; textRollOverColor:#FF; } .myStyle { color:#FF; font-family:Georgia; } /mx:Style mx:LinkBar click=getURL('http://www.macromedia.com/' + String(event.label).toLowerCase(), '_blank'); mx:dataProvider mx:Array mx:StringFlash/mx:String mx:StringDirector/mx:String mx:StringDreamweaver/mx:String mx:StringColdFusion/mx:String /mx:Array /mx:dataProvider /mx:LinkBar mx:Button label=aButton styleName=myStyle / /mx:Application Hope that helps.. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cnewroth55 Sent: Thursday, May 19, 2005 11:20 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] using the Style control tag not sure if anyone else knows this, but I tried to use the mx:Style tag to set a style in one of my components, and when I did i got an error that said CSS type selectors are not supported in components, here is what I had: mx:Style LinkBar {some style stuf } /mx:Style however this is wrong and the error message was kind of misleading, based on it i thought that i could NOT use the tag/style in a component; but when I changed it to this; mx:Style myLinkBar.LinkBar {some style stuff } /mx:Style noticed i added a ID to the LinkBar style it worked just fine...just thought someone might what to know... Craig Yahoo! Groups Links Yahoo! Groups Links 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] Cairngorm 0.99 ViewHelper problem
In the 0.95 version of Cairngorm the ViewHelpers were identified by their name attribute. I could initialize the name attribute with a call to a method. But in the 0.99 version the name attribute has gone away, and the ViewHelper is identied by the id attribute. The id attribute cannot be initailized at run time, it must be evaluated a compile time. In the application I am developing I have a view that has a ViewHelper. The view is used many times As a result I need to have many ViewHelpers. The Views and ViewHelpers are created at runtime so I cannot hard code the ids for these objects. Each ViewHelper must have a unique name, but since I cannot call a method when assigning the id attribute I cannot do this. Will this work: mx:Script ![CDATA[ var viewHelper : ViewHelper = ViewHelperBuilder(this); ]] /mx:Script This allows me to set the id without a compiler error, but will the initialized( document: Object, id: String) method be called with the the correct object? Stephen Inzer 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] style a validator output
You can use the ErrorTip style: mx:Style ErrorTip { borderColor: #00FF00 } /mx:Style Stephen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andrew Spaulding Sent: Tuesday, June 07, 2005 4:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] style a validator output Hi Guys, Is it possible to style the output of the Validator? Would be nice to change the red error message bubble at least to another colour. Can it be done? Thanks in advance, Andrew Spaulding www.flexdaddy.com Yahoo! Groups Links 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] custome controls-How?
There are several documents on the Flex Documentation page that describe this process: http://www.macromedia.com/support/documentation/en/flex/1_5/createcompon ents/index.html http://www.macromedia.com/devnet/flex/articles/creating_comp.html Stephen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Doodi, Hari - BLS CTR Sent: Friday, June 17, 2005 12:31 PM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] custome controls-How? Hi All, I have a situation with TabNavigator - where in before user navigate to next tab I have to do some validations on data they entered and if no errors then only I let the user go to next tab. In order to achieve this I need to trap some event before change event can occure. From my previous posting I think the only way I can achieve this functionality is extend the TabNavigator and override corresponding methos(?). Can any one guide me to locations where I can find enough info How to extend mx controls and use them in my mxml files? Thanks in advance for your help. I really appreciate if any one can post already working code for both extending and using in mxml file . Thanks! Hari Yahoo! Groups Links 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] 'fade effect' question
From the doc: Note: To use the Fade effect with text, you must use an embedded font, not a device font. For more information, see Using Styles and Fonts. You can read more here: http://livedocs.macromedia.com/flex/15/flex_docs_en/0590.htm Stephen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjayd Sent: Sunday, June 19, 2005 4:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] 'fade effect' question folks, any idea why the label 'fading text' refuses to fade out ? Thanks in advance. mx:Effect mx:Fade name=Fade alphaFrom=100 alphaTo=30 duration=2500/ /mx:Effect mx:VBox width=100% height=100% mx:Box direction=horizontal borderStyle=solid marginTop=5 marginBottom=5 marginLeft=1 marginRight=1 .. .. mx:Label text=fading text showEffect=Fade/ /mx:Box .. .. Yahoo! Groups Links 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] How do you set the amount of characters in a text area control
There is, you can see the API here: http://livedocs.macromedia.com/flex/15/asdocs_en/mx/validators/StringValidator.html Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]Sent: Friday, June 24, 2005 11:45 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] How do you set the amount of characters in a text area control Is there a minLength property --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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 the Yahoo! Terms of Service.
RE: [flexcoders] Re: ComboBox 'Please Select' first Item
The difference is that addItemAt() is a method of the List class (inherited from ScrollSelectList), which is howyou calledit. It is documented here as part of List: http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/List.html The addItemsAt() method is on the DataProvider class. Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint ModienSent: Wednesday, June 29, 2005 11:49 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: ComboBox 'Please Select' first Item You right... it appears there's have some conflicting documentation on the DataProvider APIthe one I looked at here didn't have your method...http://livedocs.macromedia.com/flex/15/asdocs_en/mx/controls/listclasses/DataProvider.htmlbut this documentation does...http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentationfile=0210.htm On 6/29/05, digital_eyezed [EMAIL PROTECTED] wrote: Thanks,Added this and it worked:function addSelect(event){ var theTargetId = event.target; theTargetId.addItemAt(0,"Please Select",0); theTargetId.selectedIndex = 0;}Small typo in yours, its addItemAt not addItemsAt, took me a weewhile to notice it.Best Regards,Iain--- In flexcoders@yahoogroups.com, Clint Modien [EMAIL PROTECTED] wrote: Should be function addSelect(event){ var theTarget = event.target http://event.target.id/ ; theTarget.addItemsAt(0,new Array([{label:"Please Select",data:0}]); } Or the easiest way would be to add the Item to the result when youget it back event.result.push({label:"Please Select", data:0}); the "label" and "data" properties of the object should coincidewith the properties of your VO if you can give me the definition of the VO maybe I can elaborate On 6/29/05, digital_eyezed [EMAIL PROTECTED] wrote: Hi, How do I have the first item in the combobox read 'please select' with a corrosponding data value of 0(zero). The rest of the combobox should be filled with a return from a remote object call and the resulting VO objects (with label / Data pairs). I can fill the comboBox with the VO's no problem, but How do I add the 'Please Select'? I have tried this function on the creationComplete event of the Combobox: function addSelect(event){ var theTargetId = event.target.id http://event.target.id; theTargetId.addItemAt(0,"Please Select",0); } any help most appreciated.Regards, Iain -- 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 ListFAQ: 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 ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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 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 audio sample did't work
The links to the MP3 files in these examples are not to real MP3 files. In the example with the line: [Embed('bluechristmas.mp3')] Replace bluechristmas.mp3 with the name of an MP3 file on your machine. Stephen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of unihan Sent: Sunday, July 03, 2005 10:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex audio sample did't work I follow the livedoc from Macomedia to play a MP3 file under Flex environment. http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/commo n/html/wwhelp.htm?context=Flex_Documentationfile=2171.htm Th error message is always Failed to find resource. From the experienc of graphic file handling, I know that if I use the wrong file type, such as gif but not jpg, the message will come up. In this case, even the sample teach me to do in that way, why it didn't work? -- 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/