[flexcoders] Re: BlazeDS and Remote Objects

2008-09-18 Thread tvikatos
I suggest you have a look here for a clarification concerning various 
flavors of LC data services (one of which id BlazeDS):
http://gregorywilson.wordpress.com/2008/03/27/livecycle-ds-vs-livecycle-
es-clearing-up-the-confusion/

Now if all you need is a function call/response patterm, amfphp should 
be just fine and much better than simple http services.



[flexcoders] Dynamic DataGrid row height ?

2008-06-12 Thread tvikatos
Hi all
here's the problem:
I want to use a tree as an itemRenderer within a DataGrid (not the 
advanced one as it causes me other problems). Now I want the grid to 
dynamically adjust the row's height to show all of the tree as the user 
opens/closes nodes. I have tried setting the variableRowHeight=true, 
but to no result: the row height remains unchanged and the tree nodes 
disappear if opened.

Any idea how to do this?
Thanks 



[flexcoders] Re: Buttons in text

2008-02-15 Thread tvikatos
Thanks Jason!



[flexcoders] Buttons in text

2008-02-15 Thread tvikatos
I want to have text, where specific words act like buttons, i.e. when 
clicked dispatch an event. Something like hyperlinks that instead of 
opening up web pages, do whatever I want them to do.

Any idea how to achieve this?



[flexcoders] Re: passing data to an EventListener

2007-03-30 Thread tvikatos
This is a case where you typically want to create a custom button 
component, say myButton. After you create an instance of myButton you 
pass any info you want it to hold, like the i parameter.
When myButton is clicked it emmits a custom Event (create a subclass of 
flash.event.Event) that holds the i parameter.
You listen for you custom event (not click) and once that is fired you 
pick up the i parameter from your custom Event object, that comes as an 
argument to your listener function.
Or you may want to avoid creating custom Event: listen for Click and 
pick up the i parameter stored within the myButton instance:
event.target.i

I guess there are other ways as well, but I think the ones above are 
the 'cleaner' design-wise.



[flexcoders] Re: Loading Modules

2007-03-26 Thread tvikatos
No sure if it covers everything you need but have alook at my post:
http://blog.startup.gr/blog/Technology/Flex/_archives/2007/1/19/2664880.html

leave a comment if you have any specific question.
Harry



[flexcoders] ListCollectionView bug?

2007-03-26 Thread tvikatos
According to documentation in relation to addItemAt method, "If the
list is shorter than the specified index, it will grow to accomodate
the new item."
I've found that not to be the case. If you attempth to add an item at
an index larger that the collection length, Flex will throw an exception.

Is this a known issue?



[flexcoders] Re: Can not load Module using ModuleManager ...

