[flexcoders] Timer error

2009-04-10 Thread markflex2007
I have following statement

public var timer:Timer;
 
But I get error message like

Constructor functions must be instance methods

I do not have idea why.Please help.Thanks

Mark



re: [flexcoders] Problem drag and drop

2009-04-10 Thread j...@cfwebtools.com
I'm not 100% sure about this but I just ran into an issue where I wanted to set 
up all my DragManager.acceptDragDrop(UIComponent) in an init function but it 
refused to work.  DragManager only accepted that once something was actually 
being dragged so the same might be true for your DragManager.showFeedback().  
Try setting that after you call DragManager.doDrag().

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


From: soulflow132 
Sent: Friday, April 10, 2009 9:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem drag and drop 

Hi.

I want to use drag and drop from one panel  which contains a titlewindow to

another panel.

What i can do is to deplace it.

But what i want to do is to copy it not move it

This is my code



http://www.adobe.com/2006/mxml"; layout="absolute"

creationComplete="init();"  >



  



















-- 

View this message in context: 
http://www.nabble.com/Problem-drag-and-drop-tp22997154p22997154.html

Sent from the FlexCoders mailing list archive at Nabble.com.






Re: [flexcoders] Loading remote font swf from local application

2009-04-10 Thread Aaron Hardy
That was the ticket! Thanks!

Aaron

Alex Harui wrote:
>
>
> Well, you’d have to call create() on the factory and then maybe call 
> styleDeclarationsChanged on the StyleManagerImpl.
>
> Adobe expects developers to have a copy of the server deployment on 
> their local machines. Then, using relative paths in 
> loadStyleDeclarations should work both during local development and 
> when deployed. If I was worried about my copies getting stale, I’d 
> just write a script that downloads the server deployment. I would hope 
> that stuff doesn’t change often in ways that affect the code you are 
> developing.
>
> 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 *Aaron Hardy
> *Sent:* Friday, April 10, 2009 12:32 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Loading remote font swf from local application
>
>
>
>
> Hey everyone,
>
> Here at work we deal a lot with loading in font swfs at runtime using 
> StyleManager.loadStyleDeclarations(). This works fine when we publish 
> our application to the same server as the font swfs, however while 
> debugging the application on our local machine it fails when trying to 
> access the remote font swfs. This results in the following error:
>
> Font not found: Unable to load style(SWF is not a loadable module): 
> [address of font swf]
>
> This seems to be a known issue dealing with security as seen here:
>
> http://bugs.adobe.com/jira/browse/SDK-15393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel
>  
> 
>
> Our workaround has always been to run a local apache server and then 
> when debugging our application during development we make sure the 
> browser points to something like 
> http://localhost/MyApp/bin-debug/Main.html 
> . It's becoming a big task 
> to keep everyone's machine in check. Recently though, Joan Lafferty 
> posted a response to the logged ticket which you can read in the link 
> above. The example shows that reading the bytes of a module can allow 
> you to import the swf in a security-friendly way. The example is not 
> specific to loading a font swf though, it just shows how to load an 
> external module at runtime. In our case, we can load in our font 
> "module" as perscribed but I'm not sure what to do after that. 
> StyleManager.loadStyleDeclarations() automatically makes the font 
> available to the application, however, my tests show that just loading 
> the font swf "module" using ModuleLoader.loadModule() doesn't cut it.
>
> Can someone fill in the gap here? Maybe I misunderstood Joan's post. 
> Thanks!
>
> Aaron
>
> 





--
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/



RE: [flexcoders] Tile will automaticly scroll to make component full visible

2009-04-10 Thread Tracy Spratt
Yes, I am sure that is doable.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of rockorgames
Sent: Thursday, April 09, 2009 10:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Tile will automaticly scroll to make component full
visible

 






hm.. suppose i have a tile like this:







if you run this, you will see that Button 3 is only partially visible, and
the user would need to scroll a little down to see the full button..

what i would like to know is, is there anyway that when the user mouse over
the button 3, i would be able to detect that it isnt full visible and scroll
it down (or up depending) to make the control the user has the mouse over
full visible..





RE: [flexcoders] Datagrid Goofy Problem cannot select rows

2009-04-10 Thread Tracy Spratt
When you add the topic to the ArrayCollection, are you building and adding
an object that is identical to the dataProvider items?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of timgerr
Sent: Friday, April 10, 2009 3:06 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid Goofy Problem cannot select rows

 






Hello all,
I am creating a message board forum and I am using the datagrid to show
message topics. I add a new topic, via flex text input box, it gets sent to
a PHP Weborb back end and the datagrid will then be updated. So lets say I
do not have any topics, I will add the first one, I can then take my mouse
and select that row. When my mouse hovers over the item, the row is
highlighted (this is done by default, a feature of the datagrid). If I
create another topic, I am unable to highlight any other row except for the
latest one that was updated. I am not sure what to look for here. Here is my
mxml datagrid :




 




Any Ideas???

thanks,
timgerr





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

2009-04-10 Thread Tracy Spratt
Cut and Paste inheritance.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Matthew A. Wilson
Sent: Friday, April 10, 2009 1:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] What's your favorite Tip/Trick ?

 






I've been using .NET for years and recently started developing in Flex. One
thing I've noticed (and maybe it's because I'm new) is that I have to write
out just about everything. There were so many things in .NET that the IDE
would handle for me. Like I could write a function, like DoThis(), and then
right-click on DoThis() and the IDE would ask me if I wanted to generated a
method stub. I know that's not earth-shattering, but there were a few things
here...a few things there that shaved off some seconds and/or minutes and
just generally speed up development.

