[flexcoders] Re:debug AMFPHP/flex -- beginner question
amfphp returns an object to your onFault handler. so, you can either use something like mx.utils.ObjectUtil.toString(fault) for your trace to see all the properties of the fault object. or, i think description is the user-friendly prop so, you could just trace (fault.description) if that's not the problem, you post the code in question for further help...=) P E A C E Hasan
[flexcoders] Re: RESKINNING AN Alert
CSS is the easiest way, IMO. For global Alert modifications, add this to your stylesheet: Alert { /*backgroundGradientColors: #ff,#ff; backgroundColor: #ff9933; borderColor: #ff9933;*/ color: #00; borderSkin: Embed(source=urlToSWFOrPNG); buttonStyleName: myAlertButtonStyle; } .myAlertButtonStyle { color: #ff; rollOverColor: #ff; upSkin: Embed(source=urlToSWFOrPNG); overSkin: Embed(source=urlToSWFOrPNG); downSkin: Embed(source=urlToSWFOrPNG); disabledSkin: Embed(source=urlToSWFOrPNG); } throw in your 9-slice grids if you need to and viola! HTH... P E A C E Hasan
Re: [flexcoders] Re: Calendar...visually show selection for related data?
Something simple that also works is taking a months array, slicing out the meetings and using the left overs as the basis for your disabledRanges array. HTH...=) P E A C E Hasan On Nov 28, 2006, at 7:46 AM, qnotemedia wrote: Never really found an answer to this. Anyone know where I can find more primers on extending Components? I've gone through a few, but none of them seem to really apply to this particular dilemma. - Chris --- In flexcoders@yahoogroups.com, qnotemedia [EMAIL PROTECTED] wrote: Sorry - posted this in the wrong thread!! So how about this? If you CTRL-Click on a default Datechooser in MXML, you get the built-in DateChooser.as. I'm particularly interested in the section on the showToday property, which of course has its own style for a specific date. I would think that maybe this could perhaps be edited to accept an array of dates instead of a single date? I just don't quite know enough yet on exactly how to do something that simple... - Chris --- In flexcoders@yahoogroups.com, Andrew D. Goodfellow agoodfellow@ wrote: Yeah, I've been trying to figure this one out in my spare time as well. selectedRanges is definitely not what you want. I haven't dug into sub classing the DateChooser yet, but I am sure that will be required. Can anyone from Adobe shed some more light on this components rendering grid? -Andy On 11/9/06, qnotemedia qnotemedia@ wrote: Nah, not selectedRanges - cause, I'd like to highlight specific dates randomly, not consecutive ones. Though I haven't used selectedRanges...can you specify the same date as the range? Will look into that... Anyone use Outlook's Calendar? i.e. when you look at the whole month, numbers (dates) that have meetings are bolded. That's what I'd like to accomplish. I figured this would clearly require extending the DateChooser class and passing the data to it as a property. However, I'm not sure how to selectively apply a bold style or something to a specific date. What part of the DateChooser is rendering the dates? - Chris --- In flexcoders@yahoogroups.com flexcoders% 40yahoogroups.com, Tom Chiverton tom.chiverton@ wrote: set selectedRanges ? -- Tom Chiverton Helping to administratively harvest internet appliances 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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Flex 2 and Flash 9 swf integration
Yes, it's possible. Check out SWFLoader. The 9 SWF will be accessible/programmable through the content property of the loader. A basic example:Flex---private function initSWF(event:Event):void{ someSWF.content.addEventListener("clicked",clickHandler);}public function clickHandler(event:Event):void{ var button:String = someSWF.content["clickedButton"]; //do something with the returned data}Flash---var clickedButton:String = "";someButton.addEventListener(MouseEvent.CLICK, clickHandler);function clickHandler(event:Event):void{ clickedButton = event.target.name; dispatchEvent(new Event("clicked"));}HTH...=)P E A C EHasanPS - initSWF is the event handler for the loader's complete event and don't forget to import flash.events.*;On Nov 7, 2006, at 10:14 AM, bitfacepatrick wrote:I'd like to host Flash 9 (all A3) swfs in my Flex 2 app. I'd like topass data between the two as well as have Flex call functions/methodswithin the hosted Flash swf. Is this possible? If so can anyone pointme to some good reference info? Thank you! __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Accessing Flex components via external actionscript - N00b Question :)
Hey John,Aral Balkan has some examples that might prove helpful in your quest...=)http://www.adobe.com/devnet/flex/?tab:quickstart=1P E A C EHasanOn Nov 6, 2006, at 6:18 AM, mts_link wrote:Ok, I'm making the move from Flash/PHP to Flex 2, but have run into a "n00b" question and I have been unable to find an answer.When I use actionscript via the mx:Script tag IN the mxml file, I can access the components without much problem.Example: public function getTestInput(){trace("Value of Text Input: " + testInput.text);}In the MXML page I have a text input with an id of testInput. The moment I move this same code into an external actionscript class, I can no longer access this variable.I know, it certainly has to do with scope, but how do I directly access the mxml components from within my external actionscript class? I have seen mention of parentDocument and parentApplication, but I cannot seem to get this to work for me.Can anyone shed some light on this and perhaps provide an example, or a link to an example?Thanks!John Cornett __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Flex for mac public beta is out!
Thanks guys!! Already importing-n-compiling...=) P E A C E Hasan hank williams wrote: Flexbuilder for the mac beta is out!!! http://labs.adobe.com/technologies/flexbuilder2/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] A file found in a source-path must have the same package structure
I always took that to mean that one of my files, myClass.as for example: class org.thesourcecode.utils.myClass{ public function myClass(){} } } wasn't converted to the new structure: package org.thesourcecode.utils { public class myClass{ public function myClass(){} } } P E A C E Hasan Libby wrote: I am attempting to migrate a very big Flex 1.5 project and this is one of the issues I am hitting. I have stripped out all of the files in the package, and all of the code in the offending file, but still get this message. I can only assume that I am not understanding what package structure FlexBuilder is looking for. I am not using scripts to compile, only FB. I looked in Flex_config.xml and there is no reference to my files, just the lines below: !-- list of path elements that form the roots of ActionScript class hierarchies -- source-path path-element./user_classes/path-element /source-path !-- list of SWC files or directories that contain SWC files -- library-path path-element./user_classes/path-element path-element./libs/path-element path-element./locale/{locale}/path-element /library-path Do the packages need to be under the "[source path] user_classes" folder? Mine are in their own package structure, in WebContent, beside this "[source path] user_classes" entry. So in FB my application looks like this: FlexProject - [source path] user_classes --- add_your_as_and_swc_files_here - folder1 - - folder2 - - - folder3 - - - - folder4 - - - - - folder5 [contains .as files] - - - - - folder6 [contains .as files] - - - - - folder7 [contains .as files] - - - - - folder8 [contains .mxml files] appName.mxml Is there a tutorial somewhere that describes how to set up a structured project using actionscript files, or could someone steer me in the right direction here? Thanks, Libby __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Howto create View Source
Hi Teguh, Are you using FlexBuilder? If so, there's a "publish source" button on the toolbar. It creates the following structure: - srcview (SourceTree, etc) ---source (HTML pages of everything published) HTH...=) P E A C E Hasan Teguh Mualim wrote: Hi, I know viewSourceURL="url" will turn on the "view source" right click. But I have no idea how to create those SouceTree.swf and stuff. How do I create those? Thanks. Teguh __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Datagrid with a dropdown column!
Hi Anurag, Yes, it's possible. What you want is an itemRenderer or itemEditor for that specific DataGrid column or columns. Here's a couple of links that should point you in the right direction: http://livedocs.macromedia.com/flex/2/langref/mx/controls/DataGrid.html http://thesourcecode.org/?p=15 HTH... P E A C E Hasan hasan.otuome.com www.marxmedia.net thesourcecode.org Adobe Certified Professional (Flash MX2004 Developer) sahay17 wrote: Hi all, I am having a datagrid "skillDG" with 2 datagridcolumn as "skillName" and "ratingId" which is picking data from arraycollection. mx:DataGrid id="skillDG" width="100%" height="100% " sortableColumns= "true" dataProvider= "{_model} " editable="true" mx:columns mx:Array mx:DataGridColumn headerText=" Skill Name" dataField="skillNam e" editable="false" / mx:DataGridColumn headerText=" Rating" dataField="ratingId " / /mx:Array /mx:columns /mx:DataGrid But now i want that my datafieldcolumn "ratingId" to be a dropdown with skills namely beginner,intermedia te and expert. Is it possible? Thanks and Regards, Anurag. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Why is import mandatory?
IMO, without importing, the compiler has no way of knowing anything about our custom data types, etc (fully-qualified or not). That's how I look @ it anyway, plus its "best practice" (a/k/a less debugging). If you notice, Flex Builder will auto-insert import statements for you when you make reference to a built-in class without importing first. With custom stuff it's up to us. JM2C...=) P E A C E Hasan hasan.otuome.com www.marxmedia.net thesourcecode.org Adobe Certified Professional (Flash MX2004 Developer) Anas Mughal wrote: Even when you fully qualify it, the compiler does NOT know about that type. It needs to be imported. Thanks. -- Anas Mughal __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Accessing Component in the class
Hi vijay, If you're saying you want to be able to get to a component that's located in the MXML file from your ActionScript Class, you could also do it like this: //some useful imports import mx.controls.TextArea; //import the component into the class import mx.core.Application; //for communicating with the main app //create a variable to reference the component private var _ta:TextArea; //define the variable inside your constructor function _ta = Application.application.myTA; //myTA being the id you gave the component in the MXML And from there you can communicate from the class to the component. HTH... P E A C E Hasan hasan.otuome.com www.marxmedia.net thesourcecode.org Adobe Certified Professional (Flash MX2004 Developer) On 9/4/06, viju kumar comeinsidetochat@ yahoo.com wrote: Hello Group, We need to access the component defined in the mxml into the actionscript file. But we are unable to get the access of the component in class file. How can we access the controls in the class file from mxml file. Please help. Thank You vijay __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] deploying Flex App to the server
Hey zhenya, You can upload the contents of your bin directory to your server and you should be good to go. HTH... P E A C E Hasan hasan.otuome.com www.marxmedia.net thesourcecode.org Adobe Certified Professional (Flash MX2004 Developer) janeminkovich wrote: Hello, I just wrote my Flex web site, compiled it and it runs quite fine on my local machine where I have the development environment. Now I am ready to deploy it to the server ( IP provider - www.divide0. net). I need to know what do I have to install on the IP server in order to be able to run my .swf file. zhenya __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Not finding import mx.remoting.*;
Hey Louie, I don't believe that package exists. I've been using the attached file in my AMFPHP projects. Maybe it can benefit you too. After dropping it in your project root just add the following ActionScript to your app: import flash.net.Responder; public var gateway:RemotingConnection; public var response:Responder; //basic query method public function getData(service:String):void{ response = new Responder(onResult, onFault); //success and failure functions gateway = new RemotingConnection("http://yourdomain.com/flashservices/gateway.php"); //connect to the gateway gateway.call(service, response); //call the service } //basic data modification method public function updateData(service:String, params:Array):void{ response = new Responder(onResult, onFault); //success and failure functions gateway = new RemotingConnection("http://yourdomain.com/flashservices/gateway.php"); //connect to the gateway gateway.call(service, response, params); //call the service } Then, just make those calls when necessary later on in your app. HTH... P E A C E Hasan hasan.otuome.com www.marxmedia.net thesourcecode.org Adobe Certified Professional (Flash MX2004 Developer) Louie Penaflor wrote: Hi, Im trying to do some php remoting from flexbuilder and Im getting a Definition mx.remoting could not be found. I have flash 8 installed do I have to tell flex the directory of the mx libraries are? Thanks and I look forward to your replies. Louie Penaflor Web Software Developer World Council of Credit Unions, Inc. Ph: (608)231-7932 This is a transmission fromWorld Council of Credit Unions, Inc.and contains information that is confidential. If you are not the intended addressee or authorized to receive for the addressee, then any disclosure, copying, distribution, or use of the contents of this message is prohibited. If you have received this transmission in error, please destroy it and notify the sender immediately at the transmitting e-mail address. If you are the intended recipient, please be advised that this e-mail transmission is not encrypted or otherwise protected from potential misappropriation or misuse.World Council of Credit Unions, Inc.expressly disclaims any and all liability for harm resulting from the misappropriation, interception or misuse of the information contained in this transmission. No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.405 / Virus Database: 268.11.7 - Release Date: 8/29/2006 __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___ package { import flash.net.NetConnection; import flash.net.ObjectEncoding; public class RemotingConnection extends NetConnection { public function RemotingConnection( sURL:String ) { objectEncoding = ObjectEncoding.AMF0; if (sURL) connect( sURL ); } public function AppendToGatewayUrl( s : String ) : void { // } } }
Re: [flexcoders] Not finding import mx.remoting.*;
I just remembered I had some basic AMFPHP/Flex 2 tutorials that you could check out. Here's (2) that deal with the PHP side and the Flex side of things. Hopefully they can be of help... http://hasan.otuome.com/?vid=11 http://hasan.otuome.com/?vid=12 P E A C E Hasan hasan.otuome.com www.marxmedia.net thesourcecode.org Adobe Certified Professional (Flash MX2004 Developer) Louie Penaflor wrote: Thanks for the help. How can you pass paramaters for the service? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] How to bring a combo box component inside the dataGrid Component
Here's another link that might also shed some light on the subject. HTH... http://thesourcecode.org/?p=15 P E A C E Hasan Marx Media www.marxmedia.net hasan.otuome.com thesourcecode.org Adobe Certified Professional (Flash MX2004 Developer) __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] AS3 :: SoundChannel for NetStream?
In AS2 we had... someMovieClip.attachAudio(someNetStream); var sound:Sound = new Sound(someMovieClip); but that's not an option anymore because attachAudio() was removed. The docs mention using DisplayList via addChild() but weren't explicit about it. Searching has turned up similiar questions but no answers. Thanks in advance for any help... __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Adobe Developer Week recordings
Thanks to Ted Patrick =) http://www.onflex.org/ted/2006/06/adobe-developer-week-sessions.php __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___