RE: [flexcoders] Would like to create a dynamic form

2008-07-16 Thread Tracy Spratt
I suggest Repeater.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of timgerr
Sent: Wednesday, July 16, 2008 1:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Would like to create a dynamic form

 

Hello all,
I was wondering how to create a dynamic form using Action Script in
Flex. Here is the Flex code:






I know how to declare the form:
var fm:Form = new Form();
but I am not sure how to add all the other stuff to it. 

Thanks for the help or read,

timgerr

 



[flexcoders] sequence diagrams from a running AS3 application...

2008-07-16 Thread giopaia
Being quite a newbie and coming from the Flash world
I'm just at the beginning of my OO developer journey
and I'm learning UML...
Are there any tools you'd like to suggest where it's
possible to use UML in a good relationship with actionscript?
I do now that there are tools for generating code from
structural diagrams and to draft the packages and classes
but I was wondering if there are tools out there that
have the ability to monitor a running application to
'extract' sequence diagrams when running/debugging an application.
(given the similarity/relationship with the functions call stack)




Thanks for any suggestion
Gio




[flexcoders] Re: Removing ArrayCollection item from within ItemRenderer

2008-07-16 Thread roopeshjenu


--- In flexcoders@yahoogroups.com, "calisza" <[EMAIL PROTECTED]> wrote:
>
> After having a look around at various blogs, resources etc I'm stumped
> on the following :
>
> I have a TileList using a custom itemRenderer. The dataprovider is a
> standard ArrayCollection of objects.
>
> The itemRenderer contains an Image, a Label and a Button. When the
> user clicks the button - I want to remove that particular item from
> both the Tilelist and the dataProvider.
>
> The problem is that "parent.removeChild(this)" only works partially
> (it clears the tilelist "block" of the item's content, but the empty
> block remains in place... still highlighted). I also have no idea how
> to access the dataProvider from within the itemRenderer.
> parent.dataProvider and owner.dataProvider don't seem to work, my
> guess being that dataProvider is a private property.
>
> Any ideas ? Is there perhaps a better way of doing this ? (still new
> to flex so still learning).
>
> TIA,
> Barry
>





Hi



Try using the 'outterDocument' keyword when u access some data inside an
item render



Roops





Re: [flexcoders] Re: Non-Blocking IO and BlazeDS Streaming

2008-07-16 Thread Anatole Tartakovsky
Adam,
We are setting different server this week with jetty for sample push apps -
should post availability either in my or Yakov's blog.
We will rehost Coenraets collaboration apps, Flex "sample" one as well as
few financial samples of our own -
do not know if you have another use case that you think is interesting.

The version stays closed source till it is published - but will be available
on Web 8/19.

Thank you
Anatole


On Wed, Jul 16, 2008 at 1:10 AM, aduston1976 <[EMAIL PROTECTED]> wrote:

