[flexcoders] Accordion click event issue

2009-02-05 Thread Vik
Hie
I am using an accordion with three vbox inside it.
The problem is when i click on any of the accordion it does not invoke the
click event.

My code is like:

 
  


  
 
  


the click event does not work on the VBox with lable last 2 days. However,
it works if i copy the click stuff to the button inside
it.

Any idea why? and how to fix


Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


RE: [flexcoders] Tables in Rich Text Editor

2009-02-05 Thread Gordon Smith
The Halo RichTextEditor component will never support tables; it is based on the 
Player's TextField, and the Player team has no plans to improve TextField. 
Instead, the Player team has provided, in Flash Player 10, an entirely new text 
engine known as FTE (Flash Text Engine) on top of which a Text Layout Framework 
(TLF) library is being developed. Gumbo components -- including the new 
FxTextArea -- use TLF to do their text rendering. And we're working on making 
it possible for Halo components to also get some TLF capabilities.

The first version of TLF, which will ship with Gumbo, will support cool stuff 
like bidirectional text (for right-to-left languages like Arabic and Hebrew 
mixed together with left-to-right languages), virtualized scrolling (so that 
you can scroll through large amounts of text without requiring too much 
memory), multiple columns, vertical Asian text, embedded graphics, 
superscripts/subscripts, ligatures, a better markup language, and a text object 
model, but… it will unfortunately not support lists or tables. : (

Lists and tables are scheduled for a future release of TLF, after Flex 4. The 
good news is that new versions of the TLF library will be able to be released 
more quickly and easily than new versions of the Player, so you shouldn't have 
to wait too long for improvements.

Discussions are also underway about open-sourcing TLF, or at least making its 
source available, in which case you could try implementing tables yourself if 
you are very ambitious.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Igor Costa
Sent: Saturday, January 31, 2009 7:29 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Tables in Rich Text Editor


Jeroen

Open a feature request at Flex Bug Base. So far doesn't have any.


Regards
Igor Costa
www.igorcosta.org

2008/12/18 Jeroen De Vos 
mailto:jeroen.de...@haven.antwerpen.be>>
Hi,

Perhaps one of the most asked questions on the list: when will the Rich Text 
Editor support tables?

I had high hopes with Flash Player 10 and the Text Layout Framework, but alas, 
no tables.

Anyone has any luck extending the RTE to support tables?

Thanks,
Jeroen.

Jeroen De Vos
C/ICT - Amaris


  
Deze e-mail en alle gekoppelde bestanden zijn officiele documenten van het 
Gemeentelijk Havenbedrijf Antwerpen en kunnen vertrouwelijke of persoonlijke 
informatie bevatten. Gelieve de afzender onmiddellijk via e-mail of telefonisch 
te verwittigen als u deze e-mail per vergissing heeft ontvangen en verwijder 
vervolgens de e-mail zonder deze te lezen, te reproduceren, te verspreiden of 
te ontsluiten naar derden. Het Gemeentelijk Havenbedrijf Antwerpen is op geen 
enkele manier verantwoordelijk voor fouten of onnauwkeurigheden in de inhoud 
van deze e-mail. Het Gemeentelijk Havenbedrijf Antwerpen kan niet aansprakelijk 
gesteld worden voor directe of indirecte schade, verlies of ongemak veroorzaakt 
als gevolg van een onnauwkeurigheid of fout in deze
e-mail.

English Translation: This e-mail and all attached files are official documents 
of Antwerp Port Authority and may contain confidential or personal information. 
If you have received this e-mail in error, you are asked to inform the sender 
by e-mail or telephone immediately, and to remove it from your system without 
reading or reproducing it or passing it on to other parties. Antwerp Port 
Authority is in no way responsible for any errors or inaccuracies in the 
contents of this e-mail, nor can it be held liable for any direct or indirect 
loss, damage or inconvenience arising from any such errors or inaccuracies.



--

Igor Costa
www.igorcosta.com
www.igorcosta.org



Re: [flexcoders] Flex RegExp issues

2009-02-05 Thread Guy Morton

In regexp syntax, "." means "match any character"

On 06/02/2009, at 1:37 PM, Manu Dhanda wrote:



Hi Guyz,
I am having this particular issue and at the moment not able to come  
out

with a solution.
Any help or direction to solution would be great.

var someStr:String = "12-88";
var str:String = "12.88";
var bool:Boolean = someStr.match(new RegExp("str",'i');

Here, the match returns true.
I don't understand why "-" is being matched to "." returning TRUE.

-Manu.
--
View this message in context: 
http://www.nabble.com/Flex-RegExp-issues-tp21865562p21865562.html
Sent from the FlexCoders mailing list archive at Nabble.com.







[flexcoders] Re: Adding styles to UIComponents

2009-02-05 Thread superbokbok
--- In flexcoders@yahoogroups.com, "Amy"  wrote:
>
> --- In flexcoders@yahoogroups.com, "superbokbok"  
> wrote:
> >
> > 
> > > http://livedocs.adobe.com/flex/3/html/skinstyle_3.html
> > > 
> > > There's no reason you can't call your style "backgroundImage."
> > >
> > Nice link :) I tried to implement code as per the examples in the link
> > page, but the problem is I can never get an image to show as the
> > background of a UIComponent! This would let me alter the image based
> > on different stylesheets which are loaded at runtime. 
> > 
> > The way I do it now, I add an HBox to a UIComponent and set that as
> > the bkg and add the styleName to that. I must be missing something
> > somewhere to enable a background image on a UIComponent. Again the
> > reason for using a UIComponent is that it's lighter.
> 
> Yes, there's no advantage to wrapping an HBox in a UIComponent.  If 
> you're up for some code, you could pull in HaloBorder and use that.  It 
> simplifies adding container-like styles to a UIcomponent.
> 
> You could also just use a Loader and load the image into that, based on 
> the style.
> 
> That example was just the tip of the iceberg of what's possible to do--
> you need to use your creativity and research skills to figure out how 
> to make the specific thing you're aiming for happen.
> 
> If you don't feel you're ready for that, I'd use a Canvas with 
> constraint based layouts.  That's at least lighter than HBox.
> -Amy
>
Hmm..never though of using HaloBorder!! nice! i'll give it a whirl!
as always thank you for your advice(and your flex blog ;)
cheers
erick



[flexcoders] Re: Adding styles to UIComponents

2009-02-05 Thread superbokbok
--- In flexcoders@yahoogroups.com, Josh McDonald  wrote:
>
> UIComponent doesn't have any code for drawing background images. If
you want
> a background image without the overhead of using a Container such as
Box,
> you'll have to build a subclass of UIComponent that does. Or simply
add an
> Image as the first child of your UIComponent. Are you extending
UIComponent,
> or just instantiating them because you want someplace to put an image?
> 
> -Josh
> 
> On Thu, Feb 5, 2009 at 5:13 PM, superbokbok  wrote:
> 
> >
> > > http://livedocs.adobe.com/flex/3/html/skinstyle_3.html
> > >
> > > There's no reason you can't call your style "backgroundImage."
> > >
> > Nice link :) I tried to implement code as per the examples in the link
> > page, but the problem is I can never get an image to show as the
> > background of a UIComponent! This would let me alter the image based
> > on different stylesheets which are loaded at runtime.
> >
> > The way I do it now, I add an HBox to a UIComponent and set that as
> > the bkg and add the styleName to that. I must be missing something
> > somewhere to enable a background image on a UIComponent. Again the
> > reason for using a UIComponent is that it's lighter.
> >
> > sorry for the rant :(
> > cheers
> > erick
> >
> >  
> >
> 
> 
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
> 
> Josh 'G-Funk' McDonald
>   -  j...@...
>   -  http://twitter.com/sophistifunk
>   -  http://flex.joshmcdonald.info/
>
I actually extend the UIComponent in my apps for specific purposes. 
I'll try applying some code that'll let me change the bkg Image
through a css sheet at runtime.  I guess I could also try adding an
image and applying a styleName to that component directly which would
be modified through CSS.
Thx for the suggestion!
cheers
erick



[flexcoders] Re: Problem in Streaming Live data using Flash Media Server

2009-02-05 Thread akila_ksri
Yes, you are right it resides in the same directory as my application

--- In flexcoders@yahoogroups.com, Nate Beck  wrote:
>
> When you say... "present in the same directory".. which directory 
are you
> referring to?  The FLV file resides in the same directory as your
> application?
> It's been a while since I've used FMS... but in Wowza Media Server 
there is
> an audio folder where all of the stream FLV files are located.
> 
> On Thu, Feb 5, 2009 at 4:47 AM, akila_ksri  wrote:
> 
> >   I have the client application and the FMS running on the same 
machine,
> > the client app connects to the server successfully but fails to 
play
> > any content(Pre-recorded flv/swf) which is also present in the 
same
> > directory using NetStream.play("contentPath"); and i always get
> > "NetStream.Play.StreamNotFound"
> > Could anyone tell me if i am doing anything wrong?
> >
> > Any help would be greatly appreciated.
> >
> > Thanks in advance,
> > Akila
> >
> >  
> >
> 
> 
> 
> -- 
> 
> Cheers,
> Nate
> 
> http://blog.natebeck.net
>





Re: [flexcoders] Adobe Presentation Tool

2009-02-05 Thread Sam Lai
Meanwhile, sliderocket.com ?

2009/2/6 Erich Cervantez :
> So I saw Evan Gifford give a flash component kit lecture at Flex Camp
> in Orange County last weekend and he used the beta version of Adobe
> Presentation Tool and it was wicked.
>
> Problem is I can't find any mention of it anywhere except on Andrew
> Shorten's blog (here's a screenshot:
> http://www.ashorten.com/wp-content/uploads/2008/06/air-presentation.jpg).
>
> Is this for internal Adobe use only or...?
>
> I WANT IT!
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>


[flexcoders]Thoughts on the Flex Community Feedback meeting

2009-02-05 Thread dorkie dork from dorktown
Here are some random thoughts on the topics in Flex Community Feedback
meeting. I wasn't able to attend but was able to watch the video.

These are the most pressing issues with Flex development and I have to speak
my mind on this so we can come up with solutions:

Fixing Bugs
IMHO The number one frustrating thing for me in Flex development is when I'm
working on a project and I come across a bug I can't fix myself. What we are
supposed to do is to submit a bug report. At first I thought I was doing
something good when I submitted over 60 bugs in the Flex 3 beta over almost
2 years ago. I watched as 99% of them were deferred or closed. I thought it
was just me but it wasn't. Now as Flex 4 or Flex 5 is getting reviewed all
the bugs have been opened again and now they are getting closed one after
another in the same closed process as before. This tells me, "my issues
aren't important to adobe" and not having the access to Flex Builder or the
Flash Player and not having the in-depth training of the SDK they will never
get fixed!


Voting might have been a good idea at the start but now it is very clear
that this is DOES NOT WORK because issues that don't get enough votes will
NEVER get fixed. I thought that with the voting system the highest voted
bugs would get fixed first and then the remaining bugs would get fixed after
that but that is NOT THE CASE. Bugs are NEVER getting fixed. Listen, bugs
HAVE to get fixed! In my software and my projects if I have a bug I fix it!
I don't close it, I'm not going to debate about if I should fix it, I don't
have the community vote on *if* it should get fixed, I FIX IT!!! And when
people depend on software or an SDK as the foundation of a project you fix
the bugs. I've worked at numerous software companies, Roxio, Parsons
Technology, Intuit, Yellowbook and I've run my own software company for many
years and we support our users by fixing the bugs as fast as we can. With
features its different but with bugs in software people depend on it is a
rule they have to get fixed. 

IMHO Voting should promote bugs but not defer them and NEVER close them.
When you close a bug it actually feels like someone is closing my project
(and some of my projects have been my dreams - sniff sniff). It feels like
I'm getting punched in the nuts. I have a suggestion. Put someone, just one
person, or a group of developers together and go through and fix the bugs
one by one irregardless of votes or if it fits in the roadmap. If these can
be addressed by the community than great. Leverage that. Put that list of
bugs up on a page so we can see where they are and track their progress. But
be aware that the community can't help if it has to do with the Flash
Player, Flash Catalyst or Flex Builder. What options do we have for this?

More in depth Training
The community can't help if there isn't the education on the inner workings
of the framework.

Community Involvement
I think the open initiative is a good start. So let's say we want a better
rich text editor in the next version of Flex. How do we do this? How do we
make it happen?

Best Regards,
- j


[flexcoders] Flex RegExp issues

2009-02-05 Thread Manu Dhanda

Hi Guyz,
I am having this particular issue and at the moment not able to come out
with a solution.
Any help or direction to solution would be great.

var someStr:String = "12-88";
var str:String = "12.88";
var bool:Boolean = someStr.match(new RegExp("str",'i');

Here, the match returns true.
I don't understand why "-" is being matched to "." returning TRUE.

-Manu.
-- 
View this message in context: 
http://www.nabble.com/Flex-RegExp-issues-tp21865562p21865562.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: AxisRenderer Embedded Font Bug?

2009-02-05 Thread Darrell Loverin

What version of dataviz and the framework are you using?


-Darrell

--- In flexcoders@yahoogroups.com, "Battershall, Jeff"
 wrote:
>
> Daniel,
> 
> OK its an RSL issue. When I have the dataviz and framework merged into
> code, everything renders correctly.  When I'm referencing them as RSL
> URLs, the fonts don't render properly in the AxisRenderer (for vertical
> axes).  
> 
> I had run into this previously and the workaround is/was to merge it all
> into code with the commensurate increase in file size.  
> 
> Jeff
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Battershall, Jeff
> Sent: Thursday, February 05, 2009 8:54 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Re: AxisRenderer Embedded Font Bug?
> 
> 
> Daniel,
> 
> It's bizarre - I enumerated the fonts in the document (TitleWindow) and
> they are there but aren't displaying in the AxisRenderer. The fonts ARE
> rendering in other parts of the document. I'm wondering whether I have
> the latest datavis build or something weird like that.
> 
> Jeff
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Darrell Loverin
> Sent: Thursday, February 05, 2009 7:37 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: AxisRenderer Embedded Font Bug?
> 
> 
> The problem sounds like it might be this bug 
> https://bugs.adobe.com/jira/browse/FLEXDMV-1883 which was fixed in 
> Flex 3.2.
> 
> 
> -Darrell
> 
> --- In flexcoders@yahoogroups.com, "Battershall, Jeff" 
>  wrote:
> >
> > Additional info - the chart is in a TitleWindow.  There seems to
> be a
> > lot of posts about this and similar issues with charts within
> modules,
> > etc.  I just haven't been able to get the "magic incantation" that
> will
> > make the fonts render.  I could just say "f-it" and render the
> labels
> > using device fonts and without rotation, but that kinda runs
> against the
> > grain, if you know what I mean.
> > 
> > Jeff
> > 
> > -Original Message-
> > From: flexcoders@yahoogroups.com
> [mailto:flexcod...@yahoogroups.com] On
> > Behalf Of Battershall, Jeff
> > Sent: Thursday, February 05, 2009 2:36 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] AxisRenderer Embedded Font Bug?
> > 
> > 
> > I've got a vertical axis with an axisrenderer and I'm trying to
> rotate
> > the labels 90 degrees.  I'm referring to a font embedded in a
> > stylesheet. The labels won't display - it appears that room is
> being
> > made for the labels to appear, but the labels aren't getting
> rendered.
> > 
> > I'm using MyriadWebPro as the embedded font and I've also tried
> this
> > with Arial with the same results. I've also tried this with no
> label
> > rotation at all - but no dice.  If I stipulate a font family
> including
> > device fonts, the labels will render, but no rotation is
> available. 
> > 
> > Has anyone seen this?
> > 
> > Jeff Battershall
> > Application Architect
> > Dow Jones Indexes
> > jeff.battershall@
> > (609) 520-5637 (p)
> > (484) 477-9900 (c)
> > 
> > 
> > 
> > 
> > --
> > Flexcoders Mailing List
> > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location:
> > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-
> b4cf-
> > 1e62079f6847
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
> Groups
> > Links
> >
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
> 1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
> 
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
> 1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>




RE: [flexcoders] Re: AxisRenderer Embedded Font Bug?

2009-02-05 Thread Battershall, Jeff
Daniel,

OK its an RSL issue. When I have the dataviz and framework merged into
code, everything renders correctly.  When I'm referencing them as RSL
URLs, the fonts don't render properly in the AxisRenderer (for vertical
axes).  

I had run into this previously and the workaround is/was to merge it all
into code with the commensurate increase in file size.  

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Battershall, Jeff
Sent: Thursday, February 05, 2009 8:54 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: AxisRenderer Embedded Font Bug?


Daniel,

It's bizarre - I enumerated the fonts in the document (TitleWindow) and
they are there but aren't displaying in the AxisRenderer. The fonts ARE
rendering in other parts of the document. I'm wondering whether I have
the latest datavis build or something weird like that.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Darrell Loverin
Sent: Thursday, February 05, 2009 7:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: AxisRenderer Embedded Font Bug?


The problem sounds like it might be this bug 
https://bugs.adobe.com/jira/browse/FLEXDMV-1883 which was fixed in 
Flex 3.2.


-Darrell

--- In flexcoders@yahoogroups.com, "Battershall, Jeff" 
 wrote:
