Re: [flexcoders] Re: "undefined" in stack trace (Console), stack overflow (2nd try)

2009-07-14 Thread Erik de Bruin
Alex,

The local variables in methods "on the stack", by which I presume you
mean "have been called recently", are mostly counters and such, as
well as references to properties of other objects, to avoid too much
lookup (myVarRef instead of repeatedly calling
Controller.instance.myList.myVar).

2 questions:
- can I somehow increase the size of the stack for the AIR player on
MacOSX? (Google tells me "probably not", but I have to ask);
- where can I learn more about the "stack" and how to "debug" it, so I
can stop bothering you with these questions?

Thanks,

EdB

On Wed, Jul 15, 2009 at 1:33 AM, Alex Harui wrote:
>
>
> I'm not sure you can try/catch a stack overflow, and adding "try" does
> change the stackframe. I think you're just running out of stack. The stacks
> have different sizes on different platforms. What kinds of local variables
> are in each method on the stack?
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
>
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Erik de Bruin
> Sent: Tuesday, July 14, 2009 3:01 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Re: "undefined" in stack trace (Console), stack
> overflow (2nd try)
>
> Alex,
>
> Well, that's the thing. The code in that method doesn't seem to be the
> problem. If I put the seemingly offending line in a try...catch block,
> it runs without triggering the catch. And weirder still, the
> "undefined" exception happens somewhere a little further in the
> flow...
>
> This happens only when I play the piece in AIR on a Mac. AIR on
> windows doesn't show this problem and it also doesn't happen when the
> code runs in the Flash plugin in a browser (on both platforms). Are
> there any known issues that might relate to this?
>
> Thanks again,
>
> EdB
>
> On Fri, Jul 10, 2009 at 8:13 PM, Alex Harui wrote:
>>
>>
>> Or show the code in that method.  If you blow up the stack, you can't
>> guarantee you'll get correct information in the stacktrace.
>>
>>
>>
>> Alex Harui
>>
>> Flex SDK Developer
>>
>> Adobe Systems Inc.
>>
>> Blog: http://blogs.adobe.com/aharui
>>
>>
>>
>> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
>> Behalf Of valdhor
>> Sent: Friday, July 10, 2009 9:03 AM
>> To: flexcoders@yahoogroups.com
>> Subject: [flexcoders] Re: "undefined" in stack trace (Console), stack
>> overflow (2nd try)
>>
>>
>>
>>
>> Possibly completely unrelated to the Stack Overflow error (Or maybe the
>> change is now showing where the original error came from.
>>
>> I would try debugging at or around line 114 of SheetItem.as.
>>
>> --- In flexcoders@yahoogroups.com, "erikdebruin_nl" 
>> wrote:
>>>
>>> Steve,
>>>
>>> No luck :-(
>>>
>>> The stack trace look like this:
>>>
>>> 
>>> [SWF] Presenter_AIR.swf - 2,508,088 bytes after decompression
>>> undefined
>>> at
>>> nl.ixms.app.data::SheetItem/loadFromDbResultHandler()[/{removed}/SheetIt\
>>> em.as:114]
>>> at nl.ixms.db::Db/dbResultHandler()[/{removed}/Db.as:214]
>>> at flash.data::SQLStatement/internalExecute()
>>> at flash.data::SQLStatement/execute()
>>> >>
>>> Any ideas or suggestions as to what might cause the "undefined"?
>>>
>>> Regards,
>>>
>>> EdB
>>>
>>> --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>>> >
>>> > A co-worker had the same error the other day (In the web application
>>> though, not in AIR): Stack Overflow.
>>> >
>>> > In his case it turned out to be "rampant" events. He made sure to use
>>> event.stopImmediatePropagation() when the event was no longer required
>>> to bubble and the error went away.
>>> >
>>> > This may not fix your problem but it is well worth doing.
>>> >
>>> >
>>> > HTH.
>>> >
>>> >
>>> > Steve
>>> >
>>> >
>>> >
>>> > --- In flexcoders@yahoogroups.com, "erikdebruin_nl"
>>> >> > >
>>> > > Hi,
>>> > >
>>> > > I've Googled me senseless, but I can't find a clue to my latest
>>> problem:
>>> > >
>>> > > When I run my application in the browser, all is fine. When the same
>>> app in AIR (we've build it so the same codebase is shared between on-
>>> and offline versions), I get an exception and the last line in the stack
>>> trace (as shown in the Console) reads "undefined". The error dialog the
>>> player throws up (after clicking on the "Resume (F8)" button in the
>>> debug perspective) tells me a "stack overflow" happened.
>>> > >
>>> > > The "funny" thing is, when I disable the code that seems to be the
>>> cause (taking my clues from the stack trace), the problem remains, but
>>> the stack trace tells me another line is the problem... and so on and
>>> on.
>>> > >
>>> > > Google tells me that a stack overflow mostly has to do with rampant
>>> recursion, but my app doesn't use recursion anywhere. It does however
>>> use a lot of event chains. Do these count as "recursion"?
>>> > >
>>> > > What does it mean that the last line of the stack trace reads
>>> "undefined"?
>>> > >
>>> > > Any suggestions about further debug

[flexcoders] Re: create class on the fly

2009-07-14 Thread wrhinfl
Ok, I think the way your question is worded can cause problems with the answer 
you get.

If your real question was "Can a class be modified during runtime and how?"  
Would this be the same question you are asking?

I searched the ASDocs and found Dynamic Class, which allows you to add 
variables and functions to an instance of a class.  I created a simple 
application and uses one AS class twice, creating different variables and 
functions in the two instances.

The project I am working on is trying to do something very similar where I 
don't want hundreds of classes to match the hundreds of tables (and would 
require hundreds of java classes on the server).  

And your question made me do some searching, so let me know if this question 
and answer are closer to what you are trying to accomplish in your project and 
I can share my simple code (two files with 70 lines of code, no comments).

--- In flexcoders@yahoogroups.com, "postwick"  wrote:
>
> I want to store descriptions of classes in an external file (such as XML) or 
> database, and use them in my Flex application such that I can add, remove, or 
> change the classes in the external file with recompling the Flex application.
> 
> Is there any way to do this?  In a nutshell, is there a way to create a class 
> through an Actionscript function, with a for loop where the information that 
> is looped over contains the definitions of the classes loaded from an 
> external source?
>




[flexcoders] clearing the flex cache?

2009-07-14 Thread jedierikb
I would like to clear my cache of all the flex libraries used by my browsers.  
I would like to do this to see the speed of my flex apps loading the flex rsls 
for the first time.

Are there instructions for how to do clear my flex cache?  I tried deleting the 
files listed at the paths listed here 
http://livedocs.adobe.com/flex/3/html/help.html?content=rsl_09.html, but even 
when they are trashed (on windows vista), my flex app still seems to find the 
libraries somewhere  locally(I do not see the framework and rsl libraries 
download).  (side note: i am not linking the flex libraries into my own code... 
I am linking to them as rsls.) 



[flexcoders] Re: Possible to create a chart with clustered & overlaid columns? (picture inside)

2009-07-14 Thread gmoniey22
Thanks for the feedback, I will play with those ideas and see if I can get 
something going.

--- In flexcoders@yahoogroups.com, "gmoniey22"  wrote:
>
> I haven't been able to find an example of this, or any indication in the docs 
> of how to do this, but I would imagine it is possible.
> 
> I want to chart some data that is hierarchical. Essentially each parent has a 
> few children. I want the children to be clustered columns inside a big column 
> which indicates the parent (which is the sum of all the children)
> 
> I found this example image which kinda shows what I am thinking of:
> http://peltiertech.com/images/2009-02/MariBar_OverlapColumns.png
> 
> Thanks!
>




[flexcoders] Linux says corrupt file when clicking on an air app.

2009-07-14 Thread Raymond Brown
Question for anyone who can point to a better answer than what google has 
currently provided:

 We wrote a adobe air app on OSX using the latest version of flex builder (3 
series) and the latest adobe air sdk.  When we export the air app and double 
click it on windows or OSX it installs fine and runs.  When we try the same on 
Linux we get an error message saying the file is corrupt and we need to contact 
ourselves (developers) for another copy.  I have tried this as root and general 
user on the linux system.  Any pointers is appreciated.

-Ray


  

[flexcoders] LCDS without a class for every table?

2009-07-14 Thread postwick
OK, so I was the one looking for a way to do classes at runtime.  The bottom 
line is I want to use LCDS because it's, well, fantastic.  However, in my app I 
cannot know at compile time all the tables (and columns in them) that will need 
to be accessed.

Is there a way to use one single class which has a property on which I attach 
an object that contains the properties I need (probably in XML format) based on 
the table that should be updated, then modify the CFCs so that they extract the 
data, create/update/delete the correct table, and then pass the necessary 
information back to LCDS so that it pushes the update out to the clients?

On the datagrid side, instead of binding the grid to an ArrayCollection, I 
could bind it to a function that parses the XML property on the returned 
ArrayCollection and returns a new ArrayCollection (or populates a second one) 
with the correct data for the grid.

Does this sound reasonable and doable?  Is there any other way to use LCDS 
without having a class for every single table?

Thanks,
Paul



RE: [flexcoders] [Gumbo] Gumbo equivalent of ViewStack

2009-07-14 Thread Alex Harui
There isn't one at this time.  Many folks use the new states syntax to  delay 
creation of views

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Charles Parcell
Sent: Tuesday, July 14, 2009 9:55 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] [Gumbo] Gumbo equivalent of ViewStack





Is there an equivalent of the the Halo ViewStack? The issue is that it 
indicates only Halo components can be placed inside a ViewStack. So if I want 
to put Spark components within what should I use?

Charles P.



RE: [flexcoders] Re: "undefined" in stack trace (Console), stack overflow (2nd try)

2009-07-14 Thread Alex Harui
I'm not sure you can try/catch a stack overflow, and adding "try" does change 
the stackframe.  I think you're just running out of stack.  The stacks have 
different sizes on different platforms.  What kinds of local variables are in 
each method on the stack?

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Erik de Bruin
Sent: Tuesday, July 14, 2009 3:01 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: "undefined" in stack trace (Console), stack 
overflow (2nd try)

Alex,

Well, that's the thing. The code in that method doesn't seem to be the
problem. If I put the seemingly offending line in a try...catch block,
it runs without triggering the catch. And weirder still, the
"undefined" exception happens somewhere a little further in the
flow...

This happens only when I play the piece in AIR on a Mac. AIR on
windows doesn't show this problem and it also doesn't happen when the
code runs in the Flash plugin in a browser (on both platforms). Are
there any known issues that might relate to this?

Thanks again,

EdB

