Re: [flexcoders] FlexUnit asserError()?

2007-05-30 Thread Angus Johnson
Douglas, One way to test for failure: try { ... // code that should throw exception fail('Exception was not thrown'); } catch { // test exception type / message etc is what is expected } hth Angus On 31/05/07, Douglas McCarroll [EMAIL PROTECTED] wrote: Hi All, I'd like to write

Re: [flexcoders] Datagrid with bound dataProvider not updating.

2007-05-29 Thread Angus Johnson
arrayCollection or array? Try calling refresh() after the change. On 29/05/07, beecee1977 [EMAIL PROTECTED] wrote: Hi, I have a datagrid with the dataProvider bound to an array of objects. If I remove one of the items from the array the datagrid doesn't update to reflect this. Debugging

Re: [flexcoders] DownloadProgressBar

2007-04-12 Thread Angus Johnson
Hi Gautam, You're going to have to write your own draw methods. Look at the createChildren() and drawProgressBar() methods of DownloadProgressBar as a guide. The styling is hardcoded into those methods. You could copy and paste, override and customise with your own styling. hth Angus On 12

Re: [flexcoders] proxying via named destinations - coldfusion support?

2007-04-09 Thread Angus Johnson
I think (and someone will correct me if I am wrong) but the useProxy is only relevant to Flex Data Services. So no you cannot proxy in the way you suggest. You can of course set up a webserver of remoteObject on the CF side which would use CFHTTP etc to proxy. On 05 Apr 2007 15:42:43 -0700, P

Re: [flexcoders] How to mute the sound from a loaded swf

2007-03-29 Thread Angus Johnson
I would be interested in any workaround as well. I hit the same problem as you... a shell loading multiple third party applications. What I ended up doing was asking developers to hang a bridging object off their application which contains methods such as start, terminate, suspend etc. For

Re: [flexcoders] Coldfusion remoting, how to return joined query as objects

2007-03-22 Thread Angus Johnson
My preference is to return an array of value objects, so yes I hardly ever return a query unless it's going to end up in a pretty dumb list. I'm careful with the number of records returned from a query though. You don't want to slavishly build value objects for thousands of records. Use

Re: [flexcoders] Apollo Now Live on Labs | http://labs.adobe.com/technologies/apollo/

2007-03-19 Thread Angus Johnson
no wavering on my part! ...though you might need to supply some Berocca at your BOF Andrew ;) On 19/03/07, Andrew Muller [EMAIL PROTECTED] wrote: And don't forget that both Mike Downey and Mike Chambers are presenting an Apollo opening keynote at webDU here in Sydney on Thursday so if you're

Re: [flexcoders] Re: Inconsistent Runtime Error

2007-03-02 Thread Angus Johnson
Is it possible itemInChartState doesn't exist yet? Thanks for the help. Tyler --- In flexcoders@yahoogroups.com, Angus Johnson [EMAIL PROTECTED] wrote: That error indicates that your are referencing something that doesn't exist yet. You need to set listeners of the swfloader(s) to ensure

Re: [flexcoders] Inconsistent Runtime Error

2007-03-01 Thread Angus Johnson
That error indicates that your are referencing something that doesn't exist yet. You need to set listeners of the swfloader(s) to ensure that they are loaded and complete. See the doc's which has an example of setting them. Wait for the complete event then fire your charting. Post back if you

Re: [flexcoders] URL Link in Flex Application

2007-02-26 Thread Angus Johnson
navigateToURL() method is what you're after. There is an example included in the Flex doc's loading a url to a new window after a button click. On 24/02/07, Lisa Lee [EMAIL PROTECTED] wrote: Can you tell me how to be able to have a user click on a link (button, whatever) from within a Flex

[flexcoders] PrintDataGrid image not loaded