>
> Additional info - the chart is in a TitleWindow.  There seems to
be a
> lot of posts about this and similar issues with charts within
modules,
> etc.  I just haven't been able to get the "magic incantation" that
will
> make the fonts render.  I could just say "f-it" and render the
labels
> using device fonts and without rotation, but that kinda runs
against the
> grain, if you know what I mean.
> 
> Jeff
> 
> -Original Message-
> From: flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com] On
> Behalf Of Battershall, Jeff
> Sent: Thursday, February 05, 2009 2:36 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] AxisRenderer Embedded Font Bug?
> 
> 
> I've got a vertical axis with an axisrenderer and I'm trying to
rotate
> the labels 90 degrees.  I'm referring to a font embedded in a
> stylesheet. The labels won't display - it appears that room is
being
> made for the labels to appear, but the labels aren't getting
rendered.
> 
> I'm using MyriadWebPro as the embedded font and I've also tried
this
> with Arial with the same results. I've also tried this with no
label
> rotation at all - but no dice.  If I stipulate a font family
including
> device fonts, the labels will render, but no rotation is
available. 
> 
> Has anyone seen this?
> 
> Jeff Battershall
> Application Architect
> Dow Jones Indexes
> jeff.battersh...@...
> (609) 520-5637 (p)
> (484) 477-9900 (c)
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-
b4cf-
> 1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
Groups
> Links
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links





[flexcoders] Re: Complicated form layout

2009-02-05 Thread mmormando
--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> An HBox in a Form is a very different thing than a Form in an HBox.
> 
>  
> 
> A container is going to layout its children according to is own rules.
> You can't expect it to alter those rules depending upon its parent.  
> 
> Tracy Spratt 
> Lariat Services 

Assuming these are done with styles, is there any cascading in these
styles? I would think that a child would conform to the styles of its
parent. I mean they put the "C" in "CSS" for a reason. I've already
noticed that any styles declared against, say a ComboBox, don't seem
to apply to any OO descendants of combobox. So do we need to rename
Flex stylesheets from css to just ss? I acknowledge the fact that this
is indeed the way things are, but I feel that it more likely a naive
implementation of cascading styles rather than a deliberate decision.
Just like the problem with certain global resources in modules, like
the resourcemanager, might go missing at odd moments unless you do
certain things, it is the way it is, but that doesn't make it any less
a bug, nor does it make it a thing that shouldn't be fixed.
Ok, deep breath...thank you very much for your reply. I agree that it
is most probably my misconception in this case that just because when
I apply a style to xml, or html, or xhtml, a container sure does alter
its rules based on those of its parent, again based on the little "c"
in "css", it is wrong of me to assume that mxml would react the same
way, or that anyone would feel a need to either make it consistent
with the rest of the world or document the difference anywhere. But
you've been kind in making a reply to me, again, thank you.



RE: [flexcoders] Re: AxisRenderer Embedded Font Bug?

2009-02-05 Thread Battershall, Jeff
Daniel,

It's bizarre - I enumerated the fonts in the document (TitleWindow) and
they are there but aren't displaying in the AxisRenderer. The fonts ARE
rendering in other parts of the document. I'm wondering whether I have
the latest datavis build or something weird like that.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Darrell Loverin
Sent: Thursday, February 05, 2009 7:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: AxisRenderer Embedded Font Bug?


The problem sounds like it might be this bug 
https://bugs.adobe.com/jira/browse/FLEXDMV-1883 which was fixed in 
Flex 3.2.


-Darrell

--- In flexcoders@yahoogroups.com, "Battershall, Jeff" 
 wrote:
>
> Additional info - the chart is in a TitleWindow.  There seems to
be a
> lot of posts about this and similar issues with charts within
modules,
> etc.  I just haven't been able to get the "magic incantation" that
will
> make the fonts render.  I could just say "f-it" and render the
labels
> using device fonts and without rotation, but that kinda runs
against the
> grain, if you know what I mean.
> 
> Jeff
> 
> -Original Message-
> From: flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com] On
> Behalf Of Battershall, Jeff
> Sent: Thursday, February 05, 2009 2:36 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] AxisRenderer Embedded Font Bug?
> 
> 
> I've got a vertical axis with an axisrenderer and I'm trying to
rotate
> the labels 90 degrees.  I'm referring to a font embedded in a 
> stylesheet. The labels won't display - it appears that room is
being
> made for the labels to appear, but the labels aren't getting
rendered.
> 
> I'm using MyriadWebPro as the embedded font and I've also tried
this
> with Arial with the same results. I've also tried this with no
label
> rotation at all - but no dice.  If I stipulate a font family
including
> device fonts, the labels will render, but no rotation is
available. 
> 
> Has anyone seen this?
> 
> Jeff Battershall
> Application Architect
> Dow Jones Indexes
> jeff.battersh...@...
> (609) 520-5637 (p)
> (484) 477-9900 (c)
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-
b4cf-
> 1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
Groups
> Links
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links





Re: [flexcoders] multiple select in List w/o holding ctrl key?

2009-02-05 Thread Doug McCune
I wrote this a few years ago, might be what you're looking for:
http://dougmccune.com/blog/2007/04/01/list-control-for-the-one-armed-man-take-two/

Doug

On Thu, Feb 5, 2009 at 4:50 PM, coder3  wrote:

>
> Hi All,
>
> I have a mx:List that allows multipleSelection. It works. But in order to
> do
> multiple select/unselect, i need to hold the Ctrl key, otherwise, it will
> be
> single select/unselect.
>
> Is there a way to do the multiple select w/o holding the Ctrl Key?
>
> Thanks
> C
> --
> View this message in context:
> http://www.nabble.com/multiple-select-in-List-w-o-holding-ctrl-key--tp21864541p21864541.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
>  
>


Re: [flexcoders] Login / Password Form

2009-02-05 Thread anuj sharma
I made something like that where I use Flex to develop my UI and store the
login info in XML file on the server.
To read and write data to that xml file I use server side language PHP
though amfPHP , Encryption can be done using action script library as3crypto
but in my project we use
JavaScript and PHp for encrytping these credentials on the wire (through the
network).
Hope that might help you
Anuj

On Thu, Feb 5, 2009 at 12:17 PM, Alan K  wrote:

>   No, you can use a PHP file, for example, to hold and check against.
>
>
> >Hello,
> >I am searching a code source exemple for a classical login / password
> >form in a flex application.
> >Did I need absolutely a database to store Passwords ?
> >Thank you,
> >Christophe,
>
>  
>


Re: [flexcoders] Adobe Presentation Tool

2009-02-05 Thread Matt Chotin
It's an internal use only project but I'm not sure it's even being worked on 
right now.  I'll be honest, not exactly ready for prime time last I saw it...


On 2/5/09 4:38 PM, "Erich Cervantez"  wrote:




So I saw Evan Gifford give a flash component kit lecture at Flex Camp
in Orange County last weekend and he used the beta version of Adobe
Presentation Tool and it was wicked.

Problem is I can't find any mention of it anywhere except on Andrew
Shorten's blog (here's a screenshot:
http://www.ashorten.com/wp-content/uploads/2008/06/air-presentation.jpg).

Is this for internal Adobe use only or...?

I WANT IT!







[flexcoders] multiple select in List w/o holding ctrl key?

2009-02-05 Thread coder3

Hi All,

I have a mx:List that allows multipleSelection. It works. But in order to do
multiple select/unselect, i need to hold the Ctrl key, otherwise, it will be
single select/unselect. 

Is there a way to do the multiple select w/o holding the Ctrl Key?

Thanks
C 
-- 
View this message in context: 
http://www.nabble.com/multiple-select-in-List-w-o-holding-ctrl-key--tp21864541p21864541.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Adobe Presentation Tool

2009-02-05 Thread Erich Cervantez
So I saw Evan Gifford give a flash component kit lecture at Flex Camp
in Orange County last weekend and he used the beta version of Adobe
Presentation Tool and it was wicked.

Problem is I can't find any mention of it anywhere except on Andrew
Shorten's blog (here's a screenshot:
http://www.ashorten.com/wp-content/uploads/2008/06/air-presentation.jpg).

Is this for internal Adobe use only or...?

I WANT IT!



[flexcoders] Re: AxisRenderer Embedded Font Bug?

2009-02-05 Thread Darrell Loverin
The problem sounds like it might be this bug 
https://bugs.adobe.com/jira/browse/FLEXDMV-1883 which was fixed in 
Flex 3.2.


-Darrell

--- In flexcoders@yahoogroups.com, "Battershall, Jeff" 
 wrote:
>
> Additional info - the chart is in a TitleWindow.  There seems to 
be a
> lot of posts about this and similar issues with charts within 
modules,
> etc.  I just haven't been able to get the "magic incantation" that 
will
> make the fonts render.  I could just say "f-it" and render the 
labels
> using device fonts and without rotation, but that kinda runs 
against the
> grain, if you know what I mean.
> 
> Jeff
> 
> -Original Message-
> From: flexcoders@yahoogroups.com 
[mailto:flexcod...@yahoogroups.com] On
> Behalf Of Battershall, Jeff
> Sent: Thursday, February 05, 2009 2:36 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] AxisRenderer Embedded Font Bug?
> 
> 
> I've got a vertical axis with an axisrenderer and I'm trying to 
rotate
> the labels 90 degrees.  I'm referring to a font embedded in a
> stylesheet. The labels won't display - it appears that room is 
being
> made for the labels to appear, but the labels aren't getting 
rendered.
> 
> I'm using MyriadWebPro as the embedded font and I've also tried 
this
> with Arial with the same results. I've also tried this with no 
label
> rotation at all - but no dice.  If I stipulate a font family 
including
> device fonts, the labels will render, but no rotation is 
available. 
> 
> Has anyone seen this? 
> 
> Jeff Battershall
> Application Architect
> Dow Jones Indexes
> jeff.battersh...@...
> (609) 520-5637 (p)
> (484) 477-9900 (c)
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-
b4cf-
> 1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups
> Links
>




Re: [flexcoders] Re: Flex Feedback for the Future

2009-02-05 Thread dorkie dork from dorktown
I'd like a real wysiwyg rich text editor with support for images (text
wrapping around an image). I'd like a companion text component that shows
the rich text content correctly. That's what I really really really really
really need.

On Sat, Jan 31, 2009 at 8:30 AM, Igor Costa  wrote:

>   Derrick
>
> Actually you can hack it. Built-in is not good right now because there's a
> lot of implementation in Flash Player 10 and Text Layout and RTE hope will
> rewritten completely
>  But, hold your breath here's a solution http://www.igorcosta.org/?p=217
>
>
> Regards
> Igor Costa
>
>
>
> On Tue, Feb 12, 2008 at 5:17 PM, Don Kerr  wrote:
>
>>   I also vote for RTE enhancements, in general. Better output is key,
>> but I'd also like to see it move more toward a WYSIWYG-like editor
>> like ColdFusion offers. FCK for Flex...basically. And on the display
>> side, something like the AIR HTML component for Flex web appa would be
>> nice.
>> In short, better support for capturing HTML content (authoring,
>> copy/paste, insert images,tables),storing it, and displaying it. Or
>> something equivalent to HTML-like authoring for Content Management apps.
>>
>> A basic simple one would be to automatically convert typed urls to
>> clickable colored links. Right now, my users have to re-highlight the
>> text and set the color. You can't set the url and the color at the
>> same time.
>>
>> Don Kerr
>>
>> "It is true that I said it, but it doesn't have to be truth to you."
>>
>> --- In flexcoders@yahoogroups.com ,
>> "Derrick Anderson"
>>
>>  wrote:
>> >
>> > one of my personal gripes, an RTE that can output valid xhtml.
>> >
>> > i have had to create my own which is a pain- i think it should be
>> built in.
>> >
>> > thanks,
>> > d.
>> >
>> > On Feb 11, 2008 12:50 PM, Joan Lafferty  wrote:
>> >
>> > > As we close up Flex 3 development, the team is evaluating
>> existing Flex
>> > > feedback to figure out what bugs to fix and features to add for
>> the future.
>> > > If you could briefly list some of the key enhancements or bug
>> fixes that you
>> > > would like in the future, please send them along. Also, be sure
>> to vote on
>> > > deferred bugs and feature requests in the public bugbase as we will be
>> > > evaluating those too.
>> > >
>> > >
>> > >
>> > > http://bugs.adobe.com/flex
>> > >
>> > >
>> > >
>> > > Thanks,
>> > >
>> > > Joan Lafferty
>> > >
>> > > Flex SDK QA
>> > >
>> > >
>> >
>>
>>
>
>
> --
> 
> Igor Costa
> www.igorcosta.com
> www.igorcosta.org
>  
>


[flexcoders] AdvancedDataGrid.SelectedItem - ??

2009-02-05 Thread Libby
Hello people, I am messing with an AdvancedDataGrid for the first
time. Have read the Adobe docs and it appears that you can listen for
ITEM_OPEN and ITEM_CLOSE and such and be able to access the current
item. However, they in my case are always null. I am trying to figure
out where in the tree hierarchy the user has clicked the mouse. Could
someone give me a little nudge in the right direction? :)
thanks, Libby
Flex 3.x



[flexcoders] Re: Installing an AIR APP with configuration

2009-02-05 Thread dmkramerica
Did you ever make progress or solve this?


--- In flexcoders@yahoogroups.com, bjorn  wrote:
>
> What's the best practice here? I need my app to know the username of the
> user who install it. So I'm thinking of adding it as a parameter to
the app
> in the installer badge, and then saving it in a properties file
locally in
> the app's directory.
> -- 
> 
> http://www.juicability.com - flex blog
> http://www.nospoiler.com - link to youtube videos without the spoilers
>




Re: [flexcoders] The First Flex Open Iteration Meeting

2009-02-05 Thread Nate Beck
"Fx prefix is an ongoing discussion that will NOT be discussed in this
meeting"

Awesome.

On Thu, Feb 5, 2009 at 2:57 PM, flex_coders  wrote:

>   *When:* February 10th – 10:30am PT / 1:30pm ET / 6:00pm GMT (duration 1
> hour and 15 minutes)
> Find your time zone 
> here.
>
>
> *Where:* via Connect: http://my.adobe.acrobat.com/foi/ (Please enter the
> room as a `guest' using your First and Last name)
>
> We invite you to partake in our iteration kick-off meetings. We'll be
> reviewing decisions made in the last iteration and discussing the upcoming
> iteration – what we'll be working on and open issues. This will be a chance
> for you to give us feedback on these items and to interact with the SDK
> engineering team.
>
> *Agenda*
> 10:30am – 11:15am : Flex team discusses past and future iterations
> 11:15am - 11:45am :  Open up discussion to community for Q&A
>
> *Guidelines*
>
>- Please review the content to be presented (the Open Source 
> sitewill be updated with 
> this information) and post and vote on questions you
>may ahead of time here.
>- We'll only be discussing the SDK - not Builder, Catalyst, Flash
>Player bugs, Obama, or Flash on the iPhone
>- Please keep feedback relevant to this iteration's content.
>- Fx prefix is an ongoing discussion that will NOT be discussed in this
>meeting and will be discussed via the 
> forums
>.
>- If you'd like to dive deep into the implementation of a feature, we'd
>like to discuss this with you. However, given the time constraints of the
>meeting, please mention it during the session and we can continue this
>discussion via the forums.
>
>  
>



-- 

Cheers,
Nate

http://blog.natebeck.net


Re: [flexcoders] How to set up a Flex,coldfusion development enviroment in Flex Builder?

2009-02-05 Thread Jeffry Houser

 Install both Flex Builder and CFEclipse as plugins to the same Eclipse 
install. 

markflex2007 wrote:
> Hi,
>
> I want to use same tool to develop CFML,as and mxml.
>
> Thanks for help.
>
>
> Mark
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>
>   

-- 
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust




Re: [flexcoders] Multiple views of same data

2009-02-05 Thread Paul Andrews
- Original Message - 
  From: Annette Spooner 
  To: flexcoders@yahoogroups.com 
  Sent: Thursday, February 05, 2009 11:18 PM
  Subject: [flexcoders] Multiple views of same data


  Hi,

  I have an application that requires multiple views of the same data. Thus, in 
practice, I would ideally like to have two DataGrids, each with the same 
ArrayCollection as dataProvider, but each sorted differently. I know that 
sorting a DataGrid sorts the underlying dataProvider, so is there any way to 
achieve this without having two copies of the data and having to update the 
second when changes are made to the first.

  Thanks for your help.

  Regards,

  Annette

ListCollectionView.

This link should set you on your way Annette:

http://viconflex.blogspot.com/2006/11/listcollectionview-different.html

Or search the flexcoders archives for ListCollectionView.

Paul


[flexcoders] Multiple views of same data

2009-02-05 Thread Annette Spooner
Hi,

I have an application that requires multiple views of the same data. Thus,
in practice, I would ideally like to have two DataGrids, each with the same
ArrayCollection as dataProvider, but each sorted differently. I know that
sorting a DataGrid sorts the underlying dataProvider, so is there any way to
achieve this without having two copies of the data and having to update the
second when changes are made to the first.

Thanks for your help.

Regards,

Annette



Re: [flexcoders] Re: very strange combobox problem when switching dataproviders

2009-02-05 Thread Pan Troglodytes
Okay, entered as
https://bugs.adobe.com/jira/browse/SDK-19145

if anyone is interested in voting for it or watching it.


On Thu, Feb 5, 2009 at 1:56 PM, kuroiryu42  wrote:

>   Yep its a bug, didn't bother to look it up but if you need a work around
> you could extend and override the combobox collectionChangeHandler
> look for the reset kind and remove the listener at that point.
>
> --- In flexcoders@yahoogroups.com , Pan
> Troglodytes 
> wrote:
>
> >
> > I'm running into something fairly perplexing. Read the following
> code and
> > think of what you'd expect it to do when you click the change
> button. Then
> > run it and click the change button.
> >
> > 
> >  > xmlns:mx="http://www.adobe.com/2006/mxml";
> > layout="vertical"
> > creationComplete="cc()"
> > >
> > 
> > 
> > 
> > 
> > 
> > 
> >
> >
> > What does it do? Well, the combobox changes from saying "b" to "a".
> The
> > trace says the following:
> > before change:
> > c1.selectedIndex: 1
> > c1.selectedItem: b
> >
> > after change:
> > c1.selectedIndex: 0
> > c1.selectedItem: b
> >
> > This is completely baffling. My only guess is that somewhere in the
> guts of
> > combobox or its ancestors, it is registering for changes on a
> dataProvider
> > and not unregistering them when the dataProvider changes. List does not
> > seem to suffer the same problem.
> >
> > If you comment out the ArrayCollection-based version and uncomment the
> > Array-based version, it works as expected.
> >
> > My next stop is a bug report, but I figured it'd be worth bringing up in
> > case anyone already knows of a bug report (kind of hard criteria to
> search
> > for) or a workaround if you need to use ArrayCollections.
> >
> > --
> > Jason
> >
>
>  
>



-- 
Jason


[flexcoders] The First Flex Open Iteration Meeting

2009-02-05 Thread flex_coders
When: February 10th – 10:30am PT / 1:30pm ET / 6:00pm GMT (duration
1 hour and 15 minutes)
Find your time zone here
 .

Where: via Connect: http://my.adobe.acrobat.com/foi/
  (Please enter the room as a
`guest' using your First and Last name)