I haven't run across anything like that in the FlexBuilder IDE - so my
question is: What's your favorite tip/trick for speeding up development? Do
you have some favorite text snippets that you keep handy? Or do you you know
some trick in the IDE that will save me some repetition?

Or better yet, is there a site or list out there that covers this topic?
Thanks to all! Have a great weekend!





RE: [flexcoders] Re: Need help processing XML into Flex app

2009-04-10 Thread Tracy Spratt
Ok, but that is "cheating".  I do it myself, but just so you know, looping
in XML usually means you gave up trying to figure out the right e4x
expression.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jim
Sent: Friday, April 10, 2009 11:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Need help processing XML into Flex app

 






Tracy,
I got it! It turns out that Roles are returned as an array, since the
 node repeats. So this did it:

protected function displayRoles (item:Object, column:DataGridColumn):String 
{
roleList = "";
for (i = 0; i < item.Roles.length; i++) {
roleList = roleList + item.Roles[i].RoleName + "\n";
}
return roleList;
}

That gave me a variable "roleList" with each role and a newline like:

User
Portal User
Administrator

Thanks again for your help. 
Jim





RE: [flexcoders] Re: Need help processing XML into Flex app

2009-04-10 Thread Tracy Spratt
Have you solved the namespace issue?  Do you understand what I am asking?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jim
Sent: Friday, April 10, 2009 8:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Need help processing XML into Flex app

 






Tracy,
With the children approach, I get:

Error #1009: Cannot access a property or method of a null object reference.

Could this be due to the fact that there are multiple  nodes and not
just one, so that Roles isn't really a parent node except to one specific
child? That is:

Get__CompIntfc__USER_PROFILEResponse 
Name: Jim 
ID : abc
Roles:
Rolename: a
Roles: 
Rolename: b
...

instead of:

Get__CompIntfc__USER_PROFILEResponse 
Name: Jim 
ID : abc
Roles:
Rolename: a
Rolename: b
...

Jim





RE: [flexcoders] Re: repeater error that i dont understand

2009-04-10 Thread Tracy Spratt
First, that you need to debug the problem.  Second, that debugging bindings
is difficult. Third, the solution is to create a custom component that has
all the repeated content inside it, and repeat that.  Pass the entire
'currentItem" into that custom component via a setter.  In the setter,
assign the values to local, bindable variables.  Bind your controls to the
local variables, Use breakpoints to debug to see what values are not getting
assigned as needed.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of stinasius
Sent: Friday, April 10, 2009 6:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: repeater error that i dont understand

 






not sure what you are saying. try making it a little more understandable





[flexcoders] Re: Create XML List by code

2009-04-10 Thread lehaianh1986
Thank all of you, now I see how to build each XML element that I want.

Hai Anh

--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> First, just build XML then use e4x expressions to return the XMLList that
> you want.
> 
>  
> 
> "Create the equivalent string…" does not mean "static".  You can dynamically
> build your string that represents XML, using whatever run-time logic you
> need, the pass that string to  the top-level XML() function, which returns
> XML.
> 
>  
> 
> Alternatively, you can instantiate an XML node root, then use the XML API to
> manipulate it:
> 
> var sMyVar:String = "attributevalue";
> 
> var xml:XML = ;
> 
> var xmlNewNode:XML;
> 
> xmlNewNode = ;
> 
> xml.appendChild(xmlNewNode);
> 
>  
> 
> etc. 
> 
>  
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of thomas parquier
> Sent: Friday, April 10, 2009 11:47 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Re: Create XML List by code
> 
>  
> 
> 
> 
> 
> 
> 
> I think you can get an xml object from your xmllist and then use XML
> methods, most of them returns xmllist.
> 
> 
> thomas
> 
> 
> 
> 2009/4/10 lehaianh1986 mailto:lehaianh1...@...>
> yahoo.com>
> 
>  
> 
> No, I can't use static string. Depend on my data, I will use regexp to sort
> and classify items to some groups (like example I show). 
> I think it like a dynamic tree and can be add or edit, etc...
> 
> So how do I do to create each element and add to XMLList, then add another
> element to become children of the previous element?
> 
> 
> 
> --- In flexcod...@yahoogro  ups.com,
> Alex Harui  wrote:
> >
> > Create the equivalent string, then pass that into the constructor of
> XMLList
> > 
> > Alex Harui
> > Flex SDK Developer
> 
> > Adobe Systems Inc. com/>
> 
> 
> > Blog: http://blogs.  adobe.com/aharui
> > 
> > From: flexcod...@yahoogro  ups.com
> [mailto:flexcod...@yahoogro  ups.com]
> On Behalf Of lehaianh1986
> > Sent: Thursday, April 09, 2009 2:33 AM
> > To: flexcod...@yahoogro  ups.com
> > Subject: [flexcoders] Create XML List by code
> > 
> > 
> > 
> > 
> > 
> > Hi all,
> > 
> > I have XMLList like:
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > But I want to create XML List by code, so how do I do?
> >
> 
> 
> 
> 
> 
> 
> -- 
> http://www.web-  attitude.fr/
> msn : thomas.parquier@ 
> web-attitude.fr
> softphone : sip:webattitude@  ekiga.net
> téléphone portable : +33601 822 056
>




RE: [flexcoders] Re: Create XML List by code

2009-04-10 Thread Tracy Spratt
First, just build XML then use e4x expressions to return the XMLList that
you want.

 

“Create the equivalent string…” does not mean “static”.  You can dynamically
build your string that represents XML, using whatever run-time logic you
need, the pass that string to  the top-level XML() function, which returns
XML.

 

Alternatively, you can instantiate an XML node root, then use the XML API to
manipulate it:

var sMyVar:String = “attributevalue”;

var xml:XML = ;

var xmlNewNode:XML;