2007-02-25 Thread Angus Johnson
Ok here's one for you all. I have a datagrid with a column containing a custom itemRenderer. This renderer displays an image loaded off a remote server. When I display the dgrid to the screen the image appears fine. Now when I use a PrintDataGrid object with the same renderer no image appears

Re: [flexcoders] Re: Source not found error when debugging

2007-01-18 Thread Angus Johnson
I use to see this occasionally in FB 2.0. What you can do is add the missing source to your build path in your project properties. Error seems to go away. On 18/01/07, Yan Bilik [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, rumpleminzeflickr [EMAIL

Re: [flexcoders] Re: IFlexModule

2007-01-11 Thread Angus Johnson
Hi Greg, Hmmm... I registered alltogo.com last weekend. It was de-registered in December. did check its previous content which was the usual directory advertising you see on parked domains.. It must be on someone's 'beware' list. Another lesson a more thorough background check. What tells

Re: [flexcoders] Re: IFlexModule

2007-01-10 Thread Angus Johnson
I would say that you're picking up the old framework. Check your FRAMEWORKS setting in Eclipse... http://allthego.com/index.cfm/2007/1/11/Flex-Framework-Location HTH Angus On 11/01/07, Tom Sobut [EMAIL PROTECTED] wrote: Hi Jason, I have the Mac version. Check that all three .as files

[flexcoders] Flex 2.0.1 on Eclipse 3.2.1 - cool

2007-01-08 Thread Angus Johnson
Hi All, I've just blogged notes that I took during my run through of setting up Flex Builder 2.0.1 with Eclipse 3.2.1. http://allthego.com. It might be helpful to someone. I am very happy to say that the 20 odd Flex projects that I had in Eclipse 3.1 all imported and compiled in Eclipse 3.2

Re: [flexcoders] remoting problemen after 2.0.1 installation

2007-01-08 Thread Angus Johnson
For those using a config file for your compiler args just set it as below: flex-config compiler accessibletrue/accessible localeen_US/locale context-root/context-root ... Actually if you wanted to you could modify flex-config.xml in Adobe\Flex Builder 2.01

Re: [flexcoders] Can't get rid of error with 2.0.1 update.

2007-01-08 Thread Angus Johnson
Double check that your projects are pointing at Flex SDK 2.0.1 libraries. I had the same when running some Ant builds pointed at the old 2.0 libs. HTH Angus On 06/01/07, Allen Riddle [EMAIL PROTECTED] wrote: I upgraded to the 2.0.1 update today, and now I'm getting 100+ errors saying:

Re: [flexcoders] about loading multiple swfs

2007-01-08 Thread Angus Johnson
You're possibly missing a statement setting the variable holding the swfloaders to null. It's easy to miss a listener particularly if you are re-parenting swfloaders around the displaylist. Here's how I've done it... no memory problems. Remember garbage collection is not immediate. If you

Re: [flexcoders] Flex cannot find cfc components via mappings

2006-12-14 Thread Angus Johnson
Hi Stephen, Yep you need to cycle coldfusion whenever you change services config. Also remember to recompile your flex app. Don't move WEB-INF/flex. IIS should work just fine. Generally you will publish your compiled Flex application swfs into inetpub/wwwroot (the web server root). hth Angus

Re: [flexcoders] LoaderInfo Class

2006-12-14 Thread Angus Johnson
Can you use ApplicationComplete event instead?? On 14/12/06, z4guyuk [EMAIL PROTECTED] wrote: Hi I have a class that is set up in the creationComplete handler of my main App. In this class I set up url's to be used when loading data from the server. When I am testing locally I need to use

Re: [flexcoders] TabNavigator and SWFLoaders problem

2006-12-14 Thread Angus Johnson
Hi Nick, I don't if this will help you but one thing that I found with loaded swf's is that if you explicitly set height and width on the loader and then attempt to apply percentWidth or percentHeight it will fail to render. If i set height=100, width=100 then percentWidth=50 and

[flexcoders] flex charting watermark in loaded swf's

2006-11-30 Thread Angus Johnson
ok I'm stumped... I have an application which loads in sub applications. When the sub application has charting the watermark appears. I'm using mxmlc via an ant task to compile the main app with all libraries set to be included (the whole lot is compiled in, including charts.swc). The sub

Re: [flexcoders] Problems with the SWFLoader

2006-11-29 Thread Angus Johnson
Hi Yaison, Can you get to the movie content in your code (I haven't used the utube library)? I've found that you have to explicitly stop sounds and video otherwise they continue to play even when unloaded. How are you sizing the swfloader? It's a little more flexible if you declare the class in

Re: [flexcoders] mx.automation

2006-11-23 Thread Angus Johnson
I'm not sure this will answer your question but have you looked at the framework ant builds in the frameworks directory. Maybe if you look at those you'll get a hint. Perhaps you have to include the Assets.swf as well? hth Angus On 24/11/06, Bjorn Schultheiss [EMAIL PROTECTED] wrote: Hi,

Re: [flexcoders] Why shouldnt you use a specific event type for a command.execute in cairngorm?

2006-10-30 Thread Angus Johnson
Beside the whole weak versus strong type checking debate here's a few...Generalises the command execute method, for example a command may take several types of event objects. Some logic within the execute method would respond programatically to what was given. I know I have a few that do that.

Re: [flexcoders] Re: [Flex 2] Strange behaviour when using RSLs

2006-10-09 Thread Angus Johnson
bumpI think there are a few of us looking to dynamically link framework swf's (as rsl's) into our work. Any further info?Is the RSL/linker guy back? :)ThanksAngus On 29/09/06, Mike Morearty [EMAIL PROTECTED] wrote: I don't think this is necessary. I gave a

Re: [flexcoders] Compiler problem markers...

2006-10-09 Thread Angus Johnson
Hi Ken, Are you running eclipse 3.1.1 or 3.1.2? They're the supported versions. I had 3.2 running for a while and gave up because of the compiler problems. I occassionally get the same in 3.1.2 and a project clean seems to do the trick or try simply closing the project and reopening. You can

Re: [flexcoders] Re: [Flex 2] Strange behaviour when using RSLs

2006-10-09 Thread Angus Johnson
two versions of it, or some other similar option. But for now, those are the options. Hope this helps. -Mike --- In flexcoders@yahoogroups.com, Angus Johnson [EMAIL PROTECTED] wrote: bump I think there are a few of us looking to dynamically link framework swf's (as rsl's) into our work