We invite you to partake in our iteration kick-off meetings. We'll
be reviewing decisions made in the last iteration and discussing the
upcoming iteration – what we'll be working on and open issues.
This will be a chance for you to give us feedback on these items and to
interact with the SDK engineering team.

Agenda
10:30am – 11:15am : Flex team discusses past and future iterations
11:15am - 11:45am :  Open up discussion to community for Q&A

Guidelines

* Please review the content to be presented (the Open Source site
  will be updated
with this information) and post and vote on questions you may ahead of
time here. 
* We'll only be discussing the SDK - not Builder, Catalyst, Flash
Player bugs, Obama, or Flash on the iPhone
* Please keep feedback relevant to this iteration's content.
* Fx prefix is an ongoing discussion that will NOT be discussed in
this meeting and will be discussed via the forums
 .
* If you'd like to dive deep into the implementation of a
feature, we'd like to discuss this with you. However, given the time
constraints of the meeting, please mention it during the session and we
can continue this discussion via the forums.



Re: [flexcoders] Re: XML - What var type can I use for my XML nodes?

2009-02-05 Thread - -
never again :)

It's working now. Once I cleared IE's cache and restarted it... Thanks again :)

-David





From: Tracy Spratt 
To: flexcoders@yahoogroups.com
Sent: Thursday, February 5, 2009 4:59:59 PM
Subject: RE: [flexcoders] Re: XML - What var type can I use for my XML nodes?


I really have come to dislike the words “it doesn’t work”, please do not use 
them any more.
 
Are you still getting the same compile error?
 
Tracy Spratt
Lariat Services
Flex development bandwidth available



From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of - -
Sent: Thursday, February 05, 2009 4:55 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] Re: XML - What var type can I use for my XML nodes?
 
Sorry valdhor , I did correct the mistake but I still can't get it to work 
Thanks. :)
 



From:valdhor 
To: flexcod...@yahoogro ups.com
Sent: Thursday, February 5, 2009 4:10:31 PM
Subject: [flexcoders] Re: XML - What var type can I use for my XML nodes?
OK, ignore my post. See if I care (pout).

Sometimes, I wonder why I bother.

--- In flexcod...@yahoogro ups.com, - -  wrote:
>
> Hi Tracy , it still doesn't work...
> 
> 
> 
> 
>  _ _ __
> From: Tracy Spratt 
> To: flexcod...@yahoogro ups.com
> Sent: Thursday, February 5, 2009 3:54:34 PM
> Subject: RE: [flexcoders] XML - What var type can I use for my XML
nodes?
> 
> 
> Clean the Project: Menu, Project, Clean.
>  
> Tracy Spratt
> Lariat Services
> Flex development bandwidth available
> 
>  _ _ __
> 
> From:flexcoders@ yahoogro ups.com [mailto: flexcod...@yahoogro
ups.com ] On Behalf Of - -
> Sent: Thursday, February 05, 2009 2:48 PM
> To: flexcod...@yahoogro ups.com
> Subject: Re: [flexcoders] XML - What var type can I use for my XML
nodes?
>  
> Hi Tracy , I get "An Internal build error..."
> with:
>  
> text="{_xmlVar. date}"
>  
>  
> Thanks!
>  
> -David
>  
> 
>  _ _ __
> 
> From:Tracy Spratt 
> To: flexcod...@yahoogro ups.com
> Sent: Thursday, February 5, 2009 1:03:41 PM
> Subject: RE: [flexcoders] XML - What var type can I use for my XML
nodes?
> [Bindable]public var _xmlVar:XML;
>  
> private function init():void{
>  _xmlVa = testID.result. (@now=='today' )[0]; //NOTE the array[0]
brackets. 
> …
>  
> All e4x expessions return an XMLList, even if there is only one
node, so you must specify that node toput it in an XML variable.
> Tracy Spratt
> Lariat Services
> Flex development bandwidth available
> 
>  _ _ __
> 
> From:flexcoders@ yahoogro ups.com[mailto: flexcod...@yahoogro ups.com
] On Behalf Of sailorsea21
> Sent: Thursday, February 05, 2009 10:28 AM
> To: flexcod...@yahoogro ups.com
> Subject: [flexcoders] XML - What var type can I use for my XML nodes?
>  
> Hi everyone, I have the following:
> 
> 
> 
> 
> What var type can I use for "testID.result. . (@now=='today' )" to
simply 
> my text string?
> 
> I would like to have the following:
> 
> [Bindable]
> public var xmlvar:String = testID.result. (@now=='today' );
> 
> 
> 
> Thanks.
> 
> David
>  
>
 



  

RE: [flexcoders] Complicated form layout

2009-02-05 Thread Tracy Spratt
An HBox in a Form is a very different thing than a Form in an HBox.

 

A container is going to layout its children according to is own rules.
You can't expect it to alter those rules depending upon its parent.  

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of mmormando
Sent: Thursday, February 05, 2009 4:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Complicated form layout

 


I find it odd that if I layout a flex form as


  

   

  
  

   

  

  

  


  

  


Now to my wee poor brain, the 2 should be the same, and while they
areroughlythe label alignment and all that is very different.
Can anyone explain to me why? And by that I don't mean, "If you put any
container between the form declaration and the form items it'll whack
out your stuff.", that much I've figured out by this point, I mean, why
the heck would they go to the trouble of making things whack out if a
form item's immediate parent ISN'T a form, as long as its eventual
parent is???
Ok, deep breath...sometimes you just have to let go. 
 >:) 
back to work 





[flexcoders] How to set up a Flex,coldfusion development enviroment in Flex Builder?

2009-02-05 Thread markflex2007
Hi,

I want to use same tool to develop CFML,as and mxml.

Thanks for help.


Mark



RE: [flexcoders] localConnection not working from Air to Air

2009-02-05 Thread Kevin Benz
There is a security context that runs between Air applications that you
need to make happy. Air expects to share a security token between caller
and callee in order to accept the transport.

 

As a fast-track, I would explore Arthropod to see their discussion of
security integration between Air and their debugging Air app.

 

http://arthropod.stopp.se/

 

K 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of luvfotography
Sent: Thursday, February 05, 2009 12:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] localConnection not working from Air to Air

 

Any hints on getting a localConnection to work from AIR to AIR?
It works from FLEX to FLEX, I am using the code from the livedocs
example. I am getting a statusEvent of 'error'.
thanks,



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


creationComplete="initConn()"
backgroundAlpha="0" backgroundColor="#FF">




















http://www.adobe.com/2006/mxml";
layout="absolute"
creationComplete="InitConn()"
backgroundAlpha="0" width="600" height="600"
backgroundColor="#FF">










 





<><>

RE: [flexcoders] Re: XML - What var type can I use for my XML nodes?

2009-02-05 Thread Tracy Spratt
I really have come to dislike the words "it doesn't work", please do not
use them any more.

 

Are you still getting the same compile error?

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of - -
Sent: Thursday, February 05, 2009 4:55 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: XML - What var type can I use for my XML
nodes?

 

Sorry valdhor , I did correct the mistake but I still can't get it to
work... Thanks. :)

 



From: valdhor 
To: flexcoders@yahoogroups.com
Sent: Thursday, February 5, 2009 4:10:31 PM
Subject: [flexcoders] Re: XML - What var type can I use for my XML
nodes?

OK, ignore my post. See if I care (pout).

Sometimes, I wonder why I bother.

--- In flexcod...@yahoogro ups.com 
, - -  wrote:
>
> Hi Tracy, it still doesn't work...
> 
> 
> 
> 
>  _ _ __
> From: Tracy Spratt 
> To: flexcod...@yahoogro ups.com  
> Sent: Thursday, February 5, 2009 3:54:34 PM
> Subject: RE: [flexcoders] XML - What var type can I use for my XML
nodes?
> 
> 
> Clean the Project: Menu, Project, Clean.
>  
> Tracy Spratt
> Lariat Services
> Flex development bandwidth available
> 
>  _ _ __
> 
> From:flexcoders@ yahoogro ups.com   [mailto:
flexcod...@yahoogro
ups.com ] On Behalf Of - -
> Sent: Thursday, February 05, 2009 2:48 PM
> To: flexcod...@yahoogro ups.com
> Subject: Re: [flexcoders] XML - What var type can I use for my XML
nodes?
>  
> Hi Tracy, I get "An Internal build error..."
> with:
>  
> text="{_xmlVar. date}"
>  
>  
> Thanks!
>  
> -David
>  
> 
>  _ _ __
> 
> From:Tracy Spratt 
> To: flexcod...@yahoogro ups.com
> Sent: Thursday, February 5, 2009 1:03:41 PM
> Subject: RE: [flexcoders] XML - What var type can I use for my XML
nodes?
> [Bindable]public var _xmlVar:XML;
>  
> private function init():void{
>  _xmlVa = testID.result. (@now=='today' )[0]; //NOTE the array[0]
brackets. 
> ...
>  
> All e4x expessions return an XMLList, even if there is only one
node, so you must specify that node toput it in an XML variable.
> Tracy Spratt
> Lariat Services
> Flex development bandwidth available
> 
>  _ _ __
> 
> From:flexcoders@ yahoogro ups.com[mailto: flexcod...@yahoogro ups.com
] On Behalf Of sailorsea21
> Sent: Thursday, February 05, 2009 10:28 AM
> To: flexcod...@yahoogro ups.com
> Subject: [flexcoders] XML - What var type can I use for my XML nodes?
>  
> Hi everyone, I have the following:
> 
> 
> 
> 
> What var type can I use for "testID.result. . (@now=='today' )" to
simply 
> my text string?
> 
> I would like to have the following:
> 
> [Bindable]
> public var xmlvar:String = testID.result. (@now=='today' );
> 
> 
> 
> Thanks.
> 
> David
>  
>

 





Re: [flexcoders] Re: XML - What var type can I use for my XML nodes?

2009-02-05 Thread - -
Sorry valdhor , I did correct the mistake but I still can't get it to work 
Thanks. :)





From: valdhor 
To: flexcoders@yahoogroups.com
Sent: Thursday, February 5, 2009 4:10:31 PM
Subject: [flexcoders] Re: XML - What var type can I use for my XML nodes?


OK, ignore my post. See if I care (pout).

Sometimes, I wonder why I bother.

--- In flexcod...@yahoogro ups.com, - -  wrote:
>
> Hi Tracy, it still doesn't work...
> 
> 
> 
> 
>  _ _ __
> From: Tracy Spratt 
> To: flexcod...@yahoogro ups.com
> Sent: Thursday, February 5, 2009 3:54:34 PM
> Subject: RE: [flexcoders] XML - What var type can I use for my XML
nodes?
> 
> 
> Clean the Project: Menu, Project, Clean.
>  
> Tracy Spratt
> Lariat Services
> Flex development bandwidth available
> 
>  _ _ __
> 
> From:flexcoders@ yahoogro ups.com [mailto: flexcod...@yahoogro
ups.com ] On Behalf Of - -
> Sent: Thursday, February 05, 2009 2:48 PM
> To: flexcod...@yahoogro ups.com
> Subject: Re: [flexcoders] XML - What var type can I use for my XML
nodes?
>  
> Hi Tracy, I get "An Internal build error..."
> with:
>  
> text="{_xmlVar. date}"
>  
>  
> Thanks!
>  
> -David
>  
> 
>  _ _ __
> 
> From:Tracy Spratt 
> To: flexcod...@yahoogro ups.com
> Sent: Thursday, February 5, 2009 1:03:41 PM
> Subject: RE: [flexcoders] XML - What var type can I use for my XML
nodes?
> [Bindable]public var _xmlVar:XML;
>  
> private function init():void{
>  _xmlVa = testID.result. (@now=='today' )[0]; //NOTE the array[0]
brackets. 
> …
>  
> All e4x expessions return an XMLList, even if there is only one
node, so you must specify that node toput it in an XML variable.
> Tracy Spratt
> Lariat Services
> Flex development bandwidth available
> 
>  _ _ __
> 
> From:flexcoders@ yahoogro ups.com[mailto: flexcod...@yahoogro ups.com
] On Behalf Of sailorsea21
> Sent: Thursday, February 05, 2009 10:28 AM
> To: flexcod...@yahoogro ups.com
> Subject: [flexcoders] XML - What var type can I use for my XML nodes?
>  
> Hi everyone, I have the following:
> 
> 
> 
> 
> What var type can I use for "testID.result. . (@now=='today' )" to
simply 
> my text string?
> 
> I would like to have the following:
> 
> [Bindable]
> public var xmlvar:String = testID.result. (@now=='today' );
> 
> 
> 
> Thanks.
> 
> David
>  
>





  

[flexcoders] Complicated form layout

2009-02-05 Thread mmormando

I find it odd that if I layout a flex form as


   
 

 
   
   
 

 
   

   
 
   
 
 
   
 
   


Now to my wee poor brain, the 2 should be the same, and while they
areroughlythe label alignment and all that is very different.
Can anyone explain to me why? And by that I don't mean, "If you put any
container between the form declaration and the form items it'll whack
out your stuff.", that much I've figured out by this point, I mean, why
the heck would they go to the trouble of making things whack out if a
form item's immediate parent ISN'T a form, as long as its eventual
parent is???
Ok, deep breath...sometimes you just have to let go.
  [>:)]
back to work



[flexcoders] Re: XML - What var type can I use for my XML nodes?

2009-02-05 Thread valdhor
OK, ignore my post. See if I care (pout).

Sometimes, I wonder why I bother.


--- In flexcoders@yahoogroups.com, - -  wrote:
>
> Hi Tracy, it still doesn't work...
> 
> 
> 
> 
> 
> From: Tracy Spratt 
> To: flexcoders@yahoogroups.com
> Sent: Thursday, February 5, 2009 3:54:34 PM
> Subject: RE: [flexcoders] XML - What var type can I use for my XML
nodes?
> 
> 
> Clean the Project: Menu, Project, Clean.
>  
> Tracy Spratt
> Lariat Services
> Flex development bandwidth available
> 
> 
> 
> From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro
ups.com ] On Behalf Of - -
> Sent: Thursday, February 05, 2009 2:48 PM
> To: flexcod...@yahoogro ups.com
> Subject: Re: [flexcoders] XML - What var type can I use for my XML
nodes?
>  
> Hi Tracy, I get "An Internal build error..."
> with:
>  
> text="{_xmlVar.date}"
>  
>  
> Thanks!
>  
> -David
>  
> 
> 
> 
> From:Tracy Spratt 
> To: flexcod...@yahoogro ups.com
> Sent: Thursday, February 5, 2009 1:03:41 PM
> Subject: RE: [flexcoders] XML - What var type can I use for my XML
nodes?
> [Bindable]public var _xmlVar:XML;
>  
> private function init():void{
>  _xmlVa = testID.result. (@now=='today' )[0]; //NOTE the array[0]
brackets. 
> …
>  
> All e4x expessions return an XMLList, even if there is only one
node, so you must specify that node toput it in an XML variable.
> Tracy Spratt
> Lariat Services
> Flex development bandwidth available
> 
> 
> 
> From:flexcod...@yahoogro ups.com[mailto: flexcod...@yahoogro ups.com
] On Behalf Of sailorsea21
> Sent: Thursday, February 05, 2009 10:28 AM
> To: flexcod...@yahoogro ups.com
> Subject: [flexcoders] XML - What var type can I use for my XML nodes?
>  
> Hi everyone, I have the following:
> 
> 
> 
> 
> What var type can I use for "testID.result. . (@now=='today' )" to
simply 
> my text string?
> 
> I would like to have the following:
> 
> [Bindable]
> public var xmlvar:String = testID.result. (@now=='today' );
> 
> 
> 
> Thanks.
> 
> David
>  
>




Re: [flexcoders] XML - What var type can I use for my XML nodes?

2009-02-05 Thread - -
Hi Tracy, it still doesn't work...





From: Tracy Spratt 
To: flexcoders@yahoogroups.com
Sent: Thursday, February 5, 2009 3:54:34 PM
Subject: RE: [flexcoders] XML - What var type can I use for my XML nodes?


Clean the Project: Menu, Project, Clean.
 
Tracy Spratt
Lariat Services
Flex development bandwidth available



From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of - -
Sent: Thursday, February 05, 2009 2:48 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] XML - What var type can I use for my XML nodes?
 
