[flexcoders] Flashbuilder FlexUnit problem
Hi All, I created a SWC project using flexmojos 3.5 in FlashBuilder 4 beta2 on a Windows XP machine. I managed to create testcases and run them in FlashBuilder. Today I added resource bundles. They are located in /src/main/resources/locales (accordingly to Maven project structure). I added the compiler settings so the compiler is able to find my resource bundle files. The compiler seems to find the bundle files, no error is given. But when I try to run the FlexUnitApplication I always get the exception the resource bundles can't be found. Does anybody know where to set the resource bundle path so I can run my unit-tests? Thank you in advance, Christoph
[flexcoders] Smallest module file sizes possible...
Hi, I am trying to get my swc/swf file sizes to be as small as possible. Currently my site has a main swf that acts as the shell of navigation loads modules for each page. I have switched the main and module SWFs to use RSLs, this has helped. Now I am looking at the size of swc libraries that are included in the main and module SWFS. Ideally I would like to make the module SWFs as small as possible so that the page loading is fast. We have a nice PreLoader, so we don't mind making the users wait for the login if the main.swf is fatter. My question is, if I used -compiler.include-libraries for the common swc library references in the main swf, then used -compiler.external-library-path in the module swfs, should this work? So I've tried it. The main.swf goes from ~800kb to 1.6kb is larger, and the module SWFs are about abou ~100kb but I get class not found errors when the module.swf's load. Is this even possible? Should I debug this more or is there a better setup? thanks in advanced. -al
[flexcoders] Image contentWidth
How do I detect when an Image has changed so that I can read the contentWidth of it. An image has already loaded previously so Creation Complete has been done with a different image?
RE: [flexcoders] Smallest module file sizes possible...
Don't worry about linking them externally. Optimise your module swf against the main swf, and it'll strip out any classes which will have already been loaded, while leaving the ones that the module requires. Note that you have to be very careful of your application domains when doing this, loading the module into a different domain will result in class not found Errors. Gk. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of alpdhuez Sent: 25 January 2010 06:45 To: flexcoders@yahoogroups.com Subject: [flexcoders] Smallest module file sizes possible... Hi, I am trying to get my swc/swf file sizes to be as small as possible. Currently my site has a main swf that acts as the shell of navigation loads modules for each page. I have switched the main and module SWFs to use RSLs, this has helped. Now I am looking at the size of swc libraries that are included in the main and module SWFS. Ideally I would like to make the module SWFs as small as possible so that the page loading is fast. We have a nice PreLoader, so we don't mind making the users wait for the login if the main.swf is fatter. My question is, if I used -compiler.include-libraries for the common swc library references in the main swf, then used -compiler.external-library-path in the module swfs, should this work? So I've tried it. The main.swf goes from ~800kb to 1.6kb is larger, and the module SWFs are about abou ~100kb but I get class not found errors when the module.swf's load. Is this even possible? Should I debug this more or is there a better setup? thanks in advanced. -al
RE: [flexcoders] Image contentWidth
Add an event listener in for the complete event. It gets fired once the content is loaded, so it'll fire each time, unlike creationComplete. http://www.adobe.com/livedocs/flex/3/langref/mx/controls/SWFLoader.html# event:complete Gk. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of criptopus Sent: 25 January 2010 15:39 To: flexcoders@yahoogroups.com Subject: [flexcoders] Image contentWidth How do I detect when an Image has changed so that I can read the contentWidth of it. An image has already loaded previously so Creation Complete has been done with a different image?
Re: [flexcoders] Image contentWidth
On Monday 25 Jan 2010, criptopus wrote: How do I detect when an Image has changed so that I can read the contentWidth of it. An image has already loaded previously so Creation Complete has been done with a different image? It'll dispatch the an event. Have you checked the docs ? -- Helping to paradigmatically conquer enterprise extensible granular channels as part of the IT team of the year 2010, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: Datagrid itemrenderer for adding multiple linkbuttons in same gridcolumn
I thionk you are over thinking this. All you need to do is extend the class you wish to use as your item renderer. In the extended class, either add an event listener or override a handler. In this case, that class is LinkBar. The LinkBar class has a clickHandler method already so you override that method to do what you want. So, an Item Renderer based on LinkBar could look like: package Renderers { import flash.events.MouseEvent; import flash.net.*; import mx.controls.LinkBar; public class LinkBarRenderer extends LinkBar { public function LinkBarRenderer() { super(); } override public function set data(value:Object):void { super.data = value; if(value != null) { var linksArray:Array = data.WebSites.split(,); dataProvider = linksArray; } } override protected function clickHandler(event:MouseEvent):void { navigateToURL(new URLRequest(http://; + event.target.label), '_blank'); } } } HTH Steve --- In flexcoders@yahoogroups.com, aramsdell2000 aramsdell2...@... wrote: I have put aside the thoughts of making fancy hyperlinks, now I am just trying to understand events in the itemrenderer. I am ashamed to say that even after searching this subject in the forum and googling it, I still find myself struggling. I ended up trying a LinkBar as Tino suggested in the itemrenderer: else if (column.dataField == monitorlocations){ var linksArray:Array = String((data[monitorlocations])).split(\n); var linkbarItemRendererFactory:ClassFactory = new ClassFactory(LinkBar); linkbarItemRendererFactory.properties = {dataProvider:linksArray, direction:vertical,enabled:true }; column.itemRenderer = linkbarItemRendererFactory; column.setStyle(verticalGap,5); column.addEventListener(ItemClickEvent.ITEM_CLICK, linkBarEventHandler); Problem is that it seems like the click event on the button on the linkbar never makes it to the linkBarEventHandler which is a function inside this itemrenderer. I would at least think that this event would fire but setting a breakpoint in this eventhandler fuction, I can tell it never makes it there. The datagrid itemclick event doesn't even get called like it does in the other columns, which I think is a good indication that I can bubble up the linkbar clickItem event, I just can't figure out what I am doing wrong or even how to capture in a debug session what happens on that click event. One post I read says : Re: [flexcoders] Listem to an event sent by a DataGrid ItemRenderer In your item renderer, if you have control over the TimerEvent creation, set the bubbles parameter to true. If you do not, you may want to catch the event in the renderer and re-dispatch a new one with bubbles set to true. This will allow your event to bubble out, up the parental chain until it reaches your application. Then all you need to do is register for the event at the Application level. Can I set the bubbles property to true somehow using the ItemRendererFactory approach I have above? If I can't, theoretically I can dispatch the event from the eventhandler (if I could get it to fire) and then listen for it in the file that my datagrid is created in. Alternative to bubbling up an event, maybe somehow I can add an eventlistener that calls a function using owner.document.myFunction? --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: As far as I know the code is open source but you could add a comment at his blog (http://www.jabbypanda.com/blog/?p=28). You will either have to disable the datagrids click event handler on that specific column or figure out a way to put each link in its own column. --- In flexcoders@yahoogroups.com, aramsdell2000 aramsdell2000@ wrote: Actually I am not so sure how this will work in a datagrid. One datagrid cell would have multiple hyperlink buttons. Right now the click event for the datagrid behaves differently depending on which column you click. In another column I have one link button per row. But for this one, I would have several link buttons in one row's cell. Do I do nothing on the datagrid's click event and then the listerner events for the links would take over? Haven't tried anything yet, just thinking about how to approach it. Thanks! --- In flexcoders@yahoogroups.com, aramsdell2000 aramsdell2000@ wrote: Oh wow, this looks great! Thank you! This looks like what I want to do, just curious, how do I cite it if I use it/ modified version of it?? I can add a link to his website and blog in the code? --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: Here is a quick and dirty example using the hyperlink component from jabbypanda (http://jabbypanda.com/labs/hyperLink/srcview/index.html): ?xml version=1.0 encoding=utf-8?
Re: [SPAM] [flexcoders] Reading URL arguments from within initApp()
The following should help you out: http://www.flexer.info/2007/11/28/access-the-query-string-variables-from-flex-application/ --- In flexcoders@yahoogroups.com, Penny Laus pennyl...@... wrote: Could anyone point me to a working example of customized wrapper that inserts URL parameters into FlashVars? As it is, I've had zero luck tweaking the default template. In fact, it seems like its HTML is invalid (?) The concept seems clear enough, as explained by Tracy, in the docs and elsewhere: * Update FlashVars with the name/value pairs from the URL. * Read the name/value pairs out in initApp() using Application.application,parameters.NameGoesHere Sadly, I'm not succeeding at implementation. Pointers much appreciated!
[flexcoders] Flex session error
Has anybody ever seen this before? Just upgraded to CF9 if that helps. faultString (String): Detected duplicate HTTP-based FlexSessions, generally due to the remote host disabling session cookies. Session cookies must be enabled to manage the client connection correctly.
[flexcoders] Re: Loading videos/sound in Flex (web) out of a ByteArray
This article may be of some use for Sound: http://www.adobe.com/devnet/flash/articles/dynamic_sound_generation/index.html --- In flexcoders@yahoogroups.com, Mark auroraborea...@... wrote: Hello, I am working on a flex project for my job, and we have seem to of hit a road block. we have two parts to our project, one part which is written in AIR that is used to create case files, which is really just a zip with a XML file and 'assets', as in pictures, text, audio, video, hyperlinks, and whatever else we may want to use in the future The way the zip library we are using works is that we get the individual file information out of the zip by calling a function which returns a ByteArray representation of the data However, our problem is using the limitations of the Flash/Flex Web-browser plugin (not air) which does not have any of the file functions, so we cannot save the files we extract from the zip to the hard drive, (which we do with the AIR portion of the project), we are forced to keep them as ByteArrays. But, we are having problems with a part of our program which previews these assets, namely Audio and Video files in the browser, it appears that the VideoDisplay and Sound classes do not accept ByteArrays, but only streams or a URLbut we cannot give it a URL because we just don't have one, the files are in memory as a ByteArray object. Is there any cool way to convert a ByteArray into a Sound /VideoDisplay that anyone knows of? If not, we are going to have to resort to using an external php script to do the work of unzipping files on the server, which defeats the purpose of having it all in one file anyway. ~Mark
[flexcoders] my HTTPService POSTs are showing up as GETs in FB4 beta 2: is POST implemented?
I would be grateful if someone could confirm that HTTPService POST actually works in FB4 beta 2.When I set the method = POST, the header shows up as a GET in the Fiddler traffic monitor, and so the parameters I'm trying to send to the remote server never arrive; only the name/value pairs in the query string arrive at the destination URL. Thanks
[flexcoders] Flex Color looks different with Photoshop color?
Hi, I set the border color for panel like this. mx:Panel borderColor=#FF But the color in Flex looks different with same color code in photoshop. I select the color code from photoshop and set it to Flex.but the colors look different. How to fix this color different Thanks Mark
[flexcoders] Re: How to set color?
I seems the color code have two format,what is the different? Thanks Mark --- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote: Flex set color use 0xff or #ff. I confuse the two format,when I have to use 0xff and when I have to use #ff. Please help Thanks Mark
Re: [flexcoders] Re: How to set color?
#ff is the CSS color format while 0xff is the hexadecimal number format in ActionScript and this number can represent color value. The problem with #ff is that it's not ActionScript. There shouldn't be any problem if you use 0xff in AS or MXML and #ff only in CSS. Roman On Mon, Jan 25, 2010 at 11:49 PM, markflex2007 markflex2...@yahoo.comwrote: I seems the color code have two format,what is the different? Thanks Mark --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, markflex2007 markflex2...@... wrote: Flex set color use 0xff or #ff. I confuse the two format,when I have to use 0xff and when I have to use #ff. Please help Thanks Mark
[flexcoders] Re: problems with firefox 3.6 on a mac
--- In flexcoders@yahoogroups.com, gwgeiger947 g...@... wrote: Has any one else experienced issues with double clicking when using Firefox 3.6 on a mac ? I can't get it to work anywhere. I have tried other people's example sites to show double clicking and it works in safari, but not on the new firefox. any ideas, help, suggestions ? I have also found this problem with our application's datagrids, specifically. The doubleclick event doesn't ever get triggered, as far as I can tell. I'll post back if I find more information.
RE: [flexcoders] Re: problems with firefox 3.6 on a mac
The Player team is reproducing this issue and is investigating. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Philip Sent: Monday, January 25, 2010 2:41 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: problems with firefox 3.6 on a mac --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, gwgeiger947 g...@...mailto:g...@... wrote: Has any one else experienced issues with double clicking when using Firefox 3.6 on a mac ? I can't get it to work anywhere. I have tried other people's example sites to show double clicking and it works in safari, but not on the new firefox. any ideas, help, suggestions ? I have also found this problem with our application's datagrids, specifically. The doubleclick event doesn't ever get triggered, as far as I can tell. I'll post back if I find more information.
[flexcoders] Re: Flex 4 Autocomplete
Here is an AutoComplete component built in Flex 4 using the Spark architecture: http://flashcommander.org/flex/flex-4-autocomplete --- In flexcoders@yahoogroups.com, bobby_world bobby_wo...@... wrote: Anyone know of an Autocomplete component for Flex 4? I want to use it with a TextInput control. I want something imilar to the Google search box in Firefox. Bobby
Fw: [flexcoders] Re: [HELP] Little help with parsing datas
Thanks to all who helped me, I really appreciate it. - Forwarded Message From: Cory corymcma...@gmail.com To: flexcoders@yahoogroups.com Sent: Sunday, January 24, 2010 4:13:57 Subject: [flexcoders] Re: [HELP] Little help with parsing datas Here's what I would do. In your loop: for(var i:int = 0; irows.length; i++) { //you would include an if statement here to not include lines that begin with // var columns:Array = rows[i].split( ,);//split each row into columns temp.push({id: columns[0] ,name:columns[ 1],position: columns[2] }); } I would add this: for(var i:int = 0; irows.length; i++) { //you would include an if statement here to not include lines that begin with // var row:String = rows[i]; if (row.substr( 0,2) == //) { continue; } var columns:Array = rows[i].split( ,);//split each row into columns temp.push({id: columns[0] ,name:columns[ 1],position: columns[2] }); } Hope that helps. --- In flexcod...@yahoogro ups.com, ~[TM3]~[Dev] At0ng[/Dev] ~[/TM3]~ atong...@... wrote: I recently have this code from gotoandlearnforums to parse datas separated with commas from a text file but the problem is I dunno (I really had no idea how) how to exclude rows that begins with a double slashes (//), hope someone can help me with this. Parsing datas is ok but excluding rows is not private function init(e:Event) :void { //load the data var loader:URLLoader = new URLLoader(new URLRequest( stuff.txt )); loader.addEventList ener(Event. COMPLETE, parseData); } private function parseData(e: Event):void { var txt:String = e.target.data; var rows:Array = txt.split(\ r\n);//split the string into rows var temp:Array = new Array(); for(var i:int = 0; irows.length; i++) {//you would include an if statement here to not include lines that begin with // var columns:Array = rows[i].split( ,);//split each row into columns temp.push({id: columns[0] ,name:columns[ 1],position: columns[2] }); } ac = new ArrayCollection( temp) Open emails faster. Yahoo! recommends that you upgrade your browser to the new Internet Explorer 8 optimized for Yahoo! Get it here! http://downloads.yahoo.com/sg/internetexplorer/
[flexcoders] MenuEvent causes 1046 error
I have a menu bar component mx:MenuBar id=mainMenu labelField=@label click={MenuEvent(event)} itemClick={MenuItemEvent(event)} Everytime I create a handler like this: private function MenuItemEvent(e:MenuEvent):void I get a Type was not found or was not a compile-time constant: MenuEvent But, I've explicitly imported this event: import mx.events.MenuEvent; Am I going mad? What am I doing wrong? I'm using standalone Flex Builder 3.0.2.214193 on Windows XP- not the Eclipse plug-in. Please help, William Chadwick
[flexcoders] Re: How to set color?
Use the hexadecimal preceded by 0x in Flex and by # in Photoshop. Flex example: backgroundColor=0xFF00FF Photoshop example: #FF00FF William Chadwick
[flexcoders] Re: Smallest module file sizes possible...
Thanks for the reply. So I am optimizing the modules, except they are in a different project from the main app. My project structure is like this: 1 Main swf app for login/header/footer/navigation 6 common swc libraries 10+ Module projects Can I still optimize modules for an application if there are in different projects from the command line? We are using FlexMojos, but I could do a command line/ant build of the modules if necessary. thanks. -al --- In flexcoders@yahoogroups.com, Gregor Kiddie gregor.kid...@... wrote: Don't worry about linking them externally. Optimise your module swf against the main swf, and it'll strip out any classes which will have already been loaded, while leaving the ones that the module requires. Note that you have to be very careful of your application domains when doing this, loading the module into a different domain will result in class not found Errors. Gk. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of alpdhuez Sent: 25 January 2010 06:45 To: flexcoders@yahoogroups.com Subject: [flexcoders] Smallest module file sizes possible... Hi, I am trying to get my swc/swf file sizes to be as small as possible. Currently my site has a main swf that acts as the shell of navigation loads modules for each page. I have switched the main and module SWFs to use RSLs, this has helped. Now I am looking at the size of swc libraries that are included in the main and module SWFS. Ideally I would like to make the module SWFs as small as possible so that the page loading is fast. We have a nice PreLoader, so we don't mind making the users wait for the login if the main.swf is fatter. My question is, if I used -compiler.include-libraries for the common swc library references in the main swf, then used -compiler.external-library-path in the module swfs, should this work? So I've tried it. The main.swf goes from ~800kb to 1.6kb is larger, and the module SWFs are about abou ~100kb but I get class not found errors when the module.swf's load. Is this even possible? Should I debug this more or is there a better setup? thanks in advanced. -al
Re: [flexcoders] MenuEvent causes 1046 error
The embarrassing solution is that I named a function with the Adobe class name MenuEvent. My bad. William Chadwick On 1/25/10, williamchadwick wchadw...@gmail.com wrote: I have a menu bar component mx:MenuBar id=mainMenu labelField=@label click={MenuEvent(event)} itemClick={MenuItemEvent(event)} Everytime I create a handler like this: private function MenuItemEvent(e:MenuEvent):void I get a Type was not found or was not a compile-time constant: MenuEvent But, I've explicitly imported this event: import mx.events.MenuEvent; Am I going mad? What am I doing wrong? I'm using standalone Flex Builder 3.0.2.214193 on Windows XP- not the Eclipse plug-in. Please help, William Chadwick
[flexcoders] How to manipulate legend in a chart
Hi All, I tried all kinds of staff to dynamically turn on/off a series of line charts (I did not create the legend separately). The series can be turned on/off, but not the legend. How should I manipulate the legend when I only know the LineSeries? The class LineSeries only has an array of LegendData which is read-only and cannot setVisible (or visible). Can someone help? Thanks, Pat
[flexcoders] Flex/PHP securing functions
I've worked a lot with coldfusion and flex using cflogin/roles. I have a project that I'm working on now that the backend will be done in PHP. Since this is a pet project I'm using flash builder 4 to learn before the release (And I'm really liking it!) I've found documentation with connecting flex to php through an httpservice call. I modified this using a php class/function call instead of calling a httpservice. However, this doesn't protect the php functions on the server. Is there a method like the coldfusion cflogin/roles in php? I'm assuming that session information is not available in PHP (as it isn't in coldfusion as well). Thanks Scott
Re: [SPAM] [flexcoders] Reading URL arguments from within initApp()
On Tue, Jan 26, 2010 at 4:36 AM, valdhor valdhorli...@embarqmail.comwrote: The following should help you out: http://www.flexer.info/2007/11/28/access-the-query-string-variables-from-flex-application Thanks very kindly, that did the trick!
RE: [SPAM] [flexcoders] MenuEvent causes 1046 error
I bet it is because you used MenuEvent for your click handler function name and there is a name collision with the built-in MenuEvent. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of williamchadwick Sent: Monday, January 25, 2010 1:26 PM To: flexcoders@yahoogroups.com Subject: [SPAM] [flexcoders] MenuEvent causes 1046 error I have a menu bar component mx:MenuBar id=mainMenu labelField=@label click={MenuEvent(event)} itemClick={MenuItemEvent(event)} Everytime I create a handler like this: private function MenuItemEvent(e:MenuEvent):void I get a Type was not found or was not a compile-time constant: MenuEvent But, I've explicitly imported this event: import mx.events.MenuEvent; Am I going mad? What am I doing wrong? I'm using standalone Flex Builder 3.0.2.214193 on Windows XP- not the Eclipse plug-in. Please help, William Chadwick
Re: [flexcoders] Re: Smallest module file sizes possible...
You can use link-reports from more than one app, and you can explicitly name classes to be kicked out using –externs. If you’re wrong and the class was needed, you’ll get an error at runtime. On 1/25/10 11:34 AM, alpdhuez alpdh...@yahoo.com wrote: Thanks for the reply. So I am optimizing the modules, except they are in a different project from the main app. My project structure is like this: 1 Main swf app for login/header/footer/navigation 6 common swc libraries 10+ Module projects Can I still optimize modules for an application if there are in different projects from the command line? We are using FlexMojos, but I could do a command line/ant build of the modules if necessary. thanks. -al --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Gregor Kiddie gregor.kid...@... wrote: Don't worry about linking them externally. Optimise your module swf against the main swf, and it'll strip out any classes which will have already been loaded, while leaving the ones that the module requires. Note that you have to be very careful of your application domains when doing this, loading the module into a different domain will result in class not found Errors. Gk. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of alpdhuez Sent: 25 January 2010 06:45 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Smallest module file sizes possible... Hi, I am trying to get my swc/swf file sizes to be as small as possible. Currently my site has a main swf that acts as the shell of navigation loads modules for each page. I have switched the main and module SWFs to use RSLs, this has helped. Now I am looking at the size of swc libraries that are included in the main and module SWFS. Ideally I would like to make the module SWFs as small as possible so that the page loading is fast. We have a nice PreLoader, so we don't mind making the users wait for the login if the main.swf is fatter. My question is, if I used -compiler.include-libraries for the common swc library references in the main swf, then used -compiler.external-library-path in the module swfs, should this work? So I've tried it. The main.swf goes from ~800kb to 1.6kb is larger, and the module SWFs are about abou ~100kb but I get class not found errors when the module.swf's load. Is this even possible? Should I debug this more or is there a better setup? thanks in advanced. -al -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [SPAM] [flexcoders] MenuEvent causes 1046 error
Tracy, Yup. William On Mon, Jan 25, 2010 at 11:00 PM, Tracy Spratt tr...@nts3rd.com wrote: I bet it is because you used “MenuEvent” for your click handler function name and there is a name collision with the built-in MenuEvent. Tracy Spratt, Lariat Services, development services available -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *williamchadwick *Sent:* Monday, January 25, 2010 1:26 PM *To:* flexcoders@yahoogroups.com *Subject:* [SPAM] [flexcoders] MenuEvent causes 1046 error I have a menu bar component mx:MenuBar id=mainMenu labelField=@label click={MenuEvent(event)} itemClick={MenuItemEvent(event)} Everytime I create a handler like this: private function MenuItemEvent(e:MenuEvent):void I get a Type was not found or was not a compile-time constant: MenuEvent But, I've explicitly imported this event: import mx.events.MenuEvent; Am I going mad? What am I doing wrong? I'm using standalone Flex Builder 3.0.2.214193 on Windows XP- not the Eclipse plug-in. Please help, William Chadwick