[flexcoders] Re: How to find all Installed browsers information in Windows?

2009-05-17 Thread sminrana
Try with Flex External interface, call JavaScript function from inside 
Flex  


 



Re: [flexcoders] FlowBox Nesting

2009-05-17 Thread Eric Cancil
try using this
http://blog.appdivision.com/2009/05/13/horizontal-and-vertical-alignment-added-to-flowcontainer/

On Wed, May 13, 2009 at 9:48 AM, Mike Oliver  wrote:

>
>
>
> Thanks Doug,
>
> So how much was that bet?
>
> I replaced the FlobBox with FlowContainer and while yes the height did
> calculate properly so you were correct therebut alas it doesn't solve
> the problem.
>
> The new code follows but I won't upload the resulting .swf BECAUSE IT HANGS
> THE BROWSER, both IE and FireFox! Both running the latest Flash player 9
> and on FireFox it has the debugger version of the player and that didn't
> get
> a chance to catch the error.
>
>
> 
>
>  paddingRight="10" paddingTop="10" left="10" borderStyle="solid"
> borderThickness="2" borderColor="#000509">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> Doug McCune wrote:
> >
> > FlowBox has a pretty serious bug having to do with how it does its height
> > calculation. This bug has been logged and has remained unresolved for far
> > too long (I say this as the main flexlib maintainer, it's basically my
> > laziness that has kept this from being fixed). That said, there's a
> second
> > container in FlexLib that also accomplishes the same goal, it's called
> > FlowContainer. It was origianlly written as part of the docking toolbar
> > component. It more or less does the exact same thing, but doesn't have
> the
> > problem with the height calculation.
> >
> > So I'd advise trying to use FlowContainer instead of FlowBox, I bet it
> > will
> > solve your problem.
> >
> > Doug
> >
> > On Tue, May 12, 2009 at 5:56 PM, Mike Oliver 
> > 
> >
> > wrote:
> >
> >>
> >>
> >>
> >> Yes its the flow box see attached.
> >>
> >> http://www.nabble.com/file/p23513630/ToolbarDemo.swf ToolbarDemo.swf
> >>
> >> It looks like the flow box calculates its height based on all components
> >> wrapping.
> >>
> >> Ollie
> >>
> >>
> >> Tracy Spratt-2 wrote:
> >> >
> >> > Is it the FlowBox that is causing the problem? What happens if you
> >> > replace
> >> > it with an HBox? Do you still get that space? Can you put a border or
> >> > background on the FlowBox to see if it is causing the layout issue?
> >> >
> >> >
> >> >
> >> > Something is confusing the layout. The space between items in a VBox
> >> > should
> >> > be only the verticalGap.
> >> >
> >> >
> >> >
> >> > Tracy Spratt,
> >> >
> >> > Lariat Services, development services available
> >> >
> >> > _
> >> >
> >> > From: flexcoders@yahoogroups.com 
> >> >  40yahoogroups.com>
> >> [mailto:
> >> flexcoders@yahoogroups.com   40yahoogroups.com>] On
> >> > Behalf Of Mike Oliver
> >> > Sent: Tuesday, May 12, 2009 8:13 PM
> >> > To: flexcoders@yahoogroups.com  40yahoogroups.com>
>
> >> > Subject: RE: [flexcoders] FlowBox Nesting
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > I said that I tried a VBox and that did NOT give me what I want,
> >> >
> >> > Here is the mxml
> >> >
> >> > 
> >> >
> >> >  >> > paddingRight="10" paddingTop="10" left="10">
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> > 
> >> >
> >> > and I attached the swf and here is a screen shot.
> >> >
> >> > http://www.nabble.
> >>  >> >
> >> > com/file/p23513102/ToolbarDemo.swf ToolbarDemo.swf
> >> >
> >> > Now note that the space between the flowbox and the grid is what I
> want
> >> to
> >> > eliminate.
> >> >
> >> > http://www.nabble.
> >> > <
> >>
> http://www.nabble.com/file/p23513102/ScreenHunter_28%2BMay.%2B12%2B17.09.jp
> >> > g> com/file/p23513102/ScreenHunter_28%2BMay.%2B12%2B17.09.jpg
> >> >
> >> > Tracy Spratt-2 wrote:
> >> >>
> >> >> Plain old VBox will do this for you. Set the lower grid height to
> 100%
> >> >> and
> >> >> it should resize dynamically to fit (If the VBox has a fixed height)
> >> If
> >> >> the
> >> >> VBox height is not set then its container will show scrollbars
> >> >>
> >> >>
> >> >>
> >> >> Tracy Spratt,
> >> >>
> >> >> Lariat Services, development services available
> >> >>
> >> >> _
> >> >>
> >> >> From: flexcod...@yahoogro
> >>  >
> >> ups.com
> >> > [mailto:flexcod...@yahoogro
> >>  >
> >> ups.com]
> >> > On
> >> >> Behalf Of Mike Oliver
> >> >> Sent: Tuesday, May 12, 2009 12:55 PM
> >> >> To: flexcod...@yahoogro
> >>  >
>
> >> ups.com
> >>
> >> >> Subject: [flexcoders] FlowBox Nesting
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> I am trying to create a screen with a grid and a toolbar on top of
> it.
> >> >>
> >> >> The problem is that the toolbar can have more user selectable
> controls
> >> in
> >> >> it
> >> >> than will fit on small screens.
> >> >>
> >> >> So I wanted to use the FlowBox and that works great but only if I
> >> allow
> >> >> for
> >> >> the space between the Flowbox and the grid control under it.
> >> 