Re: [flexcoders] Re: Error when trying to implement Flex PhotoViewer as shown on Adobe site

2006-09-21 Thread Angus Johnson
Hi Justin, You need to add the strings.properties file to the source path in Flex Builder. You have to be pretty explicit eg...C:\Sandbox\FlexPhotoViewer\src\locale\en_USCheersAngus On 21/09/06, justin.aloha [EMAIL PROTECTED] wrote: The error I get upon

Re: [flexcoders] Re: Error when trying to implement Flex PhotoViewer as shown on Adobe site

2006-09-21 Thread Angus Johnson
--- In flexcoders@yahoogroups.com, justin.aloha [EMAIL PROTECTED] wrote: I figured it out! Thanks very much for your help! --- In flexcoders@yahoogroups.com, Justin Cook justin.aloha@ wrote: Where do you do enter this in? - Original Message From: Angus Johnson gusjohnson

Re: [flexcoders] Problems debugging

2006-09-15 Thread Angus Johnson
You could always delete the project without! deleting the files and then recreating the project. It's worked for me. It's not uncommon for me to have to restart FB (the plugin version) several times a day.Also double check the .actionScriptProperties file. If you've moved an application then FB

Re: [flexcoders] Hierarchical Cairngorming!????

2006-09-15 Thread Angus Johnson
I'm quite interested in this topic as well. I have multiple cairngorm sub applications developed as encapsulated modules which are loaded at runtime by a shell. At the moment I am shuttling events between the shell and the child app's through some interface objects. In a child app I have a

