[flexcoders] Duplicate Session Detected Error

2010-05-21 Thread Dharmendra
I need to get in to the bottom of this issue.

I have two saperate EAR applicaion deployed under two saperate Cluster of 
Weblogic and both application has nothing to do with each other , they just 
share the same J2EE server.

I am only using Remoting which invokes sever side java code and returns some 
data in response..

I could not understang what mistake I am doing which is causing this error.

I appriciate any help on this.

- Dharmendra





Re: [flexcoders] Is it possible to make multiple labels selectable as one text block like in regular html

2010-05-21 Thread Baz
It would be very beneficial if Flex/we could interact with all text in a
particular view as a single, separate logical unit on its own *layer*.


[flexcoders] Re: TabNavigator

2010-05-21 Thread turbo_vb
Yeah, see the last post.  You could extend TabNavigator and bubble up the 
tabBar itemClick event.  Not too difficult, but not out of the box.

-TH

--- In flexcoders@yahoogroups.com, Richard Rodseth  wrote:
>
> You might mean "click", in which case yes. It is dispatched when clicking
> with the content area of the navigator, but not on the button bar.
> And it wouldn't cover keyboard navigation.
> 
> On Fri, May 21, 2010 at 1:06 PM, turbo_vb  wrote:
> 
> >
> >
> > You try itemClick?
> >
> > -TH
> >
> >
> > --- In flexcoders@yahoogroups.com , Richard
> > Rodseth  wrote:
> > >
> > > Is there an event dispatched by TabNavigator when the *user* switches
> > tabs?
> > >
> > > "change" is dispatched when the selected change happens
> > > programmatically (eg. because selectedChild is bound).
> > >
> >
> >  
> >
>




[flexcoders] Re: Positioning Issue, trying to add UIComponent to HBox at run time

2010-05-21 Thread aaronius9er9er
Yeah I think you're right.  First of all, in your UIComponent implement a 
measure method and set measuredWidth and measuredHeight to the content 
dimensions of the Loader (this will probably be 0x0 until the content is 
loaded).  Then, watch the loader's events to determine when it is done loading 
its contents.  Once the contents are loaded, call invalidateSize() on the 
UIComponent.  That will force the parent component to re-measure the 
UIComponent and position it accordingly.

Aaron

--- In flexcoders@yahoogroups.com, "libbychantel"  wrote:
>
> Hello all,
> 
> I am constructing an image from some swfs at run time, I do this by creating 
> a UIComponent and adding the swfs to it using Loader. When done, I add the 
> UIC to an HBox I have on the screen. No matter what I do with setting x & y, 
> the UIC appears with the top left corner exactly in the center of the HBox. I 
> do not understand what I am doing wrong but I suspect it has to do with Flex 
> not knowing the size of the parent HBox at run time, since it starts out 
> empty. Could you please offer any suggestions or links that could help me to 
> understand what I am not doing right. 
> 
> If I am posting in the wrong group, please let me know and accept my 
> apologies for wasting your time. 
> 
> Thank you so much,
> Libby
>




[flexcoders] Re: upload files more than 150mb

2010-05-21 Thread mistatifnee
The Adobe docs are a bit dicey on this: "Starts the upload of a file selected 
by a user to a remote server. Although Flash Player has no restriction on the 
size of files you can upload or download, the player officially supports 
uploads or downloads of up to 100 MB.  You must call the FileReference.browse() 
or FileReferenceList.browse()  method before you call this method." 

http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/net/FileReference.html#upload%28%29

Most people haven't actually run into this restriction though.  I think it's 
more a case of Adobe covering their ass since I lot of things can go wrong 
while uploading large files.  I had some issues with this before and it 
actually ended up being more like what Tom is describing - the web server was 
running out of memory and dying.  I'd recommend taking a look at your server 
logs to start diagnosing the problem.  A good test for isolating the problem 
would be to attempt the large upload via a standard HTML upload form and see if 
that works (if it doesn't, then obviously it's a problem with your server). 

--- In flexcoders@yahoogroups.com, Tom Chiverton  wrote:
>
> On Friday 21 May 2010 13:13:03 you wrote:
> > Good day all,
> >  
> > I just start using flex. I would like to upload files with 150mb size. But
> >  somehow I am facing the problem of passing this file to the java side. So
> >  could you please help me. 
> 
> What goes wrong ? If smaller files transfer fine, it's probably a max process 
> lifetime or RAM usage on the server.
> 
> -- 
> Tom Chiverton
> Helping to simultaneously conquer metrics as part of the IT team of the year 
> 2010, '09 and '08
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in England and 
> Wales under registered number OC307980 whose registered office address is at 
> Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
> of members is available for inspection at the registered office together with 
> a list of those non members who are referred to as partners.  We use the word 
> ?partner? to refer to a member of the LLP, or an employee or consultant with 
> equivalent standing and qualifications. Regulated by the Solicitors 
> Regulation Authority.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named above and may 
> be confidential or legally privileged.  If you are not the addressee you must 
> not read it and must not use any information contained in nor copy it nor 
> inform any person other than Halliwells LLP or the addressee of its existence 
> or contents.  If you have received this email in error please delete it and 
> notify Halliwells LLP IT Department on 0870 365 2500.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>




[flexcoders] Positioning Issue, trying to add UIComponent to HBox at run time

2010-05-21 Thread libbychantel
Hello all,

I am constructing an image from some swfs at run time, I do this by creating a 
UIComponent and adding the swfs to it using Loader. When done, I add the UIC to 
an HBox I have on the screen. No matter what I do with setting x & y, the UIC 
appears with the top left corner exactly in the center of the HBox. I do not 
understand what I am doing wrong but I suspect it has to do with Flex not 
knowing the size of the parent HBox at run time, since it starts out empty. 
Could you please offer any suggestions or links that could help me to 
understand what I am not doing right. 

If I am posting in the wrong group, please let me know and accept my apologies 
for wasting your time. 

Thank you so much,
Libby



Re: [flexcoders] allowNetworking internal disables basic linking

2010-05-21 Thread Oleg Sivokon
Yes, that's how it is supposed to behave... you should really ask them to
switch that to something other than internal. Other solutions I could think
of are rather difficult... like, deploying your SWF via iframe...

Best.

Oleg


[flexcoders] best automated testing tool for flex?

2010-05-21 Thread sathish_mca_raja
Just wanted to know which is the best automated testing tool out of the tools 
that are currently available in the market.

My opinion is flex monkey. but it supports flex sdks starting with version 3.3 
only.

what would be the next best tool to use?

Please let me know your recommendations.



[flexcoders] allowNetworking internal disables basic linking

2010-05-21 Thread Seth Caldwell
What the heck? Hyperlinking was part of the very first implementation of
HTML, and I am now unable to link to another page from within a swf on
myspace which forces allowNetworking=internal?

How is it possible that through security measures the fundamental use cases
of the web have been disabled?

 

Anyone know a workaround to this?

The error is:

SecurityError: Error #2146: Security sandbox violation:
http://media.collarfree.com/artistichub/top5.swf cannot call navigateToURL
because the HTML/container parameter allowNetworking has the value internal.

at global/flash.net::navigateToURL()

at DesignStats/showProfile()

at DesignStats/___DesignStats_Image1_click()

 

 

Checkout the top 5 photos on the left down a bit on the page at
http://www.myspace.com/reflectioneternal

clicking is supposed to link to the contest. but apparently basic linking is
no longer allowed.. I feel like I'm taking crazy pills!

 

 

 