xmlNewNode = ;

xml.appendChild(xmlNewNode);

 

etc. 

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of thomas parquier
Sent: Friday, April 10, 2009 11:47 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Create XML List by code

 






I think you can get an xml object from your xmllist and then use XML
methods, most of them returns xmllist.


thomas



2009/4/10 lehaianh1986 mailto:lehaianh1...@yahoo.com>
yahoo.com>

 

No, I can't use static string. Depend on my data, I will use regexp to sort
and classify items to some groups (like example I show). 
I think it like a dynamic tree and can be add or edit, etc...

So how do I do to create each element and add to XMLList, then add another
element to become children of the previous element?



--- In flexcod...@yahoogro  ups.com,
Alex Harui  wrote:
>
> Create the equivalent string, then pass that into the constructor of
XMLList
> 
> Alex Harui
> Flex SDK Developer

> Adobe Systems Inc. com/>


> Blog: http://blogs.  adobe.com/aharui
> 
> From: flexcod...@yahoogro  ups.com
[mailto:flexcod...@yahoogro  ups.com]
On Behalf Of lehaianh1986
> Sent: Thursday, April 09, 2009 2:33 AM
> To: flexcod...@yahoogro  ups.com
> Subject: [flexcoders] Create XML List by code
> 
> 
> 
> 
> 
> Hi all,
> 
> I have XMLList like:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> But I want to create XML List by code, so how do I do?
>






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





[flexcoders] Problem drag and drop

2009-04-10 Thread soulflow132

Hi.
I want to use drag and drop from one panel  which contains a titlewindow to
another panel.
What i can do is to deplace it.
But what i want to do is to copy it not move it
This is my code


http://www.adobe.com/2006/mxml"; layout="absolute"
creationComplete="init();"  >



  















-- 
View this message in context: 
http://www.nabble.com/Problem-drag-and-drop-tp22997154p22997154.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: Suggestion to enable adobe TV to be more effective

2009-04-10 Thread Nicolas Noben
Brad, I believe some of  Adobe TV are already available as podcasts.

Look for Adobe under podcasts in iTunes. I found "Adobe Developer Connection".

cheers
nic

-- 
Nicolas Noben
P http://noben.org 
B http://idletogether.com
T http://twitter.com/keyle

--- In flexcoders@yahoogroups.com, Brad Bueche  wrote:
>
> I may just be showing my ignorance here (and, if so, please point that out
> to me).
> 
> 1)  Enable the video's to be downloaded.
> 
> 2) Enable them to be downloaded as podcasts.
> 
> I would imagine that a great many people do not have the
> ability/infrastructure/funds to be connected all the time.
> 
> [Yes, this is not a code question but its the only place I know for sure
> that high level adobe peeps hang out]
> 
> And the video's are great!
> 
> (tv.adobe.com for those of you who are unaware of this resource)
> 
> brad
>




RE: [flexcoders] Datagrid Goofy Problem cannot select rows

2009-04-10 Thread Alex Harui
That sounds like the uid of each item is the same.

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 timgerr
Sent: Friday, April 10, 2009 12:06 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid Goofy Problem cannot select rows





Hello all,
I am creating a message board forum and I am using the datagrid to show message 
topics. I add a new topic, via flex text input box, it gets sent to a PHP 
Weborb back end and the datagrid will then be updated. So lets say I do not 
have any topics, I will add the first one, I can then take my mouse and select 
that row. When my mouse hovers over the item, the row is highlighted (this is 
done by default, a feature of the datagrid). If I create another topic, I am 
unable to highlight any other row except for the latest one that was updated. I 
am not sure what to look for here. Here is my mxml datagrid :









Any Ideas???

thanks,
timgerr



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

2009-04-10 Thread Alex Harui
Thinking about this a bit more, I wouldn't use loadBytes

If the main app had


The steps to get the byte array should be:
Var ba:ByteArray = img.content.bitmapData.getPixels();

On the other side, if you have said byteArray, and the width and height, then 
it should be:

Var bd:BitmapData = new BItmapData(width, height);
bd.setPixels(ba);
img2.source = new Bitmap(bd);

where img2 is defined in the other app as:


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 rob_mcmichael
Sent: Friday, April 10, 2009 12:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Marshall Plan: Loading images from byteArray





> You didn't saw you were stringifying the bytearray. Made me wonder if you'd 
> posted the right code or described your steps correctly.

Oops sorry about that :p

> Did you try my steps? If they work, it would save you a few hops. An image is 
> a Bitmap so converting to ByteArray should be single method calls and not a 
> lot of work.

You mentioned loadBytes() the byteArray the other side. Could you show how to 
do that? If I did it through a SWFLoader I obviously get a security violation. 
That was through the content.loader is that right?

I am about to make a UI component which I will pass a URL to that should take 
care of the rest, but would be good to perfect it if possible.

Are there any size limitations I should know about with ByteArrays? I don't 
want to find out it's all in vain :( I managed to break FlexBuilder when it was 
tracing out the byte array after I had turned it into a string :p

Thanks Alex

Rob



RE: [flexcoders] Loading remote font swf from local application

2009-04-10 Thread Alex Harui
Well, you'd have to call create() on the factory and then maybe call 
styleDeclarationsChanged on the StyleManagerImpl.

Adobe expects developers to have a copy of the server deployment on their local 
machines.  Then, using relative paths in loadStyleDeclarations should work both 
during local development and when deployed.  If I was worried about my copies 
getting stale, I'd just write a script that downloads the server deployment.  I 
would hope that stuff doesn't change often in ways that affect the code you are 
developing.

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 Aaron Hardy
Sent: Friday, April 10, 2009 12:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Loading remote font swf from local application