[flexcoders] systemmanager root display

2006-09-12 Thread Angus Johnson
I'm loading a bunch of Flex 2 applications into a main application using a custom loader. I end up with an array of SystemManagers. I can call hooks in the sub applications with no problems. Without using SWFLoader how do I get the sub application into the main application display? Below is the

[flexcoders] dragmanager - swfloader as dragproxy

2006-08-07 Thread Angus Johnson
Hi everyone, I was wondering if anyone has successfully used a swfloader instead of an image for a dragproxy. I've been playing around with it but have come up against a 1009 error (below). My code passes the swfloader to the dragmanager only after the complete event has fired. When running in

Re: [flexcoders] setting value on cfc invoke another method on cfc

2006-07-21 Thread Angus Johnson
Session scope. Coldfusion maintains session for remoting as it does for http requests from html apps. How would you hold normally hold session data? Maybe a facade object?On 21/07/06, Doug Arthur [EMAIL PROTECTED] wrote: How would you invoke one method on a

Re: [flexcoders] Run as Flex App - No complaints - No compile

2006-07-19 Thread Angus Johnson
Cameron, If you have compile time errors Flex Builder wont publish to the bin directory. Forces you to fix them. If you run the app it will just pull out the previous working version. If there are no compile time errors and still not getting a newer version clean the project and check your

Re: [flexcoders] Re: SWFLoader how to access host application

2006-07-19 Thread Angus Johnson
You can use Application.application to get a reference to the host application. This is the top tier application so if you have nested a stack of SWF's this is the shortest way to get to the top. parentapplication gets the immediate parent but you can also step up the hierarchy using that

Re: [flexcoders] Possible Flex Builder internal error

2006-07-11 Thread Angus Johnson
hmmm... small projects debug ok but larger ones throw back those pesky marker errors. It could be related to projects with linked sources and libraries from what i've seen.Anyway debug runs fine, you just have to click away the marker errors. Doesn't seem to be any other impact so far. Dunno,

[flexcoders] Adobe Labs - Actionscript Libraries Final versions?

2006-07-11 Thread Angus Johnson
Hi, Anyone know if there is a final version of the as libraries due soon, ie., Adobe corelib, odeo, youtube etc?corelib wont compile on Flex final due to some syntax, external definition errors and changed package names. Would be handy to have updates as I hope to experiment with them as rsl's.

Re: [flexcoders] Adobe Labs - Actionscript Libraries Final versions?

2006-07-11 Thread Angus Johnson
may go ahead and post with the old docs (APIs are the same, but the doc style is new). I could then update the docs to the new style in the future. Thoughts? mike chambers [EMAIL PROTECTED] On Jul 11, 2006, at 3:31 PM, Angus Johnson wrote: Hi, Anyone know if there is a final version

Re: [flexcoders] Adobe Labs - Actionscript Libraries Final versions?

2006-07-11 Thread Angus Johnson
, Angus Johnson [EMAIL PROTECTED] wrote: Mike, Looks like the svn files have been included in the zip. Maybe run an export when you have a chance.CheersOn 12/07/06, Mike Chambers [EMAIL PROTECTED] wrote: fyi, I just uploaded new zips which contain new SWCs

[flexcoders] Re: Reused SWFLoader - 1034 error /bug

2006-07-10 Thread Angus Johnson
Turned out that I needed to set ApplicationDomain to the current application in the loaderContext. Fixed.On 06/07/06, Angus Johnson [EMAIL PROTECTED] wrote:Me again :)So I have a Flex 2 (final) application that loads in the Adobe Dashboard example as a sub app. This is done using

Re: [flexcoders] Possible Flex Builder internal error

