[flexcoders] Sandboxed Modules in AIR

2009-02-09 Thread rob_mcmichael
I was wondering if you could help me. I would like to run a download and potentially untrusted Module (written as a Felx SWF, mx:Module/ ) into an AIR application. This would be a bit like Tour de Flex, but downloading and storing the modules locally rather than loading them from a remote server

[flexcoders] Unloading a swf that includes a ViewStack can cause a RTE

2009-02-17 Thread rob_mcmichael
Hi all, I am sill seeing this bug when trying to unload a SWF in an AIR 1.5 project: http://bugs.adobe.com/jira/browse/SDK-17422 I have tried everything mentioned but no avail. If anyone can help, please let me know. Thanks Rob

[flexcoders] Re: Unloading a swf that includes a ViewStack can cause a RTE

2009-02-18 Thread rob_mcmichael
...@yahoogroups.com] On Behalf Of rob_mcmichael Sent: Tuesday, February 17, 2009 7:17 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Unloading a swf that includes a ViewStack can cause a RTE Hi all, I am sill seeing this bug when trying to unload a SWF in an AIR 1.5 project: http

[flexcoders] Re: Unloading a swf that includes a ViewStack can cause a RTE

2009-02-24 Thread rob_mcmichael
Can anyone help on this? At the moment I am a little stuck? Thanks Rob --- In flexcoders@yahoogroups.com, rob_mcmichael rob_mcmich...@... wrote: Hi Alex, The stack is as follows: === TypeError: Error #1009: Cannot

[flexcoders] Re: Unloading a swf that includes a ViewStack can cause a RTE

2009-02-24 Thread rob_mcmichael
Wow that was obvious! Silly me. Thanks Amy! Rob --- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote: --- In flexcoders@yahoogroups.com, rob_mcmichael rob_mcmichael@ wrote: Can anyone help on this? At the moment I am a little stuck? Did you try turning off

[flexcoders] Detecting iterations in item render

2009-02-27 Thread rob_mcmichael
Hello, I am trying to create an item render for an MX list component. I have overridden the set data function to customize something things, but would like to alternate the background image for each row. The problem is I can't fine a property that indicated which iteration I am on. I have

[flexcoders] Re: Detecting iterations in item render

2009-02-27 Thread rob_mcmichael
-of-a-datagrid-control-in-flex/#more-546 http://blog.flexexamples.com/2008/03/06/setting-the-background-alpha-an\ d-background-color-of-a-datagrid-control-in-flex/#more-546 - Alex C --- In flexcoders@yahoogroups.com, rob_mcmichael rob_mcmichael@ wrote: Hello, I am trying to create an item render

[flexcoders] Re: Detecting iterations in item render

2009-02-28 Thread rob_mcmichael
%40yahoogroups.com, rob_mcmichael rob_mcmichael@ wrote: Thanks for the response Alex, but I don't think that will help. I need to change the background image, not a mere color. Unless you are suggesting that I can detect the current color from inside the render and from that tell

[flexcoders] Re: Detecting iterations in item render

