[flexcoders] Re: Setting default cursor position when the flex web-application loads
if your login box is html you are posting on the wrong forum if it is flex... http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0676.html --- In flexcoders@yahoogroups.com, flex.fusion [EMAIL PROTECTED] wrote: Hi Guys, My previous posts never got replied, but we shall not leave the hope :) :) so here is one more :) Problem statement: When my web application is loaded, login box popsup by default. Setting focus to the username field does not set the cursor to the field. Please guide me how can we resolve such issues. I was not able to unserstand the index.template.html properly, if there is any reference: about 'working with index.template.html ', I would love to go through that :) Handling and Using id and name properties and playing with object and embed are mainly the things, I am looking for. btw: I had gone through some of the previous posts but still am not able to resolve the issue. So please share your experience to resolve such things. Thanks Regards, Savan
[flexcoders] Re: Accessing Client Machine, is it possible
not giving access to your local file system from a web app is a deliberate and basic security constraint applied by the player, otherwise tehre's nothing stopping malicious activity via the web. Depending on what you are trying to do you can look here at shared objects... http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1962.html or maybe at Air of you really need a desktop application. --- In flexcoders@yahoogroups.com, cksachdev [EMAIL PROTECTED] wrote: Hi, Is it possible to access the Client Machine resources like file from the browser. I hosted my swf file on tomcat then using the ip address I try to load an external text file, it doesn't seems to work. But when I run it on my local machine (without tomcat) I am able to access and read the contents of the file. The error I get is this SecurityError: Error #2148: SWF file http://192.168.1.129:1002/bin/LoadExternal.swf cannot access local resource file:///C:/external.txt. Only local-with-filesystem and trusted local SWF files may access local resources. Is it possible to read a file content from the local machine ? Any suggestions
[flexcoders] Creating tooltip for datagrid column header(s)?
I wish to create tooltips for datagrid column headers. My datagridcolumn for the required tooltip is: mx:DataGridColumn headerText=M width=26 textAlign=center editable = false headerRenderer=myComponents.moveInactiveTooltip mx:itemRenderer mx:Component mx:HBox horizontalAlign=center click=outerDocument.moveToActive(); mx:Image height=16 width=16 source=@Embed('/images/backwardicon.png') toolTip=Click to make 'Active' /mx:Image /mx:HBox /mx:Component /mx:itemRenderer /mx:DataGridColumn my mxml component is: ?xml version=1.0 encoding=utf-8? mx:ToolTip xmlns:mx=http://www.adobe.com/2006/mxml; text=Move to inactive /mx:ToolTip but Flex (2.01) dies not like this and reports: 'Could not resolve mx:ToolTip to component implementation' What have I done wrong?
[flexcoders] Re: Rotating Tabs
I can't answer your specific question, but the way I do this is to use a tab bar to switch the currentChild of a viewstack which contains my tab components. I then apply my effects to the hideEffect property of the controls in the viewstack. That works for me. --- In flexcoders@yahoogroups.com, Daniel [EMAIL PROTECTED] wrote: Hey guys... I'm trying to apply the distortion effects cube to a Tab Navigator, but the tab is displayed in the background (like in a modal mode) before the effect ends... So I guess I need to code a RotatingTabNavigator component, where I need to override the method that change the selectedTabs... Am I right? If so, which method is that? Thanx guys... DaN
[flexcoders] Re: TypeError: Error #1006: getShape is not a function. (Sometimes...)
Thanks for catching this one Alex. No it doesn't matter which one I load first, because I only ever load one at a time at this stage of development. I just change the SWF source string in an external catalog.xml file to switch between the two SWFs. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Does it matter which one you load first? Is it the second that always fails? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rich Germuska Sent: Sunday, December 23, 2007 1:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] TypeError: Error #1006: getShape is not a function. (Sometimes...) Hi, I'm getting a #1006 runtime error, that's puzzling me. I load a CS3 SWF into Flex using a custom SWFLoader called SWFWrapper. In SWFWrapper I cast the SWF timeline as a MovieClip and access an AS3 instance method in the SWF called called getShape (shapeNumber:String) as follows: SWFWrapper.as public function get rugSWF():MovieClip { return this.content as MovieClip; } // Retrieve reference to correct UIMovieClip by calling swf's // function getShape() var s:UIMovieClip = rugSWF.getShape(shapeNumber); // Do funky things to UIMovieClip rug.swf function getShape(shapeNumber:String):MovieClip { var shapeNum:String = shapeNumber; return this[shape_+shapeNum]; } And everything is working nicely... I then load a different SWF to Flex - that contains the same methods and instance variables (the AS3 is code generated using JSFL) and I get the #1006 error. I've compared the two swf's and can't see any unintended differences. Are there any mystical settings I should know about? Flash IDE and timelines etc are not my strong point. Here's the Flex error stack: TypeError: Error #1006: getShape is not a function. at com.treelinerugs::SWFWrapper/setShapeColor() [C:\DATA\Business\RIA Data\flex3WorkspaceRug\treelinerugs\com\treelinerugs\SWFWrapper.as:106 ] at com.treelinerugs::SWFWrapper/setAllShapeColors() [C:\DATA\Business\RIA Data\flex3WorkspaceRug\treelinerugs\com\treelinerugs\SWFWrapper.as:79] at com.treelinerugs::SWFWrapper/initSWFWrapper() [C:\DATA\Business\RIA Data\flex3WorkspaceRug\treelinerugs\com\treelinerugs\SWFWrapper.as:40] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\flex_3_beta3 \sdk\frameworks\projects\framework\src\mx\core\UIComponent.as:9041] at mx.controls::SWFLoader/http://www.adobe.com/2006/flex/mx/internal::con http://www.adobe.com/2006/flex/mx/internal::con tentLoaderInfo_completeEventHandler()[E:\dev\flex_3_beta3 \sdk\frameworks\projects\framework\src\mx\controls\SWFLoader.as:1648] Many thanks, Rich
Re: [flexcoders] Re: Add a custom shortcut to our application
now works, thanks a lot! On Dec 17, 2007 7:38 AM, simonjpalmer [EMAIL PROTECTED] wrote: one thing to check is whether your app has focus in the browser window - some browsers do not give the player focus by default. If you click somewhere on your app running in the browser then press a key do you get a message? Another route would be to add a control to your app which definitely accepts focus (like a button) and move the event handling code in there - just to test how to get your app responding to keyboard events. This code does work for me, but my app's front page is somewhat more complex than the app you describe below. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alejandro Narancio [EMAIL PROTECTED] wrote: Hi I already try that but is not working for me, using your example I also tested this (first calling init() from the initialize and after from the applicationComplete): ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute initialize=init() mx:Script ![CDATA[ import mx.controls.Alert; import mx.managers.PopUpManager; private function init(): void { addEventListener(KeyboardEvent.KEY_DOWN, watchKey); } private function watchKey(e: KeyboardEvent): void { Alert.show(TEST, TEST); } ]] /mx:Script mx:Panel width=100% height=100% / /mx:Application This is not working for me when I press a key I am not receiving any popup window. Thanks, Alejandro On Dec 16, 2007 5:41 PM, simonjpalmer [EMAIL PROTECTED] wrote: add an event handler to your app to trap a key down event and then check for the combinations you support as shortcuts and perform the your functions accordingly. here's a fragment from my own code which traps ctrl+shift+D and shows some debug messages... in my app's initialisation routine... addEventListener(KeyboardEvent.KEY_DOWN, watchKey); private function watchKey(e:KeyboardEvent):void { if (e.ctrlKey e.shiftKey) { if(e.keyCode == 68) { toggleDebug(); } } } this is all in the docs... Simon --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com, Alejandro Narancio ale.narancio@ wrote: Hi all! I am trying to add a shortcut to my application (for example when the user press Ctrl+P open a print dialog), it is possible to catch this? I mean to make custom shortcuts for my application? I will appreciate any suggestion or guideline. thanks! Alejandro
[flexcoders] Help with error
What exactly that error means? A file found in a source-path can not have more than one externally visible definition Thanks
Re: [flexcoders] Re: SharedObject security
Good point. I'm not aware of a possibility to identify a client machine. Maybe you add a enhancement request to Adobe's bugbase? Cheers Ralf. On Dec 30, 2007 12:02 AM, andrewwestberg [EMAIL PROTECTED] wrote: Software Licensing. If I write an encrypted license token in a SharedObject, I don't want them to be able to simply copy the .sol file in order to share their checked-out license with their buddy in the next cubicle. By tieing the license to something hardware related such as a mac address or cpu id, it becomes less of a possibility. I'm contracted to develop a Flex/AIR client for nitroLM.com. They already have client libraries for .NET, C/C++, and Java all of which have access to hardware-related ids and serial numbers. It'd be nice if there was something similar in Flex/AIR. -Andrew --- In flexcoders@yahoogroups.com, Ralf Bokelberg [EMAIL PROTECTED] wrote: What is your usecase? Why are people allowed to copy files from other people's computer? Cheers Ralf.
RE: [flexcoders] Help with error
In my experience, that usually means that you have two files named the same, like myInput.mxml and myInput.as. ~randy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Sunday, December 30, 2007 8:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Help with error What exactly that error means? A file found in a source-path can not have more than one externally visible definition Thanks No virus found in this outgoing message. Checked by AVG. Version: 7.5.516 / Virus Database: 269.17.12/1202 - Release Date: 12/29/2007 1:27 PM
Re: [flexcoders] Help with error
Or it means you have more than one public class declarations in one file. On Dec 30, 2007 7:13 PM, Randy Martin [EMAIL PROTECTED] wrote: In my experience, that usually means that you have two files named the same, like myInput.mxml and myInput.as. ~randy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Sunday, December 30, 2007 8:22 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Help with error What exactly that error means? A file found in a source-path can not have more than one externally visible definition Thanks No virus found in this outgoing message. Checked by AVG. Version: 7.5.516 / Virus Database: 269.17.12/1202 - Release Date: 12/29/2007 1:27 PM -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany
RE: [flexcoders] Re: Sugestion for ComboBox component
No, that won't work. To set selectedItem, you must assign *reference* to an existing item in the dataProvider. It is similar to setting selectedChild in a Viewstack. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of simonjpalmer Sent: Saturday, December 29, 2007 4:20 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Sugestion for ComboBox component have you tried using myCombo.selectedItem = aTextValue? I don't know if that works, I'm just suggesting it is worth a try. Painful experience of a change of the textual value from one string to another has led me to encapsulating domain values like these into a separate list and only storing their ordinals rather than their values. If you do that it has the added advantage that you can just use the ordinal value in the combo rather than having to loop. There was a similar thread recently... http://tech.groups.yahoo.com/group/flexcoders/message/96528 http://tech.groups.yahoo.com/group/flexcoders/message/96528 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , danielvlopes [EMAIL PROTECTED] wrote: Hello everybody, i want make a sugestion for Adobe Flex Team, and i know some members of Flex team participate here, in my projects when i use combobox to recover data from database and selected item of this combo must be set to the data recorded in database i do loops in entire dataprovider to find the value and your index to use selectedIndex to receive this index. This is very common when you use combo to add and edit data in database and i think everybody need this, why adobe don't incorpore some new method in next release for do this? Something like setSelectedLabe(label:String) ...
[flexcoders] Re: Mock objects in AS3
I played with hxasm for about 1.5 hours today. Although I didn't succeed, I have seen enough to know that it is completely possible to dynamically generate strongly-typed mocks at runtime using AS3 alone. The trick is to write the class definition to a ByteArray and then use a flash.display.Loader to load the generated code into the swf. After this, the generated class definition can be instantiated. I see two potential paths for doing this: either bytecode can be generated that defines a class that subclasses Proxy and implements your interface, or a class that implements your interface can be constructed from the bottom up. Clearly it will involve less work to subclass Proxy, so that is the avenue that I will be attempting first. Currently the hxasm code doesn't support defining classes that implement interfaces, but I think that the necessary alterations are rather minor. Are there any as3 bytecode enthusiasts out there who want to work on this with me? I believe it would really be useful to a lot of people. I guess I should post to the hxasm list as well. Adam --- In flexcoders@yahoogroups.com, aduston1976 [EMAIL PROTECTED] wrote: Jens: Indeed, we need Proxy#newProxyInstance in AS. This is how EasyMock creates its mocks. There is an equivalent mechanism in c# that is used by Rhino Mocks, which is similar to EasyMock insofar as it uses the record/replay metaphor. Cristophe: I would love to talk about this offline. Do you use Google Talk? I am aduston. I think that doing this in run time is a losing proposition. I think we have to resort to compile-time code generation. We can create an Eclipse build task and have it generate our mocks. Here's to the eventual end of hand-coding mocks in AS3, Adam --- In flexcoders@yahoogroups.com, Jens Halm mlist@ wrote: I have also been looking into runtime interface implementation to create Mock objects and a basic AOP framework. I'm stuck at the exact same thing as you are and the others that are working on this. My guess is that we will need to have some kind of bytecode manipulation framework to achieve this. I think we should turn that into a feature request for a future Flash Player. Of course you can start a project for a bytecode manipulation framework, but for some of the simpler cases it should be the Player API itself that should provide a hook. Just look how Java projects deal with this. In Spring for example they only create a CGLIB proxy for AOP proxies when you proxy a class that does not implement any interfaces. Otherwise they proxy the implemented interfaces with JDK Dynamic Proxies. And that exact thing is something I would like to see in AS4! For those of you who don't know Java: The java.lang.reflect.Proxy class has the following method: newProxyInstance (ClassLoader loader, Class?[] interfaces, InvocationHandler h) This will return a proxy class that implements all interfaces specified with the second parameter and delegates all method invocations to the specified InvocationHandler instance. It would really be great to have something similar in AS4! Typesafe proxy objects are useful for: - AOP frameworks - Mock frameworks - Remote Service Stubs and very likely for a ton of other things! Jens Halm Spicefactory www.spicefactory.org
[flexcoders] Bug in TextInput with select and release outside
Has anyone run into this and know what the fix might be? This is tough to explain in a short description: 1. Have some text in a text input field. 2. Select the text from right to left (all of it), releasing outside of the text input 3. Delete it 4. Start typing 5. Notice that the text stay at 1 character (or 2 if you type fast) and overwrites the current content each time you type. It's basically as if the selection of the text remains and is not reset after you delete the text in the input field. Wracking my brain trying to figure out this one. I gather it's something messed up with the Selection of the text in the field not being reset properly on the delete. It should be no selection with current position at 0. I hope there's any easy fix to this one... thanks, jon
[flexcoders] What;s the method you set to run when property is undefined - default set/get ?
I remember I read once that you can set a default setter getter method to run when a setter or getter is executed that is not available in the class ... anyone knows the name of that method ? Thanks, Sean.
[flexcoders] Formitem - two way data binding
What is a way of binding form items (specifically textInputes) to data? Since these fieds dont have dataProvider property. Thanks
Re: SPAM-LOW: [flexcoders] RemoteObject in an Air app
Jeffry, Thank you so much for the response to the last question, which worked awesome with some tweaking to the services-config file which I have saved in the src folder and edit locally prior to building. If anyone else is helped by this here's what I did 1) send this into the flex compiler args in the projects properties: -services services-config.xml 2) change all amf related definitions in my services-config.xml file that I have saved locally into the same directory as my other source files to resesmble: channel-definition id=my-cfamf class=mx.messaging.channels.AMFChannel endpoint uri=http://www.mydomain.com:80/flex2gateway/; class=flex.messaging.endpoints.AMFEndpoint/ Sure it's not secure yet... but I'll look at that next. If anyone has any quick suggestions on sending over credentials and validating them in a CF Service I'd be grateful for them! Scott On Dec 28, 2007, at 12:13 PM, Jeffry Houser wrote: You probably need to create a new services-config file with a hard coded URL to the flex2gateway. I suspect (but haven't tested) that you need a cross domain file in the root of your server for Flash to access it. Scott Mulder wrote: I currently have a perfectly working RemoteObject on my shared hosting server (where I can’t install my own server level stuff). After much messing around with the complier arguments it now connects just fine to the standard /flex2gateway/ pointer and a ColdFusion Service which returns native AMF binary objects so it’s nice and fast. I am now trying to set up an AIR app that connects to the same CF Service and gets all of the same data in the local app where it is stored offline in an SQLlite DB and synced on changes. Any suggestions on how to get the same connection working when the app runs locally? Thanks in advance! Scott -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] Re: mx:LineChart Vertical Axis Label Placement
Or you can use mx:secondVerticalAxis in addition to your first mx:VerticalAxis --- In flexcoders@yahoogroups.com, rueter007 [EMAIL PROTECTED] wrote: If you are using Flex 3, try the following example that i put together. ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var medalsAC:ArrayCollection = new ArrayCollection( [ { Country: USA, Gold: 35, Silver:39, Bronze: 29 }, { Country: China, Gold: 32, Silver:17, Bronze: 14 }, { Country: Russia, Gold: 27, Silver:27, Bronze: 38 } ]); ]] /mx:Script mx:Panel title=ColumnChart and BarChart Controls Example height=100% width=100% layout=horizontal mx:ColumnChart id=column height=100% width=45% paddingLeft=5 paddingRight=5 showDataTips=true dataProvider={medalsAC} mx:horizontalAxis mx:CategoryAxis categoryField=Country/ /mx:horizontalAxis mx:verticalAxis mx:LinearAxis id=v1 /mx:LinearAxis /mx:verticalAxis mx:verticalAxisRenderers mx:AxisRenderer axis = {v1} placement = left/ mx:AxisRenderer axis = {v1} placement = right/ /mx:verticalAxisRenderers mx:series mx:ColumnSeries xField=Country yField=Gold displayName=Gold / mx:ColumnSeries xField=Country yField=Silver displayName=Silver / mx:ColumnSeries xField=Country yField=Bronze displayName=Bronze / /mx:series /mx:ColumnChart mx:Legend dataProvider={column}/ /mx:Panel /mx:Application HTH - venkat http://www.venkatj.com --- In flexcoders@yahoogroups.com, geoffreymina geoffreymina@ wrote: --- In flexcoders@yahoogroups.com, geoffreymina geoffreymina@ wrote: Is there a simple way to have vertical axis labels show up on both the right and left sides of a chart? I have a very wide chart and it would be helpful if there were reference points on both sides. Thanks in advance. Geoff Anyone?
[flexcoders] stacked ColumnChart min/max , series that go above max disappear !
Hi, Encountered a strange problem... I want to limit the vertical axis in stacked ColumntChart , the problem is that if one of the series is more than the maximum it won't show it, only the series that are below the max ! Is it possible that the series which is above the max value will be shown only until this max value ? Thank you !
[flexcoders] Tab Navigator : how to set corner Radius to only the left-right bottom?
Hi list, Does anyone know if there is a way to set cornerRadius of Tab Navigator to only bottom left and bottom right corners ? ( when I use the below code , the cornerRadius applies to all 4 corners) // css file TabNavigator { cornerRadius: 10; } Thanks! -Kt
[flexcoders] How do I print multiple objects with no page breaks??
I'd like my application to print multiple objects without forced page breaks between them. If I use the PrintJob.addObject() method, there are forced page breaks. I have several textarea.htmltext objects, several graphs, and several legends that I would like to string together to form a document for printing. I want to have this come out paginated the way I want, not one object per page. Is there any way to do this in Flex 2 or 3 beta? Is there an example out there I can look at? Help would be much apprecaited - Thanks Tony
[flexcoders] imahe hue saturation
i want to adjust my images hue @ runtime. hoprfully hue/sat./brightness/cont./crop/rotate etc eventually. but for now just ajust hue. any ideas?. can any body point me in the right direction for this?
[flexcoders] Newbie Flex Application
Hi, This is my first, perhaps ambitious FLEX application. The object is building a DVD catalog. The form uses: Text Inputs Combo Box Text Area Radio Buttons I could use assistance with Getting the Field Data into XML, then Putting the XML file for use as the DataProvider for a Datagrid(View) code ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute viewSourceURL=srcview/index.html mx:Style Label{fontFamily: Verdana; fontSize: 10pt; fontWeight: bold;} /mx:Style mx:Script ![CDATA[ import flash.events.Event; [Bindable]public var titleOverview:XML private function addOverview(e:Event):void{ var titleOverview:XML = dvdCollection dvd titlePulp Fiction/title; genreAction/genre; actorsJohn Travolta, Sam Jackson/actors; directorsQuentin Tarantino/directors producersLawrence Bender /producers; /dvd /dvdCollection } ]] /mx:Script mx:Panel title=DVD Collection: Add Title height=500 width=530 paddingTop=5 paddingLeft=5 paddingRight=5 paddingBottom=5 mx:Accordion id=dvdAccordion height=450 width=500 x=10 y=31 mx:Form id=dvdOverview label=Overview height=507 width=635 mx:Label text=Title: width=48 height=19 / mx:TextInput id=dvdTitle width=290 height=25/ mx:Label text=Genre: width=49 height=15 / mx:ComboBox width=290 mx:ArrayCollection mx:StringAction/mx:String mx:StringSci-Fi/mx:String mx:StringDrama/mx:String mx:StringForeign/mx:String mx:StringComedy/mx:String mx:StringHorror/mx:String mx:StringChildren's/mx:String mx:StringRomance/mx:String /mx:ArrayCollection /mx:ComboBox mx:Label text=Actors: / mx:TextArea id=dvdActors width=450 / mx:Label text=Director: / mx:TextInput id=dvdDirector width=290 height=25/ mx:Label text=Producer(s): / mx:TextInput id=dvdProducers width=290 height=25/ mx:Button label=Add DVD Overiew id=addOverviewBtn click=addOverview(event);/ /mx:Form mx:Form id=dvdDetails label=Details height=508 width=635 mx:Label text=Plot: / mx:TextArea id=dvdPlot width=450 / mx:Label text=Review: / mx:TextArea id=dvdReview width=450 / mx:Label text=Rating: / mx:RadioButton groupName=dvdRating id=dvdWatachable label=Watachable width=150/ mx:RadioButton groupName=dvdRating id=dvdHorrible label=Horrible width=150/ mx:RadioButton groupName=dvdRating id=dvdAwesome label=Awesome width=150/ mx:Label text=Date Purchased (MM/DD/): / mx:DateField id=dvdPurchaseDate width=125 / mx:Label text=Price (dollars . cents) : / mx:HBox width=200 mx:Text text=$/mx:TextInput width=50 height=20/mx:Text text=./mx:TextInput width=50 height=20/ /mx:HBox mx:Label text=Date Released (MM/DD/): / mx:DateField id=dvdReleaseDate width=125 / mx:Label text=Length (HH MM SS) : width=265/ mx:HBox width=200 mx:TextInput width=50 height=20/mx:Text text=:/mx:TextInput width=50 height=20/mx:Text text=:/mx:TextInput width=50 height=20/ /mx:HBox mx:Button label=Add DVD Details id=addDetailsBtn / /mx:Form /mx:Accordion /mx:Panel mx:Panel title=DVD Collection: View Titles height=300 width=59% paddingTop=5 paddingLeft=5 paddingRight=5 paddingBottom=5 x=0 y=518 mx:DataGrid width=100% editable=true
[flexcoders] Re:Looking for tool to auto generate class diagrams from a Flex project
Enterprise Architect from Sparxsystems ( http://www.sparxsystems.com/ ) may be able to do it. Scott
[flexcoders] Newbie XML to ArrayCollection Confusion
I'm hoping someone can help explain how to retrieve an XML doc via webservice and then create an ArrayCollection from it. Using the code and xml below, I am able to retrieve the xml alright and access the nodes, but when I attempt to convert the xml object to an array I end up with a single element array. My xml document looks like: ?xml version=1.0 encoding=UTF-8 ? - scores score position=14/score score position=21/score score position=32/score score position=43/score score position=55/score score position=60/score score position=79/score score position=86/score score position=98/score score position=107/score /scores My webservice event handler looks like: public function hScoresHandler(event:ResultEvent):void { var xmlResult:XML ; var hScores = new ArrayCollection(); xmlResult = new XML(event.result); // This properly outputs the entire XML document trace(xmlResult); // These properly output the content from different nodes in the // XMLM document trace(first (0) position: + xmlResult.score[0]); trace(five position: + xmlResult.score[5]); trace(five position: + [EMAIL PROTECTED]); // Convert XML to Array hScores = ArrayUtil.toArray(xmlResult); // For some reason this outputs a null string trace(hScores); // Why is the length only one? trace(length: + hScores.length); }
[flexcoders] TabNavigator : Is there a way to set corner Radius to only bottom corners?
Is there a way to set cornerRadius of Tab Navigator to only bottom left and bottom right corners ( and not 4 of them) ? (The below code in css sets cornerRadius to all 4 corners.) TabNavigator { cornerRadius: 10; } Thanks!!
[flexcoders] Add FDS returned AS3.0 native array to local SQLlite DB?
Another few questions I've been searching high and low for answers on. 1) My Flex Builder Beta 3 does not seem to have some classes / methods? Like flash.data.SQLMode? and the openAsync() method. Any idea why that would be missing or how to get it installed? 2) Most importantly, Does anyone have a favorite method to write from an Array that is received from FDS to a local SQLlite database? When I try to loop through like this which I have modified from an example: BEGIN CODE-- conn = new SQLConnection(); dbFile = File.applicationStorageDirectory.resolvePath(myDB.db); conn.open(dbFile); conn.begin(); var dropCreate:SQLStatement = new SQLStatement(); var insertRow:SQLStatement = new SQLStatement(); dropCreate.sqlConnection = conn; var sql:String = DROP TABLE IF EXISTS users; CREATE TABLE users (id INTEGER PRIMARY KEY AUTOINCREMENT,fName TEXT,lName TEXT,email TEXT,phone TEXT,city TEXT,state TEXT,zip TEXT,lsFName TEXT,lsLName TEXT,lsEmail TEXT,lsPhone TEXT,lsCity TEXT,lsState TEXT,lsZip TEXT) dropCreate.text = sql; dropCreate.execute(); var numRecords:int = users.length; for(var i:int = 0; i numRecords; i++) { insertRow.sqlConnection = conn; sql = INSERT INTO users (id ,fName ,lName ,email ,phone ,city,state,zip,lsFName,lsLName,lsEmail,lsPhone,lsCity,lsState,lsZip) VALUES + (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?); insertRow.text = sql; // set parameter values insertRow.parameters[ 0] = users[i].id; insertRow.parameters[ 1] = users[i].fName; insertRow.parameters[ 2] = users[i].lName; insertRow.parameters[ 4] = users[i].phone; insertRow.execute(); } conn.commit(); END CODE-- I get an error saying that SQLStatement.text property can't be changed as below: Error: Error #3106: Property cannot be changed while SQLStatement.executing is true. at Error$/throwError() at flash.data::SQLStatement/set text() at data::SQLHandler/createAndFillUserTable()[my/path/here/ SQLHandler.as:79] I'm trying to create an offline copy of our online database for quicker response and then will update / sync the server when connected. and... 3) Before I start looking at code samples Is there any way to develop using LiveCycles on a Mac? Thanks in advance... again! Scott On Dec 28, 2007, at 12:13 PM, Jeffry Houser wrote: You probably need to create a new services-config file with a hard coded URL to the flex2gateway. I suspect (but haven't tested) that you need a cross domain file in the root of your server for Flash to access it. Scott Mulder wrote: I currently have a perfectly working RemoteObject on my shared hosting server (where I can’t install my own server level stuff). After much messing around with the complier arguments it now connects just fine to the standard /flex2gateway/ pointer and a ColdFusion Service which returns native AMF binary objects so it’s nice and fast. I am now trying to set up an AIR app that connects to the same CF Service and gets all of the same data in the local app where it is stored offline in an SQLlite DB and synced on changes. Any suggestions on how to get the same connection working when the app runs locally? Thanks in advance! Scott -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] File System Data Grid over a network
Hi everyone, I'm making a Flex 3/AIR app, and all works pretty well. I'm accessing some files over my network, so I've mapped my network drive (so it shows up as a local resource under my computer). Of course this means that AIR has no trouble accessing the contents. But, of course, being over a network, there's some lag time, especially getting the contents of large directories - so my application will appear to freeze up. I know the flash.File class supports asynchronous methods, but I can't find this anywhere for the FileSystemDataGrid or any of the other components. Did Adobe just not put this functionality into the components? Did anyone create an alternate FileSystemDataGrid for this purpose? Thanks! ben
[flexcoders] Re: mx:LineChart Vertical Axis Label Placement
this property has been deprecated in Flex 3. Please use individual axis renderers as shown below. - venkat http://www.venkatj.com --- In flexcoders@yahoogroups.com, alex [EMAIL PROTECTED] wrote: Or you can use mx:secondVerticalAxis in addition to your first mx:VerticalAxis --- In flexcoders@yahoogroups.com, rueter007 rueter007@ wrote: If you are using Flex 3, try the following example that i put together. ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var medalsAC:ArrayCollection = new ArrayCollection( [ { Country: USA, Gold: 35, Silver:39, Bronze: 29 }, { Country: China, Gold: 32, Silver:17, Bronze: 14 }, { Country: Russia, Gold: 27, Silver:27, Bronze: 38 } ]); ]] /mx:Script mx:Panel title=ColumnChart and BarChart Controls Example height=100% width=100% layout=horizontal mx:ColumnChart id=column height=100% width=45% paddingLeft=5 paddingRight=5 showDataTips=true dataProvider={medalsAC} mx:horizontalAxis mx:CategoryAxis categoryField=Country/ /mx:horizontalAxis mx:verticalAxis mx:LinearAxis id=v1 /mx:LinearAxis /mx:verticalAxis mx:verticalAxisRenderers mx:AxisRenderer axis = {v1} placement = left/ mx:AxisRenderer axis = {v1} placement = right/ /mx:verticalAxisRenderers mx:series mx:ColumnSeries xField=Country yField=Gold displayName=Gold / mx:ColumnSeries xField=Country yField=Silver displayName=Silver / mx:ColumnSeries xField=Country yField=Bronze displayName=Bronze / /mx:series /mx:ColumnChart mx:Legend dataProvider={column}/ /mx:Panel /mx:Application HTH - venkat http://www.venkatj.com --- In flexcoders@yahoogroups.com, geoffreymina geoffreymina@ wrote: --- In flexcoders@yahoogroups.com, geoffreymina geoffreymina@ wrote: Is there a simple way to have vertical axis labels show up on both the right and left sides of a chart? I have a very wide chart and it would be helpful if there were reference points on both sides. Thanks in advance. Geoff Anyone?
[flexcoders] Re: imahe hue saturation
check out http://www.gskinner.com/blog/archives/2005/09/flash_8_source.html he has a colormatrix class to manipulate an image at run time. - venkat http://www.venkatj.com --- In flexcoders@yahoogroups.com, mrazar6 [EMAIL PROTECTED] wrote: i want to adjust my images hue @ runtime. hoprfully hue/sat./brightness/cont./crop/rotate etc eventually. but for now just ajust hue. any ideas?. can any body point me in the right direction for this?
[flexcoders] Problem with ModuleLoader and List in Flex 3 - Possible BUG
Hi, I have two modules and each having lists to list different items. I am getting the below error when clicking on a list after loading second module. TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.managers::DragManager$/get isDragging()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\ma nagers\DragManager.as:158] at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::dragScro ll()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\controls\l istClasses\ListBase.as:6989] at Function/http://adobe.com/AS3/2006/builtin::apply() at () at flash.utils::SetIntervalTimer/flash.utils:SetIntervalTimer::onTimer() at flash.utils::Timer/flash.utils:Timer::_timerDispatch() at flash.utils::Timer/flash.utils:Timer::tick() I have uploaded a sample page to http://www.digitalmesh.com/staging/modulebug/ModuleTest.html Right click to see the source code. Please let me know if there is any solution to this problem. Thanks Anz
[flexcoders] Re: Problem with ModuleLoader and List in Flex 3 - Possible BUG
This is common reference issue with using modules. One of your modules is loading the dragmanager and the second one cannot access it. One solution is to reference the DragManager in your main application import mx.managers.DragManager; var dragManager:DragManager; HTH. - venkat http://www.venkatj.com --- In flexcoders@yahoogroups.com, Anzer [EMAIL PROTECTED] wrote: Hi, I have two modules and each having lists to list different items. I am getting the below error when clicking on a list after loading second module. TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.managers::DragManager$/get isDragging()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\ma nagers\DragManager.as:158] at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::dragScro ll()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\controls\l istClasses\ListBase.as:6989] at Function/http://adobe.com/AS3/2006/builtin::apply() at () at flash.utils::SetIntervalTimer/flash.utils:SetIntervalTimer::onTimer() at flash.utils::Timer/flash.utils:Timer::_timerDispatch() at flash.utils::Timer/flash.utils:Timer::tick() I have uploaded a sample page to http://www.digitalmesh.com/staging/modulebug/ModuleTest.html Right click to see the source code. Please let me know if there is any solution to this problem. Thanks Anz