Seth

 

 

Seth Caldwell, Developer
Collar Free & Artistic Hub

e-mail   s...@collarfree.com
twitter@sethinsd

work   (805) 450-1741

website www.artistichub.com

 

 



[flexcoders] Is it possible to integrate the CTRL+F browser search with flex text?

2010-05-21 Thread Baz
All browsers have some text search functionality triggered by CTRL+F. Is it
possible to use that to search text in a Flex application?


Re: [flexcoders] Re: Data grid vary column sizes

2010-05-21 Thread Alex Harui
Calculating column widths is not a built-in feature of the framework because it 
invites people to run code that has to visit every row in the dataprovider.

You can write such code yourself to compute the width of a column if you wish.


On 5/21/10 10:39 AM, "method_air"  wrote:






Autosizing a datagrids column width to fit the contents of a field is a common 
feature in other frameworks. Is there a Flex equivalent?

--- In flexcoders@yahoogroups.com  , 
Brendan Meutzner  wrote:
>
> The concept of auto fitting wouldn't really work for the simple reason that
> the row children are recycled as the content is scrolled.  If you did end up
> figuring out the functionality to make this happen from the itemRenderers,
> the column width would be constantly changing to "fit" to the currently
> viewable set of renderers.
>
>
> Brendan
>
>
>
> On Fri, May 21, 2010 at 11:52 AM, method_air  wrote:
>
> >
> >
> > Thanks. Is there a way for the column to intelligently 'autofit' to the
> > width of its contents?
> >
> >
> > --- In flexcoders@yahoogroups.com   
> > , "David"
> >  wrote:
> > >
> > > Set the width on the DataGridColumn, not on its itemRenderer
> > >
> > > --- In flexcoders@yahoogroups.com   
> > > ,
> > "method_air"  wrote:
> > > >
> > > > How do you vary the data grid column widths? Setting the width property
> > inside the item renderers to different values is not working.
> > > >
> > > > Thanks,
> > > >
> > > > Philip
> > > >
> > >
> >
> >
> >
>
>
>
> --
> Brendan Meutzner
> http://www.meutzner.com/blog/
> http://www.riajobs.com
>






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Is it possible to make multiple labels selectable as one text block like in regular html

2010-05-21 Thread Alex Harui
Yeah, probably two pieces: some MOUSE_DOWN/MOUSE_MOVE/MOUSE_UP code that draws 
a selection rectangle, and code that walks the tree of display objects using 
getChildAt, checks to see if the child is contained in the rectangle, and sees 
if it has any text.


On 5/21/10 1:08 PM, "Baz"  wrote:






I don't mind writing code, any clues on where to start? Perhaps something like 
a global selection manager that detects mousedown and secretly traverses all 
the components behind the scenes?



On Fri, May 21, 2010 at 11:14 AM, Alex Harui  wrote:





That’s not a feature of the framework, but if you write enough code I think it 
should be possible.




On 5/21/10 10:37 AM, "Baz" http://li...@thinkloop.com> > 
wrote:






If you have an item renderer with multiple labels like:







Is it possible to make the text selectable across renderers and labels as one 
logical block exactly like in html?






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] how to adjust mouse wheel scrolling for custom itemrender?

2010-05-21 Thread Alex Harui
I’m pretty sure at least one person claimed victory by modifying the delta of 
the MouseEvent.


On 5/21/10 12:56 PM, "dorkiedorkfromdorkt...@gmail.com" 
 wrote:






I'm having this issue too. Is there any solution?

On Tue, May 18, 2010 at 3:30 PM, Alex Harui  wrote:





Scrolling speed is a known issue.  Some folks have had luck by modifying the 
delta property of the MouseEvent before the scroller sees it by using a capture 
phase or high priority event handler.



On 5/18/10 11:23 AM, "Baz" http://li...@thinkloop.com> > 
wrote:






I have a skinnabledatacontainer with custom itemrender surrounded by a scroller 
and I want to adjust how many records are scrolled when the mouse-wheel is 
used. Currently it scrolls way to many records. Is there an easy way to do 
this? So far, the only way I've found is to extend the existing scroller, then 
override the mx_internals "set mouseWheel" function. The file also has to be 
AS, because overriding mx_internals functions doesn't work in mxml . 
It's a very heavy solution for a relatively simple activity, am I missing 
something?

Cheers,
Baz






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Re: TabNavigator

2010-05-21 Thread Richard Rodseth
You might mean "click", in which case yes. It is dispatched when clicking
with the content area of the navigator, but not on the button bar.
And it wouldn't cover keyboard navigation.

On Fri, May 21, 2010 at 1:06 PM, turbo_vb  wrote:

>
>
> You try itemClick?
>
> -TH
>
>
> --- In flexcoders@yahoogroups.com , Richard
> Rodseth  wrote:
> >
> > Is there an event dispatched by TabNavigator when the *user* switches
> tabs?
> >
> > "change" is dispatched when the selected change happens
> > programmatically (eg. because selectedChild is bound).
> >
>
>  
>


[flexcoders] Re: TabNavigator

2010-05-21 Thread turbo_vb
Strike that first response; no itemClick event there.  But, the protected var 
tabBar does dispatch itemClick, so...

-TH

--- In flexcoders@yahoogroups.com, Richard Rodseth  wrote:
>
> Is there an event dispatched by TabNavigator when the *user* switches tabs?
> 
> "change" is dispatched when the selected change happens
> programmatically (eg. because selectedChild is bound).
>




[flexcoders] Re: TabNavigator

2010-05-21 Thread turbo_vb
You try itemClick?

-TH

--- In flexcoders@yahoogroups.com, Richard Rodseth  wrote:
>
> Is there an event dispatched by TabNavigator when the *user* switches tabs?
> 
> "change" is dispatched when the selected change happens
> programmatically (eg. because selectedChild is bound).
>




Re: [flexcoders] Is it possible to make multiple labels selectable as one text block like in regular html

2010-05-21 Thread Baz
I don't mind writing code, any clues on where to start? Perhaps something
like a global selection manager that detects mousedown and secretly
traverses all the components behind the scenes?



On Fri, May 21, 2010 at 11:14 AM, Alex Harui  wrote:

>
>
> That’s not a feature of the framework, but if you write enough code I think
> it should be possible.
>
>
>
> On 5/21/10 10:37 AM, "Baz"  wrote:
>
>
>
>
>
>
> If you have an item renderer with multiple labels like:
>
> 
> 
> 
> 
> 
>
> Is it possible to make the text selectable across renderers and labels as
> one logical block exactly like in html?
>
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>
>  
>


Re: [flexcoders] how to adjust mouse wheel scrolling for custom itemrender?

2010-05-21 Thread dorkie dork from dorktown
I'm having this issue too. Is there any solution?

On Tue, May 18, 2010 at 3:30 PM, Alex Harui  wrote:

>
>
> Scrolling speed is a known issue.  Some folks have had luck by modifying
> the delta property of the MouseEvent before the scroller sees it by using a
> capture phase or high priority event handler.
>
>
>
> On 5/18/10 11:23 AM, "Baz"  wrote:
>
>
>
>
>
>
> I have a skinnabledatacontainer with custom itemrender surrounded by a
> scroller and I want to adjust how many records are scrolled when the
> mouse-wheel is used. Currently it scrolls way to many records. Is there an
> easy way to do this? So far, the only way I've found is to extend the
> existing scroller, then override the mx_internals "set mouseWheel" function.
> The file also has to be AS, because overriding mx_internals functions
> doesn't work in mxml . It's a very heavy solution for a
> relatively simple activity, am I missing something?
>
> Cheers,
> Baz
>
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
>
> http://blogs.adobe.com/aharui
>  
>