Hey everyone,

Here at work we deal a lot with loading in font swfs at runtime using 
StyleManager.loadStyleDeclarations().  This works fine when we publish our 
application to the same server as the font swfs, however while debugging the 
application on our local machine it fails when trying to access the remote font 
swfs.  This results in the following error:

Font not found: Unable to load style(SWF is not a loadable module): [address of 
font swf]

This seems to be a known issue dealing with security as seen here:

http://bugs.adobe.com/jira/browse/SDK-15393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel

Our workaround has always been to run a local apache server and then when 
debugging our application during development we make sure the browser points to 
something like http://localhost/MyApp/bin-debug/Main.html.  It's becoming a big 
task to keep everyone's machine in check.  Recently though, Joan Lafferty 
posted a response to the logged ticket which you can read in the link above.  
The example shows that reading the bytes of a module can allow you to import 
the swf in a security-friendly way.  The example is not specific to loading a 
font swf though, it just shows how to load an external module at runtime.  In 
our case, we can load in our font "module" as perscribed but I'm not sure what 
to do after that.  StyleManager.loadStyleDeclarations() automatically makes the 
font available to the application, however, my tests show that just loading the 
font swf "module" using ModuleLoader.loadModule() doesn't cut it.

Can someone fill in the gap here?  Maybe I misunderstood Joan's post.  Thanks!

Aaron



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

2009-04-10 Thread Matthew A. Wilson
I've been using .NET for years and recently started developing in Flex. One 
thing I've noticed (and maybe it's because I'm new) is that I have to write out 
just about everything. There were so many things in .NET that the IDE would 
handle for me. Like I could write a function, like DoThis(), and then 
right-click on DoThis() and the IDE would ask me if I wanted to generated a 
method stub. I know that's not earth-shattering, but there were a few things 
here...a few things there that shaved off some seconds and/or minutes and just 
generally speed up development.

I haven't run across anything like that in the FlexBuilder IDE - so my question 
is: What's your favorite tip/trick for speeding up development? Do you have 
some favorite text snippets that you keep handy? Or do you you know some trick 
in the IDE that will save me some repetition?

Or better yet, is there a site or list out there that covers this topic? Thanks 
to all! Have a great weekend!



[flexcoders] Loading remote font swf from local application

2009-04-10 Thread Aaron Hardy
Hey everyone,

Here at work we deal a lot with loading in font swfs at runtime using
StyleManager.loadStyleDeclarations().  This works fine when we publish our
application to the same server as the font swfs, however while debugging the
application on our local machine it fails when trying to access the remote
font swfs.  This results in the following error:

Font not found: Unable to load style(SWF is not a loadable module): [address
of font swf]

This seems to be a known issue dealing with security as seen here:

http://bugs.adobe.com/jira/browse/SDK-15393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel

Our workaround has always been to run a local apache server and then when
debugging our application during development we make sure the browser points
to something like http://localhost/MyApp/bin-debug/Main.html.  It's becoming
a big task to keep everyone's machine in check.  Recently though, Joan
Lafferty posted a response to the logged ticket which you can read in the
link above.  The example shows that reading the bytes of a module can allow
you to import the swf in a security-friendly way.  The example is not
specific to loading a font swf though, it just shows how to load an external
module at runtime.  In our case, we can load in our font "module" as
perscribed but I'm not sure what to do after that.
StyleManager.loadStyleDeclarations() automatically makes the font available
to the application, however, my tests show that just loading the font swf
"module" using ModuleLoader.loadModule() doesn't cut it.

Can someone fill in the gap here?  Maybe I misunderstood Joan's post.
Thanks!

Aaron


Re: [flexcoders] Cant receive socket data

2009-04-10 Thread John Fisher
hmmm. I could easily append some bytes and see what happens, but not 
'til Monday when I go back to work.
Thanks!

Maciek Sakrejda wrote:
> Interesting. We ran into this issue with URLStream: 
> http://bugs.adobe.com/jira/browse/FP-748 -- maybe your problem is related? 
> Actually, searching Adobe JIRA for XMLSocket turns up a number of bugs that 
> sound vaguely like what you're experiencing...
>
> -Maciek
>
>
>   


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

2009-04-10 Thread rob_mcmichael

> You didn't saw you were stringifying the bytearray.  Made me wonder if you'd 
> posted the right code or described your steps correctly.

Oops sorry about that :p

> Did you try my steps?  If they work, it would save you a few hops.  An image 
> is a Bitmap so converting to ByteArray should be single method calls and not 
> a lot of work.

You mentioned loadBytes() the byteArray the other side. Could you show how to 
do that? If I did it through a SWFLoader I obviously get a security violation. 
That was through the content.loader is that right?

I am about to make a UI component which I will pass a URL to that should take 
care of the rest, but would be good to perfect it if possible. 

Are there any size limitations I should know about with ByteArrays? I don't 
want to find out it's all in vain :( I managed to break FlexBuilder when it was 
tracing out the byte array after I had turned it into a string :p

Thanks Alex

Rob




[flexcoders] Datagrid Goofy Problem cannot select rows

2009-04-10 Thread timgerr
Hello all,
I am creating a message board forum and I am using the datagrid to show message 
topics.  I add a new topic, via flex text input box, it gets sent to a PHP 
Weborb back end and the datagrid will then be updated.  So lets say I do not 
have any topics, I will add the first one, I can then take my mouse and select 
that row.  When my mouse hovers over the item, the row is highlighted (this is 
done by default, a feature of the datagrid).  If I create another topic, I am 
unable to highlight any other row except for the latest one that was updated.  
I am not sure what to look for here.  Here is my mxml datagrid :





 






Any Ideas???

thanks,
timgerr