On Fri, Jul 10, 2009 at 8:13 PM, Alex Harui wrote:
>
>
> Or show the code in that method.  If you blow up the stack, you can't
> guarantee you'll get correct information in the stacktrace.
>
>
>
> Alex Harui
>
> Flex SDK Developer
>
> Adobe Systems Inc.
>
> Blog: http://blogs.adobe.com/aharui
>
>
>
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of valdhor
> Sent: Friday, July 10, 2009 9:03 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: "undefined" in stack trace (Console), stack
> overflow (2nd try)
>
>
>
>
> Possibly completely unrelated to the Stack Overflow error (Or maybe the
> change is now showing where the original error came from.
>
> I would try debugging at or around line 114 of SheetItem.as.
>
> --- In flexcoders@yahoogroups.com, "erikdebruin_nl"  wrote:
>>
>> Steve,
>>
>> No luck :-(
>>
>> The stack trace look like this:
>>
>> 
>> [SWF] Presenter_AIR.swf - 2,508,088 bytes after decompression
>> undefined
>> at
>> nl.ixms.app.data::SheetItem/loadFromDbResultHandler()[/{removed}/SheetIt\
>> em.as:114]
>> at nl.ixms.db::Db/dbResultHandler()[/{removed}/Db.as:214]
>> at flash.data::SQLStatement/internalExecute()
>> at flash.data::SQLStatement/execute()
>> >
>> Any ideas or suggestions as to what might cause the "undefined"?
>>
>> Regards,
>>
>> EdB
>>
>> --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>> >
>> > A co-worker had the same error the other day (In the web application
>> though, not in AIR): Stack Overflow.
>> >
>> > In his case it turned out to be "rampant" events. He made sure to use
>> event.stopImmediatePropagation() when the event was no longer required
>> to bubble and the error went away.
>> >
>> > This may not fix your problem but it is well worth doing.
>> >
>> >
>> > HTH.
>> >
>> >
>> > Steve
>> >
>> >
>> >
>> > --- In flexcoders@yahoogroups.com, "erikdebruin_nl"
>> > > >
>> > > Hi,
>> > >
>> > > I've Googled me senseless, but I can't find a clue to my latest
>> problem:
>> > >
>> > > When I run my application in the browser, all is fine. When the same
>> app in AIR (we've build it so the same codebase is shared between on-
>> and offline versions), I get an exception and the last line in the stack
>> trace (as shown in the Console) reads "undefined". The error dialog the
>> player throws up (after clicking on the "Resume (F8)" button in the
>> debug perspective) tells me a "stack overflow" happened.
>> > >
>> > > The "funny" thing is, when I disable the code that seems to be the
>> cause (taking my clues from the stack trace), the problem remains, but
>> the stack trace tells me another line is the problem... and so on and
>> on.
>> > >
>> > > Google tells me that a stack overflow mostly has to do with rampant
>> recursion, but my app doesn't use recursion anywhere. It does however
>> use a lot of event chains. Do these count as "recursion"?
>> > >
>> > > What does it mean that the last line of the stack trace reads
>> "undefined"?
>> > >
>> > > Any suggestions about further debugging my problem are very welcome!
>> > >
>> > > Thanks in advance,
>> > >
>> > > EdB
>> > >
>> >
>>
>
> 



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links





Re: [flexcoders] Re: create class on the fly

2009-07-14 Thread Julien Nicoulaud
Interesting topic !
I would like to go further on the dynamic class manipulations:
Does anybody see a way to list all classes from a package that implement a
given Interface ?
Well, the part "that implement a given Interface" is easy to do using
isPrototypeOf(), but the "list all classes from a package" part ?

2009/7/14 ag_rcuren 

>
>
> To return a class is pretty simple. If you look at the source of the
> Modules they have create method. For my example they are returning instances
> but there is no reason you can not return a Class from these, infact I have
> done it before so I know it works.
>
> import mystuff.junk.SomeClass;
> import mystuff.junk.AnotherClass;
>
> public function create(type:String):*
> {
> switch (type)
> {
> case "SomeClass":
> return SomeClass
> case "AnotherClass":
> return AnotherClass
> break;
> default:
> break;
> }
> return null;
> }
>
> This will give you back a Class which you can then use as expected.
>
> Looking at it now I should have used a different name other than
> createdInstance for the getter in DynamicFactory because it really does not
> have to be an instance of something it can be any type.
>
>
> --- In flexcoders@yahoogroups.com ,
> "postwick"  wrote:
> >
> > Thanks for everyone's help. I think this points me in the right
> direction.
> >
> > Of course, if there's a way to successfully use data messaging without
> instantiating classes...that would eliminate my need to do this. But I don't
> think there is...
> >
> > --- In flexcoders@yahoogroups.com ,
> "ag_rcuren"  wrote:
> > >
> > > Yes you could create the class and build it into an RSL. Once the RSL
> is loaded you can just reference it by name. When you add or make changes
> you just need to rebuild the RSL or push a new RSL out and have a way for
> your app to know whats available.
> > >
> > > I found it easier to use Modules, because they are easier to build. I
> have examples of both RSL and Modules on that blog both have source enabled
> so you can take a look.
> > >
> > > I have an app that lets users pick and choose "widgets" they want and I
> load only the components they want into the app via a config file. When ever
> I want to add new components I just publish a new module and update my
> database so my apps knows about it.
> > >
> > > --- In flexcoders@yahoogroups.com ,
> "postwick"  wrote:
> > > >
> > > > From your blog post...
> > > >
> > > > var myClass:Class =
> getDefinitionByName("com.myDomain.myPackage.SomeClass");
> > > >
> > > >
> > > > Does this mean I don't have to create the class as a .as file and
> compile it into the SWF, I can just reference it this way? Then I could add
> a new class to myPackage and tell my app (via db, XML, etc) that there is a
> new class there to load?
> > > >
> > > > The point to all of this is a dynamic application where an end user
> can add their own tables, and I need classes for those objects so that I can
> pass them back and forth with data messaging.
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com ,
> Alan Shaw  wrote:
> > > > >
> > > > > There are a number of important techniques for manipulating classes
> (as detailed
> > > > > in my post http://nodename.com/blog/2008/06/15/upon-reflection/ ),
> but
> > > > > unfortunately
> > > > > creating a class at runtime is not possible in AS3.
> > > > >
> > > > > On Mon, Jul 13, 2009 at 8:23 PM, postwick wrote:
> > > > > >
> > > > > >
> > > > > > I want to store descriptions of classes in an external file (such
> as XML) or
> > > > > > database, and use them in my Flex application such that I can
> add, remove,
> > > > > > or change the classes in the external file with recompling the
> Flex
> > > > > > application.
> > > > > >
> > > > > > Is there any way to do this? In a nutshell, is there a way to
> create a class
> > > > > > through an Actionscript function, with a for loop where the
> information that
> > > > > > is looped over contains the definitions of the classes loaded
> from an
> > > > > > external source?
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
>  
>


Re: [flexcoders] Drag n Drop from one Flex application to another Flex application.

2009-07-14 Thread Julien Nicoulaud
I guess it is not possible, because "between" the two applications you
should have access to the system drag and drop manager. By the way, you can
do it in an air application.

(by the way, hi everyone, i'm new :)

2009/7/13 avibhujade 

>
>
> Hi,
>
> I have two flex applications and I want to drag n drop display objects
> for one application to another application. Is this possible? if yes
> please provide some pointers.
>
> Thanks,
> Avi
>
>  
>


Re: [flexcoders] Re: Flex logging

2009-07-14 Thread Julien Nicoulaud
Flex provides a real logging API, spare you some efforts :)

http://livedocs.adobe.com/flex/3/html/help.html?content=logging_09.html

2009/7/14 valdhor 

>
>
> Shared Objects?
>
>
> --- In flexcoders@yahoogroups.com ,
> "vladakg85"  wrote:
> >
> > Hi,
> >
> > I need to setup my flex application to save log information in some *.txt
> file, but I don't know how to setup this. Help me :(
> >
>
>  
>


Re: [flexcoders] Opening popups while in full-sceen mode would crash the browser

2009-07-14 Thread Julien Nicoulaud
I noticed several bugs while trying to setup my application for full screen
mode:
 - Text fields not editable
 - keyboard events not dispatched
 - IFrame stay blank
 - ProgressBar crashing the browser (I guess this is the same issue as the
one you describe)
 - Drag and drop severe performance issues (My app uses flexlib's MDI
windows)

And this, on Flash Player 9 & 10, Linux and Windows.

At the end i decided to just disable full screen mode...

2009/7/14 Robert Csiki 

>
>
>
> Hello, I created a bunch of MXML components and the application them as
> popups PopUpManager.createPopup(), but when executing that while
> the application is in full-screen mode, the browser crashes.
> Reproducible with Windows/Firefox and IE, and Flash Player 9. Any idea
> why? Has anyone seen this too? Thank you.
>
>  
>


[flexcoders] Programmaticly created Consumer does not find endpoint

2009-07-14 Thread Michael Slinn

I am able to programmatically create a RemoteObject to call RPCs
against, and now I am trying to programmatically create a messaging
Consumer that listens on a streaming AMF channel.

I have cranked up logging verbosity. I note the 404 (not found) message:
[SWF] /samples/testdrive-datapush/ProgMsg.swf - 883,736 bytes after
decompression
'my-streaming-amf' channel endpoint set to
http://localhost:8400/samples/messagebroker/amfstreaming
'A9D9B478-E4BB-6C26-196F-7B082707F804' consumer set destination to
'feed'.
'A9D9B478-E4BB-6C26-196F-7B082707F804' consumer subscribe.
'my-streaming-amf' pinging endpoint.
'my-streaming-amf' channel got status. (Object)#0
   code = "NetConnection.Call.Failed"
   description = "HTTP: Status 404"
   details = "http://localhost:8400/samples/messagebroker/amfstreaming";
   level = "error"
'my-streaming-amf' channel polling stopped.
'my-streaming-amf' channel connect failed.
The streaming AMF endpoint looks right to me. What am I missing?

Here is the (small) test project source code:
http://www.mslinn.com/sites/flex/progMsg.zip

For convenience, the SWF and HTML files built by this test project drop
into the {BlazeDsTurnkey}/tomcat/webapps/samples/testdrive-datapush
directory and the project can be run from
http://localhost:8400/samples/testdrive-datapush/ProgMsg.html



[flexcoders] Opening popups while in full-sceen mode would crash the browser

2009-07-14 Thread Robert Csiki

Hello, I created a bunch of MXML components and the application  them as
popups PopUpManager.createPopup(),  but when executing that while
the application is in full-screen mode, the browser crashes. 
Reproducible with Windows/Firefox and IE, and Flash Player 9.  Any idea
why? Has anyone seen this too? Thank you.




[flexcoders] Embedded Assets: SWF or Image?

2009-07-14 Thread kenny14390
When would it be appropriate to embed graphical assets as SWFs? Does it 
increase/decrease file size or load time?

Would it be better to convert the SWF to a PNG or something?



Re: [flexcoders] Re: LCDS fallback and firewalls which inspect packets

2009-07-14 Thread Johannes Nel
the https idea is worth a try. Thanks for the input.

On Tue, Jul 14, 2009 at 8:07 PM, valdhor wrote:

>
>
> Just a couple of ideas...
>
> Try AMF over HTTPS.
>
> Could you use PPTP or L2TP?
>
>
> --- In flexcoders@yahoogroups.com , Johannes
> Nel  wrote:
> >
> > Someone must see some easy money here! come on people!
> >
> > On Tue, Jul 14, 2009 at 3:03 PM, Johannes Nel wrote:
> >
> > > I have. They are not prepared to change their setup so I really want to
> > > get hold of an expert who can solve or answer with finality.
> > >
> > >
> > >
> > > On Tue, Jul 14, 2009 at 2:54 PM, Tom Chiverton <
> > > tom.chiver...@...> wrote:
> > >
> > >>
> > >>
> > >> On Tuesday 07 Jul 2009, Johannes Nel wrote:
> > >> > deity, has a network which inspects packets. They seem to be
> throwing
> > >> out
> > >> > out all my AMF over http packets. So...is there something I can do?
> > >>
> > >> Presumably this is more than inspection, it's some sort of
> > >> MPLS/DPI/application protocol security/etc. that rejects unknown (or
> > >> unauthorised) protocols.
> > >> I suggest you find their IT bods.
> > >>
> > >>
> > >> --
> > >> Helping to advantageously syndicate turn-key robust high-yield
> granular
> > >> communities as part of the IT team of the year, '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.
> > >>
> > >>
> > >
> > >
> > >
> > > --
> > > j:pn
> > > \\no comment
> > >
> >
> >
> >
> > --
> > j:pn
> > \\no comment
> >
>
>  
>



-- 
j:pn
\\no comment


[flexcoders] Custom Events in multiple components

2009-07-14 Thread Jake Churchill
I ran into something that I've never come across before and now curiosity is
killing me.  

 

I had a base component, call it ComponentBase.  I made this component
dispatch a custom event using the appropriate event metadata.  

 

I have another component which extends ComponentBase, call it SubComponent.
SubComponent gets used in mxml.  I want the event that I set up in
ComponentBase to be available in mxml the same as if I had added it to
SubComponent.  Does that make sense?

 

How do I get a custom event from a base component to come through to it's
children components?

 

Thanks!

 

Jake Churchill
CF Webtools
11204 Davenport, Ste. 100
Omaha, NE  68154
  http://www.cfwebtools.com
402-408-3733 x103



[flexcoders] Setting firstVisibleItem in ADG

2009-07-14 Thread vin.flex


HI,


   I have an ADG with piechart as he itemrenderer for the entire row. 
If I click any node the chart is shown. 

  I want to set the opened node as the firstVisibleItem, so that 
the chart is visible completely. I am doing the following in itemOpen event.

myADG.fisrtVisibleItem = evt.item; 

This is not working everytime. Can anybody give sugggestions or other way to 
achieve this functionality.


thanks
vin



[flexcoders] Re: Possible to create a chart with clustered & overlaid columns? (picture inside)

2009-07-14 Thread Tim Hoff

Here's another way.  You would have some challenges with data tips, but
nothing that can't be handled.  Hope that this gives you some ideas:

Multi-Clustered Column Chart Sample


-TH

--- In flexcoders@yahoogroups.com, "EddieBerman" 
wrote:
>
>
> While I haven't yet attempted that layout, here are my thoughts on one
> potential path:
>
> You'll need 5 series, with the first one (series 0) being the
composite
> (as the series are drawn from 0 to n, and if the composite column was
> the last one it would draw over the previous columns).
>
> You'll need to adjust the individual series columnWidthRatios and
> offsets so that series 0 and series 1 start at the same x position,
and
> (obviously) series 1-4 take up the space of 5 series columns.
>
> You'll need to have an itemRenderer for series 0. Override
> updateDisplayList() and set the unscaledWidth to be wide enough to
span
> series 1-4.
>
> Here are some potentially helpful links:
> 1) demonstrates tampering with columnWidthRatio and offsets:
>
http://www.stretchmedia.ca/code_examples/offset_calculator/SeriesOffsetC\
\
> alculator.html
>
 Calculator.html>
>
> 2) QuietlyScheming shows an example of complex stacking which you'll
> need since series 0 is a composite:
> http://demo.quietlyscheming.com/ChartSampler/app.html
> 
>
> That's only a start as you'll still need to also create a custom
legend
> and deal with the challenge of having the first 4 clusters blue-ish
and
> the next 4 orange-y. Having custom itemRenderers should help with that
> coloring issue.
>
> Good luck!
> -Eddie B.
>
>
> --- In flexcoders@yahoogroups.com, "gmoniey22" gmoniey22@ wrote:
> >
> > I haven't been able to find an example of this, or any indication in
> the docs of how to do this, but I would imagine it is possible.
> >
> > I want to chart some data that is hierarchical. Essentially each
> parent has a few children. I want the children to be clustered columns
> inside a big column which indicates the parent (which is the sum of
all
> the children)
> >
> > I found this example image which kinda shows what I am thinking of:
> > http://peltiertech.com/images/2009-02/MariBar_OverlapColumns.png
> >
> > Thanks!
> >
>




[flexcoders] Re: Remote AMF all in IE7 Fails NetConnection.Call.Failed: HTTP: Status 403

2009-07-14 Thread valdhor
403 is a "Access Denied/Forbidden" error. Seeing as you are making a secure 
call, could it be a damaged certificate file in IE? You may want to try 
repairing IE7 (http://support.microsoft.com/kb/318378) or perhaps some registry 
error?


--- In flexcoders@yahoogroups.com, "Anthony DeBonis"  wrote:
>
> Need a fix for this ASAP - any help would be great
> 
> We have remote object calls to LCDS that work fine in Firefox and Chrome but 
> fail when we user IE 7 as the browser.
> 
> FaultDetail: NetConnection.Call.Failed: HTTP: Status 403
> 
> 
> Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 403: 
> url: 
> 'https://{servernamehere}/doh2/applinks/webserv/datavis/messagebroker/amf'
> 
> IF I just hit the URL for the endpoint in IE7 it works fine - we get back a 
> blank white empty page so we know the endpoint us available.
> 
> The Channel is using mx.messaging.channels.SecureAMFChannel 
> 
> service-config.xml entries:
> 
> 
>  url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf"; 
> class="flex.messaging.endpoints.AMFEndpoint"/>
> 
>  false
> 
> 
> 
>  class="mx.messaging.channels.SecureAMFChannel">
>  url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure";
>  class="flex.messaging.endpoints.SecureAMFEndpoint"/>
> 
> false
> 
> 
>




[flexcoders] Remote AMF all in IE7 Fails NetConnection.Call.Failed: HTTP: Status 403

2009-07-14 Thread Anthony DeBonis
Need a fix for this ASAP - any help would be great

We have remote object calls to LCDS that work fine in Firefox and Chrome but 
fail when we user IE 7 as the browser.

FaultDetail: NetConnection.Call.Failed: HTTP: Status 403


Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 403: url: 
'https://{servernamehere}/doh2/applinks/webserv/datavis/messagebroker/amf'

IF I just hit the URL for the endpoint in IE7 it works fine - we get back a 
blank white empty page so we know the endpoint us available.

The Channel is using mx.messaging.channels.SecureAMFChannel 

service-config.xml entries:


http://{server.name}:{server.port}/{context.root}/messagebroker/amf"; 
class="flex.messaging.endpoints.AMFEndpoint"/>

   false




https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure";
 class="flex.messaging.endpoints.SecureAMFEndpoint"/>

false






[flexcoders] Re: BrowserManager not working

2009-07-14 Thread valdhor
I tried your code and it worked fine (Of course, I ended up in an endless loop 
as it kept loading the same page over and over again).


--- In flexcoders@yahoogroups.com, edencane  wrote:
>
> 
> Hi. 
> 
> trace(url1) outputs the server name and port eg. 'www.myserver.com:7070'
> 
> Alex: I am using http:// not file://
> 
> So the problem occurs when I use:
> navigateToURL(u,"_self");
> This loads the url, but whatever information is needed by BrowserManager to
> extract the URL, is not included because when the page loads (this second
> time), the BrowserManager object is null...
> 
> any clues anyone?
> 
> Thanks.
> 
> Kr.
> Luke.
> 
> valdhor-3 wrote:
> > 
> > What does the trace(url1) output? Does it have a # in it somewhere? If so,
> > the browser won't refresh as it is trying to move to an anchor.
> > 
> > 
> > --- In flexcoders@yahoogroups.com, edencane  wrote:
> >>
> >> 
> >> Hi. Thanks for your response.
> >> After some more troubleshooting the problem is the following:
> >> 
> >> the URL is returned correctly by the following code:
> >> 
> >> import mx.managers.BrowserManager;
> >> import mx.managers.IBrowserManager;
> >> import mx.utils.URLUtil;
> >> import mx.utils.ObjectUtil;
> >> 
> >> private var bman:IBrowserManager;
> >> private var url1:String;
> >> 
> >> bman = BrowserManager.getInstance();
> >> bman.init();
> >> url1 = URLUtil.getServerNameWithPort(bman.url);
> >> trace(url1);
> >> 
> >> but then I do this:
> >> 
> >> if (true) {
> >> var u:URLRequest = new URLRequest(url1);
> >> navigateToURL(u,"_self");
> >> }
> >> 
> >> Basically I want to reload the original URL on certain conditions.
> >> 
> >> This time when the page loads the bman instance is null.
> >> So the URLRequest object does not contain the information that
> >> BrowserManager needs.
> >> Would this be to do with the request headers...?
> >> 
> >> How can I solve this...?
> >> 
> >> Thanks 
> >> 
> >> Kr.
> >> Luke Vanderfluit
> >> Avid Flex Fan!
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> 
> >> Alex Harui wrote:
> >> > 
> >> > Compare with the examples.  You're not calling init() and you may need
> >> to
> >> > add an event listener as well.
> >> > 
> >> > Alex Harui
> >> > Flex SDK Developer
> >> > Adobe Systems Inc.
> >> > Blog: http://blogs.adobe.com/aharui
> >> > 
> >> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> >> > Behalf Of edencane
> >> > Sent: Thursday, July 09, 2009 1:30 AM
> >> > To: flexcoders@yahoogroups.com
> >> > Subject: [flexcoders] BrowserManager not working
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > Hi.
> >> > 
> >> > I want to get the information of the current URL
> >> > 
> >> > This is my code. It aint workin'. What 'm I doing wrong?
> >> > 
> >> > 
> >> > http://www.adobe.com/2006/mxml";
> >> > layout="absolute"
> >> > creationComplete="init()">
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > --
> >> > View this message in context:
> >> >
> >> http://www.nabble.com/BrowserManager-not-working-tp24406204p24406204.html
> >> > Sent from the FlexCoders mailing list archive at Nabble.com.
> >> > 
> >> > 
> >> > 
> >> 
> >> -- 
> >> View this message in context:
> >> http://www.nabble.com/BrowserManager-not-working-tp24406204p24454477.html
> >> Sent from the FlexCoders mailing list archive at Nabble.com.
> >>
> > 
> > 
> > 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/BrowserManager-not-working-tp24406204p24471757.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>




[flexcoders] Re: remote sandbox addCallback

2009-07-14 Thread Nicholas Bilyk
I've narrowed the problem down further.

The Security.allowDomain("*") does allow this to work in flash.  In Flex, my 
problems are coming from the BrowserHistory javascript, that doesn't wait until 
the point where the Security.allowDomain call is made, causing a js error.



[flexcoders]

2009-07-14 Thread Gustavo Duenas



Hi coders, I have installed the flex 4 sdk (placed onto the sdk  
folder on flex builder 3)

onto my flex builder 3

let me know if I'm doing something possible or not.

Gustavo





[flexcoders] Re: Flex logging

2009-07-14 Thread valdhor
Shared Objects?



--- In flexcoders@yahoogroups.com, "vladakg85"  wrote:
>
> Hi,
> 
> I need to setup my flex application to save log information in some *.txt 
> file, but I don't know how to setup this. Help me :(
>




[flexcoders] Re: LCDS fallback and firewalls which inspect packets

2009-07-14 Thread valdhor
Just a couple of ideas...

Try AMF over HTTPS.

Could you use PPTP or L2TP?


--- In flexcoders@yahoogroups.com, Johannes Nel  wrote:
>
> Someone must see some easy money here! come on people!
> 
> On Tue, Jul 14, 2009 at 3:03 PM, Johannes Nel wrote:
> 
> > I have. They  are not prepared to change their setup so I really want to
> > get hold of an expert who can solve or answer with finality.
> >
> >
> >
> > On Tue, Jul 14, 2009 at 2:54 PM, Tom Chiverton <
> > tom.chiver...@...> wrote:
> >
> >>
> >>
> >>  On Tuesday 07 Jul 2009, Johannes Nel wrote:
> >> > deity, has a network which inspects packets. They seem to be throwing
> >> out
> >> > out all my AMF over http packets. So...is there something I can do?
> >>
> >> Presumably this is more than inspection, it's some sort of
> >> MPLS/DPI/application protocol security/etc. that rejects unknown (or
> >> unauthorised) protocols.
> >> I suggest you find their IT bods.
> >>
> >>
> >> --
> >> Helping to advantageously syndicate turn-key robust high-yield granular
> >> communities as part of the IT team of the year, '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.
> >>  
> >>
> >
> >
> >
> > --
> > j:pn
> > \\no comment
> >
> 
> 
> 
> -- 
> j:pn
> \\no comment
>




[flexcoders] remote sandbox addCallback

2009-07-14 Thread Nicholas Bilyk
I have a swf that I'm trying to embed across sites. 

In the simplest form of the problem, I have the actionscript:

ExternalInterface.addCallback('foo', test);
function test():void {
// Do stuff
}

When the swf is embedded on the page in the same domain, the callback works.  
If the swf is loaded from a remote domain, the callback fails.  
I have allowScriptAccess="always", that allows the swf to call javascript, but 
not the javascript to call methods on the swf.

I have tried:
crossdomain policy
Security.allowDomain("*");

I just can't find the magic to make this work...
Any help will be greatly appreciated.

-Nick




[flexcoders] Annotating a PieChart

2009-07-14 Thread tphipps
Has anyone played with the PolarDataCanvas canvas object to annotate Pie 
Charts? There are plenty of examples in the Live Docs and elsewhere on the web 
on how to annotate Bar and Column Charts (using a CartesianDataCanvas), but 
none that I can find using PieCharts.

Assuming that a valid NameField assigned to the chart's PieSeries is "Yellow", 
is it as simple as the following code?

var columnLabel:Label = new Label();
columnLabel.setStyle("fontWeight", "bold");
columnLabel.setStyle("color", "0x66");
columnLabel.text = "Hello"
annotationCanvas.addDataChild(columnLabel,'Yellow');

When called, this causes the chart to re-draw, but nothing appears inside the 
"Yellow" wedge.

I know that I could use labelPosition="inside" to accomplish something similar, 
but I already have callout labels and need an inner label in addition.

Thanks!
Toby



[flexcoders] Drag n Drop from one Flex application to another Flex application.

2009-07-14 Thread avibhujade
Hi, 

I have two flex applications and I want to drag n drop display objects 
for one application to another application. Is this possible? if yes 
please provide some pointers. 


Thanks, 
Avi 






[flexcoders] can't launch application

2009-07-14 Thread fgno...@rocketmail.com
I just transferred my project from one computer to another. The project has 
multiple applications, one of which is named "index.mxml". Everytime I try to 
launch an application it will only launch index.mxml and not the one I'm trying 
to launch. Project worked fine on my other computer (which has crashed since) 
but can't seem to figure this out.

thx!

Faith



[flexcoders] Re: Livecycle DS with Flex Questions

2009-07-14 Thread postwick
1 - as far as I know, it doesn't care what app it is.  if you're subscribed to 
that data service, that's all that matters.

2 - yes.  I get to go back to the drawing board on about 40% of my app because 
I just learned how to use the data service...and everything so far is 
remoteobjects.  but it's going to make life S much easier.

3 - here is a great tutorial: 
http://www.adobe.com/devnet/coldfusion/articles/data_app.html

--- In flexcoders@yahoogroups.com, "Wally Kolcz"  wrote:
>
> I am trying to get into using LiveCycle DS with my Flex app. I have a couple 
> question for anyone who uses it and understands it.
> 
> 1.) If I were to have 2 seperate applications (swfs, client / admin) that 
> both subscribe to the same destination, when a change is made (say a admin 
> adds a records) would the client be notified of the change or doe it all have 
> to be a single application? My site has 2 Flex application in different 
> folders. I would like the changes to be reflected on the public's application 
> if the admins make a change.
> 
> 2.) I have used RemoteObject extensively with my CFC's to push data to my 
> application. Does DataService replace RemoteObject by connecting to my CFCs 
> and using them to connect to my SQL server?
> 
> 3.) Does anyone know a good tutorial on how to create a destination in the  
> data-management-config.xml file to point to a CFC?
> 
> Thanks!
>