2009-02-28 Thread rob_mcmichael
I have tried your suggestion implementing mx.controls.listClasses.IDropInListItemRenderer: this.styleName = categoryRowAlt; trace( this.owner.verticalScrollPosition ); if(

[flexcoders] Re: Detecting iterations in item render

2009-03-01 Thread rob_mcmichael
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of rob_mcmichael Sent: Saturday, February 28, 2009 3:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Detecting iterations in item render I have tried your suggestion implementing

[flexcoders] HTML content in Sub Applications

2009-03-16 Thread rob_mcmichael
Hi all, I was wondering if someone could advise me on the best way to get HTML content working in a sub application. My sub application is loaded into a separate security and application sandbox in AIR. However All communication needed by the sub application goes via the parent application,

[flexcoders] Re: HTML content in Sub Applications

2009-03-16 Thread rob_mcmichael
Annoyingly this is an AIR application, but I can't find a way to compile my sub applications as AIR swfs and therefore take advantage of the HTML component :( Does anyone know if a way to use the AIR APIs in a sub application? Is there an HTML render that I can use to style some basic HTML in

[flexcoders] Problem with IViewCursor Bookmarks

2009-03-18 Thread rob_mcmichael
Hi All, I am having a problem with IViewCursors. I am trying to detect if there is another element or not, so I can activate a next and previous button. In short I can't watch or listen to events when the cursor changes in my view, as when I do, the current and the bookmark (which should be

[flexcoders] Re: HTML content in Sub Applications

2009-03-18 Thread rob_mcmichael
--- In flexcoders@yahoogroups.com, alex_harui aha...@... wrote: --- In flexcoders@yahoogroups.com, rob_mcmichael rob_mcmichael@ wrote: Hi all, I was wondering if someone could advise me on the best way to get HTML content working in a sub application. My sub application

[flexcoders] Re: A ModuleLoader issue

2009-03-18 Thread rob_mcmichael
--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: See the modules presentation on my blog. That's the shared-code problem. Singletons need to be in the main app or a shared-code module. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog:

[flexcoders] Re: How to take a screenshot of a loaded module?

2009-03-19 Thread rob_mcmichael
--- In flexcoders@yahoogroups.com, Borek bore...@... wrote: We are building a presentation software where the slides are realized as either Flash SWF files or Flex modules (also SWF files but with different structure). I need to show a thumbnail preview of the slide upon loading and it

[flexcoders] Re: Problem with IViewCursor Bookmarks

2009-03-19 Thread rob_mcmichael
I have updated the example to include the same trace statements after the moveNext() call. This provides the expected result. It seems that the bookmark must update at some point later, although this doesn't explain the change watcher on the bookmark it's self! The output from the following

[flexcoders] Re: Problem with IViewCursor Bookmarks

2009-03-19 Thread rob_mcmichael
I have found a work around for this problem (which may be a bug). It seems that the CURSOR_UPDATE event is dispatched before the cursor has fully updated,. This means the bookmark is still pointing at the previous item. This is a big problem if you want to use the bookmark to see if there is a

[flexcoders] Marshall Plan: Loading images from byteArray

2009-04-09 Thread rob_mcmichael
Hi all, I am trying to work around a sub application in AIR not being able to load in images at runtime. I am trying to get the parent application to load the image, convert it to a byte array and then pass it through the shared events to the sub application. At this point I then want the

[flexcoders] Re: Marshall Plan: Loading images from byteArray

2009-04-10 Thread rob_mcmichael
Your code didn't match the description. How so? I changed the names of the swfs, but other than that, that is the error I am getting when trying to load the bytearray of a PNG using a swf loader? I'd take the bitmapdata, write it to a bytearray, pass the bytearray across shared events,

[flexcoders] Re: Marshall Plan: Loading images from byteArray

2009-04-10 Thread rob_mcmichael
You didn't saw you were stringifying the bytearray. Made me wonder if you'd posted the right code or described your steps correctly. Oops sorry about that :p Did you try my steps? If they work, it would save you a few hops. An image is a Bitmap so converting to ByteArray should be

[flexcoders] Re: Marshall Plan: Loading images from byteArray

2009-04-11 Thread rob_mcmichael
Thanks Alex! That's more or less what I had. Once everything is done here I will try and create an example, as I expect most sub applications will want to load images at some point. Really appreciate your help Rob

[flexcoders] Re: Create XML List by code

2009-04-11 Thread rob_mcmichael
Be sure to have a read through: http://livedocs.adobe.com/flex/3/html/help.html?content=13_Working_with_XML_04.html It covers most things you will need in dealing with XML.

[flexcoders] Re: Timer error

2009-04-11 Thread rob_mcmichael
This code should help: === public var ticker : Timer; public function onCreationComplete():void { ticker = new Timer(500); ticker.addEventListener(TimerEvent.TIMER, onTick); ticker.start(); } public function onTick( event:TimerEvent):void {

[flexcoders] Flex layout question

2009-04-11 Thread rob_mcmichael
Hi all, I have had a problem with a layout I am trying to write. I have a view for an RSS article, at the top I have a header section with the title and the publish date. Under this I want an area that will scroll when it fills up, with the article content in a TextArea and an image above

[flexcoders] Re: What's your favorite Tip/Trick ?

2009-04-11 Thread rob_mcmichael
In the next version of FlexBuilder you will see a lot more of this. There is getter and setter fillers (which will stop me being lazy and using public variables). I also noticed method generation if you set a click property on a button etc. At the moment we have refactoring, which is a help,

[flexcoders] Re: Loaded cairngorm swf will not remote

2009-04-12 Thread rob_mcmichael
Is this an AIR application? If so I don't think you can load them into a separate application domain but the same security domain, which will mean all remote calls will get blocked. You may have to route them through the main app (which is a pain). Have a read up here if you think you are

[flexcoders] Very odd null object RTE on FocusManager

2009-09-15 Thread rob_mcmichael
Hi all, I am getting this error, randomly when I start my application (and it's sub applications). As you can see the stack trace is rather useless, although through the debugger I can see the parent of container (second in the stack) is an MXML class that has a repeater that repeats another

[flexcoders] Re: Very odd null object RTE on FocusManager

2009-09-15 Thread rob_mcmichael
Hi Alex, Thanks for the help. The problem is intermittent, perhaps happening one in three times if I have more than three sub applications being loaded in. I found the bug was related to an MXML component with two states, which is being repeated. Only once is the alternate state used (if it's

[flexcoders] Re: Very odd null object RTE on FocusManager

2009-09-15 Thread rob_mcmichael
and they should load. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of rob_mcmichael Sent: Tuesday, September 15, 2009 12:29 PM To: flexcoders