Hi Tracy, I get "An Internal build error..."
with:
 
text="{_xmlVar.date}"
 
 
Thanks!
 
-David
 



From:Tracy Spratt 
To: flexcod...@yahoogro ups.com
Sent: Thursday, February 5, 2009 1:03:41 PM
Subject: RE: [flexcoders] XML - What var type can I use for my XML nodes?
[Bindable]public var _xmlVar:XML;
 
private function init():void{
 _xmlVa = testID.result. (@now=='today' )[0]; //NOTE the array[0] brackets. 
…
 
All e4x expessions return an XMLList, even if there is only one node, so you 
must specify that node toput it in an XML variable.
Tracy Spratt
Lariat Services
Flex development bandwidth available



From:flexcod...@yahoogro ups.com[mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of sailorsea21
Sent: Thursday, February 05, 2009 10:28 AM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] XML - What var type can I use for my XML nodes?
 
Hi everyone, I have the following:




What var type can I use for "testID.result. . (@now=='today' )" to simply 
my text string?

I would like to have the following:

[Bindable]
public var xmlvar:String = testID.result. (@now=='today' );



Thanks.

David
 



  

[flexcoders] Re: Detect exeptions - help!!

2009-02-05 Thread valdhor
John

Yes it does. It acts as a proxy between whatever application you are
using and whatever you are trying to contact. It automagically sets up
Firefox and Internet Exploiter. For other apps you may need to
manually set the proxy to the local machine and port.

BTW. My name is Steve - Valdhor was my AD&D alias back in my
university days ;-}