[flexcoders] TabNavigator

2010-05-21 Thread Richard Rodseth
Is there an event dispatched by TabNavigator when the *user* switches tabs?

"change" is dispatched when the selected change happens
programmatically (eg. because selectedChild is bound).


Re: [flexcoders] Is it possible to make multiple labels selectable as one text block like in regular html

2010-05-21 Thread Alex Harui
That’s not a feature of the framework, but if you write enough code I think it 
should be possible.


On 5/21/10 10:37 AM, "Baz"  wrote:






If you have an item renderer with multiple labels like:







Is it possible to make the text selectable across renderers and labels as one 
logical block exactly like in html?






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Is it possible to remove the 3d effects on controls like dropdownlist and scroller without extending them?

2010-05-21 Thread Alex Harui
You should be able to do that with skins.


On 5/21/10 10:32 AM, "Baz"  wrote:






is it possible to remove the 3d effects on controls like dropdownlist and 
scroller without extending them? I just want them to be flat.

Thanks,
Baz





--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] how to adjust mouse wheel scrolling for custom itemrender?

2010-05-21 Thread Alex Harui
That might work.  If it doesn’t, try a parent of the scroller.


On 5/21/10 10:39 AM, "Baz"  wrote:






Ah I see, thanks for the info. Where would I listen to the "capture" phase? In 
the scroller component?

On Tue, May 18, 2010 at 1:30 PM, Alex Harui  wrote:





Scrolling speed is a known issue.  Some folks have had luck by modifying the 
delta property of the MouseEvent before the scroller sees it by using a capture 
phase or high priority event handler.




On 5/18/10 11:23 AM, "Baz" http://li...@thinkloop.com> > 
wrote:






I have a skinnabledatacontainer with custom itemrender surrounded by a scroller 
and I want to adjust how many records are scrolled when the mouse-wheel is 
used. Currently it scrolls way to many records. Is there an easy way to do 
this? So far, the only way I've found is to extend the existing scroller, then 
override the mx_internals "set mouseWheel" function. The file also has to be 
AS, because overriding mx_internals functions doesn't work in mxml . 
It's a very heavy solution for a relatively simple activity, am I missing 
something?

Cheers,
Baz






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] how to adjust mouse wheel scrolling for custom itemrender?

2010-05-21 Thread Baz
Ah I see, thanks for the info. Where would I listen to the "capture" phase?
In the scroller component?

On Tue, May 18, 2010 at 1:30 PM, Alex Harui  wrote:

>
>
> Scrolling speed is a known issue.  Some folks have had luck by modifying
> the delta property of the MouseEvent before the scroller sees it by using a
> capture phase or high priority event handler.
>
>
>
> On 5/18/10 11:23 AM, "Baz"  wrote:
>
>
>
>
>
>
> I have a skinnabledatacontainer with custom itemrender surrounded by a
> scroller and I want to adjust how many records are scrolled when the
> mouse-wheel is used. Currently it scrolls way to many records. Is there an
> easy way to do this? So far, the only way I've found is to extend the
> existing scroller, then override the mx_internals "set mouseWheel" function.
> The file also has to be AS, because overriding mx_internals functions
> doesn't work in mxml . It's a very heavy solution for a
> relatively simple activity, am I missing something?
>
> Cheers,
> Baz
>
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>
>  
>


[flexcoders] Re: Data grid vary column sizes

2010-05-21 Thread method_air
Autosizing a datagrids column width to fit the contents of a field is a common 
feature in other frameworks. Is there a Flex equivalent?

--- In flexcoders@yahoogroups.com, Brendan Meutzner  wrote:
>
> The concept of auto fitting wouldn't really work for the simple reason that
> the row children are recycled as the content is scrolled.  If you did end up
> figuring out the functionality to make this happen from the itemRenderers,
> the column width would be constantly changing to "fit" to the currently
> viewable set of renderers.
> 
> 
> Brendan
> 
> 
> 
> On Fri, May 21, 2010 at 11:52 AM, method_air  wrote:
> 
> >
> >
> > Thanks. Is there a way for the column to intelligently 'autofit' to the
> > width of its contents?
> >
> >
> > --- In flexcoders@yahoogroups.com , "David"
> >  wrote:
> > >
> > > Set the width on the DataGridColumn, not on its itemRenderer
> > >
> > > --- In flexcoders@yahoogroups.com ,
> > "method_air"  wrote:
> > > >
> > > > How do you vary the data grid column widths? Setting the width property
> > inside the item renderers to different values is not working.
> > > >
> > > > Thanks,
> > > >
> > > > Philip
> > > >
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> Brendan Meutzner
> http://www.meutzner.com/blog/
> http://www.riajobs.com
>




[flexcoders] Is it possible to make multiple labels selectable as one text block like in regular html

2010-05-21 Thread Baz
If you have an item renderer with multiple labels like:







Is it possible to make the text selectable across renderers and labels as
one logical block exactly like in html?


[flexcoders] Is it possible to remove the 3d effects on controls like dropdownlist and scroller without extending them?

2010-05-21 Thread Baz
is it possible to remove the 3d effects on controls like dropdownlist and
scroller without extending them? I just want them to be flat.

Thanks,
Baz


Re: [flexcoders] DataGrid and XML

2010-05-21 Thread Alex Harui
I placed the XML files in the same folder as the main app and modified the urls 
to get them and it worked for me.  If you make the same changes does it work 
for you?  If so, it might be a server-side issue


On 5/20/10 10:39 AM, "Mauro Emiliano Alturria"  wrote:






Friendly of the group I am thankful for the reading of the present mail, the 
reason for the same is to do a consultation to them on the following subject.
Them basically in question comment:
I am taking my first steps in Flex 3 and creates an unit which asking for a 
date carries out via call to a PHP a consultation to a MySQL base obtaining 
like 3 result XMLs, which are seen in 3 DataGrid and a ColumnChart, and I have 
these problems:
1- I am myself forced on two ocassions to do click on the button of 
consultation, to be able to see the result in the DataGrid.
2- When change the date the new XML are generated to me, but profit not to 
update the DataGrid. Thanks for the aid that can give me, since I take my first 
steps with this tool.
Associate the file main.mxml and the archives grafico1.xml, grafico2.xml and 
grafico3.xml
Thanks
Mauro





--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Re: Data grid vary column sizes

2010-05-21 Thread Brendan Meutzner
The concept of auto fitting wouldn't really work for the simple reason that
the row children are recycled as the content is scrolled.  If you did end up
figuring out the functionality to make this happen from the itemRenderers,
the column width would be constantly changing to "fit" to the currently
viewable set of renderers.


Brendan



On Fri, May 21, 2010 at 11:52 AM, method_air  wrote:

>
>
> Thanks. Is there a way for the column to intelligently 'autofit' to the
> width of its contents?
>
>
> --- In flexcoders@yahoogroups.com , "David"
>  wrote:
> >
> > Set the width on the DataGridColumn, not on its itemRenderer
> >
> > --- In flexcoders@yahoogroups.com ,
> "method_air"  wrote:
> > >
> > > How do you vary the data grid column widths? Setting the width property
> inside the item renderers to different values is not working.
> > >
> > > Thanks,
> > >
> > > Philip
> > >
> >
>
>  
>



