[flexcoders] How do you replay an effect?
I have numerous states, transitions and effects. When I enter a state and the effect plays, i.e. creationCompleteEfect={draw_panels}, it works fine the first time, but when leaving and re-entering the same state, the effects don't play and the components appear static. I'm guessing I need to use ShowEffect and HideEffect for each instance. Thanks to all.
Re: [flexcoders] Loading and Controlling a Flash Animation within a Flex Application
hi mike; a few day ago i had the same problem; i needed to load a swf and interact with it. i had to do it in 2 days so couldn't wait for the answers of this mail group and i solved the issue by migrating AS2 swf to AS3 using flash player 9 alpha. i dont know if this is available for you but if you can; you can fully control the swf and it's objects,functions etc. But let me inform that this not sth easy because in as3; support for _root is removed. in addition variables like _x , _width etc are changed to x , width ... By the way; there were some replies from the flexcoders yahooGroup. try searching for the messages with subject : talking to Flash SWF's i wish it helps. --yigit - Original Message From: kelpmike [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, April 6, 2007 9:06:03 PM Subject: [flexcoders] Loading and Controlling a Flash Animation within a Flex Application I am working on an educational game that essentially asks questions and plays animations depending on the user's answer. When the user selects the correct answer they should be shown a random animation for their character, that has optional closed captioning and the ability to be repeated if the user's clicks a button in my application. I am able to load the SWF animations fine within Image/SWFLoader components as expected, but I'm having trouble stopping the animation from looping, knowing when it has ended so i can show the repeat button, or turning closed captioning on/off. The closed captioning is inside the SWF files with an instance name of closedCaptions with the hope that I could simply do something like: swfloaderId. content.root. closedCaptions. _visible = false; from flex to hide them as necessary. This also gives them the necessary control for timing the text, etc. Could someone enlighten me a little better on how to perform this interaction? Does anyone have an example of this kind of interaction? It seems like it should be pretty simple, but maybe I am missing something. Thanks in advance for any help, Mike. !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-vital{ background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;} #ygrp-vital ul{ padding:0;margin:2px 0;} #ygrp-vital ul li{ list-style-type:none;clear:both;border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;} #ygrp-vital ul li .cat{ font-weight:bold;} #ygrp-vital a { text-decoration:none;} #ygrp-vital a:hover{ text-decoration:underline;} #ygrp-sponsor #hd{ color:#999;font-size:77%;} #ygrp-sponsor #ov{ padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;} #ygrp-sponsor #ov ul{ padding:0 0 0 8px;margin:0;} #ygrp-sponsor #ov li{ list-style-type:square;padding:6px 0;font-size:77%;} #ygrp-sponsor #ov li a{ text-decoration:none;font-size:130%;} #ygrp-sponsor #nc { background-color:#eee;margin-bottom:20px;padding:0 8px;} #ygrp-sponsor .ad{ padding:8px 0;} #ygrp-sponsor .ad #hd1{ font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;} #ygrp-sponsor .ad a{ text-decoration:none;} #ygrp-sponsor .ad a:hover{ text-decoration:underline;} #ygrp-sponsor .ad p{ margin:0;} o {font-size:0;} .MsoNormal { margin:0 0 0 0;} #ygrp-text tt{ font-size:120%;} blockquote{margin:0 0 0 4px;} .replbq {margin:4;} -- Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097
RE: [flexcoders] Re: Dynamic constructor invocation?
That's one of the reasons all of our mxml classes have no constructor arguments. The code flow is then: result = new clazz(); for (var p:String in args) { results[p] = args[p]; } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Christophe Herreman Sent: Friday, April 06, 2007 11:55 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Dynamic constructor invocation? Hi again, the solution I have so far is to make separate calls for each number of arguments that needs to be passed to the constructor. It works, but of course it is no elegant and generic solution. case 1: result = new clazz(args[0]); break; case 2: result = new clazz(args[0], args[1]); break; etc. regards, Christophe herrodius schreef: Hi Paul, I'm currently also creating a lightweight IoC container. You can get a ref to the Class by calling getDefinitionByName(). getClassByName() is indeed not there. About the ObjectFactory, do you mean creating wrappers around the constructor call for every number of arguments? You can always send me code offlist ([EMAIL PROTECTED] mailto:info%40herrodius.com mailto:info%40herrodius.com). If you are interested in my progress I can send you some stuff to. regards, Christophe --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Paul DeCoursey [EMAIL PROTECTED] wrote: I was looking into this, because I wanted to do some IoC work in Flex. I found one issue, I don't have any reference for getClassByName adn cannot compile when trying to use it. Was it removed? what's the deal there? Anyway, one solution I had thought of was to use a ObjectFactory of sorts. Then you pass in an array of arguments to a getInstance function and it would use the correct call based on the length of the array. It would be more code but it would be hidden away in a factory class. If you need an example let me know. Paul --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, herrodius lists@ wrote: Hi guys, I'm looking for a way to dynamically invoke a constructor and pass in arguments. I know this was possible in AS2 with Function.apply() on the constructor property of an object but I didn't find anything in AS3. I found a 1-year old post from Matt Chotin that says it wouldn't be possible in AS3, but I was kinda hoping it might have magically changed by now ;-) http://www.mail-archive.com/flexcoders@yahoogroups.com/msg21919.html http://www.mail-archive.com/flexcoders@yahoogroups.com/msg21919.html http://www.mail-archive.com/flexcoders@yahoogroups.com/msg21919.html http://www.mail-archive.com/flexcoders@yahoogroups.com/msg21919.html Any tips? thx, Christophe
[flexcoders] Filtered data in PlotSeries
I'm using an HTTPService to retrieve XML to use as a dataProvider on a PlotSeries of a CartesianChart. My horizontal axis is a DateAxis. I have written a custom item renderer to overlay a text value from the item (XML) on the circle. In one particular instance so far, the data contains two values. The scoreListXML contains the following XML: tenPlus date=10/08/2006 val=10.5 txt=22 / tenPlus date=10/09/2006 val=10.5 txt=23 / My PlotSeries is defined as: mx:PlotSeries dataProvider={scoreListXML.tenPlus} xField=@date yField=@val radius=10 itemRenderer=utils.AnnotatedCircleItemRenderer I've observed in the debugger that the RenderData for the PlotSeries contains these two distinct items. However, the filteredData in the RenderData contains only the second item. If filterData=false is added to the PlotSeries, both items render with the proper text values. If the filterData setting is not specified, both items render with the same text value 23. With filterData=true, both items render with the same text value 23. Why would the filterData=true remove one of these two different items? Any ideas? Paul
Re: [flexcoders]PHP and Flex questions
I too am very interested in this topic ! --- In flexcoders@yahoogroups.com, dorkie dork from dorktown [EMAIL PROTECTED] wrote: Could you give an example of how you do this? If this is secure it sounds much easier to handle. On 04 Apr 2007 10:12:22 -0700, Ray Horn [EMAIL PROTECTED] wrote: Rather than worry about the server session why not simply maintain the session state in the client since it is assume your client is running a SWF ala Flex. The fact that the client has accomplished a login could be handled by sending a specific token to the server as long as the token is some kind of UUID value that is known to be random yet non- sequential. I have coded this into a Flex Object that subclasses the HTTPService and once setup needs no further maintenance. In my specific case my app is always logged-in since it runs via an Intranet however my initial HTTPService call gets the user's metadata from the server and then I pass the user's ID back to the server on each HTTPService call but this is done transparently. Just a suggestion. I realize this may not be in keeping with the way most people might apprach this sort of problem. - Original Message From: dordea cosmin [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, April 4, 2007 1:27:44 AM Subject: Re: [flexcoders]PHP and Flex questions When a Flex application in a browser communicates with a php page for the first time a session is created. This is the same behavior as user receiving a PHP page in their browser. - true , but the session is created only if the php installed in your server is configured to auto start a session or you manually start the session in your scrip. - This session that is created last indefinitely with Flex applications because Flex keeps the connection open / session alive on the server. I am not sure if this is 100% true , but i believe by default , the http headers send Connection: Keep-Alive, so sessions remain alive. In my application it works okay, session doesn't expire while flex application runs. However, I believe if you send custom HTTP headers this behavior can be lost. - Flex keeps the connection alive by periodically pinging the server. same as above - Sessions will never timeout due to this behavior. same as above - When the user navigates away from the Flex application the session will timeout on the server. true , it will timeout in the time specified in your php.ini To manually timeout a session on the server call a page or function that executes this code session.destroy( ); -- not sure what the recommended method to clear the session on the server. - true , depending on your php session you will call the correct function to destroy the session Hope this helps. - Original Message From: dorkie dork from dorktown dorkiedorkfromdorkt [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Tuesday, April 3, 2007 8:37:15 PM Subject: [flexcoders] PHP and Flex questions Can someone tell me if these statements are true or false and if false what is the correct answer? - When a Flex application in a browser communicates with a php page for the first time a session is created. This is the same behavior as user receiving a PHP page in their browser. - This session that is created last indefinitely with Flex applications because Flex keeps the connection open / session alive on the server. - Flex keeps the connection alive by periodically pinging the server. - Sessions will never timeout due to this behavior. - When the user navigates away from the Flex application the session will timeout on the server. - To manually timeout a session on the server call a page or function that executes this code session.destroy( ); -- not sure what the recommended method to clear the session on the server. Any answers will help even partial. -- 8:00? 8:25? 8:40? Find a flickhttp://tools.search.yahoo.com/shortcuts/? fr=oni_on_mail#newsin no time with theYahoo! Search movie showtime shortcut.http://tools.search.yahoo.com/shortcuts/? fr=oni_on_mail#news
[flexcoders] Flex E-Mail a Form PHP, ASP, or ColdFusion
Hi all, i am making a web page for a friend that will be at pembrokecycle.com, I am a Flash AS coder with little experience with Flex, but I knew that it would be a little easier with data, so I used that instead (plus, the components look nicer). I am pretty much done with every thing else except for the Contact Us page. In flash, I know to use a php script with a new Load Vars class, but I have no idea what to do with flex. I have seen Google searches with coldfusion, but no tuts. I don't even know if google domains (which he is using), supports coldfusion, so i would like to save that as a last resort. some one please help me. Also, im only 16, so please keep the explanation a little dumbed down, even though i could probably understand it anyways. ** [code] mx:Panel label=Contact Us width=100% height=100% title=Contact Us horizontalAlign=center verticalAlign=middle mx:Form width=100% height=100% mx:FormItem label=E-Mail width=100% required=true mx:TextInput width=100% id=emailBox/ /mx:FormItem mx:FormItem label=Subject width=100% required=true mx:TextInput width=100% id=subjectBox/ /mx:FormItem mx:FormItem label=Message width=100% height=200 required=true mx:TextArea width=100% height=200 id=messageBox/ /mx:FormItem mx:Button id=submit label=Submit mx:enterFrame ![CDATA[ if (isEmail isSubject isMessage){ submit.enabled = true; } else { submit.enabled = false; } ]] /mx:enterFrame /mx:Button /mx:Form /mx:Panel [/code]
[flexcoders] Flex and Yahoo Pipes
I am currently trying to build a Flex app for me to search for places to eat lunch at work. I'm stuck on my first step. I'm having a problem parsing the the pipes just to a DataGrid. When I use a local copy it works but when I use the Yahoo! copy, it comes up blank. If any one could help me see what's wrong I'd be happy. Thanks, Josh ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical initialize=myService.send() mx:HTTPService id=myService url=http://pipes.yahooapis.com/pipes/pipe.run?location=Dallassearch=sandwhich_id=tEaG60rj2xGl7hOLn0artA_run=1_render=rss; / mx:DataGrid dataProvider={myService.lastResult.rss.channel.item} / /mx:Application
[flexcoders] Multiple values in a progress bar?
Is it possible to have two different sources in a progress bar? Using a video for example, the first value is duration and the second is how much is loaded. Almost like on YouTube. Is it possible? Thanks!!
[flexcoders] Event Setup Question
Newbie here (sorry), I'd like to setup a ComboBox (in one panel) listen to the user selecting an item from a Tree (that is on another Panel component, but on the same screen). However, there are two tree components in the app. Is there way to have the ComboBox only listen to one of the trees and ignore the other. Or how do I set it up? Example: mx:Script ![CDATA[ public function init():void { //called on creationComplete of Application combo.addEventListener( what listener do I choose here for tree1, myfunction); } public function myfunction( e:TreeEvent ):void { //do stuff here } ]] /mx:Script mx:Panel mx:ComboBox id=combo / /mx:Panel mx:Panel mx:Tree id=tree1 / /mx:Panel mx:Panel mx:Tree id=tree2 / /mx:Panel Thanks ahead of time, Anthony
[flexcoders] Granite Data Services
Hello, Somebody using granite ds (www.graniteds.org) with flex builder to compile ? Some configuration to work ? when compiled with mxmlc, i have the error when i try to run: [RPC Fault faultString=[MessagingError message='Unknown destination 'pojo'.'] faultCode=InvokeFailed faultDetail=Couldn't establish a connection to 'pojo'] thanks in advance []'s mindu
[flexcoders] Word wrapping RadioButton Labels
I'm creating a survey application where I use RadioButtons as answer choices. Because my answer types are dynamic, meaning that they can be one word, like 'True' or an entire paragraph of text, I need a way to display the answer text in the RadioButton label so it can wrap text as necessary. I've tried creating an itemRenderer that contains a RadioButton and a TextArea in an HBox, and placed it in a List control. This works until I start scrolling through the list... the RadioButtonGroup loses the selected index. What I would like to do is just extend the RadioButton class and change it's Label property so that it can wrap text. Is that possible? Any help is much appreciated! TIA, MC
[flexcoders] Re: Bizarre compilation issue.
Yep, that was it. Blank line snuck in before header, propably when I copied code from another app. Now I can get to the other problems! Thanks much! --- In flexcoders@yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] wrote: ?xml version=1.0 encoding=utf-8? should be at the top of every MXML file. My guess is that this line has whitespace in front of it. If that's not doing it you should probably post the entire file. - Daniel Freiman nondocs? http://nondocs.blogspot.com/ On 06 Apr 2007 17:53:29 -0700, jjkruse1 [EMAIL PROTECTED] wrote: I'm getting an error White space is not allowed before an XML Processing Instruction (?...?) but the error isn't tied to a line of code, so I have no clue how to correct. Also, initializations don't appear to work, since the Alerts I've put in code don't appear. (Oddly, pie chart responds to events, go figure). Code follows, any ideas welcome! initialize=init()--part of header Part of code public function init():void { mainPieChart.addEventListener(ChartItemEvent.ITEM_CLICK, pieClick); Alert.show(first try,); initCollections(); } public function initCollections():void{ menubarCollection=new XMLListcollection(menubarXML); Alert.show(here,); } [Bindable] public var menuBarCollection:XMLListCollection; private var menubarXML:XMLList = menuitem label=File menuitem label=New... data=fileNew/ menuitem label=Open... data=fileOpen/ menuitem label=Save data=fileSave/ menuitem label=Save As... data=fileSaveAs/ /menuitem /;
[flexcoders] Re: Flex and Yahoo Pipes
Its the security sandbox issue, read up the flex 2 docs about this. Alternatively, you can attach a security error handler to your http service and read the error msg yourself =) --- In flexcoders@yahoogroups.com, joshspooning [EMAIL PROTECTED] wrote: I am currently trying to build a Flex app for me to search for places to eat lunch at work. I'm stuck on my first step. I'm having a problem parsing the the pipes just to a DataGrid. When I use a local copy it works but when I use the Yahoo! copy, it comes up blank. If any one could help me see what's wrong I'd be happy. Thanks, Josh ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical initialize=myService.send() mx:HTTPService id=myService url=http://pipes.yahooapis.com/pipes/pipe.run?location=Dallassearch=sandwhich_id=tEaG60rj2xGl7hOLn0artA_run=1_render=rss; / mx:DataGrid dataProvider={myService.lastResult.rss.channel.item} / /mx:Application
[flexcoders] Re: Module Interface Problems
Thanks Alex, that makes total sense now. BTW, great module presentation at 360Flex. I will go look at your slides again. I really appreciate your time on this one :). - Mike --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: OK, I think I see what is going on. The app loads module one into a child domain. MainAppDomain ModuleOneAppDomain The MainAppDomain is where ModuleManager is defined since there is a ModuleLoader and other Module-related code in main.mxml. When ModuleOne goes to load ModuleTwo, it is going to use the ModuleManager code in MainAppDomain which is going to make a child domain from the main app and not moduleOne. MainAppDomain ModuleOneAppDomain ModuleTwoAppDomain Not: MainAppDomain ModuleOneAppDomain ModuleTwoAppDomain And thus you are in the shared code topology. That's why you need to add your interfaces to the main app or use the shared code trick from my blog, or specify the applicationDomain for ModuleOne somehow. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Ritchie Sent: Thursday, April 05, 2007 11:11 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Module Interface Problems Alex, I made a test case and also managed to get it to work. I realized two things about the process. Within the main application I load the module one (red) and module one loads module two (green). Module one needs to be cast as a ModuleLoader in the ready event handler in the Main application in order for module two have a non null pointer. You also seem to have to have the ModuleLoader in the main application cast as the same Interface as the one module two implements. I am not sure why though. Changing either one of these parameters will produce the null pointer. I have a working version of the test case posted, the zip file contains both module one and module two project zip files as well. Example: http://thanksmister.com/moduletest/main.html http://thanksmister.com/moduletest/main.html --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Can you post a test case? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Michael Ritchie Sent: Thursday, April 05, 2007 11:00 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Module Interface Problems Alex, Lol, you said tickling, haha. Yes, this is within the same domain. Everything resides within the bin file of the main application, same level. It was loaded just fine and dispatched the progress and ready events. When you say main class, do you meant the Module that is loading the second module. I got a little lost ModuleLoader loading ModuleLoaders module... makes my head spin. -Mike --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: If you don't make an instance of the main class in your module which gets around to tickling the module's ModuleLoader, that ModuleLoader won't load its module. Did you see it get loaded and dispatch READY? This is all within a single domain right? 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 Michael Ritchie Sent: Wednesday, April 04, 2007 12:40 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Module Interface Problems In my context, a module loading another module using ModuleLoader. The reference to the child of the ModuleLoader is always null. I have even set up a timer event that keeps checking back to see if the child is not null. Is there something specific about what I am trying to do that would cause the child to be null? - Mike --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: ModuleLoader is a convenience container. It loads in the module via ModuleManager and when READY, it starts to create the children. If you listen to READY you may see it before moduleloader had a chance to see it and create the child.
[flexcoders] internal build error only when pointing to local CF server?
so I get the mysterious An internal build error has occurred. Please check the Error Log. but only when I point my build folder to /Applications/JRun4/servers/cfusion/cfusion-ear/cfusion-war/360Subscribers/admin if I point to bin, no problems. I've got plenty of other projects that point to other folders in that server without problem. Is there something I need to un-tweak that might ahve been tweaked somehow? -- John Wilker Vice President Software Development/Writer Red Omega Solutions, Inc. www.johnwilker.com / www.red-omega.com Everything changes, nothing remains without change. ~Buddha c.483 bc
[flexcoders] Re: ListBase ScrollVertically error #1010
Hi, I seem to have the same problem. When I try to use an item renderer containing TextInput or NumericStepper or DateField, Button, etc. I got the error on scroll. There is no error for CheckBox, RadioButton, VBox etc. Here is a really small test case (view source enabled): http://www.narancs.net/flex/tests/datagrid/DateGridRendererTest.html I would really appreciate any help. Andi --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Unfortunately, no smoking gun in that stack trace. Do you have a simple test case you can post? Try different heights on the list classes as well. It might be a corner case. Are you using custom renderers? Could you be reassigning the 'name' property in those renderers? The name property is reserved. -Alex
[flexcoders] Re: Flex and Yahoo Pipes
I see. That's weird Yahoo has set there cross-domain wide open. I'll look into the docs. Do you mean I mean I need to allow yahoo's domain? --- In flexcoders@yahoogroups.com, huangnankun [EMAIL PROTECTED] wrote: Its the security sandbox issue, read up the flex 2 docs about this. Alternatively, you can attach a security error handler to your http service and read the error msg yourself =) --- In flexcoders@yahoogroups.com, joshspooning joshspooning@ wrote: I am currently trying to build a Flex app for me to search for places to eat lunch at work. I'm stuck on my first step. I'm having a problem parsing the the pipes just to a DataGrid. When I use a local copy it works but when I use the Yahoo! copy, it comes up blank. If any one could help me see what's wrong I'd be happy. Thanks, Josh ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical initialize=myService.send() mx:HTTPService id=myService url=http://pipes.yahooapis.com/pipes/pipe.run?location=Dallassearch=sandwhich_id=tEaG60rj2xGl7hOLn0artA_run=1_render=rss; / mx:DataGrid dataProvider={myService.lastResult.rss.channel.item} / /mx:Application
Re: [flexcoders] Flex E-Mail a Form PHP, ASP, or ColdFusion
videogamer2791, I think you have 2 choices, either an app server sends the email, or you rely on the default email program on the users' machines (using something like: URLRequest(mailto:+ ... ) ) On the web, you have this issue sending email regardless of what you use to code the UI (e.g. regardless if HTML, Flash, Flex, etc.) Following is a sample method for sending mail from default email program on the users' machines using AS3/Flex: private function clickSendEmail_submitBtn():void { var u:URLRequest = new URLRequest(mailto:[EMAIL PROTECTED]+ subjectBox +body=+ messageBox ); navigateToURL(u,_self); } btw ... any app server Flash can talk to, Flex can talk to too. Commonly including: PHP, Java, ColdFusion, WebServices, etc. Will pembrokecycle.com have access to an app server? If so, please post back regarding what language. And of course there are any of a number of ways to send the data from Flash/Flex to the app server. Please post back any follow up questions you may have. hth, g videogamer2791 [EMAIL PROTECTED] wrote: Hi all, i am making a web page for a friend that will be at pembrokecycle.com, I am a Flash AS coder with little experience with Flex, but I knew that it would be a little easier with data, so I used that instead (plus, the components look nicer). I am pretty much done with every thing else except for the Contact Us page. In flash, I know to use a php script with a new Load Vars class, but I have no idea what to do with flex. I have seen Google searches with coldfusion, but no tuts. I don't even know if google domains (which he is using), supports coldfusion, so i would like to save that as a last resort. some one please help me. Also, im only 16, so please keep the explanation a little dumbed down, even though i could probably understand it anyways. ** [code] mx:Panel label=Contact Us width=100% height=100% title=Contact Us horizontalAlign=center verticalAlign=middle mx:Form width=100% height=100% mx:FormItem label=E-Mail width=100% required=true mx:TextInput width=100% id=emailBox/ /mx:FormItem mx:FormItem label=Subject width=100% required=true mx:TextInput width=100% id=subjectBox/ /mx:FormItem mx:FormItem label=Message width=100% height=200 required=true mx:TextArea width=100% height=200 id=messageBox/ /mx:FormItem mx:Button id=submit label=Submit mx:enterFrame ![CDATA[ if (isEmail isSubject isMessage){ submit.enabled = true; } else { submit.enabled = false; } ]] /mx:enterFrame /mx:Button /mx:Form /mx:Panel [/code] - No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started.
[flexcoders] 1 Pixel Gap Between Scrollbar and List Component
I have a scrollbar skin that was created in Flash, but I've discovered a problem when the vertical scrollbar is first displayed in a List component. When an item is added to a list causing the vertical scrollbar to be drawn for the first time, there is a 1 pixel gap between the right edge of the vertical scrollbar and the right side of the List. If an additional item is added to the List then the scrollbar is correctly redrawn flush against the right side of the List. The gap also disappears if the browser window is resized. This also happens in the DataGrid, but sometimes the DataGrid will automatically refresh itself and draw the scrollbar correctly. Anyone have any idea why the first time a vertical scrollbar is displayed in a List there is a one pixel gap between the scrollbar and the component's edge? I don't think it's the skin because the same scrollbar is drawn correctly in other components. By the way, I've got the borderStyle set to none but the gap appears regardless of whether or not the borderStyle is set to none or solid. Thanks for any suggestions! Paul
[flexcoders] SOLVED: 1 Pixel Gap Between Scrollbar and List Component
Wow! This is like magic! I post a question and suddenly I figure the answer out myself :-) The answer, it turns out, did have to do with the skin, but there's a twist. I was using the Flash skin template supplied by Adobe and the scrollbar width in the template is 15 pixels. Just on a hunch I tried redesigning the scrollbar with a width of 16 pixels and the problem with the 1 pixel gap was solved. I would suggest that if you are creating a scrollbar using Adobe's skin template that you consider using a width of 16 pixels instead of the 15 pixels that Adobe recommends. Paul --- In flexcoders@yahoogroups.com, Paul Whitelock [EMAIL PROTECTED] wrote: I have a scrollbar skin that was created in Flash, but I've discovered a problem when the vertical scrollbar is first displayed in a List component. When an item is added to a list causing the vertical scrollbar to be drawn for the first time, there is a 1 pixel gap between the right edge of the vertical scrollbar and the right side of the List. If an additional item is added to the List then the scrollbar is correctly redrawn flush against the right side of the List. The gap also disappears if the browser window is resized. This also happens in the DataGrid, but sometimes the DataGrid will automatically refresh itself and draw the scrollbar correctly. Anyone have any idea why the first time a vertical scrollbar is displayed in a List there is a one pixel gap between the scrollbar and the component's edge? I don't think it's the skin because the same scrollbar is drawn correctly in other components. By the way, I've got the borderStyle set to none but the gap appears regardless of whether or not the borderStyle is set to none or solid. Thanks for any suggestions! Paul
[flexcoders] Sending multiple HTTPService requests - how to really cancel all but the last
I'm using several HTTPService calls to plain old REST API's on the backend. If the end user clicks some of the UI controls multiple times quickly, many calls to these services get queued up, and it can take a long time for all the data to be retrieved. For ex. clicking on a list box item sends requests to refresh all the data, and if the user were to use the keyboard to quickly scroll through the listbox, many many calls would get queued up. I've tried setting the concurrency=last on the httpservices, but it appears the only effect of that is to make the UI change only when the last dataset is received, but still all the service calls continue to be queued and there is a long delay after making many calls. I've also tried httpservice.disconnect() and .cancel() before making any new backend call but it didn't appear to have any effect as far as preventing many calls from getting queued up. Thanks in advance for any ideas. I know I could also look into retrieving all the data only once and doing local Flex filtering on it rather than getting the data fresh from the backend each time, but for now it's just easier to make the backend calls and use the DB to do the proper filtering and querying.
[flexcoders] Re: Flex E-Mail a Form PHP, ASP, or ColdFusion
thats good to know, however, i found a way to do it with a php file combined with a mx:HTTPService however a new problem has occurred, google apps, which the person who i am making the web site for, does not support php, so right now i am looking for a file hosting site and see if that helps. ill post back to say if i have a victory
[flexcoders] AS3 encryption
Hi all, I'm looking for someway to encrypt the information I'm sending through HTTPService via POST. I need this information to be decrypted inside a JSP script at the back-end. So I need a encryption method that has a corresponding decryption method at server-side (Java) I'm not experienced with cryptography. If you already solved some problem like that. Please help. -- André Rodrigues Pena
[flexcoders] Problems using SSL
Hi all, I am trying to connect to a web server via SSL. It seems that all my HTTPService calls fail (httpsFault). Here is how I attempt to load things: 1. I load the SWF file directly (without HTML file) 2. I use HTTPS://DOMAIN/MYAPP.SWF https://DOMAIN/MYAPP.SWF (loading the app itself via SSL). The app loads... 3. In the app, all HTTPServices have relative addressing, meaning the script file name only - no http or https (protocol prefix). The app is supposed to run whereever installed, so I cannot do absolute URLS), but I would expect that the protocol of the original SWF url would be used in relative URL calls. And I think it does, because the web site accepts both SSL and non-SSL, and the errors I am receiving don't happen when I load the same app from the same location without https. Can anyone tell me how to do this properly without a crossdomain, etc.? Thanks much Iko
[flexcoders] Bender - Transfer to Flex Bridge
Hi all, I've been working on a simple to use bridge between the coldfusion Transfer ORM and Flex. For those who might be interested here are the details http://www.tobytremayne.com/index.cfm/2007/4/7/Bender-The-Flex-to- Transfer-Bridge code to follow as soon as it's working - the idea is to allow autogeneration of actionscript classes which along with the flex Bender component will allow you to make very simple calls in flex to persist to a database on the server, IE Bender.save (myActionscriptClass); Toby --- Life is poetry, write it in your own words --- Toby Tremayne Senior Technical Consultant Lyricist Software 0416 048 090 ICQ: 13107913
[flexcoders] Problem with calling web service
I'm trying to build a Flex File Manager (based on CFFM) and I'm using a web service to do all the work (rather than remoting).. I haven't done the web service thing in a while so I'm a little rusty - on the flex side, that is. Here's my MXML for the service: mx:WebService id=ws wsdl=http://localhost:8500/flexfm/flexfm.cfc?WSDL; showBusyCursor=true mx:operation name=init result=initResult(event) fault=genericFault(event)/ mx:operation name=getDirectory result=getDirectoryResult(event) fault=genericFault(event)/ /mx:WebService WHen I run ws.init(), I get a kind of generic web service error. Request implements version: http://schemas.xmlsoap.org/soap/envelope/, Response implements version null I don't know what's going on here. I googled the error result and there were zero results. I can load the WSDL just fine. I can call the methods via http GET just fine, they return the expected results. Can anyone offer some help here? Thanks. Rick -- CFMBB - Coldfusion Message Boards, Version 1.21 Now Available! http://www.cfmbb.org
Re: [flexcoders] Re: Flex E-Mail a Form PHP, ASP, or ColdFusion
videogamer2791, i googled on: google apps php this came up: Google Apps for your Domain (PHP mail forms) http://www.bluehostforum.com/showthread.php?t=5444 maybe somebody else will post with other solutions hth, pete videogamer2791 [EMAIL PROTECTED] wrote: thats good to know, however, i found a way to do it with a php file combined with a however a new problem has occurred, google apps, which the person who i am making the web site for, does not support php, so right now i am looking for a file hosting site and see if that helps. ill post back to say if i have a victory -- 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 - TV dinner still cooling? Check out Tonight's Picks on Yahoo! TV.