Re: [flexcoders] Re: Suggestion to enable adobe TV to be more effective

2009-04-10 Thread Matt Chotin
Also got a note back that they'll look at the errors, but a redesign is also in 
process that will make the site more standards-based and eliminate many of the 
usability problems.

Matt


On 4/10/09 10:12 AM, "Matthew Chotin"  wrote:






Hi folks, I'll forward these to the team.

Matt


On 4/10/09 6:14 AM, "valdhor"  wrote:






And a note for the developer...

I go to tv.adobe.com using Windows XP, Firefox 3.0.8 and Flash 9.0.124 debug. I 
then click on the word "Flex" in the top right and get this error:

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
at AdobeTV_G2/loadSelectedProduct()
at AdobeTV_G2/goDirectProduct()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.adobetv::DeepLinking/parseFragment()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::BrowserManagerImpl/setFragment()
at com.adobetv::DeepLinking/gotoProduct()
at AdobeTV_G2/HandleProductSelection()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at com.adobetv.Components::HomePageList/clicked()

--- In flexcoders@yahoogroups.com  , Brad 
Bueche  wrote:
>
> I may just be showing my ignorance here (and, if so, please point that out
> to me).
>
> 1)  Enable the video's to be downloaded.
>
> 2) Enable them to be downloaded as podcasts.
>
> I would imagine that a great many people do not have the
> ability/infrastructure/funds to be connected all the time.
>
> [Yes, this is not a code question but its the only place I know for sure
> that high level adobe peeps hang out]
>
> And the video's are great!
>
> (tv.adobe.com for those of you who are unaware of this resource)
>
> brad
>











[flexcoders] Re: TileList with page number

2009-04-10 Thread Tim Hoff

Hi Christophe,

You can figure out how many tiles are in a page by multiplying the
colomnCount by the RowCount.  Take this number and divide the
dataProvider's length by it, to determine the number of pages.  You may
have to adjust this number; based on the remainder (see mod).   From
these calculations, you could then dynamically create a paging control
either on the TileList's valueCommit or the dataProvider's
collectionChange events.  The paging control would be used to change the
TileList's verticalScrollPosition.

-TH

--- In flexcoders@yahoogroups.com, "christophe_jacquelin"
 wrote:
>
> Hello,
>
> How to make a tile list of images with several pages like a search in
Google ?
>
> Thank you,
> Christophe,
>





Re: [flexcoders] Re: Suggestion to enable adobe TV to be more effective

2009-04-10 Thread Matt Chotin
Hi folks, I'll forward these to the team.

Matt


On 4/10/09 6:14 AM, "valdhor"  wrote:






And a note for the developer...

I go to tv.adobe.com using Windows XP, Firefox 3.0.8 and Flash 9.0.124 debug. I 
then click on the word "Flex" in the top right and get this error:

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
at AdobeTV_G2/loadSelectedProduct()
at AdobeTV_G2/goDirectProduct()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.adobetv::DeepLinking/parseFragment()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::BrowserManagerImpl/setFragment()
at com.adobetv::DeepLinking/gotoProduct()
at AdobeTV_G2/HandleProductSelection()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at com.adobetv.Components::HomePageList/clicked()

--- In flexcoders@yahoogroups.com  , Brad 
Bueche  wrote:
>
> I may just be showing my ignorance here (and, if so, please point that out
> to me).
>
> 1)  Enable the video's to be downloaded.
>
> 2) Enable them to be downloaded as podcasts.
>
> I would imagine that a great many people do not have the
> ability/infrastructure/funds to be connected all the time.
>
> [Yes, this is not a code question but its the only place I know for sure
> that high level adobe peeps hang out]
>
> And the video's are great!
>
> (tv.adobe.com for those of you who are unaware of this resource)
>
> brad
>







Re: [flexcoders] Re: Create XML List by code

2009-04-10 Thread thomas parquier
I think you can get an xml object from your xmllist and then use XML
methods, most of them returns xmllist.

thomas



2009/4/10 lehaianh1986 

>
>
> No, I can't use static string. Depend on my data, I will use regexp to sort
> and classify items to some groups (like example I show).
> I think it like a dynamic tree and can be add or edit, etc...
>
> So how do I do to create each element and add to XMLList, then add another
> element to become children of the previous element?
>
>
> --- In flexcoders@yahoogroups.com , Alex
> Harui  wrote:
> >
> > Create the equivalent string, then pass that into the constructor of
> XMLList
> >
> > Alex Harui
> > Flex SDK Developer
> > Adobe Systems Inc.
> > Blog: http://blogs.adobe.com/aharui
> >
> > From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] On Behalf Of
> lehaianh1986
> > Sent: Thursday, April 09, 2009 2:33 AM
> > To: flexcoders@yahoogroups.com 
> > Subject: [flexcoders] Create XML List by code
> >
> >
> >
> >
> >
> > Hi all,
> >
> > I have XMLList like:
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > But I want to create XML List by code, so how do I do?
> >
>
>  
>





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


[flexcoders] Re: Need help processing XML into Flex app

2009-04-10 Thread Jim
Tracy,
I got it!  It turns out that Roles are returned as an array, since the  
node repeats.  So this did it:

protected function displayRoles (item:Object, column:DataGridColumn):String 
 {
  roleList = "";
  for (i = 0; i < item.Roles.length; i++) {
roleList = roleList +  item.Roles[i].RoleName + "\n";
  }
   return roleList;
 }

That gave me a variable "roleList" with each role and a newline like:

User
Portal User
Administrator

Thanks again for your help.  
Jim







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