-- 
Brendan Meutzner
http://www.meutzner.com/blog/
http://www.riajobs.com


[flexcoders] Re: How to automatise Unit test with Maven ???---Thank you One question please m

2010-05-21 Thread m_teodori
I don't use that, if you have the flashplayer standalone executable in your 
PATH variable, it gets automatically picked up by flexmojos, anyway as marvin 
says the flexmojos mailing list is the best place where you can find answers 
once you start using it, as it does so many things...
--m

--- In flexcoders@yahoogroups.com, Nini7016 Nini7016  wrote:
>
> 
> Thank you for your help
> 
> do you know what should i put in the : flashPlayer.command
> 
> 
>   
> 
> ${flashPlayer.command}
>   
> 
> 
> i don't know what should i define in :
> 
>
> 
>
>  
> To: flexcoders@yahoogroups.com
> From: marcello.teod...@...
> Date: Wed, 19 May 2010 10:39:59 +
> Subject: [flexcoders] Re: How to automatise Unit test with Maven ???
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
> 
> 
>   
> 
> 
> 
>   
>   
>   specifically, you can find some information along with examples on this 
> flexmojos wiki page:
> 
>   https://docs.sonatype.org/display/FLEXMOJOS/Unit+test+frameworks+GAV
> 
> I use it all the time successfully on developers' machines and also on an 
> Hudson continuos integration server running on a headless Linux server 
> configured as explained here, at least as long as Adobe does not produce an 
> headless Flash player for running unit tests!
> 
>   
> https://docs.sonatype.org/display/FLEXMOJOS/Running+unit+tests?focusedCommentId=1998934#Runningunittests-linux
> 
> 
> 
> --m
> 
> 
> 
> --- In flexcoders@yahoogroups.com, Evan Klein  wrote:
> 
> >
> 
> > You should be able to find documentation or examples available at
> 
> > flex-mojos http://flexmojos.sonatype.org/.
> 
> > 
> 
> > Evan
> 
> > 
> 
> > On Tue, May 18, 2010 at 9:56 AM, Nini7016 Nini7016 <
> 
> > nahloulahanem@> wrote:
> 
> > 
> 
> > >
> 
> > >
> 
> > > Hello
> 
> > >
> 
> > > I would like to automatise Unit tests but i didn't find the best plugin
> 
> > > which does this ?
> 
> > >
> 
> > > does anyone did this before 
> 
> > >
> 
> > >
> 
> > > Thanks
> 
> 
> 
> 
> 
> 
> 
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> _
> Vous voulez regarder la TV directement depuis votre PC ? C'est tr�s simple 
> avec Windows 7
> http://clk.atdmt.com/FRM/go/229960614/direct/01/
>




[flexcoders] Re: Data grid vary column sizes

2010-05-21 Thread method_air
Thanks. Is there a way for the column to intelligently 'autofit' to the width 
of its contents?

--- In flexcoders@yahoogroups.com, "David"  wrote:
>
> Set the width on the DataGridColumn, not on its itemRenderer
> 
> --- In flexcoders@yahoogroups.com, "method_air"  wrote:
> >
> > How do you vary the data grid column widths? Setting the width property 
> > inside the item renderers to different values is not working.
> > 
> > Thanks,
> > 
> > Philip
> >
>




[flexcoders] Re: How to Control the state of external window browser from FLEX/Javascript

2010-05-21 Thread valdhor
In your navigateToURL, use a specific name for the window and use this name for 
subsequent calls.

navigateToURL(new URLRequest("http://www.adobe.com";), '_MyNewWindow');

_blank tells the browser to use a new window every time.

--- In flexcoders@yahoogroups.com, athota  wrote:
>
> 
> I am trying to open a new browser window from flex using navigateToURL(...)
> method.
> 
> Now my requirement is I do have 3 link buttons in flex where all are the
> external URLs.
> If I click on those link buttons all will be opened in 3 different windows,
> since I use "_blank" as one
> of the parameter to navigateToURL() method. But, I want to make use of same
> browser window
> which is already opened externally. How can I find it from flex/javascript
> that whether the external window 
> is opened? If so if I click on second link in flex how do I update the same
> external window which is opened
> all ready with the new URL? (At a time only one external window should be
> used). 
> 
> Any code snippet would be helpful.
> -- 
> View this message in context: 
> http://old.nabble.com/How-to-Control-the-state-of-external-window-browser-from-FLEX-Javascript-tp28623367p28623367.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>




Re: [flexcoders] Do you have see this message before :An internal build error has occurred. Right-click for more information. ???

2010-05-21 Thread Oleg Sivokon
Try compiling from command line and see what you will get in the output.
Something like:

cd ~/flex/sdk/bin
./mxmlc test.as -o test.swf

And see what you get in response.


Re: [flexcoders] upload files more than 150mb

2010-05-21 Thread Tom Chiverton
On Friday 21 May 2010 13:13:03 you wrote:
> Good day all,
>  
> I just start using flex. I would like to upload files with 150mb size. But
>  somehow I am facing the problem of passing this file to the java side. So
>  could you please help me. 

What goes wrong ? If smaller files transfer fine, it's probably a max process 
lifetime or RAM usage on the server.

-- 
Tom Chiverton
Helping to simultaneously conquer metrics as part of the IT team of the year 
2010, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

[flexcoders] Re: creating a magnetic grid

2010-05-21 Thread ouaqa
Hello again, 
I solved this issue by creating a "MagneticGrid" object containing the visual 
representation of the grid and two arrays : one for x-axis grid coordinates , 
the other for the y-axis coordinates.

When an item is moved, it's current position is tested against the two arrays.
If the current position is close enough to a "magnetic" axis point, it is 
directly moved to the corresponding coordinate.