--- In flexcoders@yahoogroups.com, John McCormack  wrote:
>
> Thanks valdhor,
> 
> Does Charles manage to capture the local host traffic?
> I want to capture the messages between an exe and an Adobe swf file.
> 
> John
> 
> valdhor wrote:
> > My favorite (The one I own) is Charles (http://www.charlesproxy.com).
> >
> > The two things that made it my pick is that it is cross platform and
> > that it understands AMF (ie. it will show you the returned objects and
> > what they contain - invaluable for debugging remote objects)
> >
> >
> > --- In flexcoders@yahoogroups.com, "oneworld95"  wrote:
> >   
> >> John -- WireShark (free download from http://www.wireshark.org/)
is my
> >> current favorite. It shows all the network traffic and can be
filtered
> >> based on IP, etc. I've blogged about it here with instructions on
> >> using it:
> >>
> >> 
> >
http://devharbor.blogspot.com/2009/02/using-wireshark-to-sniff-http-packets.html
> >   
> >> - Alex C
> >>
> >> --- In flexcoders@yahoogroups.com, "oneworld95"  wrote:
> >> 
> >>> Thanks, Alex. It's not hanging on the Flex side -- the server
response
> >>> is never received. Using WireShark (http://www.wireshark.org/),
I was
> >>> able to see it's not hanging at all, but continually sending
messages
> >>> to the Java servlet but getting nothing back in reply. 
> >>>
> >>> That's what led me to investigate the Java code more closely. The
> >>> BufferedImage object was receiving some JPG images that it couldn't
> >>> handle; so it spun away for a while before throwing an
exception. For
> >>> whatever reason, the exception never made it back to the Flex side. 
> >>>
> >>> All is well now: I took out the BufferedImage object and am passing
> >>> the InputStream directly to the Java Advanced Imaging API code,
which
> >>> resizes the image and writes it to disk. One issue: JPG images with
> >>> CMYK color spaces come out with their colors mangled; but that's a
> >>> limitation of the server code and has nothing to do with Flex.
> >>>
> >>> - Alex
> >>>
> >>> --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
> >>>   
>  It would be unusual for Flex to hang waiting for the server.  Use a
>  
> >>> network monitor to see what's going on.  Is Flex really hung?  You
> >>> can't hit a button or anything?
> >>>   
>  From: flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com]
>  
> >>> On Behalf Of oneworld95
> >>>   
>  Sent: Tuesday, February 03, 2009 7:25 AM
>  To: flexcoders@yahoogroups.com
>  Subject: [flexcoders] Detect exeptions - help!!
> 
> 
>  I've run into a very frustrating situation and need your help:
> 
>  - Flex uploads a file to the server
>  - The server reads it into a Java BufferedImage object.
>  - However, Java sometimes takes 40 seconds or longer to reply
>  - In some cases it has difficulty reading the file.
> 
>  In the cases of problems, Flex just hangs. It doesn't reply with
>  anything. Is it timing out? Any help appreciated.
> 
>  
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links
> >
> >
> >
> >
> >
> >
>




[flexcoders] Re: ZendAmf Setup issue 1.7 where gateway filw working ?

2009-02-05 Thread valdhor
Saj

I think you have multiple problems in your setup.

Here is a quick HelloWorld example:

My PHP server is set up with two directories - Zend (Holds the Zend
Framework) and
ZendServices (Where all my AMF Services files are located in sub
directories). In this
ZendServices directory I have a Samples directory which has a helloamf
directory. In
this directory I have two files - index.php and HelloWorld.php...

=
index.php:
 setClass( "HelloWorld" );
echo( $server -> handle() );
=
HelloWorld.php:

=

Now to the Flex files. I have a project named ZendAMFSampleHelloAMF (You
can name yours
whatever you want).

=
ZendAMFSampleHelloAMF.mxml:

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

=
services-config.xml:


 
 
 
 
 
 
 
 *
 
 
 
 
 
 
 http://myserver.com/ZendServices/Samples/helloamf/";
class="flex.messaging.endpoints.AMFEndpoint"/>
 
 

=

Note that the endpoint points to my helloamf directory on my server (See
above).
There is no gateway.php file with Zend_Amf.

Now, all you need to do is set your compiler preference additional
compiler arguments to:

-locale en_US -services "services-config.xml"

If you need a further example on how to pass value objects, please let
me know.


HTH



Steve



--- In flexcoders@yahoogroups.com, Sajid Hussain 
wrote:
>
>
>
>
> Hello Gurus ,
>
> I am facing one issue where i am attempting to use Zend_amf but that
code exactly work well with Amfphp,
> I have seen all internet resources for zend and I am very courios on
thier machine same code is working why not at mine :(
> if I am trying to access gateway(Zend File) it work well but its not
working from Flex App .
> I have follwoing code and structure
>
> Gateway File :
>  require_once 'Zend/Amf/Server. php';
> require_once 'include/services/ BListsService. php';
> require_once 'include/services/ UserService. php';
> // Instantiate the server
> $server = new Zend_Amf_Server( );
> $server->setClass('BListsSer vice');
> $server->setClassMap( 'BListsVO' , 'BLists');
> $server->setClass('UserServi ce');
> $server->setClassMap( 'UserVO', 'User');
> $server->setProduction( false);
> $server->handle(); // if I am echoing this its not execute and instead
it comes up for download
> ?>
>
> Services-xml :
> 
> 
> 
>  class="flex. messaging. services. RemotingService"
> messageTypes= "flex.messaging. messages. RemotingMessage">
> 
> 
> 
> 
> 
> *
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> Remote Services :
>
>  id="BListsService"
> source="BListsServi ce" destination= "zend" endpoint="http:
//localhost/ gateway.php"
> showBusyCursor= "true">
> 
>
> Please Reple
> -Saj
>



Re: [flexcoders] What comes out of a datagrid

2009-02-05 Thread Adrian Williams

Hi Wally,

   We have something that's practically identical to what you have 
described.  For ours, instead of waiting until all the people have been 
dragged, we setup a number of listeners on our blank ADG (DRAG_START, 
DRAG_ENTER, DRAG_DROP) and as soon as the person is dropped, we 
reference our sourceGrid.selectedItems  property which has the pertinent 
information about the 'fella' that was droppedonce we have that, we 
hit our web service, passing the information, including the group change 
info to our db.


   Alternatively, you can take a look at your teamDG.dataProvider and 
see the data that's been dropped in it...


HTH,
Adrian

Wally Kolcz wrote:


Lets say I have 2 DataGrids, one has user info in it (populated with a 
binded ArrayCollection) and the other is blank (lets call it 
id="teamDG"). You can drag the people from the populated to the blank 
to populate it. Got that part to work fine.


When you have dragged all the people you wanted to the blank one and 
then wanted to save that new group of people, how can you go about 
saving them? Is there a specific array or object associated with that 
DataGrid (teamDG) which then you can pass to a function to populate a 
database? Any examples or tutorials out there? Thanks.





RE: [flexcoders] What comes out of a datagrid

2009-02-05 Thread Tracy Spratt
That would be the dataProvider for the teamDG.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wally Kolcz
Sent: Thursday, February 05, 2009 2:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] What comes out of a datagrid

 

Lets say I have 2 DataGrids, one has user info in it (populated with a
binded ArrayCollection) and the other is blank (lets call it
id="teamDG"). You can drag the people from the populated to the blank to
populate it. Got that part to work fine.

When you have dragged all the people you wanted to the blank one and
then wanted to save that new group of people, how can you go about
saving them? Is there a specific array or object associated with that
DataGrid (teamDG) which then you can pass to a function to populate a
database? Any examples or tutorials out there? Thanks.





RE: [flexcoders] XML - What var type can I use for my XML nodes?

2009-02-05 Thread Tracy Spratt
Clean the Project: Menu, Project, Clean.

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of - -
Sent: Thursday, February 05, 2009 2:48 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] XML - What var type can I use for my XML
nodes?

 

Hi Tracy, I get "An Internal build error..."

with:

 

text="{_xmlVar.date}"

 

 

Thanks!

 

-David

 



From: Tracy Spratt 
To: flexcoders@yahoogroups.com
Sent: Thursday, February 5, 2009 1:03:41 PM
Subject: RE: [flexcoders] XML - What var type can I use for my XML
nodes?

[Bindable]public var _xmlVar:XML;

 

private function init():void{

 _xmlVa = testID.result. (@now=='today' )[0]; //NOTE the array[0]
brackets. 

...

 

All e4x expessions return an XMLList, even if there is only one node, so
you must specify that node toput it in an XML variable.

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcod...@yahoogro ups.com   [mailto:
flexcod...@yahoogro ups.com ] On Behalf Of sailorsea21
Sent: Thursday, February 05, 2009 10:28 AM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] XML - What var type can I use for my XML nodes?

 

Hi everyone, I have the following:




What var type can I use for "testID.result.. (@now=='today' )" to simply

my text string?

I would like to have the following:

[Bindable]
public var xmlvar:String = testID.result. (@now=='today' );



Thanks.

David

 





Re: [flexcoders] Re: Detect exeptions - help!!

2009-02-05 Thread John McCormack
Thanks valdhor,

Does Charles manage to capture the local host traffic?
I want to capture the messages between an exe and an Adobe swf file.

John

valdhor wrote:
> My favorite (The one I own) is Charles (http://www.charlesproxy.com).
>
> The two things that made it my pick is that it is cross platform and
> that it understands AMF (ie. it will show you the returned objects and
> what they contain - invaluable for debugging remote objects)
>
>
> --- In flexcoders@yahoogroups.com, "oneworld95"  wrote:
>   
>> John -- WireShark (free download from http://www.wireshark.org/) is my
>> current favorite. It shows all the network traffic and can be filtered
>> based on IP, etc. I've blogged about it here with instructions on
>> using it:
>>
>> 
> http://devharbor.blogspot.com/2009/02/using-wireshark-to-sniff-http-packets.html
>   
>> - Alex C
>>
>> --- In flexcoders@yahoogroups.com, "oneworld95"  wrote:
>> 
>>> Thanks, Alex. It's not hanging on the Flex side -- the server response
>>> is never received. Using WireShark (http://www.wireshark.org/), I was
>>> able to see it's not hanging at all, but continually sending messages
>>> to the Java servlet but getting nothing back in reply. 
>>>
>>> That's what led me to investigate the Java code more closely. The
>>> BufferedImage object was receiving some JPG images that it couldn't
>>> handle; so it spun away for a while before throwing an exception. For
>>> whatever reason, the exception never made it back to the Flex side. 
>>>
>>> All is well now: I took out the BufferedImage object and am passing
>>> the InputStream directly to the Java Advanced Imaging API code, which
>>> resizes the image and writes it to disk. One issue: JPG images with
>>> CMYK color spaces come out with their colors mangled; but that's a
>>> limitation of the server code and has nothing to do with Flex.
>>>
>>> - Alex
>>>
>>> --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>>>   
 It would be unusual for Flex to hang waiting for the server.  Use a
 
>>> network monitor to see what's going on.  Is Flex really hung?  You
>>> can't hit a button or anything?
>>>   
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
 
>>> On Behalf Of oneworld95
>>>   
 Sent: Tuesday, February 03, 2009 7:25 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Detect exeptions - help!!


 I've run into a very frustrating situation and need your help:

 - Flex uploads a file to the server
 - The server reads it into a Java BufferedImage object.
 - However, Java sometimes takes 40 seconds or longer to reply
 - In some cases it has difficulty reading the file.

 In the cases of problems, Flex just hangs. It doesn't reply with
 anything. Is it timing out? Any help appreciated.

 
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>
>
>   




[flexcoders] Re: Using FABridge with SWFObject 2?

2009-02-05 Thread Keith Hughitt
Update:

I figured out how to get the FABridge to work with SWFObject. Here is a
simple working example with a button which when pressed calls a function
"test" in the Flex app:

http://www.w3.org/TR/html4/strict.dtd";>

 
 FABridge Test
 
 
 
 
 swfobject.registerObject("myFlashContent", "9.0.0",
"expressInstall.swf");
 
 
 
 
 
 
 
 
 
 http://www.adobe.com/go/getflashplayer";>
 http://www.adobe.com/images/shared/download_buttons/get_flash_playe\
r.gif" alt="Get Adobe Flash player" />
 
 
 
 
 
 
 
 

I have not been able to get the bridge/SWFObject to play nicely with
Prototype/jQuery, however. I would like to instantiate the FABridge when
the DOM is loaded, and then store a reference to be called periodically
later. So far the only thing that has worked for me is to instantiate it
as it's used, sometime after the DOM is loaded. When I try to use either
Prototype's Event.observer(window,) or jQuery's $() after loading
FABridge.js nothing happens.

If anyone has any idea why this is, I would be very interested to find
out.

Keith




Re: [flexcoders] Re: Detect exeptions - help!!

2009-02-05 Thread John McCormack
Thanks Alex.

I had a peek at your blog and followed the link for localhost but they 
say it doesn't work at for the local ip address of 127.0.0.1 - on 
Windows. All the same, thank you for telling me about it, it sounds 
really good. I shall give it a go for other purposes. I wonder if 
Charles will capture localhost traffic?

John

oneworld95 wrote:
> John -- WireShark (free download from http://www.wireshark.org/) is my
> current favorite. It shows all the network traffic and can be filtered
> based on IP, etc. I've blogged about it here with instructions on
> using it:
> http://devharbor.blogspot.com/2009/02/using-wireshark-to-sniff-http-packets.html
>
>
> - Alex C
>
> --- In flexcoders@yahoogroups.com, "oneworld95"  wrote:
>   
>> Thanks, Alex. It's not hanging on the Flex side -- the server response
>> is never received. Using WireShark (http://www.wireshark.org/), I was
>> able to see it's not hanging at all, but continually sending messages
>> to the Java servlet but getting nothing back in reply. 
>>
>> That's what led me to investigate the Java code more closely. The
>> BufferedImage object was receiving some JPG images that it couldn't
>> handle; so it spun away for a while before throwing an exception. For
>> whatever reason, the exception never made it back to the Flex side. 
>>
>> All is well now: I took out the BufferedImage object and am passing
>> the InputStream directly to the Java Advanced Imaging API code, which
>> resizes the image and writes it to disk. One issue: JPG images with
>> CMYK color spaces come out with their colors mangled; but that's a
>> limitation of the server code and has nothing to do with Flex.
>>
>> - Alex
>>
>> --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>> 
>>> It would be unusual for Flex to hang waiting for the server.  Use a
>>>   
>> network monitor to see what's going on.  Is Flex really hung?  You
>> can't hit a button or anything?
>> 
>>> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
>>>   
>> On Behalf Of oneworld95
>> 
>>> Sent: Tuesday, February 03, 2009 7:25 AM
>>> To: flexcoders@yahoogroups.com
>>> Subject: [flexcoders] Detect exeptions - help!!
>>>
>>>
>>> I've run into a very frustrating situation and need your help:
>>>
>>> - Flex uploads a file to the server
>>> - The server reads it into a Java BufferedImage object.
>>> - However, Java sometimes takes 40 seconds or longer to reply
>>> - In some cases it has difficulty reading the file.
>>>
>>> In the cases of problems, Flex just hangs. It doesn't reply with
>>> anything. Is it timing out? Any help appreciated.
>>>
>>>   
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>
>
>   




RE: [flexcoders] AxisRenderer Embedded Font Bug?

2009-02-05 Thread Battershall, Jeff
Additional info - the chart is in a TitleWindow.  There seems to be a
lot of posts about this and similar issues with charts within modules,
etc.  I just haven't been able to get the "magic incantation" that will
make the fonts render.  I could just say "f-it" and render the labels
using device fonts and without rotation, but that kinda runs against the
grain, if you know what I mean.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Battershall, Jeff
Sent: Thursday, February 05, 2009 2:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AxisRenderer Embedded Font Bug?


I've got a vertical axis with an axisrenderer and I'm trying to rotate
the labels 90 degrees.  I'm referring to a font embedded in a
stylesheet. The labels won't display - it appears that room is being
made for the labels to appear, but the labels aren't getting rendered.

I'm using MyriadWebPro as the embedded font and I've also tried this
with Arial with the same results. I've also tried this with no label
rotation at all - but no dice.  If I stipulate a font family including
device fonts, the labels will render, but no rotation is available. 

Has anyone seen this? 

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links





RE: [flexcoders] Re: Multiple tool tip styles

2009-02-05 Thread Gregor Kiddie
Can I suggest the SearchCoder AIR app? It's very nice!

 

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 is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of valdhor
Sent: 05 February 2009 19:06
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Multiple tool tip styles

 

I have no idea on your tooltip question but in regards to YahooGroups
search, I have given up on it. Either it is busy or doesn't give me
any results (Like I know something was posted in the past few weeks
but when I search, the latest results are from October of 2008.

I now use Nabble for my searches:

http://www.nabble.com/FlexCoders-f16212.html
 





Re: [flexcoders] Login / Password Form

2009-02-05 Thread Alan K
No, you can use a PHP file, for example, to hold and check against.


>Hello, 
>I am searching a code source exemple for a classical login / password
>form in a flex application.
>Did I need absolutely a database to store Passwords ?
>Thank you, 
>Christophe, 




Re: [flexcoders] Upload images

2009-02-05 Thread Alan K
http://weblog.cahlan.com/2006/12/flex-upload-component.html


>Hello, 
>I want to Upload images from the user computer into my flex
>application. 
>Which instruction to use to upload images ?
>Thank you,
>Christophe, 




[flexcoders] localConnection not working from Air to Air

2009-02-05 Thread luvfotography
Any hints on getting a localConnection to work from AIR to AIR?
It works from FLEX to FLEX, I am using the code from the livedocs
example.   I am getting a statusEvent of 'error'.
thanks,
 


http://www.adobe.com/2006/mxml";
layout="absolute" 
 
 
creationComplete="initConn()"
backgroundAlpha="0" backgroundColor="#FF">
















 




http://www.adobe.com/2006/mxml";
layout="absolute"
creationComplete="InitConn()"
backgroundAlpha="0"   width="600" height="600"
backgroundColor="#FF">










 







[flexcoders] AlivePdf and scroll bars

2009-02-05 Thread kuroiryu42
I have a list that has scroll bars that I want to go away when I drop
it into the PDF. I am just using the addImage function of PDF so it is
basically taking a screen shot of the list that i pass in.

Anyone have a solution for this?

Thanks



[flexcoders] Re: very strange combobox problem when switching dataproviders

2009-02-05 Thread kuroiryu42
Yep its a bug, didn't bother to look it up but if you need a work around
you could extend and override the combobox collectionChangeHandler
look for the reset kind and remove the listener at that point.

--- In flexcoders@yahoogroups.com, Pan Troglodytes 
wrote:
>
> I'm running into something fairly perplexing.  Read the following
code and
> think of what you'd expect it to do when you click the change
button.  Then
> run it and click the change button.
> 
> 
>xmlns:mx="http://www.adobe.com/2006/mxml";
>   layout="vertical"
>   creationComplete="cc()"
>   >
>   
> 
>   
>   
>   
> 
> 
> 
> What does it do?  Well, the combobox changes from saying "b" to "a".
 The
> trace says the following:
>   before change:
> c1.selectedIndex: 1
> c1.selectedItem:  b
> 
>   after change:
> c1.selectedIndex: 0
> c1.selectedItem:  b
> 
> This is completely baffling.  My only guess is that somewhere in the
guts of
> combobox or its ancestors, it is registering for changes on a
dataProvider
> and not unregistering them when the dataProvider changes.  List does not
> seem to suffer the same problem.
> 
> If you comment out the ArrayCollection-based version and uncomment the
> Array-based version, it works as expected.
> 
> My next stop is a bug report, but I figured it'd be worth bringing up in
> case anyone already knows of a bug report (kind of hard criteria to
search
> for) or a workaround if you need to use ArrayCollections.
> 
> -- 
> Jason
>




[flexcoders] Re: XML - What var type can I use for my XML nodes?

2009-02-05 Thread valdhor
Did you notice that Tracy had an error in his syntax? Did you fix it?

_xmlVa = testID.result. (@now=='today' )[0];

should have been:

_xmlVar = testID.result. (@now=='today' )[0];

ie. He forgot the "r" on the end.


--- In flexcoders@yahoogroups.com, - -  wrote:
>
> Hi Tracy, I get "An Internal build error..."
> with:
> 
> text="{_xmlVar.date}"
> 
> 
> Thanks!
> 
> -David
> 
> 
> 
> 
> 
> From: Tracy Spratt 
> To: flexcoders@yahoogroups.com
> Sent: Thursday, February 5, 2009 1:03:41 PM
> Subject: RE: [flexcoders] XML - What var type can I use for my XML
nodes?
> 
> 
> [Bindable]public var _xmlVar:XML;
>  
> private function init():void{
>  _xmlVa = testID.result. (@now=='today' )[0]; //NOTE the array[0]
brackets. 
> …
>  
> All e4x expessions return an XMLList, even if there is only one
node, so you must specify that node toput it in an XML variable.
> Tracy Spratt
> Lariat Services
> Flex development bandwidth available
> 
> 
> 
> From:flexcod...@yahoogro ups.com[mailto: flexcod...@yahoogro ups.com
] On Behalf Of sailorsea21
> Sent: Thursday, February 05, 2009 10:28 AM
> To: flexcod...@yahoogro ups.com
> Subject:[flexcoders] XML - What var type can I use for my XML nodes?
>  
> Hi everyone, I have the following:
> 
> 
> 
> 
> What var type can I use for "testID.result. (@now=='today' )" to simply 
> my text string?
> 
> I would like to have the following:
> 
> [Bindable]
> public var xmlvar:String = testID.result. (@now=='today' );
> 
> 
> 
> Thanks.
> 
> David
>




Re: [flexcoders] XML - What var type can I use for my XML nodes?

2009-02-05 Thread - -
Hi Tracy, I get "An Internal build error..."
with:

text="{_xmlVar.date}"


Thanks!

-David





From: Tracy Spratt 
To: flexcoders@yahoogroups.com
Sent: Thursday, February 5, 2009 1:03:41 PM
Subject: RE: [flexcoders] XML - What var type can I use for my XML nodes?


[Bindable]public var _xmlVar:XML;
 
private function init():void{
 _xmlVa = testID.result. (@now=='today' )[0]; //NOTE the array[0] brackets. 
…
 
All e4x expessions return an XMLList, even if there is only one node, so you 
must specify that node toput it in an XML variable.
Tracy Spratt
Lariat Services
Flex development bandwidth available



From:flexcod...@yahoogro ups.com[mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of sailorsea21
Sent: Thursday, February 05, 2009 10:28 AM
To: flexcod...@yahoogro ups.com
Subject:[flexcoders] XML - What var type can I use for my XML nodes?
 
Hi everyone, I have the following:




What var type can I use for "testID.result. (@now=='today' )" to simply 
my text string?

I would like to have the following:

[Bindable]
public var xmlvar:String = testID.result. (@now=='today' );



Thanks.

David



  

[flexcoders] AxisRenderer Embedded Font Bug?

2009-02-05 Thread Battershall, Jeff
I've got a vertical axis with an axisrenderer and I'm trying to rotate
the labels 90 degrees.  I'm referring to a font embedded in a
stylesheet. The labels won't display - it appears that room is being
made for the labels to appear, but the labels aren't getting rendered.

I'm using MyriadWebPro as the embedded font and I've also tried this
with Arial with the same results. I've also tried this with no label
rotation at all - but no dice.  If I stipulate a font family including
device fonts, the labels will render, but no rotation is available. 

Has anyone seen this? 

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)


[flexcoders] What comes out of a datagrid

2009-02-05 Thread Wally Kolcz
Lets say I have 2 DataGrids, one has user info in it (populated with a binded 
ArrayCollection) and the other is blank (lets call it id="teamDG"). You can 
drag the people from the populated to the blank to populate it. Got that part 
to work fine.

When you have dragged all the people you wanted to the blank one and then 
wanted to save that new group of people, how can you go about saving them? Is 
there a specific array or object associated with that DataGrid (teamDG) which 
then you can pass to a function to populate a database? Any examples or 
tutorials out there? Thanks.



Re: [flexcoders] Re: Prevent ItemRenderer click from selecting row?

2009-02-05 Thread Dennis Falling
Wow, I don't know how many times I've typed ,0 and ignored priority.
 Thanks!

On Thu, Feb 5, 2009 at 12:14 PM, Alex Harui  wrote:

>Sure, because it set up its listener first.  You can set your listener
> at a higher priority.  I'd still start with my list selection example on my
> blog.  You should be able to tweak it to just not allow selection if the
> event.target is a button.
>
>
>
> Alex Harui
>
> Flex SDK Developer
>
> Adobe Systems Inc. 
>
> Blog: http://blogs.adobe.com/aharui
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Dennis Falling
> *Sent:* Wednesday, February 04, 2009 10:20 PM
>
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] Re: Prevent ItemRenderer click from selecting
> row?
>
>
>
> That's what I was trying- stopping propagation and preventing default.
>  Apparently the datagrid gets the event first.
>
> On Wed, Feb 4, 2009 at 10:26 PM, arieljake  wrote:
>
> Can you have the items catch the click event of the button and prevent
> propagation?
>
>
>
> --- In flexcoders@yahoogroups.com , Dennis
> Falling  wrote:
> >
>
> > I'm using a DataGrid. But the problem is that I want the selection
> behavior
> > to behave normally, except for when the buttons are clicked.
> > Thanks
> >
> > On Wed, Feb 4, 2009 at 10:09 AM, Fotis Chatzinikos <
>
> > fotis.chatzini...@...> wrote:
> >
> > > if you are using a list or tile list there is a property selectable
> > > which you can make false.
> > >
> > >
> > >
>
> > > On Wed, Feb 4, 2009 at 6:05 PM, Dennis Falling  wrote:
> > >
> > >> Is there one involving item renderers? I believe I scoured
> your site
> > >> pretty thoroughly, but the only time I see selection behavior being
> > >> overriden is inside an extended list or DataGrid. Is it possible
> to pull
> > >> this off with only an item renderer?
> > >>
> > >> Thanks
> > >>
>
> > >> On Wed, Feb 4, 2009 at 1:16 AM, Alex Harui  wrote:
> > >>
> > >>> There a example on preventing list selection on my blog
> > >>>
> > >>>
> > >>>
> > >>> *From:* flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com ] *On
> > >>> Behalf Of *Dennis Falling
> > >>> *Sent:* Tuesday, February 03, 2009 5:30 PM
> > >>> *To:* flexcoders@yahoogroups.com 
> > >>> *Subject:* Re: [flexcoders] Re: Prevent ItemRenderer click from
> > >>> selecting row?
> > >>>
> > >>>
> > >>>
> > >>> That would work for invalidating my selection, but I simply want the
> > >>> selection to never occur. That way if something was previously
> selected, it
> > >>> isn't altered.
> > >>>
>
> > >>> On Tue, Feb 3, 2009 at 5:08 PM, fourctv  wrote:
> > >>>
> > >>> have you tried datagrid.selectedItems=null?
> > >>>
> > >>>
> > >>>
> > >>> --- In flexcoders@yahoogroups.com 
>
> , Dennis
>
>
> > >>> Falling  wrote:
> > >>> >
> > >>> > I have an ItemRenderer with buttons in it. In the click listener
> > >>> functions
> > >>> > for these buttons, I call event.stopImmediatePropagation (and
> > >>> > preventDefault, though that doesn't seem relevant), but the row is
> > >>> still
> > >>> > selected. How can I prevent it from receiving the click and
> > >>> highlighting
> > >>> > itself?
> > >>> > Thanks.
> > >>> >
> > >>>
> > >>>
> > >>>
> > >>>
> > >>
> > >
> > >
> > > --
> > > Fotis Chatzinikos, Ph.D.
> > > Founder,
> > > Phinnovation
>
> > > fotis.chatzini...@...,
> > >
> > >
> > >
> >
>
>
>
>   
>


[flexcoders] very strange combobox problem when switching dataproviders

2009-02-05 Thread Pan Troglodytes
I'm running into something fairly perplexing.  Read the following code and
think of what you'd expect it to do when you click the change button.  Then
run it and click the change button.


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

  
  
  



What does it do?  Well, the combobox changes from saying "b" to "a".  The
trace says the following:
  before change:
c1.selectedIndex: 1
c1.selectedItem:  b

  after change:
c1.selectedIndex: 0
c1.selectedItem:  b

This is completely baffling.  My only guess is that somewhere in the guts of
combobox or its ancestors, it is registering for changes on a dataProvider
and not unregistering them when the dataProvider changes.  List does not
seem to suffer the same problem.

If you comment out the ArrayCollection-based version and uncomment the
Array-based version, it works as expected.

My next stop is a bug report, but I figured it'd be worth bringing up in
case anyone already knows of a bug report (kind of hard criteria to search
for) or a workaround if you need to use ArrayCollections.

-- 
Jason


[flexcoders] Re: Multiple tool tip styles

2009-02-05 Thread valdhor
I have no idea on your tooltip question but in regards to YahooGroups
search, I have given up on it. Either it is busy or doesn't give me
any results (Like I know something was posted in the past few weeks
but when I search, the latest results are from October of 2008.

I now use Nabble for my searches:

http://www.nabble.com/FlexCoders-f16212.html


--- In flexcoders@yahoogroups.com, "djhatrick"  wrote:
>
> How do i apply multiple tooltip styles to a flex app? 
> 
> Thanks,
> patrick
> 
> 
> 
> By the way: YahooGroups search sucks, ugh, i hate it, always busy, why
> do we have to have this here?
>




Re: [flexcoders] Expand Panel in VDividedBox like TourDeFlex

2009-02-05 Thread Jeffry Houser


Look into the Flex MDI project. 


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

I don't know if that is what is used by Tour De Flex, but I believe it 
can produce similar functionality. 


Monali Gandhi wrote:

Hi there...
can anybody teach me how can i do expand panel effect like
TourDeFlex in the VDividedBox. It's seem like Accordian effect but it
using VDividedBox.

Can anybody help me.

Best Regards,
Monali






--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



Re: [flexcoders] How to increase datagrid Last Column WIDTH

2009-02-05 Thread Jeffry Houser

 Columns are only resizable within DataGrid, and clicking / dragging 
columns does not change the width of the DataGrid. 

 If I understand correctly you want to be able to expand the DataGrid by 
clicking and dragging the last column; is that correct? 

 Off the top of my head, I don't know of any default way to do that. 

Dharmendra Chauhan wrote:
> HI All,
> I am struggling with last column of flex2 dataGrid.
> I have set HS policy to auto, all column are resizable except last.
> I can decrease its width but It does not allow me increase it.
>
> Does anybody know how STRECH last column widht to increase at at right 
> of the DG
>
> Thanks,
> Dharmendra  
>
>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>
>   

-- 
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust




[flexcoders] Using FABridge with SWFObject 2?

2009-02-05 Thread Keith Hughitt
Hi all,

I was wondering if anyone has been able to successful use SWFObject with
the Flex-Ajax Bridge (FABridge)?

The SWFObject wiki offers a modified version of FABridge.js is supposed
to resolve issues with supporting the FABridge, but I have not had any
luck with it. I have a simple Flex application with a function that
calls alert:


http://www.adobe.com/2006/mxml";
layout="vertical" width="640" height="480">
 
 
 
 


And here is what I have on the JavaScript side:

http://www.w3.org/TR/html4/strict.dtd";>

 
 FABridge Test
 
 
 
 
 swfobject.registerObject("myFlashContent", "9.0.0",
"expressInstall.swf");
 
 
 
 
 
 
 
 
 
 http://www.adobe.com/go/getflashplayer";>
 http://www.adobe.com/images/shared/download_buttons/get_flash_playe\
r.gif" alt="Get Adobe Flash player" />
 
 
 
 
 
 
 
 

I've tried a lot of different things with no success. Initially I
thought the problem was related to compatability issues jQuery, although
even by doing things manually It does not want to work. I also tried
manually setting the bridge to use via flashvars:


FABridge.testBridge.root();

But that did not do the trick either.

Finally, I noticed that with the above code, it seems like only one
external script, either FABridge.js or swfobject.js is loaded, depending
on which one comes first, according to Firebug. I.e. when swfobject.js
is loaded first, Firebug only sees it. When FABridge.js is loaded first,
Firebug only sees that.


Any ideas? Any advice would be greatly appreciated.

Thanks!
Keith





RE: [flexcoders] Re: Geting the 3dWall Pro to work as flex component ?

2009-02-05 Thread Wally Kolcz
It would probably be best for you to contact them regarding that issue. Most 
companies that make Flash widgets don't think about AIR.


From: "David Kramer" 
Sent: Thursday, February 05, 2009 10:47 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Geting the 3dWall Pro to work as flex component ? 

I read on their site that licensing is for 1 workstation and unlimited 
websiteshow does that work when your in the AIR environment?

- Original Message -

From: "Grant Davies" 

To: flexcoders@yahoogroups.com

Subject: RE: [flexcoders] Re: Geting the 3dWall Pro to work as flex component ?

Date: Thu, 5 Feb 2009 08:38:07 -0500

I've blogged how to get the 3dWall working as flex component using
the Flex Component kit for flash - here : 
http://theresidentalien.typepad.com/ginormous/2009/02/flashloaded-3dwall-working-in-flex-as-flex-component.html
 CheersGrant ...> b l u e t u b e i n t 
e r a
c t i v e..: Development solutions for
creatives :..: grant davies.: 404.428.6839 (c).: 404.921.9550 (F)>
gr...@bluetubeinteractive.comhttp://www.bluetubeinteractive.com From:
flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Amy
Sent: Wednesday, February 04, 2009 8:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Geting the 3dWall Pro to work as flex
component ? 

--- In flexcoders@yahoogroups.com,
"Grant Davies"  wrote:

>

> Thanks Amy,

> 

> 

> 

> I actually managed to get it to work as a Flex component in the 

end, it

> was pretty fiddly but once figure out its simple, I can create the

> 3dwall instance and add it to a view state or container and don't 

have

> ANY code in flash at all. But I still have complete code 

completion in

> flex from the generated swc. 

I chose to put some code in Flash to "clean up" the interface and 

make it more compatible with Flex.

> Basically my fla has the 3dwall in the library and I export a swc, 

pull

> into flex and wrap it in a UIComponent and I'm done.

> 

> 

> 

> I'm going to blog about how to set it up if you're interested I 

can let

> you know once I post.

That would be great. There's a user group I was supposed to speak to 

about this process, but it turns out that there are very few free 

Flash components that will accept any kind of a data source except 

the path to an XML file. Since I wasn't able to give them the 3D 

wall (obviously) and I couldn't find a free component that I could 

let them use for hands-on practice, I'm in the process of writing an 

example component I can use to demo.

The problem is that I can't stop myself from building it "right" for 

Flex in the first place, so I won't be able to demo all the things 

you have to overcome to work with a component that's not very robust.

I can point them to your blog post to get more info on that.

Thanks!

-Amy

No virus
found in this incoming message.

Checked by AVG - http://www.avg.com

Version: 8.0.233 / Virus Database: 270.10.16/1929 - Release Date: 2/3/2009 5:48
PM

<< image001.png >>

David Kramer, CISSP
davidkra...@consultant.com
480.710.1398
www.securepatterns.com





RE: [flexcoders] Re: Geting the 3dWall Pro to work as flex component ?

2009-02-05 Thread David Kramer
 I read on their site that licensing is for 1 workstation and unlimited
websiteshow does that work when your in the AIR environment?

  - Original Message -
  From: "Grant Davies"
  To: flexcoders@yahoogroups.com
  Subject: RE: [flexcoders] Re: Geting the 3dWall Pro to work as flex
  component ?
  Date: Thu, 5 Feb 2009 08:38:07 -0500

  I’ve blogged how to get the 3dWall working as flex component using
  the Flex Component kit for flash - here :

  
http://theresidentalien.typepad.com/ginormous/2009/02/flashloaded-3dwall-working-in-flex-as-flex-component.html

  Cheers

  Grant

  [IMAGE]

  ...

  › b l u e t u b e i n t e r a c t i v e.

  .: Development solutions for creatives :.

  .: grant davies

  .: 404.428.6839 (c)

  .: 404.921.9550 (F)

  › gr...@bluetubeinteractive.com

  http://www.bluetubeinteractive.com

  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
  On Behalf Of Amy
  Sent: Wednesday, February 04, 2009 8:28 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Geting the 3dWall Pro to work as flex
  component ?

  --- In flexcoders@yahoogroups.com, "Grant Davies"  wrote:
  >
  > Thanks Amy,
  >
  >
  >
  > I actually managed to get it to work as a Flex component in the
  end, it
  > was pretty fiddly but once figure out its simple, I can create the
  > 3dwall instance and add it to a view state or container and don't
  have
  > ANY code in flash at all. But I still have complete code
  completion in
  > flex from the generated swc.

  I chose to put some code in Flash to "clean up" the interface and
  make it more compatible with Flex.

  > Basically my fla has the 3dwall in the library and I export a swc,
  pull
  > into flex and wrap it in a UIComponent and I'm done.
  >
  >
  >
  > I'm going to blog about how to set it up if you're interested I
  can let
  > you know once I post.

  That would be great. There's a user group I was supposed to speak to
  about this process, but it turns out that there are very few free
  Flash components that will accept any kind of a data source except
  the path to an XML file. Since I wasn't able to give them the 3D
  wall (obviously) and I couldn't find a free component that I could
  let them use for hands-on practice, I'm in the process of writing an
  example component I can use to demo.

  The problem is that I can't stop myself from building it "right" for
  Flex in the first place, so I won't be able to demo all the things
  you have to overcome to work with a component that's not very robust.

  I can point them to your blog post to get more info on that.

  Thanks!

  -Amy

  No virus found in this incoming message.
  Checked by AVG - http://www.avg.com
  Version: 8.0.233 / Virus Database: 270.10.16/1929 - Release Date:
  2/3/2009 5:48 PM

   << image001.png >>



David Kramer, CISSP
davidkra...@consultant.com
480.710.1398
www.securepatterns.com


[flexcoders] How to increase datagrid Last Column WIDTH

2009-02-05 Thread Dharmendra Chauhan
HI All,
I am struggling with last column of flex2 dataGrid.
I have set HS policy to auto, all column are resizable except last.
I can decrease its width but It does not allow me increase it.

Does anybody know how STRECH last column widht to increase at at right 
of the DG

Thanks,
Dharmendra  

   



[flexcoders] ColorPicker - without the picker!

2009-02-05 Thread tchredeemed
I was wondering if I could build a flex app that has the SwatchPanel
by default, instead of having to click on the icon to have it drop down.

Yes/No?



RE: [flexcoders] Re: Array Collection

2009-02-05 Thread Tracy Spratt
If it is a dynamic object, you can use for..in or for..each loops to
enumerate all of the properties.

 

Note, If you have an object, like: var oLookup:Object =  {p1:"v1",
p2:"v2", pa:"va", pb:"vb"};

You can randomly access the properties like this:

var sPropertyName:String = "pa";

var sPropertyValue:String = oLookup[sPropertyName];

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of thelordsince1984
Sent: Thursday, February 05, 2009 6:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Array Collection

 

--- In flexcoders@yahoogroups.com 
, "thelordsince1984"  wrote:
>
> Hi, 
> 
> i've have an array collection of objects...every object is like this
one:
> 
> - id:path
> 
> private function create(id:String, path:String):void {
> var arrayCollection:ArrayCollection = new ArrayCollection();
> var o:Object = {id:path};
> arrayCollection.addItem(o);
> }
> 
> i would create a function that has a parameter, the id, and check if
> there is a correspondence between the parameter id function and that
> one into the array collection. In this case i would also trace the
> path value...
> 
> 
> 
> can you help me?
> 
> thanks 
> Regards
> Lorenzo
>

it's ok..

instead if i would parse an object that contains strings?

for example i've an object that has three strings like this

- test1, test2, test3 

so i would trace strings separately..how can i do this?





RE: [flexcoders] Re: Prevent ItemRenderer click from selecting row?

2009-02-05 Thread Alex Harui
Sure, because it set up its listener first.  You can set your listener at a 
higher priority.  I'd still start with my list selection example on my blog.  
You should be able to tweak it to just not allow selection if the event.target 
is a button.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Dennis Falling
Sent: Wednesday, February 04, 2009 10:20 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Prevent ItemRenderer click from selecting row?


That's what I was trying- stopping propagation and preventing default.  
Apparently the datagrid gets the event first.
On Wed, Feb 4, 2009 at 10:26 PM, arieljake 
mailto:arielj...@yahoo.com>> wrote:

Can you have the items catch the click event of the button and prevent
propagation?


--- In flexcoders@yahoogroups.com, Dennis 
Falling  wrote:
>
> I'm using a DataGrid. But the problem is that I want the selection
behavior
> to behave normally, except for when the buttons are clicked.
> Thanks
>
> On Wed, Feb 4, 2009 at 10:09 AM, Fotis Chatzinikos <
> fotis.chatzini...@...> wrote:
>
> > if you are using a list or tile list there is a property selectable
> > which you can make false.
> >
> >
> >
> > On Wed, Feb 4, 2009 at 6:05 PM, Dennis Falling  wrote:
> >
> >> Is there one involving item renderers? I believe I scoured
your site
> >> pretty thoroughly, but the only time I see selection behavior being
> >> overriden is inside an extended list or DataGrid. Is it possible
to pull
> >> this off with only an item renderer?
> >>
> >> Thanks
> >>
> >> On Wed, Feb 4, 2009 at 1:16 AM, Alex Harui  wrote:
> >>
> >>> There a example on preventing list selection on my blog
> >>>
> >>>
> >>>
> >>> *From:* flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] *On
> >>> Behalf Of *Dennis Falling
> >>> *Sent:* Tuesday, February 03, 2009 5:30 PM
> >>> *To:* flexcoders@yahoogroups.com
> >>> *Subject:* Re: [flexcoders] Re: Prevent ItemRenderer click from
> >>> selecting row?
> >>>
> >>>
> >>>
> >>> That would work for invalidating my selection, but I simply want the
> >>> selection to never occur. That way if something was previously
selected, it
> >>> isn't altered.
> >>>
> >>> On Tue, Feb 3, 2009 at 5:08 PM, fourctv  wrote:
> >>>
> >>> have you tried datagrid.selectedItems=null?
> >>>
> >>>
> >>>
> >>> --- In flexcoders@yahoogroups.com
http://40yahoogroups.com>>, Dennis

> >>> Falling  wrote:
> >>> >
> >>> > I have an ItemRenderer with buttons in it. In the click listener
> >>> functions
> >>> > for these buttons, I call event.stopImmediatePropagation (and
> >>> > preventDefault, though that doesn't seem relevant), but the row is
> >>> still
> >>> > selected. How can I prevent it from receiving the click and
> >>> highlighting
> >>> > itself?
> >>> > Thanks.
> >>> >
> >>>
> >>>
> >>>
> >>>
> >>
> >
> >
> > --
> > Fotis Chatzinikos, Ph.D.
> > Founder,
> > Phinnovation
> > fotis.chatzini...@...,
> >
> >
> >
>




RE: [flexcoders] Custom List Item Render to have multiline (so variable Height)

2009-02-05 Thread Alex Harui
TextArea defaults to editable.  Use Text, or just set wordWrap=true and use the 
default renderer.  It knows how to do multiline

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Flap Flap
Sent: Thursday, February 05, 2009 1:12 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Custom List Item Render to have multiline (so 
variable Height)


Thanks guys for all that clues.

I will give a try and send feedback.
For info, I've just used TextArra for a multiline text item, I don't need any 
editable behavior on it.

Thx
Benoit aka Flapflap



RE: [flexcoders] Displaying UIComponents vertically

2009-02-05 Thread Alex Harui
Each child of VBox must report have either its measuredWidth/Height or 
explicitWidth/Height set, otherwise the VBox doesn't know how big they are

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of annelie2008
Sent: Thursday, February 05, 2009 4:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Displaying UIComponents vertically


Hi,

I'm having trouble with the layout of the musical score I'm
displaying. It's generated from an xml file and I want the staves to
be placed on top of each other but I can't make it work. I have a
class which draws out the lines and the notes on it, so I instantiate
that class, create the lines and notes, then create a UIComponent to
add it to. There's three staves, so I do this for all three, then I
add them all to a VBox which I display. I thought this would mean
they'd be stacked on top of each other, but they're horizontally
placed (the second two a little bit lower than the first for some
reason). I'm assuming I'm missing something really obvious, so I'd be
grateful if anyone could point me in the right direction.

Here's the code:

http://www.adobe.com/2006/mxml";
layout="vertical"
initialize="initializeHandler()"
horizontalAlign="left">









Thanks,

Annelie



RE: [flexcoders] Re: Login / Password Form

2009-02-05 Thread Tracy Spratt
You could also store your authentication credentials in a file(xml?) on
the server.

 

The starting place is to choose your back-end platform/language(Java,
php, CF,.net, etc).  Then choose the RPC protocol(RemoteObject,
HTTPService, WebService) you will use between flex and that platform.
Then choose your Flex client UI style( ViewStack, pop-up, etc.)

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wally Kolcz
Sent: Thursday, February 05, 2009 9:53 AM
To: flexcoders@yahoogroups.com
Subject: re: [flexcoders] Re: Login / Password Form

 

I used a database and RemoteObject/Web Services to check a CFC with the
query to see if the username and password matches and returns any info I
need then I have something like this:

public function loginHandler(e:ResultEvent):void {
userData = e.result as ArrayCollection;
if (userData.length == 1){
 //Whatever you want to do.
}else{
username_txt.text = "";
password_txt.text = "";
Alert.show("Incorrect username and/or password.
Please try again.","Login Error");
}

}

I hide the login box and show the rest of the app which I have wrapped
in a canvas which visible is set to false.

If you dont want to have a database you could use an Array or Object to
store username and passwords hardcoded and check against them. Or if you
have just one username/password you could just use something like:

public function login(username:String, password:String):void {
if (username == "someusername" || password =
"somepassword"){
  //Your code to do whatever you want.
}else{
username_txt.text = "";
password_txt.text = "";
Alert.show("Incorrect username and/or password.
Please try again.","Login Error");
}

}



From: "valdhor" 
Sent: Thursday, February 05, 2009 6:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Login / Password Form

These threads should get you started:

http://www.nabble.com/Login-Registration-Page---tp21747714p21748295.html
 
http://www.nabble.com/flex-login-popup-help-needed-please-tp2077
2482p20833766.html
 

HTH

Steve

--- In flexcoders@yahoogroups.com 
, "christophe_jacquelin"
 wrote:
>
> Hello, 
> 
> I am searching a code source exemple for a classical login / password 
> form in a flex application.
> 
> Did I need absolutely a database to store Passwords ? 
> 
> Thank you, 
> Christophe,
>




 





RE: [flexcoders] Invoking other module's actions

2009-02-05 Thread Alex Harui
I'm still confused.  Importing and using a module in the main app links the 
module into the main app defeating the point of modules.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Wally Kolcz
Sent: Thursday, February 05, 2009 5:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Invoking other module's actions


Sorry if that was a little confusing...Here is the scenario.

I have a module (myProjects) that has a viewstack (projectsVS) that allows me 
to switch between a 2 different sections (indexes). I want to, when the use 
logs out, make sure that the module's viewstack is set to selectedIndex=0, so 
when the user logs back in, its back on the first view in the stack...does that 
make sense.

So, in my main application I imported the module (import 
edu.umich.mods.myProjects;) and in the  logout function I tried to use: 
myProjects.projectsVS.selectedIndex=0;

Funny thing is that Flex Builder's code hinting showed each piece as I typed 
it, but when I went to run it I get this error:

1119: Access of possibly undefined property projectsVS through a reference with 
static type Class.

Any ideas? Better way to do this? Thanks.



[flexcoders] Re: Hand Cursor and datagrid

2009-02-05 Thread Tim Hoff

Hi Alex,

The only problems with setting it on the renderers, is the vertical gap
between the renderer and the row.  The cursor will flicker back and
forth between the hand and pointer as you move it up and down the list. 
Perhaps the highlight indicator is a possible place to try.

-TH

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Set it on the renderers
>
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On Behalf Of shafram
> Sent: Tuesday, February 03, 2009 7:32 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Hand Cursor and datagrid
>
>
> I have a datagrid and for each row I would like to show the hand
> cursor (to indicate to users that it is clickable). I've tried setting
> useHandCursor and buttonMode to true on the datagrid but that makes
> the entire datagrid show the hand cursor. Has anyone done this before?
> Is there a way to do this?
>





RE: [flexcoders] XML - What var type can I use for my XML nodes?

2009-02-05 Thread Tracy Spratt
[Bindable]public var _xmlVar:XML;

 

private function init():void{

 _xmlVa = testID.result.(@now=='today')[0]; //NOTE the array[0]
brackets. 

...

 

All e4x expessions return an XMLList, even if there is only one node, so
you must specify that node toput it in an XML variable.

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of sailorsea21
Sent: Thursday, February 05, 2009 10:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] XML - What var type can I use for my XML nodes?

 

Hi everyone, I have the following:




What var type can I use for "testID.result.(@now=='today')" to simply 
my text string?

I would like to have the following:

[Bindable]
public var xmlvar:String = testID.result.(@now=='today');



Thanks.

David





[flexcoders] Re: Prevent ItemRenderer click from selecting row?

2009-02-05 Thread Tim Hoff

Yes, you'd have to extend DataGrid and override the mouseDownHandler and
mouseUpHandler functions.  if ( event.target is Button ) return;

-TH

--- In flexcoders@yahoogroups.com, Dennis Falling  wrote:
>
> That's what I was trying- stopping propagation and preventing default.
> Apparently the datagrid gets the event first.
>
> On Wed, Feb 4, 2009 at 10:26 PM, arieljake arielj...@... wrote:
>
> > Can you have the items catch the click event of the button and
prevent
> > propagation?
> >
> >
> > --- In flexcoders@yahoogroups.com ,
Dennis
> > Falling dfalling@ wrote:
> > >
> > > I'm using a DataGrid. But the problem is that I want the selection
> > behavior
> > > to behave normally, except for when the buttons are clicked.
> > > Thanks
> > >
> > > On Wed, Feb 4, 2009 at 10:09 AM, Fotis Chatzinikos <
> > > fotis.chatzinikos@ wrote:
> > >
> > > > if you are using a list or tile list there is a property
selectable
> > > > which you can make false.
> > > >
> > > >
> > > >
> > > > On Wed, Feb 4, 2009 at 6:05 PM, Dennis Falling dfalling@ wrote:
> > > >
> > > >> Is there one involving item renderers? I believe I scoured
> > your site
> > > >> pretty thoroughly, but the only time I see selection behavior
being
> > > >> overriden is inside an extended list or DataGrid. Is it
possible
> > to pull
> > > >> this off with only an item renderer?
> > > >>
> > > >> Thanks
> > > >>
> > > >> On Wed, Feb 4, 2009 at 1:16 AM, Alex Harui aharui@ wrote:
> > > >>
> > > >>> There a example on preventing list selection on my blog
> > > >>>
> > > >>>
> > > >>>
> > > >>> *From:* flexcoders@yahoogroups.com

> > [mailto:flexcoders@yahoogroups.com ]
*On
> > > >>> Behalf Of *Dennis Falling
> > > >>> *Sent:* Tuesday, February 03, 2009 5:30 PM
> > > >>> *To:* flexcoders@yahoogroups.com

> > > >>> *Subject:* Re: [flexcoders] Re: Prevent ItemRenderer click
from
> > > >>> selecting row?
> > > >>>
> > > >>>
> > > >>>
> > > >>> That would work for invalidating my selection, but I simply
want the
> > > >>> selection to never occur. That way if something was previously
> > selected, it
> > > >>> isn't altered.
> > > >>>
> > > >>> On Tue, Feb 3, 2009 at 5:08 PM, fourctv fourctv@ wrote:
> > > >>>
> > > >>> have you tried datagrid.selectedItems=null?
> > > >>>
> > > >>>
> > > >>>
> > > >>> --- In flexcoders@yahoogroups.com

> > , Dennis
> > > >>> Falling  wrote:
> > > >>> >
> > > >>> > I have an ItemRenderer with buttons in it. In the click
listener
> > > >>> functions
> > > >>> > for these buttons, I call event.stopImmediatePropagation
(and
> > > >>> > preventDefault, though that doesn't seem relevant), but the
row is
> > > >>> still
> > > >>> > selected. How can I prevent it from receiving the click and
> > > >>> highlighting
> > > >>> > itself?
> > > >>> > Thanks.
> > > >>> >
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>
> > > >
> > > >
> > > > --
> > > > Fotis Chatzinikos, Ph.D.
> > > > Founder,
> > > > Phinnovation
> > > > Fotis.Chatzinikos@,
> > > >
> > > >
> > > >
> > >
> >
> >
> >
>





[flexcoders] Multiple tool tip styles

2009-02-05 Thread djhatrick
How do i apply multiple tooltip styles to a flex app? 

Thanks,
patrick



By the way: YahooGroups search sucks, ugh, i hate it, always busy, why
do we have to have this here?



RE: [flexcoders] Java enum in Flex3

2009-02-05 Thread Maciek Sakrejda
Thanks, Seth. I'd read the article, but your e-mail clarifies the
issues. I've looked over our usage and I think we're safe for now, but
this is sort of a time bomb, and it might make sense to fall back to
just Strings. The only alternative I see is ensuring to use .equals()
everywhere, which is tricky, especially when dealing with collections
and other data structures (since they'll already be using the standard
'==' equality checks).
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Seth Hodgson 
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com 
Subject: RE: [flexcoders] Java enum in Flex3
Date: Wed, 4 Feb 2009 21:14:29 -0800

Hi Maciek,

I don't know anything about Granite Data Services but a quick google
search returns this: http://www.graniteds.org/jira/browse/GDS-228

The reason why they're getting multiple instances of their "enum" AS
classes during deserialization is layed out in the post I linked to
below - without a readResolve() hook in the Player there's no way to
support reading singletons out of the AMF stream.

This means that you have potentially many duplicate instances of each
enum value floating around in the AVM. It looks like they've defined an
equals() method as an attempt to work around this, but while that's a
standard method defined on Java's base Object class there is no equals()
method defined in the core ECMAScript/ActionScript libraries. If I were
using client side enums in ActionScript, I'd expect simple equality
checks to work correctly and they won't with this approach.

Each of these classes will also add a bit to your swf size, but that's a
minor concern unless you're using tons of enums :)

I don't know what other value these classes may provide, perhaps some
help with data validation, but be careful in your code anywhere you're
expecting them to actually be singletons because they generally won't
be.

Best,
Seth

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Maciek Sakrejda
Sent: Wednesday, February 04, 2009 5:38 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Java enum in Flex3

Interesting. Any thoughts on Granite Data Services' approach? There is a
custom externalization process for Java Enum objects, and a granite Enum
class in ActionScript that all your (generated) Enums extend. The enum
class takes care of reading/writing. The writeExternal() method just
writes the name of the Enum; readExternal() tries to find the name of
the object in the constants defined by the Enum. The RemoteAlias
metadata is set up as for a standard Java class.

Are we asking for trouble in using this method? Is there something
inherently dangerous here?
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Seth Hodgson 
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com 
Subject: RE: [flexcoders] Java enum in Flex3
Date: Wed, 4 Feb 2009 16:20:33 -0800

BlazeDS and LCDS roundtrip Java enums to the client and back as Strings.
That's the only good option at present, and here's an in-depth
explanation: http://greetingsfromoakland.blogspot.com/2009/02/enums.html

Best,
Seth

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of sunmoorthy1
Sent: Monday, December 29, 2008 1:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Java enum in Flex3

How to convert java enum values into Flex3 object.
Any one went thru this problem?
Please give your experties?

Sundar 









Re: [flexcoders] Problem in Streaming Live data using Flash Media Server

2009-02-05 Thread Nate Beck
When you say... "present in the same directory".. which directory are you
referring to?  The FLV file resides in the same directory as your
application?
It's been a while since I've used FMS... but in Wowza Media Server there is
an audio folder where all of the stream FLV files are located.

On Thu, Feb 5, 2009 at 4:47 AM, akila_ksri  wrote:

>   I have the client application and the FMS running on the same machine,
> the client app connects to the server successfully but fails to play
> any content(Pre-recorded flv/swf) which is also present in the same
> directory using NetStream.play("contentPath"); and i always get
> "NetStream.Play.StreamNotFound"
> Could anyone tell me if i am doing anything wrong?
>
> Any help would be greatly appreciated.
>
> Thanks in advance,
> Akila
>
>  
>



-- 

Cheers,
Nate

http://blog.natebeck.net


Re: [flexcoders] Memory leak in mx:HTML

2009-02-05 Thread Nate Beck
I just started with with the Adobe AIR HTML component this week.  I hadn't
noticed the memory leak, but of course I'm actively in development.  I'll
have a look at it today to see if it's happening to me as well.
Also, mx:HTML is a Flex wrapper for HTMLLoader, I wonder if the same memory
leak occurs when you just a straight HTMLLoader?

I also voted on the bug, since this is something that should be looked at.

Cheers

On Thu, Feb 5, 2009 at 3:25 AM, Tom Chiverton
wrote:

>I seem to be able to reproduce a leak in mx:HTML by just placing it on
> the
> main application, as per https://bugs.adobe.com/jira/browse/SDK-19119
>
> Has anyone else seen this ?
>
> --
> 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 together
> with a list of those non members who are referred to as partners. We use the
> word "partner" to refer to a member of the LLP, or an employee or consultant
> with equivalent standing and qualifications. Regulated by the Solicitors
> Regulation Authority.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above and
> may be confidential or legally privileged. If you are not the addressee you
> must not read it and must not use any information contained in nor copy it
> nor inform any person other than Halliwells LLP or the addressee of its
> existence or contents. If you have received this email in error please
> delete it and notify Halliwells LLP IT Department on 0870 365 2500.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>
>  
>



-- 

Cheers,
Nate

http://blog.natebeck.net


Re: [flexcoders] C and ActionScript

2009-02-05 Thread Nate Beck
Convert your C code into AS3 bytecode using Alchemy.  Alchemy will generate
a SWC file which you can use within Flex / ActionScript

On Thu, Feb 5, 2009 at 2:05 AM, Sam Lai  wrote:

>   You can't, without a whole lot of plumbing in between, or possibly
> using the experimental Alchemy set of tools (labs.adobe.com).
>
> 2009/2/5 christophe_jacquelin 
> 
> >:
>
> > Hello,
> >
> > How to call a function of a library in C, from a line code in a flex
> > application ?
> >
> > Thank you,
> > Christophe,
> >
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
> >
> >
> >
> >
>
>  
>



-- 

Cheers,
Nate

http://blog.natebeck.net


[flexcoders] XML - What var type can I use for my XML nodes?

2009-02-05 Thread sailorsea21
Hi everyone, I have the following:




What var type can I use for "testID.result.(@now=='today')" to simply 
my text string?

I would like to have the following:

[Bindable]
public var xmlvar:String = testID.result.(@now=='today');



Thanks.

David



re: [flexcoders] Re: Login / Password Form

2009-02-05 Thread Wally Kolcz
I used a database and RemoteObject/Web Services to check a CFC with the query 
to see if the username and password matches and returns any info I need then I 
have something like this:

public function loginHandler(e:ResultEvent):void {
userData = e.result as ArrayCollection;
if (userData.length == 1){
 //Whatever you want to do.
}else{
username_txt.text = "";
password_txt.text = "";
Alert.show("Incorrect username and/or password. Please try 
again.","Login Error");
}

}

I hide the login box and show the rest of the app which I have wrapped in a 
canvas which visible is set to false.

If you dont want to have a database you could use an Array or Object to store 
username and passwords hardcoded and check against them. Or if you have just 
one username/password you could just use something like:

public function login(username:String, password:String):void {

if (username == "someusername" || password = "somepassword"){

  //Your code to do whatever you want.

}else{

username_txt.text = "";

password_txt.text = "";

Alert.show("Incorrect username and/or password. Please try 
again.","Login Error");

}

}


From: "valdhor" 
Sent: Thursday, February 05, 2009 6:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Login / Password Form 

These threads should get you started:

http://www.nabble.com/Login-Registration-Page---tp21747714p21748295.html
http://www.nabble.com/flex-login-popup-help-needed-please-tp20772482p20833766.html

HTH

Steve

--- In flexcoders@yahoogroups.com, "christophe_jacquelin"

 wrote:

>

> Hello, 

> 

> I am searching a code source exemple for a classical login / password 

> form in a flex application.

> 

> Did I need absolutely a database to store Passwords ? 

> 

> Thank you, 

> Christophe,

>





Re: [flexcoders] Navigate in Flex application

2009-02-05 Thread Howard Fore
What I did is largely what's described at the bottom of
http://livedocs.adobe.com/flex/3/html/help.html?content=navigators_3.html.
Each of my views in the viewStack is a different .MXML file/component. The
main file has the viewstack filling the screen, instead of the small area of
the screen shown in the example.

On Thu, Feb 5, 2009 at 4:49 AM, christophe_jacquelin <
christophe_jacque...@yahoo.fr> wrote:

> How to navigate between pages of an application in flex, as we can do
> in html ?




-- 
Howard Fore, howard.f...@hofo.com
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood


[flexcoders] Re: Login / Password Form

2009-02-05 Thread valdhor
These threads should get you started:

http://www.nabble.com/Login-Registration-Page---tp21747714p21748295.html
http://www.nabble.com/flex-login-popup-help-needed-please-tp20772482p20833766.html


HTH



Steve


--- In flexcoders@yahoogroups.com, "christophe_jacquelin"
 wrote:
>
> Hello, 
> 
> I am searching a code source exemple for a classical login / password 
> form in a flex application.
> 
> Did I need absolutely a database to store Passwords ? 
> 
> Thank you, 
> Christophe,
>




Re: [flexcoders] Re: Simplest way to create a webservice and deploy

2009-02-05 Thread Vik
Big Thankx to all you guys...especially to Tracy & Nate

Yes I really did not need a webservice to achieve what I was looking for. I
was just in need of a xml response which I could achieve by simply creating
a servlet which sends me a response as an XML.

Thanks again!!!

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


On Thu, Feb 5, 2009 at 7:23 PM, johnlukemills  wrote:

>   If what you want to do is deploy a web service on your server, the
> simplest way by far is to use ColdFusion. The Cfcomponent from the
> ColdFusion 8 developers guide is all you need.
>
> 
>  name = "echoString"
> returnType = "string"
> output = "no"
> access = "remote">
> 
> 
> 
> 
>
>  
>


[flexcoders] Re:Adjusting Linear Axis minimum and maximum dynamically

2009-02-05 Thread Gilbert Mizrahi
Check the range you get when getting data from the server.

I am assuming -70 to 25 are values for the X axis.

Since your min value is -70 and your max value is 25 set a dummy point at 70
with Y value = "" (empty). 

Hence the dummy value will not be plotted, but the X Axis will go from -70
to 70.


The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material. Any 
review, retransmission, dissemination or other use of, or taking of any action 
in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. If you received this in error, please contact 
the sender and delete the material from any computer.


[flexcoders] Re: Passing values using mx:WebService

2009-02-05 Thread valdhor
Well, that's something I could do (I pored over lots of WSDL files
whilst learning Web Service clients and servers). I have become
somewhat of an expert on building clients based just on a WSDL file.
Post the link to the WSDL.



--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> Well, what arguments does the Assess operation/method require?  Don't
> send more or less.
> 
>  
> 
> I have been able to work with WebService because I do both ends, but I
> am not good enough to offer to intrepret your wsdl for you.  Maybe
> someone else here could.
> 
>  
> 
> Tracy Spratt 
> Lariat Services 
> 
> Flex development bandwidth available 
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of m_ollman
> Sent: Wednesday, February 04, 2009 6:33 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Passing values using mx:WebService
> 
>  
> 
> FYI ws call
> 
> private function button_click():void { 
> var wsOperation:Operation = ws.Assess;
> wsOperation.resultFormat = "e4x"; 
> var atCall:AsyncToken; 
> var sQ2:String = Q2.selectedItem.data;
> trace (sQ2); 
> var sQ5:String = Q5.selectedItem.data; 
> trace (sQ5); 
> var oRequest:Object = {Q2: sQ2, Q5: sQ5}; 
> atCall = wsOperation.send(oRequest); 
> atCall.callId = sCallId; 
> }
>




[flexcoders] Re: Custom Event and bubbling phase

2009-02-05 Thread valdhor
You can listen to any event in the event flow chain - you just need to
make sure which chain you are listening to.

You are using the popupmanager so you need to use the chain that is
based on systemmanager.

Is there any particular reason the "popup panel" cannot handle the
event itself?



--- In flexcoders@yahoogroups.com, "thelordsince1984"  wrote:
>
> --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> >
> > I assume he means that the event never makes it to the loadThisModule
> > function.
> > 
> > Also, I assume he means that he uses the popupmanager to "create a
> > popup panel".
> > 
> > With that said, IIRC, the application is not in the bubbling chain and
> > will never receive an event from a popup. Again, IIRC, you would need
> > the eventlistener on the systemmanager as that is the base of a popup.
> > 
> > Please correct me if I am wrong.
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
> > >
> > > First, tell us what you mean by "it doesn't work".
> > > 
> > >  
> > > 
> > > Then:  That looks ok, does it work with a base Event? (a side
note, in
> > > the handler, you can access any public property of the panel via the
> > > event.target reference, so you do not *have* to use a custom
event. )
> > > 
> > >  
> > > 
> > > What part of the above do I need to explain further?
> > > 
> > > Tracy Spratt 
> > > Lariat Services 
> > > 
> > > Flex development bandwidth available 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
> [mailto:flexcod...@yahoogroups.com] On
> > > Behalf Of thelordsince1984
> > > Sent: Tuesday, February 03, 2009 3:27 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Re: Custom Event and bubbling phase
> > > 
> > >  
> > > 
> > > --- In flexcoders@yahoogroups.com
> 
> > > , "Tracy Spratt"  wrote:
> > > >
> > > > That looks ok, does it work with a base Event? (a side note,
in the
> > > > handler, you can access any public property of the panel via the
> > > > event.target reference, os you do not have to use a custom
event. )
> > > > 
> > > > 
> > > > 
> > > > Tracy Spratt 
> > > > Lariat Services 
> > > > 
> > > > Flex development bandwidth available 
> > > > 
> > > > 
> > > > 
> > > > From: flexcoders@yahoogroups.com
> 
> > > [mailto:flexcoders@yahoogroups.com
> 
> > > ] On
> > > > Behalf Of thelordsince1984
> > > > Sent: Tuesday, February 03, 2009 11:38 AM
> > > > To: flexcoders@yahoogroups.com
>  
> > > > Subject: [flexcoders] Custom Event and bubbling phase
> > > > 
> > > > 
> > > > 
> > > > Hi,
> > > > 
> > > > i have a main application and there i create a popup panel...
> > > > 
> > > > from the popup panel i dispacth a custom event like this
> > > > 
> > > > var e1:CustomLoadEvent = new CustomLoadEvent("loadModule", true);
> > > > dispatchEvent(e1);
> > > > 
> > > > where loadModule is the type and the value true stands for
bubbles..
> > > > 
> > > > then at the creationcomplete event within the main application i
> > > > create an eventlisteners for the event
> > > > 
> > > > addEventListener("loadModule", loadThisModule);
> > > > 
> > > > the loadThisModule function simple trace a string..
> > > > 
> > > > but it doesn't work!!Why?
> > > > 
> > > > Thanks in advance
> > > > 
> > > > Regards Lorenzo
> > > >
> > > thanks for the reply..
> > > 
> > > CustomLoadEvent is a custom event, it extends Event class...but
> > > doesn't work..i don't know why...
> > > in this class i also override the clone method...
> > > 
> > > the CustomLoadEvent class has a public properties...i omit it in
> > > dispatchevent function for simplicity..
> > > 
> > > the function loadThisModule catchs the event in this manner
> > > 
> > > private function loadThisModule(event:CustomLoadEvent):void{
> > > trace(event.identification);
> > > }
> > > where identification is the public property of customloadevent
class.
> > > 
> > > thanks in advance
> > > 
> > > Regards Lorenzo
> > >
> >
> the first two assumptions are correct...
> 
> so when i use popmanager i cann't listen to popup event in the event
> flow chain, is it correct?
> 
> thanks again
> 
> Regrads 
> Lorenzo
>




[flexcoders] Re: Simplest way to create a webservice and deploy

2009-02-05 Thread johnlukemills
If what you want to do is deploy a web service on your server,  the
simplest way by far is to use ColdFusion.  The Cfcomponent from the
ColdFusion 8 developers guide is all you need.












[flexcoders] Re: Simplest way to create a webservice and deploy

2009-02-05 Thread valdhor
Tracy

I have been told before that I take things a little too literally.

I should have thought through just what Vik really wanted rather than
just answer the question.

Well done for coming to the right conclusion.



--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> Yes, Web Services can be difficult.
> 
>  
> 
> But, we need to be clear on our language.  Vik, when you use the words
> "web service" are you using them in the specific, Flex sense, meaning
> using the SOAP xml protocol?
> 
>  
> 
> Or are you using the words web service in the more general sense of
> accessing data over the internet?
> 
>  
> 
> SOAP based WebService is compicated because the format provides for
> anonymous third parties to use the service with only the wsdl as
> documentation.  If you ae not planning to make your back-end business
> logic tier available to anonymous third parties, then you do not nead
> SOAP.
> 
>  
> 
> The easiest way to deliver data over the internet is to use HTTPService,
> which is XML over HTTP.  This is what "AJAX" apps often use.
> 
>  
> 
> You would simply build xml (as an object or string) and pass it back to
> Flex.  You will get exactly the xml you build, unlike SOAP, that wraps
> your data in a bunch of other stuff.  Of course you wont get any data
> type information, but since you wrote the service you will know the data
> types.
> 
>  
> 
> I have not done this with java, but have done it using a JSP page.
> 
> http://www.cflex.net/showFileDetails.cfm?ObjectID=556
> 
>  
> 
> Tracy Spratt 
> Lariat Services 
> 
> Flex development bandwidth available 
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of valdhor
> Sent: Wednesday, February 04, 2009 9:29 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Simplest way to create a webservice and deploy
> 
>  
> 
> As far as I know there is no simple way to create a web service. I
> thought the easiest way would be to use the built-in functionality of
> PHP (Should only take a few lines). I found out the hard way that it
> is not that simple. It took me months of research and a lot of
> tinkering (Not to mention a few leaps of faith) on my part to figure
> it out.
> 
> When I started learning Java a few months ago, I used that tutorial to
> jump start my understanding of Web Services in Java.
> 
> If you are an absolute beginner, I would suggest reading up on WSDL
> files. Once you know enough, try to create a WSDL file for your Web
> Service (You are going to need one when you deploy your service). Once
> you can create a WSDL, you are well on your way to understanding how
> to build a web service and deploy it.
> 
> --- In flexcoders@yahoogroups.com 
> , Vik  wrote:
> >
> > Hmm
> > I think this is not at least the simplest way to start with
> especially for a
> > beginner. Any other ideas?
> > Thankx and Regards
> > 
> > Vik
> > Founder
> > www.sakshum.com
> > www.sakshum.blogspot.com
> > 
> > 
> > On Wed, Feb 4, 2009 at 12:51 AM, valdhor wrote:
> > 
> > > http://java.sun.com/webservices/docs/1.6/tutorial/doc/
>   ?
> > >
> > > --- In flexcoders@yahoogroups.com
>   ,
> Vik
> > >  wrote:
> > > >
> > > > Hie
> > > > I am very new to web services. My very simple requirement is to
> > > > return the records from a db table as an xml when i invoke a ws
> from
> > > my flex
> > > > application.
> > > >
> > > > I have already code ready which is having a java method fetchRow()
> > > which
> > > > returns a List of objects (rows).
> > > >
> > > > Any idea how to about creating and deploying it as a web service
> > > >
> > > > Thankx and Regards
> > > >
> > > > Vik
> > > > Founder
> > > > www.sakshum.com
> > > > www.sakshum.blogspot.com
> > > >
> > >
> > > 
> > >
> >
>




[flexcoders] Invoking other module's actions

2009-02-05 Thread Wally Kolcz

Sorry if that was a little confusing...Here is the scenario.

I have a module (myProjects) that has a viewstack (projectsVS) that allows me 
to switch between a 2 different sections (indexes). I want to, when the use 
logs out, make sure that the module's viewstack is set to selectedIndex=0, so 
when the user logs back in, its back on the first view in the stack...does that 
make sense.

So, in my main application I imported the module (import 
edu.umich.mods.myProjects;) and in the  logout function I tried to use: 
myProjects.projectsVS.selectedIndex=0;

Funny thing is that Flex Builder's code hinting showed each piece as I typed 
it, but when I went to run it I get this error:

1119: Access of possibly undefined property projectsVS through a reference with 
static type Class.

Any ideas? Better way to do this? Thanks. 




[flexcoders] Re: Adding styles to UIComponents

2009-02-05 Thread Amy
--- In flexcoders@yahoogroups.com, "superbokbok"  
wrote:
>
> 
> > http://livedocs.adobe.com/flex/3/html/skinstyle_3.html
> > 
> > There's no reason you can't call your style "backgroundImage."
> >
> Nice link :) I tried to implement code as per the examples in the link
> page, but the problem is I can never get an image to show as the
> background of a UIComponent! This would let me alter the image based
> on different stylesheets which are loaded at runtime. 
> 
> The way I do it now, I add an HBox to a UIComponent and set that as
> the bkg and add the styleName to that. I must be missing something
> somewhere to enable a background image on a UIComponent. Again the
> reason for using a UIComponent is that it's lighter.

Yes, there's no advantage to wrapping an HBox in a UIComponent.  If 
you're up for some code, you could pull in HaloBorder and use that.  It 
simplifies adding container-like styles to a UIcomponent.

You could also just use a Loader and load the image into that, based on 
the style.

That example was just the tip of the iceberg of what's possible to do--
you need to use your creativity and research skills to figure out how 
to make the specific thing you're aiming for happen.

If you don't feel you're ready for that, I'd use a Canvas with 
constraint based layouts.  That's at least lighter than HBox.
-Amy



RE: [flexcoders] Re: Geting the 3dWall Pro to work as flex component ?

2009-02-05 Thread Grant Davies
I've blogged how to get the 3dWall working as flex component using the
Flex Component kit for flash - here :

 

http://theresidentalien.typepad.com/ginormous/2009/02/flashloaded-3dwall
-working-in-flex-as-flex-component.html

 

Cheers

Grant

 

 

...

> b l u e t u b e i n t e r a c t i v e.

.: Development solutions for creatives :.

.: grant davies

.: 404.428.6839 (c)

.: 404.921.9550 (F)

> gr...@bluetubeinteractive.com

http://www.bluetubeinteractive.com

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Amy
Sent: Wednesday, February 04, 2009 8:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Geting the 3dWall Pro to work as flex
component ?

 

--- In flexcoders@yahoogroups.com 
, "Grant Davies"  wrote:
>
> Thanks Amy,
> 
> 
> 
> I actually managed to get it to work as a Flex component in the 
end, it
> was pretty fiddly but once figure out its simple, I can create the
> 3dwall instance and add it to a view state or container and don't 
have
> ANY code in flash at all. But I still have complete code 
completion in
> flex from the generated swc. 

I chose to put some code in Flash to "clean up" the interface and 
make it more compatible with Flex.

> Basically my fla has the 3dwall in the library and I export a swc, 
pull
> into flex and wrap it in a UIComponent and I'm done.
> 
> 
> 
> I'm going to blog about how to set it up if you're interested I 
can let
> you know once I post.

That would be great. There's a user group I was supposed to speak to 
about this process, but it turns out that there are very few free 
Flash components that will accept any kind of a data source except 
the path to an XML file. Since I wasn't able to give them the 3D 
wall (obviously) and I couldn't find a free component that I could 
let them use for hands-on practice, I'm in the process of writing an 
example component I can use to demo.

The problem is that I can't stop myself from building it "right" for 
Flex in the first place, so I won't be able to demo all the things 
you have to overcome to work with a component that's not very robust.

I can point them to your blog post to get more info on that.

Thanks!

-Amy



No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.233 / Virus Database: 270.10.16/1929 - Release Date:
2/3/2009 5:48 PM

<>

Re: [flexcoders] Re: mx:Text maxWidth

2009-02-05 Thread Josh McDonald
Ack, I've just this minute come up on the same thing. This is annoying as
hell, I've used maxwidth all over the place without noticing it wasn't
working until now. What I want is to have my text centered if it's narrow,
and left justified (+ wrapped of course) if it exceeds maxWidth.

I need this, so I've created a bug:

https://bugs.adobe.com/jira/browse/SDK-19111

I should have it fixed in a short while, and you can monkey-patch my changes
or extend Text to do it, email me off-list if you want me to send you the
fix so you can monkey-patch it in.

-Josh

On Thu, Feb 5, 2009 at 12:53 PM, Sam Lai  wrote:

>   Don't have a solution, but you could wrap the Text control in a
> container, and set the maxWidth on the container instead.
>
> 2009/2/5 tchredeemed >:
>
> > What I want it to do is to allow it to grow to the maxWidth, and wrap
> > the text if it hits the max, right now it just cuts off the text after
> > the maxWidth...
> >
> > halp! :)
> >
> > --- In flexcoders@yahoogroups.com ,
> "tchredeemed"  wrote:
> >>
> >> Question:
> >>
> >> When I set the maxWidth on a text, it does not force to a new line
> >> (like when you explicitly set the width). Is there any way to set it
> >> so that it will force it to a new line if it exceeds the maxWidth,
> >> without having to reserve the space using "width?"
> >>
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
> >
> >
> >
> >
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Re: Adding styles to UIComponents

2009-02-05 Thread Josh McDonald
UIComponent doesn't have any code for drawing background images. If you want
a background image without the overhead of using a Container such as Box,
you'll have to build a subclass of UIComponent that does. Or simply add an
Image as the first child of your UIComponent. Are you extending UIComponent,
or just instantiating them because you want someplace to put an image?

-Josh

On Thu, Feb 5, 2009 at 5:13 PM, superbokbok  wrote:

>
> > http://livedocs.adobe.com/flex/3/html/skinstyle_3.html
> >
> > There's no reason you can't call your style "backgroundImage."
> >
> Nice link :) I tried to implement code as per the examples in the link
> page, but the problem is I can never get an image to show as the
> background of a UIComponent! This would let me alter the image based
> on different stylesheets which are loaded at runtime.
>
> The way I do it now, I add an HBox to a UIComponent and set that as
> the bkg and add the styleName to that. I must be missing something
> somewhere to enable a background image on a UIComponent. Again the
> reason for using a UIComponent is that it's lighter.
>
> sorry for the rant :(
> cheers
> erick
>
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Java enum in Flex3

2009-02-05 Thread Josh McDonald
I'm kicking off a blaze-ds project this weekend, and I'll be doing typesafe
java<->flex enums, when I figure it out I'll blog about it and post it here
:) It'll probably just require a small amount of custom unmarshalling code,
there's a lot of undocumented flexibility in mx.rpc.*

-Josh

Thu, Feb 5, 2009 at 11:37 AM, Maciek Sakrejda  wrote:

>   Interesting. Any thoughts on Granite Data Services' approach? There is a
> custom externalization process for Java Enum objects, and a granite Enum
> class in ActionScript that all your (generated) Enums extend. The enum
> class takes care of reading/writing. The writeExternal() method just
> writes the name of the Enum; readExternal() tries to find the name of
> the object in the constants defined by the Enum. The RemoteAlias
> metadata is set up as for a standard Java class.
>
> Are we asking for trouble in using this method? Is there something
> inherently dangerous here?
> --
> Maciek Sakrejda
> Truviso, Inc.
> http://www.truviso.com
>
>
> -Original Message-
> From: Seth Hodgson >
> Reply-To: flexcoders@yahoogroups.com 
> To: flexcoders@yahoogroups.com  <
> flexcoders@yahoogroups.com >
> Subject: RE: [flexcoders] Java enum in Flex3
> Date: Wed, 4 Feb 2009 16:20:33 -0800
>
> BlazeDS and LCDS roundtrip Java enums to the client and back as Strings.
> That's the only good option at present, and here's an in-depth
> explanation: http://greetingsfromoakland.blogspot.com/2009/02/enums.html
>
> Best,
> Seth
>
> From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] On
> Behalf Of sunmoorthy1
> Sent: Monday, December 29, 2008 1:18 PM
> To: flexcoders@yahoogroups.com 
> Subject: [flexcoders] Java enum in Flex3
>
> How to convert java enum values into Flex3 object.
> Any one went thru this problem?
> Please give your experties?
>
> Sundar
>
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


[flexcoders] Problem in Streaming Live data using Flash Media Server

2009-02-05 Thread akila_ksri
I have the client application and the FMS running on the same machine,
the client app connects to the server successfully but fails to play 
any content(Pre-recorded flv/swf) which is also present in the same 
directory using NetStream.play("contentPath"); and i always get 
"NetStream.Play.StreamNotFound"
Could anyone tell me if i am doing anything wrong?

Any help would be greatly appreciated.

Thanks in advance,
Akila



[flexcoders] Displaying UIComponents vertically

2009-02-05 Thread annelie2008
Hi,

I'm having trouble with the layout of the musical score I'm 
displaying. It's generated from an xml file and I want the staves to 
be placed on top of each other but I can't make it work. I have a 
class which draws out the lines and the notes on it, so I instantiate 
that class, create the lines and notes, then create a UIComponent to 
add it to. There's three staves, so I do this for all three, then I 
add them all to a VBox which I display. I thought this would mean 
they'd be stacked on top of each other, but they're horizontally 
placed (the second two a little bit lower than the first for some 
reason). I'm assuming I'm missing something really obvious, so I'd be 
grateful if anyone could point me in the right direction.

Here's the code:

http://www.adobe.com/2006/mxml"; 
layout="vertical"
initialize="initializeHandler()"
horizontalAlign="left">











Thanks,

Annelie



[flexcoders] Memory leak in mx:HTML

2009-02-05 Thread Tom Chiverton
I seem to be able to reproduce a leak in mx:HTML by just placing it on the 
main application, as per https://bugs.adobe.com/jira/browse/SDK-19119

Has anyone else seen this ?

-- 
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 together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

[flexcoders] Re: Array Collection

2009-02-05 Thread thelordsince1984
--- In flexcoders@yahoogroups.com, "thelordsince1984"  wrote:
>
> Hi, 
> 
> i've have an array collection of objects...every object is like this
one:
> 
> - id:path
> 
> private function create(id:String, path:String):void {
> var arrayCollection:ArrayCollection = new ArrayCollection();
> var o:Object = {id:path};
> arrayCollection.addItem(o);
> }
> 
> i would create a function that has a parameter, the id, and check if
> there is a correspondence between the parameter id function and that
> one into the array collection. In this case i would also trace the
> path value...
> 
> 
> 
> can you help me?
> 
> thanks 
> Regards
> Lorenzo
>

it's ok..

instead if i would parse an object that contains strings?

for example i've an object that has three strings like this

- test1, test2, test3 

so i would trace strings separately..how can i do this?



  1   2   >