2009-04-10 Thread Alex Harui
You didn't saw you were stringifying the bytearray.  Made me wonder if you'd 
posted the right code or described your steps correctly.
Did you try my steps?  If they work, it would save you a few hops.  An image is 
a Bitmap so converting to ByteArray should be single method calls and not a lot 
of work.
FlashPlayer has an AMF restriction and can't deserialize properly in SWFs that 
aren't in the main app domain.
So, it will probably take a number of hops but I think it should be less than 
you described.

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 rob_mcmichael
Sent: Friday, April 10, 2009 3:27 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Marshall Plan: Loading images from byteArray





> Your code didn't match the description.

How so? I changed the names of the swfs, but other than that, that is the error 
I am getting when trying to load the bytearray of a PNG using a swf loader?

> I'd take the bitmapdata, write it to a bytearray, pass the bytearray across 
> shared events, loadbytes the bytearray on the other side.
>

I have since worked on loading an image in the parent application, turning it 
into a bitmap, getting the pixels into another byte aray, converting that into 
a standard array, passing that through the shared events, back to byte array 
(plus the height and width and URL as an ID) then loading that back into a 
bitmap, and then adding that to a UI object to render

It's a bit of a faff, but now it's written it appears to work fine. I am yet to 
see how easy bitmaps are to work with over standard images (scaling etc).

I also tried using AMF to pass objects (image component) via the Marshall plan, 
but they didn't load back up correctly. I assume the Marshall plan is editing 
them as it would be a security breach right?

If this is the only way to do it, I will try and write it up, and perhaps show 
some examples for how you could do it for other data types (audio and video).

If you have any ideas or suggestions please let me know.

Rob



[flexcoders] http://localhost:37813 crossdomain needed????

2009-04-10 Thread flexaustin
I am making a simple HTTPService call sometimes it works and sometimes it 
doesn't work.  

When it doesn't work I get this error:

Error #2048: Security sandbox violation: 
http://rocketship:9675/flash/netmap.swf cannot load data from 
http://localhost:37813/interface/io_data/405.xml?hostport=rocketship:9675&https=N&id=052D87-CD21-77A1-0444-89484984948.

This is application is running on a local machine. What is localhost:37813 ?  
And how did get https as that will always fail?

Do I need a crossdomain file? If so what would it say?



[flexcoders] cannot load data from http://localhost:37813 ???

2009-04-10 Thread flexaustin
I am making a simple HTTPService call sometimes it works and sometimes it 
doesn't work.  

When it doesn't work I get this error:

Error #2048: Security sandbox violation: 
http://rocketship:9675/flash/netmap.swf cannot load data from 
http://localhost:37813/interface/io_data/405.xml?hostport=rocketship:9675&https=N&id=052D87-CD21-77A1-0444-89484984948.

This is application is running on a local machine. What is localhost:37813 ?  
And how did get https as that will always fail?

Do I need a crossdomain file? If so what would it say?



Re: [flexcoders] embedding mapquest location

2009-04-10 Thread Brad Bueche
Not sure how tied you are to mapquest but yahoo has an AS3 API to their
maps.

There is also a 2 (going to be 4) part series in Flex Authority magazine on
how to work with it.

brad

On Thu, Apr 9, 2009 at 6:48 PM, flexnewbie999  wrote:

>
>
> I'm writing a real estate application. I'd like to be able to either look
> up a location using the address location or save a URL to be passed to
> MapQuest. Is there a way to embed a MapQuest map in an existing Flex UI
> component or pop up the MapQuest map in a separate window without leaving
> the app?
>
>  
>


[flexcoders] TileList with page number

2009-04-10 Thread christophe_jacquelin
Hello, 

How to make a tile list of images with several pages like a search in Google ?

Thank you,
Christophe, 




[flexcoders] Re: SQLite:Simultaneous multiple-insert in async mode with a single DB connection?

2009-04-10 Thread Amy
--- In flexcoders@yahoogroups.com, "handitan"  wrote:
>
> Alright fellas,
> 
> Spill out the secret.
> When I do the multiple-insertion simultaneously, those operations just 
> stopped and any new transaction-transaction op request is ignored.
> 
> My idea so far is to put any new transaction-request in a queue if a 
> transaction is currently in the process, and then after that transaction is 
> finished then do the next transaction-request from the queue.

Doesn't SQLLite have any syntax like

INSERT INTO MyTable (Field1, Field2)
VALUES (Obj1Field1, Obj1Field2),
(Obj2Field1, Obj2Field2),
(Obj3Field1, Obj3Field2)

?

This would actually make the multiple inserts simultaneously, rather than 
trying to multiple sql statements all intependently trying to be simultaneous.

-Amy



RE: [flexcoders] flex chart problem

2009-04-10 Thread Jake Churchill
You can set the type of vertical Axis you want to use.  The LinearAxis class 
takes an interval property which might be what you are looking for.  Here is an 
example (take from Adobe’s livedoc examples):

 

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

 







 

 

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Vikram Singh
Sent: Friday, April 10, 2009 7:43 AM
To: Flex Coders
Subject: [flexcoders] flex chart problem

 






chart having dynamic Yaxis and Xaxis range. max range is get from database.

problem is if max. Yaxis is small like(3,2,1), it will display in decimal 
sequence. (1, 1.2, 1.4, 1.6, 1.8, 2, 2.2like)

want to display only pure numbers in charts.

I have tried many things but not get it.

Is there any idea to get it?? how can i solve this?





  _  

Add more friends to your messenger and enjoy! Invite 

  them now.



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.285 / Virus Database: 270.11.51/2052 - Release Date: 04/10/09 
06:39:00



[flexcoders] embedding mapquest location

2009-04-10 Thread flexnewbie999
I'm writing a real estate application. I'd like to be able to either look up a 
location using the address location or save a URL to be passed to MapQuest. Is 
there a way to embed a MapQuest map in an existing Flex UI component or pop up 
the MapQuest map in a separate window without leaving the app?