>   Anatole, Wow, this is great news. Thanks for letting everyone know. I
> wish I could make it to NY for your presentation, but I'll be stuck
> here in Chicago.
>
> > 19th (http://www.eventbrite.com/event/126384018). Open source
> version should
> > be available at OReily in the Rough Cuts code section of our new
>
> Does this imply that there is a closed-source version available now?
> If so, I don't see anything about it on your blog.
>
> Adam
>
> --- In flexcoders@yahoogroups.com , "Anatole
> Tartakovsky"
> <[EMAIL PROTECTED]> wrote:
> >
> > Adam,
> > We completed Servlet 3 implementation of BlazeDS streaming - so
> you can
> > scale your push servers as much as you need to. There is a bit of
> testing
> > and revamped samples that need to be added, but Adobe "samples" app
> works
> > without any changes on the Flex side.
> >
> > I will be showing Jetty implementation at Flex Symposium in NYC on
> August
> > 19th (http://www.eventbrite.com/event/126384018). Open source
> version should
> > be available at OReily in the Rough Cuts code section of our new book in
> > September/August. Some QoS pieces and streamlined DataServices
> > implementation will be available around that timeframe as well.
> > Hope this helps,
> > Anatole Tartakovsky
> > Farata Systems
> >
> >
> >
> >
> > On Fri, Jun 13, 2008 at 5:11 PM, aduston1976 <[EMAIL PROTECTED]> wrote:
> >
> > > Anatole, thank you sincerely for your message. I've always
> admired the
> > > Farata Systems blog posts and I will email you offline.
> > >
> > > Has anyone else taken a stab at this? Does anyone else have any
> > > thoughts about it?
> > >
> > > Thanks again,
> > > Adam
> > >
> > > --- In flexcoders@yahoogroups.com 
> > >  40yahoogroups.com>,
>
> "Anatole
> > > Tartakovsky"
> > >
> > >  wrote:
> > > >
> > > > Adam,
> > > > 400 concurrent users is very low number - you might conside freee
> > > > express LCDS 2.6 in single multicore CPU version to support
> that. Adobe
> > > > creates standalone socket server (that you can place on the same
> servers
> > > > port 80 with separate host name within domain/tcp address). Then you
> > > would
> > > > get RTMP class functionality transparently working under HTTP
> wrapping.
> > > >
> > > > We did Tomcat implementation - however we encountered reliablity
> > > issues
> > > > in the base software and do not recommend it unless you build
> > > recoverability
> > > > stack that in our experience is very app specific. Also, you need
> > > > significant framework on the client as unlike RTMP solution as you
> > > have to
> > > > minimize number of subscriptions to 1 due to limit on number of HTTP
> > > > connections. Jetty implementation is better and more close to
> Servlet
> > > > 3/JSR-315 spec, but is would be waste of time at this point given
> > > the size
> > > > of the users group.
> > > >
> > > > Given the current state and availability of free LCDS 2.6 we were
> > > spending
> > > > more time on client-side components that mimic DataService object
> > > including
> > > > server push. Main goals are maintaing minimum requirements on
> > > connectivity
> > > > and actual channel implementation and provide application support
> > > for common
> > > > tasks and robustness/QoS.
> > > >
> > > > You can mail me directly at atartakovskyatfaratasystemsdotcom id
> > > you have
> > > > any questions
> > > >
> > > > Sincerely,
> > > > Anatole Tartakovsky
> > > >
> > > >
> > > >
> > > > On Fri, Jun 13, 2008 at 2:41 PM, aduston1976  wrote:
> > > >
> > > > > Seth, Thank you very much for your thoughtful and very complete
> > > message.
> > > > >
> > > > > Is anyone else out there working on a Tomcat CometProcessor-based
> > > > > streaming implementation? I foresee about 2k LOC standing
> between the
> > > > > current code and one that includes an endpoint that can be
> used with a
> > > > > CometProcessor implementor. If you're already working on such an
> > > > > implementation or if you would like to, then let's please talk
> over
> > > > > Google Talk or whatever. I am [EMAIL PROTECTED] on Google Talk.
> > > > >
> > > > > Since BlazeDS already includes functionality to route messages
> across
> > > > > clusters, this would turn it into the server I've been looking
> for.
> > > > >
> > > > > Adam
> > > > >
> > > > >
> > > > > --- In flexcoders@yahoogroups.com 
> 
> > > 40yahoogroups.com>,
> > >
> > > "Seth
> > > > > Hodgson"  wrote:
> > > > > >
> > > > > > Hi Adam,
> > > > > >
> > > > > >
> > > > > >
> > > > > > Adobe 

[flexcoders] How do I instantiate a subclassed flex control in mxml?

2008-07-16 Thread whatabrain
Let's say I subclass a standard flex control:

package myStuff {
   public class CustomGrid extends DataGrid {}
}

How do I instantiate it in mxml? I tried the following, but none of 
them worked:








[flexcoders] Re: How to configure IIS, Jrun and Tomcat to run on the same machine?

2008-07-16 Thread Djamshed
Ok, with the help of some folks we figured it out. Here is the solution:
1. Install Tomcat ISAPI
2. Create Virtual Directory with some name, our case "jakarta" and
point it to location of isapi_redirect.dll of Tomcat ISAPI installation
3. Configure .properties files in Tomcat ISAPI installation. For more
details please refer to
http://tomcat.apache.org/connectors-doc-archive/jk2/jk/iishowto.html.
4. Create Virtual Directory in IIS with your application alias, e.g.
"tomcatapp" that points to any location in your disk, e.g. E:\temp.
Make sure you've selected "execute scripts".
5. In Tomcat's server.xml configure  property. 
Make sure port you assigned is active: netstat -na from command prompt
6. In Tomcat's server.xml configure context for new location.

7. Edit uriworkermap.properties and add:
/tomcatapp/*=worker1
8. Edit workers.properties.minimal as follows:
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
9. Restart Tomcat and IIS.
10. You should be enjoying your app working from URL without port
numbers specified and it works full in Tomcat, in spite of there are
IIS and JRun at the same machine.

Step 4, 5 and 6 is not documented in Tomcat-IIS integration site
(http://tomcat.apache.org/connectors-doc-archive/jk2/jk/iishowto.html), 
therefore
nothing worked when we tried instructions (actually calls were
directed to Jrun and it responded with error messages).


--- In flexcoders@yahoogroups.com, "Djamshed" <[EMAIL PROTECTED]> wrote:
>
> Is it possible to run a Flash-Flash Remoting-Jrun and
> Flex-BlazeDS-Tomcat applications on the same machine(and yes, there is
> an IIS server)? The answer is YES if Jrun (e.g. 8200) and Tomcat (e.g.
> 8080) ports are publicly accessible (which we had in our development
> environment). But is it possible if all the calls should go thru port
> 80, the only publicly accessible port (client does not want to open
> 8100 and 8080, or any other one)?
> 
> We were fine when there was only Flash-Jrun application and Jrun
> ISAPI filter helped a lot, but having an additional Tomcat ISAPI
> filter could put IIS into a trouble. I am not able to figure out the
> settings needed to be made on ISAPI filters. Could there be an
> alternate solution rather than digging into ISAPI filters?
> 
> It is more related to configuring ISAPI filters and probably I should
> try JRun, Tomcat and IIS forums, but I guess it is the only community
> that certainly deals with all these platforms and could face this kind
> of problem. Thanks in advance.
>




Re: [flexcoders] Re: Please, help: the release player displays a blank page in all browsers.

2008-07-16 Thread Sherif Abdou
I don't know what this thread is exactly on since my i cant find the first 
message but I have gotten this a couple of times, Basically it is either a loop 
that never finishes or you keep calling any of the invalidation methods over 
and over again. For example, for some reason i over ridden the 
updateDisplayList and i called invalidateDisplayList() in it for some reason 
and i had the same problem. I am guessing you may have used a custom loader or 
some custom component that does that. It works fine in debugger too but not 
release. 



- Original Message 
From: Tracy Spratt <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 16, 2008 11:59:06 AM
Subject: RE: [flexcoders] Re: Please, help: the release player displays a blank 
page in all browsers.


Also have you tried any of the suggestions folks have made?

Starting by putting an Alert.show in the Application initialize event?

Tracy

-Original Message-
From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On
Behalf Of Tom Chiverton
Sent: Wednesday, July 16, 2008 6:05 AM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] Re: Please, help: the release player displays
a blank page in all browsers.

On Wednesday 16 Jul 2008, wiley_jacobs1 wrote:
> I'm having he same issue, it's been going on for 6 months. For me, the
> loader doesn't even come up with the regular player, it's just the
blue
> background background. Does anybody have a solution for this? The
debug
> player works fine 

And there are no errors thrown or warnings trace()'ed at run time with
the 
debug player ?
No compiler warnings ?
Does a simple test app also have this problem ? Using the command line 
compiler or Builder ?

-- 
Tom Chiverton

 * * * * 

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. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP.  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 Mailing List
FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt
Search Archives:
http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoo! Groups
Links




  

[flexcoders] Would like to create a dynamic form

2008-07-16 Thread timgerr
Hello all,
I was wondering how to create a dynamic form using Action Script in
Flex.  Here is the Flex code:






I know how to declare the form:
var fm:Form = new Form();
but I am not sure how to add all the other stuff to it.  

Thanks for the help or read,

timgerr





[flexcoders] Would like to create a dynamic form

2008-07-16 Thread timgerr
Hello all,
I was wondering how to create a dynamic form using Action Script in
Flex.  Here is the Flex code:






I know how to declare the form:
var fm:Form = new Form();
but I am not sure how to add all the other stuff to it.  

Thanks for the help or read,

timgerr





[flexcoders] Using subclassed flex controls in mxml

2008-07-16 Thread whatabrain

Let's say I subclass a control, like DataGrid:
package myStuff {
 public class CustomGrid extends CDataGrid {}
}

How do I instantiate it in an mxml file? I tried these but they didn't
work:



Thanks for all your help! This group is making my transition from DHTML
to Flex so much easier.



Re: [flexcoders] Re: What files should be in the WEB-INF/flex directory to dynamically compile

2008-07-16 Thread Ryan Gravener
Why not just compile the flex app when you compile your webapp?

On Wed, Jul 16, 2008 at 11:50 AM, Andrew Longley <[EMAIL PROTECTED]>
wrote:

>   Thanks Tom. The phrase "web-tier compiler" was what I needed. I
> found the Flex compiler module for J2EE application servers after much
> searching at the page
> . What a
> brutal search for something so simple! The result of this is
> webtier.war, which can be deployed to any web app server. I can then
> add my Flex app and it dynamically recompiles, and it's the Flex 3
> version.
>
> Thanks again.
> Andrew
>
> --- In flexcoders@yahoogroups.com , Tom
> Chiverton <[EMAIL PROTECTED]>
> wrote:
>
> >
> > On Tuesday 15 Jul 2008, Andrew Longley wrote:
> > > I'm trying to migrate the app to Flex 3 and I need to understand what
> > > files need to go where for the app to dynamically recompile.
> >
> > There's a 'web tier compiler' in the Flex 3 SDK, and plenty of docs
> on the
> > web. Don't try and figure this out blind.
> >
> > > Bottom line, I'm looking for a Flex 3 project that compiles
> > > dynamically when deployed under a web app server, or information
> > > towards that end. Thanks for any help.
> >
> > Why ?
> > Almost always off-line compilation is what is best.
> >
> > --
> > Tom Chiverton
>
>  
>



-- 
Ryan Gravener
http://twitter.com/ryangravener


[flexcoders] Where can I find the source for the Rich Text Editor?

2008-07-16 Thread loujr
I would like to modify the Rich Text Editor and would like to know 
where the source code can be found.

loujr



RE: [flexcoders] Runtime CSS and "SWF is not a loadable module"

2008-07-16 Thread Tracy Spratt
Make sure the compiled css swf is actually where you expect.

 

I am having problems with FB3 where the compiler misplaces the css swf,
into a deeply nested folder structure under the bin folder, and I always
have to copy it to the correct location.  I plan to post a question on
this some time soon.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jamalwally
Sent: Wednesday, July 16, 2008 12:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Runtime CSS and "SWF is not a loadable module"

 

Hello,

I'm trying to implement runtime css in my flex application. I have
compiled my css file 
into a swf with mxmlc
> mxmlc style1.css

Then I load the resulting style1.swf on Application creationComplete:

http://www.adobe.com/2006/mxml
 " layout="vertical"
creationComplete="StyleManager.loadStyleDeclarations('../assets/style1.s
wf', true, 
true)">

But when I debug this in Flex Builder 3, I get an error (see below)
saying that my 
style1.swf is not a loadable module. I looked around online and in this
forum and it seems 
that this message is security-based, which is puzzling to me because all
files are local in 
my example. I am not loading a style file from another domain.

My directory structure (on OS X Leopard) is:
testRuntimeCss\
assets\
style1.css
style1.swf
src\
testRuntimeCss.mxml

I have tried this with the "Compile CSS to SWF" option both checked and
unchecked (right 
click on style1.css). 

What gives?

[SWF] Users:jbattat:Documents:Flex Builder 3:testRuntimeCss:bin-
debug:testRuntimeCss.swf - 582,620 bytes after decompression
[SWF] Users:jbattat:Documents:Flex Builder
3:testRuntimeCss:assets:style1.swf - 11,294 
bytes after decompression
Error: Unable to load style(SWF is not a loadable module):
../assets/style1.swf.
at 
()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\styles\S
tyleManag
erImpl.as:858]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at 
ModuleInfoProxy/moduleEventHandler()[E:\dev\3.0.x\frameworks\projects\fr
amework\src
\mx\modules\ModuleManager.as:1027]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at 
ModuleInfo/initHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\
mx\modules\
ModuleManager.as:631]

 



RE: [flexcoders] Re: Please, help: the release player displays a blank page in all browsers.

2008-07-16 Thread Tracy Spratt
Also have you tried any of the suggestions folks have made?

Starting by putting an Alert.show in the Application initialize event?

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Wednesday, July 16, 2008 6:05 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Please, help: the release player displays
a blank page in all browsers.

On Wednesday 16 Jul 2008, wiley_jacobs1 wrote:
> I'm having he same issue, it's been going on for 6 months. For me, the
> loader doesn't even come up with the regular player, it's just the
blue
> background background. Does anybody have a solution for this? The
debug
> player works fine 

And there are no errors thrown or warnings trace()'ed at run time with
the 
debug player ?
No compiler warnings ?
Does a simple test app also have this problem ? Using the command line 
compiler or Builder ?

-- 
Tom Chiverton



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. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP.  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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links







RE: [flexcoders]How to change the selectedIndex of a LinkBar

2008-07-16 Thread Tracy Spratt
Happy to help, and we always welcome contributors to the community.

 

I am a "he", if it matters.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of fake_id_911
Sent: Wednesday, July 16, 2008 11:21 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]How to change the selectedIndex of a LinkBar

 

I like Tracy (assuming Tracy is a she) she is so helpful. I learned a
lot from Tracy. So to honor Tracy, I give my time to help too.









--- In flexcoders@yahoogroups.com 
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> I don't use LinkBar because it is too limiting.
> 
> If I need the links dataDriven, I use LinkButtons in a Repeater,
> otherwise I just use LinkButtons declared individually. LinkButtons
> call a nav function, which changes the styleName of the previously
> selected LinkButton(ref stored in instance variable) to a "normal"
> style, and the currently clicked LinkButton to a "selected" style.
> 
> Tracy

 



[flexcoders] Re: Removing ArrayCollection item from within ItemRenderer

2008-07-16 Thread Tim Hoff

Hi Barry,

Sorry to laugh a little, but parent.removeChild(this), is actually
removing the itemRenderer display object; and leaving a hole in the
TileList.  There are a few ways to remove list items; from within an
itemRenderer.  But, most of them involve referencing the list's
dataProvider directly; using something like:

myArrayCollection.removeItemAt(myTileList.selectedIndex);

Now, how do you get to the dataProvider from within the itemRenderer. 
Probably the best way is to dispatch an event when the delete button is
clicked.   Using events takes advantage of  loose coupling.   Listen for
the event in the class that contains the TileList and remove the item
from the dataProvider.  Depending on how you have it setup, chances are
that when you click the button inside the itemRenderer, the TileList's
selected item and index will change automatically.

Another way, if you want to get dirty, is to do something like this on
the click event of the delete button:

this.parentDocument.myTileList.dataProvider.removeItemAt(listData.rowInd\
ex);

-TH

--- In flexcoders@yahoogroups.com, "calisza" <[EMAIL PROTECTED]> wrote:
>
> After having a look around at various blogs, resources etc I'm stumped
> on the following :
>
> I have a TileList using a custom itemRenderer. The dataprovider is a
> standard ArrayCollection of objects.
>
> The itemRenderer contains an Image, a Label and a Button. When the
> user clicks the button - I want to remove that particular item from
> both the Tilelist and the dataProvider.
>
> The problem is that "parent.removeChild(this)" only works partially
> (it clears the tilelist "block" of the item's content, but the empty
> block remains in place... still highlighted). I also have no idea how
> to access the dataProvider from within the itemRenderer.
> parent.dataProvider and owner.dataProvider don't seem to work, my
> guess being that dataProvider is a private property.
>
> Any ideas ? Is there perhaps a better way of doing this ? (still new
> to flex so still learning).
>
> TIA,
> Barry
>




RE: [flexcoders] Anyone have a good resource on singletons?

2008-07-16 Thread Tracy Spratt
A singleton class will have a static getInstance() method.

 

Anywhere you need to access members of the singleton, call that method.
Just import the class, do not use the normal instantiation procedures,
like new, or using an mxml tag.

import mypackage.MyModel;

[Bindable]private var _myModel:MyModel; //optional var reference

 

Private function init(): void

  _myModel = MyModel.getInstance();

  Alert.show(_myModel.myFunction())

 

mailto:[EMAIL PROTECTED] On
Behalf Of Scott
Sent: Wednesday, July 16, 2008 12:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Anyone have a good resource on singletons?

 

I'm trying to find information on using singletons in AS3/Flex.  I've
got an .AS file set up but I'm having issues calling the data/functions
within that function in other classes.  Does anyone have a good resource
on the web for creating and using singletons?

 

Thanks!

 



Re: [flexcoders] Who is using FlexReport?

2008-07-16 Thread Anatole Tartakovsky
Report Wirter is a delicate topic. We wrote reporting solution in 2006 -
complete stack from database to end-user UI designer to the optimized client
to the PDF. However, the current mind set in the enterprises - if it is
third party product it has to be open source and free. So instead of pushing
it as a product, we are packaging it as a service.
After all, building low cost solution for mass market requires mass market
and enterprises with flex reporting are not mass market yet.
I believe most of reporting solutions I have seen are just tip of the
iceberg, with services beneath to recover develpoment costs.

Sincerely,
Anatole Tartakovsky
Farata Systems


On Wed, Jul 16, 2008 at 11:34 AM, Derrick Anderson <
[EMAIL PROTECTED]> wrote:

>amen brother, to be honest I like FlexReport- but it's not ready for an
> enterprise app.  it's a good starting point, but I really need something
> much more robust.
>
> i'm in the same boat, would love to provide all the great reportability and
> UI that has been touted but more and more i see people 'hacking' out flex
> reports in anything other than 'flex'.
>
> Adobe, where is the flex report builder???
>
> d.
>
>
> On Wed, Jul 16, 2008 at 11:10 AM, ansury2001 <[EMAIL PROTECTED]> wrote:
>
>>   I need some advice on whether FlexReport is ready for "real" use.
>>
>> I've already taken a look at it some, and other than it being a pain
>> to setup and rather slow, I think it may work well enough. But I want
>> to get some 3rd party opinions on others who have used it-- or, what
>> other solutions have you come up with? Are most people just using 3rd
>> party tools like Oracle BI Publisher or Crystal Reports, resorting to
>> that primitive "HTML round-trip" stuff? ^_^
>>
>> I also would like to provide users with report building capabilities.
>> I know reporting is complex, but has anyone done anything similiar or
>> had any experience creating a report builder in Flex? Something like
>> ClearBI would be great. (Unfortunately ClearBI has no user base, no
>> support, no community, extremely restrictive setup requirements, is
>> almost impossible to setup and get working, isn't cheap (considering
>> what you're getting), and seems like a VERY risky choice for
>> reporting.)
>>
>> As a side rant...
>> Flex is not going to take off in an "enterprise environment" as Adobe
>> seems to be claiming it is ready for until we can do reporting
>> natively in the swf app, without a ton of issues and work to do. I
>> don't care whether it's built into Flex, created separately by Adobe,
>> or built by a third party, but a real solution is going to be needed
>> very soon, before something like Silverlight exploits this weakness.
>> FlexReport won't be this solution no matter how good it gets, because
>> it's scope isn't large enough. Users need to be able to create their
>> own reports using the reporting interface!
>>
>>
> 
>


[flexcoders] Anyone have a good resource on singletons?

2008-07-16 Thread Scott
I'm trying to find information on using singletons in AS3/Flex.  I've
got an .AS file set up but I'm having issues calling the data/functions
within that function in other classes.  Does anyone have a good resource
on the web for creating and using singletons?

 

Thanks!



[flexcoders] Re: Trouble with hand cursor over mx:Text

2008-07-16 Thread whatabrain
Ah. I had mouseChildren=true. Must have misread the page I got it 
from.

Is there any way to do this in css, so I can have a style that makes 
anything into a link? The following sets the color, but doesn't force 
the hand cursor:


.link
{
color: blue;
useHandCursor: true;
buttonMode: true;
mouseChildren: false;
}



Or do I have to subclass mx:Text?


--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> http://flex.joshmcdonald.info/2008/07/how-to-force-hand-cursor-in-
custom.html
> 
> -Josh
> 
> On Wed, Jul 16, 2008 at 9:12 AM, whatabrain <[EMAIL PROTECTED]> wrote:
> 
> >  The only way I'm able to show the hand cursor over an mx:Text 
element is
> > if I both define the cursor in the style, and include an anchor 
tag in an
> > embedded mx:htmlText. If I omit either of those things, it 
doesn't work. How
> > can I make the hand cursor appear over an ordinary mx:Text?
> >
> > *Here's the style*:
> > .link
> > {
> >  color: blue;
> >  selectable: true;
> >  useHandCursor: true;
> >  buttonMode: true;
> >  mouseChildren: true;
> > }
> >
> >
> > *This shows the hand cursor*:
> >
> > 
> >  
> > 
> >
> >
> >
> > *This does not show the hand cursor*:
> > 
> >
> >
> > *This does not show the hand cursor*:
> >
> > 
> >  
> > 
> >
> > 
> >
> 
> 
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for 
thee."
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>




[flexcoders] PopUpManager to Set General-Purpose Control

2008-07-16 Thread edlueze
Hi Folks:

I am using PopUpManager to create a set of general-purpose pop-up
dialog boxes that can be used throughout my application. For example,
I have a TextBoxDialogBox that will ask the user for text input and
then place that input into a TextInput control in the caller window.
Similarly I have a CheckBoxDialogBox that asks for yes/no input and
then places that input into CheckBox control in the caller window.

I'm finding that I'm writing the same code over-and-over to handle
each variation. For example, I need to declare and set different
variables depending on the type of pop-up, as such:

var popupTextBoxReturnControl:TextInput;
var popupCheckBoxReturnControl:CheckBox;

And then I have a set of very similar functions that will set the
return value. For example:

popupTextBoxCallerReturn.text = popupTextBoxReturnControl.text //OR
popupCheckBoxCallerReturn.selected = popupCheckBoxReturnControl.selected

I want to be able to condense the code down so that a variable for
just one control is needed - perhaps using IFlexDisplayObject. But
when I try to do this I get the error "1119: Access of possibly
undefined property text through a reference with static type
mx.core:IFlexDisplayObject."

Does anybody have any suggestions on how I can condense a dozen
virtually identical functions down into a couple more general purpose
functions?

Thanks in advance!



Re: [flexcoders] Where is the right place to add children from a setter?

2008-07-16 Thread Sean Clark Hess
For future reference, here's how that would look.  Thanks Doug!

http://pastie.textmate.org/234868




On Wed, Jul 16, 2008 at 9:59 AM, Doug McCune <[EMAIL PROTECTED]> wrote:

>   Set a dirty flag in your setter (like childrenDirty = true) and call
> invalidateProperties(), then override commitProperties() and check if
> your dirty flag is set, if so then add the children in there.
>
> Doug
>
>
> On Wed, Jul 16, 2008 at 8:52 AM, Sean Clark Hess <[EMAIL 
> PROTECTED]>
> wrote:
> > Hi everybody,
> > I know how to add children to a component doing something like the
> > following, but I can't help but think there ought to be a better way to
> do
> > it. Perhaps I should be overriding one of UIComponent's methods? Anyway,
> > the issue (see link) is that container isn't defined when the setter is
> > called. Where is the proper place to actually add the children?
> >
> > http://pastie.textmate.org/234853
> >
> > You would use it like this --
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > Thanks!
> >
> >
>
>  
>


[flexcoders] Re: Remote file accesing

2008-07-16 Thread Anthony DeBonis
Can you supply more information?

Type of file, what server backend you have...



Re: [flexcoders] Where is the right place to add children from a setter?

2008-07-16 Thread Doug McCune
Set a dirty flag in your setter (like childrenDirty = true) and call
invalidateProperties(), then override commitProperties() and check if
your dirty flag is set, if so then add the children in there.

Doug


On Wed, Jul 16, 2008 at 8:52 AM, Sean Clark Hess <[EMAIL PROTECTED]> wrote:
> Hi everybody,
> I know how to add children to a component doing something like the
> following, but I can't help but think there ought to be a better way to do
> it.  Perhaps I should be overriding one of UIComponent's methods?  Anyway,
> the issue (see link) is that container isn't defined when the setter is
> called.  Where is the proper place to actually add the children?
>
> http://pastie.textmate.org/234853
>
> You would use it like this --
>
> 
>
>   
>
>  
>
>   
>
> 
>
> Thanks!
>
> 


[flexcoders] Re: creating a World Clock and need a little help with the time and date

2008-07-16 Thread Mark
I tried a few things along those lines and not even getting close... 
really:

setDate =  new Date(nanoSeconds/1000 - new Date().getTime()); 
RETURNS Tue Jun 20 09:55:17 GMT-0400 1933

setDate =  new Date(nanoSeconds/(60*1000) - new Date().getTime
()); RETURNS Tue Jun 30 09:26:26 GMT-0400 1931

setDate =  new Date(nanoSeconds/(60*1000) - new Date
(1970,0,1,0,0,0,0).getTime()); RETURNS Mon Jan 12 19:17:43 GMT-0500 
1970

setDate =  new Date(nanoSeconds/1000 - new Date
(1970,0,1,0,0,0,0).getTime()); RETURNS Mon Jan 3 19:43:04 GMT-0500 
1972

There's a problem with the math but I'm just not able to find it.  
Any more help??  Maybe someone knows a different Web Service?

Thanks,
Mark



--- In flexcoders@yahoogroups.com, "Doug Lowder" <[EMAIL PROTECTED]> 
wrote:
>
> CurrentTimeTicks looks like a 100ns count from the year 1 AD.  You 
> could try:
> 
>  new Date( CurrentTimeTicks/1 - new Date().getTime() )
> 
> Then use the Date.toString() or Date.toUTCString() method to 
examine 
> the result.  You may need to adjust if CurrentTimeTicks isn't 
> relative to UTC.
> 
> Also, don't assume daylight savings time is always a one-hour 
> offset.  Some time zones work from increments of a quarter-hour.  
You 
> have the UtcOffsetTicks available to give you the correct offset.
> 
> HTH,
> Doug
> 
> 
> --- In flexcoders@yahoogroups.com, "Mark"  
> wrote:
> >
> > Actually the problem is that the CurrentTimeTicks and 
> UtcOffsetTicks 
> > is returned in nanoseconds or increment of 100 nanoseconds so I 
> > can't use, new Date(CurrentTimeTicks);.  It returns as "not a 
> date"  
> > Here's how the XML looks:
> > 
> > 
> > 
> >   Dateline Standard Time 
> >   Dateline Daylight Time 
> >   Dateline Standard Time 
> >   (GMT-12:00) International Date Line 
> > West 
> >   -4320 
> >   633516008019218750 
> >   false 
> > 
> > 
> > 
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Josh McDonald"  
> > wrote:
> > >
> > > All typed off the top of my head in gmail and untested:
> > > 
> > > //Get a date for the UTC time numbers will match, but will be 
in 
> > local time
> > > var foreignTime:Date = new Date(CurrentTimeTicks);
> > > 
> > > //Strip our current (local) offset (check my -/+ math!)
> > > foreignTime.time -= foreignTime.getTimeZoneOffset() * 1000 * 
60;
> > > 
> > > //Convert so the foreign value appears when getting the local 
> > value (again,
> > > check +/-)
> > > foreignTime.time += UtcOffsetTicks * 1000 * 60;
> > > 
> > > if (IsDaylightSaving)
> > > foreignTime.time += 360;
> > > 
> > > //Now if you fetch hours, minutes, seconds from foreignTime 
they 
> > should
> > > return the numbers you'd like.
> > > 
> > > I've probably got a couple of +/- switched around, and if the 
> > ticks are
> > > seconds instead of ms knock off 3 zeros from some of those 
> fields, 
> > but that
> > > should give you a starting point :)
> > > 
> > > When you get the correct answer, please post it to the list in 
a 
> > follow-up
> > > to this thread.
> > > 
> > > -Josh
> > > 
> > > On Mon, Jul 14, 2008 at 11:34 PM, Mark  
> > wrote:
> > > 
> > > > I asked this question going into a weekend so I wanted to re-
> ask 
> > it
> > > > today and see if anyone has any ideas on how to work this?
> > > >
> > > > Thank You,
> > > > Mark
> > > >
> > > >
> > > >
> > > >
> > > 
> > > 
> > > -- 
> > > "Therefore, send not to know For whom the bell tolls. It tolls 
> for 
> > thee."
> > > 
> > > :: Josh 'G-Funk' McDonald
> > > :: 0437 221 380 :: josh@
> > >
> >
>




[flexcoders] Where is the right place to add children from a setter?

2008-07-16 Thread Sean Clark Hess
Hi everybody,
I know how to add children to a component doing something like the
following, but I can't help but think there ought to be a better way to do
it.  Perhaps I should be overriding one of UIComponent's methods?  Anyway,
the issue (see link) is that container isn't defined when the setter is
called.  Where is the proper place to actually add the children?

http://pastie.textmate.org/234853


You would use it like this --




  

 

  




Thanks!


[flexcoders] Re: What files should be in the WEB-INF/flex directory to dynamically compile

2008-07-16 Thread Andrew Longley
Thanks Tom.  The phrase "web-tier compiler" was what I needed.  I
found the Flex compiler module for J2EE application servers after much
searching at the page
.  What a
brutal search for something so simple!  The result of this is
webtier.war, which can be deployed to any web app server.  I can then
add my Flex app and it dynamically recompiles, and it's the Flex 3
version.

Thanks again.
Andrew

--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Tuesday 15 Jul 2008, Andrew Longley wrote:
> > I'm trying to migrate the app to Flex 3 and I need to understand what
> > files need to go where for the app to dynamically recompile.
> 
> There's a 'web tier compiler' in the Flex 3 SDK, and plenty of docs
on the 
> web. Don't try and figure this out blind.
> 
> > Bottom line, I'm looking for a Flex 3 project that compiles
> > dynamically when deployed under a web app server, or information
> > towards that end.  Thanks for any help.
> 
> Why ? 
> Almost always off-line compilation is what is best.
> 
> -- 
> Tom Chiverton





Re: [flexcoders] Re: Flex blog topics - what should I write about?

2008-07-16 Thread Doug McCune
Oh my god. Please please please do not write those announcement
non-posts. That ticks me off so much and it ruins a full day or two of
blog reading because I can't deal with filtering out the 90% of the
posts that are "Flex 4 details were released!!! ZOMGZ Gumbo!"

The approach I took when I started blogging was just to take
unanswered questions on flexcoders and post an example solution.
You've been really active on this list, so I bet you've got a good
idea about what people have been asking. Go back through your inbox
for flexcoders and find some of the custom component questions that
haven't been really answered. That way you know there's at least
someone out there who wants to read the post (even if only one guy).

While I understand the previous message about wanting to see full app
examples more than small code snippets, I would argue against that.
Well, not against that per se, but I would say that the most important
thing is to blog the stuff you find interesting. Your interest and
enthusiasm is half of what makes a post good (the other half being a
good topic obviously). So my only suggestion is don't let yourself get
bogged down in making "complete examples" or "broader programming
tutorials" if that's going to slow you down. Just blog the shit out of
what you like doing. If you like debugging webservice calls then show
me stuff very specific to that that's cool. If you like custom
components then show me some cool custom components. If writing about
the broader historical context and proper usage of that component
isn't your thing, just post the component code. On the other hand, if
that is your thing then do that (and still post the component code).
Your job isn't to teach anyone programming, it's to show us cool shit.

The only thing I'd suggest is start blogging with a focus on code
samples and runnable examples. If you're showing a block of code for a
custom component, I'm looking for a runnable swf embedded in the post
(or at least a link to one) that shows what the code does.

Doug


On Wed, Jul 16, 2008 at 3:09 AM, Tom Chiverton
<[EMAIL PROTECTED]> wrote:
> On Monday 14 Jul 2008, andrii_olefirenko wrote:
>> posting to see if it's already widely known. I read many blogs and 90%
>> of the bloggers just rediscovering a bicycle again.
>
> Also, don't just write an article that has a c+p of an announcement from Adobe
> in.
> For instance, when Flex 4 comes out, I don't want to read 200 articles all
> saying nothing but 'Flex 4 is out'.
>
> --
> Tom Chiverton
>
> 
>
> 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. Any 
> reference to a partner in relation to Halliwells LLP means a member of 
> Halliwells LLP.  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 Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>


[flexcoders] State Management

2008-07-16 Thread Easow Jacob
HI,

Is it possible to call a state inside other component

for eg.

in 1.mxml i have a state name "one"

 

  

 



in 2.mxml i have a state name "two"

 

  



 



i need to call state "one" in 1.mxml inside state "two" button click...
-- 
Mathew Easow Jacob,
Bangalore.
+91-9886979038


Re: [flexcoders] Digital clock

2008-07-16 Thread Easow Jacob
Thanks.

On Wed, Jul 16, 2008 at 1:35 AM, Fidel Viegas <[EMAIL PROTECTED]>
wrote:

>   I have asked this question before. If you do a search on the archive,
> you should be able to find an example posted by someone.
> But, generally speaking, it is just like Gordon has mentioned.
>
> Fidel.
>
>
> On Tue, Jul 15, 2008 at 5:59 PM, Easow Jacob <[EMAIL 
> PROTECTED]>
> wrote:
> >
> > Hi,
> >
> > Any one having an example for Digital clock using flex...or how can i
> > display the time (HH:MM:SS)and update
> > it whenever time changes.
> >
> > Thanks,
> > Mathew
> > --
> > Mathew Easow Jacob,
> > Bangalore.
> > +91-9886979038
> >
>  
>



-- 
Mathew Easow Jacob,
Bangalore.
+91-9886979038


[flexcoders] Removing ArrayCollection item from within ItemRenderer

2008-07-16 Thread calisza
After having a look around at various blogs, resources etc I'm stumped
on the following :

I have a TileList using a custom itemRenderer. The dataprovider is a
standard ArrayCollection of objects.

The itemRenderer contains an Image, a Label and a Button. When the
user clicks the button - I want to remove that particular item from
both the Tilelist and the dataProvider.

The problem is that "parent.removeChild(this)" only works partially
(it clears the tilelist "block" of the item's content, but the empty
block remains in place... still highlighted). I also have no idea how
to access the dataProvider from within the itemRenderer.
parent.dataProvider and owner.dataProvider don't seem to work, my
guess being that dataProvider is a private property.

Any ideas ? Is there perhaps a better way of doing this ? (still new
to flex so still learning).

TIA,
Barry



[flexcoders] Image flip horizontal

2008-07-16 Thread David Gironella
Hi,

 

Any parameter for image component to flip horizontal?

 

I know to do this in AS3 but want to now if I can do this easier.

 

 

Giro.

 

 



Re: [flexcoders] Who is using FlexReport?

2008-07-16 Thread Derrick Anderson
amen brother, to be honest I like FlexReport- but it's not ready for an
enterprise app.  it's a good starting point, but I really need something
much more robust.

i'm in the same boat, would love to provide all the great reportability and
UI that has been touted but more and more i see people 'hacking' out flex
reports in anything other than 'flex'.

Adobe, where is the flex report builder???

d.

On Wed, Jul 16, 2008 at 11:10 AM, ansury2001 <[EMAIL PROTECTED]> wrote:

>   I need some advice on whether FlexReport is ready for "real" use.
>
> I've already taken a look at it some, and other than it being a pain
> to setup and rather slow, I think it may work well enough. But I want
> to get some 3rd party opinions on others who have used it-- or, what
> other solutions have you come up with? Are most people just using 3rd
> party tools like Oracle BI Publisher or Crystal Reports, resorting to
> that primitive "HTML round-trip" stuff? ^_^
>
> I also would like to provide users with report building capabilities.
> I know reporting is complex, but has anyone done anything similiar or
> had any experience creating a report builder in Flex? Something like
> ClearBI would be great. (Unfortunately ClearBI has no user base, no
> support, no community, extremely restrictive setup requirements, is
> almost impossible to setup and get working, isn't cheap (considering
> what you're getting), and seems like a VERY risky choice for
> reporting.)
>
> As a side rant...
> Flex is not going to take off in an "enterprise environment" as Adobe
> seems to be claiming it is ready for until we can do reporting
> natively in the swf app, without a ton of issues and work to do. I
> don't care whether it's built into Flex, created separately by Adobe,
> or built by a third party, but a real solution is going to be needed
> very soon, before something like Silverlight exploits this weakness.
> FlexReport won't be this solution no matter how good it gets, because
> it's scope isn't large enough. Users need to be able to create their
> own reports using the reporting interface!
>
>  
>


Re: [flexcoders] Who is using FlexReport?

2008-07-16 Thread Paul Andrews
- Original Message - 
From: "ansury2001" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, July 16, 2008 4:10 PM
Subject: [flexcoders] Who is using FlexReport?

snip

> As a side rant...
> Flex is not going to take off in an "enterprise environment" as Adobe 
> seems to be claiming it is ready for until we can do reporting 
> natively in the swf app, without a ton of issues and work to do. I 
> don't care whether it's built into Flex, created separately by Adobe, 
> or built by a third party, but a real solution is going to be needed 
> very soon, before something like Silverlight exploits this weakness. 

+1



[flexcoders] Re: RTMP and Spring Security(Acegi) Issues - SOLVED

2008-07-16 Thread Geoffrey
One last thing I had to do to get it to work.  I added
"-Dacegi.security.strategy=MODE_INHERITABLETHREADLOCAL" to my Tomcat
JVM arguments.  Otherwise, setting and getting the Authentication
object was accessing different instances of some security object.

 ~Geoff

--- In flexcoders@yahoogroups.com, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> I seem to have got it working.  Thanks for your help jahhaj12345!
> 
> What I ended up doing was to create a custom LoginCommand class.  I
> used the one from here:
> http://blog.f4k3.net/fake/entry/acegi_logincommand_for_fds.  I made
> two changes shown below:
> 
> //The name of our Acegi configuration file.
> private static String[] CONFIG_LOCATIONS =
> {"classpath:security-context.xml"};
> 
> //"ldapAuthenticationProvider" is from our Acegi config file, and it
> the name of the bean that is used for authentication via LDAP.
> authenticationProvider =
>
(AuthenticationProvider)applicationContext.getBean("ldapAuthenticationProvider");
> 
> 
> I then updated services-config.xml and added:
> 
>server="Tomcat"/>
> 
>   Basic
> 
>   ROLE_MANAGERS
>   ROLE_USERS
>  
> 
> 
> //The roles came from the Acegi config file.
> 
> 
> After that, I had to add the [managed] metadata tag to one of my
> ValueObjects and it all seemed to work.
> 
> I'll be honest, I don't really understand why this works, it just
> does.  What I mean by 'works' is that the managed collection on the
> client gets filled with data successfully.  I haven't yet tested
> pushing new entries to that managed collection after the initial fill.
> 
> 
> I hope this post helps someone else.
> 
>  ~Geoff
> 
> --- In flexcoders@yahoogroups.com, "jahhaj12345"  wrote:
> >
> > I don't know of a way to just authenticate the client.  From
everything
> > I've read, you have to authenticate the HTTP and RTMP sessions
> > individually.  For my application, I had to create my own LoginCommand
> > to handle the flex RTMP authentication.
> > 
> > Here's my understanding of how it's working for me:
> > 
> > 1. On my client, I get the channelset to use and then call
> > channelSet.login(username, password).  You could also call the
> > setCredentials on the actual DataService the same way, but my services
> > are all created at runtime on the server instead of being statically
> > defined in services-config.xml.
> > 
> > 2. That channelSet (or dataservice) from above authenticates
through the
> > login-command configured in services-config.xml.  This is where the
> > custom LoginCommand I created is configured.  The doAuthentication
> > function of LoginCommand is as follows:
> > 
> >  public Principal doAuthentication(String username, Object
> > credentials) {
> >  Authentication auth = authenticationProvider.authenticate(new
> > UsernamePasswordAuthenticationToken(username, credentials)); //
> > authenticationProvider is a spring security DaoAuthenticationProvider
> > 
> >  SecurityContextHolder.getContext().setAuthentication(auth);
> >  return auth;
> >  }
> > 
> > This should authenticate the RTMP session.  I don't know if this
is the
> > best way, but it seems to work.
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
> > >
> > > I'm guessing that we don't implement security the correct way
(or the
> > > best way) right now.  Currently, I have a login State that takes the
> > > username and password and makes an HTTPService call to the JSP page
> > > that does user authentication.  If that comes back successfully,
then
> > > I change State to the main application.
> > >
> > > That seems to take care of all of the HTTP requests, but the RTMP
> > > requests obviously fail (or else I wouldn't be here ;-)).
> > >
> > > I read the docs about using LoginCommand, but I didn't see how that
> > > ties into Acegi.
> > >
> > > I'm wondering if you can authenticate the Flex client, and not just
> > > the session.  If so, wouldn't the sessions (HTTP and RTMP) also be
> > > authenticated since they fall under the FlexClient object?  Just a
> > > thought.
> > >
> > > Geoff
> > >
> > > --- In flexcoders@yahoogroups.com, "jahhaj12345" halvorsonj@ wrote:
> > > >
> > > > I'm having the same problems you are.  I've been through several
> > > > options but haven't found one that's acceptable from a security
> > point
> > > > of view if you are trying to use the rememberme functionality.
> > > >
> > > > To get it working without rememberme, provide a login form
from your
> > > > flex application and once authenticated using form login, use that
> > > > username/password combination for the RTMP's ChannelSet login.
 And
> > > > depending on how you handle authentication on your end, you
may need
> > > > to provide your own LoginCommand and UserDetailsService.  I've
done
> > > > both of these and it works.
> > > >
> > > > Does anyone out there have a way to get rememberme working for
RTMP?
> > > > I know the problem is cause by the RTMPFlexSession bei

[flexcoders] Who is using FlexReport?

2008-07-16 Thread ansury2001
I need some advice on whether FlexReport is ready for "real" use.

I've already taken a look at it some, and other than it being a pain 
to setup and rather slow, I think it may work well enough. But I want 
to get some 3rd party opinions on others who have used it-- or, what 
other solutions have you come up with? Are most people just using 3rd 
party tools like Oracle BI Publisher or Crystal Reports, resorting to 
that primitive "HTML round-trip" stuff? ^_^

I also would like to provide users with report building capabilities. 
I know reporting is complex, but has anyone done anything similiar or 
had any experience creating a report builder in Flex? Something like 
ClearBI would be great. (Unfortunately ClearBI has no user base, no 
support, no community, extremely restrictive setup requirements, is 
almost impossible to setup and get working, isn't cheap (considering 
what you're getting), and seems like a VERY risky choice for 
reporting.)

As a side rant...
Flex is not going to take off in an "enterprise environment" as Adobe 
seems to be claiming it is ready for until we can do reporting 
natively in the swf app, without a ton of issues and work to do. I 
don't care whether it's built into Flex, created separately by Adobe, 
or built by a third party, but a real solution is going to be needed 
very soon, before something like Silverlight exploits this weakness. 
FlexReport won't be this solution no matter how good it gets, because 
it's scope isn't large enough. Users need to be able to create their 
own reports using the reporting interface!



Re: [flexcoders]How to change the selectedIndex of a LinkBar

2008-07-16 Thread fake_id_911
I like Tracy (assuming Tracy is a she) she is so helpful.  I learned a
lot from Tracy. So to honor Tracy, I give my time to help too.










--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> I don't use LinkBar because it is too limiting.
> 
> If I need the links dataDriven, I use LinkButtons in a Repeater,
> otherwise I just use LinkButtons declared individually.  LinkButtons
> call a nav function, which changes the styleName of the previously
> selected LinkButton(ref stored in instance variable) to a "normal"
> style, and the currently clicked LinkButton to a "selected" style.
> 
> Tracy




[flexcoders] Re: flex testing

2008-07-16 Thread Jarek Szczepanski
--- In flexcoders@yahoogroups.com, "phil swenson" <[EMAIL PROTECTED]>
wrote:
>
> Any thoughts on testing the Flex UI?  I tried FunFX, but it crashed
> immediately after lanching safari (I'm on a mac).
> 
> After looking at FlexSPY, it seems to me that it should be possible
to do
> flex testing without native code.
> 
> any thoughts?
>

http://seleniumflexapi.sourceforge.net/
it's in early stage of development but it's very promising...

Jarek



RE: [flexcoders] PopButton inside another popUp

2008-07-16 Thread Battershall, Jeff
Did some googling - upgraded to SDK 3.0.2 - issue resolved.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Battershall, Jeff
Sent: Wednesday, July 16, 2008 9:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] PopButton inside another popUp


I've got a PopupButton which pops up a form, which in turn contains
another popupbutton subform, and I'm running into difficulties with the
inner popup being undefined. I know there's an outstanding issue here
and I've tried to implement the fix (as I know it) which is to check to
see of the popUp property is undefined, and if so, define it on the fly
via AS.  The issue I'm seeing however is that the popUp is behind the
other popup until I click on it once or twice.

Any sugestions or advice? 

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
(609) 520-5637 (p)
(484) 477-9900 (c)



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links





Re: [flexcoders] Framework as RSL issue

2008-07-16 Thread Tom Chiverton
On Wednesday 16 Jul 2008, Hyder wrote:
> Any idea why this may be happening?

RSLs in wrong order, if you are using Builder to do this it doesn't understand 
this ?
If so, vote for http://bugs.adobe.com/jira/browse/FB-11222

-- 
Tom Chiverton



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. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

<*> Your email settings:
Individual Email | Traditional

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

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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



[flexcoders] Re: No support for "move" refactoring in Flex Builder 3

2008-07-16 Thread ansury2001
Wait until Flex 4? That's crap. They need to put out a 
refactoring/bugfix patch first. It'll be a year or more before a new 
version is out!

--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> Voting for deferred bugs will be available soon.  Tom's right that 
bugs
> like this aren't getting reconsidered for Flex 3 but we know we need
> more refactoring support in Flex 4.
> 
> Matt
> 
> -Original Message-
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Tom Chiverton
> Sent: Tuesday, January 22, 2008 6:56 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] No support for "move" refactoring in Flex
> Builder 3
> 
> On Monday 21 Jan 2008, ansury2001 wrote:
> > So if FB3 is supposed to support refactoring - it's either 
broken, or
> > it doesn't do moves at all. 
> 
> The 2nd. It does some other sorts of refactor, but not that one.
> You can always do most of the grunt work for a change in package 
name
> using 
> search/replace all.
> 
> > Which basically is Adobe saying that it's not a bug, and it's not
> > planned to be included in FB3.
> 
> They do that. 
> The resolution is 'deferred'- I think the plan is to reopen all the
> deferred 
> bugs for the next version, once the current one ships.
> 
> > Maybe if enough people care to complain about it on Adobe's 
forums,
> > they'll reconsider. If there's big interest, we could create a new
> > feature request ticket in their tracking system and all vote for 
it.
> 
> Hint: FB3 (and Flex 3) are so near release only critical bugs are 
going
> to get 
> fixed. 
> I think Matt Chotin has said as much several times here.
> I doubt they'll reconsider.
> As to creating a new ticket, it'll just get closed as a duplicate, 
as
> the 
> other two have.
> By all means add your voice to the ticket, but it may be easier to 
just
> 'watch 
> it' so you can go back and vote for it when it is unclosed.
> 
> -- 
> Tom Chiverton
> Helping to biannually improve internet metrics
> on: http://thefalken.livejournal.com
> 
> 
> 
> 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. Any reference to a partner in relation to
> Halliwells LLP means a member of Halliwells LLP.  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 Mailing List
> FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>




[flexcoders] Re: AIR app not launching after installation

2008-07-16 Thread nateross83
Igor,

I am running the latest version of AIR on all of my machines. I just 
verified that a moment ago, but the problem still persists.

Thanks,
Nate

--- In flexcoders@yahoogroups.com, "Igor Costa" <[EMAIL PROTECTED]> wrote:
>
> Nate be sure to have the last air runtime installed on your machine 
to
> properly work.
> 
> --
> Igor
> 
> On Tue, Jul 15, 2008 at 4:52 PM, nateross83 <[EMAIL PROTECTED]> wrote:
> 
> >   Hi all,
> >
> > I have been having a strange problem and I have looked everywhere 
for
> > a solution. I have generated an .air file for the AIR app I have 
been
> > working on. When I run the .air file, the installation works fine,
> > but when I try to run the application, it does nothing.
> >
> > In fact, the only way I can see the application is by adding
> > true to the descriptor XML file. Otherwise, it
> > doesn't show up in the taskbar (I am running Windows). The only 
trace
> > of it I see is in the Task Manager where the process is running. 
Now,
> > with me setting the visibility to true in the descriptor, I just 
see
> > the window with nothing inside of it.
> >
> > I am not sure if it is just hanging for some reason when it is 
being
> > unpacked, or if I have some code that is making it not work
> > (Unfortunately I cannot release any source code for this project).
> > The weird thing is that I can run it on a Mac without any 
problems. I
> > have tried in Vista and XP and both are not working.
> >
> > I have verified that the app runs in FB3 under both Run and Debug
> > configurations without any errors. Plus, I have successfully ran 
AIR
> > apps with my Vista and XP machines in the past without any 
problems.
> >
> > Please help!
> >
> > Thanks,
> > Nate Ross
> >
> >  
> >
> 
> 
> 
> -- 
> 
> Igor Costa
> www.igorcosta.com
> www.igorcosta.org
>




Re: [flexcoders] Error #1034: Type Coercion failed.... how to solve?

2008-07-16 Thread Guilherme Blanco
Could you please point me to the right post?

I've looked at this page (after researched Google for your blog), and
could not find it... http://blogs.adobe.com/aharui/

Thanks in advance,

On Wed, Jul 16, 2008 at 11:33 AM, Alex Harui <[EMAIL PROTECTED]> wrote:
> Shared code problem.  See my blog
>
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Guilherme Blanco
> Sent: Wednesday, July 16, 2008 7:19 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Error #1034: Type Coercion failed how to solve?
>
>
>
> Hi all,
>
> I'm in troubles here... researching the internet furiously while post it
> here.
> I have in my application that loads a module and instantiate it inside
> an instance of class core.controls.ModalDialog, class that I wrote
> extended from TitleWindow.
>
> The source is really simple... here is the implementation of module load
> event:
>
> protected function handleCreateCompanyModuleLoad(event:ModuleEvent):void
> {
> var dialog:ModalDialog =
> ModalDialog(PopUpManager.createPopUp(Application(Application.application),
> ModalDialog, true));
>
> // Dialog customization
> dialog.title = "Create Company";
> dialog.width = 450;
> dialog.height = 270;
> dialog.showCloseButton = true;
>
> // Dialog content customization
> var ui:* = event.module.factory.create();
> dialog.addChild(ui);
> }
>
> One of the buttons inside the module closes the ModalDialog, which
> should be accessible through this.parent or this.owner. Since I know
> I'm always inside of it, I cast the property to prevent Flex from
> popping my errors...
>
> 
>
> protected function close():void
> {
> //ModalDialog(parent).close();
> ModalDialog(owner).close();
> }
>
> Everytime I execute the code and click in the "Cancel" button... it
> throws this runtime error:
>
> TypeError: Error #1034: Type Coercion failed: cannot convert
> core.controls::[EMAIL PROTECTED] to core.controls.ModalDialog.
>
> Any ideas how do I solve this?
>
> PS: Inside the application module (it's 100% modular) I already
> imported the ModalDialog and inside the module too researching the
> internet I saw someone telling that missing this might be a problem
> (solved the requester' issue), but didn't have any effect for me...
>
> []s,
>
> --
> Guilherme Blanco - Web Developer
> CBC - Certified Bindows Consultant
> Cell Phone: +55 (16) 9166-6902
> MSN: [EMAIL PROTECTED]
> URL: http://blog.bisna.com
> Rio de Janeiro - RJ/Brazil
>
> 



-- 
Guilherme Blanco - Web Developer
CBC - Certified Bindows Consultant
Cell Phone: +55 (16) 9166-6902
MSN: [EMAIL PROTECTED]
URL: http://blog.bisna.com
Rio de Janeiro - RJ/Brazil


Re: [flexcoders] What is the underscore '_'

2008-07-16 Thread Leonardo Moreno
Hi

The '_' preceding a variable is used as a best practice in private 
fields because the getters and setters can't have the same name as the 
variable.

private var _name:String;

public function set name(name:String):void{this._name = name;}

public function get name():String{return this._name;}

Scott wrote:
>
> … being used for in flex code? I see example code out there that has 
> variables like _myVar = myVar, what is this doing?
>
> TIA!
>
>  

-- 
Leonardo Moreno Guzmán
Ingeniero de sistemas y telemática | Asesor soluciones informáticas
*cell-phone:*   311-3390386
*e-mail:*   [EMAIL PROTECTED]
*site:* http://leo.logtar.com/profesional/

begin:vcard
fn:Leonardo Moreno
n:Moreno;Leonardo
adr:;;;Cali;;;Colombia
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Ingeniero de sistemas y telem=C3=A1tica
tel;cell:3113390386
x-mozilla-html:FALSE
url:http://leo.logtar.com
version:2.1
end:vcard



Re: [flexcoders] Which Widget To Use

2008-07-16 Thread Richard Rodseth
When I saw this post, I wasn't sure if the poster really wanted cell
selection, which you don't have in an HTML table, or just the ability
to click on links in a grid?

On Wed, Jul 16, 2008 at 6:13 AM, Tom Chiverton
<[EMAIL PROTECTED]> wrote:
> On Tuesday 15 Jul 2008, rio258k wrote:
>> as I don't want a row selected, but an individual cell.
>
> There are several sub classes of DG out there that have cell selection, or you
> can use the AdvancedDataGrid from Flex 3's Data Vis. components.
>
> --
> Tom Chiverton
>
> 
>
> 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. Any 
> reference to a partner in relation to Halliwells LLP means a member of 
> Halliwells LLP.  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 Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>


Re: [flexcoders] Re: File Uploading

2008-07-16 Thread Leonardo Moreno
Hi

I implemented that functionality this way

Java:
Create a servlet that handles the multipart data and write the file

Flex:
Using the file reference class pointing to the created servlet you call 
the upload method

For examples you can google ;)

regards

ericbichara wrote:
>
> Hi dimitrios,
>
> An example would be really great, i have no idea what url to use in
>
> fileRef.upload(new URLRequest());
>
> do i point to the blazeds remoting servlet?? Where does the file end
> up? Im lost. Thanks in advance!!
>
> --- In flexcoders@yahoogroups.com 
> , "Dimitrios Gianninas"
> <[EMAIL PROTECTED]> wrote:
> >
> > The same way you would do it in JSP :)
> >
> > Use the FileReference class in Flex to allow the user to select a
> file and then tell it to send the file to a Java servlet. Then the
> servlet will receive the file and do what it needs to do with it. I
> assume you have done the Java portion before, so there is nothing more
> to it.
> >
> > Hope that makes sense, if not I can post a quick example.
> >
> > Dimitrios Gianninas
> > RIA Developer and Team Lead
> > Optimal Payments Inc.
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com 
>  
> [mailto:flexcoders@yahoogroups.com ]
> On Behalf Of ericbichara
> > Sent: Wednesday, July 16, 2008 9:32 AM
> > To: flexcoders@yahoogroups.com 
> > Subject: [flexcoders] Re: File Uploading
> >
> >
> >
> > Im in the same boat as you my friend, would really appreaciate it if
> > someone could lets us know how to do this, Thanks again.
> >
> > /Eric
> >
> > --- In flexcoders@yahoogroups.com 
>  , "Pravin Uttarwar"
> >  wrote:
> > >
> > > Hi All,
> > >
> > > I have requirement in my project of uploading the image file only.
> > > This can be done through using FileReference class but can anybody
> > tell me
> > > how
> > > it can be done using BlazeDs with java (not using jsp)
> > >
> > > Thanks in advance.
> > >
> >
> >
> >
> >
> >
> > --
> > WARNING
> > ---
> > This electronic message and its attachments may contain
> confidential, proprietary or legally privileged information, which is
> solely for the use of the intended recipient. No privilege or other
> rights are waived by any unintended transmission or unauthorized
> retransmission of this message. If you are not the intended recipient
> of this message, or if you have received it in error, you should
> immediately stop reading this message and delete it and all
> attachments from your system. The reading, distribution, copying or
> other use of this message or its attachments by unintended recipients
> is unauthorized and may be unlawful. If you have received this e-mail
> in error, please notify the sender.
> >
> > AVIS IMPORTANT
> > --
> > Ce message électronique et ses pièces jointes peuvent contenir des
> renseignements confidentiels, exclusifs ou légalement privilégiés
> destinés au seul usage du destinataire visé. L'expéditeur original ne
> renonce à aucun privilège ou à aucun autre droit si le présent message
> a été transmis involontairement ou s'il est retransmis sans son
> autorisation. Si vous n'êtes pas le destinataire visé du présent
> message ou si vous l'avez reçu par erreur, veuillez cesser
> immédiatement de le lire et le supprimer, ainsi que toutes ses pièces
> jointes, de votre système. La lecture, la distribution, la copie ou
> tout autre usage du présent message ou de ses pièces jointes par des
> personnes autres que le destinataire visé ne sont pas autorisés et
> pourraient être illégaux. Si vous avez reçu ce courrier électronique
> par erreur, veuillez en aviser l'expéditeur.
> >
>
>  

-- 
Leonardo Moreno Guzmán
Ingeniero de sistemas y telemática | Asesor soluciones informáticas
*cell-phone:*   311-3390386
*e-mail:*   [EMAIL PROTECTED]
*site:* http://leo.logtar.com/profesional/

begin:vcard
fn:Leonardo Moreno
n:Moreno;Leonardo
adr:;;;Cali;;;Colombia
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Ingeniero de sistemas y telem=C3=A1tica
tel;cell:3113390386
x-mozilla-html:FALSE
url:http://leo.logtar.com
version:2.1
end:vcard



RE: [flexcoders] Error #1034: Type Coercion failed.... how to solve?

2008-07-16 Thread Alex Harui
Shared code problem.  See my blog

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Guilherme Blanco
Sent: Wednesday, July 16, 2008 7:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Error #1034: Type Coercion failed how to
solve?

 

Hi all,

I'm in troubles here... researching the internet furiously while post it
here.
I have in my application that loads a module and instantiate it inside
an instance of class core.controls.ModalDialog, class that I wrote
extended from TitleWindow.

The source is really simple... here is the implementation of module load
event:

protected function handleCreateCompanyModuleLoad(event:ModuleEvent):void
{
var dialog:ModalDialog =
ModalDialog(PopUpManager.createPopUp(Application(Application.application
),
ModalDialog, true));

// Dialog customization
dialog.title = "Create Company";
dialog.width = 450;
dialog.height = 270;
dialog.showCloseButton = true;

// Dialog content customization
var ui:* = event.module.factory.create();
dialog.addChild(ui);
}

One of the buttons inside the module closes the ModalDialog, which
should be accessible through this.parent or this.owner. Since I know
I'm always inside of it, I cast the property to prevent Flex from
popping my errors...



protected function close():void
{
//ModalDialog(parent).close();
ModalDialog(owner).close();
}

Everytime I execute the code and click in the "Cancel" button... it
throws this runtime error:

TypeError: Error #1034: Type Coercion failed: cannot convert
core.controls::[EMAIL PROTECTED] to core.controls.ModalDialog.

Any ideas how do I solve this?

PS: Inside the application module (it's 100% modular) I already
imported the ModalDialog and inside the module too researching the
internet I saw someone telling that missing this might be a problem
(solved the requester' issue), but didn't have any effect for me...

[]s,

-- 
Guilherme Blanco - Web Developer
CBC - Certified Bindows Consultant
Cell Phone: +55 (16) 9166-6902
MSN: [EMAIL PROTECTED]  
URL: http://blog.bisna.com  
Rio de Janeiro - RJ/Brazil

 



Re: [flexcoders] What is the underscore '_'

2008-07-16 Thread Paul Andrews
It's often used as a convention to show private variables in a class. Some 
people use it for class atrributes - private or not.

In your example it's assigning a class variable with the value of a parameter.

Paul
  - Original Message - 
  From: Scott 
  To: flexcoders@yahoogroups.com 
  Sent: Wednesday, July 16, 2008 3:38 PM
  Subject: [flexcoders] What is the underscore '_'


  . being used for in flex code?  I see example code out there that has 
variables like _myVar = myVar, what is this doing?

   

   TIA!

   

Re: [flexcoders] What is the underscore '_'

2008-07-16 Thread Dan Vega
Its just standard practice to use an underscore for private variables.

Dan

On Wed, Jul 16, 2008 at 10:38 AM, Scott <[EMAIL PROTECTED]> wrote:

>… being used for in flex code?  I see example code out there that has
> variables like _myVar = myVar, what is this doing?
>
>
>
>  TIA!
>  
>


Re: [flexcoders] Re: [Flashcoders] as3 class libraries

2008-07-16 Thread Stephen Downs

some people might find our google code library useful i guess

http://code.google.com/p/tink/

--

Stephen Downs
Addict, Tink Ltd.

e: [EMAIL PROTECTED]
t: +44 (0) 7730 838 785
w: http://www.tink.ws

--




On 16 Jul 2008, at 15:21, Paul Evans wrote:


On 14 Jul 2008, at 21:41, Corban Baxter wrote:
> I am trying to put together a list of some of the best AS3 and Flex
> Libraries, Classes and Frameworks we have available

If you decide to publish your list somewhere, perhaps add a column to
highlight the licence type of each item, which read in conjunction
with Grant Skinners article could be a real time saver!

http://www.gskinner.com/blog/archives/2008/07/source_code_lic_1.html

--  
Paul Evans

http://www.creative-cognition.co.uk/
http://blog.creacog.co.uk/







[flexcoders] What is the underscore '_'

2008-07-16 Thread Scott
... being used for in flex code?  I see example code out there that has
variables like _myVar = myVar, what is this doing?

 

 TIA!



[flexcoders] Re: File Uploading

2008-07-16 Thread ericbichara
Hi dimitrios,

An example would be really great, i have no idea what url to use in 

fileRef.upload(new URLRequest());

do i point to the blazeds remoting servlet?? Where does the file end
up? Im lost. Thanks in advance!!

--- In flexcoders@yahoogroups.com, "Dimitrios Gianninas"
<[EMAIL PROTECTED]> wrote:
>
> The same way you would do it in JSP :)
>  
> Use the FileReference class in Flex to allow the user to select a
file and then tell it to send the file to a Java servlet. Then the
servlet will receive the file and do what it needs to do with it. I
assume you have done the Java portion before, so there is nothing more
to it.
>  
> Hope that makes sense, if not I can post a quick example.
>  
> Dimitrios Gianninas
> RIA Developer and Team Lead
> Optimal Payments Inc.
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of ericbichara
> Sent: Wednesday, July 16, 2008 9:32 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: File Uploading
> 
> 
> 
> Im in the same boat as you my friend, would really appreaciate it if
> someone could lets us know how to do this, Thanks again.
> 
> /Eric
> 
> --- In flexcoders@yahoogroups.com
 , "Pravin Uttarwar"
>  wrote:
> >
> > Hi All,
> > 
> > I have requirement in my project of uploading the image file only.
> > This can be done through using FileReference class but can anybody
> tell me
> > how
> > it can be done using BlazeDs with java (not using jsp)
> > 
> > Thanks in advance.
> >
> 
> 
> 
>  
> 
> -- 
> WARNING
> ---
> This electronic message and its attachments may contain
confidential, proprietary or legally privileged information, which is
solely for the use of the intended recipient.  No privilege or other
rights are waived by any unintended transmission or unauthorized
retransmission of this message.  If you are not the intended recipient
of this message, or if you have received it in error, you should
immediately stop reading this message and delete it and all
attachments from your system.  The reading, distribution, copying or
other use of this message or its attachments by unintended recipients
is unauthorized and may be unlawful.  If you have received this e-mail
in error, please notify the sender.
> 
> AVIS IMPORTANT
> --
> Ce message électronique et ses pièces jointes peuvent contenir des
renseignements confidentiels, exclusifs ou légalement privilégiés
destinés au seul usage du destinataire visé.  L'expéditeur original ne
renonce à aucun privilège ou à aucun autre droit si le présent message
a été transmis involontairement ou s'il est retransmis sans son
autorisation.  Si vous n'êtes pas le destinataire visé du présent
message ou si vous l'avez reçu par erreur, veuillez cesser
immédiatement de le lire et le supprimer, ainsi que toutes ses pièces
jointes, de votre système.  La lecture, la distribution, la copie ou
tout autre usage du présent message ou de ses pièces jointes par des
personnes autres que le destinataire visé ne sont pas autorisés et
pourraient être illégaux.  Si vous avez reçu ce courrier électronique
par erreur, veuillez en aviser l'expéditeur.
>




[flexcoders] Re: [Flashcoders] as3 class libraries

2008-07-16 Thread Paul Evans
On 14 Jul 2008, at 21:41, Corban Baxter wrote:
> I am trying to put together a list of some of the best AS3 and Flex
> Libraries, Classes and Frameworks we have available

If you decide to publish your list somewhere, perhaps add a column to  
highlight the licence type of each item, which read in conjunction  
with Grant Skinners article could be a real time saver!

http://www.gskinner.com/blog/archives/2008/07/source_code_lic_1.html

-- 
Paul Evans
http://www.creative-cognition.co.uk/
http://blog.creacog.co.uk/



[flexcoders] Re: Tabnavigator without the default tab enabled?

2008-07-16 Thread valdhor
Set visible=false ?

If an item is visible then some part of that item must be set somehow.


--- In flexcoders@yahoogroups.com, "vipinck" <[EMAIL PROTECTED]> wrote:
>
> Is it possible to have a tabnavigator component without the default
> tab activated/highlighted? When in normal state all tabs should be
> deselected state. I know this is unconventional for a TabNavigator.
> 
> -Vipin
>




[flexcoders] Error #1034: Type Coercion failed.... how to solve?

2008-07-16 Thread Guilherme Blanco
Hi all,


I'm in troubles here... researching the internet furiously while post it here.
I have in my application that loads a module and instantiate it inside
an instance of class core.controls.ModalDialog, class that I wrote
extended from TitleWindow.

The source is really simple... here is the implementation of module load event:

protected function handleCreateCompanyModuleLoad(event:ModuleEvent):void
{
   var dialog:ModalDialog =
ModalDialog(PopUpManager.createPopUp(Application(Application.application),
ModalDialog, true));

   // Dialog customization
   dialog.title = "Create Company";
   dialog.width = 450;
   dialog.height = 270;
   dialog.showCloseButton = true;

   // Dialog content customization
   var ui:* = event.module.factory.create();
   dialog.addChild(ui);
}


One of the buttons inside the module closes the ModalDialog, which
should be accessible through this.parent or this.owner. Since I know
I'm always inside of it, I cast the property to prevent Flex from
popping my errors...




protected function close():void
{
   //ModalDialog(parent).close();
   ModalDialog(owner).close();
}


Everytime I execute the code and click in the "Cancel" button... it
throws this runtime error:

TypeError: Error #1034: Type Coercion failed: cannot convert
core.controls::[EMAIL PROTECTED] to core.controls.ModalDialog.


Any ideas how do I solve this?


PS: Inside the application module (it's 100% modular) I already
imported the ModalDialog and inside the module too researching the
internet I saw someone telling that missing this might be a problem
(solved the requester' issue), but didn't have any effect for me...


[]s,

-- 
Guilherme Blanco - Web Developer
CBC - Certified Bindows Consultant
Cell Phone: +55 (16) 9166-6902
MSN: [EMAIL PROTECTED]
URL: http://blog.bisna.com
Rio de Janeiro - RJ/Brazil


Re: [flexcoders] Transparent Application Background

2008-07-16 Thread Daniel Gold
Are you wanting the application to be transparent as in showing what's
'under' it on a page? If so have fun. I've seen Flash ads do this on
websites and it looks like they actually discern the bitmap data for that
section of the page and use that as the background. If you see one of these
ads you'll notice you can't click on anything in the 'transparent' area. I
haven't put any effort into it but seems like a pain.

On Wed, Jul 16, 2008 at 8:48 AM, ammu nath <[EMAIL PROTECTED]> wrote:

>   Hi All,
> Can any body help me how can i achive Transparent Application
> background in a flex application overriding the befault color?
>
>
> Thanks
> Amar
>
> --
> Save all your chat conversations. Find them 
> online.
> 
>


[flexcoders] PopButton inside another popUp

2008-07-16 Thread Battershall, Jeff
I've got a PopupButton which pops up a form, which in turn contains
another popupbutton subform, and I'm running into difficulties with the
inner popup being undefined. I know there's an outstanding issue here
and I've tried to implement the fix (as I know it) which is to check to
see of the popUp property is undefined, and if so, define it on the fly
via AS.  The issue I'm seeing however is that the popUp is behind the
other popup until I click on it once or twice.

Any sugestions or advice? 

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
(609) 520-5637 (p)
(484) 477-9900 (c)


[flexcoders] Transparent Application Background

2008-07-16 Thread ammu nath
Hi All,
  Can any body help me how can i achive Transparent Application 
background in a flex application overriding the befault color?
   
   
  Thanks 
  Amar

   
-
 Save all your chat conversations. Find them online.

RE: [flexcoders] Re: File Uploading

2008-07-16 Thread Dimitrios Gianninas
The same way you would do it in JSP :)
 
Use the FileReference class in Flex to allow the user to select a file and then 
tell it to send the file to a Java servlet. Then the servlet will receive the 
file and do what it needs to do with it. I assume you have done the Java 
portion before, so there is nothing more to it.
 
Hope that makes sense, if not I can post a quick example.
 
Dimitrios Gianninas
RIA Developer and Team Lead
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
ericbichara
Sent: Wednesday, July 16, 2008 9:32 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: File Uploading



Im in the same boat as you my friend, would really appreaciate it if
someone could lets us know how to do this, Thanks again.

/Eric

--- In flexcoders@yahoogroups.com  , 
"Pravin Uttarwar"
<[EMAIL PROTECTED]> wrote:
>
> Hi All,
> 
> I have requirement in my project of uploading the image file only.
> This can be done through using FileReference class but can anybody
tell me
> how
> it can be done using BlazeDs with java (not using jsp)
> 
> Thanks in advance.
>



 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'ĂŞtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



[flexcoders] Re: File Uploading

2008-07-16 Thread ericbichara
Im in the same boat as you my friend, would really appreaciate it if
someone could lets us know how to do this, Thanks again.

/Eric

--- In flexcoders@yahoogroups.com, "Pravin Uttarwar"
<[EMAIL PROTECTED]> wrote:
>
> Hi All,
> 
> I have requirement in my project of uploading the image file only.
> This can be done through  using FileReference class but can anybody
tell me
> how
> it can be done using BlazeDs with java (not using jsp)
> 
> Thanks in advance.
>




Re: [flexcoders] Which Widget To Use

2008-07-16 Thread Tom Chiverton
On Tuesday 15 Jul 2008, rio258k wrote:
> as I don't want a row selected, but an individual cell.

There are several sub classes of DG out there that have cell selection, or you 
can use the AdvancedDataGrid from Flex 3's Data Vis. components.

-- 
Tom Chiverton



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. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

<*> Your email settings:
Individual Email | Traditional

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

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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



Re: [flexcoders] Re: Flex 3 Migration shoots up Filesize by 400K

2008-07-16 Thread Tom Chiverton
On Wednesday 16 Jul 2008, Hyder wrote:
> So I removed all references to the advanced datagrid and switch back
> to the original datagrid and now it's down to 450K again... the ADG is
> amazingly big !!!

You're not compiling in just the ADG, but the whole of what used to be 
Charting (now called Data Visualisation).
You can reduce your users pain by using RSL to load the .swc's at runtime, 
from the users cache.

-- 
Tom Chiverton



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. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

<*> Your email settings:
Individual Email | Traditional

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

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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



[flexcoders] Re: Flex blog topics - what should I write about?

2008-07-16 Thread Amy
--- In flexcoders@yahoogroups.com, "celumbra" <[EMAIL PROTECTED]> wrote:
>
> I have been teaching myself Flex over the last six months, and am 
somewhat new to 
> developing myself (I've usually designed specs and hired 
programmers to implement 
> them). Reading blogs about Flex, I often find details of how to 
accomplish a particular 
> programming task, but rarely see these tasks set in the larger 
context of building a Flex 
> application—which would certainly help someone like me. 
> 
> As an analogy, imagine needing to captain a submarine, something 
few of us know how to 
> do, and having a page that shows how to raise the periscope or 
another page that shows 
> how to launch countermeasures—useful details, but would be far more 
useful in the 
> context of how to think like a captain, to know where and when to 
raise the periscope or 
> deploy countermeasures, to relate these tasks to the larger 
strategies and concerns of 
> executing an actual mission. 
> 
> I imagine there are more and more people like me, people who need 
to take on the task of 
> programming Flex as part of the final published expression, even 
though it can seem as 
> daunting as taking on the tasks of captaining a submarine. 
> 
> In describing to my authors how to write books that help readers in 
their fields who are 
> like me in relation to Flex, I often recommend James Beard's 
book "The Theory and 
> Practice of Good Cooking," which is a classic cookbook. Its essays 
can be thought of as 
> blog entries, and the recipes following each essay, like 
instructions for programming 
> tasks. It is a great example of placing the skills of cooking in 
the context of thinking like a 
> cook. 
> 
> It would be great to read how to program Flex in the context of 
thinking like a developer.

Have you checked out Flex 3 Training from the Source?  It's pretty 
close to what you describe.



Re: [flexcoders] Object not passed as Remote Object parameter

2008-07-16 Thread Tom McNeer
On Tue, Jul 15, 2008 at 11:53 PM, Douglas Knudsen <[EMAIL PROTECTED]>
wrote:

>   well, even if your swf is loaded via file://, the RemoteObject call is
> over the network, even if localhost, so service cap should see it, eh?
>




Well, no. CF is on the laptop, too.

Not sure of the rest. When I've worked with CF/Flex, I made it all
> typed on both sides of the fence.
>

Yeah, all the stuff coming in to the app at startup -- all the products,
categories, options, etc. -- is coming over as typed structs that are
translated nicely. And I guess I'll do that when sending the Estimate back,
too. It's just that the overall structure of how an Estimate is put together
on the client side is different in some ways from the way things will be
persisted on the server. So I was just going to skip the typing and throw
one big Estimate object down the line, since my understanding is that CF
should just see the object as a struct.

I wonder, though: The Estimate does have an array of Product VOs and Option
VOs within that do match CFCs. Wonder if it's possible that CF is balking at
the combination of objects it knows, and ones it doesn't?

Hey, you are in Atlanta! Come on out to http://www.affug.org next week.
>

Hey, yes I am!.

I'll try to. I admit to being a sporadic attendee. Although I did win a
360Flex ticket there. Hmmm...guess I should go.




-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


[flexcoders] Re: How to extend AdvancedDatagrid to expose new events and properties?

2008-07-16 Thread Amy
--- In flexcoders@yahoogroups.com, "pascal flex" <[EMAIL PROTECTED]> 
wrote:
>
> Hi,
> 
> I need to extend AdvancedDatagrid to add new events and properties 
to it
> using actionscript. How can i achieve this?
> 
> Thanks in advance.
>

File>New>Actionscript Class

Use the Browse button to select AdvancedDataGrid as the superclass.

Go to town.

HTH;

Amy



[flexcoders] Re: Flex 3 Migration shoots up Filesize by 400K

2008-07-16 Thread Hyder
I was looking at the release version. 

So I removed all references to the advanced datagrid and switch back
to the original datagrid and now it's down to 450K again... the ADG is
amazingly big !!!

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> ADG is pretty big.  Also note that Flex 3 SDK is a debug SWF.  You have
> to use Export Release to get a release version which will be much
> smaller.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Hyder
> Sent: Monday, July 14, 2008 2:50 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Flex 3 Migration shoots up Filesize by 400K
> 
>  
> 
> I migrated my application to Flex 3 SDK... the swf's filesize while 
> compiling under Flex 2 SDK was 374.
> 
> The only change I made after migrating to Flex 3 SDK was to replace a 
> DataGrid with AdvancedDataGrid and propagated the necessary changes to 
> its columns too.
> 
> Now, my file size is over 800K... ?
> 
> When i try to set the Flex framework as an rsl, the application 
> compiles but throws a bunch of errors at startup... missing variables 
> and components.
> 
> Any idea why this might be happening?
>




[flexcoders] Framework as RSL issue

2008-07-16 Thread Hyder
I migrated my project from Flex 2 SDK. It works fine but when I try to
set Framework as RSL, flash player keeps throwing missing component
errors starting with missing VBox.

Any idea why this may be happening?



[flexcoders] How to save the Captured Screen Shot Image in Flex Using java JAI

2008-07-16 Thread Jaibabu

Hai all once again i'm back, 
 How can i save the  image captured in flex in server side Using Java
JAI. I had tried many solutions but i failed to achieve that. I can able to
send the JpegEncoded byte array as string (Using Base64Decode) to the server
side from MXML page. But in server side i can't able to convert the encoded
string to image format using Java JAI and save it. Can anyone please post me
the java code to save the captured image. When i save the String as jpeg
image in server side the file gets saved but no image is visible.

The following is the mxml code snippet.

var jpgenc:JPEGEncoder = new JPEGEncoder();
var bmd:BitmapData = new BitmapData(mm1.width,mm1.height);
bmd.draw(mm1);
var ohSnap:ImageSnapshot = ImageSnapshot.captureImage(bmd,0,jpgenc);
   
var byteArr:String;
base64Enc = new Base64Encoder();
base64Enc.encode(ImageSnapshot.encodeImageAsBase64(ohSnap));
byteArr = base64Enc.flush();

var request:URLRequest = new URLRequest ();
request.url = "http://serverpath/sqftcalc/save.do";;
request.method = URLRequestMethod.POST;
request.data = new URLVariables ("BYTEDATA=" + byteArr);
downloadFileRef.download (request, "file")

Thanks in advance
Jai
-- 
View this message in context: 
http://www.nabble.com/How-to-save-the-Captured-Screen-Shot-Image-in-Flex-Using-java-JAI-tp18481780p18481780.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: reconize file extensions

2008-07-16 Thread carloveparade
--- In flexcoders@yahoogroups.com, "carloveparade"
<[EMAIL PROTECTED]> wrote:
>
> Hi, im doing a music player but i can play video too. i need to
> reconize if the file that the html is passing to the swf is a mp3 file
> or a .flv file. Please help me thenx
>
thanks i found a solution using str.slice(-3,str.length) where str is
the name of the file. the method slice(-3,str.length) return the 3
last charaters mp3, flv, etc.



[flexcoders] Batch conversion tool for PDF to PDF forms conversion

2008-07-16 Thread dssjava
Hi,

Is there commercial or free products that has a Batch conversion tool 
for PDF to PDF forms conversion.

Please met me know.

Thanks in advance,
Danny



Re: [flexcoders] task path for a cairngorm project

2008-07-16 Thread Tom Chiverton
On Tuesday 15 Jul 2008, dnk wrote:
> Say you are starting a new project that will have remoting, etc in
> what order do you build your app?

Something like

1) Design (pen and paper mostly) to produce list of application-level events 
and screen
2) for each screen, for each event fired from that screen
a) server code and test
b) client code (Event,Command, Delegate etc. etc. as needed) and test
c) integration test
d) user test as req.

Sometimes, esp. with more complex results we might build the whole of the 
server code first and then the client, but the client is still done screen by 
screen.

-- 
Tom Chiverton



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. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

<*> Your email settings:
Individual Email | Traditional

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

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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



[flexcoders] Simple Flex ColdFusion connection test app

2008-07-16 Thread Simon Bailey

I noticed a few people out there trying to build a simple connection
application to test if Flex and ColdFusion were talking using
RemoteObject.

So I decided to build a simple app that people could be re-used either
remote or locally.

This should help with the whole 'whats is the source string' and where
to I hit this flex 2 gateway stuff :)  Also enables you to enter urls
and cfc names so you dont have to keep on recompiling the flex app :)

See if it helps anyone out there:

http://www.nutrixinteractive.com/blog/?p=129

Cheers,

Simon

newtriks.com


Re: [flexcoders] setup.sh Error, Compiling Flex

2008-07-16 Thread Tom Chiverton
On Tuesday 15 Jul 2008, Sherif Abdou wrote:
> When i do source setup.sh, does anyone know what this means?

You can always just run the correct lines from the script yourself by hand.

-- 
Tom Chiverton



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. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

<*> Your email settings:
Individual Email | Traditional

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

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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



[flexcoders] Re: Custom Components - updateDisplay results in ghost children drawn

2008-07-16 Thread polestar11
Ok ... so I'm still getting issues with the dynamic height on custom
components. 

I have a background Shape which I construct in the createChildren
method and set its graphics. In the updateDisplayList function I clear
and redraw the graphics at the new y position. This results in 2
versions of the Shape existing, first at the initial location (the
ghost version) and second at the new y location. 
You can see in the screenshot below, in the 2nd case there there are 2
sets of tiled backgrounds instead of a clear area where the swf asset
(dotted circle) is located.

It seems myShape.graphics.clear() does nothing. 
Here's the screenshot:
http://img186.imageshack.us/img186/8470/ghostredrawingxv8.jpg

Here's the code:
public class CustomPanel extends UIComponent {

// Children 
private var progress:Sprite;
private var nameContainer:Shape;
private var numberContainer:Shape;
private var nameLabel:Label;
private var numberLabel:Label;

// Styles from parent game-header
private var backgroundFill:Class;
private var backgroundColour:int;
private var padding:int;

private var nameHeight:int = 28;
private var ratingHeight:int = 26;
private var nameBackground:BitmapData;
private var _nameText:String = "";
private var _numberText:String = "";

public function get nameText():String {
return _nameText;
}

public function CustomPanel(backgroundFill:Class,
backgroundColour:int, fontColour:int, ratingFontColour:int,
imageWidth:int, padding:int){
super();
this.backgroundFill = backgroundFill;
this.backgroundColour = backgroundColour;
this.fontColour = fontColour;
this.ratingFontColour = ratingFontColour;
this.imageWidth = imageWidth;
this.padding = padding;
}

override protected function createChildren() : void {
super.createChildren();

if(!nameContainer) {
nameContainer = addChild(new Shape()) as Shape;
}
if(!numberContainer) {
numberContainer = addChild(new Shape()) as Shape;
}
if(!nameLabel) {
nameLabel = addChild(new Label()) as Label;
nameLabel.truncateToFit = true;
nameLabel.setStyle("color", fontColour);
}
if(!numberLabel) {
numberLabel = addChild(new Label()) as Label;
numberLabel.setStyle("color", ratingFontColour);
}

nameBackground = new BitmapData(nameHeight, nameHeight, false)
nameBackground.draw(new backgroundFill());

nameLabel.x = numberLabel.x = padding;
}

override protected function commitProperties():void {
super.commitProperties();

nameLabel.text = _nameText;
numberLabel.text = _numberText;
}

override protected function measure():void {
super.measure();

measuredWidth = measuredMinWidth = explicitWidth;
measuredHeight = measuredMinHeight = ((progress == null) ?
explicitWidth : progress.height) + nameHeight + ratingHeight;
}

override protected function updateDisplayList( unscaledWidth:Number,
unscaledHeight:Number ):void {
super.updateDisplayList(unscaledWidth, unscaledHeight);

nameContainer.graphics.clear();
nameContainer.graphics.beginBitmapFill(nameBackground);
nameContainer.graphics.drawRect(0, 0, explicitWidth, 
nameHeight);
nameContainer.graphics.endFill();

numberContainer.graphics.clear();
numberContainer.graphics.beginFill(backgroundColour);
numberContainer.graphics.drawRect(0, 0, explicitWidth, 
ratingHeight);
numberContainer.graphics.endFill();

var playerWidth:Number = unscaledWidth;
if(playerWidth == 0) {
playerWidth = nameLabel.measuredWidth;
}
else {
playerWidth = Math.min(unscaledWidth, 
nameLabel.measuredWidth)
}
nameLabel.setActualSize(playerWidth, nameLabel.measuredHeight);
numberLabel.setActualSize(numberLabel.measuredWidth,
numberLabel.measuredHeight);

if(progress != null) {
progress.x = explicitWidth/2 - progress.width/2;
na

[flexcoders] Re: Custom Components - updateDisplay results in ghost children drawn

2008-07-16 Thread polestar11
Ok ... so I'm still getting issues with the dynamic height on custom
components. 

I have a background Shape which I construct in the createChildren
method and set its graphics. In the updateDisplayList function I clear
and redraw the graphics at the new y position. This results in 2
versions of the Shape existing, first at the initial location (the
ghost version) and second at the new y location. 
You can see in the screenshot below, in the 2nd case there there are 2
sets of tiled backgrounds instead of a clear area where the swf asset
(dotted circle) is located.

It seems myShape.graphics.clear() does nothing. 
Here's the screenshot:
http://img186.imageshack.us/img186/8470/ghostredrawingxv8.jpg

Here's the code:
public class CustomPanel extends UIComponent {

// Children 
private var progress:Sprite;
private var nameContainer:Shape;
private var numberContainer:Shape;
private var nameLabel:Label;
private var numberLabel:Label;

// Styles from parent game-header
private var backgroundFill:Class;
private var backgroundColour:int;
private var padding:int;

private var nameHeight:int = 28;
private var ratingHeight:int = 26;
private var nameBackground:BitmapData;
private var _nameText:String = "";
private var _numberText:String = "";

public function get nameText():String {
return _nameText;
}

public function ChessCubeGameHeaderPanel(backgroundFill:Class,
backgroundColour:int, fontColour:int, ratingFontColour:int,
imageWidth:int, padding:int){
super();
this.backgroundFill = backgroundFill;
this.backgroundColour = backgroundColour;
this.fontColour = fontColour;
this.ratingFontColour = ratingFontColour;
this.imageWidth = imageWidth;
this.padding = padding;
}

override protected function createChildren() : void {
super.createChildren();

if(!nameContainer) {
nameContainer = addChild(new Shape()) as Shape;
}
if(!numberContainer) {
numberContainer = addChild(new Shape()) as Shape;
}
if(!nameLabel) {
nameLabel = addChild(new Label()) as Label;
nameLabel.truncateToFit = true;
nameLabel.setStyle("color", fontColour);
}
if(!numberLabel) {
numberLabel = addChild(new Label()) as Label;
numberLabel.setStyle("color", ratingFontColour);
}

nameBackground = new BitmapData(nameHeight, nameHeight, false)
nameBackground.draw(new backgroundFill());

nameLabel.x = numberLabel.x = padding;
}

override protected function commitProperties():void {
super.commitProperties();

nameLabel.text = _nameText;
numberLabel.text = _numberText;
}

override protected function measure():void {
super.measure();

measuredWidth = measuredMinWidth = explicitWidth;
measuredHeight = measuredMinHeight = ((progress == null) ?
explicitWidth : progress.height) + nameHeight + ratingHeight;
}

override protected function updateDisplayList( unscaledWidth:Number,
unscaledHeight:Number ):void {
super.updateDisplayList(unscaledWidth, unscaledHeight);

nameContainer.graphics.clear();
nameContainer.graphics.beginBitmapFill(nameBackground);
nameContainer.graphics.drawRect(0, 0, explicitWidth, 
nameHeight);
nameContainer.graphics.endFill();

numberContainer.graphics.clear();
numberContainer.graphics.beginFill(backgroundColour);
numberContainer.graphics.drawRect(0, 0, explicitWidth, 
ratingHeight);
numberContainer.graphics.endFill();

var playerWidth:Number = unscaledWidth;
if(playerWidth == 0) {
playerWidth = nameLabel.measuredWidth;
}
else {
playerWidth = Math.min(unscaledWidth, 
nameLabel.measuredWidth)
}
nameLabel.setActualSize(playerWidth, nameLabel.measuredHeight);
numberLabel.setActualSize(numberLabel.measuredWidth,
numberLabel.measuredHeight);

if(progress != null) {
progress.x = explicitWidth/2 - progress.width/2;
 

Re: [flexcoders] What files should be in the WEB-INF/flex directory to dynamically compile

2008-07-16 Thread Tom Chiverton
On Tuesday 15 Jul 2008, Andrew Longley wrote:
> I'm trying to migrate the app to Flex 3 and I need to understand what
> files need to go where for the app to dynamically recompile.

There's a 'web tier compiler' in the Flex 3 SDK, and plenty of docs on the 
web. Don't try and figure this out blind.

> Bottom line, I'm looking for a Flex 3 project that compiles
> dynamically when deployed under a web app server, or information
> towards that end.  Thanks for any help.

Why ? 
Almost always off-line compilation is what is best.

-- 
Tom Chiverton



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. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

<*> Your email settings:
Individual Email | Traditional

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

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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



Re: [flexcoders] BlazeDS and Flex

2008-07-16 Thread Tom Chiverton
On Monday 14 Jul 2008, celumbra wrote:
> First, all the examples I find have the BlazeDS running locally, but  I am
> assuming that I can develop Flex on my mac laptop, while BlazeDS is on a
> remote server. Is this accurate?

You could, but it's easier to have a complete dev. environment locally.

> much more about BlazeDS. It will relay the data without my constant
> intervention. Is this a correct assumption?

More or less. Depending on the details the server code may need to notify 
BlazeDS that a table has been altered.

-- 
Tom Chiverton



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. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

<*> Your email settings:
Individual Email | Traditional

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

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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



Re: [flexcoders] Re: Flex blog topics - what should I write about?

2008-07-16 Thread Tom Chiverton
On Monday 14 Jul 2008, andrii_olefirenko wrote:
> posting to see if it's already widely known. I read many blogs and 90%
> of the bloggers just rediscovering a bicycle again. 

Also, don't just write an article that has a c+p of an announcement from Adobe 
in.
For instance, when Flex 4 comes out, I don't want to read 200 articles all 
saying nothing but 'Flex 4 is out'.

-- 
Tom Chiverton



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. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

<*> Your email settings:
Individual Email | Traditional

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

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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



Re: [flexcoders] html component, different profile (means of firefox)

2008-07-16 Thread Tom Chiverton
On Friday 11 Jul 2008, yigit boyar wrote:
> I tried giving distinct userAgent values but it did not work.

Use IE/Safari and FireFox ?
Use a virtual machine ?

-- 
Tom Chiverton



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. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

<*> Your email settings:
Individual Email | Traditional

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

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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



Re: [flexcoders] Re: Please, help: the release player displays a blank page in all browsers.

2008-07-16 Thread Tom Chiverton
On Wednesday 16 Jul 2008, wiley_jacobs1 wrote:
> I'm having he same issue, it's been going on for 6 months. For me, the
> loader doesn't even come up with the regular player, it's just the blue
> background background. Does anybody have a solution for this? The debug
> player works fine 

And there are no errors thrown or warnings trace()'ed at run time with the 
debug player ?
No compiler warnings ?
Does a simple test app also have this problem ? Using the command line 
compiler or Builder ?

-- 
Tom Chiverton



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. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

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

<*> Your email settings:
Individual Email | Traditional

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

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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



Re: [flexcoders] flex testing

2008-07-16 Thread Rajan Jain
Try
http://code.google.com/p/visualflexunit/


- Original Message 
From: phil swenson <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 16, 2008 12:59:56 AM
Subject: [flexcoders] flex testing


Any thoughts on testing the Flex UI?  I tried FunFX, but it crashed immediately 
after lanching safari (I'm on a mac).

After looking at FlexSPY, it seems to me that it should be possible to do flex 
testing without native code.

any thoughts?
 


  

[flexcoders] LineChart and Log Axis does not work

2008-07-16 Thread ilikeflex

Hi

I am trying to use LogAxis with the LineChart. I have attached the piece
of code. If i change the axis to Linear Axis it works but if i change to
LogAxis it fails. Can anybody let me know why

Just copy paste the code and u will see problem.

Thanks
ilikeflex



http://www.adobe.com/2006/mxml
 ">


































Re: [flexcoders] Navigating from flex to jsp page

2008-07-16 Thread Sid Maskit
Once you've loaded the flex movie, it would seem to me to make more sense to 
treat it as in control, and treat the servlet as a service for the flex movie. 
I would set up a handler for when the servlet returns, and have the servlet 
return some value which tells the flex movie what to do. It could return a URL 
which the flex movie could then navigate to, or it could return an empty string 
in which case the flex movie would do nothing. If you wanted to make it a 
little more secure, you could hard code a default URL into the flex movie, and 
have it navigate there unless it received a message telling it to do something 
else. That way it would default to unloading itself, and would only stick 
around if the servlet told it that was OK.

Hope that helps.




- Original Message 
From: gaurav1146 <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 15, 2008 10:17:10 PM
Subject: [flexcoders] Navigating from flex to jsp page


I have a flex application that loads as soon as a user hits a url. Now
this application has a creationComplete method which makes a call to a
java servlet. In the servlet (/servlet filter) I perform certain
authorization checks and if the check fails I want to navigate the
user to a jsp page.

I tried using  the forward method of java's RequestDisptacher class
but once the flex application has loaded this does not seem to work
and the user is not taken to the jsp page. Also I cannot use Flex's
navigateToURL because  jsp redirection is conditional based on
authorization checks in my servlet. Please let me know on how to go
about it.

TIA 
Gaurav




  

Re: [flexcoders] function foo(... args) { ;}

2008-07-16 Thread Sid Maskit
args is already an array:

function foo(... args) 
{
for (var i:int = 0; i < args.length; i++)
{
trace(i + ": " + args[i]);
}
}



- Original Message 
From: Manu Dhanda <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 15, 2008 11:17:12 PM
Subject: RE: [flexcoders] function foo(... args) { ;}



You mean to say:
function foo(... args) 
{
var myArgs:Array = Array(args);
}

Am I right here??

Thanks,
Manu.

Rick Winscot-2 wrote:
> 
> You can treat args as an array.
> 
> 
> 
> Rick Winscot
> 
> 
> 
> 
> 
> From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On
> Behalf Of Manu Dhanda
> Sent: Wednesday, July 16, 2008 1:56 AM
> To: [EMAIL PROTECTED] ups.com
> Subject: [flexcoders] function foo(... args) { ;}
> 
> 
> 
> 
> How to access the parameters passed in the function like this:
> 
> function foo(... args) 
> {
> // How to access the passed arguments here.
> }
> 
> Thanks.
> -- 
> View this message in context:
> http://www.nabble. com/function- foo%28... -args%29- %7B--%7D- 
> tp18480729p18480 72
> 9.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
> 
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble. com/function- foo%28... 
-args%29- %7B--%7D- tp18480729p18480 961.html
Sent from the FlexCoders mailing list archive at Nabble.com.




  

RE: [flexcoders] Re: questionfor AdvancedDataGrid?

2008-07-16 Thread Gregor Kiddie
Wow, that was an old thread!

 

No problem, glad it helped.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

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

Registered Number: 1788577

Registered in the UK

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

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



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jwolff12345
Sent: 15 July 2008 22:28
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: questionfor AdvancedDataGrid?

 

For this to work, the CollectionEventKind.REFRESH should be changed to
CollectionEventKind.RESET. The adobe bug link mentions this.

Thanks for this solution. It saved me a lot of time.

jwolff





[flexcoders] Re: Custom Components - updateDisplay results in ghost children drawn

2008-07-16 Thread polestar11
Thanks Josh

This example was a simple case. What I actually want to is have my
component behave like a container where it centres its child items. In
retrospect I would have to extend from the Container class. 

The absoulte size would fix the problem (in that the item re-draws
would occur underneath each other & would not be visible). I was just
worried that I was getting a lot of outdated screen objects that
aren't being cleaned up when drawing underneath each other. But I
suppose it's only 1 graphics layer.

Cheers
Tracy



--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> Components don't set explicitWidth and explicitHeight on themselves,
they're
> (optionally) set by the container, and actual sizing is set by the
container
> through setActualSize().
> 
> Override measure(), and set measuredWidth and measuredHeight to
match your
> label, and your problems may go away. Also in updateDisplayList you
want to
> set the actual size of the label to the minimu of it's measured size and
> unscaledWidth x unscaledHeight.
> 
> -Josh

>




[flexcoders] Re: Performance, Event Listeners and removedFromStage

2008-07-16 Thread polestar11
Is there any other way / event to completely remove events instead of
using the removedFromStage event?

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Weak refs work.  You can rely on them, but not count on when an object
> will finally go away.
> 
>  
> 
> removedFromStage probably happens when we re-parent to move a child into
> a scrollable sub-container.
> 
>  
> 




<    1   2