[flexcoders] Re: Question on Mx:HTTP Service

2009-05-17 Thread sminrana
also you can have those flashvars in your Flex application like 

var str : String = Application.application.parameters.flashvars(name);


/***/
AC_FL_RunContent(
"src", "playerProductInstall",
"FlashVars", "PUT YOUR VAR 
HERE&MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
"width", "100%",
"height", "100%",
"align", "middle",
"id", "CFMTest",
"quality", "high",
"bgcolor", "#869ca7",
"name", "CFMTest",
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer";
);
} else if (hasRequestedVersion) {
// if we've detected an acceptable version
// embed the Flash Content SWF when all tests are passed
AC_FL_RunContent(
"src", "CFMTest",
"width", "100%",
"height", "100%",
"align", "middle",
"id", "CFMTest",
"quality", "high",
"bgcolor", "#869ca7",
"name", "CFMTest", "FlashVars", "PUT YOUR VAR HERE",
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer";
);
/*/


and in the html wrapper also you can assign PHP , Coldfusion var in those  (" ")

so do whatever you want you can do with var str Now!!



[flexcoders] How to find all Installed browsers information in Windows?

2009-05-17 Thread kanu kukreja



[flexcoders] ItemRenderer Help

2009-05-17 Thread sminrana
How can i get TileList itemRenderer properties i use image 
Now i want to increase/decrease image width/height for zooming capability on 
selectedItem  ..

Have any idea  

Smin Rana 



[flexcoders] Re: Question on Mx:HTTP Service

2009-05-17 Thread sminrana

--- In flexcoders@yahoogroups.com, "myworld100us" 
wrote:
>
> I am using an app Server{Jboss] to host Flex files .
> I want to call
>
>  result="showReports(event)"
url="http://machineName:8080/ContextPath/flex/showReports.do"/>
>
>
> how do i replace this part url=
"http://machineName:8080/ContextPath/flex/showReports.do"; with
"/ContextPath/flex/showreports.do" .
>
> Otherwise its link depending on the environment i have to keep
changing the machineName and port
>




[flexcoders] Re: Duplicate Module Loads - applicationDomain / Shared Code Issues

2009-05-17 Thread Brendan Meutzner
Alex,

I set it up using your advice for factory.create(), so it's the latter... a new 
instance of the same module.

Yeah, I figured there must be a way to distinguish the eventlistener's 
dispatcher... I'll post my results once I figure it out.

Thanks again for the help.


Brendan



--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> By “load module 2” did you actually load a second module or is it a 
> second instance of an already loaded module and thus the WebService instance 
> is the same.  Hopefully it is the latter as I wouldn’t have an explanation 
> for the former.
> 
> For the latter, I believe (and I am not the expert on web-services) that 
> every send() method returns an AsyncToken and you can save that away and 
> decide whether to respond to the result event based on the AsyncToken 
> referenced in the result event.
> 
> 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 Brendan Meutzner
> Sent: Sunday, May 17, 2009 8:26 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Duplicate Module Loads - applicationDomain / Shared 
> Code Issues
> 
> 
> 
> 
> 
> Alex,
> 
> That definitely did the trick.
> 
> However...
> 
> I'm using DataService calls inside the modules, and now when event listeners 
> get set for result/fault/conflict events on them, they carry over to the 
> other modules. So if I open module 1, load it up and make a data call, then 
> load module 2, the result event on module 1 & 2 get fired. I can't exactly 
> remove the event listeners on these (which would be the simplest answer) 
> because of the fact that data synchronization is happening through LiveCycle 
> DS.
> 
> I have yet to look into trying to identify the calling module which causes 
> the result event to see if I can single them out and ignore other multiple 
> instances (which I will do tomorrow), but thought I'd post to see if there 
> was an easier solution.
> 
> Thanks very much for your original answer on this... it really helped out :-)
> 
> Brendan
> 
> --- In flexcoders@yahoogroups.com, Alex 
> Harui  wrote:
> >
> > In theory, you simply put all shared VO’s in the main app and 
> > don’t mess with applicationDomains.
> >
> > Also in theory, if it is the same module class there is no need to load it 
> > twice, you should instantiate it twice (via factory.create()) and pass it 
> > parameters it needs to make different backend calls. Should take less 
> > memory this way, and might avoid this shared code issue.
> >
> > Modules don’t work if you use â€Å"new ApplicationDomain()” 
> > as there must be shared interfaces between the loader and loadee, and using 
> > applicationDomain.currentDomain will lock the module into memory.
> >
> > 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 Brendan Meutzner
> > Sent: Saturday, May 16, 2009 3:48 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Duplicate Module Loads - applicationDomain / Shared 
> > Code Issues
> >
> >
> >
> >
> >
> > Hi All,
> >
> > I'm having trouble wrapping my head around an issue I'm facing while 
> > loading the same module twice into my main application.
> >
> > I've got a module which takes a few arguments to load up property data. If 
> > I ask for a different set of data, the same Module class gets loaded, it 
> > just makes different back end calls to populate its data. My module is 
> > located in a different project from my main application, so optimizing to 
> > application isn't an option. However, I am generating a link-report from 
> > the main application, and then using load-externs on the module's compile.
> >
> > 1) I load up an instance of the module, and it retrieves data just fine.
> > 2) I load up a second instance of the same module, but when the data is 
> > returned, I get errors relating to the fact it's trying to set my data 
> > response to a local VO Class which has already been instantiated from the 
> > first module call.
> >
> >
> > I know I've got a shared code issue going on here, but can't figure this 
> > out. I've tried the following:
> >
> > 1) Placed all re-used VO files inside main application, generated 
> > link-report, and referenced that link-report via load-externs on the 
> > modules compilation then I set applicationDomain on module load to be 
> > Application.currentDomain.
> >
> > 2) Placed all VO files inside module where they are actually used, and then 
> > set applicationDomain to a "new ApplicationDomain()" instance to try and 
> > sandbox their use.
> >
> 

RE: [flexcoders] Re: Duplicate Module Loads - applicationDomain / Shared Code Issues

2009-05-17 Thread Alex Harui
By “load module 2” did you actually load a second module or is it a second 
instance of an already loaded module and thus the WebService instance is the 
same.  Hopefully it is the latter as I wouldn’t have an explanation for the 
former.

For the latter, I believe (and I am not the expert on web-services) that every 
send() method returns an AsyncToken and you can save that away and decide 
whether to respond to the result event based on the AsyncToken referenced in 
the result event.

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 Brendan Meutzner
Sent: Sunday, May 17, 2009 8:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Duplicate Module Loads - applicationDomain / Shared 
Code Issues





Alex,

That definitely did the trick.

However...

I'm using DataService calls inside the modules, and now when event listeners 
get set for result/fault/conflict events on them, they carry over to the other 
modules. So if I open module 1, load it up and make a data call, then load 
module 2, the result event on module 1 & 2 get fired. I can't exactly remove 
the event listeners on these (which would be the simplest answer) because of 
the fact that data synchronization is happening through LiveCycle DS.

I have yet to look into trying to identify the calling module which causes the 
result event to see if I can single them out and ignore other multiple 
instances (which I will do tomorrow), but thought I'd post to see if there was 
an easier solution.

Thanks very much for your original answer on this... it really helped out :-)

Brendan

--- In flexcoders@yahoogroups.com, Alex 
Harui  wrote:
>
> In theory, you simply put all shared VO’s in the main app and don’t mess 
> with applicationDomains.
>
> Also in theory, if it is the same module class there is no need to load it 
> twice, you should instantiate it twice (via factory.create()) and pass it 
> parameters it needs to make different backend calls. Should take less memory 
> this way, and might avoid this shared code issue.
>
> Modules don’t work if you use “new ApplicationDomain()” as there must 
> be shared interfaces between the loader and loadee, and using 
> applicationDomain.currentDomain will lock the module into memory.
>
> 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 Brendan Meutzner
> Sent: Saturday, May 16, 2009 3:48 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Duplicate Module Loads - applicationDomain / Shared 
> Code Issues
>
>
>
>
>
> Hi All,
>
> I'm having trouble wrapping my head around an issue I'm facing while loading 
> the same module twice into my main application.
>
> I've got a module which takes a few arguments to load up property data. If I 
> ask for a different set of data, the same Module class gets loaded, it just 
> makes different back end calls to populate its data. My module is located in 
> a different project from my main application, so optimizing to application 
> isn't an option. However, I am generating a link-report from the main 
> application, and then using load-externs on the module's compile.
>
> 1) I load up an instance of the module, and it retrieves data just fine.
> 2) I load up a second instance of the same module, but when the data is 
> returned, I get errors relating to the fact it's trying to set my data 
> response to a local VO Class which has already been instantiated from the 
> first module call.
>
>
> I know I've got a shared code issue going on here, but can't figure this out. 
> I've tried the following:
>
> 1) Placed all re-used VO files inside main application, generated 
> link-report, and referenced that link-report via load-externs on the modules 
> compilation then I set applicationDomain on module load to be 
> Application.currentDomain.
>
> 2) Placed all VO files inside module where they are actually used, and then 
> set applicationDomain to a "new ApplicationDomain()" instance to try and 
> sandbox their use.
>
>
> Neither of these worked which is suffice to say, why this post is being 
> written.
>
>
> Thanks in advance for help.
>
>
> Brendan
>



RE: [flexcoders] Focus on itemRenderer sub-components in a non editable list

2009-05-17 Thread JérémyR

focusManager.showFocusIndicator = true works! I add it in the overriden
setFocus function and now the focus is always shown.

I understand for wraparound and you're right, it's better for accessibility
to change focused control...

Finally, calling preventDefault wisely is the key: other items are selected!

Thanks again Alex for all your answers!


Alex Harui wrote:
> 
> There is a flag in FocusManager called showFocusIndicator.  Our UI policy
> is that there is no focus indicator except around TextInput/TextArea
> unless you hit tab and then we show it on every control.  Don’t ask me
> why.  Several folks have been successful in finding ways to set
> showFocusIndicator and keep it on in order to see the indicator always. 
> There might be more to it than just setting the flag.  Search around for
> solutions.
> 
> There is no wraparound when editing.  Tabbing should let  you exit out the
> bottom of the control.  Probably better for accessibility.
> 
> Tabbing should move you from control to control.  See if it works on my
> blog example.  The key is knowing when to not call preventDefault in your
> keyFocusChangeHandler.
> 
> 
> 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 JérémyR
> Sent: Saturday, May 16, 2009 6:55 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Focus on itemRenderer sub-components in a non
> editable list
> 
> 
> 
> 
> 
> Hi Alex!
> 
> Thanks a lot for your answer.
> You point me in the right direction; I persisted trying to accomplish it
> with editable set to false because I didn’t want anything to be editable…
> But this can be done even with editable set to true.
> I do exactly what you explain on you article "
> http://blogs.adobe.com/aharui/item_renderers/ DataGrid ItemEditor with Two
> Input Fields ", i.e: adding a listener on KEY_FOCUS_CHANGE and overriding
> setFocus() to manually handle focus logic. And it works fine! Except for
> some little things…
> 
> Maybe you can help me on these points:
> 
> 1) if I focus the List with the keyboard with TAB key, it works fine, the
> item is selected, the first button has focus and focus is displayed. But
> if
> I click on the List, the first button has focus (I can “see” it by
> pressing
> SPACE) but the focus is not displayed (no border around the button). The
> weird thing is if I continue to tab, the next button gains focus, still
> without display, then when the third one gains focus, the focus starts to
> be
> displayed! So the question is why? And is there any way to force the focus
> display?
> 
> 2) I control the focus manually to switch focus from button to the
> next/previous one but the focus stays on the same list item. I wonder if I
> can switch to the next/previous item in the list (as it is naturally? done
> in your DataGrid example)? The only way I found to change selected item
> with
> keyboard is ENTER / SHIFT+ENTER but when a bound is reached it doesn’t
> roll
> (when last item is selected, next ENTER doesn’t select the first item).
> So there 3 questions in one:
> a. How to change selected item with TAB?
> b. Is ENTER / SHIFT+ENTER a standard keyboard (in "Accessibility" domain)
> access to change selected item in a list?
> c. Is there a way to roll over item when a bound is reached?
> 
> Thanks for your help!
> 
> Alex Harui wrote:
>>
>> A List must be editable in order for renderers to get focus. Is there a
>> reason you don't want to set editable=true? There's probably a way around
>> it, but I think it will be lots of work.
>>
>> 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 JérémyR
>> Sent: Thursday, May 14, 2009 12:04 PM
>> To: flexcoders@yahoogroups.com
>> Subject: [flexcoders] Focus on itemRenderer sub-components in a non
>> editable list
>>
>>
>>
>>
>>
>> Hi,
>>
>> This problem seems very simple but despite of my searches, I didn't find
>> any
>> solution...
>> I have a non editable List with custom Canvas item renderer. This Canvas
>> contains 4 buttons. And I want the user to be able to focus each button
>> with
>> TAB key.
>>
>> A lot of posts talks about similar problems but it seems there is no
>> solution (for non editable list - Alex Harui wrote an excellent article
>> on
>> his blog but for a DataGrid component but with editable set to true)...
>>
>> Is there really no solution? (if it is the case, I think it deserves a
>> bug
>> in Adobe Bug system cause it completely breaks application
>> accessibility...)
>>
>> Thanks for your reply.
>> --
>> View this message in context:
>> http://www.nabble.com/Focus-on-itemRenderer-sub-components-in-a-non-editable-

[flexcoders] Abnormality while creating Context Menu

2009-05-17 Thread Jackson

 Hi All,
  When i was working with context menus it is found that the context 
menus having label like "Copy" "Delete" are not been created..

Any Idea..

  Thanks And Regards
   Abdul Jaleel C



[flexcoders] encrypted local store

2009-05-17 Thread arieljake
anyone know a reliable method of determining the physical location of the 
encrypted local store files on a user's machine, any OS?



[flexcoders] Re: encrypted local store

2009-05-17 Thread arieljake
Am I missing any OSes?

If your OS is not listed above, please check for your ELS directory.

If your OS IS listed above, please verify the directory is correct.

I am developing a swf protection scheme that i would be happy to share with the 
community, but I need to get this part right first.



[flexcoders] Re: encrypted local store

2009-05-17 Thread arieljake
From: http://www.sitepen.com/blog/2009/02/17/queued/

Vista
C:\Users\[myuser]\AppData\Roaming\Adobe\AIR\ELS\



[flexcoders] Re: encrypted local store

2009-05-17 Thread arieljake
From: http://funkatron.com/spaziki/Encrypted-Local-Store/

Mac OSX  
~/Library/Application Support/Adobe/AIR/ELS/

Windows XP  
C:\Documents and Settings\[username]\Application |Data\Adobe\AIR\ELS



[flexcoders] Re: Duplicate Module Loads - applicationDomain / Shared Code Issues

2009-05-17 Thread Brendan Meutzner
Alex,

That definitely did the trick.


However...

I'm using DataService calls inside the modules, and now when event listeners 
get set for result/fault/conflict events on them, they carry over to the other 
modules.  So if I open module 1, load it up and make a data call, then load 
module 2, the result event on module 1 & 2 get fired.  I can't exactly remove 
the event listeners on these (which would be the simplest answer) because of 
the fact that data synchronization is happening through LiveCycle DS.

I have yet to look into trying to identify the calling module which causes the 
result event to see if I can single them out and ignore other multiple 
instances (which I will do tomorrow), but thought I'd post to see if there was 
an easier solution.

Thanks very much for your original answer on this... it really helped out :-)


Brendan



--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> In theory, you simply put all shared VO’s in the main app and don’t mess 
> with applicationDomains.
> 
> Also in theory, if it is the same module class there is no need to load it 
> twice, you should instantiate it twice (via factory.create()) and pass it 
> parameters it needs to make different backend calls.  Should take less memory 
> this way, and might avoid this shared code issue.
> 
> Modules don’t work if you use “new ApplicationDomain()” as there must 
> be shared interfaces between the loader and loadee, and using 
> applicationDomain.currentDomain will lock the module into memory.
> 
> 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 Brendan Meutzner
> Sent: Saturday, May 16, 2009 3:48 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Duplicate Module Loads - applicationDomain / Shared 
> Code Issues
> 
> 
> 
> 
> 
> Hi All,
> 
> I'm having trouble wrapping my head around an issue I'm facing while loading 
> the same module twice into my main application.
> 
> I've got a module which takes a few arguments to load up property data.  If I 
> ask for a different set of data, the same Module class gets loaded, it just 
> makes different back end calls to populate its data.  My module is located in 
> a different project from my main application, so optimizing to application 
> isn't an option.  However, I am generating a link-report from the main 
> application, and then using load-externs on the module's compile.
> 
> 1) I load up an instance of the module, and it retrieves data just fine.
> 2) I load up a second instance of the same module, but when the data is 
> returned, I get errors relating to the fact it's trying to set my data 
> response to a local VO Class which has already been instantiated from the 
> first module call.
> 
> 
> I know I've got a shared code issue going on here, but can't figure this out. 
>  I've tried the following:
> 
> 1) Placed all re-used VO files inside main application, generated 
> link-report, and referenced that link-report via load-externs on the modules 
> compilation then I set applicationDomain on module load to be 
> Application.currentDomain.
> 
> 2) Placed all VO files inside module where they are actually used, and then 
> set applicationDomain to a "new ApplicationDomain()" instance to try and 
> sandbox their use.
> 
> 
> Neither of these worked which is suffice to say, why this post is being 
> written.
> 
> 
> Thanks in advance for help.
> 
> 
> Brendan
>




RE: [flexcoders] Question on Mx:HTTP Service

2009-05-17 Thread Tracy Spratt
You can use relative paths.  But that does dictate where you put data
service.

 

I often pass urls into my Flex application through flashvars in the html
wrapper.  Among other things, it lets me switch my data services between
development, QO and production servers very easily

 

Once you have the url in Flex, you can simply assign the url to the url
property:

reportProfile.url = _sMyUrl;

reportProfile.send();

 

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of myworld100us
Sent: Sunday, May 17, 2009 5:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Question on Mx:HTTP Service

 






I am using an app Server{Jboss] to host Flex files .
I want to call 

http://machineName:

8080/ContextPath/flex/showReports.do"/>

how do i replace this part url= "http://machineName:

8080/ContextPath/flex/showReports.do" with
"/ContextPath/flex/showreports.do" . 

Otherwise its link depending on the environment i have to keep changing the
machineName and port 





[flexcoders] HyperThreading...

2009-05-17 Thread Laurence MacNeill
Does anyone know if the Flash Player supports HyperThreading?  In 
other words, will my program run faster on a CPU that has 
HyperThreading?  Or will it not make any difference?

Thanks,

Laurence MacNeill
Mableton, Georgia, USA



Re: [flexcoders] Re: Storing an array in a Database?

2009-05-17 Thread Laurence MacNeill
At 04:38 PM 5/17/2009, you wrote:

>The only thing I don't know how to do is have a CFC loop thru the
>array to store each element in the DB. Can you help?

Never mind -- I figured out how to loop thru an array in a 
CFC.  Thank God for Google.  


Laurence MacNeill
Mableton, Georgia, USA



[flexcoders] AIR app loading SWF, that loads other SWFs (per loadBytes and loaderContext)

2009-05-17 Thread Ikezi Kamanu
In order to load executable swfs into my AIR application sandbox, I've
been able to use the loader's "loadBytes" method, setting the
loaderContext to one that allows byte code execution (
loaderContext.allowLoadBytesCodeExecution = true  )

This is great, and the loaded swf can execute code, but that loaded
swf in turn needs to load other secondary swfs (that can execute code
as well).   However, the allowLoadBytesCodeExecution property is only
available to AIR, so when I try  loadBytes() for the secondary swfs, I
get the exception "Loader.loadBytes() is not permitted to load content
with executable code."  , and loading the secondary swf  the regular
way (not using loadBytes) does not allow for code execution in the
secondary swf.

Any ideas?

-ekz


[flexcoders] Question on Mx:HTTP Service

2009-05-17 Thread myworld100us
I am using an app Server{Jboss] to host Flex files .
I want to call 

http://machineName:8080/ContextPath/flex/showReports.do"/>


how do i replace this part url= 
"http://machineName:8080/ContextPath/flex/showReports.do"; with 
"/ContextPath/flex/showreports.do" . 

Otherwise its link depending on the environment i have to keep changing the 
machineName and port 



Re: [flexcoders] Re: Storing an array in a Database?

2009-05-17 Thread Laurence MacNeill
At 02:08 PM 5/17/2009, you wrote:


>--- In 
>flexcoders@yahoogroups.com, 
>Laurence MacNeill  wrote:
> >
> > At 06:26 PM 5/15/2009, you wrote:
> >
> >
> > >How that is different from a database table with 25 rows?
> >
> > Because it just is. LOL With 25 rows, you have 25 separate
> > records. This is 25 columns within a single record. There are other
> > columns too, not just these 25.
>
>It seems to me that unless this is a system that has been in long 
>production (don't laugh, y'all, I've seen some tables structured 
>exactly this way in enterprise scale databases), that you would be 
>well advised to change your database structure so that it _is_ rows 
>instead of columns.

This system's been this way for many years, but I'm completely 
re-writing it, so moving that info into a separate table with rows 
instead of columns is totally do-able.  (In fact, I came up with that 
idea after Mark's comment about the rows vs. columns.)


>Now it becomes amazingly easy to populate your tables from the 
>array. That's one reason normalization was invented. It's a great 
>design pattern.

The only thing I don't know how to do is have a CFC loop thru the 
array to store each element in the DB.  Can you help?



>HTH;

And what does HTH mean?  :-)


Thanks,

Laurence MacNeill
Mableton, Georgia, USA



[flexcoders] Re: Form with 3 Custom Components...

2009-05-17 Thread Tim Hoff

There are several techniques that you can use for this; it really
depends on what the need is and the sophistication of the application. 
Personally, I would employ a presentationModel to solve this, but using
an MVC framework and VO's can be challenging for some.  In this case,
using public properties in the components would work fine.  Respectfully
though, the assertion that using events creates a "tightly-coupled"
strategy is not correct.  Tight coupling is where components have a
direct dependency on one another.  Loose coupling avoids this by linking
the components with properties and/or events.  I do agree though, that
you wouldn't necessarily want/need to pass data around amongst
components, using custom events.  This is where the beauty of a Model
comes into play.

Here's a good article to read, that might help for this solution:

http://www.adobe.com/devnet/flex/articles/loose_coupling.html


-TH

--- In flexcoders@yahoogroups.com, "Amy"  wrote:
>
> --- In flexcoders@yahoogroups.com, Laurence MacNeill LMacNeill@ wrote:
> >
> > At 05:32 PM 5/14/2009, you wrote:
> >
> >
> >
> > >You can just handle the click event from your button and in the
> > >handler function pull the necessary information out of your 3
custom
> > >components and then do what you want with it.
> >
> > Right -- but don't I have to have those components dispatch their
own
> > events in order to pull data from them? At least, as I understand
> > it, that's the best practice. What you're telling me to do (if I'm
> > understanding) would tightly couple my form with the components,
> > because I'd be accessing stuff that's supposed to be internal to the
> > components, right?
>
> I have a really hard time figuring out why people recommend passing
information in custom events. It results in overly tight coupling, IMO,
because both the component dispatching the event and the one receiving
the event need to have that custom event compiled into them (so in
addition to tight coupling it also bloats your file size).
>
> I think it's much better practice to simply make public properties on
your components available, and then just go read those properties when
the event fires.
>
> I know that there are a few cases where it makes more sense to use a
custom event, but in most cases it's just extra work, extra file size,
and extra tight coupling for little gain.
>
> HTH;
>
> Amy
>




[flexcoders] Re: Storing an array in a Database?

2009-05-17 Thread Amy
--- In flexcoders@yahoogroups.com, Laurence MacNeill  wrote:
>
> At 06:26 PM 5/15/2009, you wrote:
> 
> 
> >How that is different from a database table with 25 rows?
> 
> Because it just is.  LOL  With 25 rows, you have 25 separate 
> records.  This is 25 columns within a single record.  There are other 
> columns too, not just these 25.

It seems to me that unless this is a system that has been in long production 
(don't laugh, y'all, I've seen some tables structured exactly this way in 
enterprise scale databases), that you would be well advised to change your 
database structure so that it _is_ rows instead of columns.

It may seem quicker and easier for now to have it all within a single record, 
but when you have to keep changing the table (and query) over and over to add 
another element to your array, you will come to regret it.  Not to mention it's 
a huge violation of good normalization practice.

Probably the best way to handle this is with two tables.  One creates a "bag" 
that all the records are in, and the other will be the records that go into the 
"bag," like so:

bag
=
bagID
bagDesc

bagElements
===
elementID
bagID
elementValue
...

All bagElements with the same bagID can be retrieved at once in a query, just 
like your one record has been in the past.  But you've gained the advantage 
that you can add or remove elements from the bag at will, and you only use the 
amount of storage space that you need for the contents of the bag, rather than 
having a cardboard box that takes up the same amount of space no matter how 
much or little is in it.

Now it becomes amazingly easy to populate your tables from the array.  That's 
one reason normalization was invented.  It's a great design pattern.

HTH;

Amy



RE: [flexcoders] Duplicate Module Loads - applicationDomain / Shared Code Issues

2009-05-17 Thread Alex Harui
In theory, you simply put all shared VO’s in the main app and don’t mess with 
applicationDomains.

Also in theory, if it is the same module class there is no need to load it 
twice, you should instantiate it twice (via factory.create()) and pass it 
parameters it needs to make different backend calls.  Should take less memory 
this way, and might avoid this shared code issue.

Modules don’t work if you use “new ApplicationDomain()” as there must be shared 
interfaces between the loader and loadee, and using 
applicationDomain.currentDomain will lock the module into memory.

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 Brendan Meutzner
Sent: Saturday, May 16, 2009 3:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Duplicate Module Loads - applicationDomain / Shared Code 
Issues





Hi All,

I'm having trouble wrapping my head around an issue I'm facing while loading 
the same module twice into my main application.

I've got a module which takes a few arguments to load up property data.  If I 
ask for a different set of data, the same Module class gets loaded, it just 
makes different back end calls to populate its data.  My module is located in a 
different project from my main application, so optimizing to application isn't 
an option.  However, I am generating a link-report from the main application, 
and then using load-externs on the module's compile.

1) I load up an instance of the module, and it retrieves data just fine.
2) I load up a second instance of the same module, but when the data is 
returned, I get errors relating to the fact it's trying to set my data response 
to a local VO Class which has already been instantiated from the first module 
call.


I know I've got a shared code issue going on here, but can't figure this out.  
I've tried the following:

1) Placed all re-used VO files inside main application, generated link-report, 
and referenced that link-report via load-externs on the modules compilation 
then I set applicationDomain on module load to be Application.currentDomain.

2) Placed all VO files inside module where they are actually used, and then set 
applicationDomain to a "new ApplicationDomain()" instance to try and sandbox 
their use.


Neither of these worked which is suffice to say, why this post is being 
written.


Thanks in advance for help.


Brendan



Re: [flexcoders] What version of AIR is req'd to run Flex 4 Gumbo?

2009-05-17 Thread Matt Chotin
Flex 4 will ship with and support AIR 1.5.  AIR runtime includes the Flash 
Player, AIR 1.5 is including Player 10.  If you check the Gumbo Language 
Reference (I think the public version, but if not, the version that will come 
out with the beta) you'll see that we've started including information on what 
version of the runtime various APIs support, etc.

Matt


On 5/17/09 1:14 PM, "Tracy Spratt"  wrote:






I am going to be doing a significant project in AIR, and would like to use the 
Flex 4 features.

Will AIR 1.5 support all of the gumbo stuff?  My reading suggests yes, but I 
would like confirmation.

And a related question, Does the AIR runtime use the Flash Player, or is there 
any relation between a Flash Player version and an AIR version?

I'm afraid I have not been paying as much attention to AIR as I perhaps should.

Tracy Spratt,
Lariat Services, development services available







[flexcoders] What version of AIR is req'd to run Flex 4 Gumbo?

2009-05-17 Thread Tracy Spratt
I am going to be doing a significant project in AIR, and would like to use
the Flex 4 features.

 

Will AIR 1.5 support all of the gumbo stuff?  My reading suggests yes, but I
would like confirmation.

 

And a related question, Does the AIR runtime use the Flash Player, or is
there any relation between a Flash Player version and an AIR version?

 

I'm afraid I have not been paying as much attention to AIR as I perhaps
should.

 

Tracy Spratt,

Lariat Services, development services available