Re: [flexcoders] Re: Cairngorm Question

2009-04-10 Thread Kusunam, Srinivas

Nathan & Claudieu,
Thanks for the response. After I posted my question I started reading  
and thinking how to correct this and came up with the same idea Nathan  
suggested. I started refactoring everything and so far it is going  
great.




On Apr 10, 2009, at 3:46 AM, "nathanpdaniel"   
wrote:





Wrap your head around the idea that the model controls the view.  
Even the "data" portions. You should bind your combo box  
dataprovider to the model property storing that data (from server  
based on combo box 1 selection). Why you don't need cairngorm for  
enabling? You can just set you're 2nd combo box's enabled property  
to {combobox1.selectedIndex > -1}. An alternative using cairngorm  
is if your dataprovider (in the model) is null, disable combo box 2,  
if it has data, enable it.

Hope this helps!

> From: skusunam 
> To: flexcoders@yahoogroups.com
> Sent: Thursday, April 9, 2009 7:53:48 PM
> Subject: [flexcoders] Cairngorm Question
>
>
>
>
>
> Hello Group,
>
> This is my first question on this group and I have been referring  
to this group for all my technical challenges with Flex (started  
using 1 month back). Thanks for such a nice group and support.

>
> I have a complex screen where I have 2 Combo boxes and by default  
Combo-2 is disabled and will be enabled only when user selects  
Combo-1 and Server returns any Objects for Combo-2 otherwise it will  
be still disabled.

>
> I have defined an Event `LoadCombo2Event' which is dispatched when  
user selects an entry from Combo-1 and the results will be handled  
in `LoadComb2Command' . I do not have access to Combo2 in this  
command to Enable or Disable?

>
> How do we handle this case using Cairngorm?
>
> Thanks,
> Sre
>



*
This message has originated from R. L. Polk & Co.'s RLPTechnologies 
Division, 26988 Northwestern Highway, Southfield, MI  48033.
 
If you do not wish to receive further e-mails regarding 
RLPTechnologies, please forward this e-mail to do_not_s...@polk.com 
with the word "remove" in the subject line.


This e-mail message and any files transmitted with it are 
confidential and intended solely for the individual or entity to 
whom they are addressed.  If you have received this message in 
error, please delete this message and notify the RLPTechnologies 
System Administrator at postmas...@polk.com.

*


[flexcoders] Re: Suggestion to enable adobe TV to be more effective

2009-04-10 Thread valdhor
And a note for the developer...

I go to tv.adobe.com using Windows XP, Firefox 3.0.8 and Flash 9.0.124 debug. I 
then click on the word "Flex" in the top right and get this error:

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
at AdobeTV_G2/loadSelectedProduct()
at AdobeTV_G2/goDirectProduct()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.adobetv::DeepLinking/parseFragment()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.managers::BrowserManagerImpl/setFragment()
at com.adobetv::DeepLinking/gotoProduct()
at AdobeTV_G2/HandleProductSelection()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at com.adobetv.Components::HomePageList/clicked()



--- In flexcoders@yahoogroups.com, Brad Bueche  wrote:
>
> I may just be showing my ignorance here (and, if so, please point that out
> to me).
> 
> 1)  Enable the video's to be downloaded.
> 
> 2) Enable them to be downloaded as podcasts.
> 
> I would imagine that a great many people do not have the
> ability/infrastructure/funds to be connected all the time.
> 
> [Yes, this is not a code question but its the only place I know for sure
> that high level adobe peeps hang out]
> 
> And the video's are great!
> 
> (tv.adobe.com for those of you who are unaware of this resource)
> 
> brad
>




[flexcoders] Suggestion to enable adobe TV to be more effective

2009-04-10 Thread Brad Bueche
I may just be showing my ignorance here (and, if so, please point that out
to me).

1)  Enable the video's to be downloaded.

2) Enable them to be downloaded as podcasts.

I would imagine that a great many people do not have the
ability/infrastructure/funds to be connected all the time.

[Yes, this is not a code question but its the only place I know for sure
that high level adobe peeps hang out]

And the video's are great!

(tv.adobe.com for those of you who are unaware of this resource)

brad


[flexcoders] flex chart problem

2009-04-10 Thread Vikram Singh
chart having dynamic Yaxis and Xaxis range. max range is get from database.
problem is if max. Yaxis is small like(3,2,1), it will display in decimal 
sequence. (1, 1.2, 1.4, 1.6, 1.8, 2, 2.2like)
want to display only pure numbers in charts.
I have tried many things but not get it.
Is there any idea to get it?? how can i solve this?


  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

[flexcoders] Re: Need help processing XML into Flex app

2009-04-10 Thread Jim
Tracy,
With the children approach, I get:

 Error #1009: Cannot access a property or method of a null object reference.

Could this be due to the fact that there are multiple  nodes and not 
just one, so that Roles isn't really a parent node except to one specific 
child?  That is:

 Get__CompIntfc__USER_PROFILEResponse 
  Name: Jim  
  ID  : abc
  Roles:
   Rolename: a
  Roles: 
   Rolename: b
...

instead of:

 Get__CompIntfc__USER_PROFILEResponse 
  Name: Jim  
  ID  : abc
  Roles:
   Rolename: a
   Rolename: b
...

Jim



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

2009-04-10 Thread rob_mcmichael

> Your code didn't match the description.

How so? I changed the names of the swfs, but other than that, that is the error 
I am getting when trying to load the bytearray of a PNG using a swf loader?


> I'd take the bitmapdata, write it to a bytearray, pass the bytearray across 
> shared events, loadbytes the bytearray on the other side.
> 
 