[flexcoders] Livecycle DS with Flex Questions

2009-07-14 Thread Wally Kolcz
I am trying to get into using LiveCycle DS with my Flex app. I have a couple 
question for anyone who uses it and understands it.

1.) If I were to have 2 seperate applications (swfs, client / admin) that both 
subscribe to the same destination, when a change is made (say a admin adds a 
records) would the client be notified of the change or doe it all have to be a 
single application? My site has 2 Flex application in different folders. I 
would like the changes to be reflected on the public's application if the 
admins make a change.

2.) I have used RemoteObject extensively with my CFC's to push data to my 
application. Does DataService replace RemoteObject by connecting to my CFCs and 
using them to connect to my SQL server?

3.) Does anyone know a good tutorial on how to create a destination in the  
data-management-config.xml file to point to a CFC?

Thanks!



Re: [flexcoders] LCDS fallback and firewalls which inspect packets

2009-07-14 Thread Johannes Nel
Someone must see some easy money here! come on people!

On Tue, Jul 14, 2009 at 3:03 PM, Johannes Nel wrote:

> I have. They  are not prepared to change their setup so I really want to
> get hold of an expert who can solve or answer with finality.
>
>
>
> On Tue, Jul 14, 2009 at 2:54 PM, Tom Chiverton <
> tom.chiver...@halliwells.com> wrote:
>
>>
>>
>>  On Tuesday 07 Jul 2009, Johannes Nel wrote:
>> > deity, has a network which inspects packets. They seem to be throwing
>> out
>> > out all my AMF over http packets. So...is there something I can do?
>>
>> Presumably this is more than inspection, it's some sort of
>> MPLS/DPI/application protocol security/etc. that rejects unknown (or
>> unauthorised) protocols.
>> I suggest you find their IT bods.
>>
>>
>> --
>> Helping to advantageously syndicate turn-key robust high-yield granular
>> communities as part of the IT team of the year, '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.
>>  
>>
>
>
>
> --
> j:pn
> \\no comment
>