--- In flexcoders@yahoogroups.com, "ouaqa"  wrote:
>
> Thanks a lot, I'm gonna look into it
> 
> --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
> >
> > You might be able to use this:
> > 
> > http://blogs.adobe.com/aharui/2010/01/constrained_drag_and_drop.html
> > 
> > 
> > On 5/20/10 5:50 AM, "ouaqa"  wrote:
> > 
> > 
> > 
> > 
> > 
> > 
> > Hello,
> > 
> > As part of my project, I need to create a magnetic grid, locking moving 
> > objects to the grid as they are moved (it's a drawing api).
> > 
> > The Graphic Objects (i.e pictures, text, ... ) are Canvas objects that are 
> > display on a Canvas (more or less the background of the drawing api).
> > 
> > Over this canvas, i added another canvas displaying a grid ( a Shape Object 
> > with a bunch of horizontal and vertical lines).
> > 
> > This is where my imagination stops.
> > I'm fairly new to flex development and I have no idea about how to "lock" 
> > the graphic objects to the grid as they are moved.
> > 
> > By the way, if it's relevant to you guys, objects are not moved using the 
> > drag&drop mechanism but using the com.greensock.transformManager 
> > (http://www.greensock.com/).
> > 
> > I've searched the adobe documentation, this group and googled for a while 
> > without finding any relevant information. Any advice would be greatly 
> > appreciated.
> > If any of you wish, I can add some juicy bits of code.
> > 
> > Thanks in advance.
> > 
> > 
> > 
> > 
> > 
> > 
> > --
> > Alex Harui
> > Flex SDK Team
> > Adobe System, Inc.
> > http://blogs.adobe.com/aharui
> >
>




Re: [flexcoders] Set Width of An Item Renderer Component Based on Visible Property of the Control

2010-05-21 Thread Angelo Anolin


Thanks for this tip.

But, I came across another thing.

How would I set the width of the column so that it matches the width of the 
itemrenderers inside it?

Apparently, setting the width to 100% for the datagrid column is not allowed.

Thanks.

Angelo



From: Christopher McArthur 
To: flexcoders@yahoogroups.com
Sent: Thu, 20 May, 2010 17:14:06
Subject: RE: [flexcoders] Set Width of An Item Renderer Component Based on 
Visible Property of the Control

  
the "includeInLayout" property may also be helpful to
you in this case, try:
includeInLayout="{outerDocument. fncVisible( )}"
 
From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of Angelo
Anolin
Sent: Thursday, May 20, 2010 2:46 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Set Width of An Item Renderer Component Based on
Visible Property of the Control
 
  
Hi
FlexCoders,
 
I
have declared an in-line item renderer in my datagrid:
 

  
  
 
  
   
  
 
  
 
  
 
  
   
  
 
  

 
 
as
you may see, I am determining the visibility of the link button via a function.
 What I want to achieve is that if the linkbutton contrl is invisible, the
width should be 0, but if it is visible, then width should be 100.
 
How
do I pass in a function for the width of the control whether it's visibility is
set to true or false?
 
Thanks.
 
 


  

[flexcoders] upload files more than 150mb

2010-05-21 Thread free man
Good day all,
 
I just start using flex. I would like to upload files with 150mb size. But 
somehow I am facing the problem of passing this file to the java side. So could 
you please help me.
 
Here is the code I am using :
 
   //To upload a file into selected folder    
    private function addFiles():void { 
       refUploadFile = new  FileReference(); 
       refUploadFile.browse(); 
       
refUploadFile.addEventListener(Event.SELECT,onFileSelect); 
       
refUploadFile.addEventListener(Event.COMPLETE,onFileComplete); 
      }
    // Called when a file is selected 
      private function onFileSelect(event:Event):void { 
       
UploadFiles.push({name:refUploadFile.name}); 
       dataGrid.dataProvider  = UploadFiles; 
       dataGrid.selectedIndex = 
UploadFiles.length - 1; 
       refUploadFile.load();  
      } 
      
    // Called when a file is Completed 
      private function onFileComplete(event:Event):void{ 
     refUploadFile = event.currentTarget as 
FileReference; 
     
     var data:ByteArray = new ByteArray();
     
refUploadFile.data.readBytes(data,0,refUploadFile.data.length); 
    Alert.show("data.length" + 
data.length,"refUploadFile.data.length" + refUploadFile.data.length); 
     //  remoteUpload.doUpload(data, 
refUploadFile.name,selectedfolderpath)
     var token:AsyncToken = 
AsyncToken(remoteUpload.doUpload(data, refUploadFile.name,selectedfolderpath)); 
     token.kind = refUploadFile.name; 
      }   
 
Bets Regards


  

[flexcoders] Re: Data grid vary column sizes

2010-05-21 Thread David
Set the width on the DataGridColumn, not on its itemRenderer

--- In flexcoders@yahoogroups.com, "method_air"  wrote:
>
> How do you vary the data grid column widths? Setting the width property 
> inside the item renderers to different values is not working.
> 
> Thanks,
> 
> Philip
>




[flexcoders] DataGrid and XML

2010-05-21 Thread Mauro Emiliano Alturria
 Friendly of the group I am thankful for the reading of the present mail,
the reason for the same is to do a consultation to them on the following
subject.
Them basically in question comment:
I am taking my first steps in Flex 3 and creates an unit which asking for a
date carries out via call to a PHP a consultation to a MySQL base obtaining
like 3 result XMLs, which are seen in 3 DataGrid and a ColumnChart, and I
have these problems:
1- I am myself forced on two ocassions to do click on the button of
consultation, to be able to see the result in the DataGrid.
2- When change the date the new XML are generated to me, but profit not to
update the DataGrid. Thanks for the aid that can give me, since I take my
first steps with this tool.
Associate the file main.mxml and the archives grafico1.xml, grafico2.xml and
grafico3.xml
Thanks
Mauro


main.mxml
Description: Binary data
 
			   OSTEL-PLAN_BLANCO_PADRON_BRISTOL_PARK59I.O.M.A._57DAS_DIR._DE_AYUDA_SOCIAL_36OSPCYQ_O.S._PERS._PAPEL,CARTON_Y_QUIMICOS-BP_30OSUTHGRA_F/DE_PADRON_O.S.PERS.ACT.GASTRON.___27PRENSA_PADRON_-_BRISTOL_PARK_22DOSUBA___15OSVVRA(ANDAR)PADRON_BRISTOL_PARK_15HOMINIS-PLAN_DE_SALUD_SANATORIO_GUEMES___12OBSBA__CIUDAD_DE_BS._AS._OBRA_SOCIAL_DE_LA___11STAFF_MEDICO_9OSPIT_-_O.S._PERS._IND._TEXTIL___8OSVVRA-BRISTOL_PARK_FUERA_PADRON_6CEMENTERIOS_O.S._DEL_PERS._DE_(FUERA_PADRON)_5OSVVRA__VIAJANTES_VENDEDORES_R.ARG._O.S._DE__4PRENSA_F/DE_PADRON_O.S._DEL_PERS.DE_-_BRISTOL4UTA_-_CPI_ZONA_OESTE_4HOMINIS-PLAN_SALUD_S.GUEMES_F/PADRON_4ATSA_(EMPLEADOS_SANATORIO_GUEMES)3PREVENCION_ART_-_CONINSAL3SWISS_MEDICAL2OSPCYQ_F/PADRON_O.S.PAPEL,CARTON_Y_QUIMICO-BP2OSDOP_-_OBRA_SOCIAL_DE_DOCENTES_PRIVADOS_2ATSA_-_HEALTHY(EMPLEADOS_NO_SANATORIO_GUEMES)1OSPIHMP-P.I.HIELO_Y_MER.P.O.S.DEL_(PADRON)___1 
   RNT_12QMT_7TRABAJO_DE_PARTO6EMB_DE_TERMINO__3NEUMONIA3T._DE_PARTO_2BIOPSIA_RENAL___2IRA_DESHIDRATACION__1NEUMONIA_DCHA_CON_DERRAME_E_HIPOXEMIA___1RPM_1HEMATURIA___1ABORTO_INCOMPLETO___1SME_FEBRIL_CON_FOCO_A_DETERMINAR1NEUMONIA_-GRIPE_PROBABLE_H1_NI__1CIRUGIA_DE_REVASCULARIZACION_MIOCARDICA_1APL._OSEO_EN_TIBIA__1INFARTO_DEL_MIOCARDIO___1EMB_41_SEM__1PRECORDALGIA1NEUTROPENIA_FEBRIL__1MT._1_1/2_DEL_EMB._AB_INCOMPLETO_?__1SINCOPE_1DOLOR_ABDOMINAL_1SME_VERTIGINOSO_1PREPARTO_+_DINAMICA_UTERINA_1NEUMONIA_/IRAB_CON_HIPOXEMIA1ACV_ISQUEMICO___1SCA_1DERRAME_PLEURAL_1ANGINA_DE_PECHO_1CANCER_RENAL-MAL_ESTADO_GENERAL-ANEMICO-1INSUFICIENCIA_RENAL_REAGUDIZADA_1DOLOR_ABDOMINAL_-ABDOMEN_AGUDO_MEDICO___1SOSPECHA_ARTRITIS_SEPTICA___1ARTROSCOPIA_1LINFOMA_1PASAJE_DE_GLAMAGLOBULINA1SME_BQL_1HEMORRAGIA_DIGESTIVA_ALTA___1DERRRAME_PLEURAL__NEUMONIA__POSIBLE_VIRU1AIT/ACV_1ACV_1RNT_PAEG1INTOXICACION_MEDICAMENTOSA__1POLITRAUMATISMO_1SUB_OCLUSION_INTESTINAL_1INFECCION_HERIDA_QX_/_CX_COARTACION_AO__1 
   _NO_ESPECIFICA_CODIGO___52PARTO_UNICO_ESPONTANEO__10ABDOMEN_AGUDO___7PARTO_UNICO_POR_CESAREA_3OTROS_PARTOS_UNICOS_POR_CESAREA_1ABORTO_ESPONTANEO___1_CODIGO_INEXISTENTE_1

Re: [flexcoders] var myVar : Function = new Function ? examples?

2010-05-21 Thread Kerry Jordan
On Thu, May 20, 2010 at 6:22 AM, Nick Middleweek  wrote:
> I was going to use the approach for my URLLoader complete event handler 
> function, I was hoping to keep things a bit neater and just pass the .data 
> through to my Cairngorm Command.

We implemented something similar at work. I suggest that instead of
creating a "new" function, simply use a reference to an existing
function. For example, in the class that dispatches the command,
create a function such as...

private function processCmd( /* result data */ ):void
{
// functionality to handle result here
}

Then, add a function property to the command event...

private var _result:Function;

public function get result():Function
{
return _result;
}

public function set result( value:Function ):void
{
_result = value;
}

You can set the function in the command event (cmd) by the following
statement...
cmd.result = processCmd; // note that parentheses are not included or
it would be a function call instead of reference

In the processing of the command event, when you have received data
simply call...
if ( cmd.result != null )
{
cmd.result( /* result data */ );
}

Does that make sense? Does it address your problem?

Kerry


[flexcoders] Re: Generic Function To Set ComboBox Item

2010-05-21 Thread David
What about something along these lines:

private function selectComboItem( cb : ComboBox, item : String, itemField : 
String = null ) : int
{
  var dp : ICollectionView = cb.dataProvider;
  var i : uint = 0;

  if ( itemField == null )
itemField = cb.labelField;

  for each ( var dpi : Object in dp )
  {
if ( dpi[ itemField ] == item )
{
  cb.selectedIndex = i;
  return i;
  }

  return -1;
}

Obviously this needs a lot more work to be 100% generic, since the dpi's can be 
any kind of object, including primitives like String and XML in the case of 
XMLList based data providers, where you will need to use something like (dpi as 
XML).attribute( itemField )[0] to get the required item field for comparison.

--- In flexcoders@yahoogroups.com, "bhaq1972"  wrote:
>
> sorry, i meant
> var item:String = xmlLC.getItemAt(i)[collectionID];
> 
> --- In flexcoders@yahoogroups.com, "bhaq1972"  wrote:
> >
> > > Generic form>>
> > > var item:String = xmlLC.getItemAt(i).collectionID; ??
> > > 
> > 
> > Try this
> > 
> > var item:String = xmlLC.getItemAt(i)["collectionID"];
> > 
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, Angelo Anolin  wrote:
> > >
> > > Actually, the dpID is different for each xmllistcollection being passed.
> > > 
> > > For example, for an xmllistcollection consisting of Orders, I might have 
> > > to need the OrderID, which I am accessing, and it goes on for another 
> > > xmllistcollection of States, where on that collection, I might have to 
> > > access StatesID.
> > > 
> > > To give further clarification,
> > > 
> > > say I have two combo boxes, cmbTeams and cmbCoach.  the dataprovider for 
> > > cmbTeams is xmllcTeams and for cmbCoach is xmllcCoach.
> > > 
> > > I want a generic function such that I would be able to set the 
> > > selectedItem for each Combo Box instead of writing two.
> > > 
> > > private function SetComboBoxSelectedItem(itemToSelect:String, 
> > > xmlLC:XMLListCollection, cmb:ComboBox, collectionID:String)
> > > 
> > > Since the collectionID for the xmllcTeams is TeamID, then that is the 
> > > value which I pass as collectionID in the function.  For the xmllcCoach, 
> > > it would be the CoachID.
> > > 
> > > 
> > > so what comes now is that when I want to call the function, the 
> > > collectionID is represented by the actual ID which to match in the data 
> > > provider.
> > > 
> > > For the xmllcTeams
> > > var item:String = xmlLC.getItemAt(i).TeamID
> > > 
> > > For the xmllcCoach
> > > var item:String = xmlLC.getItemAt(i).CoachID
> > > 
> > > 
> > > Generic form>>
> > > var item:String = xmlLC.getItemAt(i).collectionID; ??
> > > 
> > > Thanks.
> > > 
> > > 
> > > 
> > > 
> > > From: gareth_arch 
> > > To: flexcoders@yahoogroups.com
> > > Sent: Wed, 19 May, 2010 10:34:35
> > > Subject: [flexcoders] Re: Generic Function To Set ComboBox Item
> > > 
> > >   
> > > Don't you access properties in an XMLListCollection differently than in 
> > > an ArrayCollection?
> > > 
> > > So rather than...
> > > var item:String = dataProv.getItemAt(i).dpID;
> > > it would be
> > > var item:String = dataProv.getItemAt(i)@dpid;
> > > 
> > > Try doing a debug of your code and see what is being returned also.
> > > 
> > > --- In flexcoders@yahoogroups.com, Angelo Anolin  wrote:
> > > >
> > > > Hi FlexCoders,
> > > > 
> > > > I would want to create a generic function to be able to set a ComboBox 
> > > > item.
> > > > 
> > > > The function I have goes like this:
> > > > 
> > > > private function selectComboItem(itemID:String, 
> > > > dataProv:XMLListCollection, cmb:ComboBox, dpID:String) :void
> > > > {
> > > >   for (var i:int = 0; i< dataProv.length; i++)
> > > >   {
> > > > var item:String = dataProv.getItemAt(i).dpID;
> > > > 
> > > > if(itemID == item)
> > > > {
> > > >   cmb.selectedIndex = i;
> > > >   break;
> > > > }
> > > >   }
> > > > }
> > > > 
> > > > dpID is the data item in the XML List collection which should match the 
> > > > passed itemID.  But I can't seem to get properly the item.
> > > > 
> > > > Any suggestions highly appreciated. Thanks.
> > > >
> > >
> >
>




Re: [flexcoders] Calling a ComboBox Change Event from TextInput TextChanged event

2010-05-21 Thread Kerry Jordan
On Wed, May 19, 2010 at 2:41 PM, Angelo Anolin  wrote:
> I actually need the control's signature which to pass to its own event but 
> being called from another control's event.

I'm still not certain what you are attempting to accomplish, but the
dispatchEvent method of the ComboBox will dispatch any event you want.
>From my understanding of your example, the following TextInput change
event handler will dispatch a change event for the ComboBox that is
extended to include the dispatchChangeEvent method defined next. I
seriously do not recommend this this implementation unless it is truly
required for your design.

// The following method handles the change event of the TextInput

private function textInput_changeHandler( event:Event ):void
{
comboBox.dispatchChangeEvent();
}

// The following would be defined in a class that extends ComboBox

public function dispatchChangeEvent():void
{
dispatchEvent( new ListEvent( ListEvent.CHANGE ) );
}


[flexcoders] Do you have see this message before :An internal build error has occurred. Right-click for more information. ???

2010-05-21 Thread Nini7016 Nini7016

Hello 


I am working in Flex application, i have an error  Do you have see this message 
before :An internal build error has occurred.*...Flex problem 

I tested all Flex sdk versions, but the error is still here :( :( :( 

do you know how to resolve problem,,, ?? 


I have alse changed the eclipse and workspace.But it is still here :( 


Thank you for your help 

  
_
Installez gratuitement les nouvelles Emoch'ticones !
http://www.ilovemessenger.fr/emoticones/telecharger-emoticones-emochticones.aspx

Re: [flexcoders] Flash IE SSL problem

2010-05-21 Thread wdb
Uh, my troubleshooting wiki says the following about this:

ssl / cache bug
when:
* load something over ssl 
what:
* flash can't load data from a ssl source. 

solution
add headers:

// php example
header("Cache-Control: cache, must-revalidate");
header("Pragma: public");


> Hello guys!
> 
> I have a big problem regarding my flash application running under IE and
> SSL protocol. My swf cannot load the data. I tried many solutions that I
> found in googling but none of them succeeds.
> 
> Can anyone help me with this issue?
> 
> Thank you.


[flexcoders] Re: Flash IE SSL problem

2010-05-21 Thread Lexter
Yes, it hangs on that line of my http header. It loads the child swf and 
loading the external data like xml.



[flexcoders] Do you have see this message before :An internal build error has occurred

2010-05-21 Thread Nini7016 Nini7016

Hello 


I am working in Flex application, i have an error  Do you have see this message 
before :An internal build error has occurred.*...Flex problem 

I tested all Flex sdk versions, but the error is still here :( :( :( 

do you know how to resolve problem,,, ?? 


I have alse changed the eclipse and workspace.But it is still here :( 


Thank you for your help 
  
_
Découvrez Windows Phone 7 : Une nouvelle ère de téléphones !
http://www.microsoft.com/windowsmobile/fr-fr/cmpn1/windowsphone7series/default.mspx

RE: [flexcoders] Re: Flash IE SSL problem

2010-05-21 Thread Gregor Kiddie
And when you debug the app, it never throws an error, but hangs on that
line?

 

What is being loaded on that line?



[flexcoders] Re: Flash IE SSL problem

2010-05-21 Thread Lexter
Yes, I installed it.



RE: [flexcoders] Re: Flash IE SSL problem

2010-05-21 Thread Gregor Kiddie
Have you got the active version of the debug player installed?



[flexcoders] Re: Flash IE SSL problem

2010-05-21 Thread Lexter
Just a clean error. No Throws occurred. I'm wondering why. When I checked the 
urls that were requested, it was correct. I copied it and open it directly in 
another tab but the loading process stucks in the line where the child swf be 
loaded.



RE: [flexcoders] Re: Flash IE SSL problem

2010-05-21 Thread Gregor Kiddie
What's the exception it throws?



Re: [flexcoders] Re: var myVar : Function = new Function ? examples?

2010-05-21 Thread Nick Middleweek
Thanks for the replies and those important points Oleg - nice!



On 21 May 2010 08:57, ouaqa  wrote:

>
>
> If it may help, this is how I usually manage my remote connections.
> Before you say it's off-topic, I think it might answer your question :
>
> public class LCRemoteConnectionManager
> {
>
> private static var serverRemoteObject : RemoteObject ; // = null
>
>
> private var onGetCelluleFormatListResultFunction : Function ;
> private var onGetCelluleFormatListResultFaultFunction : Function ;
>
> /*
>  some irrelevant stuff
> */
>
> public function getCellulesFormats (AGetFormatListResultFunction : Function
> ,AGetFormatListResultFaultFunction : Function ) : void
> {
> if (serverRemoteObject === null)
> { this.createServerRemoteObject() ; }
>
> this.onGetCelluleFormatListResultFaultFunction =
> AGetFormatListResultFaultFunction ;
> this.onGetCelluleFormatListResultFunction = AGetFormatListResultFunction ;
>
> serverRemoteObject.getCellulesFormats();
> }
>
> private function getCellulesFormatsResult (AEvent : ResultEvent):void
> {
> if (this.onGetCelluleFormatListResultFunction != null)
> { this.onGetCelluleFormatListResultFunction(AEvent) ; }
> else
> { Alert.show("LCRemoteConnectionManager : getCellulesFormatsResult :
> onGetFormatListResultFunction is null") ; }
> }
>
> So I assign myFunction variables like any others (myFunction = someFunction
> )
> and then, I call it like any other. The only problem is that I need to know
> how to use someFunction when calling myFunction.
>
> good luck
>
>
> --- In flexcoders@yahoogroups.com , Nick
> Middleweek  wrote:
> >
> > Hello,
> >
> > I can't find any examples on how to create Functon variables?
> >
> > Does anyone have any to hand please?
> >
> >
> > Thanks,
> > Nick
> >
> >
> > --
> > Sent by Nick Middleweek ( { email: n...@..., blog:
>
> > http://blog.middleweek.co.uk } );
> >
>
>  
>



-- 
Sent by Nick Middleweek ( { email: n...@middleweek.co.uk, mobile: +44(0)774
035 5424 } );


[flexcoders] Re: Embed source path issue

2010-05-21 Thread ouaqa
Hello,

try removing the "/" in before com. =>  
[Embed(source="com/domain/assets/images/sm_minus_ro.png")]

I think this is the problem.

--- In flexcoders@yahoogroups.com, "method_air"  wrote:
>
> I'm trying to 'embed source' a .png located in an graphics rsl from a flex 
> project (the rsl is in the project build path).
> 
> Flex is throwing an error 'unable to resolve 'image path' for transcoding.
> 
> The package structure of the graphics rsl is:
> 
> src/com/domain/assets/images/image.png
> 
> This fails:
> 
>[Embed(source="/com/domain/assets/images/sm_minus_ro.png")]
> 
> What path will work?
> 
> Thanks,
> 
> Philip
>




[flexcoders] Re: Flash IE SSL problem

2010-05-21 Thread Lexter
It goes like this.

When I tried my flash app via https insode the firefox, it works.
But when I tried it inside IE using the https protocol, my flash app wont load 
the external data. I have 2 flash movies. The parent movie and the child. The 
parent the one embedded on the page while the child is being loaded into the 
parent movie.

Using the https inside IE it gives me a bug. 

I did the following solution found by googling:
1 - Put a crossdomain policy file in my web root directory
2 - Set my returning request headers Pragma='', and Cache-Control='' both in my 
flash and PHP script.

But, still doesn't work.

Can you help me?



RE: [flexcoders] Flash IE SSL problem

2010-05-21 Thread Gregor Kiddie
The weather sheep is blocking the bits reaching your internet...

 

Seriously. What's the problem. Can't help without a little more detail!

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Lexter
Sent: 21 May 2010 09:02
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flash IE SSL problem

 

  

Hello guys!

I have a big problem regarding my flash application running under IE and
SSL protocol. My swf cannot load the data. I tried many solutions that I
found in googling but none of them succeeds.

Can anyone help me with this issue?




 



[SPAM] [flexcoders] Re: how to open pdf, word file using flex

2010-05-21 Thread Tony


Hello!

I have come up with another solution to view .pdf and .doc files. I have 
described it in my blog: 
http://tgeorgiev.blogspot.com/2010/05/viewing-word-documents-with-flex.html The 
idea is to convert the .doc to .pdf, and the .pdf to .swf using pdf2swf and 
then you could write your own logic to display the file or use a library like 
FlexPaper.

Best,
Tony Georgiev

--- In flexcoders@yahoogroups.com, "k.sigiscar"  wrote:
>
> 
> 
> 
> Hi,
> 
> Yes, you need to create a PDF template with Adobe Livecycle Designer with the 
> relevant fields. Then your Flex app must send XML data to your PDF remote 
> object (residing on the LCDS Server) with the name of the XML nodes matching 
> those of the fields in the PDF template (for data binding).
> 
> I have written a number of recipes in the Flex Cookbook beta website about 
> PDF generation.
> 
> LCDS: Using the PDFResourceServlet to read the generated PDF 
> 
> http://cookbooks.adobe.com/post_LCDS__Using_the_PDFResourceServlet_to_read_the_gen-13726.html
> 
> 
> LCDS: Creating a PDF form with localized captions 
> 
> http://cookbooks.adobe.com/post_LCDS__Creating_a_PDF_form_with_localized_captions-13166.html
> 
> 
> LCDS: Displaying a datagrid in a generated PDF 
> 
> http://cookbooks.adobe.com/post_LCDS__Displaying_a_datagrid_in_a_generated_PDF-13886.html
> 
> 
> LCDS: Displaying pictures dynamically loaded by Flex in a generated PDF 
> 
> http://cookbooks.adobe.com/post_LCDS__Displaying_pictures_dynamically_loaded_by_Fl-13267.html
> 
> Best regards,
> Karl Sigiscar.
> 
> 
> --- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
> >
> > I just looked at it a little bit, and it appears to be a solution to a niche
> > problem, and does require a lot of server-side work, including a pre-built
> > PFD template of the Flex app without any data.
> > 
> >  
> > 
> > Tracy Spratt,
> > 
> > Lariat Services, development services available
> > 
> >   _  
> > 
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> > Behalf Of valdhor
> > Sent: Wednesday, December 23, 2009 11:18 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [SPAM] [flexcoders] Re: how to open pdf, word file using flex
> > 
> >  
> > 
> >   
> > 
> > http://www.adobe.
> > 
> > com/devnet/flex/articles/portable_ria.html looks cool. I haven't read
> > through it yet but will have to see if it really REQUIRES LCDS.
> > 
> > --- In flexcod...@yahoogro  ups.com,
> > "vikranth4u"  wrote:
> > >
> > > Hi
> > > can anybody help me regarding how to write a code to open a pdf or doc
> > file using flex
> > >
> >
>




[flexcoders] Flash IE SSL problem

2010-05-21 Thread Lexter
Hello guys!

I have a big problem regarding my flash application running under IE and SSL 
protocol. My swf cannot load the data. I tried many solutions that I found in 
googling but none of them succeeds.

Can anyone help me with this issue?

Thank you.



[flexcoders] Re: creating a magnetic grid

2010-05-21 Thread ouaqa
Thanks a lot, I'm gonna look into it

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> You might be able to use this:
> 
> http://blogs.adobe.com/aharui/2010/01/constrained_drag_and_drop.html
> 
> 
> On 5/20/10 5:50 AM, "ouaqa"  wrote:
> 
> 
> 
> 
> 
> 
> Hello,
> 
> As part of my project, I need to create a magnetic grid, locking moving 
> objects to the grid as they are moved (it's a drawing api).
> 
> The Graphic Objects (i.e pictures, text, ... ) are Canvas objects that are 
> display on a Canvas (more or less the background of the drawing api).
> 
> Over this canvas, i added another canvas displaying a grid ( a Shape Object 
> with a bunch of horizontal and vertical lines).
> 
> This is where my imagination stops.
> I'm fairly new to flex development and I have no idea about how to "lock" the 
> graphic objects to the grid as they are moved.
> 
> By the way, if it's relevant to you guys, objects are not moved using the 
> drag&drop mechanism but using the com.greensock.transformManager 
> (http://www.greensock.com/).
> 
> I've searched the adobe documentation, this group and googled for a while 
> without finding any relevant information. Any advice would be greatly 
> appreciated.
> If any of you wish, I can add some juicy bits of code.
> 
> Thanks in advance.
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>




[flexcoders] Re: var myVar : Function = new Function ? examples?

2010-05-21 Thread ouaqa
If it may help, this is how I usually manage my remote connections.
Before you say it's off-topic, I think it might answer your question :


public class LCRemoteConnectionManager
{

private static var serverRemoteObject : RemoteObject ; // = null


private var onGetCelluleFormatListResultFunction : Function ;
private var onGetCelluleFormatListResultFaultFunction : Function ;


/*
 some irrelevant stuff
*/

public function getCellulesFormats (AGetFormatListResultFunction : Function 
,AGetFormatListResultFaultFunction : Function ) : void
{
if (serverRemoteObject === null)
{ this.createServerRemoteObject() ; }

this.onGetCelluleFormatListResultFaultFunction = 
AGetFormatListResultFaultFunction ;
this.onGetCelluleFormatListResultFunction = 
AGetFormatListResultFunction ; 

serverRemoteObject.getCellulesFormats();
}

private function getCellulesFormatsResult (AEvent : ResultEvent):void
{
if (this.onGetCelluleFormatListResultFunction != null)
{ this.onGetCelluleFormatListResultFunction(AEvent) ; }
else
{ Alert.show("LCRemoteConnectionManager : getCellulesFormatsResult : 
onGetFormatListResultFunction is null") ; }
}


So I assign myFunction variables like any others (myFunction = someFunction )
and then, I call it like any other. The only problem is that I need to know how 
to use someFunction when calling myFunction.

good luck
 
--- In flexcoders@yahoogroups.com, Nick Middleweek  wrote:
>
> Hello,
> 
> I can't find any examples on how to create Functon variables?
> 
> Does anyone have any to hand please?
> 
> 
> Thanks,
> Nick
> 
> 
> -- 
> Sent by Nick Middleweek ( { email: n...@..., blog:
> http://blog.middleweek.co.uk } );
>




[flexcoders] Re: embed images dynamically

2010-05-21 Thread ouaqa
Hello,

you could load images dynamically from a given url.

what you need to do is make a new url request and use a loader :

public function setImage (AnImageSource : String) : void
{
var request:URLRequest = new URLRequest(AnImageSource);
var imageLoader:Loader = new Loader();

imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, 
onFrameReceptionComplete);
imageLoader.load(request);
}

then on reception complete :
private function onFrameReceptionComplete (event : Event) : void
{   
originalFrameBitmap = Bitmap(event.currentTarget.content) ; 
this.addFrame() ;   
}

Now you have a Bitmap object containing your image. 

Remember that the flash player needs an authorization to access stuff at 
addresses different than his address, so you'll have to add a xml configuration 
file called crossdomain.xml at the root of your image folder.

Good luck
--- In flexcoders@yahoogroups.com, sony antony  wrote:
>
> Hi friends,
> 
> Is there any way that we can embed an image dynamically through action 
> script??
> 
> If I do, it as given below,
> 
> [Embed (source='../assets/image/icon.jpg')]
> public var myImage:Class;
> 
> myButton.setStyle("backgroundImage",myImage);
> 
> 
> It works fine..
> 
> But this button is created dynamically, and there are number of buttons 
> created in one container. 
> This button is a custom class too.. and I need different images to each 
> button, that is what my requirement is.. 
> 
> any suggestion from any of you friends..??
> 
> Thanks and Regards,
> Sony.
>