2006-07-10 Thread Angus Johnson
about it?On 7/5/06, Angus Johnson [EMAIL PROTECTED] wrote: Has anyone else encountered this error in Eclipse (with the Flex Builder final). I'm using Eclipse 3.2 (M20060629-1905).Occurs during debug:An internal error occurred during: Retrieving labels

Re: [flexcoders] SWF's not unloading

2006-07-07 Thread Angus Johnson
believe in the years to come, this issue will be brought up again and again :-) Jeremy. On 7/6/06, Angus Johnson [EMAIL PROTECTED] wrote: Hi,I have a canvas called parentView into which I add SWF child objects via...parentView.addChild(mySWF);mySWF.load

[flexcoders] Possible Flex Builder internal error

2006-07-06 Thread Angus Johnson
Has anyone else encountered this error in Eclipse (with the Flex Builder final). I'm using Eclipse 3.2 (M20060629-1905).Occurs during debug:An internal error occurred during: Retrieving labels. Invalid thread accessI also occasionally get 'error removing compiler marker' on builds.Might be

[flexcoders] Reused SWFLoader - 1034 error /bug

2006-07-06 Thread Angus Johnson
Me again :)So I have a Flex 2 (final) application that loads in the Adobe Dashboard example as a sub app. This is done using the SWFLoader class and setting it as a child into a canvas object. The first time it loads, everything is fine. However, if I remove it from the canvas and then try to

[flexcoders] SWF's not unloading

2006-07-06 Thread Angus Johnson
Hi,I have a canvas called parentView into which I add SWF child objects via...parentView.addChild(mySWF);mySWF.load();No problems loading. When I want to change the contents of parentView and swap out the loaded SWF I run... parentView.removeAllChildren();// get new

Re: [flexcoders] Re: Shift-tabbing not working in Firefox with wmode=opaque

2006-07-05 Thread Angus Johnson
I built an IFrame app about a month ago using the excellent examples that others on this list provided. The one thing I found with firefox is that you have to have wmode otherwise the browser content will flicker. Sometimes the browser content will appear blank until you resize or scroll. I

Re: [flexcoders] anyone out there in eclipse land?

2006-07-05 Thread Angus Johnson
If you're sure you've fixed the errors you might need to run a clean on the project (under 'project' on the Eclipe menu). On 06/07/06, Brendan Meutzner [EMAIL PROTECTED] wrote: Hey,Well, you could fix the problems... :-) Sorry, couldn't resistBrendan On 7/5/06, [EMAIL PROTECTED]

Re: [flexcoders] Adobe Style Explorer - view source error

2006-06-29 Thread Angus Johnson
. On 6/28/06, Angus Johnson [EMAIL PROTECTED] wrote: A quick note to someone at Adobe... could you check the view source for the sample Style Explorer application? Link is broken... http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html I did notice

Re: [flexcoders] Anyone got the link for this breezo

2006-06-28 Thread Angus Johnson
Thanks to Kai... http://www.bloginblack.de/archives/000779.cfm On 28/06/06, Bjorn Schultheiss [EMAIL PROTECTED] wrote: Dear Bjorn, Thank you for registering for: ZeroOne Community Talks Architecting ColdFusion applications - a framework overview

[flexcoders] Adobe Style Explorer - view source error

2006-06-28 Thread Angus Johnson
A quick note to someone at Adobe... could you check the view source for the sample Style Explorer application? Link is broken... http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html I did notice security 2047 errors on a couple of refreshes.CheersAngus __._,_.___

Re: [flexcoders] ServiceLocator in Cairngorm extends UIComponent?

2006-06-26 Thread Angus Johnson
I had the same problem with the app being offset by a few pixels at the top of the screen. One way to stop this is in mx:application specify layout=absolute. (My ApplicationView is a canvas set to x=1 y=1 w=100% h=100%). Hope that helps.AngusOn 22/06/06, Daniel Cascais [EMAIL PROTECTED] wrote:

