[flexcoders] Auto include of compile date within SWF
I want the ability of being able to display within a flex app the date of compilation of the swf file from the Flex code. Is this achievable? I remember from using VB 6 many years ago that you could set your own version number and have it increment every time the VB was compiled to an exe. Ideally I want this but I think it is impossible, so I will make do with date / time if possible. Andrew
[flexcoders] Amazing tool for Flex (Firebug for Flex)
I just discovered this Library, that can be added into your Flex app. It is fantastic, easy to add to your project, and just works: http://code.google.com/p/fxspy/ It is like Firebug but for Flex, I particularly liked the find component functionality! Andrew
[flexcoders] Error in Adobe class MultiTopicConsumer
I am using the MultiTopicConsumer with Blaze. I have had problems with removeSubscription, it gives me an error when I remove the last subtopic in the array of subscriptions. It works OK if any other subtopic is removed. I tracked down the problem to the actual Adobe Class MultiTopicConsumer and method removeSubscription. The code removes the subtopic, but then does a check afterwards to see if it is ttrying to remove a subtopic that does not exist. But when it is the last subtopic, it always fails. Does anybody have a work around? This is the method from Adobe Class MultiTopicConsumer: public function removeSubscription(subtopic:String = null, selector:String = null):void { for (var i:int = 0; i subscriptions.length; i++) { var si:SubscriptionInfo = SubscriptionInfo(subscriptions.getItemAt(i)); if (si.subtopic == subtopic si.selector == selector) { subscriptions.removeItemAt(i); break; } } if (i == subscriptions.length) throw new MessagingError(Attempt to remove a subscription with subtopic: + subtopic + and selector: + selector + that this consumer does not have); } The problem is the if (i == subscriptions.length), which always is true because it has just been removed. Andrew
[flexcoders] Re: Error in Adobe class MultiTopicConsumer
--- In flexcoders@yahoogroups.com, Pedro Sena [EMAIL PROTECTED] wrote: Hi Andrew, Can't you subclass MultiTopicConsumer and override this method to use your instead of use this one? I haven't considered subclassing, but I suppose it is one solution. The quick and dirty solution I came up with was before doing a removeSubscription, to check if it was the last one and then add a dummy subscription, so when the real one is removed, it is not the last one in the array. Andrew
[flexcoders] Blaze messaging how to detect when server is down
I am looking at Blaze messaging using Consume in a Flex client to receive messages from a JMS queue via Blaze. In the flex client how can I detect that the Blaze server has gone away, either it is not responding, or has crashed or with network problems. I know it is very easy to consume messages, but how do you know that your message stream is not working properly? BB