-- 
j:pn
\\no comment


[flexcoders] [Gumbo] Gumbo equivalent of ViewStack

2009-07-14 Thread Charles Parcell
Is there an equivalent of the the Halo ViewStack? The issue is that it
indicates only Halo components can be placed inside a ViewStack. So if I
want to put Spark components within what should I use?

Charles P.


[flexcoders] Re: Possible to create a chart with clustered & overlaid columns? (picture inside)

2009-07-14 Thread EddieBerman

While I haven't yet attempted that layout, here are my thoughts on one
potential path:

You'll need 5 series, with the first one (series 0) being the composite
(as the series are drawn from 0 to n, and if the composite column was
the last one it would draw over the previous columns).

You'll need to adjust the individual series columnWidthRatios and
offsets so that series 0 and series 1 start at the same x position, and
(obviously) series 1-4 take up the space of 5 series columns.

You'll need to have an itemRenderer for series 0. Override
updateDisplayList() and set the unscaledWidth to be wide enough to span
series 1-4.

Here are some potentially helpful links:
1) demonstrates tampering with columnWidthRatio and offsets:
http://www.stretchmedia.ca/code_examples/offset_calculator/SeriesOffsetC\
alculator.html


2) QuietlyScheming shows an example of complex stacking which you'll
need since series 0 is a composite:
  http://demo.quietlyscheming.com/ChartSampler/app.html


That's only a start as you'll still need to also create a custom legend
and deal with the challenge of having the first 4 clusters blue-ish and
the next 4 orange-y.  Having custom itemRenderers should help with that
coloring issue.

Good luck!
-Eddie B.


--- In flexcoders@yahoogroups.com, "gmoniey22"  wrote:
>
> I haven't been able to find an example of this, or any indication in
the docs of how to do this, but I would imagine it is possible.
>
> I want to chart some data that is hierarchical. Essentially each
parent has a few children. I want the children to be clustered columns
inside a big column which indicates the parent (which is the sum of all
the children)
>
> I found this example image which kinda shows what I am thinking of:
> http://peltiertech.com/images/2009-02/MariBar_OverlapColumns.png
>
> Thanks!
>




[flexcoders] using as an xaxis label on a bar chart

2009-07-14 Thread shafram
Hi, I have a string '' and I need to have the entire 
string be used as an x-axis label and in the datatip on a bar chart (including 
the ). I can't see to be able to do this. 

Is there any way I can have this entire string displayed? 



[flexcoders] Re: create class on the fly

2009-07-14 Thread ag_rcuren
To return a class is pretty simple. If you look at the source of the Modules 
they have create method. For my example they are returning instances but there 
is no reason you can not return a Class from these, infact I have done it 
before so I know it works.

import mystuff.junk.SomeClass;
import mystuff.junk.AnotherClass;

public function create(type:String):*
{
switch (type)
{
case "SomeClass":
return SomeClass
case "AnotherClass":
return AnotherClass
break;
default:
break;
}
return null;
}

This will give you back a Class which you can then use as expected. 

Looking at it now I should have used a different name other than 
createdInstance for the getter in DynamicFactory because it really does not 
have to be an instance of something it can be any type.