2007-03-15 Thread tvikatos
Well, the error msg you are getting does not point to crossdomain 
security issues. It does suggest though that the swf you are trying 
to load is not a Flex 2 component based on 
Is that the case?

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> If you're loading from a different domain you need crossdomain.xml 
and I
> think you may need to specify the securitydomain as well.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of helihobby
> Sent: Wednesday, March 14, 2007 6:51 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Can not load Module using ModuleManager ...
> 
>  
> 
> I have a very simple module:
> 
> 
> http://www.adobe.com/2006/mxml
>  " 
> layout="absolute">
>  height="112"/>
> 
> 
> Trying to load via ModuleManager using:
> 
> trace("Loading module");
> var info:IModuleInfo = ModuleManager.getModule
> ("https://some_domain.com/ClockStandard.swf
>  ");
> 
> info.addEventListener(ModuleEvent.READY,onLoadComplete); 
> info.addEventListener(ModuleEvent.ERROR,onLoaderError); 
> info.load();
> 
> private function onLoadComplete(event:ModuleEvent):void {
> trace("Completed and ready");
> }
> 
> 
> 
> private function onLoaderError(event:ModuleEvent):void {
> trace("Problem " + event.errorText);
> }
> 
> And yet I get an error every time of:
> 
> Problem SWF is not a loadable module
> [SWF] /html/swf/timeClock/ClockStandard.swf - 254,974 bytes after 
> decompression
> 
> Any idea whay ?
> 
> As always, Thank you for all the help and support.
> 
> Regards,
> 
> Sean - http://www.HeliHobby.com  
> 
> P.S.
> 
> You can read my solution for Flex Component communication here:
> 
> http://www.helihobby.com/html/alon_desingpattern.html
> 
>




[flexcoders] Re: Loading module from module

2007-02-01 Thread tvikatos
Anybody has a clue?

--- In flexcoders@yahoogroups.com, "tvikatos" <[EMAIL PROTECTED]> wrote:
>
> Loading a module from a module does not work for me.
> A->B->C
> When B tries to load C (using ModuleManager) the factory returns null,
> although all types seem setup correctly.
> However if I do
> A->C
> and then:
> A->B->C
> then C is succesfully loaded and instantiated within A and B.
> 
> Any suggestions of what might be wrong here?
>




[flexcoders] Loading module from module

2007-01-31 Thread tvikatos
Loading a module from a module does not work for me.
A->B->C
When B tries to load C (using ModuleManager) the factory returns null,
although all types seem setup correctly.
However if I do
A->C
and then:
A->B->C
then C is succesfully loaded and instantiated within A and B.

Any suggestions of what might be wrong here?



[flexcoders] Re: Does asdoc work??

2007-01-31 Thread tvikatos
Yes, I have.
I am probably doing something wrong but it's extremely difficult to
figure out what. This has to become friendlyer than command line
and give meaningful feedback...


--- In flexcoders@yahoogroups.com, "Stephen Gilson" <[EMAIL PROTECTED]> wrote:
>
> Have you checked the doc on ASDoc:
>  
> http://livedocs.macromedia.com/flex/201/html/asdoc_127_1.html
>  
> Stephen
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of tvikatos
> Sent: Wednesday, January 31, 2007 11:56 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Does asdoc work??
> 
> 
> 
> I decided to play a bit with asdoc to document my project, but I just
> can't get the damn thing to work. At some point it started complaining
> about not being able to find the cairngorm lib classes. I used the
> -library-path option to point to the swc, but still getting errors
> with very meaningful descriptions:
> 
> Error #1095: XML parser failure: Unterminated attribute.
> 
> or 
> Error: null
> 
> Is this a product we can use or just wasting our time?
>




[flexcoders] Does asdoc work??

2007-01-31 Thread tvikatos
I decided to play a bit with asdoc to document my project, but I just
can't get the damn thing to work. At some point it started complaining
about not being able to find the cairngorm lib classes. I used the
-library-path option to point to the swc, but still getting errors
with very meaningful descriptions:

Error #1095: XML parser failure: Unterminated attribute.

or 
Error: null

Is this a product we can use or just wasting our time?



[flexcoders] Beware with multiple module instances

2007-01-30 Thread tvikatos
Make sure you do not request a module load for the 2nd time before the 
1st load is ready. More here:
http://blog.startup.gr/blog/_archives/2007/1/30/2695396.html

Any chance we can see the ModuleManager preventing this kind of problem?



[flexcoders] Re: Interfaces and events

2007-01-29 Thread tvikatos
Thanks Tom,
that's what I thought too!
The question remains why some Interfaces in flex documentation appear
to have associated events...

--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Monday 29 January 2007 14:18, tvikatos wrote:
> > Is there a way to enforce an interface implementation emmits an event?
> > And you do you declare that?
> 
> I don't think so, no.
> If you have a IFooControl interface which emits a FooEvent , and a
BarControl 
> that implements it and displays a Foo button to fire FooEvent, there
is no 
> way to guaranty that the Foo button will ever be pressed.
> Maybe your sub class doesn't need that Event and so never fires it.
> 
> -- 
> Tom Chiverton
> Helping to confidentially develop third-generation initiatives
> 
> 
> 
> 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 St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
> 
> 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 8008.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>




[flexcoders] Interfaces and events

2007-01-29 Thread tvikatos
I 've been puzzled by the fact that some standard Flex 2 interfaces 
(for example IList) have events associated with them.
Is there a way to enforce an interface implementation emmits an event?
And you do you declare that?



[flexcoders] Re: Problem with module classes instantiation through ModuleManager

2007-01-19 Thread tvikatos
Thanks Roger.
I 've got it working now. Casting the factory product to DisplayObject
and using addChild was the thing I was missing.
I have put together my findings in:
http://blog.startup.gr/blog/_archives/2007/1/19/2664880.html

Do comment in there if sth is not correct.


--- In flexcoders@yahoogroups.com, "Roger Gonzalez" <[EMAIL PROTECTED]> wrote:
>
> This isn't technically a module question.  I believe that you will find
> the same behavior if you were to "new" a frameworks class and then try
> to access it.  Did you call "addChild()" on the product of the factory?
>  
> I'd get that working first in a simple hard-linked case.
>  
> Note that you may well run into issues if you try to make a
> frameworks-based module that doesn't extend mx:Module.  There is some
> codegen magic that happens in that case that doesn't happen if you
> extend the more stripped-down ModuleBase.
>  
> -rg
> 
> 
> ____
> 
>   From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On Behalf Of tvikatos
>   Sent: Friday, January 19, 2007 12:51 AM
>   To: flexcoders@yahoogroups.com
>   Subject: [flexcoders] Re: Problem with module classes
> instantiation through ModuleManager
>   
>   
> 
>   Anyone expert in modules, has a clue?
>   Is ModuleManager and the factory you get when loading a module, 
>   supposed to work with AS-only modules?
>   We are generally lacking documentation and examples with the 
>   ModuleManager...
>   
>   --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> , "tvikatos"  wrote:
>   >
>   > I have a module that combines mxml and as3. The problem I
> describe
>   > below happens in either case:
>   > * main module file in AS extending ModuleBase
>   > * main module file in MXML extending mx:Module
>   > 
>   > When I load the module using ModuleLoader and its 'child'
> property,
>   > all is good.
>   > When I use ModuleManager and I instantiate a module object
> through
>   > IModuleInfo.factory.create(), the objects defined as MXML tags
> 
>   within
>   > my module are not instantiated (properties remain null).
>   > Is there something I can do to properly instantiate the module
>   > (something that apparently ModuleLoader does behind the
> scene)?
>   > 
>   > Or should I just not use any MXML with modules?
>   >
>




[flexcoders] Re: Problem with module classes instantiation through ModuleManager

2007-01-19 Thread tvikatos
Anyone expert in modules, has a clue?
Is ModuleManager and the factory you get when loading a module, 
supposed to work with AS-only modules?
We are generally lacking documentation and examples with the 
ModuleManager...

--- In flexcoders@yahoogroups.com, "tvikatos" <[EMAIL PROTECTED]> wrote:
>
> I have a module that combines mxml and as3. The problem I describe
> below happens in either case:
> * main module file in AS extending ModuleBase
> * main module file in MXML extending mx:Module
> 
> When I load the module using ModuleLoader and its 'child' property,
> all is good.
> When I use ModuleManager and I instantiate a module object through
> IModuleInfo.factory.create(), the objects defined as MXML tags 
within
> my module are not instantiated (properties remain null).
> Is there something I can do to properly instantiate the module
> (something that apparently ModuleLoader does behind the scene)?
> 
> Or should I just not use any MXML with modules?
>




[flexcoders] Problem with module classes instantiation through ModuleManager

2007-01-18 Thread tvikatos
I have a module that combines mxml and as3. The problem I describe
below happens in either case:
* main module file in AS extending ModuleBase
* main module file in MXML extending mx:Module

When I load the module using ModuleLoader and its 'child' property,
all is good.
When I use ModuleManager and I instantiate a module object through
IModuleInfo.factory.create(), the objects defined as MXML tags within
my module are not instantiated (properties remain null).
Is there something I can do to properly instantiate the module
(something that apparently ModuleLoader does behind the scene)?

Or should I just not use any MXML with modules?