[flexcoders] not able to load svg format images?
Hi All, I am making an application which will run on server and loads image files. My application supports png,jpg,gif but I am not able to load svg format. I am using SWFLoader to load the file? Thanks Arpan Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545433
Re: [flexcoders] Flex Remoting
Great, that looks very helpful. Thanks a lot On 9/14/07, Jeremy French [EMAIL PROTECTED] wrote: Giles, This should help you out a little. http://www.frenches.com/blog/index.cfm/2007/5/7/Flex-Coldfusion--Dont-make-me-have-to-separate-you-two On 9/14/07, Giles Roadnight [EMAIL PROTECTED] wrote: Hi Guys I've started looking into Flex Remoting again. I looked into this a while ago but didn't get very far. I gave up when I realised that the production server here CF 7.1 so Flex Remoting wouldn't work anyway. I'm now pretty confident that I'll be able to updrage production to CF 7.2 so now I want to get my flex remoting working. I know the basics of how it's supposed to work, you create a new project and point it at the web-inf/flex directory and it builds an xml file for you. I've got 2 problems with that. For a start I already have a large project built and don't really want to re-start the project just to get the wizard at the start to set up the xml for me. Is there any way of converting an existing non-CF remoting project into a CF remoting one? My second problem is that I only have FTP access to the dev box where CF runs so I can't point flex at the web-inf/flex directory. How do I get round this? I hope someone can help. Thanks Giles.
[flexcoders] Re: Working with dynamic datagrid columns and dynamic data.
I searched your site, but I couldnt find anything relating to the DeepDataGridColumn that you wrote about. Is there some place else I can find it. I know that 2d arrays, are not the best data providers. But due to the way the data is ordered, I have to stick with this type of array.
Re: [flexcoders] not able to load svg format images?
You can't load SVG images at runtime, you need to embed them. http://livedocs.adobe.com/flex/201/langref/mx/controls/Image.html /Max On 9/15/07, arpan srivastava [EMAIL PROTECTED] wrote: Hi All, I am making an application which will run on server and loads image files. My application supports png,jpg,gif but I am not able to load svg format. I am using SWFLoader to load the file? Thanks Arpan
[flexcoders] air namespace (adobe)
Are there any plans to create a separate namespace for AIR related components in the SDK? For e.g. I am looking inside the mx.controls package and I see controls like FileSystemComboBox and FileSystemDataGrid listed, which dont seem to be usable in a non-AIR flex context, thus leading to confusion. - superabe
[flexcoders] well formed errors from XML from PHP
Can someone please explain what is going on and how to get flex to ignore everything but the xml in an PHP file ? If I have a static xml file with this at the beginning: ?xml version=1.0 encoding=UTF-8 ? It works fine. But if I save the file as a php file and then try to load it, I get these errors: TypeError: Error #1088: The markup in the document following the root element must be well-formed. at components::ManageXML/::processXML() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::onComplete() if I take ?xml version=1.0 encoding=UTF-8 ? out of the file, so it is nothing but XML tags, it works fine as a PHP file. How can I add the ?xml tag and get it to work? similarly, if i have this at the top of the PHP file it works fine: ? $test='foobar'; ? But if I have this at the top, I get the same errors as above: header(’Content-Type: application/xhtml+xml’); header(’Pragma: no-cache’); header(’Cache-Control: no-cache, must-revalidate’); Why ? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: callLater syntax
--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: If you find bugs in the Flex docs, please file them at http://bugs.adobe.com/flex. - Gordon OK, done it. best, Graham
[flexcoders] Re: CB dataProvider - can it be filenames in a folder (maybe with CF7.0.2)?
Tracy - it's always a single directory, no subfolders, so no hierarchy concerns, I'd think. I've done some studying. Am I on the right track by thinking I should use the cfdirectory tag, set to a list, turned into a query variable, and pass that back to Flex as some sort of object, which then becomes my CB dataProvider? The actual folder WILL be based on a variable (i.e., it will be something like: (particular user)/model/galleries/THIS or THAT gallery folder (with .xml files in it - these .xml file titles are the content of the ComboBox) ...but that could, I hope, be given to CF on the fly by Flex, based on who is in the system (roles) and what folder he/she is hoping to work with and in fact everything except the actual gallery folder, I have already gotten into XML, and so has a readily-available variable to work with. Is cfdirectory the right way to start? Shawn
Re: [flexcoders] well formed errors from XML from PHP
What would be the correct design for a multiple choice test using code behind ? I want to show 1 question at a time. I don't see how it could be done by extending the Application class. I'd have to extend the form class. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] How to Pass Data From Server to Client On App Load
Charles Dale a écrit : Hi guys, I've been banging around solutions to this (apparently) simple problem for a few months. I still haven't found something I'm happy with. In our system users load Flex apps off an Apache server, authenticating to Apache using Single Sign-On (mod_auth_kerb against an ActiveDirectory server). The Flex app then loads/modifies data using HTTPServices to a Rails app. Apache passes the authentication details to Rails in a header, so I know the username in Rails and can lookup groups using LDAP on the AD server. My problem is: how do I quickly and securely pass the name of the logged in user to the Flex app running on the client? I've tried the following methods: 1. Use mod_rewrite to redirect the browser to app.swf?user=%{REMOTE_USER} and then use ExternalInterface to read the user parameter in Flex. -- Can get the user straight away, yay, but it's obviously insecure. 2. Provide a Rails action that reports the authenticated user (and groups). -- Not quick enough: I want to know the user straight away at app startup so I can display admin functions to admin users. Also the HTTPService call seems like unnecessary overhead to me. Any ideas how to do this? Some options I can think of but I'm not sure are possible: 1. Embed the username in the .swf somehow. I guess this would be a use for live-compiled MXML files on the server (but we don't have FDS/LCDS). 2. Configure Apache to send the username back in the HTTP headers and read them using ExternalInterface (possible?). Wouldn't be particularly secure. Although all the actual security is in Rails, so even if people managed to get the admin interface in Flex they couldn't use it to change anything on the server without the correct permissions on their user account. 3. Delay the startup of the Flex app until I get a result from the user HTTPService? I don't really want the user to wait though... 4. Use ExternalInterface to get the authenticated username from the browser using JavaScript. No idea if there are JavaScript functions to do this but would probably be the best method - no round trip to the server. Ta! Charlie Hi Charlie, Here is the way I do that: 1- login is made through a single component connected with the server over https; Call it login. 2- every user has a XML file o the server; this file describes what the user can do with your app. Call it userDescriptor 3- the app is one swf which calls login component. It's run like this: - app.swf is launched first but is not visible and only shows login ; - login makes authentication over https ; - if authentication est correct, the server returns the userDescriptor ; - app becomes visible if userDescriptor is correct. And app's behaviour can be binded on userDescriptor. There is 2 ways for integrating login with app: 1- login is a swc file, including the HttpService which sends the login and password over https. This way, app will get userDescriptor from an eventListener listening the result event of this HttpService. 2- login is a swf file, including the same HttpService. This way login will get the userDescriptor from its own event listener listening the result event of HttpService and will pass the userDescriptor through a public MXML variable of app. If one of these patterns is convenient for you, tell me if you need more details. Hervé
[flexcoders] DateFormatter function for dataGrid
I'm trying to implement a DateFormatter function for a DataGridColumn as a labelFunction: private function formatDate(item:Object, column:DataGridColumn):String { dateFormatted = new DateFormatter(); dateFormatted.formatString = DD-MM- return dateFormatted.format(item[column.dataField]); } (MXML labelFunction=formatDate) Not having any success right now. Any ideas please?
[flexcoders] Request for statistics/statements that demonstrate the growing interest on Flex
Hey guys, I'm writing a document to prove that there is more and more interest on the Flex/Flash Platform everyday. We all know that this is true from our personal experiences, but I need some statistics/statements from reliable sources to prove my point of view. Can you give me some help with this? Thanks, João Saleiro
[flexcoders] Re: DateFormatter function for dataGrid [SOLVED]
--- In flexcoders@yahoogroups.com, candysmate [EMAIL PROTECTED] wrote: I'm trying to implement a DateFormatter function for a DataGridColumn as a labelFunction: private function formatDate(item:Object, column:DataGridColumn):String { dateFormatted = new DateFormatter(); dateFormatted.formatString = DD-MM- return dateFormatted.format(item[column.dataField]); } (MXML labelFunction=formatDate) Not having any success right now. Any ideas please? Date turned from SQL needed to be converted to a date object first (oops!). This did it: private function formatDate(item:Object, column:DataGridColumn):String { dateFormatted = new DateFormatter(); dateFormatted.formatString = DD-MM-; var rawDate:Date = new Date(item[column.dataField]); return dateFormatted.format(rawDate) as String; }
[Flexcoders]How to Pass Data From Server to Client On App Load
Hi Charlie, Hervé's solution is right if you just want to get simple and non secure data to the client. But careful, if you want to get any security matrix information. From my point of view security must not apply client size. Regards Eric Guesdon This message was sent using IMP, the Internet Messaging Program.
RE: [flexcoders] not able to load svg format images?
Svg is not supported From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of arpan srivastava Sent: Friday, September 14, 2007 11:01 PM To: Flex Coders Subject: [flexcoders] not able to load svg format images? Hi All, I am making an application which will run on server and loads image files. My application supports png,jpg,gif but I am not able to load svg format. I am using SWFLoader to load the file? Thanks Arpan Luggage? GPS? Comic books? Check out fitting gifts for grads http://us.rd.yahoo.com/evt=48249/*http:/search.yahoo.com/search?fr=oni_ on_mailp=graduation+giftscs=bz at Yahoo! Search.
Re: [flexcoders] Request for statistics/statements that demonstrate the growing interest on Flex
Mike Potter has a few posts about the number of flex job postings. Check out the most recent one here: http://www.riapedia.com/2007/09/14/flex_jobs_continue_amazing_growth On 9/15/07, João [EMAIL PROTECTED] wrote: Hey guys, I'm writing a document to prove that there is more and more interest on the Flex/Flash Platform everyday. We all know that this is true from our personal experiences, but I need some statistics/statements from reliable sources to prove my point of view. Can you give me some help with this? Thanks, João Saleiro
Re: [flexcoders] Flex - Flash Media Server and Mac - connection failed
Are you running the server on the pc? Sent from my iPhone On Sep 14, 2007, at 5:43 PM, Patrick Lemiuex [EMAIL PROTECTED] wrote: i have the strangest situation, where my app works with flash media server with flex, however only on PC. On any mac i get: DEBUG_9] : The connection to the server has failed. [DEBUG_8] : onNetStatusEvent: NetConnection.Connect.Failed [DEBUG_7] : Connecting to socket server... [DEBUG_6] : The connection to the server has failed. [DEBUG_5] : onNetStatusEvent: NetConnection.Connect.Failed [DEBUG_4] : Connecting to socket server... [DEBUG_3] : The connection to the server has failed. [DEBUG_2] : onNetStatusEvent: NetConnection.Connect.Failed [DEBUG_1] : Connecting to socket server... Any suggestions? Thanks, Patrick -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] Re: How to converst an XML to AS Object ?
Thank you Troy, for your suggestions. I cannot understand one thing, using SimpleXMLDecoder i got Object from XML BUT I cannot make this ObjectProxy cast to my Album Object. What is the condition to cast object fields are same, I cant understand how does it works :( --- In flexcoders@yahoogroups.com, Troy Gilbert [EMAIL PROTECTED] wrote: Does anybody have good examples how SimpleXMLDecoder works ? I've never found a good one. Senocular has a library called XMLDefinition (google it). I've not looked at it too much, but it superficially appears to do what you're looking for. I don't like the idea of passing the XML into the object for it to self-populate (or its counterpart spitting out a piece of XML for serialization). In my mind, serialization (which is what this is) is a related but independent class from the model itself. Of course, that's not a weird suggestion... its how Java implements serialization and how AS3 does it generically as well. Though frustratingly these dynamic languages don't provide general purpose API for doing it with strong typing. Come on, Adobe, XML is the lingua franca of the web (if not of business software) and its a native type in AS3. There should be trivial, native serialization of objects with strong types to and from XML (in the same way that there is for the, ahem, proprietary AMF format). Troy.
[flexcoders] Re: Request for statistics/statements that demonstrate the growing interest on F
Thanks Doug. Does anyone know more sources, like articles from magazines, blog posts from known developers, statistics, and so on? João Saleiro
[flexcoders] Advanced RichTextEditor
Hi, I'm searching a xhtml RichTextEditor or a parser to edit xhtml texts. The parser should work for both ways, html-xhtml and xhtml-html. Thanks Patrick
[flexcoders] problem using a single clickevent for multiple datagrids
I have a tab navigator that has datagrids on each respective tab. The datagrids are populated with a RemoteObject call and all works fine. When the user clicks on a row (itemClick), the state changes and they are brought to the details screen (for editing the content in a form). The content grab is another RemoteObject call repective to the row they clicked in the base state. So, the problem is, how do I make my pickRow() function generic? It gathers the event goodies on the rowClick and passes them to the RO call and passes the argument. But, when I place the argument in the RemoteObject tag call, I need to specifically reference the datagrid id. So this only works for one data grid. How do I make it work for all the datagrids. I have wittled the code down and placed it below. TIA - Ben mx:Script ![CDATA[ import mx.events.ListEvent; import mx.controls.Alert; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; import mx.collections.ArrayCollection; [Bindable] private var myData:ArrayCollection; [Bindable] private var myRate:ArrayCollection; [Bindable] private var selected1:Number; private function queryHandler(event:ResultEvent):void { myData = event.result as ArrayCollection; } private function queryRateHandler(event:ResultEvent):void { myRate = event.result as ArrayCollection; } private function faultHandler(event:FaultEvent):void { Alert.show(event.fault.faultString, event.fault.faultCode); } public function pickRow(event:ListEvent):void { if (event.rowIndex 0) { WS.GetInstructorDetail2.send(); WS.ListContractorRates.send(); currentState='detailTabs'; } } ]] /mx:Script mx:RemoteObject id=WS destination=ColdFusion source=Compass.cfc.lsd fault=faultHandler(event) mx:method name=GetInstructorDetail2 result=queryHandler(event) mx:arguments InstructorId{grid0.selectedItem.InstructorId}/InstructorId /mx:arguments /mx:method mx:method name=ListContractorRates result=queryRateHandler(event) mx:arguments InstructorId{grid0.selectedItem.InstructorId}/InstructorId /mx:arguments /mx:method /mx:RemoteObject mx:DataGrid id=grid0 dataProvider={InstructorWS.ListActiveInstructors.lastResult} itemClick=pickRow(event) left=10 right=10 bottom=10 top=10 editable=false enabled=true sortableColumns=true draggableColumns=false mx:columns mx:DataGridColumn headerText=First Name dataField=FirstName width=80/ mx:DataGridColumn headerText=Last Name dataField=LastName width=80/ mx:DataGridColumn headerText=Email dataField=Email/ mx:DataGridColumn headerText=Mobile dataField=Mobile width=110/ mx:DataGridColumn headerText=Phone dataField=Phone width=110/ mx:DataGridColumn headerText=City dataField=City width=120/ mx:DataGridColumn headerText=State dataField=State width=40/ /mx:columns /mx:DataGrid /mx:Canvas mx:Canvas label=Inactive Instructors width=100% height=100% id=canvas2 mx:DataGrid id=grid1 dataProvider={InstructorWS.ListInactiveInstructors.lastResult} itemClick=pickRow(event) left=10 right=10 bottom=10 top=10 editable=false
[flexcoders] XMLList
Hi people, i need your help, i have a xmllist object so i need to query this xmllist, im doing it in this way var jo:XMLList=myDataProvider.data.item.(koala==Y); where myDataProvider.data = data item pruebaccct/prueba koalaX/koala /item item pruebasambil/prueba koalaY/koala /item /data then the structure of this xmllist can be changes it means that when i wanna to query it using this sentencesvar jo:XMLList=myDataProvider.data.item.(koala==Y); The param koala have been changed, then i need that this param be a variable so i dont know how to do that... for example var variable:String=koala;// var jo:XMLList=myDataProvider.data.item.(variable==Y); but it doesnt works, i dont know how to pass a variable in this sentence, some suggestion please... thanks so much coders
[flexcoders] Identify Function Name
Hi Team I am doing the logging of the application and now i want to know the name of the function which is being executed. In the below i want the functionName to be A. function A() { log.debug(function execute + functionName); } Can we do it in flex??? Thanks ilikeflex
[flexcoders] Re: SWFLoader Issue
Thats just the thing, I'm accessing it from another component. :( I'm trying a few things now to try and get the instantiated class and call the functions from that...on it goes. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: You shouldn't need Application.application unless you are accessing from another component/document. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of neilwcameron Sent: Friday, September 14, 2007 8:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] SWFLoader Issue Hi Guys, In my application I have a line of code that is used to set up my components: Application.application.mainDisplay.createComponentsFromDescriptors(true ); But when I try to load my app with SWFLoader for testing purposes, it fails because on the SWFLoader app, there is no such component as mainDisplay of course. Is there anyways around this? I've tried quite a few things but to no avail. Any ideas? Thanks Neil
Re: [flexcoders] Full Screen Mode
I for one would second the forced non-transparent background when full-screen. I really can't think of a good reason that you would even want full-screen with a transparent background. Steve Senior Software Engineer http://www.FreshBrew.com On 9/14/07, Troy Gilbert [EMAIL PROTECTED] wrote: I think what I outlined in my e-mail (basically the security that's there already) does that. Require the user to be directly interacting with the Flash applet before allowing fullscreen (fullscreen API only works in keyboard/mouse events). The first time a Flash applet goes fullscreen from a domain name have the player itself prompt the user (similar deal as for webcams and mics). Hell, I'd be fine with disallowing transparent backgrounds in fullscreen apps, that's not something I want and I don't think that most legitimate users of fullscreen want a transparent window. Of course, couldn't your banner ad already do what you describe? Probably not since Flash-based banner ads usually sit in IFRAMES so they're blocked by security domain, but I don't have to go fullscreen to do what you describe: that's all inside the web browser's window and that already works fine. The only problems I could see with fullscreen would largely be griefing from the apps, just like what popups do, and you combat it in the same way: default to blocking it, prompt the user to unblock it, allow them to unblock it permanently site-by-site (which is inline with all of the other security restrictions in the Flash player). It just kinda baffles me that its easier to capture *video* and *audio* from the user's machine than it is to interact with them fullscreen. Seems kinda backwards if security/privacy is a focus! ;-) Troy. On 9/14/07, Alex Harui [EMAIL PROTECTED] wrote: If you can propose a way that users can know that their input is going to go to some other place on the screen or some hidden process in a browser, then we can allow keyboard access. Otherwise, my banner add will place a transparent window over your yahoo login and phish your password. Mean people suck, and prevent us from giving out functionality as we'd like to. We always opt for very conservative security in first releases of new functionality like fullscreen, until we can figure out how to relax some of those restrictions without inviting mean people to harm others. -- *From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED] *On Behalf Of *Troy Gilbert *Sent:* Friday, September 14, 2007 9:26 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Full Screen Mode I know Adobe has heard an earful on this, but I'd like to stress it again since the issue has again been raised: Fullscreen mode without keyboard support is virtually worthless for almost any app other than playing fullscreen video. Now, I understand that fullscreen video is the primary reason for inclusion of this functionality. Fine. But Adobe needs to pay some serious attention to the world of online games which heavily use the Flash platform. Fullscreen games would be huge, but without keyboard support it simply won't happen. Fullscreen web apps like Picnik would be huge, but without keyboard support its limiting. I think the security requirement that an app can only go to fullscreen inside of a mouse or keyboard event is perfect. I think the security requirement that the ESCAPE key will *always* take the user out of the fullscreen is fine. I'd even be fine with the Flash Player popping open a confirmation dialog when the user wanted to go fullscreen just to be sure (with a corresponding always for this website option, just like popup blockers). But preventing all keyboard usage? It just renders fullscreen a completely worthless feature for our products. We would embrace it and brag about it and usher in some spectacular web-based experiences only possible because of the Flash platform, but simply won't be able to because we need a minimum amount of keyboard functionality (filling in a few forms, cursor keys, etc.). AIR isn't the answer for us as the whole reason we've gone with the Flash platform is the instant accessibility (no downloads). Please, please, please Adobe... please give us keyboard access in fullscreen! Please! Troy. On 9/14/07, *Nick Collins* [EMAIL PROTECTED] wrote: Within the browser, no, but within AIR, yes. Since the Adobe AIR runtime sandbox extends to the local desktop, you can access the file system, and you can run full screen while still being able to use the keyboard and text inputs. On 9/14/07, *Yigit Boyar* [EMAIL PROTECTED] wrote: yeah; it is sth that annoyed me; like years ago the removal of file access at flash. (i guess it was flash 4 to 5) anyway; security comes first of course, but there must be a way to enable these options, like a certificate or sth else..
[flexcoders] flex chat
Hi All! I will be working on a simple flex chat.. But haven't start coding. I was thinking if you could give me some ideas on how to do it. The application should be text based.. read / write text file (if possible).. I don't want to use any Flex Message Service. I just want to keep it so simple. Any ideas? sample code maybe or links? Any help would be highly appreciated. thanks all!
RE: [flexcoders] Re: SWFLoader Issue
OK, if you have more than one MXML file, then you have a document tree where each mxml file represents a document whose parentDocument is the parent of the top tag in that MXML file. Thus some number of calls to parentDocument should get you where you want to go. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of neilwcameron Sent: Friday, September 14, 2007 11:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: SWFLoader Issue Thats just the thing, I'm accessing it from another component. :( I'm trying a few things now to try and get the instantiated class and call the functions from that...on it goes. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: You shouldn't need Application.application unless you are accessing from another component/document. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of neilwcameron Sent: Friday, September 14, 2007 8:02 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] SWFLoader Issue Hi Guys, In my application I have a line of code that is used to set up my components: Application.application.mainDisplay.createComponentsFromDescriptors(true ); But when I try to load my app with SWFLoader for testing purposes, it fails because on the SWFLoader app, there is no such component as mainDisplay of course. Is there anyways around this? I've tried quite a few things but to no avail. Any ideas? Thanks Neil
RE: [flexcoders] XMLList
([variable] == Y) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of figo2324 Sent: Friday, September 14, 2007 2:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] XMLList Hi people, i need your help, i have a xmllist object so i need to query this xmllist, im doing it in this way var jo:XMLList=myDataProvider.data.item.(koala==Y); where myDataProvider.data = data item pruebaccct/prueba koalaX/koala /item item pruebasambil/prueba koalaY/koala /item /data then the structure of this xmllist can be changes it means that when i wanna to query it using this sentences var jo:XMLList=myDataProvider.data.item.(koala==Y); The param koala have been changed, then i need that this param be a variable so i dont know how to do that... for example var variable:String=koala;// var jo:XMLList=myDataProvider.data.item.(variable==Y); but it doesnt works, i dont know how to pass a variable in this sentence, some suggestion please... thanks so much coders
[flexcoders] Currently selected tab in TabNavigator?
Which property should I be checking for in a TabNavigator to ascertain which tab is currently selected by the user?
Re: [flexcoders] Currently selected tab in TabNavigator?
Hi, use selectedIndex or selectedChild. When using selectedChild you can use; selectedChild.label to get the label of the tab that is selected. When using selectedIndex you can use; var tab:Tab = Tab(tabNavigator.getTabAt(tabNavigator.selectedIndex)); tab.label tab.icon tab.data Peace, Mike On 9/15/07, candysmate [EMAIL PROTECTED] wrote: Which property should I be checking for in a TabNavigator to ascertain which tab is currently selected by the user? -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] Architecture theorical questions
Hello everyone, I just get started with my development consultancy and need a clearer definition of some of the most recurrent terms. I know their definition, what I am interested in finding out is how the most expert of you would describe the differences or similarities between: - the architecture - the micro-architecture - the application programmatic interface or API - the interface or ISomething - the software development kit or SDK - the framework Thanks! Stephane Beladaci www.linkedin.com/in/flexdesigner
RE: [flexcoders] Re: Follow-up on the watermark thing
Sorry that support was unaware of this. We have tried hard to follow Adobe standard practice and make any public betas of our software completely available to those who have licensed copies of the current version. Where behavior appears crippled when in fact you should be entitled more likely a bug (or user error J). The one exception is the automation library which was included in Flex Builder and is permanently locked in trial mode for Beta 1, simply because it was in the process of being migrated to a different delivery mechanism. It will be unlockable in Beta 2. Hope this helps, Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott - FastLane Sent: Friday, September 14, 2007 12:46 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Follow-up on the watermark thing So... I want to make sure I am hearing this correctly. Are you saying that if you have a flex2 charting license, and you put it into license.properties of flex3 sdk, then build from command line you can get rid of the watermark? I spent literally 3 hours on the phone with Adobe sales/tech. support asking them if there was ANY way to get rid of this watermark on AdvancedDataGrid and was told that you could not get rid of it until flex3 is released.Guess I should have posted here instead ;) Note: I would try this myself, but I don't have a charting license yet since it would not get rid of the watermark on my ADGs anyway. Scott Chris Luebcke wrote: Of course not! Why would I do that? (skulking away) Thanks Matt, that was pretty obvious. Much obliged. - Chris --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin [EMAIL PROTECTED] wrote: Have you put the serial number in your license.properties file in the frameworks folder? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Chris Luebcke Sent: Friday, September 14, 2007 11:54 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Follow-up on the watermark thing Thanks Scott--I already have the ant build working, and I'm using the exact same datavisualization.swc in the ant build--I picked it up out of the FlexBuilder install (with the rest of the sdk) and put it in my SVN repository, much like you did. Just to be sure, I copied the swc over again, but I still always get the watermark on charts and AdvancedDataGrids when I build with ant. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% mailto:flexcoders%25 40yahoogroups.com , Scott - FastLane smelby@ wrote: You can do that now afaik. Check out my blog for how to build flex stuff from command line using Ant http://blog.fastlanesw.com/?p=23. Notice specifically this part compiler.library-path dir=${proj-flex.dir.thirdparty}/adobe/ append=true include name=libs / include name=datavisualization.swc / /compiler.library-path I took that datavisualization.swc file the from flex3 builder installed location and copied into my cvs repos (within my project) so I could build with it from cmd line after pulling the project from CVS. hth Scott Chris Luebcke wrote: Forgot a critical point of my complaint--we're building enterprise software and doing our QA and production builds via Ant and mxmlc. Yeah, I can get rid of the watermark in Flex Builder, but I really need to be able to build from the command line or my whole build process goes into disarray.
RE: [flexcoders] Re: Follow-up on the watermark thing
It's not node-locked so you should be fine. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chris Luebcke Sent: Friday, September 14, 2007 2:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Follow-up on the watermark thing It certainly worked for me. Still only tested on my own machine, so if the license is keyed to CPU or something than this doesn't immediately solve my problem after all, but certainly points in the right direction. Sounds like Adobe support should have posted here, too :) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Scott - FastLane [EMAIL PROTECTED] wrote: So... I want to make sure I am hearing this correctly. Are you saying that if you have a flex2 charting license, and you put it into license.properties of flex3 sdk, then build from command line you can get rid of the watermark? I spent literally 3 hours on the phone with Adobe sales/tech. support asking them if there was ANY way to get rid of this watermark on AdvancedDataGrid and was told that you could not get rid of it until flex3 is released. Guess I should have posted here instead ;) Note: I would try this myself, but I don't have a charting license yet since it would not get rid of the watermark on my ADGs anyway. Scott Chris Luebcke wrote: Of course not! Why would I do that? (skulking away) Thanks Matt, that was pretty obvious. Much obliged. - Chris --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Matt Chotin mchotin@ wrote: Have you put the serial number in your license.properties file in the frameworks folder? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of Chris Luebcke Sent: Friday, September 14, 2007 11:54 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Follow-up on the watermark thing Thanks Scott--I already have the ant build working, and I'm using the exact same datavisualization.swc in the ant build--I picked it up out of the FlexBuilder install (with the rest of the sdk) and put it in my SVN repository, much like you did. Just to be sure, I copied the swc over again, but I still always get the watermark on charts and AdvancedDataGrids when I build with ant. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Scott - FastLane smelby@ wrote: You can do that now afaik. Check out my blog for how to build flex stuff from command line using Ant http://blog.fastlanesw.com/?p=23 http://blog.fastlanesw.com/?p=23. Notice specifically this part compiler.library-path dir=${proj-flex.dir.thirdparty}/adobe/ append=true include name=libs / include name=datavisualization.swc / /compiler.library-path I took that datavisualization.swc file the from flex3 builder installed location and copied into my cvs repos (within my project) so I could build with it from cmd line after pulling the project from CVS. hth Scott Chris Luebcke wrote: Forgot a critical point of my complaint--we're building enterprise software and doing our QA and production builds via Ant and mxmlc. Yeah, I can get rid of the watermark in Flex Builder, but I really need to be able to build from the command line or my whole build process goes into disarray.
RE: [flexcoders] Flex - Flash Media Server and Mac - connection failed
We think we resolved this, the ObjectEncoding was not being set correctly for the Mac for some reason. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Lemiuex Sent: Friday, September 14, 2007 2:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex - Flash Media Server and Mac - connection failed i have the strangest situation, where my app works with flash media server with flex, however only on PC. On any mac i get: DEBUG_9] : The connection to the server has failed. [DEBUG_8] : onNetStatusEvent: NetConnection.Connect.Failed [DEBUG_7] : Connecting to socket server... [DEBUG_6] : The connection to the server has failed. [DEBUG_5] : onNetStatusEvent: NetConnection.Connect.Failed [DEBUG_4] : Connecting to socket server... [DEBUG_3] : The connection to the server has failed. [DEBUG_2] : onNetStatusEvent: NetConnection.Connect.Failed [DEBUG_1] : Connecting to socket server... Any suggestions? Thanks, Patrick
RE: [flexcoders] Identify Function Name
Using a debugger player and debug swf (so it won't work in production mode), you can create an Error() instance and parse getStackTrace() function A() { log.debug(function execute + new Error().getStackTrace()); } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ilikeflex Sent: Friday, September 14, 2007 4:16 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Identify Function Name Hi Team I am doing the logging of the application and now i want to know the name of the function which is being executed. In the below i want the functionName to be A. function A() { log.debug(function execute + functionName); } Can we do it in flex??? Thanks ilikeflex
Re: [flexcoders] Fill outline of a Sprite
var s:Sprite = mysprite; s.graphics.lineStyle(1); s.graphics.drawRect(0,0,s.width, s.height) that would work to get the bounds(rectangle) If you just want an outline of the actual sprite itself, you may consider using a 1pixel outer glow filter. On 9/14/07, Jon Bradley [EMAIL PROTECTED] wrote: On Sep 14, 2007, at 12:32 PM, Troy Gilbert wrote: You're missing his point: he's got a shape (probably created in Flash) exported as an SWF, but its just an outline, and he wants to fill it. The answer: sorry, can't do it. You can't modify vector information exported out of Flash as an SWF. The vectors are all stored in MorphShapes which cannot be created at the ActionScript level and are relatively opaque. The only way you'd be able to do this would be to render the shape to a bitmap then do a flood fill (and hope that your shape is closed). So, something like this: Or read in a shape as an SWF file and figure out where the shape data is stored - parsing it out of a ByteArray. I'm working on trying to figure that out right now. Taking some serious diving in to the SWF spec to see how things are written into the file. It *should* be entirely possible to regenerate saved vector data from an SWF file (filling it back in once you have the path data). If I have success with reading vector data out of an SWF then I'll be a happy camper... - j -- Arpit Mathur Lead Software Engineer, Comcast Interactive Media --- post your flex tips on http://flextips.corank.com
[flexcoders] Flex Compiler Shell with Ant Possible ??
Hello, I would like to try the fcsh in my eclipse 3.2 Flex 2.0.1, but can't figure how to do it or if it is even possible. http://labs.adobe.com/wiki/index.php/Flex_Compiler_Shell I already use Flex Ant Task with mxmlc compiler, so I would like to switch to fcsh :) http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks Thank you in advance for your help. Adnan
[flexcoders] Re: Timeout problem with upload files
I found the problem,and not in flex, is php, even set the timout to 0 in php the file size no be bigger than upload_max_filesize. --- In flexcoders@yahoogroups.com, danielvlopes [EMAIL PROTECTED] wrote: Hello every body... I'm using a script that i made to make upload from flex to php... Everything work fine... but when i try use this in low connections like dialup nothing happen, the upload progress is initiate but when my progressbar reach the 100% nothing more happen, i think is a problem with timeout, exist some think to set timeout to zero? I think the problem not is in php because my upload class in php make this before make upload operations: set_time_limit (0); Thanks everyone.
[flexcoders] Re: FileReferenceList disabled multiselection
Some one? --- In flexcoders@yahoogroups.com, danielvlopes [EMAIL PROTECTED] wrote: Hello, I have a uploadcomponent using FileReferenceList to browse file in user pc, i'm using this code to do: refAddFiles = new FileReferenceList();r efAddFiles.addEventListener(Event.SELECT, onSelectFile); refAddFiles.browse(new Array(new FileFilter(Arquivos, filesFilter))); But user shouldn't select more than one file per time. But refAddFiles.browse let user select more than one in default. Some one can help?
[flexcoders] Re: Request for statistics/statements that demonstrate the growing interest on F
http://raghuonflex.wordpress.com/2007/09/03/flex-india-is-going-great-guns/ http://money.cnn.com/news/newsfeeds/articles/prnewswire/AQTU01011092007-1.htm http://www.artima.com/weblogs/viewpost.jsp?thread=193593 --- In flexcoders@yahoogroups.com, João [EMAIL PROTECTED] wrote: Thanks Doug. Does anyone know more sources, like articles from magazines, blog posts from known developers, statistics, and so on? João Saleiro
RE: [flexcoders] Re: CB dataProvider - can it be filenames in a folder (maybe with CF7.0.2)?
Client as in Flex app running in the FlashPlayer in a browser on some machine. The only filesystem you can access at all in Flex is on a server somewhere. If you want filenames in a Flex client app, you will have to use a server-side process to grab a text representation of some part of the server filesystem, and send it back to Flex. Perhaps I do not understand your goal. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of shawn.gibson Sent: Friday, September 14, 2007 2:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: CB dataProvider - can it be filenames in a folder (maybe with CF7.0.2)? Thanks Tracy. I'm not sure what you mean by client - internet users boxes? I have both the development machine running Flex, and I push the files over to my own in-house coldfusion server. I am in the midst of building the box (old one is waay too old/slow), it's CF7.0.2/Win2003SBS/MS Exchange/MS SQL 2005 - in my bedroom LOL. Is that what you mean by client? Shawn
[flexcoders] SalesBuilder in FLex(Source Code included)
Hey, i decided that i am going to release the source code for the SalesBuilder app done that was done in Air by Christophe Coenraets http://www.coenraets.org/blog/ Its under the MIT license so i have been told it is OK. I rewrote the entire thing to work in Flex, and added loads of comments so anyone can understand what i am doing. Keep in mind that this is my first programming language and i am only self taught. it's been only ~5 month that i got into programing. So tell me if there is something that i need to fix or if i am using wrong techniques. THis program is functional about 85%, i still havent done the whole send back to the database when somone clicks on save and some minor stuff so it replicates it. I did the whole thing in one week before school started so i am busy now and prob wont finish it till end of month. Any how here is the link http://code.google.com/p/salesbuilder/downloads/list --You need Coldfusion 8 --Microsoft sql 2005 --You must create a dataSource in the coldfusion admin called SalesBuilder -Database in sql must also be called SalesBuilder --I used 8500 for the port for coldfusion, Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mailp=summer+activities+for+kidscs=bz
Re: [flexcoders] Re: SWFLoader Issue
Alex had pointed out something similar I was doing - that I needed to import mx.Application in the mx:Script area. On Sep 14, 2007, at 2:08 PM, neilwcameron wrote: Thats just the thing, I'm accessing it from another component. :( I'm trying a few things now to try and get the instantiated class and call the functions from that...on it goes. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: You shouldn't need Application.application unless you are accessing from another component/document. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of neilwcameron Sent: Friday, September 14, 2007 8:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] SWFLoader Issue Hi Guys, In my application I have a line of code that is used to set up my components: Application.application.mainDisplay.createComponentsFromDescriptors (true ); But when I try to load my app with SWFLoader for testing purposes, it fails because on the SWFLoader app, there is no such component as mainDisplay of course. Is there anyways around this? I've tried quite a few things but to no avail. Any ideas? Thanks Neil -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links
[flexcoders] Problem with repeater and image ???
Helo everybody... I having problems to try get repearter item when user click on image. This is my code for repeater: mx:Repeater id=rptFoto dataProvider={objSelectedEquip.thumbs} mx:HBox mx:Image source={rptFoto.currentItem} buttonMode=true useHandCursor=true toolTip=Vizualizar click=exibirImagem(event)/ mx:Button label=Alterar click=exibirImagem(event) / /mx:HBox /mx:Repeater When user click on button or image this function is called: private function exibirImagem(event:MouseEvent):void{ var image:String = event.target.getRepearterItem(); var imgUrl:URLRequest = new URLRequest(Funcoes.getImageFromThumb(image)); navigateToURL(imgUrl,_blank); } When user click on button everything work, but whe click image this error is dispatched Property getRepeaterItem not found on mx.core.FlexLoader and there is no default value. , anyone know some way to fix this? Thanks.
RE: [flexcoders] Problem with repeater and image ???
Target is the dispatcher, which is the loader of the image. Try currentTarget, or use rptFoto.getRepeaterItem From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of danielvlopes Sent: Saturday, September 15, 2007 8:57 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem with repeater and image ??? Helo everybody... I having problems to try get repearter item when user click on image. This is my code for repeater: mx:Repeater id=rptFoto dataProvider={objSelectedEquip.thumbs} mx:HBox mx:Image source={rptFoto.currentItem} buttonMode=true useHandCursor=true toolTip=Vizualizar click=exibirImagem(event)/ mx:Button label=Alterar click=exibirImagem(event) / /mx:HBox /mx:Repeater When user click on button or image this function is called: private function exibirImagem(event:MouseEvent):void{ var image:String = event.target.getRepearterItem(); var imgUrl:URLRequest = new URLRequest(Funcoes.getImageFromThumb(image)); navigateToURL(imgUrl,_blank); } When user click on button everything work, but whe click image this error is dispatched Property getRepeaterItem not found on mx.core.FlexLoader and there is no default value. , anyone know some way to fix this? Thanks.