I have since worked on loading an image in the parent application, turning it 
into a bitmap, getting the pixels into another byte aray, converting that into 
a standard array, passing that through the shared events, back to byte array 
(plus the height and width and URL as an ID) then loading that back into a 
bitmap, and then adding that to a UI object to render

It's a bit of a faff, but now it's written it appears to work fine. I am yet to 
see how easy bitmaps are to work with over standard images (scaling etc).

I also tried using AMF to pass objects (image component) via the Marshall plan, 
but they didn't load back up correctly. I assume the Marshall plan is editing 
them as it would be a security breach right?

If this is the only way to do it, I will try and write it up, and perhaps show 
some examples for how you could do it for other data types (audio and video).

If you have any ideas or suggestions please let me know.

Rob






[flexcoders] Re: repeater error that i dont understand

2009-04-10 Thread stinasius
not sure what you are saying. try making it a little more understandable




[flexcoders] Re: Tile will automaticly scroll to make component full visible

2009-04-10 Thread rockorgames
hmm forget it, now that i stopped to think about it with a little calm i 
managed to it.. im so stupid for not realizing something so idiot lol 

--- In flexcoders@yahoogroups.com, "rockorgames"  wrote:
>
> hm.. suppose i have a tile like this:
> 
> 
> 
> 
> 
> 
> 
> if you run this, you will see that Button 3 is only partially visible, and 
> the user would need to scroll a little down to see the full button..
> 
> what i would like to know is, is there anyway that when the user mouse over 
> the button 3, i would be able to detect that it isnt full visible and scroll 
> it down (or up depending) to make the control the user has the mouse over 
> full visible..
>




[flexcoders] Re: Cairngorm Question

2009-04-10 Thread nathanpdaniel
Wrap your head around the idea that the model controls the view.  Even the 
"data" portions.  You should bind your combo box dataprovider to the model 
property storing that data (from server based on combo box 1 selection).  Why 
you don't need cairngorm for enabling? You can just set you're 2nd combo box's 
enabled property to {combobox1.selectedIndex > -1}. An alternative using 
cairngorm is if your dataprovider (in the model) is null, disable combo box 2, 
if it has data, enable it.
Hope this helps!  

> From: skusunam 
> To: flexcoders@yahoogroups.com
> Sent: Thursday, April 9, 2009 7:53:48 PM
> Subject: [flexcoders] Cairngorm Question
> 
> 
> 
> 
> 
> Hello Group,
> 
> This is my first question on this group and I have been referring to this 
> group for all my technical challenges with Flex (started using 1 month back). 
> Thanks for such a nice group and support.
> 
> I have a complex screen where I have 2 Combo boxes and by default Combo-2 is 
> disabled and will be enabled only when user selects Combo-1 and Server 
> returns any Objects for Combo-2 otherwise it will be still disabled.
> 
> I have defined an Event `LoadCombo2Event' which is dispatched when user 
> selects an entry from Combo-1 and the results will be handled in 
> `LoadComb2Command' . I do not have access to Combo2 in this command to Enable 
> or Disable? 
> 
> How do we handle this case using Cairngorm?
> 
> Thanks,
> Sre
>



RE: [flexcoders] Re: Modules and RSLs Which is Better for Large Database application

2009-04-10 Thread Gregor Kiddie
You want to read up on the following articles

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



http://blogs.adobe.com/rgonzalez/2006/06/modular_applications_part_1.htm
l
 

http://blogs.adobe.com/rgonzalez/2006/06/modular_applications_part_2.htm
l
 

http://weblogs.macromedia.com/pent/archives/2007/01/building_module.html
 

 

Also, the common mistakes usually end up surrounding application domains
so read up on

http://blogs.adobe.com/rgonzalez/2006/06/applicationdomain.html
 

http://blogs.adobe.com/aharui/  

when you run into problems.

 

 

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of raja_s_patil
Sent: 09 April 2009 17:01
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Modules and RSLs Which is Better for Large
Database application

 






Thanks Gregor Kiddie,

>
> Sounds like one of your DLLs is roughly equivalent to a module in
terms
> of what you want to deliver.
> 
> Just remember that each Flex module is based off a single mx::Module,
so
> if you want to package up several forms in a single module, you'll
need
> to load the module and then swap the forms on that view. Say using a
> Viewstack.
>
True, We load DLL with loadDLL Api call then create the form by
calling a function in that DLL.

> Sorry though, I don't know Delphi, so I have no idea what TForm does,
or
> what SP is (Server Process?)
> 

Well no problem. TForm is a container Class like Panel(the closest
equivalent in Flex to best of my knowledge) which has caption, min, 
max, close buttons in caption area and which can have visual controls
may be bound to datasource or plain ones, it has open, close, keypress
etc. etc. events. Well delphi is much similar to flex conceptually
so for us it took very less time to understand Flex. But it has much
stronger visual designer and IDE. But Flex requires much less code
compared to delphi.

Suppose if I create few panels with few controls in a single src file
and put them in a module how can I create one of those panel and put
as a child to main forms Canvas or similar container and free it as
soon as the panel is closed. For loading module we got some material
to read. The loading module, creating panel and adding as child to
canvas we want to perform when a menuitem is clicked.

Hope u extend ur help in this regard. Somehow learning resources
we have does not have this type of information, or otherwise
if possible give us links for similar examples. 

> If you want more module info, I posted a bunch of links on modules
onto
> the list recently.
> 

can u give me URLs for those posts or month/year of post so that
searching will be bit easier. Since I am new to this Group I not
that strong in searching messages so i have to adopt straight royal
way of searching i.e. reading page by page.

Thanks and best regards.

Raja