[flexcoders] Error: Problem finding external stylesheet:
Hi all i've new problem when i compile some app the message is show Error: Problem finding external stylesheet: /diagrammer/assets/style/style.css actually the data is there any help? thanks cholid.r
Re: [flexcoders] Error: Problem finding external stylesheet:
My guess is that the path isn't right for your operating system. / is an absolute path referring to the root of your application, but you may need to specify it as a relative path instead, eg ../ diagrammer (or whatever) when running locally On 23/11/2009, at 7:47 PM, cholid cholid wrote: Hi all i've new problem when i compile some app the message is show Error: Problem finding external stylesheet: /diagrammer/assets/style/ style.css actually the data is there any help? thanks cholid.r
[flexcoders] Change the caret in TextArea
Folks, I need to implement and editable text area where the cursor (caret) is different from the default vertical flashing caret. Is the caret a skinnable property of TextArea? In case the flashing vertical line is deeply entrenched, I would like to be able to overlay my own floating caret on top of it to obscure it. Is there an easy way to get the X-Y coordinates of the caret so that I can move() my custom cursor graphic to that location? Thanks for your help. -Raj -- View this message in context: http://old.nabble.com/Change-the-caret-in-TextArea-tp26474743p26474743.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] Change the caret in TextArea
Nice question friend, even i do wanna to know the answer On 11/23/09, rituraj_tiwari rituraj.tiw...@gmail.com wrote: Folks, I need to implement and editable text area where the cursor (caret) is different from the default vertical flashing caret. Is the caret a skinnable property of TextArea? In case the flashing vertical line is deeply entrenched, I would like to be able to overlay my own floating caret on top of it to obscure it. Is there an easy way to get the X-Y coordinates of the caret so that I can move() my custom cursor graphic to that location? Thanks for your help. -Raj -- View this message in context: http://old.nabble.com/Change-the-caret-in-TextArea-tp26474743p26474743.html Sent from the FlexCoders mailing list archive at Nabble.com. -- With Regards Shabir Ahmad Gilkar Srinagar Kashmir JK Voice: +91 9419942501 email: shabirgil...@gmail.com Skype: shabirgilkar
Re: [flexcoders] Re: how to insert checkbox value into database
Ooops. By pragmatically I meant programmatically On Mon, Nov 23, 2009 at 12:30 AM, Chris Downey cdow...@gmail.com wrote: I'm not sure how much my code examples will help - I'm using SQL Server and before the data gets to SQL, I translate the boolean value to a 1 or 0. If I were in your shoes, the next thing I'd do is to figure out a way to know the exact value that Access is getting. Make no assumptions. Consider all the layers that single value is getting passed through. Can you send the value from CF to an Access macro? What I'm getting at is, if this were my problem and since I'm using SQL Server, I'd send the value to a stored procedure where I could examine and test it. With Access, what options do you have to pragmatically examine and test values sent from Cold Fusion? On Sun, Nov 22, 2009 at 8:03 AM, stinasius stinas...@yahoo.com wrote: Chris Downey you said you do this all the time, care to show how exaclty you do it using the first example of itemWorking, or you can show how to directly send the checkbox.selected value to the data access object layer (via your RemoteObject). please this would be very helpful. _ -- Chris Downey http://www.vaccine-tlc.org/ http://www.chrisdowney.name/ http://code.google.com/p/vaccine-toxic-load-calculator/ -- Chris Downey http://www.vaccine-tlc.org/ http://www.chrisdowney.name/ http://code.google.com/p/vaccine-toxic-load-calculator/
[flexcoders] Re: how to insert checkbox value into database
this is what i have tried to do following your previous example... private var poolSelected: Boolean = false; public function poolselected():void{ if(pool.selected == true){ poolSelected = 1; } else{ poolSelected = 0; } } private function insertHandler():void{ listManager.listProperty(poolSelected); mx:RemoteObject id=listManager destination=ColdFusion source=App.src.cfcs.propertyMaintenance showBusyCursor=true mx:method name=listProperty result=handleStringResult(event) fault=mx.controls.Alert.show(event.fault.faultString)/ /mx:RemoteObject mx:CheckBox label=Pool id=pool color=#99 width=160 fontSize=12 click=poolselected()/
[flexcoders] language switch on mac does not work?
Hello all, I have tried to google this but I do not seem to find anything... Anyone knows if this is a known bug? Is there a solution? TIA, Fotis
Re: [flexcoders] Re: I've got a [Bindable] boolean var - can I setup a eventlistener on it?
In this situation, the easiest way is using ChangeWatcher.watch function to watch that variable. --- On Sat, 11/21/09, jamesfin james.alan.finni...@gmail.com wrote: From: jamesfin james.alan.finni...@gmail.com Subject: [flexcoders] Re: I've got a [Bindable] boolean var - can I setup a eventlistener on it? To: flexcoders@yahoogroups.com Date: Saturday, November 21, 2009, 6:22 AM This should get you on your way... http://livedocs. adobe.com/ flex/3/html/ help.html? content=databind ing_4.html --- In flexcod...@yahoogro ups.com, luvfotography ygro...@... wrote: I've declared a [Bindable] private var changeme:Boolean; Is there a way to execute a function whenever this var changes? thanks,
[flexcoders] D.eval() author Riaone contact information
. Have tried to contact with the author(s) of D.eval() http://www.riaone.com/products/deval/index.html through their contact form but with no results. Would be grateful if anyone had some more contact information for this company / authors. Alan
[flexcoders] TabNavigator stacking order
By default, a TabNavigator adds its TabBar on top of the viewstack. Is there a way to force it to draw it underneath the subcontainers? -- --Joel Stransky stranskydesign.com
[flexcoders] Regarding removing data from list control using custom Item render
Hello Guys, I am new to adobe flex and right now i am working as a flex developer. I am not able to do the following task using custom renderer , but i did using inline itemrenderer. But I need to do using custom renderer. Task:1. There is a Tile window in which there are 4 components in Hbox..they are Combobox 1, Combobox2, text input and a button.2. Below Hbox there is a List box below the 4 components.3. When user selects data from combo box1 and 2 and enters some data in text input then after cllicking the button the user selected data has to populate in the list box below.4. When user mouse over the populated data in the list there should be a visible button icon , if the user clicks that then that data should be removed from the listThis has to be created using customm Itemrenderer...5.I have populated the user selected data into object then object data is passed to array collection then this array collection variable is used as dataprovider in list box can you provide me with the code for custom item renderer to remove the list data from the list controlusing mouse over buttion...very urgent...Thanks in advance... Thanks,Naveen The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/
[flexcoders] Looking for help with Linechart and xml
I am passing a xml in this fortmat Performance TimeSlot Time=11/1/09 System ID=1 CPU=20 System ID=2 CPU=22 /TimeSlot TimeSlot Time=11/2/09 System ID=1 CPU=34 System ID=2 CPU=15 /TimeSlot /Performance How do I make my linechart to have the the linechart show both system and the CPU for each date? Thanks so much guys I am really stuck on this
[flexcoders] Flex's Ant html-wrapper task
Hi guys, According http://livedocs.adobe.com/flex/3/html/help.html?content=anttasks_7.html, I cannot add a custom template to Flex Builder 3\sdks\sdk version\templates to create a custom wrapper, because there are only 3 templates to choose from. Is this actually true? I would like to be able to add jsp snipplets to determine the locale based on web browser, and was wondering if I can use Flex's html-wrapper Ant task to accomplish this. Thank you.
RE: [flexcoders] I've got a [Bindable] boolean var - can I setup a eventlistener on it?
assuming your in the same class as changeme: private var changemeWatcher:ChangeWatcher; this.changemeWatcher = ChangeWatcher.watch(this, changeme, changemeChangedFunction); this function will get called every time it changes: private function changemeChangedFunction(event:PropertyChangeEvent):void when you are done, make sure to uregister it with this.changemeWatcher.unwatch(); __ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of luvfotography Sent: Friday, November 20, 2009 3:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] I've got a [Bindable] boolean var - can I setup a eventlistener on it? I've declared a [Bindable] private var changeme:Boolean; Is there a way to execute a function whenever this var changes? thanks,
[flexcoders] Errors sorting a arrayCollection ready for searching?
Don't understand why im getting these errors, can anybody help? I have just created an arrayCollection from a HTTPService that reads a table from my database. I am trying to check to see if the new user has entered an already used account name. After reading a number of articles I discovered searching the arrayCollection was possible but only after sorting the collection, this is what I am having trouble with. Here is my code: private function userHandler(event:ResultEvent):void { acUsers = event.result.response.data.row; acUsers.fields = [new SortField(usraccount, true)]; acUsers.sort=acUsers; acUsers.refresh(); } I am getting the following error at (acUsers.sort=acUsers;): implicit coercion of a value of type mx.collections:ArrayCollection to an unrelated type mx.collections:Sort. and also an error at (acUsers.fields = [new SortField(usraccount, true)];) Access of possibly undefined property fields through a refrence with static type mx.collections:ArrayCollection.
[flexcoders] triggering itemsChangeEffect when using filters on an ArrayCollection's
Hey Guys So what im basically doing is creating a List Component of players scores. The dataprovider is type ArrayCollection, and i have applied a sort filter on the collection so it sorts by players score, but when the filter is applied and the order of the collection changes, the itemsChangeEffect doesnt get triggered, so no effects occur. So thats the main problem, does anyone have a clue on how to go around this, or a fix for it? Cheers Regards SCHAN (fatmanchan2009)
RE: [flexcoders] TabNavigator stacking order
Either write a custom TabNavigator which does it (I can't see any properties or styles for it), or Just use a Viewstack and TabBar yourself to do the same effect (TabNavigator doesn't actually add much to just using them individually). Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk
Re: [flexcoders] Re: how to insert checkbox value into database
For this problem to be solved, I think you need to find out what value is getting to Access. Something is reaching Access. What is it? On Mon, Nov 23, 2009 at 6:57 AM, stinasius stinas...@yahoo.com wrote: this is what i have tried to do following your previous example... private var poolSelected: Boolean = false; public function poolselected():void{ if(pool.selected == true){ poolSelected = 1; } else{ poolSelected = 0; } } private function insertHandler():void{ listManager.listProperty(poolSelected); mx:RemoteObject id=listManager destination=ColdFusion source=App.src.cfcs.propertyMaintenance showBusyCursor=true mx:method name=listProperty result=handleStringResult(event) fault=mx.controls.Alert.show(event.fault.faultString)/ /mx:RemoteObject mx:CheckBox label=Pool id=pool color=#99 width=160 fontSize=12 click=poolselected()/ -- Chris Downey http://www.vaccine-tlc.org/ http://www.chrisdowney.name/ http://code.google.com/p/vaccine-toxic-load-calculator/
[flexcoders] Re: how to enable stack traceback?
Or you could turn on the local Apache server, set your flex output directory to one of the directories served by Apache and set up a run config in Flex to open a localhost URL. This is what I do on a PC after installing WAMP. --- In flexcoders@yahoogroups.com, mitchgrrt mitch_g...@... wrote: The problem was Firefox's popup blocker. I unblocked popups and now I see the tracebacks. Unfortunately what I would have liked to do was to block most popups, and enter my file:// URL from my local app I'm building, into the exception list. But Firefox doesn't seem to accept a file:// URL in the popup exception list. Now I'll have to endure lots of popups groan Thanks a lot for all the help. --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: My question was really whether you're running the app in the standalone debugger player or in Safari's debugger player or some other browser's debugger player. The debugger player has a config file called mm.cfg. I don't know where it goes on Mac. I don't know if there is an option to shut off the dialog but if you find mm.cfg and post the contents I can look up what is in there. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui
[flexcoders] Flash Builder 4 for Linux Apha3 Released!
this version fixed the can't run/debug air bug! more info:http://code.google.com/p/fb4linux/ 闲云孤鹤 - 清冷香中抱膝吟
[flexcoders] Re: Help! - AdvancedDataGrid - Applying sort as if user clicked column header
So can anyone tell me how to sort when using a grouping collection? The GC is sorted how I want it, but I want the rest of them to default to being sorted as if the user had clicked on the header of the first column. I can't find help on this anywhere. Thanks in advance. --- In flexcoders@yahoogroups.com, tntomek tnto...@... wrote: Grouping data provider has its own sort property that is separate from the base sort on your ArrayCollection, you will have to specify that in one of the group of grouping field properties
Re: [flexcoders] Flash Builder 4 for Linux Apha3 Released!
On Monday 23 Nov 2009, feiy wrote: this version fixed the can't run/debug air bug! Any update on the Eclipse 3.5 issue ? -- Helping to economically participate unique end-to-end high-end markets as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Public method access to a SWF, loaded via an HTML, in AIR. Doable..?
Hello. :) I'm building a kiosk app in AIR, in which I need to load an .html page using the HTML control, and on that page is a .swf movie. I've gotten this far without a problem. In the loaded .swf movie there are text inputs which I need to have the user type into. But here's the catch; since this has to operate as a kiosk on a touchscreen PC I need to build a touchscreen keyboard in the AIR app and pipe the user's input into the text input fields in the loaded .swf I'm not certain how to approach this, but I can re-code the loaded .swf file, so I was thinking of setting up public methods in that .swf which the AIR app calls to pass in the user's input from the AIR keyboard buttons. Is there a way to set up a reference connection between the loaded .swf and the containing AIR app, so that they can call one another's public methods? -[a]-
[flexcoders] Re: the most popular way to be connected with sql server REFdn0085136210
I don't know if it's the most Popular way, but I use PHP/MySQL with WebORB http://www.themidnightcoders.com/products/weborb-for-php/overview.html --- In flexcoders@yahoogroups.com, dennis den...@... wrote: Hello ppl. Which is the most popular way a Flex application to join an internet sql server (mysql or oracle)? Please give me some guidelines and places to read about. thanx dennis
[flexcoders] Re: Tilelist: empty cells when refresh dataprovider
It's a little difficult to tell without seeing some code. Can you post a small self contained example? --- In flexcoders@yahoogroups.com, jack_freud jack_...@... wrote: Hi, I have a tilelist with an item renderer, and I refresh the dataprovider that is an arraycollection. The tilelist is set up to display 4 columns, with any number of rows. The number of items will not always be multiples of 4, so there may be empty cells at the end of a row. It works just fine til I hit a larger collection that makes a scrollbar show up. After that, occasionally and unpredictably, I'll get empty cells within the area that has content, pushing cells with data to the next row. I've read what I can about renderer recycling, esp by Alex Harui, but don't see what I can do about empty renderers... I don't have empty data items, so what can be causing these empty cells? I really appreciate anyone's help on this!
[flexcoders] Re: TabNavigator stacking order
You may like to expand upon this example... http://flexexamples.blogspot.com/2007/12/positioned-tab-navigator-in-flex.html --- In flexcoders@yahoogroups.com, Joel Stransky stranskydes...@... wrote: By default, a TabNavigator adds its TabBar on top of the viewstack. Is there a way to force it to draw it underneath the subcontainers? -- --Joel Stransky stranskydesign.com
[flexcoders] Re: Change the caret in TextArea
These links should help... http://www.switchonthecode.com/tutorials/flex-custom-cursor-tutorial http://blog.flexexamples.com/2007/09/10/changing-the-cursor-in-a-flex-application-using-the-cursormanager-class/ http://www.adobe.com/livedocs/flex/3/langref/mx/managers/CursorManager.html#setCursor%28%29 --- In flexcoders@yahoogroups.com, Shabir Gilkar shabirgil...@... wrote: Nice question friend, even i do wanna to know the answer On 11/23/09, rituraj_tiwari rituraj.tiw...@... wrote: Folks, I need to implement and editable text area where the cursor (caret) is different from the default vertical flashing caret. Is the caret a skinnable property of TextArea? In case the flashing vertical line is deeply entrenched, I would like to be able to overlay my own floating caret on top of it to obscure it. Is there an easy way to get the X-Y coordinates of the caret so that I can move() my custom cursor graphic to that location? Thanks for your help. -Raj -- View this message in context: http://old.nabble.com/Change-the-caret-in-TextArea-tp26474743p26474743.html Sent from the FlexCoders mailing list archive at Nabble.com. -- With Regards Shabir Ahmad Gilkar Srinagar Kashmir JK Voice: +91 9419942501 email: shabirgil...@... Skype: shabirgilkar
[flexcoders] Re: Errors sorting a arrayCollection ready for searching?
You are probably better off checking if the new user has entered an already used account name on the back end and sending through a Yes/No answer to Flex. Anyway, You should be able to figure out how to do a sort by perusing this example: http://blog.flexexamples.com/2007/08/05/sorting-an-arraycollection-using-the-sortfield-and-sort-classes/ --- In flexcoders@yahoogroups.com, criptopus sd_br...@... wrote: Don't understand why im getting these errors, can anybody help? I have just created an arrayCollection from a HTTPService that reads a table from my database. I am trying to check to see if the new user has entered an already used account name. After reading a number of articles I discovered searching the arrayCollection was possible but only after sorting the collection, this is what I am having trouble with. Here is my code: private function userHandler(event:ResultEvent):void { acUsers = event.result.response.data.row; acUsers.fields = [new SortField(usraccount, true)]; acUsers.sort=acUsers; acUsers.refresh(); } I am getting the following error at (acUsers.sort=acUsers;): implicit coercion of a value of type mx.collections:ArrayCollection to an unrelated type mx.collections:Sort. and also an error at (acUsers.fields = [new SortField(usraccount, true)];) Access of possibly undefined property fields through a refrence with static type mx.collections:ArrayCollection.
Re: [flexcoders] language switch on mac does not work?
To clarify a bit more I am interested in ALT-SHIFTing (in windows - what is needed on a Mac) into a different language than the default. Foe example from English to Greek, German, or any other 2nd, 3rd ... language. If i copy and paste Greek text into a text box this works.. But typing directly via the keyboard the character set remains English (even though the browser shows Greek as the input...) Anybody from Adobe can throw some light? TIA, Fotis On Mon, Nov 23, 2009 at 3:02 PM, fotis.chatzinikos fotis.chatzini...@gmail.com wrote: Hello all, I have tried to google this but I do not seem to find anything... Anyone knows if this is a known bug? Is there a solution? TIA, Fotis
Re: [flexcoders] Re: the most popular way to be connected with sql server REFdn0085136210
valdhor! * * *Thanks for the link, I did not know about this WebORB but is pretty cool! * 2009/11/23 valdhor valdhorli...@embarqmail.com I don't know if it's the most Popular way, but I use PHP/MySQL with WebORB http://www.themidnightcoders.com/products/weborb-for-php/overview.html --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, dennis den...@... wrote: Hello ppl. Which is the most popular way a Flex application to join an internet sql server (mysql or oracle)? Please give me some guidelines and places to read about. thanx dennis -- Jorge Hernández Martínez Electro-Acoustic Telecommunication Engineer +34 605 132572
[flexcoders] Re: Public method access to a SWF, loaded via an HTML, in AIR. Doable..?
You may be better off finding a Java based virtual keyboard (Like http://www.noamik.de/wiki/index.php/Virtual_Keyboard) and using Merapi (http://merapiproject.net/) to exchange data. --- In flexcoders@yahoogroups.com, andr01dm andr0...@... wrote: Hello. :) I'm building a kiosk app in AIR, in which I need to load an .html page using the HTML control, and on that page is a .swf movie. I've gotten this far without a problem. In the loaded .swf movie there are text inputs which I need to have the user type into. But here's the catch; since this has to operate as a kiosk on a touchscreen PC I need to build a touchscreen keyboard in the AIR app and pipe the user's input into the text input fields in the loaded .swf I'm not certain how to approach this, but I can re-code the loaded .swf file, so I was thinking of setting up public methods in that .swf which the AIR app calls to pass in the user's input from the AIR keyboard buttons. Is there a way to set up a reference connection between the loaded .swf and the containing AIR app, so that they can call one another's public methods? -[a]-
[flexcoders] Re: the most popular way to be connected with sql server REFdn0085136210
Very cool and very useful. We use it here with thousands of connected users. --- In flexcoders@yahoogroups.com, Jorge Hernández jorge.albac...@... wrote: valdhor! * * *Thanks for the link, I did not know about this WebORB but is pretty cool! * 2009/11/23 valdhor valdhorli...@... I don't know if it's the most Popular way, but I use PHP/MySQL with WebORB http://www.themidnightcoders.com/products/weborb-for-php/overview.html --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, dennis dennis@ wrote: Hello ppl. Which is the most popular way a Flex application to join an internet sql server (mysql or oracle)? Please give me some guidelines and places to read about. thanx dennis -- Jorge Hernández Martínez Electro-Acoustic Telecommunication Engineer +34 605 132572
[flexcoders] Re: I've got a [Bindable] boolean var - can I setup a eventlistener on it?
Even easier, would be to change the var to a getter/setter, and execute the function in the setter. -TH --- In flexcoders@yahoogroups.com, Christopher McArthur cmcart...@... wrote: assuming your in the same class as changeme: private var changemeWatcher:ChangeWatcher; this.changemeWatcher = ChangeWatcher.watch(this, changeme, changemeChangedFunction); this function will get called every time it changes: private function changemeChangedFunction(event:PropertyChangeEvent):void when you are done, make sure to uregister it with this.changemeWatcher.unwatch(); __ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of luvfotography Sent: Friday, November 20, 2009 3:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] I've got a [Bindable] boolean var - can I setup a eventlistener on it? I've declared a [Bindable] private var changeme:Boolean; Is there a way to execute a function whenever this var changes? thanks,
[flexcoders] Re: Looking for help with Linechart and xml
Use a second series. -TH --- In flexcoders@yahoogroups.com, shenji_s she...@... wrote: I am passing a xml in this fortmat Performance TimeSlot Time=11/1/09 System ID=1 CPU=20 System ID=2 CPU=22 /TimeSlot TimeSlot Time=11/2/09 System ID=1 CPU=34 System ID=2 CPU=15 /TimeSlot /Performance How do I make my linechart to have the the linechart show both system and the CPU for each date? Thanks so much guys I am really stuck on this
[flexcoders] First Custom Component
So I have created my first full custom component and would really like some feedback on it. It replaces a List that uses ItemRenderers. I hate the Flex List component, especially when using variableRowHeight and ItemRenderers. I could never get it to work right, and the size changing scrollbar drove me nuts, so here is my ItemScroller component. It is build fairly specific to the app I am building, but could be used elsewhere. Basically it takes a dataprovider and ItemRenderer(Just another component really) and adds instances of the itemrender to a scrolling canvas contained in a VBox. I added paging for really large datasets, and controls for that at the bottom. So it would be really great to hear some suggestion on making this ItemScroller better, and feel free to use it if you want So here is the code ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=init() horizontalScrollPolicy=off horizontalGap=1 verticalGap=3 horizontalAlign=center mx:Metadata [Event(name=itemSelected, type=flash.events.Event)] /mx:Metadata mx:Script ![CDATA[ import mx.collections.ListCollectionView; import mx.core.ScrollPolicy; import mx.core.UIComponent; import mx.core.Container; import mx.collections.ICollectionView; import mx.collections.XMLListCollection; import mx.events.CollectionEvent; import mx.collections.ArrayCollection; private var _dataProvider:ListCollectionView; private var _pageData:ArrayCollection = new ArrayCollection(); private var _pageSize:int = 10; [Bindable]private var _currPage:int = 1; [Bindable]private var _numPages:Number; [Inspectable] public var selectable:Boolean = false; public var selectedItem:Object; public var itemRenderer:Class; private var isInit:Boolean = false; private function init():void { isInit = true; if(_dataProvider != null){ setDP(); } } override public function validateSize(recursive:Boolean = false):void { super.validateSize(recursive); if (!initialized) return; if (itemCanvas.height itemCanvas.measuredHeight) itemCanvas.verticalScrollPolicy = ScrollPolicy.ON; else itemCanvas.verticalScrollPolicy = ScrollPolicy.OFF; } public function set dataProvider(val:ListCollectionView):void { if(val is XMLListCollection){ //trace(set dp XMLListCollection); _dataProvider = val as XMLListCollection; }else{ //trace(set dp ArrayCollection); _dataProvider = val as ArrayCollection; } _dataProvider.addEventListener(CollectionEvent.COLLECTION_CHANGE, setDP); //_dataProvider.filterFunction = sortData; setDP(); } private function setDP(e:CollectionEvent = null):void { if(e != null){ //trace(setDP event +e.kind); } trace(dp length +_dataProvider.length); if(_dataProvider.length 10){ controls.visible = true; controls.height = 20; _numPages = numberOfPages(); firstBtn.enabled = false; prevBtn.enabled = false; lastBtn.enabled = true; nextBtn.enabled = true;
[flexcoders] Re: Errors sorting a arrayCollection ready for searching?
I agree that you are probably better doing the backend search, but if you need to do it in your app here's the proper way to sort. You just missed declaring a sort as a new object (then since you didn't have an object you were trying to apply sortfields to an AC) and then you apply that new sort to your AC. private function private function userHandler(event:ResultEvent):void{ acUsers = evt.result.rows.row; var sort:Sort = new Sort(); sort.fields = [new SortField(usraccount,true)]; acUsers.sort = sort; acUsers.refresh(); } --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: You are probably better off checking if the new user has entered an already used account name on the back end and sending through a Yes/No answer to Flex. Anyway, You should be able to figure out how to do a sort by perusing this example: http://blog.flexexamples.com/2007/08/05/sorting-an-arraycollection-using-the-sortfield-and-sort-classes/ --- In flexcoders@yahoogroups.com, criptopus sd_brown@ wrote: Don't understand why im getting these errors, can anybody help? I have just created an arrayCollection from a HTTPService that reads a table from my database. I am trying to check to see if the new user has entered an already used account name. After reading a number of articles I discovered searching the arrayCollection was possible but only after sorting the collection, this is what I am having trouble with. Here is my code: private function userHandler(event:ResultEvent):void { acUsers = event.result.response.data.row; acUsers.fields = [new SortField(usraccount, true)]; acUsers.sort=acUsers; acUsers.refresh(); } I am getting the following error at (acUsers.sort=acUsers;): implicit coercion of a value of type mx.collections:ArrayCollection to an unrelated type mx.collections:Sort. and also an error at (acUsers.fields = [new SortField(usraccount, true)];) Access of possibly undefined property fields through a refrence with static type mx.collections:ArrayCollection.
[flexcoders] Re: language switch on mac does not work?
I'd start by ensuring you have the Greek framework resources setup for Flex (see: http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_Runtime_Localization#Huh.3F_French_framework_resources.3F). It's possible that pasting works because you are pasting in UTF-8 characters but typing won't because Flex expects the locale to be whatever it was when you started the app. I used the linked article to setup a localized app (in English, French and German so far) and it was an invaluable resource. Also, the Mac equivalent of Windows' Alt-Shift is Option-Shift. In AIR the key code is the same: Keyboard.ALTERNATE. --- In flexcoders@yahoogroups.com, Fotis Chatzinikos fotis.chatzini...@... wrote: To clarify a bit more I am interested in ALT-SHIFTing (in windows - what is needed on a Mac) into a different language than the default. Foe example from English to Greek, German, or any other 2nd, 3rd ... language. If i copy and paste Greek text into a text box this works.. But typing directly via the keyboard the character set remains English (even though the browser shows Greek as the input...) Anybody from Adobe can throw some light? TIA, Fotis On Mon, Nov 23, 2009 at 3:02 PM, fotis.chatzinikos fotis.chatzini...@... wrote: Hello all, I have tried to google this but I do not seem to find anything... Anyone knows if this is a known bug? Is there a solution? TIA, Fotis
[flexcoders] MAC : TextInput focus
Hi, In our application, i am trying to set the focus on the login page which has got textinput field. This works fine in IE as well as Firefox but fails in Mac browser. Any pointers on how to set the focus on the textinput field in Mac browser? Thanks, Suman
Re: [flexcoders] Re: Looking for help with Linechart and xml
How do I use the series to point to the CPU attribute in System? I want each series to be based on the ID attribute and graph out by the CPU attribute. I hope I am making sense lol On Mon, Nov 23, 2009 at 9:23 AM, turbo_vb timh...@aol.com wrote: Use a second series. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, shenji_s she...@... wrote: I am passing a xml in this fortmat Performance TimeSlot Time=11/1/09 System ID=1 CPU=20 System ID=2 CPU=22 /TimeSlot TimeSlot Time=11/2/09 System ID=1 CPU=34 System ID=2 CPU=15 /TimeSlot /Performance How do I make my linechart to have the the linechart show both system and the CPU for each date? Thanks so much guys I am really stuck on this
[flexcoders] Re: Looking for help with Linechart and xml
Ah, I see. You're going to have to parse your base data into 2 separate dataProviders; one for id 1 and one for id 2. Then use 2 series based on time slot and cpu. Since the time slots match for the 2 collections, the two lines will align. -TH --- In flexcoders@yahoogroups.com, shenji she...@... wrote: How do I use the series to point to the CPU attribute in System? I want each series to be based on the ID attribute and graph out by the CPU attribute. I hope I am making sense lol On Mon, Nov 23, 2009 at 9:23 AM, turbo_vb timh...@... wrote: Use a second series. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, shenji_s shenji@ wrote: I am passing a xml in this fortmat Performance TimeSlot Time=11/1/09 System ID=1 CPU=20 System ID=2 CPU=22 /TimeSlot TimeSlot Time=11/2/09 System ID=1 CPU=34 System ID=2 CPU=15 /TimeSlot /Performance How do I make my linechart to have the the linechart show both system and the CPU for each date? Thanks so much guys I am really stuck on this
Re: [flexcoders] Re: Looking for help with Linechart and xml
Thanks for the help turbo, can you give me a pointer on how would the dataprovider look like? I currently is getting the xml returned back to me through a web service. I have something like this in the code. mx:WebService id=PerfData wsdl=http://10.20.33.34/Service1.asmx?WSDL; showBusyCursor=true requestTimeout=60 mx:operation name=getDataXML mx:request /mx:request /mx:operation dataProvider={PerfData.getDataXML.lastResult.Performance.TimeSlot} On Mon, Nov 23, 2009 at 12:00 PM, turbo_vb timh...@aol.com wrote: Ah, I see. You're going to have to parse your base data into 2 separate dataProviders; one for id 1 and one for id 2. Then use 2 series based on time slot and cpu. Since the time slots match for the 2 collections, the two lines will align. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, shenji she...@... wrote: How do I use the series to point to the CPU attribute in System? I want each series to be based on the ID attribute and graph out by the CPU attribute. I hope I am making sense lol On Mon, Nov 23, 2009 at 9:23 AM, turbo_vb timh...@... wrote: Use a second series. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, shenji_s shenji@ wrote: I am passing a xml in this fortmat Performance TimeSlot Time=11/1/09 System ID=1 CPU=20 System ID=2 CPU=22 /TimeSlot TimeSlot Time=11/2/09 System ID=1 CPU=34 System ID=2 CPU=15 /TimeSlot /Performance How do I make my linechart to have the the linechart show both system and the CPU for each date? Thanks so much guys I am really stuck on this
[flexcoders] Droppable areas
Sorry to bother you guys again, but I never found an answer for my strange droppable region problem. The situation is that I have Boxes that respond to dragOver and dragDrop messages. However, the dragOver message doesn't get fired over the whole object. The area that generates a dragOver message seems to change based on how many children are added to the box. However, even that seems to be inconsistent. Noting in the source that the dragOver event seems to be called within the mouseOver event for dragProxy, I tested the theory by putting a listener on mouseOver, which displayed the same problem. So, what defines a valid region for a mouseOver event?
Re: [flexcoders] Re: language switch on mac does not work?
Thanks for the link, i will have a look and let people know if i get it to work... I have a hunch that it might not apply in my case because all localization is server side.. but you never know.. Thanks again, Fotis On Mon, Nov 23, 2009 at 9:10 PM, seanmcmonahan s...@seanmonahan.org wrote: I'd start by ensuring you have the Greek framework resources setup for Flex (see: http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_Runtime_Localization#Huh.3F_French_framework_resources.3F). It's possible that pasting works because you are pasting in UTF-8 characters but typing won't because Flex expects the locale to be whatever it was when you started the app. I used the linked article to setup a localized app (in English, French and German so far) and it was an invaluable resource. Also, the Mac equivalent of Windows' Alt-Shift is Option-Shift. In AIR the key code is the same: Keyboard.ALTERNATE. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Fotis Chatzinikos fotis.chatzini...@... wrote: To clarify a bit more I am interested in ALT-SHIFTing (in windows - what is needed on a Mac) into a different language than the default. Foe example from English to Greek, German, or any other 2nd, 3rd ... language. If i copy and paste Greek text into a text box this works.. But typing directly via the keyboard the character set remains English (even though the browser shows Greek as the input...) Anybody from Adobe can throw some light? TIA, Fotis On Mon, Nov 23, 2009 at 3:02 PM, fotis.chatzinikos fotis.chatzini...@... wrote: Hello all, I have tried to google this but I do not seem to find anything... Anyone knows if this is a known bug? Is there a solution? TIA, Fotis
[flexcoders] Re: Looking for help with Linechart and xml
Don't have a lot of time right now, but basically you're looking to massage the data into something like this: first collection for System ID 1: TimeSlot Time=11/1/09 ID=1 CPU=20 TimeSlot Time=11/2/09 ID=1 CPU=34 Second collection for System ID 2: TimeSlot Time=11/1/09 ID=2 CPU=22 TimeSlot Time=11/2/09 ID=2 CPU=15 Then use 2 series that plot Time and CPU. -TH --- In flexcoders@yahoogroups.com, shenji she...@... wrote: Thanks for the help turbo, can you give me a pointer on how would the dataprovider look like? I currently is getting the xml returned back to me through a web service. I have something like this in the code. mx:WebService id=PerfData wsdl=http://10.20.33.34/Service1.asmx?WSDL; showBusyCursor=true requestTimeout=60 mx:operation name=getDataXML mx:request /mx:request /mx:operation dataProvider={PerfData.getDataXML.lastResult.Performance.TimeSlot} On Mon, Nov 23, 2009 at 12:00 PM, turbo_vb timh...@... wrote: Ah, I see. You're going to have to parse your base data into 2 separate dataProviders; one for id 1 and one for id 2. Then use 2 series based on time slot and cpu. Since the time slots match for the 2 collections, the two lines will align. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, shenji shenji@ wrote: How do I use the series to point to the CPU attribute in System? I want each series to be based on the ID attribute and graph out by the CPU attribute. I hope I am making sense lol On Mon, Nov 23, 2009 at 9:23 AM, turbo_vb TimHoff@ wrote: Use a second series. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, shenji_s shenji@ wrote: I am passing a xml in this fortmat Performance TimeSlot Time=11/1/09 System ID=1 CPU=20 System ID=2 CPU=22 /TimeSlot TimeSlot Time=11/2/09 System ID=1 CPU=34 System ID=2 CPU=15 /TimeSlot /Performance How do I make my linechart to have the the linechart show both system and the CPU for each date? Thanks so much guys I am really stuck on this
[flexcoders] LocalConnection - Meh!
[flexcoders] Help setting the selectedChild of a viewstack
I'm trying to grab a portion of the BrowserManager.fragment (I bring it in as an object) and then use it to set the selectedChild of a ViewStack. I'm running into a type conversion error. Essentially this is what I'm trying to do: o.view contains the portion of my fragment - say it is set to sytems with (.../index.html#view=systems) var o:Object = URLUtil.stringToObject(browserManager.fragment); I then try to set the selectedChild of my ViewStack with: myVS.selectedChild = o.view; I get the following: TypeError: Error #1034: Type Coercion failed: cannot convert sytems to mx.core.Container. I'm not sure how to make this work. Any thoughts? Thanks.
Re: [flexcoders] Flash Builder 4 for Linux Apha3 Released!
Eclipse 3.5 issue ?! i don't know any issue about eclipse 3.5,and i work with eclipse 3.5,every work fine! 闲云孤鹤 - 清冷香中抱膝吟 On Mon, Nov 23, 2009 at 11:38 PM, Tom Chiverton tom.chiver...@halliwells.com wrote: On Monday 23 Nov 2009, feiy wrote: this version fixed the can't run/debug air bug! Any update on the Eclipse 3.5 issue ? -- Helping to economically participate unique end-to-end high-end markets as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.Halliwells.com.
RE: [flexcoders] triggering itemsChangeEffect when using filters on an ArrayCollection's
So I investigated this a lot myself a while ago, and you are pretty much out of luck. itemsChangeEffect does not work with refresh. You can fake it a bit, by instead of doing a sort or a filter, manually adding/removing/moving elements one at a time in the list, which will trigger the itemsChangeEffect. Unfortunately, this only works for very simple changes, for complex changes the itemEffect will get confused and do the wrong thing. For something like sorting a high scores list with a filter, this will probably NOT work. To solve my very similar problem I had to create a brand new custom component that did this. I basically recreated the features of List that I needed and implemented the animation of them moving around using Move/Fade. The adobe sample that has a similar feature you are requesting also does not use itemChangeEffect, but instead implements a custom component like I did. http://www.adobe.com/devnet/flex/samples/flex_store/ as a side note, I was using itemChangeEffect a lot throughout my ap for the simpler lists, but I ended up encountering so many bugs and problems with it that I have now completely removed it from my application. Bummer, but hopefully they work better in Gumbo when I move to that. -ctm _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of fatmanchan2009 Sent: Friday, November 20, 2009 9:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] triggering itemsChangeEffect when using filters on an ArrayCollection's Hey Guys So what im basically doing is creating a List Component of players scores. The dataprovider is type ArrayCollection, and i have applied a sort filter on the collection so it sorts by players score, but when the filter is applied and the order of the collection changes, the itemsChangeEffect doesnt get triggered, so no effects occur. So thats the main problem, does anyone have a clue on how to go around this, or a fix for it? Cheers Regards SCHAN (fatmanchan2009)
Re: [flexcoders] MAC : TextInput focus
Does the screen look like it has focus but when you type it doesn't actually go there? From: Suman srgayak...@gmail.com To: flexcoders@yahoogroups.com Sent: Mon, November 23, 2009 11:37:49 AM Subject: [flexcoders] MAC : TextInput focus Hi, In our application, i am trying to set the focus on the login page which has got textinput field. This works fine in IE as well as Firefox but fails in Mac browser. Any pointers on how to set the focus on the textinput field in Mac browser? Thanks, Suman
[flexcoders] How to preload RSL
I am facing some problem with RSL. I have an application contains many different modules. (One base main swf file and other module swf files ) I have created RSL of my some Flex Library projects as well as some third party open source APIs e.g. Papervision3D, Degrafa etc. The problem comes of - RSL not available - while loading / instantiating a module dynamically run time. So, I need to have an RSL to be available at the client side, Before my module is loaded / ready. Thanking you in advance. Mayur
[flexcoders] Confirming SDK 3.4 installation
I've downloaded and installed the 3.4 sdk as documented in the release notes. In flex builder preferences Installed Flex SDKs I've removed all other SDKs and only 3.4 exists there. But when I run About Flex builder I cannot see any confirmation of which SDK is being used. Any advice on how I can be sure I'm building and using only the new SDK?