[flexcoders] AIR write file - prepended with irregular character
I am creating XML files to File.applicationStorageDirectory and the file gets created without error. Unfortunately there is an irregular character at the beginning of the file contents which does not exist in the XML. How can I prevent this ? òOpenShipments xmlns=x-schema:OpenShipments.xdr should be OpenShipments xmlns=x-schema:OpenShipments.xdr
[flexcoders] scriptTimeOut limit
I set the scriptTimeLimit to 120 but it is being ignored - Is there no way to override the 60 second limit ?
[flexcoders] Yesterday's Adobe PR on Flash Indexing for Google
http://www.businesswire.com/portal/site/google/? ndmViewId=news_viewnewsId=20080630006649newsLang=en
Re: [flexcoders] Need array example
Look into using a data Model. Populate the Model with a record of data and Bind the data entry fields to the Model Then, whenever you want to change the model you can use a change event to update the Model or not. The Model becomes your temporary storage. mx:Model id =myModel myField{myDataProvider.myField}/myField /mx:Model Then the input field gets populated automatically mx:TextInput id=myField text = {myModel.myField} change=updateModel(event) / //change even will update the original data (Model) based on a condition private function updateModel(event):void{ var obj = event.currentTarget if(obj.text == something){ myModel[obj.id] = obj.text } } Ben Marchbanks ::: magazooms ::: digital publishers, taking print beyond paper.. http://www.magazooms.com Greenville, SC 864.284.9918 Chilcoat, Dee wrote: I need an example of copying fields in an array to another array, but I don't want the fields to be pass-by-reference. I'm trying to create a holdingarray for input in a datagrid. This is code I have used. holdData[6] = quickEntryGrid.dataProvider[i].timerecordTrcPayRateAmount; holdData[7] = quickEntryGrid.dataProvider[i].timerecordTrcSickLeaveHours; holdData[8] = quickEntryGrid.dataProvider[i].timerecordTrcVacationHours; holdData[9] = quickEntryGrid.dataProvider[i].timerecordTrcRegularHours; holdData[10] = quickEntryGrid.dataProvider[i].timerecordTrcStraightOvertmHours; holdData[11] = quickEntryGrid.dataProvider[i].timerecordTrcPremiumOvertmHours; holdData[12] = quickEntryGrid.dataProvider[i].timerecordTrcOtherHours; holdData[13] = quickEntryGrid.dataProvider[i].timerecordTrcOtherHoursCode; holdRowData[i] = holdData; The problem is that whenever a user inputs data into the quickEntryGrid, it is reflected in the holdRowData, which I need to contain the original values before the user enters any data. If I can't use a holding array, do I have other options? Dee A. Chilcoat Enterprise Web Application Development University of California San Diego [EMAIL PROTECTED] (858) 534-0719 -- Ben Marchbanks ::: magazooms ::: digital publishers, taking print beyond paper.. http://www.magazooms.com Greenville, SC 864.284.9918
[flexcoders] Adding Components from other Projects
I have a small app (A) that uses Flash Vars to control various display properties. These Vars are passed in via the URL and PHP. Its designed as a small portal to be embedded into clients' web pages. I want to build a style explore type app (B) to allow users to select a style of app A - view it dynamically, at the same time I would generate the small html code snippet in a textArea that they would copy and use to embed the portal into their web page. Is there a way I can insert the original app A into another Flex app B similar to how custom components can be dropped in, and expose the vars in app A to app B ? I would like to have these loosely coupled. Whats the best practice for accomplishing what I am after ?
Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book
At the risk of firing up this debate to a frenzy, what about runing macOSX on a PC box ? http://www.psystar.com/ Ben Marchbanks ::: magazooms ::: digital publishers, taking print beyond paper.. http://www.magazooms.com Greenville, SC 864.284.9918 David Pariente wrote: Well, i guess there are many solutions...but one, maybe not viable cause of the crappy OS, is putting windows inside the mac. Another could be putting linux inside, and use the MONO development framework (similar or compatible with .Net, i'm not sure). In this 2 options u allways will have a quality hardware in the back (that mac). The 3rd would b getting .Net for the mac (isn't there a mac version??). and the 4rth, my personal oppinion, would b not using .Net at all. I can't trust/stand/support MS in anything they do XD haha just a joke ;) By the way, im also willing to change into Mac as soon as i get the money :) and work with macOS and Linux. - Mensaje original De: b_alen [EMAIL PROTECTED] Para: flexcoders@yahoogroups.com Enviado: jueves, 5 de junio, 2008 11:44:42 Asunto: [flexcoders] Re: Thinking about going to the dark sideApple Mac Book Interesting. Me and my colleagues are also thinking of switching to Mac due to Vista crappiness. In fact we're 80% sure that next laptops will be Macs. My only concern is how to do .Net development and integration with Flex then. Anyone has a solution to that? --- In [EMAIL PROTECTED] ups.com mailto:flexcoders%40yahoogroups.com, scottyale2008 scottyale2008@ ... wrote: How many Flex developers here are using a Mac for development? I've been a die hard Microsoft guy since ... well, since Microsoft first started. I went from CPM on a Morrow Meadows to Microsoft DOS (on computers with a Turbo button!), then Windows, now Vista. I do have an iPhone and it is an incredible device and the GUI is extremely well done. I've never used a Mac, but many of my friends have taken the plunge. Is it time to make the switch? I'm thinking about a Mac Book Pro. Is a Mac Book even worth considering for a Flex dev machine or is a Mac Book Pro the way to go? Anybody else make the switch recently from Windows to Mac? Enviado desde Correo Yahoo! http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52431/*http://es.docs.yahoo.com/mail/overview/index.html La bandeja de entrada más inteligente. -- Ben Marchbanks ::: magazooms ::: digital publishers, taking print beyond paper.. http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] What do you use to print reports?
Highly recommend PDFlib.com for server side PDF - very robust and mature API. Richard Rodseth wrote: Check out AlivePDF. I haven't used it personally (other than a quick proof of concept) but it looks promising. For a browser-based app, it makes use of a server-side piece (PHP, Java Servlet etc) to bounce back the bytes so the browser can download them. On Wed, May 14, 2008 at 10:33 AM, Guilherme Stiebler [EMAIL PROTECTED] mailto:guilhermemst%40gmail.com wrote: I'm trying to print reports in my Flex+Rails project, but without success so far. The temporary solution is to generate the reports in HTML, but it´s far from good for printing. What do you use for showing and printing reports? Guilherme Stiebler -- Ben Marchbanks ::: magazooms ::: digital publishers, taking print beyond paper.. http://www.magazooms.com Greenville, SC 864.284.9918
[flexcoders] Re: on the fly XML string change and keep CDATA wraps....
I think I use escapes to successfully build the CDATA wrapper for text like so. !\[CDATA\[ + new text + \]\] --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: The compiler is still recognizing the cdata tags. Try: xml.info.circleText = ![CDATA[ + new text + ] + ] I do not know if literal xml would work, or would have the same issue with the cdata tags: xml.info.circleText = ![CDATA[{new text}]]; //give it a try Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks Sent: Thursday, May 08, 2008 12:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] on the fly XML string change and keep CDATA wraps Ok I've got this xml setup: item info circleText![CDATA[]]/circleText workingText![CDATA[]]/workingText needText![CDATA[]]/needText/info circle type=work x=200 y=150 percent=25/ circle type=home x=80 y=120 percent=20/ circle type=community x=150 y=130 percent=30/ circle type=self x=300 y=80 percent=25/ /item I can get / set everything fine - I can even set xml.info.circleText = new text but I lose the ![CDATA[ wrapping. I've tried to do xml.info.circleText = ![CDATA[ + new text + ]] but that throws an error. Any suggestions?
[flexcoders] Update all ItemRenderers in TileList
I have a TileList with itemRenders for which I would like to update the toolTips dynamically. After the list is displayed related data is retrieved at which time I would like to trigger an updateDisplayList for each of the IR. Resizing the the application window triggers the update but what's the best way to accomplish this as part of my resultHandler ?
[flexcoders] Set Style of default itemEditor
I am using the default TextInput itemEditor for a data grid and not having much luck changing its style. Currently its inheriting the text color from its parent (titleWindow) which is #ff. I have tried event.currentTarget.editedItemRenderer.setStyle(color,#00); and... TextInput(tocDG.itemEditorInstance).setStyle(color,#00); and event.currentTarget.editedItemRenderer.styleName = textEditor; and ... TextInput(tocDG.itemEditorInstance).styleName = textEditor ; none of these work - what's the proper solution ??
Re: [flexcoders] Re: GIS and Flex
I built a simple quick and dirty map in Flex using geocoded data, a Map image and a Plot chart from built-in charting. Its not Google maps but gets the job doneand is totally self-contained. http://www.magazooms.com/images/sampleMap.gif I have worked with Yahoo maps, ESRI, and MapQuest and prefer MapQuest even though it comes with significant fees. Abyss Knight wrote: Check this out: http://www.adobe.com/devnet/flex/articles/dashboard_ilog.html http://www.adobe.com/devnet/flex/articles/dashboard_ilog.html -- William --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, kapil b [EMAIL PROTECTED] wrote: Hi All, Does anybody have idea how to implement gis(geographyical information system) in flex with the gis data in it. What kind of gis data format files the flex requires so that i can retrieve the data and display it in the UI. Thanks Bollywood, fun, friendship, sports and more. You name it, we have it on http://in.promos.yahoo.com/groups http://in.promos.yahoo.com/groups -- Ben Marchbanks ::: magazooms ::: digital publishers, taking print beyond paper.. http://www.magazooms.com Greenville, SC 864.284.9918
[flexcoders] Persistent Shared Object
I am trying to implement Shared Object as I have before but cannot retrieve the SO data. // Declared like so.. public var adminSO:SharedObject; // in my doInit() function , assigned like so... adminSO = SharedObject.getLocal(siAdminSO); I have a Model - adminInfo like so... mx:Model id=adminInfo info userName/ userPriv/ /info /mx:Model I populate the model above following a successful login and then store the same in a Shared Object using the AS below public function saveUserPref():void{ for( var o:String in adminInfo){ adminSO.data[o] = adminInfo[o] trace(adminSO.data[o]) // returns userName as expected trace(adminInfo[o]) // returns userName as expected } var sv = adminSO.flush() trace(sv) // returns flushed } Then next time the user logs in I have this AS to retrieve the SO data which produces [object Object]=undefined for each item in the SO if(adminSO.size 0 adminSO.data){ trace(adminSO.size) // returns 59 for each(var o:String in adminSO.data){ trace(o+'='+adminSO.data[o]) // returns [object Object]=undefined } } What am I missing here ? - this same method has worked great in another project Thanks -- Ben Marchbanks ::: magazooms ::: digital publishers, taking print beyond paper.. http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] Flex and PHP Issue. Please help!!!
Why not submit as a regular POST ? ---snippet- var params:Object = new Object() params.UserName = PostUserNameTF.text PostUser.send(params). --Then handle the POST in PHP.--- foreach($_POST AS $key = $values) { ${$key} = $values; } $query = INSERT INTO Users (`UserName`) VALUES ('.$UserName.'); Omar Fouad wrote: In my flex application i have a form with some text fields. When I submit the form an HTTPService.send() methid is called. mx:HTTPService id=PostUser method=GET url=http://localhost/Flex/Pastarino/PostUsers.php http://localhost/Flex/Pastarino/PostUsers.php useProxy=false showBusyCursor=true resultFormat=text result=PostNewUserResponse(event); /mx:HTTPService the function is: public function PostNewUserResponse(event:ResultEvent):void { PostStatusL.text = String(event.result); // response from the php to the label in FLEX } when the Submit Button Is pressed it calls the following function public function PostNewUser():void { var PostArray:Array= new Array(); PostArray = [{ UserName: PostUserNameTF.text, Password: PostPasswordTF.text, name: PostNameTF.text, Position: PostPositionTF.text, ManageUsers: PostManageUsersCB.selected, CreateOrders: PostCreateOrdersCB.selected, CreateDishes: PostCreateDishesCB.selected }]; var DataToSend:Object = new Object(); var DataString:String = JSON.encode(PostArray); DataString = escape(DataString); DataToSend.PostUsers = true; DataToSend.DataSent = DataString; PostUser.send(DataToSend); } At this point the php code would be: if(isset($_GET['PostUsers'])) { $jsonString = urldecode($_GET['DataSent']); $jsonString = str_replace(\\, , $jsonString); $data = json_decode($jsonString, true); $connection = mysql_connect($URL, $USERNAME, $PASSWORD); mysql_select_db($DATABASE) or die('Cannot connect to database. Please Try Again...'); $query = INSERT INTO Users (name) VALUES ($data['name']); // only the name field for now... $result = mysql_query($query, $connection); But it is not working. I realized that $data['name'] is not getting the name field from flex. I also tried adding the values manually in php as in $query = INSERT INTO Users (name) VALUES ('The Name is here'); and it WORKED!!. So i think the problem is that $data['name'] is not really retrieving the data from the array decoded by json_decode() (this is really frustrating me!!) How should It be? thanks for the help -- Omar M. Fouad - Digital Emotions http://www.omarfouad.net http://www.omarfouad.net This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. -- Ben Marchbanks ::: magazooms ::: digital publishers, taking print beyond paper.. http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] Circle Canvas
You might play with cornerRadius property to create a circular shape. I use this for small buttons, I see no reason it would not work for canvas. Swamy Nathan wrote: Hi Folks, I am swaminathan, and am new to flex env... i want to create the Circle Shape Canvas. How can i ? Please help me... -- Thanks Regards Swaminathan. M -- Ben Marchbanks ::: magazooms ::: digital publishers, taking print beyond paper.. http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] An ArrayCollection question ?
Sorry my earlier response was for XML data Try acDept.getItemAt(i).DeptID .toString( ); Mark Shen wrote: Hi Sherif This doesn't have relation with i. Thanks Mark - Original Message From: Sherif Abdou [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, February 12, 2008 10:13:18 AM Subject: Re: [flexcoders] An ArrayCollection question ? see what your ArrayCollection looks like but try acDept.getItemAt( DeptID) .toString( ); - Original Message From: markflex2007 markflex2007@ yahoo.com http://yahoo.com/ To: [EMAIL PROTECTED] ups.com http://ups.com/ Sent: Tuesday, February 12, 2008 9:07:29 AM Subject: [flexcoders] An ArrayCollection question ? Hi, I have a ArrayCollection acDept that saved the data passed from coldfusion cfc cfquery name=getDepartment datasource= bursary SELECT DeptId, Dept FROM DeptList /cfquery I want loop over all the ArrayCollection and show all the DeptId.I use the following code and I get error for acDept.valueOf( DeptID) . for ( var i : int =0; i acDept.length ; i++) { Alert.show(acDept. valueOf( DeptID). toString( )); } Please help me to know which method I can use to get DeptID. Thanks Mark Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping -- Ben Marchbanks ::: magazooms ::: digital publishers, taking print beyond paper.. http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] An ArrayCollection question ?
Try, Alert.show(acDept[i].DeptID.toString()); Ben Marchbanks ::: magazooms ::: digital publishers, taking print beyond paper.. http://www.magazooms.com Greenville, SC 864.284.9918 markflex2007 wrote: Hi, I have a ArrayCollection acDept that saved the data passed from coldfusion cfc cfquery name=getDepartment datasource=bursary SELECT DeptId, Dept FROM DeptList /cfquery I want loop over all the ArrayCollection and show all the DeptId.I use the following code and I get error for acDept.valueOf(DeptID). for ( var i : int =0; i acDept.length ; i++) { Alert.show(acDept.valueOf(DeptID).toString()); } Please help me to know which method I can use to get DeptID. Thanks Mark -- Ben Marchbanks ::: magazooms ::: digital publishers, taking print beyond paper.. http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] Upload with parameters
Try fileRef.upload(request); versus fileRef.upload(request, uploadfile); Fidel Viegas wrote: Hello folks, I am experiencing a weird problem. I have the following code: var request:URLRequest = new URLRequest(http://localhost:9090/docapp/upload.jsp http://localhost:9090/docapp/upload.jsp); var urlVars:URLVariables = new URLVariables(); urlVars.section_id = imageSection.selectedItem != null ? imageSection.selectedItem.id : -1; urlVars.title = imageTitle != null ? imageTitle.text : ''; request.data = urlVars; request.method = URLRequestMethod.POST; fileRef.upload(request, uploadfile); The before executing this code I have called the browse method to select the file. Now, the weird part is that the above code will only send the file. Here is an excerpt of what it is sending grabbed using tcpmon: begin excerpt -- POST /docapp/upload.jsp HTTP/1.1 Host: localhost:9090 Accept: */* User-Agent: Shockwave Flash Connection: Keep-Alive Cache-Control: no-cache Content-Length: 173137 Expect: 100-continue Content-Type: multipart/form-data; boundary=8b0c1ed199a5 --8b0c1ed199a5 Content-Disposition: form-data; name=Filename firebirderror.png --8b0c1ed199a5 Content-Disposition: form-data; name=Filedata; filename=firebirderror.png Content-Type: application/octet-stream �PNG skipped image content --8b0c1ed199a5 Content-Disposition: form-data; name=Upload Submit Query --8b0c1ed199a5-- -- end excerpt - Now, if I change the send method to GET, I am, obviously, unable to send the image file, but I am able to send a small text file and all the parameters are sent in the query string. I am running my tests on Ubuntu 7.10 using Flex SDK 2.0 and the latest flash player. Has anyone else experienced something similar to this? Thanks in advance, Fidel. -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] question on text encoding
There are several JS based sanity checks out on the web that you can adopt to AS. One important factor is preserving UTF8 once you have it in Flex. All data transactions as well, should be UTF8. For example: your server-side script (bi-directionally) for UTF8 And your database should be setup for UTF8. If you are using PHP you can add iconv_set_encoding(input_encoding, UTF-8); iconv_set_encoding(output_encoding, UTF-8); iconv_set_encoding(internal_encoding, UTF-8); to the beginning of your scripts. Alternatively, you can use mySQL_query(SET NAMES UTF8) in your server-side scripts. HTH Body Works Studio wrote: Hello all, I wanted to know is it possible for flex to determine what encoding the text being entered in to a textInput, textArea, or HTMLTextInput is using. Thr concern is a user copies and pastes in text from say a Microsoft product. The reason I ask is we have UTF8 encoding for the project, and sometimes text appears as a black rectangle. Ideally I would like to run a function at focusOut that would confirm .text. Thanks for your time Jeff -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
[flexcoders] SWF sound continues to run after display object removed ??
Using FB2 - I am loading a SWFloader with swf file provided by various clients - since we have no control over how these are produced there is no option to use localConnection to control these SWF. These are simple animations, many with sound. I understand there are methods available if the files are Flash v9 but with v8 it seems the only controls available are load and removeChild. Obviously loading and removing is not a problem but the sound plays on until finished even though the display object has been removed. Do we have any options for stopping sound from a SWFloader for v8 SWF files short of a sledge hammer ?
Re: [flexcoders] Problem sending swedish characters from flex to php (amfphp)
What I have learned is that the best practice is to enforce UTF-8 encoding at every stage - What I do: Setup mySQL character set and collation to - UTF-8 unicode I have not worked with AMFPHP but using PHP I establish UTF-8 encoded at the beginning of all PHP scripts that handle data. iconv_set_encoding(input_encoding, UTF-8); iconv_set_encoding(output_encoding, UTF-8); iconv_set_encoding(internal_encoding, UTF-8); These are essentially the same as the mySQL_query('SET NAMES, UTF8') WARNING: If you call the iconv_set in PHP do not also call the mySQL_query('SET NAMES, UTF8') as this is redundant and will cause UTF8 encoded characters to be re-endcoded to UTF8 which seriously mangles the data. This setup is working fine though I have not tried to handle swedish but I know it does support french without any problems. HTH ericbichara wrote: Hi all, Im having some problems sending special characters (swedish characters ä, ö, and å) from Flex to a Database through AMFPHP. When inserting these types of characters directly from php in the database, everything works fine. ie INSERT INTO TABLEX VALUES ('äää'); And fetching from the database into php and to Flex also works like a charm. Im guessing its something to do with my phpenconding when recieving the characters from Flex or something with amfphp. Any ideas would be greatly appreaciated. Btw, im using Flex2/3, Amfphp 1.9beta2, and a mySQL db. /Eric -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
[flexcoders] Tilelist scrolling out of control during D/D !
I have a tileList of images 2 rows x 4 cols ) that are D/D enabled to allow for re-ordering the display sequence. Using the standard built-in D /D. Drag and drop itself works fine but the scrolling is totally uncontrollable during the process. When you drag an item there is no way to stop the scrolling from going to all the way up or down - hence there is no drop to any row other than the first or the last. Okay - what am I doing wrong here - any ideas ? -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] Problem reading German characters from XML
Do you know the encoding of the data being provided ? Typically when characters are not properly encoded to the rendering environment you will encounter this issue. For example say your xml data is ISO-8858-1 encoded but your web server script or rendering application is set to UTF-8 You would have to transform the data from ISO-8858-1 to UTF-8 encoding. Mark Lapasa wrote: Hello all, An API call which is returning an XML that has CDATA text that is not displaying properly. Here's a link to a picture that describes what is going on: http://lapasa.net/images/Versicherungs.GIF http://lapasa.net/images/Versicherungs.GIF Returned - That is the text as seen in a packet sniffer program (wireshark) Displayed - Is how IE7 is displaying the XML document. Should display - Is the german text that we desire to be displayed in Flex but it's displaying the same as IE. We were told to read it in as WCHAR but what does that mean to people who deal with data coming in and out of the Flash Player? No help could be found in livedocs. Any help would be appreciated. Thx, -mL Notice of confidentiality: The information contained in this e-mail is intended only for the use of the individual or entity named above and may be confidential. Should the reader of this message not be the intended recipient, you are hereby notified that any unauthorized dissemination, distribution or reproduction of this message is strictly prohibited. If you have received this message in error, please advise the sender immediately and destroy the e-mail. -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
[flexcoders] magnifying glass component
Anybody know if there is a flex magnifier/zoom component available ? I am looking to produce a magnifying glass effect similar to this flash version http://www.usflashmap.com/component/flash_magnifying_glass.htm
[flexcoders] Trouble with try/catch for loader error
I am using Ely' SuperImage with the preload to cache feature. I am having some through with loading one set of images to the cache and not having much luck trapping the error. The following try/catch is totally ignored - what am I doing wrong ? here's a snippet -- trace( not in cache or inaccessible: creating new Loader); loader = new Loader(); try{ loader.load(request); } catch(e:Error) { trace(loadResult=+e) } cachedItems.push(loader); result = loader -
Re: [flexcoders] SVG and CSS Styles
hmmm... I read an article that expressed disappointment that Flex handled SVG as vectors up until rendering and then mashed them to bitmap for display. I am not sure what opportunity there is for CSS styling.. Its seems kinda silly to load vector file and then flatten it - why bother ? mthomas1969 wrote: I've embedded some SVG files and loaded them into mx:Image tags, but I can't seem to adjust the styles in the SVG drawings. The Flex docs say that CSS styling works with SVG, but I can't get it to work. I'll admit that CSS is one of weak points, so it may be something obvious I'm overlooking. Anyone have a simple example of how to apply a style to an element of an SVG graphic in Flex? -Matt -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
[flexcoders] [SOLVED] TileList drag/drop error yet again
Alex pointed out that there appeared to be multiple updates of the tileList dataProvider. I did some digging and indeed there were duplicated httpservice calls to populate the tileList. One from the creationComplete event and another from a 'show' event. The result was that there were 2 rapid-fire successive calls to update the dataProvider. Apparently this created a problem with the indexing of the list items creating all kinds of havoc. drag and drop did not work - clicking an item would not produce a 'selection' or create selectedItem. what a mess Once I removed the duplication the tileList performs totally as expected. Thanks for the keen eye Alex ! Alex Harui wrote: can you post a test case? *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Ben Marchbanks *Sent:* Monday, December 10, 2007 8:13 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] TileList drag/drop error yet again I'm back with the same tileList D/D error I reported earlier only this time I am using AC as the dataProvider per recommendations (Alex) - error message is the same dropIndicator.x = cc listItems[rowNum].length listItems[rowNum][colNum] ? listItems[rowNum][colNum].x : colNum * columnWidth; What's interesting is that it seems to be limited to items in the first row. Its basically thumbnail images that the user should be able to re-order. It you select c1 r1 and drag to c2 r1 it immediately throws the error, but if your select c1 r1 and drag down to say r3 then back up to finally drop at c2 r1 it works without error ! BTW I am using the default d/d function - -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] Looking for component to generate PDF files
I recommend PDFlib(.com) Its a robust PDF library with maturity that meets most of the requirements we have for PDF generation. Its not Open Source but worth the money - There are some open source options such as iText for Java which we used for a while until we ran into so issues. I have been happy with PDFlib and it runs on all OS. sprezzatura1 wrote: Does anyone know of a component to create graphics PDF files? We need low-level control to create lines, curves, colors, gradients, etc. This would seem to rule out AlivePDF, LiveCycle, which are text-oriented. The PDF component must run on the client, which eliminates server-based solutions like Apache FOP. It must represent the graphics as vector elements. An image of the graphics is not acceptable as it will be coarse and pixellated when the user zooms in. Thank you. -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] How do you get the Event.COMPLETE to work with Ely's SuperImage?
You might want to look at another reflection component - It works like a charm with or without SuperImage. http://labs.atellis.com/2007/07/11/atellis-reflection-component/ brian.raymes wrote: I am trying to add reflections to a SuperImage, but I don't want to embed them to do it. I am using this reflection component: http://www.wietseveenstra.nl/blog/2007/05/29/reflection-manager-10/ http://www.wietseveenstra.nl/blog/2007/05/29/reflection-manager-10/ If you don't embed the image, an InvalidBitmap error gets thrown. When/how does SuperImage fire its complete event? Any thoughts? -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
[flexcoders] TileList drag/drop error yet again
I'm back with the same tileList D/D error I reported earlier only this time I am using AC as the dataProvider per recommendations (Alex) - error message is the same dropIndicator.x = cc listItems[rowNum].length listItems[rowNum][colNum] ? listItems[rowNum][colNum].x : colNum * columnWidth; What's interesting is that it seems to be limited to items in the first row. Its basically thumbnail images that the user should be able to re-order. It you select c1 r1 and drag to c2 r1 it immediately throws the error, but if your select c1 r1 and drag down to say r3 then back up to finally drop at c2 r1 it works without error ! BTW I am using the default d/d function -
Re: [flexcoders] TitleWindow and Open/Close Effect
hideEffect will not work for titleWindow. You should create your effect and define - effectEnd=PopUpManager.removePopUp(this) Then your titleWindow close event should be close={myEffect} This way the effect runs and then the window closes. reflexactions wrote: I was trying to have an effect run when I open and close a TitleWindow. I set the showEffect/hideEffect but nothing happens. Is this the wrong effect property for open and closing a window? If so what effect property should I use ... or how can I do this? tks -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] Re: Preserving History when leaving and returning to Flex
What about using local shared object, is that an option for you ? byte.sensei wrote: While working on a small test case for this, I realized what was happening. The pages beyond the Login screen have a security check that looks for a user_id variable (stored in the application model). When the user leaves the Flex app and then returns, the model variables are lost and so trying to go directly back to the page results in the user being redirected to the Login page. So, I'm now storing some session info in the database then passing the session id back into the Flex app and having that re-establish the necessary model variables so that the user ends up back on the correct page. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Flex should reload the saved state. Can you create a small test case? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of byte.sensei Sent: Wednesday, November 28, 2007 2:37 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Preserving History when leaving and returning to Flex I have History Management working on a Flex app (ViewStack), but then I've got a NavigateToURL() call that leaves the Flex app and opens an external URL. The problem is, when you click Back after leaving Flex, it looks like the History Manager no longer works and it just returns you to the default/initial state instead of the saved/history state. I noticed the URL still has the state URL variables/data in it (e.g. #app=a1ceeac2-selectedIndex=4) but Flex seems to be ignoring this URL data and just loads the default/initial state. Is there a way to have Flex reload the saved state when returning from an external URL? To say this another way, assume the following path of a User: 1) Login Page 2) Main Menu Page 3) Product Category Page 4) Product Detail Page 5) External Product Link [NOT Flex -- uses NavigateToURL()] The forward/back buttons work fine between #1 and #4, but once the user navigates to #5, the back button returns them to #1 instead of #4 -- but I want to take the user back to #4. Note: one workaround to this would be to open a new window by using _blank for the target of NavigateToURL(), but in my scenario this is undesirable. -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
[flexcoders] FlexBook anyone ?
I am trying to implement the animated book from Quietly Scheming and have been successful to a point. If I set the book size and leave it static it works beautifully - however my content can vary in size so I have a requirement to be able to resize the book based on content. Dynamically resizing the book is not a problem, however any resizing performed after initializing really destroys the page caching . Pages appear and disappear during page tease / turns events and general page mayhem breaks out ! Anyone with FlexBook experience ?? Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
[flexcoders] SOLVED Re: FlexBook anyone ?
Once I changed the calculated resize of the book to an [integer] instead of a [number] all the children began to play together nicely ! --- In flexcoders@yahoogroups.com, Ben Marchbanks [EMAIL PROTECTED] wrote: I am trying to implement the animated book from Quietly Scheming and have been successful to a point. If I set the book size and leave it static it works beautifully - however my content can vary in size so I have a requirement to be able to resize the book based on content. Dynamically resizing the book is not a problem, however any resizing performed after initializing really destroys the page caching . Pages appear and disappear during page tease / turns events and general page mayhem breaks out ! Anyone with FlexBook experience ?? Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] Re: Viewstack problems
I found that using a bound Model component is a great solution to populating and updating data displayed on viewstack children. You can update the Model and when the viewstack child is visible the modified data will be present. for example: Create a Model mx:Model id=myModel record FirstNameHomer/FirstName /record /mx:Model Add a text input to a viewstack child canvas mx:TextInput text={myModel.FirstName} / Then modify model using AS myModel.FirstName = Bart You can also bind your Model to an ArrayCollection, XML, or XMLListCollection data source to populate it initially. mx:Model id=myModel record FirstName{myDataSource.FirstName}/FirstName /record /mx:Model Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 johantrax wrote: First lets explain the problem: A viewstack normally doesn't create all it's children, but only the visible ones. This has been done in an ateempt to minimize the startuptime of your application. Possible solution: 1. Ask yourself if you really need to write data on something that is not visible. It's not like someone is going to notice it... Try if you could use the initialize/show-events of the child itself to do this. 2. If you can't delegate the writing, and you do have to write to an invisible component. Do as Josh suggested and set the creationPlicy of the viewstack and its children to all. This should let the viewstack create it's children, even if they're not visible. --jeetee --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Rafael Faria [EMAIL PROTECTED] wrote: Hello all, I'm having a big trouble with a viewstack. I have this code mx:ViewStack id=vstack width=800 height=400 mx:Canvas id=step1 label=donor information mx:HBox mx:Canvas id=step1_1 width=390 / mx:Canvas id=step1_2 width=375 / /mx:HBox /mx:Canvas mx:Canvas id=step2 label=call status mx:HBox mx:Canvas id=step2_1 width=390 / mx:Canvas id=step2_2 width=375 / /mx:HBox /mx:Canvas mx:Canvas id=step3 label=contribution information mx:HBox mx:Canvas id=step3_1 width=390 / mx:Canvas id=step3_2 width=375 / /mx:HBox /mx:Canvas /mx:ViewStack and an init actionscript which i'm just trying to trace the elements to see what happens and ends up getting null for some elements that i need to work with. private function init():void { trace(step1); // return the object trace(step1_1); // return the object trace(step1_2); // return the object trace(step2); // return the object trace(step2_1); // return NULL trace(step2_2); // return NULL trace(step3) // return the object trace(step3_1); // return NULL trace(step3_2); // return NULL } The problem is that i really need to work with the canvas on the initialization. I can write dynamically on the canvas (step2 and step3) but weirdly i can't get the objects inside them. Any guru to help me out with that?! Raf -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
[flexcoders] Traverse a Model
I have a model which I would like to walk to get key/values to update the server with any changes. The following works fine to get each value,but is there a simple way to get the key as well ? for each(var item in myModel){ trace(item) }
[flexcoders] Flex / AIR and Google OpenSocial
Are there any opportunities to utilize Google's new OpenSocial with Flex / AIR ? Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 --
[flexcoders] Smooth Scrolling Effect with Viewstack
I have a viewstack component for which I would like a smooth scrolling effect as a child transition. Currently I am using a moveEffect to slide one child out and slide the next child in. This works okay but there is a considerable gap between the old and the new. I would prefer a more fluid transition where both children are technically visible (adjoining) during the change. Is there a method using viewstack or other layout component to produce a continuous scrolling type effect between a set of separate custom components ? -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] Canvas layout / style
I've noticed this problem with rounded corners too and it just occurred to me that maybe applying a blendMode setting would offer a remedy ? Giles Roadnight wrote: Hi All I want to create a Canvas with rounded corners and a drop shadow (easy) and with a bar at the top and bottom (similar to the title bar at the top of a panel) that contain text and buttons. I tried this to begin with by creating a canvas with rounded corners and putting another canvas as a bar at the top and bottom which was a darker color. The inner canvases both bled outside the rounded corners though so I ended up with a square corner again. Secondly I tried 1 canvas for the middle with border sides set to left right and 1 canvas at the top and bottom with a fill color and with rounded corners. I set border sides on the top one to left top right. This worked in so far as I had a solid border going round the edge of the box but the fill in the top and bottom canvases had rounded corners at all 4 corners, not just the 2 corners where there were actually corners. The obvious way to do it is to have an image as a background with rounded corners and shadows as part of the image, I'd rather do it with styles if I could though. Thanks -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] There has been an I/O Error: Error #2038
FileUpload is probably one of the hardest functions to troubleshoot in Flex owing to the lack of detail. My personal wishlist is for Adobe to enhance upload function with robust error details. Even if only returning the literal error as output by the server. Meanwhile the method I use is to first develop the upload using an HTML form which can reveal error details. Then migrate to Flex implementation once all the kinks have been worked out. FlexCoders wrote: FLEX 2 I have a Flex upload project that gets this error at the end. It actually uploads the file but at the end it tosses out this error. I am not sure why this is happening. I will upload a file and it will complete. Then it will toss out the error: There has been an I/O Error: Error #2038 I click Okay and then the error: There has been an http error: status code 500 I am running this application on Windows server 2003 enterprise. IIS 6 Anyone know why this is happening? -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] Visual modelling program - which direction should I take? Z-order info?
You might take a look at www.mindomo.com for ideas.. Josh McDonald wrote: Hi Guys, I'm about to start working on a program to display some XML data as a visual model. It requires various boxes-within-boxes and connecting lines. Before I go and do it all wrong, I have a few concerns and questions for anybody who's done this sort of thing before. Should I be creating custom nested components, or just drawing on a big canvas? If I'm using components, how will I layer the connecting lines above the other components? Is there an easily accessible universal x/y/z position system to access those details, or will I be going up various trees adding top/left offsets until I get to the Application object? Are there any examples or articles on doing this sort of thing I should look at? Any suggestions or pointers to similar projects would definitely be appreciated! Cheers, -Josh -- This is crazy! Why are we talking about going to bed with Wilma Flintstone... She'll never leave Fred and we know it. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] mailto:josh%40gfunk007.com -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] Desde pagina Flex = mostrar archivo PDF (From Flex to PDF)
I suggest using a PDF library API for archive (PDF/A). Adobe LCDS, as I understand it, produces PDF/X or XML based PDF documents which while the implementation maybe easier the resulting PDF have certain limitations. I recommend PDFlib as a robust PDF api with ability to produce more mainstream PDF format and allow many more opportunities for interactive features and annotations. Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 [EMAIL PROTECTED] wrote: Estimados Listeros: Tengo una aplicacion Web desarrollada con JavaServerFaces (JSF), y poco a poco voy incorporando paginas jsp que contienen aplicaciones Flex., por lo tanto, en todo lo nuevo que tengo que ir desarrollando, voy incorporando Flex a mis sistemas. Ahora bien, se me presento un problema. Tengo una pagina jsp, la cual esta integramente ocupada por una aplicacion Flex, la cual muestra un Datagrid con mucha información. El control Datagrid integro quiero imprimir, pero viendo (con mi poco conocimiento y tiempo) que PrintDataGrid y PrintJob son muy , pero muy rudimentarios, es que decidí agregar un boton Imprimir, el cual necesito que muestre un archivo PDF, que genero dinamicamnete con Java., con la información suministrada por el DataGrid de Flex. Como puedo hacer para mostrar el archivo PDF en Flex ? Muchas Gracias por todo Dios los Bendiga Pablo __ Preguntá. Respondé. Descubrí. Todo lo que querías saber, y lo que ni imaginabas, está en Yahoo! Respuestas (Beta). ¡Probalo ya! http://www.yahoo.com.ar/respuestas http://www.yahoo.com.ar/respuestas -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] Re: FLEX / AIR app with touchscreen
I admire Doug's ingenuity but I am more interested in how AS would handle multiple mouseDown events using multi-touch device. I'll leave the hardware development to those better qualified 8^). Abyss Knight wrote: It would have to be a multi-touch screen/surface. Doug McCune would be better suited to answer this question, as I'm pretty sure he's working on this. See the comments section over at: http://dougmccune.com/blog/2007/09/16/my-new-toy/ http://dougmccune.com/blog/2007/09/16/my-new-toy/ -- William --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Ben Marchbanks [EMAIL PROTECTED] wrote: Anyone know if it would be possible to produce controls using 2 simulataneous mouseDown events, such as touching the screen with 2 finger and pinching to zoom-in, given a touchscreen device running Flashplayer ? -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
[flexcoders] FLEX / AIR app with touchscreen
Anyone know if it would be possible to produce controls using 2 simulataneous mouseDown events, such as touching the screen with 2 finger and pinching to zoom-in, given a touchscreen device running Flashplayer ?
Re: [flexcoders] RIA Developer Camp at Adobe San Francisco
Yes, another vote for Atlanta.. Douglas Knudsen wrote: Atlanta!?!? :) DK On 10/30/07, *Matt Chotin* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: There's hopefully going to be a Flex Camp in Boston pretty soon. *From:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com] *On Behalf Of *superabe superabe *Sent:* Tuesday, October 30, 2007 4:02 AM *To:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] RIA Developer Camp at Adobe San Francisco any chance you can hold one of these on the East Coast? out of your Newton office maybe ? - superabe On 10/30/07, *Matt Chotin* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: We're having a Developer Camp at Adobe in our San Francisco office on Monday November 5th from 4-8pm. Registration is free but is limited. For more info and to register please visit http://www.eventsadobe.com/devcamp/index.html. http://www.eventsadobe.com/devcamp/index.html. Matt -- Douglas Knudsen http://www.cubicleman.com http://www.cubicleman.com this is my signature, like it? -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] Re: How do you add more fonts to the drop down selection of a RichTextEditor ?
Here's what works for me - each font is defined separately @font-face { src: URL(assets/fonts/BLACKJAR.TTF); fontFamily: BLACKJAR; fontWeight: normal; fontStyle: normal; } @font-face { src: URL(assets/fonts/Gf Script No 4.ttf); fontFamily: Gf Script No 4; fontWeight: normal; fontStyle: normal; } @font-face { src: URL(assets/fonts/lte52125.TTF); fontFamily: lte52125; fontWeight: normal; fontStyle: normal; } helihobby wrote: I tried the code and I do see in the drop down combo list the complete Fonts which are available but when I select them the RichTextEditor does not render the Font. Here is my code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute creationComplete=init() mx:RichTextEditor id=re x=184 y=78 title=Title/ mx:Style source=style/main.css/ mx:Script ![CDATA[ private function init():void { re.fontFamilyArray = re.fontFamilyArray = [M Regular,Machinegun,MailBomb,Mandingo]; } ]] /mx:Script mx:TabNavigator/ mx:Tree/ /mx:Application === AND HERE IS MY CSS: === * // // Global styles // */ .global { highlightAlphas: .5, .25; borderColor: #939A9D; headerColors: #A65904, #E68701; themeColor: #75B1CE; rollOverColor: #D6E6EE; selectionColor: #B8D5E4; } @font-face { src:url('./fonts/tahoma.ttf'); src:url('./fonts/M Regular.ttf'); src:url('./fonts/Machinegun.ttf'); src:url('./fonts/MailBomb.ttf'); src:url('./fonts/Mandingo.ttf'); src:url('./fonts/Manual SSi Italic.ttf'); src:url('./fonts/Marker Board Display SSi.ttf'); src:url('./fonts/MarkerFeltThin-Plain Regular.ttf'); src:url('./fonts/MarkerFeltThin.ttf'); src:url('./fonts/Market Regular.ttf'); src:url('./fonts/Marquee Moon.ttf'); src:url('./fonts/Masterforce Solid.ttf'); src:url('./fonts/Mattbats.ttf'); src:url('./fonts/Menta Display SSi.ttf'); src:url('./fonts/Mercat Display SSi Italic.ttf'); src:url('./fonts/Mexacali.ttf'); src:url('./fonts/micross.ttf'); src:url('./fonts/Microstyle ATT Bold.ttf'); src:url('./fonts/Mikey Jax.ttf'); src:url('./fonts/Milkfresh.ttf'); src:url('./fonts/milky well.ttf'); src:url('./fonts/Misconstrued.ttf'); src:url('./fonts/Miserable.ttf'); src:url('./fonts/MisterBig Regular.ttf'); src:url('./fonts/Mistwetter.ttf'); src:url('./fonts/Mixed up.ttf'); src:url('./fonts/ModernTypewriterCond-Bold.ttf'); src:url('./fonts/MOLTOR3.ttf'); src:url('./fonts/MONKEY-F.ttf'); src:url('./fonts/Monotone Regular.ttf'); src:url('./fonts/Monsters Attack!.ttf'); src:url('./fonts/moonie.ttf'); src:url('./fonts/MotterFemD.ttf'); src:url('./fonts/Munsterm.ttf'); src:url('./fonts/Muse Display SSi.ttf'); src:url('./fonts/MVSans Bold.ttf'); src:url('./fonts/Myopia.ttf'); fontFamily: MyFonts; } Please Help this thing is driving me nuts :( Thank you for all the help, Sean. -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
[flexcoders] Capture literal HTTPservice error returned from server
I would like to capture the literal error message returned from a server when making an HTTPservice request with resultFormat = e4x. Using fault allows me to handle the error gracefully - say when the result is not proper XML. But I would like to view the full error message from the server, for example, if there's a SQL statement error etc.. I realize I can switch the resultFormat to text but this is a real pain to switch back and forth during testing.
[flexcoders] Item Renderer to Display Font List
I am using the following item render to display a font list and render each in its particular font style. The dataProvider is XML and the itemRenderer is used for a comboBox. The problem is the application of the font style is inconsistent - each time the comboBox is opened the items are rendered and may or may not have a font style - sometimes even a style from another item in the list. How can I make this display list more bullet-proof ? ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; width=150 height=20 creationComplete = doInit() horizontalGap=0 horizontalAlign=center verticalAlign=middle horizontalScrollPolicy=off backgroundColor=#c0c0c0 mx:Script ![CDATA[ private function doInit():void{ var f = data.family fontI.setStyle(fontFamily, f) trace(f) } ]] /mx:Script mx:Text text = {data.label} id=fontI / /mx:HBox Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] Item Renderer to Display Font List
Actually found the solution - set the rowCount of the comboBox to be equal to the number of items in the dataProvider rowCount = {fontsList.length()} seems to have resolved the issue. Ben Marchbanks wrote: I am using the following item render to display a font list and render each in its particular font style. The dataProvider is XML and the itemRenderer is used for a comboBox. The problem is the application of the font style is inconsistent - each time the comboBox is opened the items are rendered and may or may not have a font style - sometimes even a style from another item in the list. How can I make this display list more bullet-proof ? ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml width=150 height=20 creationComplete = doInit() horizontalGap=0 horizontalAlign=center verticalAlign=middle horizontalScrollPolicy=off backgroundColor=#c0c0c0 mx:Script ![CDATA[ private function doInit():void{ var f = data.family fontI.setStyle(fontFamily, f) trace(f) } ]] /mx:Script mx:Text text = {data.label} id=fontI / /mx:HBox Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com http://www.magazooms.com Greenville, SC 864.284.9918 -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com http://www.magazooms.com Greenville, SC 864.284.9918 -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
[flexcoders] Re: ColorPicker colorField
I'm not having much luck either. My colorField is derived from e4x formatted result to query of a colorChart table. Here are all the particulars. mx:ColorPicker x=271 y=352 width=47 height=52 change=colorize(Number(colorPicker.value)) id=colorPicker dataProvider={colorsList} colorField=HEX columnCount=6 swatchHeight=50 swatchWidth=50 labelField=RGB/ Here is a sample record record recordID20070923173348/recordID RGB13395456/RGB RGBtext204,102,0/RGBtext CMYK/ name/ dateStamp2007-09-24/dateStamp R204/R G102/G B0/B HEX0xCC6600/HEX /record defining the dataProvider to the colorPicker does produce the correct number of color swatches but does not use the color value from the designated colorField. What am I missing here ? --- In flexcoders@yahoogroups.com, gary_mangum [EMAIL PROTECTED] wrote: Can anyone give me an example of how to use the colorField property of the ColorPicker component? I want to change the palette of available colors that the user can pick from in the dropdown. It looks like you can pass an Array of hexidecimal values or something, but I have been unable to get it working. I did notice that it works in conjunction with the dataProvider and it looks like the colorField property is a string specifying an array inside of the dataProvider. I tried this out as well with no success. Thanks for any help!
[flexcoders] TileList problem - here we go again - drag/drop error
I have a TileList with an e4x dataProvider - I want to simply allow the user to re-order the list using builtin drag and drop. I enabled the list with - drag enabled, drop enabled, move enabled and as soon as an item is dragged it throws an error at the following line in TileBase.as dropIndicator.x = cc listItems[rowNum].length listItems[rowNum][colNum] ? listItems[rowNum][colNum].x : colNum * columnWidth; Any suggestions ? Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] Re: ColorPicker colorField
I used a workaround as follows that allowed me to overcome this bug private function setColorField():void{ var L = colorsList var cArr:Array = new Array() for(var i:int = 0; i L.length();i++){ cArr.push(L[i].HEX.toString()) } myColorPicker.dataProvider = cArr; } Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 gary_mangum wrote: Alex, is there a way to successfully use the colorField right now, or is this completely broken? If it is usable, do you have an example of how to use it? Thanks, Gary --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Unfortunately, the code looks like it doesn't handle xml. Please file a bug From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of Ben Marchbanks Sent: Monday, September 24, 2007 7:40 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: ColorPicker colorField I'm not having much luck either. My colorField is derived from e4x formatted result to query of a colorChart table. Here are all the particulars. mx:ColorPicker x=271 y=352 width=47 height=52 change=colorize(Number(colorPicker.value)) id=colorPicker dataProvider={colorsList} colorField=HEX columnCount=6 swatchHeight=50 swatchWidth=50 labelField=RGB/ Here is a sample record record recordID20070923173348/recordID RGB13395456/RGB RGBtext204,102,0/RGBtext CMYK/ name/ dateStamp2007-09-24/dateStamp R204/R G102/G B0/B HEX0xCC6600/HEX /record defining the dataProvider to the colorPicker does produce the correct number of color swatches but does not use the color value from the designated colorField. What am I missing here ? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , gary_mangum garym@ wrote: Can anyone give me an example of how to use the colorField property of the ColorPicker component? I want to change the palette of available colors that the user can pick from in the dropdown. It looks like you can pass an Array of hexidecimal values or something, but I have been unable to get it working. I did notice that it works in conjunction with the dataProvider and it looks like the colorField property is a string specifying an array inside of the dataProvider. I tried this out as well with no success. Thanks for any help! -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] TileList problem - here we go again - drag/drop error
Leave it to me - I 'm an XML terrorist ! Once Tracy showed me how to use it I became a fanatic. Okay - I'll remove the move.enabled so then would a simple solution be to convert XML to AC to avoid having to write all the custom D/D ? or is this just a fact of life ? Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 Alex Harui wrote: Geez, Ben, you keep finding all the ways the XML doesn’t behave like normal objects. I think you’ll have to handle dragDrop and dragComplete events yourself, calling preventDefault(), and handling the move differently. You’ll see code that does this in Tree. A DD move adds to the destination then removes from the source. With objects in an array, that works. In XML, the remove actually removes it from the parent which is not what you want. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Ben Marchbanks *Sent:* Monday, September 24, 2007 10:43 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] TileList problem - here we go again - drag/drop error I have a TileList with an e4x dataProvider - I want to simply allow the user to re-order the list using builtin drag and drop. I enabled the list with - drag enabled, drop enabled, move enabled and as soon as an item is dragged it throws an error at the following line in TileBase.as dropIndicator.x = cc listItems[rowNum].length listItems[rowNum][colNum] ? listItems[rowNum][colNum].x : colNum * columnWidth; Any suggestions ? Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com http://www.magazooms.com Greenville, SC 864.284.9918 -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Anomalies with ViewStacks
Just wondering if anyone else has experienced weird behavior with viewstacks and their children. I have had several instances where a list, dataGrid or TileList placed on a canvas (viewstack child) would become somewhat disabled - For example: my last particular case was a TileList that performed as expected during development but then at one point the selectedIndex property totally disappeared, no longer would it allow you to select any item in the list. I copied the same TileList to a new component and it worked flawlessly. I chalked it up to corruption and replaced the bad viewstack canvas with a separate component (canvas) containing the TileList. I have seen this several times on a couple of different projects. Has anyone else run across this issue ? I wonder if its related to where the TileList is built - directly on a viewstack canvas versus built in a separate component and then added to the viewstack ? Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com
Re: [flexcoders] XMLList
Interest to know if anyone has been able to make this work. I struggled with trying to use variables in filtering XMLList without success. Alex Harui wrote: ([variable] == “Y”) *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *figo2324 *Sent:* Friday, September 14, 2007 2:46 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] XMLList Hi people, i need your help, i have a xmllist object so i need to query this xmllist, im doing it in this way var jo:XMLList=myDataProvider.data.item.(koala==Y); where myDataProvider.data = data item pruebaccct/prueba koalaX/koala /item item pruebasambil/prueba koalaY/koala /item /data then the structure of this xmllist can be changes it means that when i wanna to query it using this sentences var jo:XMLList=myDataProvider.data.item.(koala==Y); The param koala have been changed, then i need that this param be a variable so i dont know how to do that... for example var variable:String=koala;// var jo:XMLList=myDataProvider.data.item.(variable==Y); but it doesnt works, i dont know how to pass a variable in this sentence, some suggestion please... thanks so much coders -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] TileList Binding Issue
I ran into the same issue and never was able to resolve it. The only way I could force the TileList to refresh was to force it to re- render using a resize effect. - made the list 0 width and then resize reversed back to original width. I was using drag and drop to populate one TileList from another and then editing items in the new list. None of the suggestions from several experts made any difference. Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 Alex Harui wrote: Do you have a custom renderer? Maybe you can post its code. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Adnan Doric *Sent:* Wednesday, September 12, 2007 12:37 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] TileList Binding Issue I tried this with no success, my TileList items are still not updated. Maybe something is broken in TileList binding. Thank you :) Jon Bradley wrote: Something like the following process: myCollection.enableAutoUpdate(); myCollection.itemUpdated(someItem, someProperty,someOldValue,someNewValue); myCollection.disableAutoUpdate(); myColleciton.refresh(); // just to be sure I have it working fine with the itemUpdated and refresh. I usually don't bother with the auto update stuff - but it might be needed for your scenario. From what I understand, refresh() should always cause a data binding event for the TileList to update it's data. good luck, jon On Sep 12, 2007, at 12:47 PM, Adnan Doric wrote: Hello all, I have a TileList binded to an ArrayCollection. If I add more items to the ArrayCollection the TileList updates, but if I try to change an already existing item in the ArrayCollection, the TileList doesn't change. I tried with List component and I don't have this problem, the view is correctly updated. Is there something I'm doing wrong or not doing :) ? Thank you for your response -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] Filtering XML best practices
Related to filtering - it would be nice if one could sort XML using something like var newXMLList = myXMLList.(myField.sort()) Otherwise is there any shortcut method for sorting XML on client-side ?? Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 Tracy Spratt wrote: I would create a [Bindable] instance variable typed as XMLListCollection and bind the dg.dataProvider to that. Then, in the button handlers, set the bound variable: var xlFilteredData:XMLList = userXML.(category=='guest'); _xlcData = new XMLListCollection(xlFilteredData); Tracy *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *donvoltz *Sent:* Tuesday, September 11, 2007 10:21 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Filtering XML best practices Hi Everyone, I have been using a master XML file containing about 120 usernames and additional information. Currently using custom renderers and a datagrid, I am displaying all of the users. What I would like to do is add buttons along the top of the datgrid to filter this XML into 4 - 5 different groups based on a category designation in the XML. My question about this is what is the best practice way to do this? Should I create a new XMLListCollection that filters the master list for each of the categories or can I add e4x filtering directly into the databinding property of the datagrid using actionscript and a custom event when one of the filter buttons is pressed. I have not been able to get this second method to work so I am unsure if this is possible. (this is what I have tried to do in the datagrid tag dataProvider = {userXML.(category=='guest')}) Thanks for any help and guidance Sincerely, Don -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
[flexcoders] Using viewStack as dataProvider for List
Is it possible to use a viewStack as a dataProvider for a List or DataGrid ?. TabBar, LinkBar, etc.. have limitations that I could resolve by using itemRenderers and a list. I am not having much luck experimenting with the idea.
[flexcoders] Global variable - Best Practice
I have an application in which I current set a [Bindable] variable baseURL to the application URL. I have been accessing this variable from other components in the app using this.parentDocument.baseURL. This is a clunky solution since components may have their own children so I windup with this.parentDocument.parentDocument.baseURL - What is the best way to create and reference an application wide variable ?
[flexcoders] file not included in bin
I have a project that for some reason stopped including a file in the bin folder when debugging or doing a clean build. In particular the style.css. Now I have to manually add it to the 'bin' folder each time I update the web server. here is a snippet of my project folder Project assets images style.css bin component1 component2 component3 Is there a config setting that controls this ???
Re: [flexcoders] SetFocus() question
Change the setFocus() call to be triggered by the alert close event rather than being called along with the Alert.show. Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 candysmate wrote: My application contains a series of textInputs. If my user clicks on a textInput, which is out of the intended application-flow sequence, an Alert pops up. The function which triggers the alert also sets focus to the correct textInput. However, when the user closes the alert, the focus jumps back to the (incorrect) textInput which triggered the alert. Hoe can I prevent this please? -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
[flexcoders] vulgar fractions - display as ?
What's the best way to handle vulgar fractions so when they return from the database they display properly? I have a UI that will convert text strings to vulgar fractions when a user enters 1/2 for example. This is a client requirement and I use AS to do the substitution. They are then pushed to mySQL via PHP. They display fine when viewing using the mySQL admin panel (HTML) but once they are sent to the Flex app as XML they are not handled properly upon the return and become ?. What's the best method for encoding to preserve the fractions ?
Re: [flexcoders] vulgar fractions - display as ?
been there, done that... Gordon Smith wrote: My guess is that your XML should use UTF-8 encoding. - Gordon *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Ben Marchbanks *Sent:* Thursday, August 30, 2007 9:09 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] vulgar fractions - display as ? What's the best way to handle vulgar fractions so when they return from the database they display properly? I have a UI that will convert text strings to vulgar fractions when a user enters 1/2 for example. This is a client requirement and I use AS to do the substitution. They are then pushed to mySQL via PHP. They display fine when viewing using the mySQL admin panel (HTML) but once they are sent to the Flex app as XML they are not handled properly upon the return and become ?. What's the best method for encoding to preserve the fractions ? -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] vulgar fractions - display as ?
Database is set to UTF-8 - at every point where unicode should be set, it is UTF-8 Paul Hastings wrote: Ben Marchbanks wrote: been there, done that ... and the db itself? that the db tools can see these displayed correctly doesn't mean the data is unicode (especially w/mysql PHP being involved). -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
[flexcoders] What's the secret - close button TitleWindow
Okay I give up. How you you make the close button ALWAYS visible for a titleWindow ? I have defined the custom icon for all states yet the button only appears on mouseOver. The user needs to know there's a close button there without having to mouseOver don't you think ?
Re: [flexcoders] What's the secret - close button TitleWindow
Okay - here's a clue - I was using swf as skins for the button - when I changed to png as skins it works as expected. Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 Alex Harui wrote: Did you try your skins on a regular button? *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Ben Marchbanks *Sent:* Tuesday, August 28, 2007 11:57 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] What's the secret - close button TitleWindow Okay I give up. How you you make the close button ALWAYS visible for a titleWindow ? I have defined the custom icon for all states yet the button only appears on mouseOver. The user needs to know there's a close button there without having to mouseOver don't you think ? -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] What's the secret - close button TitleWindow
You are probably right because once it renders after a mouseOver it remains during all states. Alex Harui wrote: You’ve probably got a timing issue. Swf skins can take an extra frame to establish their size. The TW code probably measures too soon and ends up at zero or causes the swf to render funny. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Ben Marchbanks *Sent:* Tuesday, August 28, 2007 12:22 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] What's the secret - close button TitleWindow Okay - here's a clue - I was using swf as skins for the button - when I changed to png as skins it works as expected. Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com http://www.magazooms.com Greenville, SC 864.284.9918 Alex Harui wrote: Did you try your skins on a regular button? -- *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] *On Behalf Of *Ben Marchbanks *Sent:* Tuesday, August 28, 2007 11:57 AM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* [flexcoders] What's the secret - close button TitleWindow Okay I give up. How you you make the close button ALWAYS visible for a titleWindow ? I have defined the custom icon for all states yet the button only appears on mouseOver. The user needs to know there's a close button there without having to mouseOver don't you think ? -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com http://www.magazooms.com Greenville, SC 864.284.9918 -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] PDF in Flex
I would be shocked if the next release of Flex did not include support of PDF rendering as has been announced for production release of Apollo. It just makes too much sense to add it to the sister product as well. Harald Dehn wrote: Not all of our clients want to install the Apollo runtime. For the adobe folks, it would be fantastic , when a future version of the flash-player could directly render (with the help of an installed acrobat reader on the client maschine) pdf-inside a flash movie… Harald From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas Sent: Dienstag, 5. Juni 2007 15:21 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] PDF in Flex You should at Adobe Apollo for that (Flash Player for the desktop), it will have that. Dimitrios Gianninas Developer Optimal Payments Inc. _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Harald Dehn Sent: Tuesday, June 05, 2007 4:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] PDF in Flex Hi, are there any plans to display PDF-documents directly in a future version of the flash-player. It should be possible for the flash-player to detect an installed acrobat reader on the client machine and use it for rendering. This would helps us a lot to improve the user experience of our application. Thanks, Harald AVIS IMPORTANT WARNING Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur. This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] PDF in Flex
I doubt that adding PDF support to Flex would come at such an expense. Apollo requires Adobe Reader for PDF rendering which does all the heavy lifting. Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 Paul deCoursey wrote: Tom Chiverton wrote: On Thursday 07 Jun 2007, Ben Marchbanks wrote: I would be shocked if the next release of Flex did not include support of PDF rendering as has been announced for production release of Apollo. It just makes too much sense to add it to the sister product as well. What, add 10meg of bloat to the Flash player ? Lets not. I don't think it would add 10MB of bloat to the player. Adding simple PDF 1.3 or 1.4 support would maybe add 1MB if done correctly. I'd imagine you could build a simple display component for Flex that would easily be less that 100k. If I had the time I would attempt it myself, I'm mostly afraid that Adobe would just go ahead and do it before I could display my success. paul -- 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 -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Convert htmlText to plain text
Thanks Daniel - your solution is really much cleaner - works for me ! Daniel Freiman wrote: I doubt it's the most efficient way, but a really easy way should be this: function removeHTMLTags(str:String):String { var tf:TextField = new TextField(); tf.htmlText = str; return tf.text; } Dan Freiman nondocs http://nondocs.blogspot.com On 6/4/07, pdflibpilot [EMAIL PROTECTED] wrote: I saw a couple of post about removing all the formatting tags from htmlText and came up with this solution that uses RegExp. I am not completely satisfied with the form though it works. If anyone has any suggestions for improvement or if there is an easier way that I am missing let me know. function removeHTMLTags(Str):String{ var matchArr = Str.match(/[a-zA-Z0-9\/][^]*/g) // returns raw text but with a leading '' and trailing '' // then loop to remove the brackets and adds a space to the text var newStr:String = for each(var matchItem in matchArr){ var mStr = matchItem.substring(1,matchItem.length-1)+ newStr += mStr } return newStr } I had no luck using a replace(regX,) to try and remove all xxx tags for some reason. Maybe someone can shed some light on that too. -- 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 -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] [SOLVED] itemRenderer null object error
After experimenting I found the solution was to change the event trigger from initialize to render. Happy to have resolved the problem but still puzzled why initialize worked for one itemRenderer and not the other since from all appearances the implementations are identical ??? pdflibpilot wrote: I am so happy I was able to create an itemRenderer with an initialize event that dynamically set the style for each item based on the source data. This worked flawlessly for one HorizontalList ( List A) so I tried to implement the same on a TileList (List B) on the same layout. They have virtually the same dataProvider - List B items are originally drag/dropped to List A. These list are nearly identical in every way yet when the event fires for the itemRenderer in List B it fails with null object error. It seems that the data is not available when the event dispatches. I am at a loss as to why it works for one list and not the other. The data used by the event is not null when it renders since all the items (data) are accounted for. here my itemRenderer code that works - ?xml version=1.0 encoding=utf-8? !-- itemRenderers\navScreenRender.mxml -- mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=200 height=200 horizontalScrollPolicy=off verticalScrollPolicy=off borderStyle=solid backgroundImage=assets/images/{data.imageID} alpha=1.0 backgroundAlpha=1.0 borderColor=#33 mx:Script ![CDATA[ private function setContentButton(event:Event,V):void{ var e = event.currentTarget if(V==''){ e.styleName = 'customcontentbuttonOff' e.alpha = 1.0 e.toolTip = Content Editor is not enabled for this screen - click to complete the setup } else if(V!=(preset)){ e.styleName = 'customcontentbuttonOn' e.alpha = 1.0 e.toolTip = Content Editor is enabled for this screen - click to change the setup } else if(V==(preset)){ e.alpha = 0.0 } } ]] /mx:Script mx:Text id=layoutLabel text = {data.label} fontSize=8 color=#ff textAlign=center letterSpacing=0 horizontalCenter=0 verticalCenter=-38/ mx:Image source = assets/images/{data.imageID} toolTip={data.description} scaleContent=false alpha=1 visible=false/ mx:Button label={data.displaySeq-0+1} width=25 height=20 cornerRadius=12 styleName=adminbutton fontWeight=bold fontSize=9 verticalCenter=20 horizontalCenter=0/ mx:Button id=contentButton initialize={setContentButton(event,data.contentLocation)} label=C width=18 height=18 cornerRadius=12 styleName=customcontentbuttonOff fontWeight=bold fontSize=10 verticalCenter=-1 horizontalCenter=0 alpha=1.0/ /mx:Canvas -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] Re: [SOLVED] itemRenderer null object error
So what would be an alternative ?? Is it best practice to create IRs using AS3 ? I am all for whatever works consistently. If I am pushing the envelop trying to use an MXML component as an Item Renderer and adding events to produce dynamic styles and object then by all means somebody save me ! Alex Harui wrote: I'd be careful about using render it can get called often. Always assume that data could be null. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Wright Sent: Friday, June 01, 2007 8:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: [SOLVED] itemRenderer null object error Maybe I've a little naive but I like making nearly everything in actionscript 3, especially itemRenderers. Then, you can handle all the positioning and styles in the updateDisplayList function if you want. This generally follows the Adobe approach to it as well. I say start with looking over Adobe code for itemRenderers, and see where you need to add your code to make it do what you want. In the end you avoid listening for events, and not knowing what event is going to fire in what occasion. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Ben Marchbanks [EMAIL PROTECTED] wrote: After experimenting I found the solution was to change the event trigger from initialize to render. Happy to have resolved the problem but still puzzled why initialize worked for one itemRenderer and not the other since from all appearances the implementations are identical ??? pdflibpilot wrote: I am so happy I was able to create an itemRenderer with an initialize event that dynamically set the style for each item based on the source data. This worked flawlessly for one HorizontalList ( List A) so I tried to implement the same on a TileList (List B) on the same layout. They have virtually the same dataProvider - List B items are originally drag/dropped to List A. These list are nearly identical in every way yet when the event fires for the itemRenderer in List B it fails with null object error. It seems that the data is not available when the event dispatches. I am at a loss as to why it works for one list and not the other. The data used by the event is not null when it renders since all the items (data) are accounted for. here my itemRenderer code that works - ?xml version=1.0 encoding=utf-8? !-- itemRenderers\navScreenRender.mxml -- mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml width=200 height=200 horizontalScrollPolicy=off verticalScrollPolicy=off borderStyle=solid backgroundImage=assets/images/{data.imageID} alpha=1.0 backgroundAlpha=1.0 borderColor=#33 mx:Script ![CDATA[ private function setContentButton(event:Event,V):void{ var e = event.currentTarget if(V==''){ e.styleName = 'customcontentbuttonOff' e.alpha = 1.0 e.toolTip = Content Editor is not enabled for this screen - click to complete the setup } else if(V!=(preset)){ e.styleName = 'customcontentbuttonOn' e.alpha = 1.0 e.toolTip = Content Editor is enabled for this screen - click to change the setup } else if(V==(preset)){ e.alpha = 0.0 } } ]] /mx:Script mx:Text id=layoutLabel text = {data.label} fontSize=8 color=#ff textAlign=center letterSpacing=0 horizontalCenter=0 verticalCenter=-38/ mx:Image source = assets/images/{data.imageID} toolTip={data.description} scaleContent=false alpha=1 visible=false/ mx:Button label={data.displaySeq-0+1} width=25 height=20 cornerRadius=12 styleName=adminbutton fontWeight=bold fontSize=9 verticalCenter=20 horizontalCenter=0/ mx:Button id=contentButton initialize={setContentButton(event,data.contentLocation)} label=C width=18 height=18 cornerRadius=12 styleName=customcontentbuttonOff fontWeight=bold fontSize=10 verticalCenter=-1 horizontalCenter=0 alpha=1.0/ /mx:Canvas -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com http://www.magazooms.com Greenville, SC 864.284.9918 -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] scrollToIndex with TileList
As an alternative method could you use myTileList.selectedIndex = (myTileList.dataProvider.length()-1) jthieret wrote: Can't get this to work. The call returns true, saying the list was scrolled, but it hasn't. I have read everything I can find on problems with scrollToIndex in the forums and have tried validateNow(). Nothing works. Anyone else have this problem? Anyone found the fix? The tilelist has 8 rows and 7 columns. Vertical scrollbars are on. six rows are visible in the container and i am trying to scroll down to the 7th row. -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] Struggle with TileList refresh
H after rewriting the process to use XML the result is the same. itemRenderer just will not refresh its display while the underlying XML dataProvider is actually modified. I'm about to abandon the TileList in favor of a AS created display array after spending 2 days on what should be a simple implementation. I still believe there's a simple solution - something I am missing. Tracy Spratt wrote: For dynamically changing data, avoid XMLList since, like Array, its methods do not dispatch the events necessary to update the ui. Instead, use XML, or XMLListCollection. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pdflibpilot Sent: Monday, May 28, 2007 10:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Struggle with TileList refresh I have a tileList that does not update its itemRenderer when the dataProvider is changed. In one scenario I have a drag and drop to the TileList that always updates the dataProvider (XMLList) but will not reflect the change in the display. I can force a refresh by iterating over the XMLList like so after a drag/drop event **workaround*** var n = screensList.length() for(var i:int=0; i n; i++){ IList(navScreens.dataProvider)[i].displaySeq = i } Okay that works, the TileList gets refreshed, although I would expect there is something I am missing that would do this automatically. Scenario 2 I created a new state that presents a small editing window to change the data for items in the same TileList - this works fine for changing the data directly in the dataProvider(XMLList). When the state is returned to baseState the TileList once again does not refresh - If I click on the item just edited and reopen the editor all the changes appear in the editor window !. Trying the workaround used in Scenario 1 does not refresh the list. Is there not a fool-proof method to force TileList to always reflect a change in its dataProvider ? -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] Struggle with TileList refresh
Yes I think my XML is well formed - not sure how to trace the overrides set data() Interestingly I did find that if I change the TileList display dimensions to be very small then restore to original size this obviously forces the itemRenderer to refresh - there's gotta be a better way to force it without using a resize effect. Tracy Spratt wrote: Is the overrides set data() function in the renderer being called when you expect? And you are using the XML api (appendChild, etc.) Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ben Marchbanks Sent: Monday, May 28, 2007 9:21 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Struggle with TileList refresh H after rewriting the process to use XML the result is the same. itemRenderer just will not refresh its display while the underlying XML dataProvider is actually modified. I'm about to abandon the TileList in favor of a AS created display array after spending 2 days on what should be a simple implementation. I still believe there's a simple solution - something I am missing. Tracy Spratt wrote: For dynamically changing data, avoid XMLList since, like Array, its methods do not dispatch the events necessary to update the ui. Instead, use XML, or XMLListCollection. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of pdflibpilot Sent: Monday, May 28, 2007 10:59 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Struggle with TileList refresh I have a tileList that does not update its itemRenderer when the dataProvider is changed. In one scenario I have a drag and drop to the TileList that always updates the dataProvider (XMLList) but will not reflect the change in the display. I can force a refresh by iterating over the XMLList like so after a drag/drop event **workaround*** var n = screensList.length() for(var i:int=0; i n; i++){ IList(navScreens.dataProvider)[i].displaySeq = i } Okay that works, the TileList gets refreshed, although I would expect there is something I am missing that would do this automatically. Scenario 2 I created a new state that presents a small editing window to change the data for items in the same TileList - this works fine for changing the data directly in the dataProvider(XMLList). When the state is returned to baseState the TileList once again does not refresh - If I click on the item just edited and reopen the editor all the changes appear in the editor window !. Trying the workaround used in Scenario 1 does not refresh the list. Is there not a fool-proof method to force TileList to always reflect a change in its dataProvider ? -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] REPOST - Character encoding in a DataGrid
Theres a good article about Best Practices to prevent non-standard characters. http://www.dwheeler.com/essays/quotes-in-html.html Basically they say use UTF-8 consistently. On the data input side we filter to trap irregularities and then likewise use UTF-8 on the presentation side. Another thing to consider is using consistent fonts for both input and output - whenever possible use the same for both cases. This way any irregularities would hopefully be apparent to the user as they enter them. Biggest problem we see if when users copy for Windows (M$) applications into forms - this is usually how non-standard characters get introduced. The article above explains why. Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 zzberthod wrote: Hello, I'm using SOAP services that generate XML result. I need to feed a Flex dynamic list with the XML result. I try to use the XMLCollection AS object and I display it in a DataGrid. But I've got some problems. I've got multiple lines in XML result like this: data First line Second line Third line /data When I display it in a DataGrid row, I see that: First line§backlineSecond line§backlineThird line And I've got other character encoding problems. How can I encode my character strings? Thanks -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] TextArea number of lines.
Look at TextLineMetrics class. It may give you a method to do what you want. Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 uday kiran wrote: How can I restrict the number of lines in Textarea. Is there any built in fumction? Thank you, Uday Kiran. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders]How to parse bad XML into valid XML
I had a similar issue with reading an XML from the filesystem with an Apollo app and getting malformed XML from a know well-formed XML file. If you can view the raw XML using trace() you can usually spot the problem I saw that there was a ? as the first character in the file stream - stripping that out of the string and then converting the string to XML solved my problem. dorkie dork from dorktown wrote: I am trying to get results from google and use e4x to show the results in a list component. The problem is that the XML parser is giving me a 1090: XML parser failure: element is malformed. Is there a class or property that will unmalform the xml so I can use it as an xml object? -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] pdf||word images in a datagrid column
If you have a data field that specifies data type then you could use mx:Image source=icon_{data.type}.gif / Vinoth Babu wrote: Below code loads single image in a column, but i need to load different images according to the data provided in 'img' xml attribute for e.g if a img attribute == pdf then load pdf.gif else if a img attribute == word then load word.gif in a column,how to give condition under component ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute backgroundGradientColors=[#ff, #ff] mx:XML id=documentationServicesource=documentation.xml / mx:XMLListCollection id=xc source={documentationService.document}/ mx:DataGrid horizontalCenter=0 borderStyle=solid width=450 height=100% dataProvider={xc} mx:columns mx:DataGridColumn width=300 headerText=Document Name dataField=@name/ mx:DataGridColumn width=50 headerText=pdf mx:itemRenderer mx:Component mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:Image source=icon_pdf.gif / /mx:HBox /mx:Component /mx:itemRenderer /mx:DataGridColumn /mx:columns /mx:DataGrid /mx:Application !-- document .xml documents document name=Installing Flex 2 html=http://www.adobe.com/support/documentation/en/flex/2/install.html; img=word/ document name=Getting Started with Flex 2 html=http://www.adobe.com/go/flex2_gettingstarted; img=pdf / /documents -- Thanks, Vinoth Vinoth Babu [EMAIL PROTECTED] wrote: Thanks for your info . But I need to load images according to the data. for e.g. In a column , if a data is 'pdf' then load 'pdf.gif' or if it's 'word' load 'word.gif' pdf.gif or word.gif or... are shown in one column in a different row each Thanks , Vinoth Jack OMelia [EMAIL PROTECTED] wrote: Try using an itemRenderer. Create a separate component that looks like this: (saved as imageRenderer.mxml in the comps directory) ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; paddingBottom=0 paddingLeft=0 paddingRight=0 paddingTop=2 width=50 height=20 horizontalAlign=center mx:Image source=images/image.gif width=14 height=14 / /mx:HBox then add it to your datagrid like this: mx:DataGridColumn headerText=! itemRenderer=comps.imageRenderer / HTH, Jack --- In flexcoders@yahoogroups.com, Vinoth Babu [EMAIL PROTECTED] wrote: Hi, Need your help to load an different images in a datagrid column Thanks Vinoth - Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends. - Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out. - Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends. -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] Upload file along with other associatred data?
Try creating URLvariables var params:URLVariables = new URLVariables(); params.id = memberID; then add the variables to the request.data request.data = params; Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] Is anybody else getting duplicate messages?
Yes Yes Yes Doug McCune wrote: I've been getting 2 sometimes 3 copies of many messages. It's quite annoying and this is on top of an already high volume list. On 3/28/07, Cutter (Flex Related) [EMAIL PROTECTED] wrote: Yes, quite a few times today Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Paul DeCoursey wrote: I've been getting 2 sometimes 3 copies of many messages. It's quite annoying and this is on top of an already high volume list. -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] Apollo HTMLControl capabilities
Hey Mike - Can we assume that all the controls over PDF that are exemplified in the Adobe Digital Edition will be included in the full release of Apollo ? Only thing I would like to see added to the API is ability to apply animated effects to PDF pages. ( Page flip) Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 Mike Chambers wrote: The only plugins that will be supported for 1.0 is Flash and PDF. mike chambers [EMAIL PROTECTED] Mark Doberenz wrote: This is more of a general question regarding capabilities of this class. What kind of things in an HTML file will be displayable using this class? What if an HTML file has an object definition in it, like for an ActiveX control. Will it display the ActiveX control like Internet Explorer does? I work for a company that has a 3D viewer, and I'd like to place an instance of the 3D view in an Apollo window in some way shape or form. Any ideas on whether this would be possible or not using the HTMLControl? Mark -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] PDF Files
We do quite a bit of PDF work for publishers and digital printing. The method we use for variable printing uses a Flex interface which gives the user authoring capability via an image rendering of the PDF page. Flex manages all the PDF annotations as data and then applies these annotations using a PDF library on the server-side. Would be nice one day if Adobe decide to enable Flex with PDF rendering capabilites treating it much like any other media object. Hope that's on their to to list ! Greg Hesla wrote: Hello, all. Would anyone like to share their experience with creating some sort of web-based PDF-annotation app? I realize that this may not be something that I can do in Flex, but if I can kick it off from within my Flex app, that would work as well. Any pointers or links that would get me off in the right direction would be much appreciated. Thanks, Greg -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] FileReference.upload, URLVariables,uploadDataFieldName not working as expected.
What server-side does your server-side script / code look like. Most likely this is where the problem lies. BTW:You can always rename your upload on the server side which is very easy and reliable. -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] Storing / retrieving rich text
Actually I want an XML formatted result from the server. What I don't want is for the rich text to be interpreted as an XML string when applying it to the text control as htmlText. All the white space in the XML string gets rendered as white space in the text control while it does render the text as HTML. For now I have used AS to strip out all the white space ( between the ending and beginning tags) and then apply the htmlText to the text control. Maybe I am still missing the easy solution Brian Holmes wrote: You need to escape the xml formatting before sending it to the client. In cold fusion you could use the XMLFormat() function so if you're using cf, just wrap that around your return, or find a similar function for the back end lang you're using. Brian.. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pdflibpilot Sent: Monday, February 26, 2007 9:54 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Storing / retrieving rich text I am trying to develop a method to allow web administrators to be able to edit text in their Flex application directly in the UI (without Flex). This text gets saved to mySQL when they close the rich text editor. The data is stored correctly in mySQL however when its retrieved it gets formated as an XML object when extracted from the event.result. While this makes it easy to populate the various labels and text objects with the rich text data. The problem is that the rich text data gets formatted as XML with new lines and indents. Like in this dmup contentLive TEXTFORMAT LEADING=2 P ALIGN=CENTER FONT FACE=Verdana SIZE=14 COLOR=#FF LETTERSPACING=0 KERNING=0 BThis is /B FONT COLOR=#0033FF B Ulive content/U /B /FONT /FONT /P /TEXTFORMAT /contentLive How can I force it to treat it as raw text just like its stored in mySQL without the formatting ? Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/lOt0.A/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***
Re: [flexcoders] Re: Storing / retrieving rich text
Wrapping the text in ![CDATA causes the CDATA to be interpreted literally and rendered along with the text. setting the resultFormat to text makes it much more difficult to handle the text and distribute it to the appropriate display objects. Barring any easier solutions at this point it looks like stripping out the white space with AS is the only option. iko_knyphausen wrote: Have you tried using CDATA around your text when retrieving from your database? ![CDATA[ ]] I use it to store HTML formatted text in a database and to retrieve it back into any HTML capable control, such as rtfedit or textarea... even a simple TEXT control as itemrenderer works with this method... HTH Iko --- In flexcoders@yahoogroups.com, pdflibpilot [EMAIL PROTECTED] wrote: I am trying to develop a method to allow web administrators to be able to edit text in their Flex application directly in the UI (without Flex). This text gets saved to mySQL when they close the rich text editor. The data is stored correctly in mySQL however when its retrieved it gets formated as an XML object when extracted from the event.result. While this makes it easy to populate the various labels and text objects with the rich text data. The problem is that the rich text data gets formatted as XML with new lines and indents. Like in this dmup contentLive TEXTFORMAT LEADING=2 P ALIGN=CENTER FONT FACE=Verdana SIZE=14 COLOR=#FF LETTERSPACING=0 KERNING=0 BThis is /B FONT COLOR=#0033FF B Ulive content/U /B /FONT /FONT /P /TEXTFORMAT /contentLive How can I force it to treat it as raw text just like its stored in mySQL without the formatting ?
Re: [flexcoders] Re: Storing / retrieving rich text
Can you share a sample of the XML content that you bind to your text control ? For now I have stripped the XML formatting (i.e. newlines and indents - rich Text tags remain in place) to achieve the desired results with AS. Otherwise my process is very much as you describe yours and works fine for now. Are you writing rich text back to your data source ? Are you implicitly adding the !CDATA ? wrapper or is this wrapper automated ? Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 iko_knyphausen wrote: Maybe I misunderstood your last post, but I am getting an XML field from a HTTPservice call with resultformat e4x and this XML field has HTML content wrapped in a CDATA tag. I bound this XML field to a regular text control's html property and it renders as HTML not as text --- In flexcoders@yahoogroups.com, Ben Marchbanks [EMAIL PROTECTED] wrote: Wrapping the text in ![CDATA causes the CDATA to be interpreted literally and rendered along with the text. setting the resultFormat to text makes it much more difficult to handle the text and distribute it to the appropriate display objects. Barring any easier solutions at this point it looks like stripping out the white space with AS is the only option. iko_knyphausen wrote: Have you tried using CDATA around your text when retrieving from your database? ![CDATA[ ]] I use it to store HTML formatted text in a database and to retrieve it back into any HTML capable control, such as rtfedit or textarea... even a simple TEXT control as itemrenderer works with this method... HTH Iko --- In flexcoders@yahoogroups.com, pdflibpilot flex@ wrote: I am trying to develop a method to allow web administrators to be able to edit text in their Flex application directly in the UI (without Flex). This text gets saved to mySQL when they close the rich text editor. The data is stored correctly in mySQL however when its retrieved it gets formated as an XML object when extracted from the event.result. While this makes it easy to populate the various labels and text objects with the rich text data. The problem is that the rich text data gets formatted as XML with new lines and indents. Like in this dmup contentLive TEXTFORMAT LEADING=2 P ALIGN=CENTER FONT FACE=Verdana SIZE=14 COLOR=#FF LETTERSPACING=0 KERNING=0 BThis is /B FONT COLOR=#0033FF B Ulive content/U /B /FONT /FONT /P /TEXTFORMAT /contentLive How can I force it to treat it as raw text just like its stored in mySQL without the formatting ?
Re: [flexcoders] Newbie alert - Trying to populate combobox w. httpservice
you have to define the labelField when binding to dataProvider that has no label field. mx:ComboBox id=cbEdition labelField=myItem dataProvider={ xmlEdition.lastResult.action.item} / Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 Mark Bjærgager wrote: Being a newbie at Flex2 (and AS) I am trying to populate a combobox with specific values from a HTTPService. The xml is retrieved and the datagrid works fine, but the combobox dont display the data. What I'd like is to have {title} as label and {edition} as value - later I will be using the selected value as a parameter for a new http call. Any help will be really appreciated. thanks, Mark Here's my code : ?xml version=1.0? !-- Simple example to demonstrate the HTTPService tag. -- mx:Application xmlns:mx= http://www.adobe.com/2006/mxml; creationComplete=xmlEdition.send(); mx:HTTPService id=xmlEdition url= http://flex2.dk/mark/xml/ddt/xmlEdition.xml; useProxy=false showBusyCursor=true / mx:Panel title=DDT height=95% width=95% paddingTop=10 paddingBottom=10 paddingLeft=10 paddingRight=10 mx:DataGrid id=dgPosts height=50% width=75% dataProvider={xmlEdition.lastResult.action.item} mx:columns mx:DataGridColumn headerText=Posts dataField=edition/ mx:DataGridColumn headerText=Date dataField=title/ /mx:columns /mx:DataGrid mx:ComboBox id=cbEdition dataProvider={ xmlEdition.lastResult.action.item} / /mx:Panel /mx:Application
Re: [flexcoders] problem in parsing xml return by HTTPservice, could it be namespace issue
You try what I used to solve the same kind of problem event.result.record[0].myFieldName where my XML looks something like this records record myFeldNamemyValue/myFieldName /record /records Thanks to Tracy Spratt for revealing access to the XML more directly via event.result ! Shailesh Mangal wrote: Hi all, Here is the xml I get back from my HTTPService call res:message source=web action=coveragemap id=123 xmlns:res=http://response.coveragemap; com:statusCode xmlns:com=common0/com:statusCode com:statusDesc xmlns:com=commonSuccess/com:statusDesc res:marketValueSanFrancisco_CA/res:marketValue /res:message but when I try to use .. operator for marketValue node, I get null object back. Any suggestions. I tried use namespace also, didnt help. HTTPService Call mx:HTTPService id=xmlPoster2 url={loc + 'coveragemap'} method=POST resultFormat=e4x contentType=application/xml result=showMap(event)/ public function showMap(event:ResultEvent):void{ trace(event.result); var res:XML = event.result..marketValue as XML; var imgName:String = res.toString(); imgSrc = assets/img/ + imgName; coverageMapBox.setVisible(Boolean(true)); }
Re: [flexcoders] Filter using ComboBox HeaderRenderer in DataGrid
headerRenderer probably behaves the same as itemRenderers in that they are children of the parent document from which they spring In that case you would refer to the actionScript in the parent document using the parent prefix this.parentDocument.myActionScript(); HTH [EMAIL PROTECTED] wrote: Hi All, I have a datagrid with a combobox in the Header field. I need to know how to use this as a filter. I'm working with an example of a combobox that acts as a filter to a datagrid. This works perfectly. I also know how to put the combobox in the header of a datagrid using a headerRenderer. I don't know how to make the filter work once its in the datagrid header. Part of the problem is that the combobox has to be in a separate MXML file. Once its separate I can't (or don't know how) to reference its properties in script. I'm including the code at the bottom. I've had to comment out a lot of the script in order to get this to work. Thanks in advance for any of your help. Lois ** Main Application ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:comp=* creationComplete=simpletestCat.send();simpletestFood.send() mx:Script ![CDATA[ import mx.controls.dataGridClasses.DataGridColumn; import mx.collections.ArrayCollection; [Bindable] public var categoryList:ArrayCollection; [Bindable] public var foodList:ArrayCollection; /*public function filterByCategory(event:Event):void{ if (event.target.selectedIndex == 0){ foodList.filterFunction = null; }else { foodList.filterFunction = catFilter; } foodList.refresh(); } */ //public function catFilter(item:Object):Boolean { //return item.category_name == categorySelect.selectedItem.category_name; //} ]] /mx:Script mx:HTTPService id=simpletestCat url=assets\categorylist.xml / mx:HTTPService id=simpletestFood url=assets\foodlist.xml result=foodList=simpletestFood.lastResult.list.food/ mx:DataGrid id=foodListBox width=100% dataProvider={foodList} mx:columns mx:DataGridColumn headerText=Product Name dataField=product_name/ mx:DataGridColumn headerRenderer=CBoxTest dataField=category_name/ mx:DataGridColumn headerText=Product Price dataField=product_price/ /mx:columns /mx:DataGrid /mx:Application ** ** Combobox MXML Component named CBoxTest.mxml ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:ComboBox id=categorySelect width=174 mx:Object label=Korean data=A / mx:Object label=Indian data=B / mx:Object label=Thai data=C / mx:Object label=Japanese data=D / mx:Object label=Ethiopian data=E / /mx:ComboBox /mx:HBox
Re: [flexcoders] Re: Drag/Drop - Datagrid. Target is off?
I have a drag drop issue that is somewhat related to this perhaps there is a common cause. I have a new popup (canvas) with drag / drop from List to a Canvas. On drag enter the red x indicating will not accept the drop shows well into the actual acceptable drop zone. I realized that that the 'drop zone x coordinate is offset by the same x offset of the popup canvas. The quick fix was to remove the x offset for the popup but I would like to know if there is a solution to allow for the centered popup window with drag and drop. Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 orthatg wrote: --- In flexcoders@yahoogroups.com, chuvakgu [EMAIL PROTECTED] wrote: There's a bug in Flex where the application uses an ApplicationControlBar (possibly other controls, I'm not sure) which causes the hitarea to be inaccurate. Can you point me to more info about this? I think I am hitting this one too... If so, I'll look for a workaround, getting rid of this particular drag-drop functionality... I just want to make sure it's not me being silly, it is an actual bug (though who knows...) I have the same issue. In a datagrid with: dragEnabled=true dropEnabled=true dragMoveEnabled=true the drag target is about 50 pixels above the datagrid header. I have not found any working examples for reordering items in a datagrid by drag drop.
Re: [flexcoders] Examining web service results structure
Hey Tracy, Can you elaborate more on exactly how you would do this ? sample snippet. You gave me the same advice in my attempt to count the records returned from a request. Thanks Ben Marchbanks Tracy Spratt wrote: Don't bind directly to lastResult. Instead, use a result handler function, to which you have passed the event object. In that fuction, you can examine event.result at will. If you are using resultFormat=e4x, use toXMLString(). If you are using the default object resultFormat, then you need to find out how to dump the object. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fgwenger Sent: Tuesday, January 02, 2007 1:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Examining web service results structure I wondered if there was a way in Flex debug or somewhere in Flex to see how it sees the object returned from a web service call. I am consuming a web service that I don't have control of and it is sending back some structure. I can't tell what it looks like to Flex, so I can't get the DataGrid's DataProvider path correct, e.g. MyWS.MyMethod.LastResult then what? Thanks.
Re: [flexcoders] Re: Examining web service results structure
Thanks Tracy - I had actually hacked through to arrive at the endpoint of your illustration - which is very clear. I understand now how this gives you full access to the results. Next questions: how would you bind this result to a dataGrid or AC ? Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 Tracy Spratt wrote: e4x is the acronym for ECMA Script 4 XML, or something like that. When you specify it as the resultFormat for an RPC data service call, it means that your result object will be an XML object and that you can use the new, Actionscript 3 xml selection expressions with it. If you do NOT specify it explicitly, the resultFormat is object, which means that your result data is converted int a nested mx:Object structure. This is significant to your question because it affects how you will examine the result object. Also, the default object conversion seems to simplify namespace issues, but I find it harder to work with than e4x xml. First, set up a result handler function. You can do this on the service level of for individual operations. I'll show one on the tag. In the Tag, set the function name: mx:WebService id=get_home_list result=onResult(event) ... And the function declaration: private function onResult(oEvent:ResultEvent):void { oEvent is an object containing your result data. What that object contains first depends on the resultFormat you have specified for the WebService or the operation, as discussed above. If you are using the default, try: trace(ObjectUtil.toString(oEvent.result)) if you are using e4x xml, then try: trace( XML(oEvent.result).toXMLString() ) Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fgwenger Sent: Tuesday, January 02, 2007 5:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Examining web service results structure I'm not sure what e4x is. Here is my webservice declaration. It returns a query from a ColdFusion web service (Flex=ArrayCollection, I think). mx:WebService id=get_home_list wsdl=http://imd9.state.or.us/ex/bcd/loisflex/lois.cfc?WSDL http://imd9.state.or.us/ex/bcd/loisflex/lois.cfc?WSDL useProxy=false showBusyCursor=true mx:operation name=qry_get_home_list mx:request q_home_id0/q_home_id /mx:request /mx:operation /mx:WebService Thanks. Fred --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt [EMAIL PROTECTED] wrote: Sure. Are you using e4x? Post your WebService tag declaration. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Ben Marchbanks Sent: Tuesday, January 02, 2007 2:30 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Examining web service results structure Hey Tracy, Can you elaborate more on exactly how you would do this ? sample snippet. You gave me the same advice in my attempt to count the records returned from a request. Thanks Ben Marchbanks Tracy Spratt wrote: Don't bind directly to lastResult. Instead, use a result handler function, to which you have passed the event object. In that fuction, you can examine event.result at will. If you are using resultFormat=e4x, use toXMLString(). If you are using the default object resultFormat, then you need to find out how to dump the object. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of fgwenger Sent: Tuesday, January 02, 2007 1:37 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Examining web service results structure I wondered if there was a way in Flex debug or somewhere in Flex to see how it sees the object returned from a web service call. I am consuming a web service that I don't have control of and it is sending back some structure. I can't tell what it looks like to Flex, so I can't get the DataGrid's DataProvider path correct, e.g. MyWS.MyMethod.LastResult then what? Thanks.
Re: [flexcoders] Re: Examining web service results structure
Okay finally nailed it myArrayCollection.source = ArrayUtil.toArray(event.result.record); Hopefully tomorrow's success will come much easier ! Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 Tracy Spratt wrote: e4x is the acronym for ECMA Script 4 XML, or something like that. When you specify it as the resultFormat for an RPC data service call, it means that your result object will be an XML object and that you can use the new, Actionscript 3 xml selection expressions with it. If you do NOT specify it explicitly, the resultFormat is object, which means that your result data is converted int a nested mx:Object structure. This is significant to your question because it affects how you will examine the result object. Also, the default object conversion seems to simplify namespace issues, but I find it harder to work with than e4x xml. First, set up a result handler function. You can do this on the service level of for individual operations. I'll show one on the tag. In the Tag, set the function name: mx:WebService id=get_home_list result=onResult(event) ... And the function declaration: private function onResult(oEvent:ResultEvent):void { oEvent is an object containing your result data. What that object contains first depends on the resultFormat you have specified for the WebService or the operation, as discussed above. If you are using the default, try: trace(ObjectUtil.toString(oEvent.result)) if you are using e4x xml, then try: trace( XML(oEvent.result).toXMLString() ) Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fgwenger Sent: Tuesday, January 02, 2007 5:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Examining web service results structure I'm not sure what e4x is. Here is my webservice declaration. It returns a query from a ColdFusion web service (Flex=ArrayCollection, I think). mx:WebService id=get_home_list wsdl=http://imd9.state.or.us/ex/bcd/loisflex/lois.cfc?WSDL http://imd9.state.or.us/ex/bcd/loisflex/lois.cfc?WSDL useProxy=false showBusyCursor=true mx:operation name=qry_get_home_list mx:request q_home_id0/q_home_id /mx:request /mx:operation /mx:WebService Thanks. Fred --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt [EMAIL PROTECTED] wrote: Sure. Are you using e4x? Post your WebService tag declaration. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Ben Marchbanks Sent: Tuesday, January 02, 2007 2:30 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Examining web service results structure Hey Tracy, Can you elaborate more on exactly how you would do this ? sample snippet. You gave me the same advice in my attempt to count the records returned from a request. Thanks Ben Marchbanks Tracy Spratt wrote: Don't bind directly to lastResult. Instead, use a result handler function, to which you have passed the event object. In that fuction, you can examine event.result at will. If you are using resultFormat=e4x, use toXMLString(). If you are using the default object resultFormat, then you need to find out how to dump the object. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of fgwenger Sent: Tuesday, January 02, 2007 1:37 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Examining web service results structure I wondered if there was a way in Flex debug or somewhere in Flex to see how it sees the object returned from a web service call. I am consuming a web service that I don't have control of and it is sending back some structure. I can't tell what it looks like to Flex, so I can't get the DataGrid's DataProvider path correct, e.g. MyWS.MyMethod.LastResult then what? Thanks.
Re: [flexcoders] eval() function removed in AS 3.0 ??
Thanks Tracy - you are the man - I would never have figured that one out ! Works like a charm.. Tracy Spratt wrote: Actually, eval() in AS has never been a full eval like in Javascript. I has only been able to evaluate a reference to an object. The direct replacement(was in AS2 as well) is bracket notation, which is actually more powerful than eval, because it can be used on the left side of an assignment as well as on the right. If befor you had: var oMyObject:Obect = eval(myString + myVar); Change it to: var oMyObject:Object = this[myString + myVar]. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of {reduxdj} Sent: Saturday, December 09, 2006 4:05 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] eval() function removed in AS 3.0 ?? from an earlier post about this topic: You need to roll it on your own. You could split the given path into its parts and try to evaluate one piece after the other until you come to the end. public function eval( scope : Object, path : String ) : Object { if( path == null ) return null; var result : Object = scope; var parts : Array = path.split('.'); while( result != null parts.length 0 ) { var part : String = parts.shift(); result = result[ part ]; } return result; } Untested code, but hopefully you get the point. Maybe you need to add some exception handling, when you try to access non existing properties. Cheers, Ralf, pdflibpilot wrote: According to the documentation eval() has been removed as function - is there an alternative ? I really would like to use this function. -- 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
Re: [flexcoders] to form or not to form that is my question
I was wondering the same - everything seems to work just fine without using form and formItems. I found that the form component seem to make it more difficult to create and size the layout objects. I am not using either and have no problems using just textInput and labels instead. Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918 bghoward3 wrote: can somone enlighten me on the benefit to using forms and form items instead of simply using text input boxes thanks
Re: [flexcoders] lastResult.records.record.length=null when there's actually 1
Thanks Steve for explaining exactly the root cause. What method would you recommend to test if the result is an array or an object ? Steve Cox wrote: When a result contains only 1 object Flex converts it to an Object not an ArrayCollection. Therefore your myListRequest.lastResult.records.record is an object and won't have the .length property. When you receive more than 1 record it will be an ArrayCollection of objects. You'll need to check the type of myListRequest.lastResult.records.record before you do any work with it. Hope that helps, Steve -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ben Marchbanks Sent: 27 November 2006 19:21 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] lastResult.records.record.length=null when there's actually 1 myRequest.event.result.length ?? Not sure I understand how to use event.result to get the count of the records returned. Tracy Spratt wrote: And avoid using lastResult except for binding. Instead use event.result. Tracy From: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com [mailto:[EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com] On Behalf Of Iko Knyphausen Sent: Friday, November 24, 2006 10:43 PM To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com Subject: RE: [flexcoders] lastResult.records.record.length=null when there's actually 1 Does it behave the same if you use e4x as resultFormat? From: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com [mailto:[EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com] On Behalf Of pdflibpilot Sent: Friday, November 24, 2006 5:35 PM To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com Subject: [flexcoders] lastResult.records.record.length=null when there's actually 1 I use the following to get a count of the records returned by HTTPService request. myListRequest.lastResult.records.record.length; When theres only 1 the result is null ? Otherwise the count is fine whenever it is 2 or more. Is this the expected result ??
Re: [flexcoders] lastResult.records.record.length=null when there's actually 1
myRequest.event.result.length ?? Not sure I understand how to use event.result to get the count of the records returned. Tracy Spratt wrote: And avoid using lastResult except for binding. Instead use event.result. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Iko Knyphausen Sent: Friday, November 24, 2006 10:43 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] lastResult.records.record.length=null when there's actually 1 Does it behave the same if you use e4x as resultFormat? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pdflibpilot Sent: Friday, November 24, 2006 5:35 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] lastResult.records.record.length=null when there's actually 1 I use the following to get a count of the records returned by HTTPService request. myListRequest.lastResult.records.record.length; When theres only 1 the result is null ? Otherwise the count is fine whenever it is 2 or more. Is this the expected result ??