[flexcoders] Thanks Alex!
I have no idea who is still listening to this thread but I think it's time to humbly, and gratefully thank Alex for his devotion to Flex and this thread. Two years ago our world was shaken and we've all moved onto different (not better) things. ;) Alex has continued to demonstrate and keep his promise in supporting Flex two years down the road and will probably continue to monitor these and other threads for several more. Hats off to you Alex! You are to commended for your devotion and sacrifices to our beloved Flex! James LongLiveFlex/
[flexcoders] Joe G James is out of the office.
I will be out of the office starting 12/18/2012 and will not return until 01/02/2013. I will respond to your message when I return.
[flexcoders] Joe G James is out of the office.
I will be out of the office starting 11/19/2012 and will not return until 11/26/2012. I will respond to your message when I return.
[flexcoders] Joe G James is out of the office.
I will be out of the office starting 09/17/2012 and will not return until 09/24/2012. I will respond to your message when I return.
Re: [flexcoders] Reduce time to load httpservice result
So the whole 60k records or partial records must be visible on the page? You have not mention which flex sdk version you are using. On Mar 29, 2012 11:20 PM, isa_loyer isa_lo...@yahoo.fr wrote: ** Hi, I do a query to mysql database with httpservice. The result contains arround 6 records. Time to create xml file is arround 40s, to slow for my customer. I try to accelerate the process with different methods, on server side, to generate file DOMDocument XmlWriter SimpleXMLElement As customer must be able to sort datagrid, I can not use pagging. So do you have an idea to load datagrid more speedly. Thanks
[flexcoders] Re: Tap Android app slow to respond.
Use madcomponents that built on effecient as3 code
Re: [flexcoders] Re: Tap Android app slow to respond.
Yup, mobile hardware are not as powerful as desktop PC that why there are spark components optimize for mobile, but some of the 2nd generation smartphone aren't good enough, I hope LG 4x that use quad-core can overcome the limitation. So did you code in AS3 or Flex mobile project? On Wed, Mar 7, 2012 at 2:28 AM, Greg Lafrance glafra...@chikaradev.comwrote: ** So is the problem likely inefficient coding? Maybe the current devices are simply not powerful enough to run Flex AIR apps on mobile efficiently if they are trying to do too much. Anyone else have thoughts on the original problem for this post? --- In flexcoders@yahoogroups.com, James Ong yanlilei64@... wrote: Use madcomponents that built on effecient as3 code
[flexcoders] Joe G James is out of the office.
I will be out of the office starting 03/02/2012 and will not return until 03/07/2012. I will respond to your message when I return.
Re: [flexcoders] Adobe AIR run time Installer
AIR 3.0 runtime for Linux is not supported. You could export a release version with Capitive Runtime that only found on FB 4.6. On Thu, Feb 23, 2012 at 7:02 PM, heman kkheman...@yahoo.com wrote: ** Hello all, I am developing adobe AIR application. I would like to bundle AIR runtime installer with my application, which has to support Window,MAC,Linux. how can i achieve this?
Re: [flexcoders] Re: Adobe AIR run time Installer
You have to export an AIR on Mac using Mac OS X. You will not be able to export a Mac installer from Windows environment. On Thu, Feb 23, 2012 at 8:47 PM, heman kkheman...@yahoo.com wrote: ** By using captive run time, the give the file will be with.exe extension.But we cannot use .exe in Mac. --- In flexcoders@yahoogroups.com, James Ong yanlilei64@... wrote: AIR 3.0 runtime for Linux is not supported. You could export a release version with Capitive Runtime that only found on FB 4.6. On Thu, Feb 23, 2012 at 7:02 PM, heman kkheman_86@... wrote: ** Hello all, I am developing adobe AIR application. I would like to bundle AIR runtime installer with my application, which has to support Window,MAC,Linux. how can i achieve this?
[flexcoders] Flex AIR mobile app reliability and stability
Hi, I wish to find out how reliability and stability using AIR for mobile app as compare to Android and iPhone SDK? On the marketplace and iTune store, almost all of the apps need bugfix or resolve the vulnerabilities, have any of the AIR you created need bugfix updates?
Re: [flexcoders] Advantages and Disadvantages of skinning
There only 3's advatanages and disadvantages: Pros: Customizable to distingish itself; ex, cancel button is red in color. More personalize for different applications rather than using boring theme style. Unique-ness Cons: Incurred more CPU processing Increase memory consumption for using Bitmap images. FXG is too verbose, complicated skinning code. It's better to use AS3. On Thu, Feb 9, 2012 at 12:32 PM, Myadi H myad...@gmail.com wrote: ** Hello folks, Today I have been asked to explain advantages and disadvantages of skinning in flex. I thought of asking this to all experienced flexers, and here it is. I hope this discussion will help everybody in future. So please input/share your knowledge. Thank you.
Re: [flexcoders] soundchannels for 3+ speakers
No, both are not related. Stage3D is for graphic, not audio On Feb 6, 2012 8:06 PM, Csomák Gábor csom...@gmail.com wrote: Hi! Since Stage3D is out, can you play sounds from specific speakers in AIR? Like in a 5.1 system, use the center? Thanks
Re: [flexcoders] soundchannels for 3+ speakers
*Multichannel audio digital output* (AIR for TV only). Adobe AIR for TV can now play Dolby Digital Plus 5.1 Surround and DTS 5.1 audio streams. The new Capabilities.hasMultiChannelAudio property, the new AudioDecoder class (containing constants representing several different multichannel audio types), and changes to the Capabilities.serverString property all allow developers to detect a device's multichannel audio capabilities and to stream the correct audio bitstream both from ActionScript and through RTMP. -- There is no plan for Flash to replace a home-theater multimedia player when Cyberlink product have much optimized code and video/audio decoder. For desktop target, you could develop a simple frontend multimedia player using AIR to control MPlayer commandline through NativeProcess. Depends on the configuration, it can sound clearer and more dynamic than you hear on Flash player. 2012/2/7 Csomák Gábor csom...@gmail.com ** yes, but i tought, if adobe wants 3d games, then maybe they'll support 3d sounds. thanks :( On Mon, Feb 6, 2012 at 1:15 PM, James Ong yanlile...@gmail.com wrote: No, both are not related. Stage3D is for graphic, not audio On Feb 6, 2012 8:06 PM, Csomák Gábor csom...@gmail.com wrote: Hi! Since Stage3D is out, can you play sounds from specific speakers in AIR? Like in a 5.1 system, use the center? Thanks
Re: [flexcoders] Native extension for windows
Yes, you could on Windows, Mac or mobile device. On Tue, Jan 24, 2012 at 9:13 PM, chiek...@gmail.com chiek...@gmail.comwrote: ** Hey people! I want to write some native app for windows, and sadly enough I have no experience with C or C++. Though, I can write Java... Is it possible to use Java as Air native extension language? I couldn't find explicit info on web about this issue. thanks, J
Re: [flexcoders] Native extension for windows
Try not to use NativeProcess, I have a bad experience with pipe data that couldn't read value from Java properly which is why I have implement Java socket to read and sent data over Flash XMLSocket. On Tue, Jan 24, 2012 at 10:22 PM, Tandon, Rishi rishitandon...@yahoo.comwrote: ** Yes you can. Use the window.runtime.flash.desktop.NativeProcess class Video to check: http://tv.adobe.com/watch/adc-presents/invoke-native-process-in-adobe-air-2/ Regards, Rishi Tandon -- *From:* chiek...@gmail.com chiek...@gmail.com *To:* flexcoders@yahoogroups.com *Sent:* Tuesday, January 24, 2012 6:43 PM *Subject:* [flexcoders] Native extension for windows Hey people! I want to write some native app for windows, and sadly enough I have no experience with C or C++. Though, I can write Java... Is it possible to use Java as Air native extension language? I couldn't find explicit info on web about this issue. thanks, J
Re: [flexcoders] Re: How to access IP camera with Adobe air?
You need to convert that into MPEG-4 format before it can be playback on Adobe AIR. Try google for flash video tutorial and NativeProcess to give you some idea how to implement it. The NativeProcess function in AIR is useful to control FFMPEG application in the background which can be convert the video, once the conversion is complete, you can implement your AIR application to load the video and playback. As there are various type of video camera, we have no idea if this work for your case. On Thu, Jan 12, 2012 at 11:20 PM, markflex2007 markflex2...@yahoo.comwrote: ** Hi James, Thanks for help. how to to access offline mjpeg video? please give me a help. Thanks Mark --- In flexcoders@yahoogroups.com, James Ong yanlilei64@... wrote: Video stream back through mjpeg and output to AIR will be tricky unless you have a streaming server and serve over UDP protocol. Definitely need a server to push data into the AIR application. If you prefer to access offline mjpeg video, it should be easy as using netconnection. On Thu, Jan 12, 2012 at 3:00 AM, markflex2007 markflex2007@...wrote: ** IP camera is not attached to current computer. and just provide a access ip that is a mjpeg format file. Any idea to do this.Thanks Mark --- In flexcoders@yahoogroups.com, markflex2007 markflex2007@ wrote: Hi IP camera can provide a link/url with mjpeg format. I am not sure how air/flex can access it. The problem is how to load mjpeg link in Flex/Air now. mjpeg is motion jpeg. I try different ways and I can not load the link in flex. Please help. Thanks Mark
Re: [flexcoders] Re: Flex alternatives
Using ZK and Java is great. I'm still sticking to Flex for developing desktop applications and gaming. Of course, many will still using it for animations, there is no such thing as abandon, some developers are just over use Flash and end up hurting user experience than necessary. When it comes to web application, I stick to PHP but will definitely use Flex for mobile, desktop and components within the web browser. On Thu, Jan 12, 2012 at 10:16 AM, michael_reg...@dell.com wrote: ** Staying with Flex. Not looking elsewhere. ** ** *Michael* ** ** *From:* flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] *On Behalf Of *Ron G *Sent:* Wednesday, January 11, 2012 8:15 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Flex alternatives ** ** Yes, we have also abandoned Flex in favor of ZKoss. Since we are already a Java shop, on the server side, it seemed logical to use a Java based framework on the client-side. The thing I really like about ZK or ZKoss is that it has equivalent components to Flex. In fact, it actually has more components than Flex. It implements an approach that I really like of separating the UI into appearance and behavior - much like the Spark components of Flex. Well, not exactly, but sort of. :) Here's what I mean. For each UI object, it has a client side (widget) and server side (component). I won't go into further detail, but it gives you a nice separation of concerns that you can avail yourself of. This feature also greatly insulates the rendered pages from x-browser compatibility issues. Check it out for yourself at their site (zkoss.org). Ron --- In flexcoders@yahoogroups.com, Sal sal.celli@... wrote: hi, as i can sadly see from the message history bottom grid, many programmers are leaving flex. So this thread is to ask you all, if you have already found a valid alternative to flex for RIA development.
Re: [flexcoders] Re: How to access IP camera with Adobe air?
Video stream back through mjpeg and output to AIR will be tricky unless you have a streaming server and serve over UDP protocol. Definitely need a server to push data into the AIR application. If you prefer to access offline mjpeg video, it should be easy as using netconnection. On Thu, Jan 12, 2012 at 3:00 AM, markflex2007 markflex2...@yahoo.comwrote: ** IP camera is not attached to current computer. and just provide a access ip that is a mjpeg format file. Any idea to do this.Thanks Mark --- In flexcoders@yahoogroups.com, markflex2007 markflex2007@... wrote: Hi IP camera can provide a link/url with mjpeg format. I am not sure how air/flex can access it. The problem is how to load mjpeg link in Flex/Air now. mjpeg is motion jpeg. I try different ways and I can not load the link in flex. Please help. Thanks Mark
Re: [flexcoders] Re: Bug in C function caused AIR to crash
Hi, someone just fixed my code, it working fine. But how do I inspect in Flex Builder where I have installed CDT and MingGW? On Tue, Dec 27, 2011 at 9:59 PM, Tomislav i...@svemir.net wrote: ** Did you try inspecting FREResut values from FREGetObjectAsUTF8 calls? FREREsult res = FRENewObjectFromUTF8(strlen(strAll)+1, (uint8_t *)strAll, result); printf(%d, res ); --- In flexcoders@yahoogroups.com, yanlilei64 yanlilei64@... wrote: No one know? --- In flexcoders@yahoogroups.com, yanlilei64 yanlilei64@ wrote: I want to pass the James string to getTestString function, the first time, the string could return This is James without any error. Subsequently after the button is click, the application will just hang/crash (grey out), it seem there some bugs in this code? Screenshot: http://imagetwist.com/7896zupwtu97/a.jpg.html Code: FREObject getTestString(FREContext ctx, void* funcData, uint32_t argc, FREObject argv[]) { FREObject result; //Temporary values to hold our actionscript code. uint32_t albumLength; const uint8_t *str; uint8_t *strAll; //Turn our actionscrpt code into native code. FREGetObjectAsUTF8(argv[0], albumLength, str); strcpy(strAll,This is ); strcat(strAll,str); //str is James //const char *str = this is ; FRENewObjectFromUTF8(strlen(strAll)+1, (uint8_t *)strAll, result); //UTF8 to object and return return result; }
[flexcoders] AIR crash when call C function
I want to pass the James string to getTestString function, the first time, the string could return This is James without any error. Subsequently after the button is click, the application will just hang/crash (grey out), it seem there some bugs in this code? Screenshot: http://imagetwist.com/7896zupwtu97/a.jpg.html Code: FREObject getTestString(FREContext ctx, void* funcData, uint32_t argc, FREObject argv[]) { FREObject result; //Temporary values to hold our actionscript code. uint32_t albumLength; const uint8_t *str; uint8_t *strAll; //Turn our actionscrpt code into native code. FREGetObjectAsUTF8(argv[0], albumLength, str); strcpy(strAll,This is ); strcat(strAll,str); //str is James //const char *str = this is ; FRENewObjectFromUTF8(strlen(strAll)+1, (uint8_t *)strAll, result); //UTF8 to object and return return result; }
[flexcoders] .Net supported HTML5 through Visual WebGui
It mean sense for Adobe to support HTML5 as well.
[flexcoders] Joe G James is out of the office.
I will be out of the office starting 12/19/2011 and will not return until 01/02/2012. I will respond to your message when I return.
Re: [flexcoders] Captive Runtime on FB 4.6
When you are exporting a release builder, it'll appear as one of the 4 options under Export as. Are you able to find it? On Thu, Dec 1, 2011 at 11:43 PM, markflex2007 markflex2...@yahoo.comwrote: ** Hi, Please give me a idea how to use Captive Runtime in FB 4.6, that is new feature for FB 4.6. I can not see any documentation about it. Thanks Mark
Re: [flexcoders] Flex and AIR on Mobile Platforms
The mission for Adobe is to help developers deliver contents to any devices without limitations. Therefore, you get the opportunity to create contents for WP7, iPhone and other devices not capable of Flash-enabled. Both HTML5 and Flash will share similarities performance since both will be using GPU for graphics acceleration. On Sun, Nov 13, 2011 at 4:01 PM, Johannes Nel johannes@gmail.comwrote: ** http://blogs.adobe.com/flex/2011/11/your-questions-about-flex.html On Sun, Nov 13, 2011 at 12:58 AM, Guy Morton g...@alchemy.com.au wrote: ** I think the only thing you should draw from this announcement is that Adobe has given up on trying to support flash as a browser plugin on mobile devices. I think they have seen that a) performance is an issue they may struggle to fix while maintaining compatibility and b) there is market resistance to plugins on mobile platforms (see the Windows 8 Metro plugin-less IE as the final domino to fall there). Flash is now in decline as a plugin technology. It will continue for a good few years yet, but it is trending downwards. Because its life as a plugin is drawing to an end, Adobe is seeking to reshape Flash as an app-building tool. This makes perfect sense, and if they do it well, they could manage to make an army of Flash/flex developers into app developers, which is not all bad. Adobe has read the writing on the wall and is putting a lot of effort into re-shaping themselves as the tool provider for HTML5. Certainly there is a need for great tools in this area, so I hope they succeed in doing this. Also, you might note with interest their purchase of nitobi, who make PhoneGap. Guy On 13/11/2011, at 1:56 AM, e_val_soft wrote: I'd like to understand more about Adobe's latest annnouncement that they will focus on HTML5 on mobile platforms(rather than Flash). Obviously a kick in the head for flex/air developers targetting applications that need or want a mobile client because mobile platform manufacturers will drop Flash (in a flash) from their product plans. I've seen some mixed messages - Adobe's version which is just a change in focus while the industry reads it like a Flash obituary. Here are two bullets from Adobe's announcement: --from Adobe.com •Shifting resources to support even greater investment in HTML5, through tools like Adobe® Dreamweaver, Adobe Edge and PhoneGap, recently added through the acquisition of Nitobi •Focusing Flash resources on delivering the most advanced PC web experiences, including gaming and premium video, as well as mobile apps -- I can almost see them sitting around the board room table debating whether to stick that , as well as mobile apps on the end of bullet 2 just to leave people like us (Flex developers I mean) confused. Pretend you're a Samsung or Motorola executive planning the next release of your latest mobile device. Do we spend $10 million and 40 developers integrating Flash? Since the vast majority of new, innovative applications involve incorporation or embracing of mobile clients, Flash's ubiquity, which is/was its greatest selling point, is gone. I mean when Jobs took a stand to ban Flash from iOS - that was a phaser blast to the holodeck, but this...this is a photon torpedo to the bridge. Am I reading this wrong, or should I be starting my new HTML5 career now? I mean once flash is gone from mobile, it is gone as a general web application framework so forget those desktop focused applications too, except some specialized graphics oriented apps. I think of what I'm developing now on Flex and it would be years away from possible with HTML5 but maybe I should be focusing on HTML5 plus one of the better JavaScript frameworks? I'm really looking for some opinions here about what flex developers think of the near term future based on this announcement. It'd be great to hear some Adobe employee perspectives (probably on gag order) but anyone with some insight, please do tell. I'd love to be told I'm exaggerating the consequence of the announcement -- j:pn \\no comment
Re: [flexcoders] Reading barcodes
use ready made libraries from Sourceforge and you can get start faster. On Wed, Sep 28, 2011 at 12:37 AM, Richard Rodseth rrods...@gmail.comwrote: ** Can anyone recommend a good strategy for reading barcodes on an AIR 3 mobile app? The as3 port of the zxing library does not appear to have been updated since 2009, but may work well, for all I know. But it occurs to me, that this could also be a good opportunity for a native extension. Any experiences or thoughts?
Re: [flexcoders] How to obtain mobile number by flex
Again, not possible except android, you will have to use Native Extension in AIR 3.0 to access Android API. On Tue, Sep 20, 2011 at 3:25 PM, j2me_soul j2me_s...@163.com wrote: ** How to obtain mobile number by flex sdk on Android OS ?
Re: [flexcoders] how common is Flex and Rails together?
What are you trying to develop? On Sun, Sep 18, 2011 at 3:43 AM, Chris Downey cdow...@gmail.com wrote: ** Hi, I'm just wondering if there is anybody who is actively working on a project or knows of projects where Flex and Rails are used together. Looking online, I see a burst of blogs between 2007-2009 but then it quickly fizzles. Any thoughts about this? Theoretically, it seems to be an interesting and useful fit, but when I start considering the details of making it work... I'm no longer so sure. Thanks, Chris
Re: [flexcoders] Can AIR get mobile number ?
Are you talking about mobile app? Only android can access contact list but it may work for AIR 3.0 that access Android API. On Sun, Sep 18, 2011 at 8:46 AM, j2me_soul j2me_s...@163.com wrote: ** Can AIR get mobile number ?
Re: [flexcoders] Fw: Help needed to build my own website on Flex builder 3
There is no better tutorial other than http://blog.flexexamples.com At the moment, it is having problem with the web hosting, keep checking back in the next few hours. On Wed, Aug 24, 2011 at 11:23 AM, anu rag rag_...@yahoo.com wrote: ** - Forwarded Message - *From:* anu rag rag_...@yahoo.com *To:* flexcoders@yahoogroups.com flexcoders@yahoogroups.com; flexcoders-subscr...@yahoogroups.com flexcoders-subscr...@yahoogroups.com *Sent:* Wednesday, 24 August 2011 8:10 AM *Subject:* Help needed to build my own website on Flex builder 3 Dear all, Can you please provide a sample website developed on adobe flex with source code? I am a New bie to this application.I could see only components in it and tourdeflex. I would be grateful for any kind of help. Thankyou
Re: [flexcoders] Could AIR create an automation app?
Not direct invocation but you can control them through NativeProcess that can pass a command of argument and received standard output from the application like Command Prompt. That right, AIR is made to be as portable as possible. For your case, you can use .Net or C# to automate those task. For easier coding, consider AutoIT which is widely use by System Admin to automate routine tasks, you can do a simple control like mouse and window position to advance control like hook DLL. I did used AutoIT in the past. On Mon, Aug 8, 2011 at 12:07 PM, MicC chigwel...@yahoo.com wrote: ** Does AIR have enough hooks to the os to create an automation app? Programs like Automate and WinAutomation script mouse position and clicks to control an app's gui, and Automate automatically recognizes menus and buttons etc if the app to be controlled conforms to something - not sure what. I really need the power of actionscript to control a widget intensive music gui. TIA, Mic.
[flexcoders] SocketMonitor and XMLSocket
Using Flex 4.5 and AIR 2.7. It seem to be buggy for 2 situations, I declare a timer for the socket private var socketTimer:Timer = new Timer(500,1); Code 1: This code took a few seconds before executing NativeProcess public function onTimerComplete(event:TimerEvent):void { socketMonitor = new SocketMonitor('127.0.0.1',8090); socketMonitor.addEventListener(StatusEvent.STATUS, socketStatusChange); socketMonitor.start(); } private function socketStatusChange(e:StatusEvent):void { if(socketMonitor.available==false xSo_start==false) { xSo_start=true; xSoDump(); //Execute NativeProcess EXE } } Code 2 (Optimize): This code will execute NativeProcess immediately but after a few mins, NativeProcess will hang by itself without any error: public function onTimerComplete(event:TimerEvent):void { socketMonitor = new SocketMonitor('127.0.0.1',8090); socketMonitor.addEventListener(StatusEvent.STATUS, socketStatusChange); socketMonitor.start(); xSoDump(); } private function socketStatusChange(e:StatusEvent):void { } Code 3 (Optimize): This solve the hanging issue when I place xSoDump on the 2nd line. public function onTimerComplete(event:TimerEvent):void { xSoDump(); socketMonitor = new SocketMonitor('127.0.0.1',8090); socketMonitor.addEventListener(StatusEvent.STATUS, socketStatusChange); socketMonitor.start(); } private function socketStatusChange(e:StatusEvent):void { } SoDump will execute a nativeprocess (Sodump.exe) which will setup a server connection of 127.0.0.1:8090. So the server will interactive with XMLSocket. Is SocketMonitor have any connection with XMLSocket? In certain situation, NativeProcess will hang itself too, this lead me to wonder if anyone encounter the same issue? In code 2, I'm sure SocketMonitor has time out and close the XMLSocket connection after it fail on the first try?
Re: [flexcoders] change datagrid rowHeight on rollover
Correct. I can accomplish that with the following override protected function updateDisplayList(w:Number,h:Number):void { var dg:DataGrid = DataGrid(listData.owner); if (dg.isItemHighlighted(data) || dg.isItemSelected(data) ) { super.height=40; } else{ super.height=25; }} but I loose the rollover color on the datagrid. Alex Harui aha...@adobe.com Sent by: flexcoders@yahoogroups.com 07/30/2010 12:56 PM Please respond to flexcoders@yahoogroups.com To flexcoders@yahoogroups.com flexcoders@yahoogroups.com cc Subject Re: [flexcoders] change datagrid rowHeight on rollover Normally you only want to change one row’s height so you do that with an itemRenderer. On 7/30/10 10:22 AM, joegjames joe.g.ja...@kp.org wrote: Is it possible to change the rowHeight on rollover? Does it have to be done from with in an itemRenderer? -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui image/gif
[flexcoders] Dragged Items Icons Disappearing Whilst Being Dragged
In my air app I have 2 tilelists which contain items that have a label and an icon. When I drag each item during the drag the dragged items icon is disappearing as it's being moved. The array collections which populate my 2 tilelists are populated dynamically via remote xml/http request. Is there any way to fix this and is it a known problem?
[flexcoders] how to use timer to go to different states
hi guys suppose i have 15 states state1 state2 state3 state4 all the way to state15 how do i use the timer class to automatically go from state1 to state15 with an interval of 5seconds. meaning display whatever i want to display in each state for 5seconds. ive been thinking of using for loops but i am not sure how to put it so that it increments to different states. ive also thought about setTimeout but that is kinda messy.i have to create 15functions with a setTimeout to the next state. i read that i can use setTimeOut but im not sure how to go about. documentation says i should use Timer class instead.
[flexcoders] Retrieving a logged in userid
My app displays items dynamically based on the value of a variable userid i.e. if userid is 1 all of the items in my array collection that have the user id of 1 will be displayed in a tilelist. What I want to do is have a log in system which will log users in but will also get the user id for that specific user and set it as my userid variable in my app so the app knows what user is logged in and can display any information relevant to that user. My mysql table that stores all the users has the columns userid (the value I want which is specific to each user) username and password. I've been using this tutorial which lets the user log in and if the login is successful some type of message is displayed but this solution doesn't allow the app to store what user is logged in via user id:- http://cookbooks.adobe.com/post_Create_a_login_system_with_Flex_and_PHP-7243.html Can anyone give me any advice on how to do this or what I'd need to do to modify this example to get the userid for the logged in user into my userid variable in my app please?
[flexcoders] Retrieving And Copying My Data For My App via Php
All the data for my app is dynamic and is brought into my app via a http request to a php file which converts it into xml so flex can use the data. The thing is because of my weak knowledge of php I'm struggling to get some functions working in it. When I ask for help on a php forum full of php experts I either get laughed out the door or my question get ignored like the fat girl at the prom :-( So I'm wondering if any of you guys can help me out. Here's my problem:- I have a project which allows users to favourite links to websites and also allows my client to add in new links to websites and update their details. The table which contains all the links which my client has added is called links and contains the values linkid (primary key in this table and each linkid is unique as it auto-increments), categoryid, label, icon and url. I then have a table called userlinks containing the values userid (NOT primary and NOT unique as this table is intended not to have a primary key), linkid, categoryid, label, icon, url and favourited (default value for favourited is 'N'). When the user creates a new account it creates a new userid for that new account in my users table. '$param_userid' is what I've assigned this value to in my php code as the logged in user. What I want is for each time a user creates an account a copy of all of the records in all of the columns in the links table is copied into the corresponding columns in the userlinks table as well as the values of $param_userid (the logged in userid) and favourited ('N') being applied for each record. Can anyone help me out with the code for this? I'm very inexperienced at using php. I also then want a query which when a user logs in with an existing account all of the data from the links table is copied over in the same way except this time it overwrites any records which the user with the logged in userid has, based on linkid and also inserts any new records which may have been added to the links table that they haven't had since they created their account (again with the logged in user id '$param_userid' and 'N' for favourited values added for each record). I hope this makes sense and I'd be very grateful if anyone could help me with these 2 queries.
[flexcoders] SetItemAt Not Updating Tilelist Icons Correctly
My app allows users to enter in a url a title and an image filename and then when they click a button a snapshot of this url is created and sent to the server as the filename they have entered and an item containing all this data is added to an array collection which displays all this within a tilelist, the item renderer is linked to the server which contains the images (via the i) so they are displayed within the tilelist. The thing is this I'm trying to allow my users to update these things using the setitemat method i.e. they click on an item and all it's data is displayed and they can edit it and then save it which will use the setitemat function to update this item in the array collection. My problem is this, if the user changes the url it takes a snapshot of this new url to overwrite the previous image on the server but if they keep the image filename the same it doesn't seem to refresh within the tilelist itself. I know the image on the server has been overwritten as the image on the server in question has been changed when I check it but for some reason the image in the tilelist isn't updating to the new image. It's as if flex has the old image stored in memory or something and won't switch to the new one. Is this common and is there anyway around this besides refreshing the whole array collection each time the user updates an item. Is there any way of refreshing only the item that has just been updated perhaps? The strange thing is if the user enters a different image filename. Here's the line of code which updates the selected item (with 'a' being the chosen item in the tilelist):- ArrayCollection(linkChoice.dataProvider).setItemAt({linkid:linkChoice.selectedIt em.linkid, categoryid:updatedcategoryid, label:updatedlabelentry.text, icon:updatediconentry.text, url:updatedurlentry.text}, a);
[flexcoders] Changing a combobox's SelectedIndex upon A Button Click
This may sound simple but I'm having trouble implementing the code. I have a combox box in my app (categorySelectorDropdown) populated by an array collection which contains the property 'categoryid'. I also have a variable I've defined in my app called 'chosencategoryid', the value of which changes based on the clicking of other buttons/items in my app. I have a button which once clicked should make the combobox's selectedindex change to the particular index which has the same categoryid value as the chosencategoryid variable's value but I'm struggling to figure out the code I thought the click of the button would be something like:- categorySelectorDropdown.selectedIndex=(categorySelectorDropdown.selectedIndex WHERE categoryid == chosencategoryid); Except that obviously wouldn't work but that's the best way I can explain what I want it to do. Can anyone advise me on what the sysntax should be?
[flexcoders] How to find the Value of a Property in the Last Object of An Array Collection
I want to allow my users to add their own values to my array collection 'linksFullAC' using the following code which gets fired when they click a button:- linksFullAC.addItem({linkid:?, label:userenteredlabel.text}) Except I want the link id value to autoincrement so that each time they add an item it is the value of the highest linkid in the array collection +1. For example if the highest linkid in the array collection is 53 and the user clicks this button the new link would be assigned a value of 54 for the linkid. Can anyone please help me out on the code I'd use to do this?
[flexcoders] Re: Changing a combobox's SelectedIndex upon A Button Click
Thanks. I'll take a look. I found another solution:- for each(var currentCategory:Category in _categories) { if(currentCategory.id == chosencategoryid) { categorySelectorDropdown.selectedItem = currentCategory; break; } } Cheers for your help. --- In flexcoders@yahoogroups.com, Andriy Panas a.pa...@... wrote: Have a look at Flex 3 ComboBox with selectedValue support www.forta.com/blog/index.cfm/2006/11/22/Flex-ComboBox-With-selectedValue-Support http://www.forta.com/blog/index.cfm/2006/11/22/Flex-ComboBox-With-selectedValue-Support -- Best regards, Andriy Panas On 23 April 2010 15:21, James garymoorcroft_...@... wrote: This may sound simple but I'm having trouble implementing the code. I have a combox box in my app (categorySelectorDropdown) populated by an array collection which contains the property 'categoryid'. I also have a variable I've defined in my app called 'chosencategoryid', the value of which changes based on the clicking of other buttons/items in my app. I have a button which once clicked should make the combobox's selectedindex change to the particular index which has the same categoryid value as the chosencategoryid variable's value but I'm struggling to figure out the code I thought the click of the button would be something like:- categorySelectorDropdown.selectedIndex=(categorySelectorDropdown.selectedIndex WHERE categoryid == chosencategoryid); Except that obviously wouldn't work but that's the best way I can explain what I want it to do. Can anyone advise me on what the sysntax should be?
[flexcoders] Need Help Getting A Value Into My App Via Flex And Php
I know this may not be the place to ask about php but I thought people may have came across a similar problem. Basically the data for my app is stored in a mysql database table and what I need to do is get the auto increment value of this table into my app via a http request. I'm trying to make a php file which gets this value and outputs this value as xml but I am awful at creating php to do such things and just get constant errors. Can anyone take a look at this and help me out to tweak it so it does what I want please? The table in question is called links and the field/row/column in the table I'm after is called linkid. It's the next autoincrement value of that row outputted as xml is what I want. Here's the php so far:- ?php header(Content-type: text/xml); $host = ; $user = ; $pass = ; $database = ; $linkID = mysql_connect($host, $user, $pass) or die(Could not connect to host.); mysql_select_db($database, $linkID) or die(Could not find database.); $tablename = links; $next_increment = 0; $qShowStatus= SHOW TABLE STATUS LIKE '$tablename'; $qShowStatusResult = mysql_query($qShowStatus) or die ( Query failed: . mysql_error() . br/ . $qShowStatus ); $row = mysql_fetch_assoc($qShowStatusResult); $next_increment = $row['Auto_increment']; echo next increment number: [$next_increment]; ?
[flexcoders] Re: What is the Correct Type of Component For This?
, currentItem:Object, bubbles:Boolean=true, cancelable:Boolean=true) { super(type, bubbles, cancelable); _currentItem = currentItem; } public override function clone():Event { return new MyCustomEvent(type, _currentItem, bubbles, cancelable); } public function get currentItem():Object {return _currentItem;} public function set currentItem(currentItem:Object):void {_currentItem = currentItem;} } } HTH Steve --- In flexcoders@yahoogroups.com, James garymoorcroft_ict@ wrote: Basically what I mean is I previously had a combo box populated by an array collection that contained the property categoryid and a tilelist populated by an array collection that also contained the property category id. So therefore when a user selected an item in the tilelist only the items that had a categoryid which matched the category id of that selected item were shown within the tilelist. Is this possible to implement into this new example? --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: I also looked at TourDeFlex to get some ideas. Here is a small example that I created that shows how to create a custom component as well as do the Glow effect on an image. (I got the image from downloading the file inside TourDeFlex under Glow): Application: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical verticalAlign=top horizontalAlign=center backgroundGradientColors=[0x00,0x323232] paddingTop=0 xmlns:components = * mx:Script ![CDATA[ [Bindable] private var dp:Array = [ {text: First, image: helmet}, {text: Second, image: helmet}, {text: Third, image: helmet}, {text: Fourth, image: helmet}, {text: Fifth, image: helmet} ]; ]] /mx:Script mx:HBox mx:Repeater id=myImages dataProvider={dp} components:MyImageComponent theItem={myImages.currentItem}/ /mx:Repeater /mx:HBox /mx:Application MyImageComponent.mxml ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; horizontalAlign=center width=200 height=200 creationComplete=onCreationComplete() mx:Script ![CDATA[ public var theItem:Object; [Bindable] private var imageLocation:String; private function onCreationComplete():void { thisText.text = theItem.text; thisImage.source = images/ + theItem.image + .png; } ]] /mx:Script mx:Image id=thisImage rollOverEffect={glowImage} rollOutEffect={unglowImage} autoLoad=true/ mx:Text id=thisText fontSize=24/ mx:Glow id=glowImage duration=1000 alphaFrom=1.0 alphaTo=0.3 blurXFrom=0.0 blurXTo=50.0 blurYFrom=0.0 blurYTo=50.0 color=0x22A050/ mx:Glow id=unglowImage duration=1000 alphaFrom=0.3 alphaTo=1.0 blurXFrom=50.0 blurXTo=0.0 blurYFrom=50.0 blurYTo=0.0 color=0x3380DD/ /mx:VBox BTW. I only found one png image so I used it repeatedly. Also, I have only one size. You should make multiple sizes and place them in the images folder. You should also set the width and height inside the custom component depending on the size you want (I have them hard coded in my example). Then you would pass a size to the custom component by exposing a public variable and use a switch statement to select the correct size. HTH Steve --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: OK, I did some googling and this looks like exactly what you are after... http://flexaired.blogspot.com/2008/07/sample-image-tile-list.html --- In flexcoders@yahoogroups.com, James garymoorcroft_ict@ wrote: Yes but it's the glow effect that I require. when each item is hovered over it needs to glow rather than just having the blue themed square. Have you got any idea how to do this? --- In flexcoders@yahoogroups.com, dannyvenier dannyvenier@ wrote: Why not use a tileList or if spark, a List with tile layout. You can use a custom itemrenderer which can re-render when additional buttons are added and in rendering, can determine the optimum size based on running an algorithm on your dataprovider. There are all sorts of edge conditions to worry about (what if the total text width exceeds
[flexcoders] Re: Problems With my XML Created Array Collection
Hi Steve. As I said earlier about using e4x I'm reluctant to use amfphp 1. because I already have eveything set up using regular php code and 2. I. struggle to find examples of how to use such methods compared to the regular methods of using traditional php. Would you happen to know if it is possible to send a copy of the array collection that I'm receiving somehow? I basically want it so that when the user logs in it gets the data that we've been discussing throughout this topic and sets it as an array collection in flex and then sends this whole array to the userlinks table I have in my mysql so each user basically has a whole copy of the links table to themselves and can edit this by setting favourites etc. How would you go about this judging by the code that I've got here (the code that Robert provided). I'd prefer to stick to php to upload the array as this project is for my uni course in which I've used php throughout but I suppose I could use amfphp to upload the arrays? Cheers for the advice so far. --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: I am a little late to this party but I would have to recommend using AMF to pass your data back and forth. this allows you to pass objects and arrays of objects both ways. No need to convert objects to XML and back to objects - they are all just objects. When the data comes in you can use ArrayUtil.toArray on the result and create an ArrayCollection from this array. An empty result will have created a zero length array and you can trap on that. I use WebORB for PHP (Community Edition which is free) as the PHP middleware and have never had a problem. I have posted many examples on this forum of how to pass data back and forth. If you need any further help, I am but a post away ;-} I started out in my Flex learning going the XML route but soon got very confused, especially with trying to send arrays of data TO the server. As soon as I figured out how to do it with AMF I converted everything and now will not go back. Best Regards Steve
[flexcoders] Re: What is the Correct Type of Component For This?
Heres an image of my icons which is basically what I'm after. http://i223.photobucket.com/albums/dd147/jimmyoneshot/theicons.jpg The only difference is these are all just static ones I put in myself, now I need them to be dynamic i.e. the user can add and remove icons which is why I need it to resize. I've found a way of getting a tilelist to autoresize but there is a problem witrh this. I also want them to have a glow effect as you can see there. In that last version on application complete all of those images were converted to greyscale then got converted to color when each one was hovered over. I need to achieve this same effect again but I'm not sure if a tilelist can achieve this either as it simply has that dull blue theme box. I know this box can be removed using actionscript but how can one add in the glow effect to a tilelist hovered over item? --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: Take a look at SuperTabNavigator which is part of FlexLib (http://code.google.com/p/flexlib/). From your description, it looks like it would do the trick. --- In flexcoders@yahoogroups.com, James garymoorcroft_ict@ wrote: I'm lost as to what component to use for navigation within my application. Across the top of my app I want something which horizontally displays a list of categories which the user can click to select. This is fine if I use a tilelist but I also want to allow my client to add and remove categories and for the width of the component to adjust so that new categories fit in but it seems impossible to apply fit to content to a tilelist the way you can to a hbox which obviously means scrollbars will appear and if you switch the scroll policy off this simply means any added categories won't be visible if they are past the set width. If a hbox had a selecteditem property that would be perfect. Is there any such way of getting a component to work like this?
[flexcoders] Re: What is the Correct Type of Component For This?
Hi oleg. Yep that seems like a good idea but I'd prefer to just use the tilelist for now. I've found a way of removing tilelists blue theme boxes and also found a way to make them auto resize based on how many items they have in them. Do you know of any way of how to apply a glow effect to a tilelist hovered item or perhaps selected item? I know it's easy to get a glow effect to target full components like buttons etc but is there any way to get such an effect to target a component's selected/hovered over items? --- In flexcoders@yahoogroups.com, Oleg Sivokon olegsivo...@... wrote: I'd really go for a custom layout than. Maybe you can take ListBase for a superclass, or just base it on UIComponent, or Group. Best. Oleg.
[flexcoders] Re: What is the Correct Type of Component For This?
I originally considered using a repeater inside a h box to repeat all of the items but the problem is a repeater doesn't allow items to be selected otherwise it would be perfect. You see I have a filter function that has been applied to my links based on what category item is selected. Overall what it needs to do is this:- - Have no blue theme boxes - Autoresize based on how many items are in it - On application complete all of the images in it are converted to greyscale (as shown in my pic) - The text and image of each item in it must glow and convert to colour as they are hovered over and convert back to greyscale and unglow as they are unhoevered over (again this can be seen in my app) All of the above effects are simple with static components but they are pretty much impossible to apply to a component that has the selcteditem/index properties i.e. is populated via a dataprovider. I wish the repeater component had a selected item property as I think that'd work. --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: I have never tried to do anything like this but just thinking off the top of my head... Try skinning components in Flex. http://www.davidflatley.com/2007/12/17/programmatic-button-skins-in-flex-3/ may be a good starting point. Look at using DeGrafa (http://www.degrafa.org) and/or ScaleNine (http://www.scalenine.com) to skin components. Have multiple sizes of graphics available and check the width of the screen and the number of icons and pick an appropriate size to show. --- In flexcoders@yahoogroups.com, James garymoorcroft_ict@ wrote: Heres an image of my icons which is basically what I'm after. http://i223.photobucket.com/albums/dd147/jimmyoneshot/theicons.jpg The only difference is these are all just static ones I put in myself, now I need them to be dynamic i.e. the user can add and remove icons which is why I need it to resize. I've found a way of getting a tilelist to autoresize but there is a problem witrh this. I also want them to have a glow effect as you can see there. In that last version on application complete all of those images were converted to greyscale then got converted to color when each one was hovered over. I need to achieve this same effect again but I'm not sure if a tilelist can achieve this either as it simply has that dull blue theme box. I know this box can be removed using actionscript but how can one add in the glow effect to a tilelist hovered over item? --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: Take a look at SuperTabNavigator which is part of FlexLib (http://code.google.com/p/flexlib/). From your description, it looks like it would do the trick. --- In flexcoders@yahoogroups.com, James garymoorcroft_ict@ wrote: I'm lost as to what component to use for navigation within my application. Across the top of my app I want something which horizontally displays a list of categories which the user can click to select. This is fine if I use a tilelist but I also want to allow my client to add and remove categories and for the width of the component to adjust so that new categories fit in but it seems impossible to apply fit to content to a tilelist the way you can to a hbox which obviously means scrollbars will appear and if you switch the scroll policy off this simply means any added categories won't be visible if they are past the set width. If a hbox had a selecteditem property that would be perfect. Is there any such way of getting a component to work like this?
[flexcoders] Re: What is the Correct Type of Component For This?
That does sound like essentially what I'm after yes but the problem is I'm not sure how to actually do it as I have zero experience at 1. bubbling and 2. creating custom components :'-( Plus I think the answer may be within an edited tilelist component now. What I've managed to get so far (from another site) is a custom component based on a tilelist with my item renderer added into it. It has the blue themed rollover and selection squares completely removed for both rollover and selection but what I need to do is edit this code to instead do what I've described i.e. selection itself produces no visual effects but whilst an item is hovered over it's image converts to colour and it's image and label glows and when it is unhovered over the image returns to greyscale and all glow effects stop. Can you help me with this by any chance or point out what I would have to do to this code to achieve my own such component that allows the visual effects I need? I have some glow/unglow effects aswell as converttogreyscale and converttocolor effects from previous apps :-) Here's the code I've got for the component:- ?xml version=1.0 encoding=utf-8? mx:TileList xmlns:mx=http://www.adobe.com/2006/mxml; mx:itemRenderer mx:Component mx:Canvas width=125 height=145 mx:Image source={data.icon} height=64 width=64 top=10 horizontalCenter=0/ mx:Label text={data.label} bottom=1 horizontalCenter=0 color=#FF fontWeight=bold fontSize=12/ /mx:Canvas /mx:Component /mx:itemRenderer mx:Script ![CDATA[ import mx.core.EdgeMetrics; import mx.core.IFlexDisplayObject; import mx.skins.halo.ListDropIndicator; import mx.events.DragEvent; import mx.controls.listClasses.IListItemRenderer; use namespace mx_internal; override protected function drawSelectionIndicator( indicator:Sprite, x:Number, y:Number, width:Number, height:Number, color:uint, itemRenderer:IListItemRenderer):void { } // Remove the Selection indicator override protected function drawHighlightIndicator( indicator:Sprite, x:Number, y:Number, width:Number, height:Number, color:uint, itemRenderer:IListItemRenderer):void { } ]] /mx:Script /mx:TileList Thanks for your help so far. --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: A...Why do you say repeater items can't be selected? I built a custom component that responds to a mouse click and then repeat this component multiple times using a repeater from data that is returned from my server (Essentially this is a list of regions containing customers. Each user is only authorized to see specific regions/customers so the number of custom components repeated is set from this data). The custom component is fully self contained and responds to mouse clicks. If the underlying application needs to know about the clicks, I dispatch a bubbling event which the app listens for. So, in your case create a custom component with your different skins (greyscal/colored). The component should contain multiple sizes of images as well as a public var to set the size. The app should know the stage size as well as the number of items to display (From the server call). In your repeater, set the public var to the size you need. Each custom component can have its own overskin etc and respond appropriately as well as its own event listener for mouse clicks. --- In flexcoders@yahoogroups.com, James garymoorcroft_ict@ wrote: I originally considered using a repeater inside a h box to repeat all of the items but the problem is a repeater doesn't allow items to be selected otherwise it would be perfect. You see I have a filter function that has been applied to my links based on what category item is selected. Overall what it needs to do is this:- - Have no blue theme boxes - Autoresize based on how many items are in it - On application complete all of the images in it are converted to greyscale (as shown in my pic) - The text and image of each item in it must glow and convert to colour as they are hovered over and convert back to greyscale and unglow as they are unhoevered over (again this can be seen in my app) All of the above effects are simple with static components but they are pretty much impossible to apply to a component that has the selcteditem/index properties i.e. is populated via a dataprovider. I wish the repeater component had
[flexcoders] Re: What is the Correct Type of Component For This?
Yes but it's the glow effect that I require. when each item is hovered over it needs to glow rather than just having the blue themed square. Have you got any idea how to do this? --- In flexcoders@yahoogroups.com, dannyvenier dannyven...@... wrote: Why not use a tileList or if spark, a List with tile layout. You can use a custom itemrenderer which can re-render when additional buttons are added and in rendering, can determine the optimum size based on running an algorithm on your dataprovider. There are all sorts of edge conditions to worry about (what if the total text width exceeds that of your container etc., etc.., but those have to be dealt with in any case, and I imagine you need a custom renderer anyway, to build your list items. --- In flexcoders@yahoogroups.com, James garymoorcroft_ict@ wrote: I'm lost as to what component to use for navigation within my application. Across the top of my app I want something which horizontally displays a list of categories which the user can click to select. This is fine if I use a tilelist but I also want to allow my client to add and remove categories and for the width of the component to adjust so that new categories fit in but it seems impossible to apply fit to content to a tilelist the way you can to a hbox which obviously means scrollbars will appear and if you switch the scroll policy off this simply means any added categories won't be visible if they are past the set width. If a hbox had a selecteditem property that would be perfect. Is there any such way of getting a component to work like this?
[flexcoders] Re: What is the Correct Type of Component For This?
Thanks so much for helping me out valdhor. I've been racking my brains trying to find it. I've even been trying to draw circles which glow inside the drawselectionindicator of my tilelist component but that would look a bit bland and is a pain to position them. In that code you found there are 2 very interesting lines of code mainly those which relate to the image inside of his item renderer abd the code which they are pointing to for their glow effect:- mx:Image id=myImage source={data.image} width=100 height=100 alpha=0.6 rollOutEffect={outerDocument.myOut} rollOverEffect={outerDocument.myOver}/ And this:- mx:Parallel id=myOver mx:Blur blurXFrom=30 blurYFrom=30 / mx:Fade alphaFrom=0.6 alphaTo=1 / mx:Resize widthTo=150 heightTo=150 easingFunction=Back.easeOut/ mx:Glow alphaTo=20 blurYTo=20 blurXTo=20 color=0x00ff00 / /mx:Parallel I'm assuming that if I can incorporate my effects into that code then I'll be able to do the same. At least I hope. But what exactly does outerdocument mean? I've came across it but never used it and I also have what a parallel is but if it works I could care less :-) Thanks for being so helpful. I'll let you know how it goes here. --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: OK, I did some googling and this looks like exactly what you are after... http://flexaired.blogspot.com/2008/07/sample-image-tile-list.html --- In flexcoders@yahoogroups.com, James garymoorcroft_ict@ wrote: Yes but it's the glow effect that I require. when each item is hovered over it needs to glow rather than just having the blue themed square. Have you got any idea how to do this? --- In flexcoders@yahoogroups.com, dannyvenier dannyvenier@ wrote: Why not use a tileList or if spark, a List with tile layout. You can use a custom itemrenderer which can re-render when additional buttons are added and in rendering, can determine the optimum size based on running an algorithm on your dataprovider. There are all sorts of edge conditions to worry about (what if the total text width exceeds that of your container etc., etc.., but those have to be dealt with in any case, and I imagine you need a custom renderer anyway, to build your list items. --- In flexcoders@yahoogroups.com, James garymoorcroft_ict@ wrote: I'm lost as to what component to use for navigation within my application. Across the top of my app I want something which horizontally displays a list of categories which the user can click to select. This is fine if I use a tilelist but I also want to allow my client to add and remove categories and for the width of the component to adjust so that new categories fit in but it seems impossible to apply fit to content to a tilelist the way you can to a hbox which obviously means scrollbars will appear and if you switch the scroll policy off this simply means any added categories won't be visible if they are past the set width. If a hbox had a selecteditem property that would be perfect. Is there any such way of getting a component to work like this?
[flexcoders] Re: What is the Correct Type of Component For This?
creationComplete=onCreationComplete() mx:Script ![CDATA[ public var theItem:Object; [Bindable] private var imageLocation:String; private function onCreationComplete():void { thisText.text = theItem.text; thisImage.source = images/ + theItem.image + .png; } ]] /mx:Script mx:Image id=thisImage rollOverEffect={glowImage} rollOutEffect={unglowImage} autoLoad=true/ mx:Text id=thisText fontSize=24/ mx:Glow id=glowImage duration=1000 alphaFrom=1.0 alphaTo=0.3 blurXFrom=0.0 blurXTo=50.0 blurYFrom=0.0 blurYTo=50.0 color=0x22A050/ mx:Glow id=unglowImage duration=1000 alphaFrom=0.3 alphaTo=1.0 blurXFrom=50.0 blurXTo=0.0 blurYFrom=50.0 blurYTo=0.0 color=0x3380DD/ /mx:VBox BTW. I only found one png image so I used it repeatedly. Also, I have only one size. You should make multiple sizes and place them in the images folder. You should also set the width and height inside the custom component depending on the size you want (I have them hard coded in my example). Then you would pass a size to the custom component by exposing a public variable and use a switch statement to select the correct size. HTH Steve --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: OK, I did some googling and this looks like exactly what you are after... http://flexaired.blogspot.com/2008/07/sample-image-tile-list.html --- In flexcoders@yahoogroups.com, James garymoorcroft_ict@ wrote: Yes but it's the glow effect that I require. when each item is hovered over it needs to glow rather than just having the blue themed square. Have you got any idea how to do this? --- In flexcoders@yahoogroups.com, dannyvenier dannyvenier@ wrote: Why not use a tileList or if spark, a List with tile layout. You can use a custom itemrenderer which can re-render when additional buttons are added and in rendering, can determine the optimum size based on running an algorithm on your dataprovider. There are all sorts of edge conditions to worry about (what if the total text width exceeds that of your container etc., etc.., but those have to be dealt with in any case, and I imagine you need a custom renderer anyway, to build your list items. --- In flexcoders@yahoogroups.com, James garymoorcroft_ict@ wrote: I'm lost as to what component to use for navigation within my application. Across the top of my app I want something which horizontally displays a list of categories which the user can click to select. This is fine if I use a tilelist but I also want to allow my client to add and remove categories and for the width of the component to adjust so that new categories fit in but it seems impossible to apply fit to content to a tilelist the way you can to a hbox which obviously means scrollbars will appear and if you switch the scroll policy off this simply means any added categories won't be visible if they are past the set width. If a hbox had a selecteditem property that would be perfect. Is there any such way of getting a component to work like this?
[flexcoders] Re: What is the Correct Type of Component For This?
Valdhor I've implemented the code from the last example you gave me and visually I have it working perfectly now, converting to color/grayscale, glowing/unglowing everything. I only have one problem with it which is I'm totally unsure as to how to get it to simulate the selecteditem click in the app itsef. You see previously I used a combobox as my category navigation/links filterer which had the index 0 set as the default selected item and as the user clicked each combobox item it filtered the links data within my links tilelist. How can I implement the selected item property into the repeater so that as the user clicks on each item it is set as the selected item the way it would be in a combobox/tilelist? You see the problem is I have a filter function which gets applied to my links tilelist array collection dataprovider which was previously (when I used the combobox) set to:- if(category.categoryid == categorySelectorDropdown.selectedItem.categoryid) { return true; } else{ return false; } } So as you can see without being able to have a selected item property I can't use this filter function effectively :-( Sorry to be a pain but it's just that I remember you mentioned you used a repeater which simulated a tilelist selecteditem click and I was wondering how this could be done with my code so the repeater we have acted in this way? --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: I also looked at TourDeFlex to get some ideas. Here is a small example that I created that shows how to create a custom component as well as do the Glow effect on an image. (I got the image from downloading the file inside TourDeFlex under Glow): Application: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical verticalAlign=top horizontalAlign=center backgroundGradientColors=[0x00,0x323232] paddingTop=0 xmlns:components = * mx:Script ![CDATA[ [Bindable] private var dp:Array = [ {text: First, image: helmet}, {text: Second, image: helmet}, {text: Third, image: helmet}, {text: Fourth, image: helmet}, {text: Fifth, image: helmet} ]; ]] /mx:Script mx:HBox mx:Repeater id=myImages dataProvider={dp} components:MyImageComponent theItem={myImages.currentItem}/ /mx:Repeater /mx:HBox /mx:Application MyImageComponent.mxml ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; horizontalAlign=center width=200 height=200 creationComplete=onCreationComplete() mx:Script ![CDATA[ public var theItem:Object; [Bindable] private var imageLocation:String; private function onCreationComplete():void { thisText.text = theItem.text; thisImage.source = images/ + theItem.image + .png; } ]] /mx:Script mx:Image id=thisImage rollOverEffect={glowImage} rollOutEffect={unglowImage} autoLoad=true/ mx:Text id=thisText fontSize=24/ mx:Glow id=glowImage duration=1000 alphaFrom=1.0 alphaTo=0.3 blurXFrom=0.0 blurXTo=50.0 blurYFrom=0.0 blurYTo=50.0 color=0x22A050/ mx:Glow id=unglowImage duration=1000 alphaFrom=0.3 alphaTo=1.0 blurXFrom=50.0 blurXTo=0.0 blurYFrom=50.0 blurYTo=0.0 color=0x3380DD/ /mx:VBox BTW. I only found one png image so I used it repeatedly. Also, I have only one size. You should make multiple sizes and place them in the images folder. You should also set the width and height inside the custom component depending on the size you want (I have them hard coded in my example). Then you would pass a size to the custom component by exposing a public variable and use a switch statement to select the correct size. HTH Steve --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: OK, I did some googling and this looks like exactly what you are after... http://flexaired.blogspot.com/2008/07/sample-image-tile-list.html --- In flexcoders@yahoogroups.com, James garymoorcroft_ict@ wrote: Yes but it's the glow effect that I require. when each item is hovered over it needs to glow rather than just having the blue themed square. Have you got any idea how to do this? --- In flexcoders@yahoogroups.com, dannyvenier dannyvenier@ wrote: Why not use a tileList or if spark, a List with tile layout. You can use a custom itemrenderer which can re-render when additional buttons are added and in rendering, can determine the optimum size based on running an algorithm on your dataprovider. There are all sorts of edge conditions to worry
[flexcoders] Re: What is the Correct Type of Component For This?
Basically what I mean is I previously had a combo box populated by an array collection that contained the property categoryid and a tilelist populated by an array collection that also contained the property category id. So therefore when a user selected an item in the tilelist only the items that had a categoryid which matched the category id of that selected item were shown within the tilelist. Is this possible to implement into this new example? --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: I also looked at TourDeFlex to get some ideas. Here is a small example that I created that shows how to create a custom component as well as do the Glow effect on an image. (I got the image from downloading the file inside TourDeFlex under Glow): Application: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical verticalAlign=top horizontalAlign=center backgroundGradientColors=[0x00,0x323232] paddingTop=0 xmlns:components = * mx:Script ![CDATA[ [Bindable] private var dp:Array = [ {text: First, image: helmet}, {text: Second, image: helmet}, {text: Third, image: helmet}, {text: Fourth, image: helmet}, {text: Fifth, image: helmet} ]; ]] /mx:Script mx:HBox mx:Repeater id=myImages dataProvider={dp} components:MyImageComponent theItem={myImages.currentItem}/ /mx:Repeater /mx:HBox /mx:Application MyImageComponent.mxml ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; horizontalAlign=center width=200 height=200 creationComplete=onCreationComplete() mx:Script ![CDATA[ public var theItem:Object; [Bindable] private var imageLocation:String; private function onCreationComplete():void { thisText.text = theItem.text; thisImage.source = images/ + theItem.image + .png; } ]] /mx:Script mx:Image id=thisImage rollOverEffect={glowImage} rollOutEffect={unglowImage} autoLoad=true/ mx:Text id=thisText fontSize=24/ mx:Glow id=glowImage duration=1000 alphaFrom=1.0 alphaTo=0.3 blurXFrom=0.0 blurXTo=50.0 blurYFrom=0.0 blurYTo=50.0 color=0x22A050/ mx:Glow id=unglowImage duration=1000 alphaFrom=0.3 alphaTo=1.0 blurXFrom=50.0 blurXTo=0.0 blurYFrom=50.0 blurYTo=0.0 color=0x3380DD/ /mx:VBox BTW. I only found one png image so I used it repeatedly. Also, I have only one size. You should make multiple sizes and place them in the images folder. You should also set the width and height inside the custom component depending on the size you want (I have them hard coded in my example). Then you would pass a size to the custom component by exposing a public variable and use a switch statement to select the correct size. HTH Steve --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: OK, I did some googling and this looks like exactly what you are after... http://flexaired.blogspot.com/2008/07/sample-image-tile-list.html --- In flexcoders@yahoogroups.com, James garymoorcroft_ict@ wrote: Yes but it's the glow effect that I require. when each item is hovered over it needs to glow rather than just having the blue themed square. Have you got any idea how to do this? --- In flexcoders@yahoogroups.com, dannyvenier dannyvenier@ wrote: Why not use a tileList or if spark, a List with tile layout. You can use a custom itemrenderer which can re-render when additional buttons are added and in rendering, can determine the optimum size based on running an algorithm on your dataprovider. There are all sorts of edge conditions to worry about (what if the total text width exceeds that of your container etc., etc.., but those have to be dealt with in any case, and I imagine you need a custom renderer anyway, to build your list items. --- In flexcoders@yahoogroups.com, James garymoorcroft_ict@ wrote: I'm lost as to what component to use for navigation within my application. Across the top of my app I want something which horizontally displays a list of categories which the user can click to select. This is fine if I use a tilelist but I also want to allow my client to add and remove categories and for the width of the component to adjust so that new categories fit in but it seems impossible to apply fit to content to a tilelist the way you can to a hbox which obviously means scrollbars will appear and if you switch the scroll policy off this simply means any added categories won't be visible if they are past the set width. If a hbox had a selecteditem property that would be perfect. Is there any such way
[flexcoders] What is the best Way - Multiple DataProvider's or one?
In my app I have a tilelist with an array collection as it's dp which is populated via remote xml from a mysql database. When a user clicks a certain category button in my app it sends a request to the server to tell it which category items the user wants to see which in turn changes the array collection that populates the tilelist so it shows items within that category. The thing is though this seems to be a bit unreliable as it means the user has to wait for a while for the dataprovider to change so sometimes they click to the next category and the items from the previous category are still shown in the tilelist. Is it better practice to have multiple dataproviders initialsed at startup which the user can switch between as they click each category rather than modifying the same dataprovider? Basically I'm just wondering what way would you guys do it? I thought using just one dataprovider would slim down the code and make the app faster and more reliable but now I'm not sure.
[flexcoders] Re: Problems With my XML Created Array Collection
Thanks Tracy that looks good. I may try something similar in the future. I've managed to get the previous example provided by robert working though so basically I'm thinking if it isn't broke don't fix it. :-) It's all that I require really as I'm only using it to display the results and it covers everything I need. Thanks a lot for your advice. While you're hear would you happen to know how to upload an entire array collection to a server via php/http request? You see the thing is at the moment I have an app which allows users to create links and remove links which directly creates/removes them in the mysql database I have which holds my data. To explain what I want basically I have a links table which contains all the available links and a userlinks table in my mysql database. When the user creates a new account via my app all the links from the links table are displayed in the app using the method we've been discussing but now I want the user to be able to add the entire contents of this to the userlinks table. The purpose of this is the user can favorite each link which will alter a boolean field in the userlinks table which will mean in turn when a user logs in with an existing account the links they've favourited will be displayed. So basically firstly I need to know how to add/send mulitple records via flex/php. I have no problem adding/removing and updating individual records but I now need to know how to add multiple ones at once. Is there any way of doing this and do you know of any similar examples? --- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: Here is some untested code to loop (you will need to correct the automatic capitalization ): It is also more verbose than necessary, just for clarity. Var xmlResult:XML = event.result as XML; Trace(xmlResult.toXMLString()); //to verify your xml Var xlResult:XMLList = xmlResult.category; Var acResult:ArrayCollection = new ArrayCollection(); Var xmlCategory:XML; For (var i:uint=0;ixlResult.length()) { //watch out for the length() method, not property xmlCategory = xlResult[i]; acResult.addItem({id:xmlCategory.id.text(),label:xmlCategory.label.text(),icon:xmlCategory.icon.text()}); //usually the text) can be omitted, but I use it by habit. } myTileList.dataProvider = acResult; And DO avoid using lastResult in functions. It is intended for binding espressions. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Tuesday, April 20, 2010 12:39 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Problems With my XML Created Array Collection I know this is very late in the game, and I havenât read the full thread, but this seems like a very complicated solution to the problem. Further, the default resultFormat has other consequences, data type conversions for example. If you have a string that looks like a number, it will get converted to a number, removing trailing and leading zeros and such, and sometimes this is not desired. Using e4x and looping over the categories.category XMLList is very simple. XMLLists are never null, but empty nodes just result in a zero length, which is easy to test for. Tracy Spratt _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of James Sent: Monday, April 19, 2010 3:39 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Problems With my XML Created Array Collection I've noticed that if I remove all items from the mysql table which populates the remote xml file the xml that is produced is simply this:- ?xml version=1.0 ? categories / i.e. all of the nodes are removed so this means my app is looking for nodes that aren't actually there so it seems I need another else if bracket to deal with this but I haven't got a clue for how to check if an xml file is empty or null or whatever you'd call the above in flex and what to do within this else if bracket if it's not. --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Robert Moss rdm0004@ wrote: In essence yes, I do not think I would do it as part of the button click, but instead clear it before the IF in the result handler with LinksFullAC.source = new Array(); or LinksFullAC.removeAll(); I prefer the former. As for your error, I'm not sure what's happening, but you should be able to set a break in the result handler and see what is getting returned. It looks like for the combination you describe, categories is not getting returned for some reason. You'll need to figure out why and trap for it. The same goes for returning 0 records. See what is getting returned and trap
[flexcoders] Re: Problems With my XML Created Array Collection
Hi Amy. Sorry I missed your post yesterday. e4x does seem good but I was just a little bit worried about implementing it. As a flex beginner I tend to stick to the traditional most widely used methods of doing things as a lot of the times I work by looking at previous examples and applying them to my own code and it's hard to find examples of things such as handling results of e4x etc. Cheers. --- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote: --- In flexcoders@yahoogroups.com, Robert Moss rdm0004@ wrote: Yes use a third if statement like: if(event.result.categories) if(event.result.categories != null) should also work Notice I used event.result instead of LinksService.lastResult. Small change, but you should get in the habit as LinksService.lastResult will cause some pain in the future if you decide to change it's name for some reason. Amy suggested using e4x which is probably the correct answer as e4x grants you consistency ( you do not have the arrayCollection returned sometimes and ObjectProxy others) and allows you to work with XML in actionscript like XML was meant to be accessed. You will still have to trap for the same issues, just implemented in a different way. We do not always use e4x although we probably should, being lazy will probably bite us one of these days. I think you've misunderstood. By changing the result format from the default of object to e4x, you _avoid_ the problem the OP had, which is if there is only one object returned, you get a different result than if you have multiple objects returned. You don't have to trap for the problem, because it goes away. If there is only one node, you get one node. If there are multiple nodes, you get multiple nodes. But whatever. -Amy
[flexcoders] Re: What is the best Way - Multiple DataProvider's or one?
Hi I would but my code is pretty big. To sum it all up basically I have an application which displays links in a tilelist based on whatever category button the user clicks on. Each time the user clicks a category it sends the categoryid (which I've made as a variable that changes based on whatever category icon is clicked) to the server which gets all the the links that have that specific category id and displays them in the remote xml file which poulates the array collection that acts as the dataprovider for the tilelist. What I may do, which seems to be a better solution, is rather than constantly sending requests to the server instead simply get ALL the links from the table and also make the categories in my app dynamic and apply a filter function within my application that depends upon what category is clicked which will mean that the data will be getting handled within the app rather than getting passed back and forth. I think this is the best solution. The app also allows user to create and remove links so I suppse the only time I'll have to resend data to refresh the array collection to include such alterations is after the user adds, removes or updates data. --- In flexcoders@yahoogroups.com, sminrana sminr...@... wrote: Can you show your code? --- In flexcoders@yahoogroups.com, Tracy Spratt tracy@ wrote: As usual, it depends. If your data is small enough and static enough, get it all at once and avoid the inherent latency of remote data retrieval entirely. But rarely is data retrieval or processing the performance bottleneck. Most often it is screen rendering, and TileList can be a hog, depending on how you have implemented it. (How many and how complex are the tiles?) Use getTimer() to benchmark the various steps to verify where your bottleneck actually is. Regardless, consider disabling the TileList while it is rendering. I am not sure what the best event to use to indicate rendering complete will be. Knowing when a screen is fully rendered is not a simple thin, but I do not think you have to get the very latest event, just late enough to prevent clicking on stale data. Tracy Spratt, _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of James Sent: Tuesday, April 20, 2010 7:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] What is the best Way - Multiple DataProvider's or one? In my app I have a tilelist with an array collection as it's dp which is populated via remote xml from a mysql database. When a user clicks a certain category button in my app it sends a request to the server to tell it which category items the user wants to see which in turn changes the array collection that populates the tilelist so it shows items within that category. The thing is though this seems to be a bit unreliable as it means the user has to wait for a while for the dataprovider to change so sometimes they click to the next category and the items from the previous category are still shown in the tilelist. Is it better practice to have multiple dataproviders initialsed at startup which the user can switch between as they click each category rather than modifying the same dataprovider? Basically I'm just wondering what way would you guys do it? I thought using just one dataprovider would slim down the code and make the app faster and more reliable but now I'm not sure.
[flexcoders] What is the Correct Type of Component For This?
I'm lost as to what component to use for navigation within my application. Across the top of my app I want something which horizontally displays a list of categories which the user can click to select. This is fine if I use a tilelist but I also want to allow my client to add and remove categories and for the width of the component to adjust so that new categories fit in but it seems impossible to apply fit to content to a tilelist the way you can to a hbox which obviously means scrollbars will appear and if you switch the scroll policy off this simply means any added categories won't be visible if they are past the set width. If a hbox had a selecteditem property that would be perfect. Is there any such way of getting a component to work like this?
[flexcoders] Re: What is the Correct Type of Component For This?
Hi Oleg. I need it to display an icon and a label beneath that icon for each item. I thought about horizontal list but that doesn't expand automatically based on how many items are in it does it i.e. you can't edit it to fit to content? Basically I need the same effect as in the disney website navigation here. i.e. with an image for each item and a label beneath it (which can be done via an item renderer):- http://home.disney.co.uk/ But it's the resizing to refit any new added categories that I need to achieve. --- In flexcoders@yahoogroups.com, Oleg Sivokon olegsivo...@... wrote: Hi. A. You can always create your own layout. B. Thinking of ready-made components, it could be HorizontalList, TabNavigator, ApplicationControlBar etc, whichever is more relevant. Best. Oleg
[flexcoders] Problems With my XML Created Array Collection
In my app I have an array collection which populates a tilelist. This array collection is populated by a remote xml file via a http request. Problem is if the xml only has 1 or no nodes I get a null object reference error. I know this is a known problem but I've never been able to find a valid solution for it which could be applied to my code. I've heard of looping through the xml to create an array collection or using xmllist collection but I don't know how these can be done whilst still allowing the data to be displayed in the tilelist. Can anyone help me out please? The code for my httpservice, array collcection I'm trying to make and the result of the http service and the tilelist it populates is shown below. As I say this all works fine as long as the xml has more than 1 node but causes the error if it doesn't:- mx:HTTPService id=LinksService result=linksResultHandler(event) resultFormat=object method=POST url=http://www.coolvisiontest.com/getlinks.php/ mx:Script ![CDATA[ import mx.rpc.events.ResultEvent; import mx.collections.ArrayCollection; [Bindable] private var LinksFullAC:ArrayCollection; private function linksResultHandler(event:ResultEvent):void { LinksFullAC=LinksService.lastResult.categories.category as ArrayCollection; } ]] /mx:Script mx:TileList id=linkChoice dataProvider={LinksFullAC} height=365 width=665/ Here's my xml structure:- categories category id/id label/label icon/icon /category /categories Obviously I need the array collection to be populated by id, label and icon. Thanks for any suggestions.
[flexcoders] Re: Problems With my XML Created Array Collection
The thing is my xml is retrieved from a mysql database table which sometimes will have no records or 1 record which will mean the xml will have only 1 or no nodes which in turn causes the problem whereas sometimes it has many records therefore the xml file would have many nodes which would mean no problems. I've heard of looping but can't figure out how to do it or apply it to my code. I've tried simply changing the array collection to xmllist collection but then the data doesn't seem to appear in my tilelist. How would you loop using my specific code there because I always need it returned as an array collection to populate the tilelist but have no idea how to loop? Cheers for your help so far. --- In flexcoders@yahoogroups.com, Robert Moss rdm0...@... wrote: We had the same issue, and in our case it was an easy fix. When we read in the XML it was returning as an ArrayCollection as long as there were multiple nodes. As you have found, if it was only one node it returned as a generic object not an ArrayCollection. We were already looping through the ArrayCollection to populate value objects that we were using to populate our list. So before the loop we added, if xmlObject is an ArrayCollection than loop else populate VO with returned data. Worked without issues ever since. Robert From: thomas parquier mailingli...@... To: flexcoders@yahoogroups.com Sent: Mon, April 19, 2010 9:27:13 AM Subject: Re: [flexcoders] Problems With my XML Created Array Collection what about xmllistcollection ?; --- thomas parquier http://www.web- attitude. fr/realisations/ msn : thomas.parquier@ web-attitude. fr softphone : sip:webattitude@ ekiga.net téléphone portable : +33601 822 056 2010/4/19 James garymoorcroft_ i...@yahoo. co.uk In my app I have an array collection which populates a tilelist. This array collection is populated by a remote xml file via a http request. Problem is if the xml only has 1 or no nodes I get a null object reference error. I know this is a known problem but I've never been able to find a valid solution for it which could be applied to my code. I've heard of looping through the xml to create an array collection or using xmllist collection but I don't know how these can be done whilst still allowing the data to be displayed in the tilelist. Can anyone help me out please? The code for my httpservice, array collcection I'm trying to make and the result of the http service and the tilelist it populates is shown below. As I say this all works fine as long as the xml has more than 1 node but causes the error if it doesn't:- mx:HTTPService id=LinksService result=linksResultHandler( event) resultFormat=object method=POST url=http://www.coolvisi ontest.com/ getlinks. php/ mx:Script ![CDATA[ import mx.rpc.events. ResultEvent; import mx.collections. ArrayCollection; [Bindable] private var LinksFullAC: ArrayCollection; private function linksResultHandler( event:ResultEven t):void { LinksFullAC= LinksService. lastResult. categories. category as ArrayCollection; } ]] /mx:Script mx:TileList id=linkChoice dataProvider={LinksFullAC} height=365 width=665/ Here's my xml structure:- categories category id/id label/label icon/icon /category /categories Obviously I need the array collection to be populated by id, label and icon. Thanks for any suggestions.
[flexcoders] Re: Problems With my XML Created Array Collection
Hi Robert. Thanks so much for that my friend. I have some problems with it though. You see I have an event in my app applied to a button (refresh button) which resends data via the LinksService i.e. LinksService.send and I've noticed that with your code if there is only 1 link i.e. 1 node and I click the refresh button it seems to keep recreating that 1 over and over again as if it's recreating the same object in the array collection or something. This doesn't happen if their are 2 or more links/nodes/objects. Perhaps I'll have to get the refresh button to empty the array collection first before sending the data i.e. it's click function would be LinksFullAC.flush; LinksService.send() Am I right? I've also noticed now with your code applied if I select an item in the tilelist and click the reresh button I get the error Property categories not found on String and there is no default value which is indicating the error at the if statement in the code you gave me and the LinksService itself. Any idea what's causing this? Another question though what if the xml contains no nodes? You see my xml file is dynamic, I have a variable in my app called categoryid and that variable is based on a category that the user selects in my app and is submitted to getlinks.php which gets all the records from my mysql table which contain that specific submitted categoryid and output them as the xml file. Some categoryids have no records (the user can add and delte records via my app). Is there any way of getting it to handle 0 records/nodes as well as handling muliple records/1record which it seems to already do? Thanks so much for your help. Sorry to be a pain :-( --- In flexcoders@yahoogroups.com, Robert Moss rdm0...@... wrote: This is not exactly how I would implement, but you should get the idea. If you have multiple category nodes, then your LinksService.lastResult.categories.category is returned as an ArrayCollection and your code works. If it only has one node then LinksService.lastResult.categories.category is returned as an ObjectProxy. So in your return method you could have the following. if(LinksService.lastResult.categories.category is ArrayCollection){ LinksFullAC=LinksService.lastResult.categories.category as ArrayCollection; }else { var oCat:Object = new Object(); oCat.id = LinksService.lastResult.categories.category.id; oCat.label = LinksService.lastResult.categories.category.label; oCat.icon = LinksService.lastResult.categories.category.icon; LinksFullAC.addItem(oCat); // NOTE: LinksFullAC needs to not only be previously declared, but must also me instantiated with new ArrayCollection() for this line to work. } From: James garymoorcroft_...@... To: flexcoders@yahoogroups.com Sent: Mon, April 19, 2010 9:58:33 AM Subject: [flexcoders] Re: Problems With my XML Created Array Collection The thing is my xml is retrieved from a mysql database table which sometimes will have no records or 1 record which will mean the xml will have only 1 or no nodes which in turn causes the problem whereas sometimes it has many records therefore the xml file would have many nodes which would mean no problems. I've heard of looping but can't figure out how to do it or apply it to my code. I've tried simply changing the array collection to xmllist collection but then the data doesn't seem to appear in my tilelist. How would you loop using my specific code there because I always need it returned as an array collection to populate the tilelist but have no idea how to loop? Cheers for your help so far. --- In flexcod...@yahoogro ups.com, Robert Moss rdm0004@ wrote: We had the same issue, and in our case it was an easy fix. When we read in the XML it was returning as an ArrayCollection as long as there were multiple nodes. As you have found, if it was only one node it returned as a generic object not an ArrayCollection. We were already looping through the ArrayCollection to populate value objects that we were using to populate our list. So before the loop we added, if xmlObject is an ArrayCollection than loop else populate VO with returned data. Worked without issues ever since. Robert _ _ __ From: thomas parquier mailinglists@ ... To: flexcod...@yahoogro ups.com Sent: Mon, April 19, 2010 9:27:13 AM Subject: Re: [flexcoders] Problems With my XML Created Array Collection what about xmllistcollection ?; --- thomas parquier http://www.web- attitude. fr/realisations/ msn : thomas.parquier@ web-attitude. fr softphone : sip:webattitude@ ekiga.net téléphone portable : +33601 822 056 2010/4/19 James garymoorcroft_ i...@yahoo. co.uk
[flexcoders] Re: Problems With my XML Created Array Collection
You were right about removeall (flush ha whoops) helping. I applied removeall before the if statements like you said and the first error is now gone. The only problem I have now is the error which occurs when there are NO nodes in the xml i.e. all items have been removed and there are no values in my mysql table which relate to that specific category id. I've changed the code to this:- private function linksResultHandler(event:ResultEvent):void { LinksFullAC.removeAll(); if(LinksService.lastResult.categories.category is ArrayCollection) { LinksFullAC=LinksService.lastResult.categories.category as ArrayCollection; }else if (LinksService.lastResult.categories.category is ObjectProxy) { var oCat:Object = new Object(); oCat.linkid = LinksService.lastResult.categories.category.linkid; oCat.categoryid = LinksService.lastResult.categories.category.categoryid; oCat.label = LinksService.lastResult.categories.category.label; oCat.icon = LinksService.lastResult.categories.category.icon; oCat.link = LinksService.lastResult.categories.category.link; LinksFullAC.addItem(oCat); } } The thing is though in that code I have the first if statement to check for if the result is an array collection which sets it as an array collection, the second if statement which if it is an object proxy adds the single object to the array collection but I think what I'll need is a third if statement which checks if the xml is empty/null or something and assign what will happen if it is null. Do you know of any way to do this and if so what do you think is best to set as the operation of such an if statement to make sure this error doesn't occur anymore? I thought it might be something like:- if(LinksService.lastResult.categories.category is null) but there seems to be no such thing. Any ideas? Sorry to keep hassling but it's pretty much the last hiccup I've got in my app and I always try to pick the brains of guys who know their stuff as much as I can :-) --- In flexcoders@yahoogroups.com, Robert Moss rdm0...@... wrote: In essence yes, I do not think I would do it as part of the button click, but instead clear it before the IF in the result handler with LinksFullAC.source = new Array(); or LinksFullAC.removeAll(); I prefer the former. As for your error, I'm not sure what's happening, but you should be able to set a break in the result handler and see what is getting returned. It looks like for the combination you describe, categories is not getting returned for some reason. You'll need to figure out why and trap for it. The same goes for returning 0 records. See what is getting returned and trap for it. From: James garymoorcroft_...@... To: flexcoders@yahoogroups.com Sent: Mon, April 19, 2010 12:47:15 PM Subject: [flexcoders] Re: Problems With my XML Created Array Collection Hi Robert. Thanks so much for that my friend. I have some problems with it though. You see I have an event in my app applied to a button (refresh button) which resends data via the LinksService i.e. LinksService. send and I've noticed that with your code if there is only 1 link i.e. 1 node and I click the refresh button it seems to keep recreating that 1 over and over again as if it's recreating the same object in the array collection or something. This doesn't happen if their are 2 or more links/nodes/ objects. Perhaps I'll have to get the refresh button to empty the array collection first before sending the data i.e. it's click function would be LinksFullAC. flush; LinksService. send() Am I right? I've also noticed now with your code applied if I select an item in the tilelist and click the reresh button I get the error Property categories not found on String and there is no default value which is indicating the error at the if statement in the code you gave me and the LinksService itself. Any idea what's causing this? Another question though what if the xml contains no nodes? You see my xml file is dynamic, I have a variable in my app called categoryid and that variable is based on a category that the user selects in my app and is submitted to getlinks.php which gets all the records from my mysql table which contain that specific submitted categoryid and output them as the xml file. Some categoryids have no records (the user can add and delte records via my app). Is there any way of getting it to handle 0 records/nodes as well as handling muliple records/1record which it seems to already do? Thanks so much for your help. Sorry to be a pain :-( --- In flexcod...@yahoogro ups.com, Robert Moss rdm0004@ wrote: This is not exactly how I would implement, but you should get the idea. If you have multiple category
[flexcoders] Re: Problems With my XML Created Array Collection
I've noticed that if I remove all items from the mysql table which populates the remote xml file the xml that is produced is simply this:- ?xml version=1.0 ? categories / i.e. all of the nodes are removed so this means my app is looking for nodes that aren't actually there so it seems I need another else if bracket to deal with this but I haven't got a clue for how to check if an xml file is empty or null or whatever you'd call the above in flex and what to do within this else if bracket if it's not. --- In flexcoders@yahoogroups.com, Robert Moss rdm0...@... wrote: In essence yes, I do not think I would do it as part of the button click, but instead clear it before the IF in the result handler with LinksFullAC.source = new Array(); or LinksFullAC.removeAll(); I prefer the former. As for your error, I'm not sure what's happening, but you should be able to set a break in the result handler and see what is getting returned. It looks like for the combination you describe, categories is not getting returned for some reason. You'll need to figure out why and trap for it. The same goes for returning 0 records. See what is getting returned and trap for it. From: James garymoorcroft_...@... To: flexcoders@yahoogroups.com Sent: Mon, April 19, 2010 12:47:15 PM Subject: [flexcoders] Re: Problems With my XML Created Array Collection Hi Robert. Thanks so much for that my friend. I have some problems with it though. You see I have an event in my app applied to a button (refresh button) which resends data via the LinksService i.e. LinksService. send and I've noticed that with your code if there is only 1 link i.e. 1 node and I click the refresh button it seems to keep recreating that 1 over and over again as if it's recreating the same object in the array collection or something. This doesn't happen if their are 2 or more links/nodes/ objects. Perhaps I'll have to get the refresh button to empty the array collection first before sending the data i.e. it's click function would be LinksFullAC. flush; LinksService. send() Am I right? I've also noticed now with your code applied if I select an item in the tilelist and click the reresh button I get the error Property categories not found on String and there is no default value which is indicating the error at the if statement in the code you gave me and the LinksService itself. Any idea what's causing this? Another question though what if the xml contains no nodes? You see my xml file is dynamic, I have a variable in my app called categoryid and that variable is based on a category that the user selects in my app and is submitted to getlinks.php which gets all the records from my mysql table which contain that specific submitted categoryid and output them as the xml file. Some categoryids have no records (the user can add and delte records via my app). Is there any way of getting it to handle 0 records/nodes as well as handling muliple records/1record which it seems to already do? Thanks so much for your help. Sorry to be a pain :-( --- In flexcod...@yahoogro ups.com, Robert Moss rdm0004@ wrote: This is not exactly how I would implement, but you should get the idea. If you have multiple category nodes, then your LinksService. lastResult. categories. category is returned as an ArrayCollection and your code works. If it only has one node then LinksService. lastResult. categories. category is returned as an ObjectProxy. So in your return method you could have the following. if(LinksService. lastResult. categories. category is ArrayCollection) { LinksFullAC= LinksService. lastResult. categories. category as ArrayCollection; }else { var oCat:Object = new Object(); oCat.id = LinksService. lastResult. categories. category. id; oCat.label = LinksService. lastResult. categories. category. label; oCat.icon = LinksService. lastResult. categories. category. icon; LinksFullAC. addItem(oCat) ; // NOTE: LinksFullAC needs to not only be previously declared, but must also me instantiated with new ArrayCollection( ) for this line to work. } _ _ __ From: James garymoorcroft_ ict@ To: flexcod...@yahoogro ups.com Sent: Mon, April 19, 2010 9:58:33 AM Subject: [flexcoders] Re: Problems With my XML Created Array Collection The thing is my xml is retrieved from a mysql database table which sometimes will have no records or 1 record which will mean the xml will have only 1 or no nodes which in turn causes the problem whereas sometimes it has many records therefore the xml file would have many nodes which would mean no problems. I've heard of looping but can't figure out how to do it or apply it to my code. I've tried simply changing the array collection
[flexcoders] Re: Uploading An Image Without Browse
Cheers Jeff. I'm sure that'd work too. I've found a way around it and can now allow users to upload without the browse. The problem is though I now want it to upload the file without it having to save it on the user's machine first. At the moment my code snapshots the html component, saves this as a bitmapdata, resizes this bitmapdata, then a jpegencoder turns this bitmapdata into a jpg file which is named after whatever the user has entered into a text input component in my app. It then uploads this jpeg from the location it's saved to. I'm wondering is there any way of me editing my code so it uploads the jpeg straight away rather than storing it on the machine too? Here's my script code containing the function which does all this:- mx:Script ![CDATA[ import mx.graphics.codec.JPEGEncoder; import mx.graphics.ImageSnapshot; private var imageuploadurlRequest:URLRequest; private var serverSideScript:String = *my upload php file goes here*; private function imageuploadinit():void { imageuploadurlRequest = new URLRequest(serverSideScript); } private function takeSnapshot(event:Event) :void{ var bigbmd:BitmapData = ImageSnapshot.captureBitmapData(linkviewer) ; var scale:Number = 0.50; var matrix:Matrix = new Matrix(); matrix.scale(scale, scale); var smallbmd:BitmapData = new BitmapData(bigbmd.width * scale, bigbmd.height * scale, true, 0x00); smallbmd.draw(bigbmd, matrix, null, null, null, true); var jpgEncoder:JPEGEncoder = new JPEGEncoder( 100 ); var ba:ByteArray = jpgEncoder.encode(smallbmd); var enteredimagename:String = titleentry.text; var file:File = File.applicationDirectory.resolvePath(('assets/createdimages/')+enteredimagename+('.jpg')); var wr:File = new File(file.nativePath); var stream:FileStream = new FileStream(); stream.open( wr, FileMode.WRITE); stream.writeBytes ( ba, 0, ba.length ); stream.close(); imagesnapshotpreview.source=(('assets/createdimages/')+enteredimagename+('.jpg')); file.upload(imageuploadurlRequest); } ]] /mx:Script --- In flexcoders@yahoogroups.com, Battershall, Jeff jeff.battersh...@... wrote: Using the FileSystem API and ByteArray you can save/read/upload images automatically, using your middleware of choice without the user having to browse and select the image. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of James Sent: Thursday, April 15, 2010 3:29 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Uploading An Image Without Browse My app has a html component which allows the user to enter a website into it. When the website is fully loaded a snapshot is made of the html component and then saved in the application directory automatically. I want this file to then automatically upload to my server rather than just being saved on in the app directory. I can easily do it using the browse method but can't figure out how to get it to simply go straight to the server without the user having to save it somewhere and then browse to upload it if that makes sense.. --- In flexcoders@yahoogroups.com, Steve Mathews happydog@ wrote: When you say take a snapshot, what do you mean? On Thu, Apr 15, 2010 at 10:52 AM, James garymoorcroft_ict@wrote: Is there any way to let a user upload an image from an air app without having them browse for it? I want to let my users enter their name into a text input, take a snapshot and then the image will be uploaded to my server as whatevernametheuserhasentered.jpg Is there any way to do this and does anyone know of any similar examples? All I can find is uploading via the browse function. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http
[flexcoders] Uploading An Image Without Browse
Is there any way to let a user upload an image from an air app without having them browse for it? I want to let my users enter their name into a text input, take a snapshot and then the image will be uploaded to my server as whatevernametheuserhasentered.jpg Is there any way to do this and does anyone know of any similar examples? All I can find is uploading via the browse function.
[flexcoders] Re: Uploading An Image Without Browse
My app has a html component which allows the user to enter a website into it. When the website is fully loaded a snapshot is made of the html component and then saved in the application directory automatically. I want this file to then automatically upload to my server rather than just being saved on in the app directory. I can easily do it using the browse method but can't figure out how to get it to simply go straight to the server without the user having to save it somewhere and then browse to upload it if that makes sense.. --- In flexcoders@yahoogroups.com, Steve Mathews happy...@... wrote: When you say take a snapshot, what do you mean? On Thu, Apr 15, 2010 at 10:52 AM, James garymoorcroft_...@...wrote: Is there any way to let a user upload an image from an air app without having them browse for it? I want to let my users enter their name into a text input, take a snapshot and then the image will be uploaded to my server as whatevernametheuserhasentered.jpg Is there any way to do this and does anyone know of any similar examples? All I can find is uploading via the browse function. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Update facebook status from flex - Examples?
I'm trying to make an air app that allows users to update their facebook status from within the app as well as view all of their current stuses within my app too. I'm using the regular facebook api but can't find many examples on how to do this. Does anyone know of any similar examples to what I want or places where I might find something smilar which may point me in the right direction?
[flexcoders] displaying list one at a time (flex4)
hi guys. i have a question. suppose i have 15items in a list. i want to : 1) show each item in the list one at a time (like a screensaver eg: huge font) for 4seconds 2) the entire list item should be hidden or not displayed. only one list at a time must be shown can someone tell me how to go about it? thanks in advance guys sorry im a newbie :p
[flexcoders] AS2 SWF lost function when loaded second time
Hi All, In my flex app, I loaded a AS2 swf. The AS2 swf is a document, generated by print2flash. The swf document worked great at the first time. However, if I unload it, and load another document (or load the same document again), the mouse drag function didn't work. I found a post on adobe, ActionScript 2 components may fail when loaded into an ActionScript 3 SWF. http://kb2.adobe.com/cps/000/54e2eda3.html I think it is what happen to me. But I didn't find a solution. Any ideas?
[flexcoders] Simply Cannot Insert Values into My Database From Flex
I'm trying to learn how to insert values from my flex app to my mysql database via a php file. I've followed the following example to the letter but it simply will not work for me:- http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_2.html When I click the button in the app which should do the insert it just does not do it. It's bizzare. I have uploaded the app to my server along with the php file and changed the url within the code to my php file etc and it all looks perfect but I try to do the insert then when I go to my mysql database it just isn't there and the table is still empty. Can anybody suggest why this might be?
[flexcoders] Setting the desktop directory as the source of an image in a flex app
Can this be done? My app creates an image folder on the user's desktop and creates image snapshots in it. I then want these images to be displayed within an image component so a user can preview them. But of course everyone's desktop directory is different. For example mine is c/users/james/desktop but obviously others would be different. The folder that my app creates on the desktop is called createdimages so let's say I had an image component in my app and the user created an image in this folder via my app called image1.jpg what code would I need to apply to the source property of an image component to make this image it's source? :- source=''
[flexcoders] Re: Setting the desktop directory as the source of an image in a flex app
Cheers. Yep unfortunately I'm working in a regular web based flex app now and I wanted it so that it would create images on the users desktop in the folder and then dynamically set the source of an image component to these images so the user can preview the image they've just created within the app itself but I guess that's not possible and I'll have to leave out the preview bit. :-( --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: It can in AIR. See http://livedocs.adobe.com/flex/3/langref/flash/filesystem/File.html File.desktopDirectory --- In flexcoders@yahoogroups.com, James garymoorcroft_ict@ wrote: Can this be done? My app creates an image folder on the user's desktop and creates image snapshots in it. I then want these images to be displayed within an image component so a user can preview them. But of course everyone's desktop directory is different. For example mine is c/users/james/desktop but obviously others would be different. The folder that my app creates on the desktop is called createdimages so let's say I had an image component in my app and the user created an image in this folder via my app called image1.jpg what code would I need to apply to the source property of an image component to make this image it's source? :- source=''
[flexcoders] Changing the Default Browse Window Directory When Uploading A File
When you allow an app to upload a file it seems the user must browse to that file. The default directory of the browse window seems to be the desktop. Is there any way of changing this so that the default directory of the browse window is the application directory itself? I want to allow my users to upload images straight from the application directory where they will be stored rather than having to search for this directory which obviously most users may find difficult. The line of code I use to allow users to browse for a file is:- imageuploadfileReferenceList.browse(); Is it possible to change the default being the desktop or is it just not doable?
[flexcoders] Re: Changing the Default Browse Window Directory When Uploading A File
Hi Oleg. Yes it is Air that I'm ttalking about actually. It's an Adobe Air Application that I'm making. Cheers for your help so far. Is there any way to change the default browse location using AIR? --- In flexcoders@yahoogroups.com, James garymoorcroft_...@... wrote: When you allow an app to upload a file it seems the user must browse to that file. The default directory of the browse window seems to be the desktop. Is there any way of changing this so that the default directory of the browse window is the application directory itself? I want to allow my users to upload images straight from the application directory where they will be stored rather than having to search for this directory which obviously most users may find difficult. The line of code I use to allow users to browse for a file is:- imageuploadfileReferenceList.browse(); Is it possible to change the default being the desktop or is it just not doable?
[flexcoders] Inserting Into MYSQL Table Via Air/PHP = Not Allowed?
I'm having trouble inserting data into my mysql database tables through my air app. All the code is pretty much exactly the same as in some examples I've seen but it simply won't do it. Is this because of some sort of security restriction because the air app is on my machine and the server with my mysql database on is elsehwhere? Or is it possible to insert data via an air app? Here is the example I've been following:- http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_2.html
RE: [flexcoders] open source server side push
Check out Jetty 7 with support for Asynchronous BlazeDS Polling with Continuations: http://blogs.webtide.com/athena/entry/asynchronous_blazeds_polling_with_jetty -James From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of hgnowhg Sent: Saturday, April 03, 2010 9:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] open source server side push Are there any open source (i.e. FREE!) server side push services that do NOT limit the number of concurrent users? i.e. Blaze is open source but limits the number of subscribers. LCDS would be perfect but is expensive. All I need is a datagrid that will update w/ new data as data gets added to my MySQL server. inline: image001.jpginline: image002.jpg
[flexcoders] Allowing Jpgs saved Within Flex to be named by the user
My app allows a user to take a snapshot of a website and it then saves this snapshot as a jpg. However what I want is for the user to be able to name this jpg BEFORE it is saved eg if they type in yahooimage into a textinput component in my app (imagenameentry) and then click a button to create the image it will be automatically saved as yahooimage.jpg. At the moment I've just got the file saving as userimage.jpg but I tried editing a bit of my code which creates the file to this:- var file:File = File.applicationDirectory.resolvePath('assets/images/'imagenameentry.text'.jpg'); This never worked and throws a syntax error but if I use:- var file:File = File.applicationDirectory.resolvePath('assets/images/userimage.jpg'); Then it saves but as I say I want the image to be nameable like in the top example so that whatever the user enters in the imagenameentry box will be set as the name of the image. What am I doing wrong here and is there another way to do this?
[flexcoders] Uploading a Specific file rather than browsing
My app allows users to create a user-named jpg like so:- var enteredimagename:String = imagenameentry.text; var file:File = File.applicationDirectory.resolvePath(('assets/images/')+enteredimagename+('.jpg')); However I now want to allow a user to upload that specfic file automatically to my server by clicking a button which will simply upload that file WITHOUT having them browse for it. So basically I need it set up so that when the user clicks a button whatever name they type into the imagenameentry.text will be the image that gets uploaded. For example they create an image which they name yahooimage by typing yahooimage into the imagenameentry text input component. Once a button is clicked this will save this image as assets/images/yahooimage.jpg but I want to advance this button click further so that this specific jpg is then set as the file for upload without browsing for it. All the examples I've seen use the browse function though which is not what I want. How can this be combined with the filereference method or some other way so that the file to be uploaded can be entered into a textinput component as described above rather than browsed for?
[flexcoders] Tilelist Populated by Remote XML Only showing Data from files with 1 Node
Sorry for the long title but I couldn't think of another way to sum it up. I have a tilelist which is populated by different remote xml files. The problem is if any of these files contain only 1 node then their data doesn't appear within the tilelist. I know this is due to the xml files only having 1 node because I tried adding an extra node to one of them and all of a sudden boom their data appears in the tilelist. Is this a known problem and if so is there any way around it so that tilelists can be populated even by xml files that only contain a single node? Thanks for any help.
[flexcoders] Re: Best Way To Tweet To Twitter From an Air Application
Hi Valdhor. I did finally manage to get this done. My app now has the capability to display a users Twitter feed and post a tweet to a twitter feed a long as they enteer a valid username and password. I'm now looking for good examples of using Facebook connect to do the following:- - View a user's statuses - View all a users albums and photos - Allow a user to post a new status to Facebook - All a user to upload a new photo to a specific album What I really want is to be able to do all of the above WITHOUT the user being taken to the 'Allow Access' window of Facebook which opens up in a new instance of Explorer, the reason for this being that I want my app to be entirely self contained or if there is no way around this I'd like to have it so the allow access window opens up in a html component within my application. Is this possible would you know? --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: What did you manage to glean from the Twitter API documentation? --- In flexcoders@yahoogroups.com, James garymoorcroft_ict@ wrote: I am looking for the quickest and simplest possible method to allow a user to post a tweet to twitter from within an air application. Basically I just want them to be able to enter their name and password in my app type what they want to tweet and click a button and it will tweet it to their profile. I've found tonnes of examples of displaying twitter feeds within applications but hardly any for posting a tweet FROM an air app. Can anyone recommend any or tell me what I'd need to do to get this done?
[flexcoders] Best Way To Tweet To Twitter From an Air Application
I am looking for the quickest and simplest possible method to allow a user to post a tweet to twitter from within an air application. Basically I just want them to be able to enter their name and password in my app type what they want to tweet and click a button and it will tweet it to their profile. I've found tonnes of examples of displaying twitter feeds within applications but hardly any for posting a tweet FROM an air app. Can anyone recommend any or tell me what I'd need to do to get this done?
[flexcoders] Idea For An Application - Universal Social Network Accesor - Is this possible?
In my air app I have a twitter feed in which all of a users tweets will be displayed if they eneter their twitter name and click load. I want to expand on this so that I can also get data from facebook and perhaps Bebo and MySpace by including feeds from them also to display things like users pictures etc. Obviously twitter is easy as it basically involves no pictures and is merely a list of posts for each user. The thing is I've noticed in the case of facebook you need to go into Facebook and click allow access etc to allow your own api key to access your details on your profile. What I want is so that users can enter their facebook username and password in my app and their facebook details such as photos will be displayed within my app. The thing is there will be multiple users of this application. Is this possible and can anyone recommend any good tutorials on getting such things to work?
[flexcoders] Dynamic Shared Object - Is This Possible?
What I want in my app is to have 2 tilelists and an array collection of items which will populate the first tilelist and these objects can be dragged between both tilelists. Then the user can click a save button which will save the statuses of both tilelists so the items that are present/not present in each tilelist when the app is closed will still be there when the app is restarted. The problem is I want my array collection to be populated dynamically from mysql data on a server. I have no problem getting dynamic data from a mysql database into an array colllection via http request and I have no problem getting the shared object to work IF the array collection is defined within the app the usual way but I'm having trouble getting these 2 things to work together. Can anybody tell me if it is indeed possible to have a dynamically populated array collection stored as a shared object on the user's system and would anyone be willing to help me out if I post my code so far? Cheers.
[flexcoders] Re: Dynamic Shared Object - Is This Possible?
; } } profile1NewsAndSportSO.data.profile1NewsAndSportaddList = profile1NewsAndSportaddList; var profile1NewsAndSportchoiceList:String = ; for each(var obj2:Object in profile1NewsAndSportLinkChoice.dataProvider){ profile1NewsAndSportchoiceList += obj2.label + ,; } profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList = profile1NewsAndSportchoiceList; profile1NewsAndSportSO.flush(); } ]] /mx:Script mx:HTTPService id=newsService resultFormat=object result=newsResultHandler(event) url=http://www.coolvisiontest.com/getnews.php/ mx:TileList id=profile1NewsAndSportLinkChoice fontWeight=bold dragEnabled=true dragMoveEnabled=true dropEnabled=true height=129 width=650 top=5 left=521 columnCount=5 rowHeight=145 columnWidth=125 backgroundColor=#00 color=#FF mx:itemRenderer mx:Component mx:Canvas width=125 height=129 backgroundColor=#00 mx:Image source={'http://www.coolvisiontest.com/interfaceimages/images/'+ data.icon} top=5 horizontalCenter=0/ mx:Label text={data.label} bottom=1 horizontalCenter=0/ /mx:Canvas /mx:Component /mx:itemRenderer /mx:TileList mx:TileList id=profile1NewsAndSportAddLinksTilelist fontWeight=bold dragEnabled=true dragMoveEnabled=true dropEnabled=true height=129 width=385 top=5 left=128 columnCount=3 rowHeight=145 columnWidth=125 backgroundColor=#00 color=#FF mx:itemRenderer mx:Component mx:Canvas width=125 height=129 backgroundColor=#00 mx:Image source={'http://www.coolvisiontest.com/interfaceimages/images/'+ data.icon} top=5 horizontalCenter=0/ mx:Label text={data.label} bottom=1 horizontalCenter=0/ /mx:Canvas /mx:Component /mx:itemRenderer /mx:TileList mx:Button click=profile1NewsAndSportReset() id=reset label=Reset y=5 height=25 x=5/ mx:Button click=saveprofile1NewsAndSport(event) id=save label=Save Changes x=5 y=38 width=113 height=25.5/ /mx:WindowedApplication --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiver...@... wrote: On Tuesday 23 Mar 2010, James wrote: Can anybody tell me if it is indeed possible to have a dynamically populated array collection stored as a shared object on the user's system and would anyone be willing to help me out if I post my code so far? You'll have to explicitly handle the case where your user comes back and has sets a: [3,6,8] b: [1,2,4] but items 8 and 2 are no longer on the server, but it should be easy enough to loop over the SharedObject once the data has been fetched and shuffle the item to the right list if it exists. -- Helping to dramatically expedite B2B front-end B2B markets as part of the IT team of the year 2010, '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] Re: Using Server Stored Images In An Air Application?
--- In flexcoders@yahoogroups.com, James garymoorcroft_...@... wrote: Is there any way to display server stored images within an Air application? I can easily use server images within a flex application but it's basically the fact that I'm having problems displaying images stored in a server in an air app. I'm making an app that is to be used by multiple users but I want it to have images that can be updated and then be visible to all users. Can anyone suggest anything for this or is it simply not possible to display images stored on a server in air applications?
[flexcoders] Using An Array Collection Produced From XML In Conjunction With Shared Object
I have an old app which allows the user to drag items between two tilelists and then save the contents of both tilelists by clicking a save button using the sharedObject method. The tilelists are populated by array collections defined in the app. I want to change this so that the tilelists are instead populated by an array collection which I've retrieved from a remote xml file via http request but I can't get this to work. Basically I need to replace both the predefined array collections profile1NewsAndSportaddLinksFullAC and profile1NewsAndSportaddLinksAC with my xml/httprequest produced newsAC array collection and still make the tilelists saveable. Can anyone help me out? Here's the code:- ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=newsService.send(); initprofile1NewsAndSportSO() mx:Script ![CDATA[ import mx.rpc.events.ResultEvent; import mx.collections.*; import flash.net.SharedObject; [ Bindable] private var newsAC:ArrayCollection; private function newsResultHandler(event:ResultEvent):void{ newsAC=newsService.lastResult.newscategory.news; } public var profile1NewsAndSportSO:SharedObject; private var profile1NewsAndSportaddLinksFullAC:ArrayCollection = new ArrayCollection([{label: BBC News},{label: ITV},{label: Sky News}]); private var profile1NewsAndSportaddLinksAC:ArrayCollection = new ArrayCollection([{label: BBC News},{label: ITV},{label: Sky News}]); private function profile1NewsAndSportReset():void{resetprofile1NewsAndSportAC(); profile1NewsAndSportAddLinksTilelist.dataProvider = profile1NewsAndSportaddLinksAC; profile1NewsAndSportLinkChoice.dataProvider = new ArrayCollection([]); } private function resetprofile1NewsAndSportAC():void{profile1NewsAndSportaddLinksAC.removeAll(); for each(var obj:Object in profile1NewsAndSportaddLinksFullAC){profile1NewsAndSportaddLinksAC.addItem(obj); } } private function initprofile1NewsAndSportSO():void{profile1NewsAndSportSO = SharedObject.getLocal( profile1NewsAndSport); if(profile1NewsAndSportSO.size 0){ if(profile1NewsAndSportSO.data.profile1NewsAndSportaddList){ if(profile1NewsAndSportSO.data.profile1NewsAndSportaddList != empty){ var profile1NewsAndSportaddList:Array = profile1NewsAndSportSO.data.profile1NewsAndSportaddList.split(,); var profile1NewsAndSporttempAC1:ArrayCollection = new ArrayCollection(); for each(var str:String in profile1NewsAndSportaddList){ for each(var obj1:Object in profile1NewsAndSportaddLinksAC){ if(str == obj1.label){profile1NewsAndSporttempAC1.addItem(obj1); continue;} } } if(profile1NewsAndSporttempAC1.length 0){profile1NewsAndSportAddLinksTilelist.dataProvider = profile1NewsAndSporttempAC1; } } } if(profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList){ var profile1NewsAndSportchoiceList:Array = profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList.split(,); var profile1NewsAndSporttempAC2:ArrayCollection = new ArrayCollection(); for each(var str2:String in profile1NewsAndSportchoiceList){ for each(var obj2:Object in profile1NewsAndSportaddLinksAC){ if(str2 == obj2.label){profile1NewsAndSporttempAC2.addItem(obj2); continue;} } } if(profile1NewsAndSporttempAC2.length 0){profile1NewsAndSportLinkChoice.dataProvider = profile1NewsAndSporttempAC2; } } } else{profile1NewsAndSportReset(); } } private function saveprofile1NewsAndSport(event:MouseEvent):void{ var profile1NewsAndSportaddList:String = ; if(profile1NewsAndSportAddLinksTilelist.dataProvider){ if(ArrayCollection(profile1NewsAndSportAddLinksTilelist.dataProvider).length 0){ for each(var obj1:Object in profile1NewsAndSportAddLinksTilelist.dataProvider){ profile1NewsAndSportaddList += obj1.label + ,;} } else{profile1NewsAndSportaddList = empty;} } profile1NewsAndSportSO.data.profile1NewsAndSportaddList = profile1NewsAndSportaddList; var profile1NewsAndSportchoiceList:String = ; for each(var obj2:Object in profile1NewsAndSportLinkChoice.dataProvider){ profile1NewsAndSportchoiceList += obj2.label + ,;} profile1NewsAndSportSO.data.profile1NewsAndSportchoiceList = profile1NewsAndSportchoiceList; profile1NewsAndSportSO.flush(); } ]] /mx:Script mx:HTTPService id=newsService resultFormat=object result=newsResultHandler(event) url=http://www.coolvisiontest.com/getnews.php/ mx:Button click=profile1NewsAndSportReset() id=reset label= Reset y=5 height=25 x=5/ mx:TileList id=profile1NewsAndSportLinkChoice fontWeight=bold dragEnabled= true dragMoveEnabled=true dropEnabled=true height=129 width= 650 top=5 left=521 columnCount=5 rowHeight=145 columnWidth= 125 backgroundColor=#00 color=#FF/ mx:TileList id=profile1NewsAndSportAddLinksTilelist fontWeight=bold dragEnabled= true dragMoveEnabled=true dropEnabled=true height=129 width= 385 top=5 left=128 columnCount=3 rowHeight=145 columnWidth=125 backgroundColor= #00 color=#FF/ mx:Button
[flexcoders] Using Server Stored Images In An Air Application?
Is there any way to display server stored images within an Air application?
[flexcoders] Having Trouble With Filtering Tilelist's/DataProviders
I've done some research on this and I think I'm getting there but I can't seem to get it working in my own app. I have two tilelists categoriesTilelist and productsTilelist populated by two array collections categoriesAC and productsAC which are populated from remote xml files. One of the attributes in both xml files/array collections is categoryid. What I want is when a user clicks an item in the categories tilelist for only the items within the products tilelist which have the same categoryid value of that particular item to be displayed. I know I need to use a filter function for this but it doesnt seem to work. I've made a filter function called filterFun and then made a function which should set this filter which I've applied as the item click property of the categoriesTilelist. Here's the code I've got for these:- if(product.categoryid == categoriesTilelist.selectedItem.category.categoryid) { return true; } else{ return false; } } public function setFilterFun():void{ productsAC.filterFunction = filterFun; } That doesn't seem to do anything when I click the categories after I run the app. Can any of you guys tell me where I'm going wrong?
[flexcoders] Using Flex Builder 3 With PHP and MYSQL
Can anybody link me to any examples of using flex in conjunction with php and mysql? I need to display data stored in my mysql table in my flex project within a tilelist. Does anyone know of any examples that allow you to display both images stored on a server and data held within mysql tables in flex in a tilelist via php? I'm struggling to find any good examples/tutorials on this. Cheers.
[flexcoders] Writing images to the src folder in flex/air
In my app I have a jpegencoder which saves bitmap snapshots of components as jpgs in my images folder (assets/images). The problem is it saves them in the bin-debug folder rather than the src folder. The reason I want them in the src folder is so that I can embed them within the app and it seems you can't embed images that are in the bin-debug folder. The reason I want to be able to save them directly into the src/assets/images folder is so that they will replace current images I have stored there which are embedded within the app so hopefully as they are saved these will replace the images live within the app if that makes sense. The current line of code I have which saves the images in the bin-debug folder is this:- var file:File = File.applicationDirectory.resolvePath(assets/images/testpicture.jpg); Can anyone tell me how to modify this so that they save in the source/src folder rather than the bin-debug folder? Thanks.
[flexcoders] Getting A File To Save In a Location So It Overwrites Currently Embedded Jpegs
I'm using air for this and so far I can make bitmaps and convert them into jpegs from within my app and place them on the desktop using the following code:- var file:File = File.desktopDirectory.resolvePath(abcnews_small.jpg); This creates the abcnews_small.jpg file on the desktop and overwrites it if it already exists there. However what I want is for my app to overwrite jpgs that I've already embedded IN the app but I'm struggling to figure out how to do this. My jpgs are all stored in the src folder under assets/images/ so for example my project is called liveimage and the location in which my abcnews_small jpg is located is liveimage/src/assets/images/abcnews_small.jpg and it's embeddded in the app like this:- [Bindable] [Embed(source=assets/images/abcnews_small.png)] public var abcnewspicture:Class; So if I can set up the following line of code so that it saves the new jpg in the above location that'd be perfect. I've tried the following but it doesn't work:- var file:File = File.applicationStorageDirectory.resolvePath(abcnews_small.jpg); If anyone can help me out on this I'd be grateful. Thanks.
[flexcoders] Using 'setitemat ' to make images within a tilelist dynamic
In my app I have a tilelist which gets it's data and images from a data provider 'myTileListAArrayCollection'. I have a function which takes a snapshot of a component and saves it as a bitmap. What I want is for this bitmap to be saved so that it overwrites an image jpg I have defined in a class 'abcnewspicture'. Obviously this will mean that the tilelist will have default images but then once the snapshot is taken and replaces the jpg the image within the tilelist will change dynamically. Here's the code which sets the object of the array collection in question after the snapshot has been taken. myTilelistAArrayCollection.setItemAt({id:yrhe, label:reyery, icon:abcnewspicture}, 0); Can anyone help me out on saving this bitmap as a jpg so that it overwrites an existing jpg in my assets/images folder of the app? I've searched and can't find a solution for this anywhere.
[flexcoders] Binding the Souce of an Image to the Icon Property of an Array Collection
Is it possible to do this as I can't seem to get it working? For example the image is called myImage and I need the icon of my array collections to change as the myImage source changes. I've tried this but it doesn't work:- {id:First Item, label:First Item, icon:{myImage.source}}, Can anyone help me out on this? Thanks for any suggestions.
[flexcoders] Making The Icon property of An Array Collection Dynamic Through Data Binding
In my app I have an image component (myImage) which originally has no source and a hmtl component (myhtml) and a tilelist component (myTilelist). Basically when the site is fully loaded into the html component a function I've made takes a snapshot of the html component and sets this snapshot as the source of the image component effectively making it a thumbnail snapshot of the website. What I want is when this happens for the same image to be applied to the 'icon' property of the array collection which acts as the dataprovider for my tilelist component. So when the source of the image component changes so does the source of the icon property in the array collection i.e. whatever is displayed in the myImage component is also displayed in the icon property of the 'First Item' of the array collection meaning whatever changes are made to the image are also made to this icon. I tried this but it doesn't seem to work:- {id:First Item, label:First Website, icon:{myImage.source}}, What code would I need to add in or put in the icon property to get this to work?
[flexcoders] Twitter Feed Within An Air/Flex Application
I've previously made an air application for my university course and my tutor has suggested that I incorporate more live data into it. One of the ways he suggested was to include a twitter feed. I have no experience of using feeds within flex but I think I've managed to get one in. How it works is when users type in their twitter id and click a load button all of their tweets are displayed within a repeater component. They can then click a save button to save their twitter id and whenever they start the application in the future their tweets will load into the repeater component automatically as long as their name has been saved. This may seem like silly question but does what I've described constitute a 'live twitter feed' which is what I've been asked to include or am I missing something?
[flexcoders] Need Help With an App Which Produces Live Images
At the moment I have an application which is meant to produce live thumbnail images of websites. Currently how it does this is a html component (myhtml) loads websites via it's location property changing from website to website and upon fully loading of each site a snapshot is taken of the html component and saved as a bitmap and applied as the source of an image corresponding to that particular site (abcnewsimage and bbcnewsimage). However I now need to insert these snapshots within the 'icon' properties of 2 array collections (myTilelistAArrayCollection and myTilelistBArrayCollection) which act as dataproviders to populate 2 tilelists (mtTilelistA and myTilelistB). Basically I need the same images to appear automatically within the tilelists the way they do in the 2 images as the snapshots are taken by applying the same bitmaps into the currently empty 'icon' properties of the 2 tilelists i.e. the icon of the ABC News Item of both array collections must be the same as the abcnewsimage and appear as it appears and the same for the BBC News Item icon being the same as the bbcnewsimage picture as that appears. It should look like the images aare appearing in the tilelist at the same time as they are appearing in the regular images. What will I need to ut into the icon properties to do this? I hope this makes sense and if anyone can help me out it would be much appreciated. :-) ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute verticalAlign=middle backgroundColor=white width=1024 height=768 mx:Script ![CDATA[ import mx.graphics.ImageSnapshot; import mx.collections.*; private function takeSnapshot(event:Event) :void { var imageBitmapData:BitmapData = ImageSnapshot.captureBitmapData(myhtml) ; switch(myhtml.location) { case http://abcnews.go.com/: abcnewsimage.source = new Bitmap(imageBitmapData); myhtml.location = http://news.bbc.co.uk/;; break; case http://news.bbc.co.uk/: bbcnewsimage.source = new Bitmap(imageBitmapData); break; } } private var myTilelistAArrayCollection:ArrayCollection = new ArrayCollection([ {id:ABC New Item, label:ABCNews, icon:}, {id:BBC News Item, label:BBC News, icon:} ]); private var myTilelistBArrayCollection:ArrayCollection = new ArrayCollection([ {id:ABC News Item, label:ABCNews, icon:}, {id:BBC News Item, label:BBC News, icon:} ]); ]] /mx:Script mx:HBox x=10 y=10 mx:Image id=abcnewsimage width=100 height=100 scaleContent=true/ mx:Image id=bbcnewsimage width=100 height=100 scaleContent=true/ /mx:HBox mx:HTML id=myhtml location=http://abcnews.com/; complete=takeSnapshot(event) width=250 height=250 horizontalScrollPolicy=off verticalScrollPolicy=off x=10 y=118/ mx:TileList x=268 y=118 width=294 height=250 id=myTilelistA dataProvider={myTilelistAArrayCollection} rowHeight=100 columnWidth=100/ mx:TileList x=570 y=118 width=294 height=250 id=myTilelistB dataProvider={myTilelistBArrayCollection} rowHeight=100 columnWidth=100/ /mx:WindowedApplication
[flexcoders] Re: Twitter Feed Within An Air/Flex Application
But is it possible within flex to have a feed that acts live such as this i.e. it is constantly changing? I thought within flex you could only load data upon some sort of event such as the click of a button? The user can refresh their tweets simply by clicking the load tweets button again but may it be better to have a refresh function constantly running and refreshing the feed every couple of seconds to keep it essentially 'live'? I thought something like this would take up memory/loading times though. The ability to post tweets to twitter from within an app does sound like a great idea though. I wouldn't know where to start on this though. Do you know of any examples on the net that show this being done that I could implement into my own? Cheers for your help though. These are good ideas. --- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote: Hi James, If your application automatically displays new tweets, those created after the initial load, than yes; that would be considered live. If however its just taking a snapshot, then no. A starting point would be to refresh the tweets. Having the ability to post tweets, and see them instantly show up, would also make it more live. Other ideas would be IM, chat, or other real-time activities that involve the course; like live test scoring, or something. -TH --- In flexcoders@yahoogroups.com, James garymoorcroft_ict@ wrote: I've previously made an air application for my university course and my tutor has suggested that I incorporate more live data into it. One of the ways he suggested was to include a twitter feed. I have no experience of using feeds within flex but I think I've managed to get one in. How it works is when users type in their twitter id and click a load button all of their tweets are displayed within a repeater component. They can then click a save button to save their twitter id and whenever they start the application in the future their tweets will load into the repeater component automatically as long as their name has been saved. This may seem like silly question but does what I've described constitute a 'live twitter feed' which is what I've been asked to include or am I missing something?
[flexcoders] Air File Is Damaged Error
I keep getting the same The application could not be installed because the AIR file is damaged. etc... message every time I attempt to test the install of an air file I've just made from an application in flex. I've tried exporting other applications for release build and they work fine but it just seems this particular one won't work so I know it's not a flex problem. I've tried starting a whole new project and creating a new app and copying and pasting all of the code from the app I need into this new app and exporting that for release build from there but again I get the same error. Is there any way of finding out what is causing this error and is there a fix for this?
[flexcoders] Re: Air File Is Damaged Error
Yes but the fact that other air files I make are working shows that it's not a flex/air related problem doesn't it? If it is this though how would I fix it? --- In flexcoders@yahoogroups.com, Johannes Nel johannes@... wrote: one thing which can cause this is if the update.xml file and the air file have different versions. On Fri, Feb 12, 2010 at 2:54 PM, James garymoorcroft_...@...wrote: I keep getting the same The application could not be installed because the AIR file is damaged. etc... message every time I attempt to test the install of an air file I've just made from an application in flex. I've tried exporting other applications for release build and they work fine but it just seems this particular one won't work so I know it's not a flex problem. I've tried starting a whole new project and creating a new app and copying and pasting all of the code from the app I need into this new app and exporting that for release build from there but again I get the same error. Is there any way of finding out what is causing this error and is there a fix for this? -- j:pn \\no comment