--- In flexcoders@yahoogroups.com, "postwick"  wrote:
>
> Thanks for everyone's help.  I think this points me in the right direction.
> 
> Of course, if there's a way to successfully use data messaging without 
> instantiating classes...that would eliminate my need to do this.  But I don't 
> think there is...
> 
> --- In flexcoders@yahoogroups.com, "ag_rcuren"  wrote:
> >
> > Yes you could create the class and build it into an RSL. Once the RSL is 
> > loaded you can just reference it by name. When you add or make changes you 
> > just need to rebuild the RSL or push a new RSL out and have a way for your 
> > app to know whats available.
> > 
> > I found it easier to use Modules, because they are easier to build. I have 
> > examples of both RSL and Modules on that blog both have source enabled so 
> > you can take a look.
> > 
> > I have an app that lets users pick and choose "widgets" they want and I 
> > load only the components they want into the app via a config file. When 
> > ever I want to add new components I just publish a new module and update my 
> > database so my apps knows about it.
> > 
> > --- In flexcoders@yahoogroups.com, "postwick"  wrote:
> > >
> > > From your blog post...
> > > 
> > > var myClass:Class = 
> > > getDefinitionByName("com.myDomain.myPackage.SomeClass");
> > > 
> > > 
> > > Does this mean I don't have to create the class as a .as file and compile 
> > > it into the SWF, I can just reference it this way?  Then I could add a 
> > > new class to myPackage and tell my app (via db, XML, etc) that there is a 
> > > new class there to load?
> > > 
> > > The point to all of this is a dynamic application where an end user can 
> > > add their own tables, and I need classes for those objects so that I can 
> > > pass them back and forth with data messaging. 
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, Alan Shaw  wrote:
> > > >
> > > > There are a number of important techniques for manipulating classes (as 
> > > > detailed
> > > > in my post http://nodename.com/blog/2008/06/15/upon-reflection/ ), but
> > > > unfortunately
> > > > creating a class at runtime is not possible in AS3.
> > > > 
> > > > On Mon, Jul 13, 2009 at 8:23 PM, postwick wrote:
> > > > >
> > > > >
> > > > > I want to store descriptions of classes in an external file (such as 
> > > > > XML) or
> > > > > database, and use them in my Flex application such that I can add, 
> > > > > remove,
> > > > > or change the classes in the external file with recompling the Flex
> > > > > application.
> > > > >
> > > > > Is there any way to do this? In a nutshell, is there a way to create 
> > > > > a class
> > > > > through an Actionscript function, with a for loop where the 
> > > > > information that
> > > > > is looped over contains the definitions of the classes loaded from an
> > > > > external source?
> > > > >
> > > > >
> > > >
> > >
> >
>




Re: [flexcoders] Re: create class on the fly

2009-07-14 Thread mark . jonkman
Hi 

Somewhere you will need to write an .as file and compile it into a swf in order 
to use it at runtime. Flash can't compile an .as file or a string at runtime. 

You can however, compile any number of .as files into a Flex Library project, 
load that library at runtime then using getDefinitionByName retrieve the class 
reference then instantiate it. 

One way I do this in a semi automated way is as follows: 

Create a series of Flex Library projects in Flex Builder or Flash Builder. 
Create the appropriate classes in each of the library projects. 
Create one Flex project and name it something like Library_Builder. 
Link all the Flex Library projects against it as RSLs 
Set each RSL to auto-extract and give it a directory and filename to 
autoextract into. 
Then I compile that one project to recompile all my libraries and when I need 
the runtime (vs. debug versions) I just do a release build. 

I never post the Library_Builder project to my site, it has no code in it, it 
simply serves to build the debug and release versions of my libraries en-masse 
without having to do a lot of jumping through hoops. I actually configure the 
Library_Builder to build itself into the debug folder of my real project and 
the release into the release folder of my real project. I just skip posting it 
and even if it gets posted by accident, its totally useless. One could link a 
folder in Flex Builder from one project to another, but I like to check my 
folders into SVN and it gets checked out to the server so its easier to do it 
into my main project. 

You can have as many library projects as you want to break things into 
"modular" libraries to load on demand at runtime into your main project. To 
have a lot of one class library projects would be rather a nightmare to deal 
with, but grouping classes that are used together into the same library project 
is often wiser and less prone to dependency errors. Dependeny errors result if 
your library project needs access to classes in another library and that 
library is linked to as an external library during compile. Then you need to 
make sure the dependencies are resolved by having all necesary libraries 
loaded. I tend to use only a handful of very distinct libraries like this where 
all the dependencies are pretty much resolved internally or can be resolved by 
loading a single common library upfront first. 

I don't have access to the full thread right now so I'm not sure exactly what 
you are doing. But in order to access a class you need a compiled version of 
the class - aka in a swf somewhere. And you need to know the name of the class 
(fully qualified). You need to load the swf at runtime then access the class. 

Sincerely 
Mark R. Jonkman 




- Original Message - 
From: "postwick"  
To: flexcoders@yahoogroups.com 
Sent: Tuesday, July 14, 2009 9:32:02 AM GMT -05:00 US/Canada Eastern 
Subject: [flexcoders] Re: create class on the fly 

>From your blog post... 

var myClass:Class = getDefinitionByName("com.myDomain.myPackage.SomeClass"); 


Does this mean I don't have to create the class as a .as file and compile it 
into the SWF, I can just reference it this way? Then I could add a new class to 
myPackage and tell my app (via db, XML, etc) that there is a new class there to 
load? 

The point to all of this is a dynamic application where an end user can add 
their own tables, and I need classes for those objects so that I can pass them 
back and forth with data messaging. 


--- In flexcoders@yahoogroups.com, Alan Shaw  wrote: 
> 
> There are a number of important techniques for manipulating classes (as 
> detailed 
> in my post http://nodename.com/blog/2008/06/15/upon-reflection/ ), but 
> unfortunately 
> creating a class at runtime is not possible in AS3. 
> 
> On Mon, Jul 13, 2009 at 8:23 PM, postwick wrote: 
> > 
> > 
> > I want to store descriptions of classes in an external file (such as XML) 
> > or 
> > database, and use them in my Flex application such that I can add, remove, 
> > or change the classes in the external file with recompling the Flex 
> > application. 
> > 
> > Is there any way to do this? In a nutshell, is there a way to create a 
> > class 
> > through an Actionscript function, with a for loop where the information 
> > that 
> > is looped over contains the definitions of the classes loaded from an 
> > external source? 
> > 
> > 
> 




 

-- 
Flexcoders Mailing List 
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links 





[flexcoders] Re: create class on the fly

2009-07-14 Thread postwick
Thanks for everyone's help.  I think this points me in the right direction.

Of course, if there's a way to successfully use data messaging without 
instantiating classes...that would eliminate my need to do this.  But I don't 
think there is...

--- In flexcoders@yahoogroups.com, "ag_rcuren"  wrote:
>
> Yes you could create the class and build it into an RSL. Once the RSL is 
> loaded you can just reference it by name. When you add or make changes you 
> just need to rebuild the RSL or push a new RSL out and have a way for your 
> app to know whats available.
> 
> I found it easier to use Modules, because they are easier to build. I have 
> examples of both RSL and Modules on that blog both have source enabled so you 
> can take a look.
> 
> I have an app that lets users pick and choose "widgets" they want and I load 
> only the components they want into the app via a config file. When ever I 
> want to add new components I just publish a new module and update my database 
> so my apps knows about it.
> 
> --- In flexcoders@yahoogroups.com, "postwick"  wrote:
> >
> > From your blog post...
> > 
> > var myClass:Class = getDefinitionByName("com.myDomain.myPackage.SomeClass");
> > 
> > 
> > Does this mean I don't have to create the class as a .as file and compile 
> > it into the SWF, I can just reference it this way?  Then I could add a new 
> > class to myPackage and tell my app (via db, XML, etc) that there is a new 
> > class there to load?
> > 
> > The point to all of this is a dynamic application where an end user can add 
> > their own tables, and I need classes for those objects so that I can pass 
> > them back and forth with data messaging. 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, Alan Shaw  wrote:
> > >
> > > There are a number of important techniques for manipulating classes (as 
> > > detailed
> > > in my post http://nodename.com/blog/2008/06/15/upon-reflection/ ), but
> > > unfortunately
> > > creating a class at runtime is not possible in AS3.
> > > 
> > > On Mon, Jul 13, 2009 at 8:23 PM, postwick wrote:
> > > >
> > > >
> > > > I want to store descriptions of classes in an external file (such as 
> > > > XML) or
> > > > database, and use them in my Flex application such that I can add, 
> > > > remove,
> > > > or change the classes in the external file with recompling the Flex
> > > > application.
> > > >
> > > > Is there any way to do this? In a nutshell, is there a way to create a 
> > > > class
> > > > through an Actionscript function, with a for loop where the information 
> > > > that
> > > > is looped over contains the definitions of the classes loaded from an
> > > > external source?
> > > >
> > > >
> > >
> >
>




[flexcoders] Re: create class on the fly

2009-07-14 Thread ag_rcuren
Yes you could create the class and build it into an RSL. Once the RSL is loaded 
you can just reference it by name. When you add or make changes you just need 
to rebuild the RSL or push a new RSL out and have a way for your app to know 
whats available.

I found it easier to use Modules, because they are easier to build. I have 
examples of both RSL and Modules on that blog both have source enabled so you 
can take a look.

I have an app that lets users pick and choose "widgets" they want and I load 
only the components they want into the app via a config file. When ever I want 
to add new components I just publish a new module and update my database so my 
apps knows about it.

--- In flexcoders@yahoogroups.com, "postwick"  wrote:
>
> From your blog post...
> 
> var myClass:Class = getDefinitionByName("com.myDomain.myPackage.SomeClass");
> 
> 
> Does this mean I don't have to create the class as a .as file and compile it 
> into the SWF, I can just reference it this way?  Then I could add a new class 
> to myPackage and tell my app (via db, XML, etc) that there is a new class 
> there to load?
> 
> The point to all of this is a dynamic application where an end user can add 
> their own tables, and I need classes for those objects so that I can pass 
> them back and forth with data messaging. 
> 
> 
> --- In flexcoders@yahoogroups.com, Alan Shaw  wrote:
> >
> > There are a number of important techniques for manipulating classes (as 
> > detailed
> > in my post http://nodename.com/blog/2008/06/15/upon-reflection/ ), but
> > unfortunately
> > creating a class at runtime is not possible in AS3.
> > 
> > On Mon, Jul 13, 2009 at 8:23 PM, postwick wrote:
> > >
> > >
> > > I want to store descriptions of classes in an external file (such as XML) 
> > > or
> > > database, and use them in my Flex application such that I can add, remove,
> > > or change the classes in the external file with recompling the Flex
> > > application.
> > >
> > > Is there any way to do this? In a nutshell, is there a way to create a 
> > > class
> > > through an Actionscript function, with a for loop where the information 
> > > that
> > > is looped over contains the definitions of the classes loaded from an
> > > external source?
> > >
> > >
> >
>




Re: [flexcoders] Re: create class on the fly

2009-07-14 Thread mark . jonkman
Hi 

If you load a module that has a pile of classes in it, you can instantiate them 
without having a static reference in your original code. However, you do need 
to be a bit cautious. 

By default, modules load into a child of Application.currentDomain and thus 
aren't as "accessible" as classes loaded directly into 
ApplicationDomain.currentDomain. 

If you want to create a module or code library that you can load and have 
complete access to at runtime as if it's classes were a part of your project 
then you need to create a new LoaderContext using 
ApplicationDomain.currentDomain and use that LoaderContext to load your module. 

Once loaded, you can use a variety of methods to get at the classes. When I do 
this I often have the class names as strings in an XML file that I load so I 
don't need to do any guessing. I simply look up the class name in the xml, then 
use getDefinitionByName(className) as Class and then if that returns a Class I 
simply instantiate that class. But then again I'm loading the library into 
Application.currentDomain because I intend to use it throughout the project and 
have no need to child domain the stuff. 

If you put things into an XML file try to avoid a few things like naming a node 
or attribute "class", I normally use the attribute "class" but as a consequence 
I need to access the attribute using myNode.attribute("class") vs. 
myno...@class since @class will fail because "class" is a reserved word and 
Flex no like that. I'm stuborn and I like to call things what they are, but as 
a consequence I hit the occassional compile error for my stubborness. 

Not sure if that helps you at all. 

Sincerely 
Mark R. Jonkman 

- Original Message - 
From: "postwick"  
To: flexcoders@yahoogroups.com 
Sent: Tuesday, July 14, 2009 9:26:38 AM GMT -05:00 US/Canada Eastern 
Subject: [flexcoders] Re: create class on the fly 

If I compile the class as a module, can I then load it in without having to 
statically reference it in my compiled code? I can predict the package name 
based on data from my database ie com.something.somethingelse etc. Then I could 
compile new classes as needed and load them. 

--- In flexcoders@yahoogroups.com, Alan Shaw  wrote: 
> 
> There are a number of important techniques for manipulating classes (as 
> detailed 
> in my post http://nodename.com/blog/2008/06/15/upon-reflection/ ), but 
> unfortunately 
> creating a class at runtime is not possible in AS3. 
> 
> On Mon, Jul 13, 2009 at 8:23 PM, postwick wrote: 
> > 
> > 
> > I want to store descriptions of classes in an external file (such as XML) 
> > or 
> > database, and use them in my Flex application such that I can add, remove, 
> > or change the classes in the external file with recompling the Flex 
> > application. 
> > 
> > Is there any way to do this? In a nutshell, is there a way to create a 
> > class 
> > through an Actionscript function, with a for loop where the information 
> > that 
> > is looped over contains the definitions of the classes loaded from an 
> > external source? 
> > 
> > 
> 




 

-- 
Flexcoders Mailing List 
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links 





[flexcoders] Re: create class on the fly

2009-07-14 Thread postwick
Yeah, I saw your post in my hours of Googling last night.  Seems very 
promising.  The idea is to have a database table that stores a list of classes 
and their properties, and instantiate them at runtime without having to 
recompile the app - so that if a new class is added to the db my app can use it 
on the fly.

Would your method of using Modules solve this?  It appears so, but I haven't 
had a chance to try it out. In your post you say:

"This setup is very flexible because I can return both instances and classes 
from the Module."

Can you give me an example of how you would return a Class?

--- In flexcoders@yahoogroups.com, "ag_rcuren"  wrote:
>
> This might help you, its a little something I wrote a little while ago.
> 
> http://flexinonroids.wordpress.com/2009/05/27/flex-3-dynamically-loading-components-at-runtime/
> 
> 
> --- In flexcoders@yahoogroups.com, "postwick"  wrote:
> >
> > If I compile the class as a module, can I then load it in without having to 
> > statically reference it in my compiled code?  I can predict the package 
> > name based on data from my database ie com.something.somethingelse etc.  
> > Then I could compile new classes as needed and load them.
> > 
> > --- In flexcoders@yahoogroups.com, Alan Shaw  wrote:
> > >
> > > There are a number of important techniques for manipulating classes (as 
> > > detailed
> > > in my post http://nodename.com/blog/2008/06/15/upon-reflection/ ), but
> > > unfortunately
> > > creating a class at runtime is not possible in AS3.
> > > 
> > > On Mon, Jul 13, 2009 at 8:23 PM, postwick wrote:
> > > >
> > > >
> > > > I want to store descriptions of classes in an external file (such as 
> > > > XML) or
> > > > database, and use them in my Flex application such that I can add, 
> > > > remove,
> > > > or change the classes in the external file with recompling the Flex
> > > > application.
> > > >
> > > > Is there any way to do this? In a nutshell, is there a way to create a 
> > > > class
> > > > through an Actionscript function, with a for loop where the information 
> > > > that
> > > > is looped over contains the definitions of the classes loaded from an
> > > > external source?
> > > >
> > > >
> > >
> >
>




[flexcoders] Re: create class on the fly

2009-07-14 Thread postwick
>From your blog post...

var myClass:Class = getDefinitionByName("com.myDomain.myPackage.SomeClass");


Does this mean I don't have to create the class as a .as file and compile it 
into the SWF, I can just reference it this way?  Then I could add a new class 
to myPackage and tell my app (via db, XML, etc) that there is a new class there 
to load?

The point to all of this is a dynamic application where an end user can add 
their own tables, and I need classes for those objects so that I can pass them 
back and forth with data messaging. 


--- In flexcoders@yahoogroups.com, Alan Shaw  wrote:
>
> There are a number of important techniques for manipulating classes (as 
> detailed
> in my post http://nodename.com/blog/2008/06/15/upon-reflection/ ), but
> unfortunately
> creating a class at runtime is not possible in AS3.
> 
> On Mon, Jul 13, 2009 at 8:23 PM, postwick wrote:
> >
> >
> > I want to store descriptions of classes in an external file (such as XML) or
> > database, and use them in my Flex application such that I can add, remove,
> > or change the classes in the external file with recompling the Flex
> > application.
> >
> > Is there any way to do this? In a nutshell, is there a way to create a class
> > through an Actionscript function, with a for loop where the information that
> > is looped over contains the definitions of the classes loaded from an
> > external source?
> >
> >
>




[flexcoders] Re: create class on the fly

2009-07-14 Thread ag_rcuren
This might help you, its a little something I wrote a little while ago.

http://flexinonroids.wordpress.com/2009/05/27/flex-3-dynamically-loading-components-at-runtime/


--- In flexcoders@yahoogroups.com, "postwick"  wrote:
>
> If I compile the class as a module, can I then load it in without having to 
> statically reference it in my compiled code?  I can predict the package name 
> based on data from my database ie com.something.somethingelse etc.  Then I 
> could compile new classes as needed and load them.
> 
> --- In flexcoders@yahoogroups.com, Alan Shaw  wrote:
> >
> > There are a number of important techniques for manipulating classes (as 
> > detailed
> > in my post http://nodename.com/blog/2008/06/15/upon-reflection/ ), but
> > unfortunately
> > creating a class at runtime is not possible in AS3.
> > 
> > On Mon, Jul 13, 2009 at 8:23 PM, postwick wrote:
> > >
> > >
> > > I want to store descriptions of classes in an external file (such as XML) 
> > > or
> > > database, and use them in my Flex application such that I can add, remove,
> > > or change the classes in the external file with recompling the Flex
> > > application.
> > >
> > > Is there any way to do this? In a nutshell, is there a way to create a 
> > > class
> > > through an Actionscript function, with a for loop where the information 
> > > that
> > > is looped over contains the definitions of the classes loaded from an
> > > external source?
> > >
> > >
> >
>




[flexcoders] Re: create class on the fly

2009-07-14 Thread postwick
If I compile the class as a module, can I then load it in without having to 
statically reference it in my compiled code?  I can predict the package name 
based on data from my database ie com.something.somethingelse etc.  Then I 
could compile new classes as needed and load them.

--- In flexcoders@yahoogroups.com, Alan Shaw  wrote:
>
> There are a number of important techniques for manipulating classes (as 
> detailed
> in my post http://nodename.com/blog/2008/06/15/upon-reflection/ ), but
> unfortunately
> creating a class at runtime is not possible in AS3.
> 
> On Mon, Jul 13, 2009 at 8:23 PM, postwick wrote:
> >
> >
> > I want to store descriptions of classes in an external file (such as XML) or
> > database, and use them in my Flex application such that I can add, remove,
> > or change the classes in the external file with recompling the Flex
> > application.
> >
> > Is there any way to do this? In a nutshell, is there a way to create a class
> > through an Actionscript function, with a for loop where the information that
> > is looped over contains the definitions of the classes loaded from an
> > external source?
> >
> >
>




Re: [flexcoders] Eclipse and flex setup questions

2009-07-14 Thread Howard Fore
Tom, what does XSD4MXML do? The info on the Google Code page doesn't make it
clear how it relates to code hinting.

--
Howard Fore, howard.f...@hofo.com
"The worthwhile problems are the ones you can really solve or help solve,
the ones you can really contribute something to. ... No problem is too small
or too trivial if we can really do something about it." - Richard P. Feynman


On Tue, Jul 14, 2009 at 8:55 AM, Tom Chiverton  wrote:

> > 2) Is there any way to add code hint (Ctrl + Space) while coding AS3
> class
> > or MXML file inside eclipse?
>
> XSD4MXML from Google code, plus Eclipse's WTP. Or buy Flex Builder from
> Adobe
> which is an Eclipse plugin.
>


Re: [flexcoders] LCDS fallback and firewalls which inspect packets

2009-07-14 Thread Johannes Nel
I have. They  are not prepared to change their setup so I really want to get
hold of an expert who can solve or answer with finality.


On Tue, Jul 14, 2009 at 2:54 PM, Tom Chiverton  wrote:

>
>
>  On Tuesday 07 Jul 2009, Johannes Nel wrote:
> > deity, has a network which inspects packets. They seem to be throwing out
> > out all my AMF over http packets. So...is there something I can do?
>
> Presumably this is more than inspection, it's some sort of
> MPLS/DPI/application protocol security/etc. that rejects unknown (or
> unauthorised) protocols.
> I suggest you find their IT bods.
>
>
> --
> Helping to advantageously syndicate turn-key robust high-yield granular
> communities as part of the IT team of the year, '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.
>  
>



-- 
j:pn
\\no comment


Re: [flexcoders] Eclipse and flex setup questions

2009-07-14 Thread Tom Chiverton
On Tuesday 07 Jul 2009, vladakg85 wrote:
> 1) What is better to use for build code with ANT or without ANT?

Without, to start with. It's less to learn or have break.

> 2) Is there any way to add code hint (Ctrl + Space) while coding AS3 class
> or MXML file inside eclipse?

XSD4MXML from Google code, plus Eclipse's WTP. Or buy Flex Builder from Adobe 
which is an Eclipse plugin.

> 3) For code colors, is there some better way than using Java for AS and XML
> for MXML?

See above :-)

-- 
Helping to continually leverage magnetic sticky appliances as part of the IT 
team of the year, '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.

Re: [flexcoders] Gumbo Graphs

2009-07-14 Thread Tom Chiverton
On Monday 13 Jul 2009, Peter Cowling wrote:
> I have not used fx:Application before; is it not s:Application?

You can use anything to the left of the colon you like, as long as you declare 
the XMLNS at the top.

> 1. I can compile in Flash Builder 4, using the old (2006) mxml namespace
> (at the application level); switch that out and try to use the new
> namespace - or a combination of the two, and no dice. 

It is not expected that you can just change the namespace and compiler and 
have it work, as far as I am aware.

> 2. A bit of scouting 
> pinpoints the issue as being where degrafa has things like Rectangles and
> Matrix3D, which have equivalents in Flex 4, but are different - in terms of
> their property names, and sometimes operations. 3. Degrafa do not claim to
> support Flex 4 - only 3 (and perhaps 2, I cannot remember).

I suggest you ask them about their Flex 4 plans then. They probably have a 
beta program or something.

-- 
Helping to heterogeneously embrace total mission-critical clusters as part of 
the IT team of the year, '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.

Re: [flexcoders] LCDS fallback and firewalls which inspect packets

2009-07-14 Thread Tom Chiverton
On Tuesday 07 Jul 2009, Johannes Nel wrote:
> deity, has a network which inspects packets. They seem to be throwing out
> out all my AMF over http packets. So...is there something I can do?

Presumably this is more than inspection, it's some sort of 
MPLS/DPI/application protocol security/etc. that rejects unknown (or 
unauthorised) protocols.
I suggest you find their IT bods.


-- 
Helping to advantageously syndicate turn-key robust high-yield granular 
communities as part of the IT team of the year, '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: Issue adding an Image component to a custom component

2009-07-14 Thread gordofeatherfoot
Hey Alex,

Thanks for your reply.

I solved my issue. for some reason my custom component never got it's 
systemManager set. This is not a problem when all you add to the component are 
Hboxes or labels apparently, but as soon as you add an image the systemManager 
must be set.
All i did was to set it manually in the preinitialize event handler of my 
weather component :

this.systemManager = this.parentDocument.systemManager.

After that it worked like a charm!

Do you know when the systemManager is set in the components lifecycle? Maybe it 
wasn't set because my creation policy was set to "none" ... just a wild guess 
really :-)

Thanks for your help,

Tony.

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Maybe IDSWeather::init() is being called before IDSWeather has been added as 
> a child to a container.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of gordofeatherfoot
> Sent: Monday, July 13, 2009 8:52 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Issue adding an Image component to a custom component
> 
> 
> 
> 
> 
> Hello,
> 
> I have a problem that is not so easy to expose so please bare with me.
> 
> I have a Component class written is AS3 which extends the Canvas Class. I 
> then have a weather component written in mxml that uses as a base the the 
> Component class. ie my weather component.mxml looks something like this:
> 
>  xmlns:components="net.zz.components.*"
> xmlns:mx="http://www.adobe.com/2006/mxml";
> verticalScrollPolicy="off" horizontalScrollPolicy="off"
> preinitialize="onPreInitialize()">
> ...
> ...
> 

Re: [flexcoders] Re: "undefined" in stack trace (Console), stack overflow

2009-07-14 Thread thomas parquier
I think errors can be thrown using a localized string (from a resource
bundle), so I'm not sure but I think a missing translation can cause an
"undefined".

thomas
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net 
téléphone portable : +33601 822 056


2009/7/14 Erik de Bruin 

>
>
> Thomas,
>
> Can you elaborate? I'm seeing this problem when I run the code in AIR
> on a Mac with a US MacOS Leopard.
>
> Thanks,
>
> EdB
>
> On Fri, Jul 10, 2009 at 9:33 PM, thomas
>
> parquier>
> wrote:
> >
> >
> > I think "undefined" can come from a problem of error string localization.
> >
> > thomas
> > ---
> > http://www.web-attitude.fr/
> > msn : thomas.parqu...@web-attitude.fr
> > softphone : sip:webattit...@ekiga.net 
> > téléphone portable : +33601 822 056
> >
> >
> > 2009/7/9 erikdebruin_nl 
> >
> >>
> >>
> >> Hi Thomas,
> >>
> >> Thanks for your patience.
> >>
> >> I wasn't clear about the "undefined": it is not a regular trace() line
> >> (which show up in black in the Console), it is the word "undefined" in
> RED
> >> and it shows up as the top line of the stack trace dump after the crash,
> >> like this:
> >>
> >> 
> >> SWF] Presenter_AIR.swf - 2,508,088 bytes after decompression
> >> undefined
> >> at
> >>
> nl.ixms.app.data::SheetItem/loadFromDbResultHandler()[/{removed}/SheetItem.as:114]
> >> at nl.ixms.db::Db/dbResultHandler()[/{removed}/Db.as:214]
> >> at flash.data::SQLStatement/internalExecute()
> >> at flash.data::SQLStatement/execute()
> >> etc.
> >> 
> >>
> >> EdB
> >>
> >> --- In flexcoders@yahoogroups.com ,
> thomas parquier 
> >> wrote:
> >> >
> >> > I would say the "undefined" trace matches a simple "trace(one_var);"
> in
> >> > a
> >> > file which is particular to your offline project (not in shared libs).
> >> >
> >> > To talk again about events based stack overflow, I would put two
> >> > surrounding
> >> > "trace" in event handlers to see stacked functions :
> >> >
> >> > > function handlerFunction(e:event):void {
> >> > > trace('handlerFunction for', e.type);
> >> > > // code goes here
> >> > > trace('/handlerFunction for',e.type);
> >> > > }
> >> >
> >> >
> >> >
> >> > thomas
> >> > ---
> >> > http://www.web-attitude.fr/
> >> > msn : thomas.parqu...@...
> >> > softphone : sip:webattit...@...  >> > téléphone portable : +33601 822 056
> >> >
> >> >
> >> > 2009/7/8 Erik de Bruin erikdebr...@...
> >> >
> >> > >
> >> > >
> >> > > Hi,
> >> > >
> >> > > Thanks for your swift reply.
> >> > >
> >> > > I did a check to see if what you suggest might be the case, by
> >> > > inserting a trace() in all the event dispatch and handler functions,
> >> > > but nowhere in the chain does this type of recursion occur.
> >> > >
> >> > > I do however see that the entire chain is run dozens of times, while
> >> > > the data structure is build from the data in the database. But this
> is
> >> > > expected behavior, and the case remains that this code functions
> >> > > flawlessly in the online version (again, build from the same
> >> > > codebase).
> >> > >
> >> > > Any suggestions on how to proceed with debugging, as well as why the
> >> > > stack trace shows a single final line with only the word "undefined"
> >> > > in it, are much apreciated.
> >> > >
> >> > > Regards,
> >> > >
> >> > > EdB
> >> > >
> >> > >
> >> > > On Wed, Jul 8, 2009 at 5:44 PM, thomas
> >> > > parquiermailingli...@... >
> >> > > wrote:
> >> > > >
> >> > > >
> >> > > > You may have one type of event (A) handled in a function which
> >> > > > dispatches
> >> > > > another type of event (B) handled in a function which dispatches
> an
> >> > > > event
> >> > > of
> >> > > > type A. If dispatching occurs before handler functions return you
> >> > > > may get
> >> > > a
> >> > > > stack overflow.
> >> > > >
> >> > > > thomas
> >> > > > ---
> >> > > > http://www.web-attitude.fr/
> >> > >
> >> > > > msn : thomas.parqu...@...
> >> > > > softphone : sip:webattit...@... 
> >> > > > téléphone portable : +33601 822 056
> >> > > >
> >> > > >
> >> > > > 2009/7/8 erikdebruin_nl
> >> > > > 
> >> > > >
> >> > > >>
> >> > > >>
> >> > > >> Hi,
> >> > > >>
> >> > > >> I've Googled me senseless, but I can't find a clue to my latest
> >> > > >> problem:
> >> > > >>
> >> > > >> When I run my application in the browser, all is fine. When the
> >> > > >> same app
> >> > > >> in AIR (we've build it so the same codebase is shared between on-
> >> > > >> and
> >> > > >> offline versions), I get an exception and the last line in the
> >> > > >> stack
> >> > > trace
> >> > > >> (as shown in the Console) reads "undefined". The error dialog the
> >> > > >> player
> >> > > >> throws up (after clicking on the "Resume (F8)" button in the
> debug
> >> > > >> perspective) tells me a "stack overflow" happened.
> >> > > >>
> >> > > >> The "funny" thing is, when I disable the code that seems to be
> the
> >> > > >> cause
> >> > > >> (taking my clues from the stack trace), the problem remains, but
> >> > >

Re: [flexcoders] Re: Trying to change Flex 3 ToggleButtonBar dataprovider on user or admin log in

2009-07-14 Thread Yesaya handoyo
I got it manually,not using server call..The truth is i'm intending to
create an online store with admin backend..It just i haven't figured
how to make it..I've tried to follow
http://www.keithcraigo.com/archives/66,but when i try it,it doesn't
work the way it should be..Do you mind to point what should i
do??Thanks a lot valdhor ...

On 7/14/09, valdhor  wrote:
> So, how do you get your storeCust arrayCollection?
>
> When this is populated from the server call, check to see if there is an
> admin item. If there is, set admin.visible = true and admin.includeinlayout
> = true.
>
>
> --- In flexcoders@yahoogroups.com, Yesaya handoyo  wrote:
>>
>> I put the code on pastebin,here are the link..
>> http://www.pastebin.org/1296
>> Anyway,do you mind to give me an example for returning different
>> data??Thanks a lot...
>>
>> On 7/13/09, valdhor  wrote:
>> > If I were to do this I would return different data depending on user or
>> > admin login. The dataprovider would remain the same - just the data
>> > would
>> > change.
>> >
>> >
>> > --- In flexcoders@yahoogroups.com, "yonghan79"  wrote:
>> >>
>> >> Hi all,i'm trying to change Flex 3 ToggleButtonBar dataprovider on user
>> >> or
>> >> admin log in..I'm trying to use 2 viewstack,one for user,one for admin
>> >> and
>> >> i got a component where the login form is in the component..What should
>> >> i
>> >> do to define the dataprovider on the mainbased on user log in??Thanks a
>> >> lot...
>> >>
>> >
>> >
>> >
>>
>
>
>


[flexcoders] Tomcat LCDS configuration, contractor seeked

2009-07-14 Thread Johannes Nel
Hi All

We are having problems with configuring LCDS to work in all enviroments and
would like to hire a contracter to set it up for us. Please contact me
offlist if you have experience in this. We use  Tomcat 6 and LCDS 2.6.1.
My main concern is really fall back management.

Regards
Johan

-- 
j:pn
\\no comment


[flexcoders] Flex logging

2009-07-14 Thread vladakg85
Hi,

I need to setup my flex application to save log information in some *.txt file, 
but I don't know how to setup this. Help me :(



Re: [flexcoders] Re: "undefined" in stack trace (Console), stack overflow

2009-07-14 Thread Erik de Bruin
Thomas,

Can you elaborate? I'm seeing this problem when I run the code in AIR
on a Mac with a US MacOS Leopard.

Thanks,

EdB

On Fri, Jul 10, 2009 at 9:33 PM, thomas
parquier wrote:
>
>
> I think "undefined" can come from a problem of error string localization.
>
> thomas
> ---
> http://www.web-attitude.fr/
> msn : thomas.parqu...@web-attitude.fr
> softphone : sip:webattit...@ekiga.net
> téléphone portable : +33601 822 056
>
>
> 2009/7/9 erikdebruin_nl 
>>
>>
>> Hi Thomas,
>>
>> Thanks for your patience.
>>
>> I wasn't clear about the "undefined": it is not a regular trace() line
>> (which show up in black in the Console), it is the word "undefined" in RED
>> and it shows up as the top line of the stack trace dump after the crash,
>> like this:
>>
>> 
>> SWF] Presenter_AIR.swf - 2,508,088 bytes after decompression
>> undefined
>>     at
>> nl.ixms.app.data::SheetItem/loadFromDbResultHandler()[/{removed}/SheetItem.as:114]
>>     at nl.ixms.db::Db/dbResultHandler()[/{removed}/Db.as:214]
>>     at flash.data::SQLStatement/internalExecute()
>>     at flash.data::SQLStatement/execute()
>> etc.
>> 
>>
>> EdB
>>
>> --- In flexcoders@yahoogroups.com, thomas parquier 
>> wrote:
>> >
>> > I would say the "undefined" trace matches a simple "trace(one_var);" in
>> > a
>> > file which is particular to your offline project (not in shared libs).
>> >
>> > To talk again about events based stack overflow, I would put two
>> > surrounding
>> > "trace" in event handlers to see stacked functions :
>> >
>> > > function handlerFunction(e:event):void {
>> > > trace('handlerFunction for', e.type);
>> > > // code goes here
>> > > trace('/handlerFunction for',e.type);
>> > > }
>> >
>> >
>> >
>> > thomas
>> > ---
>> > http://www.web-attitude.fr/
>> > msn : thomas.parqu...@...
>> > softphone : sip:webattit...@... > > téléphone portable : +33601 822 056
>> >
>> >
>> > 2009/7/8 Erik de Bruin erikdebr...@...
>> >
>> > >
>> > >
>> > > Hi,
>> > >
>> > > Thanks for your swift reply.
>> > >
>> > > I did a check to see if what you suggest might be the case, by
>> > > inserting a trace() in all the event dispatch and handler functions,
>> > > but nowhere in the chain does this type of recursion occur.
>> > >
>> > > I do however see that the entire chain is run dozens of times, while
>> > > the data structure is build from the data in the database. But this is
>> > > expected behavior, and the case remains that this code functions
>> > > flawlessly in the online version (again, build from the same
>> > > codebase).
>> > >
>> > > Any suggestions on how to proceed with debugging, as well as why the
>> > > stack trace shows a single final line with only the word "undefined"
>> > > in it, are much apreciated.
>> > >
>> > > Regards,
>> > >
>> > > EdB
>> > >
>> > >
>> > > On Wed, Jul 8, 2009 at 5:44 PM, thomas
>> > > parquiermailingli...@... >
>> > > wrote:
>> > > >
>> > > >
>> > > > You may have one type of event (A) handled in a function which
>> > > > dispatches
>> > > > another type of event (B) handled in a function which dispatches an
>> > > > event
>> > > of
>> > > > type A. If dispatching occurs before handler functions return you
>> > > > may get
>> > > a
>> > > > stack overflow.
>> > > >
>> > > > thomas
>> > > > ---
>> > > > http://www.web-attitude.fr/
>> > >
>> > > > msn : thomas.parqu...@...
>> > > > softphone : sip:webattit...@... 
>> > > > téléphone portable : +33601 822 056
>> > > >
>> > > >
>> > > > 2009/7/8 erikdebruin_nl
>> > > > 
>> > > >
>> > > >>
>> > > >>
>> > > >> Hi,
>> > > >>
>> > > >> I've Googled me senseless, but I can't find a clue to my latest
>> > > >> problem:
>> > > >>
>> > > >> When I run my application in the browser, all is fine. When the
>> > > >> same app
>> > > >> in AIR (we've build it so the same codebase is shared between on-
>> > > >> and
>> > > >> offline versions), I get an exception and the last line in the
>> > > >> stack
>> > > trace
>> > > >> (as shown in the Console) reads "undefined". The error dialog the
>> > > >> player
>> > > >> throws up (after clicking on the "Resume (F8)" button in the debug
>> > > >> perspective) tells me a "stack overflow" happened.
>> > > >>
>> > > >> The "funny" thing is, when I disable the code that seems to be the
>> > > >> cause
>> > > >> (taking my clues from the stack trace), the problem remains, but
>> > > >> the
>> > > stack
>> > > >> trace tells me another line is the problem... and so on and on.
>> > > >>
>> > > >> Google tells me that a stack overflow mostly has to do with rampant
>> > > >> recursion, but my app doesn't use recursion anywhere. It does
>> > > >> however
>> > > use a
>> > > >> lot of event chains. Do these count as "recursion"?
>> > > >>
>> > > >> What does it mean that the last line of the stack trace reads
>> > > "undefined"?
>> > > >>
>> > > >> Any suggestions about further debugging my problem are very
>> > > >> welcome!
>> > > >>
>> > > >> Thanks in advance,
>> > > >>
>> > > >> EdB
>> > > >>
>> > > >
>> > > >
>> > >
>> > > --
>> > > Ix M

Re: [flexcoders] Re: "undefined" in stack trace (Console), stack overflow (2nd try)

2009-07-14 Thread Erik de Bruin
Alex,

Well, that's the thing. The code in that method doesn't seem to be the
problem. If I put the seemingly offending line in a try...catch block,
it runs without triggering the catch. And weirder still, the
"undefined" exception happens somewhere a little further in the
flow...

This happens only when I play the piece in AIR on a Mac. AIR on
windows doesn't show this problem and it also doesn't happen when the
code runs in the Flash plugin in a browser (on both platforms). Are
there any known issues that might relate to this?

Thanks again,

EdB

On Fri, Jul 10, 2009 at 8:13 PM, Alex Harui wrote:
>
>
> Or show the code in that method.  If you blow up the stack, you can’t
> guarantee you’ll get correct information in the stacktrace.
>
>
>
> Alex Harui
>
> Flex SDK Developer
>
> Adobe Systems Inc.
>
> Blog: http://blogs.adobe.com/aharui
>
>
>
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of valdhor
> Sent: Friday, July 10, 2009 9:03 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: "undefined" in stack trace (Console), stack
> overflow (2nd try)
>
>
>
>
> Possibly completely unrelated to the Stack Overflow error (Or maybe the
> change is now showing where the original error came from.
>
> I would try debugging at or around line 114 of SheetItem.as.
>
> --- In flexcoders@yahoogroups.com, "erikdebruin_nl"  wrote:
>>
>> Steve,
>>
>> No luck :-(
>>
>> The stack trace look like this:
>>
>> 
>> [SWF] Presenter_AIR.swf - 2,508,088 bytes after decompression
>> undefined
>> at
>> nl.ixms.app.data::SheetItem/loadFromDbResultHandler()[/{removed}/SheetIt\
>> em.as:114]
>> at nl.ixms.db::Db/dbResultHandler()[/{removed}/Db.as:214]
>> at flash.data::SQLStatement/internalExecute()
>> at flash.data::SQLStatement/execute()
>> >
>> Any ideas or suggestions as to what might cause the "undefined"?
>>
>> Regards,
>>
>> EdB
>>
>> --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>> >
>> > A co-worker had the same error the other day (In the web application
>> though, not in AIR): Stack Overflow.
>> >
>> > In his case it turned out to be "rampant" events. He made sure to use
>> event.stopImmediatePropagation() when the event was no longer required
>> to bubble and the error went away.
>> >
>> > This may not fix your problem but it is well worth doing.
>> >
>> >
>> > HTH.
>> >
>> >
>> > Steve
>> >
>> >
>> >
>> > --- In flexcoders@yahoogroups.com, "erikdebruin_nl"
>> > > >
>> > > Hi,
>> > >
>> > > I've Googled me senseless, but I can't find a clue to my latest
>> problem:
>> > >
>> > > When I run my application in the browser, all is fine. When the same
>> app in AIR (we've build it so the same codebase is shared between on-
>> and offline versions), I get an exception and the last line in the stack
>> trace (as shown in the Console) reads "undefined". The error dialog the
>> player throws up (after clicking on the "Resume (F8)" button in the
>> debug perspective) tells me a "stack overflow" happened.
>> > >
>> > > The "funny" thing is, when I disable the code that seems to be the
>> cause (taking my clues from the stack trace), the problem remains, but
>> the stack trace tells me another line is the problem... and so on and
>> on.
>> > >
>> > > Google tells me that a stack overflow mostly has to do with rampant
>> recursion, but my app doesn't use recursion anywhere. It does however
>> use a lot of event chains. Do these count as "recursion"?
>> > >
>> > > What does it mean that the last line of the stack trace reads
>> "undefined"?
>> > >
>> > > Any suggestions about further debugging my problem are very welcome!
>> > >
>> > > Thanks in advance,
>> > >
>> > > EdB
>> > >
>> >
>>
>
> 



-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:flexcoders-dig...@yahoogroups.com 
mailto:flexcoders-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



[flexcoders] Re: Issue adding an Image component to a custom component

2009-07-14 Thread gordofeatherfoot
Thanks for your reply Alex,

Are you refering to an init function that is built into the base flex component 
(ie canvas in this case), because IDSWeather has a custom init() function 
defined. In this function I use createComponentsFromDescriptors(); with a 
creation policy set to NONE.

Since my post i have fiddled around with the code and it doesn't crash but my 
component is empty! It seems that my component has a problem displaying it's 
subcomponents. 

Basically now my IDSWeather component gets added to the stage but it's empty (i 
know this because we have 'handles' around the components that allow us to 
resize them and those are visible). After a given amount of time it changes to 
another state in which an image is added again. When the component wants to 
switch to this state it crashes again with the error i mentionned before. So i 
would say that the component get's added to the stage but as soon as an image 
is added to it, it crashes. Having said this the component doesn't seem to have 
rendered any of it's subcomponents so the problem might be there.

It is really not an easy problem to explain :-) Might i be able to send you 
some source files directly?

Thanks for your help, I've been stuck on this for 2 days and i just can't get 
my head around it.

Best Regards,
Anthony.

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Maybe IDSWeather::init() is being called before IDSWeather has been added as 
> a child to a container.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of gordofeatherfoot
> Sent: Monday, July 13, 2009 8:52 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Issue adding an Image component to a custom component
> 
> 
> 
> 
> 
> Hello,
> 
> I have a problem that is not so easy to expose so please bare with me.
> 
> I have a Component class written is AS3 which extends the Canvas Class. I 
> then have a weather component written in mxml that uses as a base the the 
> Component class. ie my weather component.mxml looks something like this:
> 
>  xmlns:components="net.zz.components.*"
> xmlns:mx="http://www.adobe.com/2006/mxml";
> verticalScrollPolicy="off" horizontalScrollPolicy="off"
> preinitialize="onPreInitialize()">
> ...
> ...
>