Re: [flexcoders] ColdFusion/Flex superwizard breaks Eclipse

2006-06-22 Thread Angus Johnson
I should mention that I did install straight out of the zip as Dean suggestsOn 22/06/06, Angus Johnson [EMAIL PROTECTED] wrote:You must be the lucky one Barry. I have CFEclipse and F2B3 running on Eclipse 3.21 with no dramas. Well some... I often get complaints that the Flash Debugger isn't

Re: [flexcoders] ColdFusion/Flex superwizard breaks Eclipse

2006-06-22 Thread Angus Johnson
You must be the lucky one Barry. I have CFEclipse and F2B3 running on Eclipse 3.21 with no dramas. Well some... I often get complaints that the Flash Debugger isn't available but other than that it's ok. BTW the only other plugin i am running in Oxygen XML.On 22/06/06, Tom Chiverton [EMAIL

[flexcoders] check shared object exists

2006-06-15 Thread Angus Johnson
Hi all, Quick one...How do you check for the existence of a shared object? I'm thinking checking the property, size != 0 is one way but is it the best.CheersAngus __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives:

[flexcoders] Firefox render problem - flex 2b3 iframe

2006-06-06 Thread Angus Johnson
Hi all, I've followed some examples and built a component in Flex which calls _javascript_ in the browser in order to render iframes. For some reason Firefox refuses to make the IFrame visible. It loads the url source but you can only see the content if you move/resize the screen. The code

Re: [flexcoders] iFrame not filling canvas

2006-06-02 Thread Angus Johnson
Cheers Tom.I ended up changing the html div and iframe styles and it now works. On 02/06/06, Tom Chiverton [EMAIL PROTECTED] wrote:On Friday 02 June 2006 03:56, Angus Johnson wrote: bars when it should size up to 100% width and height.What about if you set the Canvas to be 99% ?--Tom

[flexcoders] iFrame not filling canvas

2006-06-01 Thread Angus Johnson
Hi everyone, I am playing around with the example IFrame code (below) and for the life of me cannot get the content of the IFrame to fill the parent canvas. In both IE and Firefox the display is about an eight of the canvas with scroll bars when it should size up to 100% width and height. I

[flexcoders] LayoutManager type error after SWF load

2006-05-30 Thread Angus Johnson
Hi all, I am hoping to build a little as3 factory to load my swf's but I am stumbling at the first hurdle. I'd like to avoid using mx:SWFLoader so I am attempting to use the loader class. I can read in the swf file ok but immediately after the load it throws an Error#1009 (full detail at the

Re: [flexcoders] LayoutManager type error after SWF load

2006-05-30 Thread Angus Johnson
Schmalle [EMAIL PROTECTED] wrote: Hi, Try using the SWFLoader, it was designed ofr you guessed it, swf's! I don't see any other things in your code that would cause that error. Peace, MikeOn 5/30/06, Angus Johnson [EMAIL PROTECTED] wrote: Hi all, I am hoping to build a little as3 factory

Re: [flexcoders] event flow / URLLoader

2006-01-18 Thread Angus Johnson
Many thanks Dirk! I've got a little closer now. I can see the jpg being fetched, the imageLoaded listener called and it looks like it is sets the myImage.dataObject property. However, flashplayer displays a broken link icon where the image should display, no errors reported. I don't know if

[flexcoders] event flow / URLLoader

2006-01-17 Thread Angus Johnson
I am going to show off my newbishness with the following question :) I have a simple application called URLLoaderTest which has an initApp() function and a couple of controls. In the initApp function I initialise a class which contains a URLLoader (slightly modified version from the livedocs).

[flexcoders] nested applications / widgets

2006-01-09 Thread Angus Johnson
Hi everyone! Just picking up Flex for the first time and playing with the Alpha and AS3. I'd like to run a question passed you all. We have a Coldfusion html based application that is made up of many sub applications. These sub app's are selected by users and displayed as pods under one shell