[flexcoders] Cross-domain data flow

2009-06-04 Thread steve horvath
I've got a SWF on my website that loads images and videos from another
domain.  If a client loads my web page and accesses the images, will the
traffic be routed through my ISP?

For instance, myowndomain.com hosts my.swf which loads images from
youtube and flickr.  Some person on their own ISP accesses my page and
watches a bunch of videos and images.  I want to make sure that's not
going to eat up my bandwidth on my ISP.

My guess is since the SWF is loaded into the client's browser it
shouldn't go through my domain.  Is this right?

ascii




[flexcoders] Re: ArrayCollection to Delimited String

2009-06-04 Thread Tim Hoff

Well, let's not assume anything:

private function parseArrayCollection():void
{
  var myString:String = "";

  for each ( var myObject:Object in myAC )
  {
   myString += myObject.label + "|" + myObject.data + "||";
  }

  trace(myString);
}

-TH

--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
>
> Assuming that you don't want the trailing pipes:
>
> private function parseArrayCollection():void {
>
>
>
> var myString:String = "";
>
>
>
> for each ( var myObject:Object in myAC )
> {
> myString += myObject.label + "|" + myObject.data;
>
> if ( myAC.getItemIndex( myObject ) < myAC.length - 1 )
> {
> myString += "|";
> }
> }
>
> trace(myString);
> }
>
> -TH
>
> --- In flexcoders@yahoogroups.com, Angelo Anolin angelo_anolin@
> wrote:
> >
> > Hi FlexCoders,
> >
> > Supposed I have an ArrayCollection variable represented like below:
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > I want to store the same in a String variable where the resulting
> string would be like:
> >
> > var ResultString:String;
> > ResultString = "MI|Lansing||MO|Jefferson
> City||MA|Boston||MT|Helena||ME|Augusta||MS|Jackson||MN|Saint Paul||"
> >
> > How do I achieve this?
> >
> > Inputs highly appreciated. Thanks.
> >
> > Regards,
> >
> > Angelo
> >
>




[flexcoders] sorting XMLListCollection

2009-06-04 Thread Cordova Aaron

I've looked at several examples using google. All the examples sort on an XML 
attribute, but I want to sort on a value of a particular tag.

>From the example below I want to sort on the first name value. I can get the 
>value with xmlList.values.value.(id == 2).data
but how do I get this into a sortField.


 
 
 
 
 2
 first name
 Aaron
 
 
 3
 last name
 Cordova
 
 ...
 
 
 ...



  



RE: [flexcoders] how to fix poor performance in this example (AdvancedDataGrid and Binding)

2009-06-04 Thread Alex Harui
The rollover handler is scanning the entire arraycollection.

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 Pan Troglodytes
Sent: Thursday, June 04, 2009 12:00 PM
To: flexcoders
Subject: [flexcoders] how to fix poor performance in this example 
(AdvancedDataGrid and Binding)





I have the following example that is a very simplified form of what I need to 
do in my much larger program.  The goal is to have a mouseover on a grid item 
set a variable in the data object.  In the real program, this fires off some 
other code which makes that item visible and the others hidden, etc.  But here, 
I'm just trying the first part.

TestObject.as:
package
{
  public class TestObject
  {
[Bindable] public var label:String;
[Bindable] public var highlighted:Boolean;
  }
}

GenericTest.mxml:

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

  
  

  

  
  

  

  


To see the problem, run your mouse up and down the list on the left and the 
list on the right.  If you get the same results I do with SDK 3.0.2 and player 
10,0,12,36 (FF 3.0.6 or IE 7), you'll see that the list on the right tracks 
very smoothly but the one on the left is choppy.  The only difference between 
the two is that the one on the left has a rollOver handler that sets a Bindable 
variable in the data object.

If you comment out the [Bindable] on TestObject's highlighted variable, the 
choppiness goes away.  So it's something to do with all the binding glue being 
fired behind the scenes.  Is there some good way to work around this while 
still being able to use binding in this way?

--
Jason



RE: [flexcoders] Is SDK 3.4.0 a stable release?

2009-06-04 Thread Alex Harui
3.4 is also a pre-release and not an official release

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 Bjorn Schultheiss
Sent: Thursday, June 04, 2009 7:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is SDK 3.4.0 a stable release?





Its bundled in the 4 beta but i cant find any documentation or a changes list 
for it.



[flexcoders] Re: ArrayCollection to Delimited String

2009-06-04 Thread Tim Hoff

Assuming that you don't want the trailing pipes:

private function parseArrayCollection():void {



  var myString:String = "";



  for each ( var myObject:Object in myAC )
  {
   myString += myObject.label + "|" + myObject.data;

   if ( myAC.getItemIndex( myObject ) < myAC.length - 1 )
  {
myString += "|";
   }
  }

  trace(myString);
}

-TH

--- In flexcoders@yahoogroups.com, Angelo Anolin 
wrote:
>
> Hi FlexCoders,
>
> Supposed I have an ArrayCollection variable represented like below:
>
> 
>  
>   
>   
>   
>   
>   
>   
>   
>  
> 
>
> I want to store the same in a String variable where the resulting
string would be like:
>
> var ResultString:String;
> ResultString = "MI|Lansing||MO|Jefferson
City||MA|Boston||MT|Helena||ME|Augusta||MS|Jackson||MN|Saint Paul||"
>
> How do I achieve this?
>
> Inputs highly appreciated. Thanks.
>
> Regards,
>
> Angelo
>




[flexcoders] Re: GoogleMat� Sample Application

2009-06-04 Thread Bjorn Schultheiss
Yeah that's pretty cool.
Cant wait to give catalyst a crack.


--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
> 
> Coming, but the only thing that will be different will be the view code.
> :)
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "Bjorn Schultheiss"
>  wrote:
> >
> > Would be nice with flex 4 and catalyst : )
> >
> > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > >
> > >
> > > Hi all,
> > >
> > > For any of you interested in learning more about the Mat�
> framework,
> > > I've created a sample  that's
> publically
> > > available. It's a simple AIR application, but hopefully those that
> want
> > > to learn more about MVC, will get some benefit out of it; especially
> > > those that engaged in the recent discussions concerning VO's.
> > >
> > > Cheers,
> > > -TH
> > >
> >
>




RE: [flexcoders] Variables to reference variables/ids (not variable variables)

2009-06-04 Thread Tracy Spratt
You can do:

this[chart].series = currentSeries;

 

if "linechart0" is an id for a component instance or a property of "this"

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Pedro Sena
Sent: Thursday, June 04, 2009 7:15 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Variables to reference variables/ids (not variable
variables)

 






What do you think about a collection?

for each ( var chart:BaseChart in chartGroup.getCharts() ) {
   chart.doSomething();
}

Better, isn't it ? :)

Regards,

PS

On Thu, Jun 4, 2009 at 7:49 PM, Trefalgar Bain mailto:trefal...@yahoo.com> com> wrote:

 

Might be a newbie question, but I'm failing to find this subject in my book
or on the web.

While you can do variable variables, to create all sorts of fun things, I'm
looking to create a variable to reference an object already created. 

For example ... I have 10 charts on a reporting interface, each with their
own id and tab. Right now, if I want to make identical buttons affect
individual charts, I'd have to create 10 buttons, each programed to update
each individual chart. What I'd like to do is be able to pass the tab name /
chart id to the function call, so it will know which chart to update.

This way, I only have to create one function to update any chart, instead of
10 functions, one to handle each button/chart.

Does that make sense? Is it possible?

chart = 'linechart0';
{chart}.series = currentSeries;

Tref




-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer 
* Sun Certified Web Component Developer
*/





[flexcoders] ArrayCollection to Delimited String

2009-06-04 Thread Angelo Anolin
Hi FlexCoders,

Supposed I have an ArrayCollection variable represented like below:


 
  
  
  
  
  
  
  
 


I want to store the same in a String variable where the resulting string would 
be like:

var ResultString:String;
ResultString = "MI|Lansing||MO|Jefferson 
City||MA|Boston||MT|Helena||ME|Augusta||MS|Jackson||MN|Saint Paul||"

How do I achieve this?

Inputs highly appreciated. Thanks.

Regards,

Angelo


  

[flexcoders] Re: GoogleMat� Sample Application

2009-06-04 Thread Tim Hoff

Coming, but the only thing that will be different will be the view code.
:)

-TH

--- In flexcoders@yahoogroups.com, "Bjorn Schultheiss"
 wrote:
>
> Would be nice with flex 4 and catalyst : )
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >
> >
> > Hi all,
> >
> > For any of you interested in learning more about the Mat�
framework,
> > I've created a sample  that's
publically
> > available. It's a simple AIR application, but hopefully those that
want
> > to learn more about MVC, will get some benefit out of it; especially
> > those that engaged in the recent discussions concerning VO's.
> >
> > Cheers,
> > -TH
> >
>





RE: [flexcoders] reference xml using variable dynamically

2009-06-04 Thread Tracy Spratt
Try:

for each(var item:Object in nutritionXML[carousel].itemdata)



 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jason B
Sent: Thursday, June 04, 2009 7:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] reference xml using variable dynamically

 






I'm using a e4x resultformat and returning from an httpservice a xml list of
items which works fine when i just use

for each(var item:Object in nutritionXML.breakfast.itemdata)

but if i try to do it dynamically it wont work?

//DYNAMICALLY
var carousel:String;

carousel = "breakfast"; 

for each(var item:Object in nutritionXML + [carousel].itemdata)
{


XML DATA RETURNED FROM HTTPSERVICE




Oatmeal and Eggs Meal
oatmeal_and_eggs_meal.jpg
1 cup oatmeal, 1 1/2 cups low fat milk|1 egg, 1 medium
banana
60
oatmeal_and_eggs_meal.swf
yes


Shredded Wheat Meal
shredded_wheat_breakfast.jpg
1 cup shredded wheat, 2/3 cup fat free yogurt|2 slices can. bacon,
1/2 cup orange juice
400
shredded_wheat_breakfast.swf
yes






Re: [flexcoders] CuePointEvent missing optional parameters

2009-06-04 Thread kris range
Yep, just seems odd that the VideoDisplay class dispatches only
CuePointEvents when a cue point is reached, in which that class
doesn't have that parameter. Maybe I will have to grab the metadata
property, search through that for the cuepoint with the same name (
barring all the names are unique ), and find it that way.

thanks for the response.
kris

On Thu, Jun 4, 2009 at 12:05 PM, Manish Jethani
 wrote:
> On Thu, Jun 4, 2009 at 5:33 AM, kris range  wrote:
>> I'm using the VideoDisplay class and listening for cue points. I can
>> recieve the cue points, check out the name, time, type but cuePoints
>> also have an optional parameter value, which doesn't seem to be
>> included in this event class. Why this is missing from this event? Do
>> I need to access it a different way?
>
> Have you looked at the metadata property and the metadataReceived event?
>
> Manish
>
>
> 
>
> --
> 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: Is this list declining?

2009-06-04 Thread Gordon Smith
Sorry, I don't have an update on that, Amy. Maybe Vera knows, so I've cc'd her.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Amy
Sent: Tuesday, June 02, 2009 6:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Is this list declining?





--- In flexcoders@yahoogroups.com, Gordon 
Smith  wrote:
>
> There is a lot of traffic (>100 posts/day) on the Flex forum at
>
> http://forums.adobe.com/community/flex/flex_general_discussion
>
> The Adobe forums now support email.

How's the nntp support coming?



[flexcoders] Re: GoogleMat� Sample Application

2009-06-04 Thread Bjorn Schultheiss
Would be nice with flex 4 and catalyst : )

--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
> 
> Hi all,
> 
> For any of you interested in learning more about the Mat� framework,
> I've created a sample   that's publically
> available.  It's a simple AIR application, but hopefully those that want
> to learn more about MVC, will get some benefit out of it; especially
> those that engaged in the recent discussions concerning VO's.
> 
> Cheers,
> -TH
>




[flexcoders] Is SDK 3.4.0 a stable release?

2009-06-04 Thread Bjorn Schultheiss
Its bundled in the 4 beta but i cant find any documentation or a changes list 
for it.



[flexcoders] Convert ArrayCollection to XML then to String

2009-06-04 Thread Angelo Anolin
Hi FlexCoders,

I was able to perform the following conversion of String to XML to Array 
Collection.  The code are as follows:

var _str:String;
var _xmlData:XML;
var _arrColl:ArrayCollection = new ArrayCollection;
var _xl:XMLList = _xmlData.children();
var oTemp:Object;
var i:int;

_xmlData = XML(_str);
for(i = 0; i < _xl.length(); i++)  
{
 oTemp = {PAX_TYPE:xl[i].PAX_TYPE.text(), PAX_CAT:xl[i].PAX_CAT.text(), 
PAX_DESC:xl[i].PAX_DESC.text() }
 arrDP.addItem( oTemp);
}

Now I want to conver the same ArrayCollection back to XML and then to String.
How do I do this?

Thanks.


  

[flexcoders] GoogleMaté Sample Application

2009-06-04 Thread Tim Hoff

Hi all,

For any of you interested in learning more about the Maté framework,
I've created a sample   that's publically
available.  It's a simple AIR application, but hopefully those that want
to learn more about MVC, will get some benefit out of it; especially
those that engaged in the recent discussions concerning VO's.

Cheers,
-TH



Re: [flexcoders]Given this string how to keep my RegExp from being greedy

2009-06-04 Thread dorkie dork from dorktown
Ah cool. :)

On Thu, Jun 4, 2009 at 6:41 PM, Manish Jethani wrote:

>
>
> On Fri, Jun 5, 2009 at 4:25 AM, dorkie dork from
> dorktown>
> wrote:
>
> > My RegExp is being greedy. There are two matches. The regexp is grabbing
> the
> > first span all the way to the last span. How do I prevent it from being
> > greedy?
> >
> > Given this string:
> >
> > Vestibulum aliquet
> > leo in enim viverra id lacinia arcu eleifend.
>
> [...]
>
> Normally if you want to make ".*" non-greedy, you append a "?" to it.
>
> Here's something I did with your source string:
>
> var s:String = 'Vestibulum aliquet leo in enim  style="text-decoration: line-through;">viverra id
> lacinia arcu eleifend.';
>
> s =
> s.replace(/(]+style="[^"]*)text-decoration:\s*underline;?([^"]*"[^>]*>)(.*?)(<\/span>)/g,
> "$1$2$3$4");
>
> trace(s);
>
> I've made it more strict in terms of how it matches stuff. But you
> should be able to modify your original regexp just by appending a "?"
> to the ".*".
>
> Manish
>  
>


[flexcoders] reference xml using variable dynamically

2009-06-04 Thread Jason B
I'm using a e4x resultformat and returning from an httpservice a xml list of 
items which works fine when i just use

for each(var item:Object in nutritionXML.breakfast.itemdata)

but if i try to do it dynamically it wont work?




//DYNAMICALLY
var carousel:String;

carousel = "breakfast"; 

for each(var item:Object in 
nutritionXML + [carousel].itemdata)
{






XML DATA RETURNED FROM HTTPSERVICE


  

  Oatmeal and Eggs Meal
  oatmeal_and_eggs_meal.jpg
  1 cup oatmeal, 1 1/2 cups low fat milk|1 egg, 1 medium 
banana
  60
  oatmeal_and_eggs_meal.swf
  yes


  Shredded Wheat Meal
  shredded_wheat_breakfast.jpg
  1 cup shredded wheat, 2/3 cup fat free yogurt|2 slices can. 
bacon, 1/2 cup orange juice
  400
  shredded_wheat_breakfast.swf
  yes





Re: [flexcoders] Re:Flex and Reporting

2009-06-04 Thread Angelo Anolin
Hi Martin,

I was able to take a look at the FlexReport on the Kemelyon website and it 
seems somewhat a good start.

I tried to get the codes from google but I think I am not able to gather much 
since I am not able to run the sample properly.

Perhaps if you could share here the code/scripts in its entirety, that would 
certainly be helpful. Or if you have already implemented it in your development 
and you may want to share, that would certainly be appreciated.

With regards to Adobe FlexBuilder, I think this is one component which is 
ACTUALLY missing in their RIA development suite.  I think there should be a way 
where the Report designer is integrated into the IDE and the same can be 
displayed in an object container inside the SWF application. Does Adobe have 
any plans of integrating a reporting system into the IDE or any other solution 
to make creating, designing and integrating reports into the SWF file a lot 
easier?

Regards,

Angelo


 




From: Martin Moschitz 
To: flexcoders@yahoogroups.com
Sent: Friday, 5 June, 2009 0:12:29
Subject: [flexcoders] Re:Flex and Reporting





You might wonna look at this:
http://www.kemelyon .com/bts/ 2008/01/14/ flexreport/

I have not used it yet, but I am planning to use it for my current app.

Hth,
martin




  

Re: [flexcoders]Given this string how to keep my RegExp from being greedy

2009-06-04 Thread Manish Jethani
On Fri, Jun 5, 2009 at 4:25 AM, dorkie dork from
dorktown wrote:

> My RegExp is being greedy. There are two matches. The regexp is grabbing the
> first span all the way to the last span. How do I prevent it from being
> greedy?
>
> Given this string:
>
> Vestibulum aliquet
> leo in enim viverra id lacinia arcu eleifend.

[...]

Normally if you want to make ".*" non-greedy, you append a "?" to it.

Here's something I did with your source string:

var s:String = 'Vestibulum aliquet leo in enim viverra id
lacinia arcu eleifend.';

s = 
s.replace(/(]+style="[^"]*)text-decoration:\s*underline;?([^"]*"[^>]*>)(.*?)(<\/span>)/g,
"$1$2$3$4");

trace(s);

I've made it more strict in terms of how it matches stuff. But you
should be able to modify your original regexp just by appending a "?"
to the ".*".

Manish


Re: [flexcoders] Newbie questions

2009-06-04 Thread Pedro Sena
Take a look at data binding

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

Regards,

PS

On Thu, Jun 4, 2009 at 6:33 PM, markfu...@rocketmail.com <
markfu...@rocketmail.com> wrote:

>
>
> I have been trying to wrap my head around flex/actionscript for several
> weeks now...I'm a little slow. I'm using Coldfusion as an application server
> with Flash Remoting.
>
> So far, I've been able to get info from the database to a datagrid and
> after pulling several hundred hairs out of my head, figured out how to get a
> new record into the database from flex...with one small caveat...in the code
> below, I cannot un-comment the last line
> (//dataEstimateFixedItem.PricePerUnit = PricePerUnit.text;)as it causes an
> error...trying to put text into a numeric field (the value is a number)...Do
> I have to cast it as a number or something?
>
> private function addEditItemInsertHandler():void
> {
> var dataEstimateFixedItem:EstimatesFixedItems = new EstimatesFixedItems();
>
>
>
> dataEstimateFixedItem.ConstructionPhase =
> ConstructionPh.selectedItem.ConstructionPhaseId;
> dataEstimateFixedItem.JobEstimateType =
> JobEstimateType.selectedItem.JobTypeId;
> dataEstimateFixedItem.ItemType = ItemType.selectedItem.ItemTypeId;
> dataEstimateFixedItem.DefaultUnitType =
> DefaultUnitType.selectedItem.DefaultUnitTypeId;
> dataEstimateFixedItem.ItemName = ItemName.text;
> dataEstimateFixedItem.ItemDescription= ItemDescription.text;
>
> //dataEstimateFixedItem.PricePerUnit = PricePerUnit.text;
>
>
> EstimatesFixedItemsGateway.save(dataEstimateFixedItem);
> AddForm.height = 5;
>
>
> }
>
> uh...the code looks a little butt ugly...is there a better way to attach
> code?
>
> Thanks,
>
> Mark Fuqua
>
>  
>



-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/


Re: [flexcoders] Variables to reference variables/ids (not variable variables)

2009-06-04 Thread Pedro Sena
What do you think about a collection?

for each ( var chart:BaseChart in chartGroup.getCharts() ) {
   chart.doSomething();
}

Better, isn't it ? :)

Regards,

PS

On Thu, Jun 4, 2009 at 7:49 PM, Trefalgar Bain  wrote:

>
>
> Might be a newbie question, but I'm failing to find this subject in my book
> or on the web.
>
> While you can do variable variables, to create all sorts of fun things, I'm
> looking to create a variable to reference an object already created.
>
> For example ... I have 10 charts on a reporting interface, each with their
> own id and tab. Right now, if I want to make identical buttons affect
> individual charts, I'd have to create 10 buttons, each programed to update
> each individual chart. What I'd like to do is be able to pass the tab name /
> chart id to the function call, so it will know which chart to update.
>
> This way, I only have to create one function to update any chart, instead
> of 10 functions, one to handle each button/chart.
>
> Does that make sense? Is it possible?
>
> chart = 'linechart0';
> {chart}.series = currentSeries;
>
> Tref
>
>  
>



-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/


[flexcoders] Re: How to get rid of annoying chart trial message

2009-06-04 Thread iloveyouwisconsin
Sorry for the repost but I can't seem to figure it out. I've read and tried 
everything I can think of but it still has the "chart trial" message on some 
projects but not others. Any help/comments would be appreciated

--- In flexcoders@yahoogroups.com, "iloveyouwisconsin"  
wrote:
>
> I have flex 3 professional. On 2 of my projects when I create a chart the 
> charts come out fine. However, on my 3rd project I get the annoying "chart 
> trial" message on the chart. How do I get rid of it? The only thing I can 
> think that I've done differently is the location of the project is saved on 
> my desktop while the other 2 projects are saved in my documents folder. I've 
> tried to create a new project and move the 3rd project to this but still get 
> the chart trial message. 
> 
> (Looking at Adobe's website there is a way to convert a FB2 version w/out 
> chart license to FB2 w/ license by simply copying the license key. I've built 
> all my projects in FB3 so that shouldn't apply, I don't think)
> 
> What am I missing?
>




[flexcoders]Given this string how to keep my RegExp from being greedy

2009-06-04 Thread dorkie dork from dorktown
My RegExp is being greedy. There are two matches. The regexp is grabbing the
first span all the way to the last span. How do I prevent it from being
greedy?

Given this string:

Vestibulum aliquet
leo in enim viverra id lacinia arcu eleifend.

And this RegExp:

(.*)

// underline
public var spanUnderlinePattern:RegExp =
/(.*)<\/span>/gi;
public var spanUnderlinePatternReplace:String =
'$5';

Result is:
Vestibulum aliquet leo in enim viverra id lacinia arcu
eleifend.


[flexcoders] asdoc and flexlib

2009-06-04 Thread arisco97
During asdoc generation, I get:

Error: Type was not found or was not a compile-time constant: 
PromptingTextInput.

The code compiles fine.



[flexcoders] Re: Flex and Reporting

2009-06-04 Thread Amanda
I am currently developing a CRM platform with Flex3 and BIRT. Very powerful 
reporting. All the functionality of Crystal Reports except its FREE. Supports 
JavaScripting and Java and I have it running on a JBoss server. 

I currently have it set up to use iFrames inside Flex 
(http://www.deitte.com/archives/2006/08/finally_updated.htm), which is a little 
buggy, to actually display the report inside a panel IN my flex application. If 
ur not too worried about that, you can just use flex for all the selection 
criteria, and then do a URLRequest to your JBoss server running the BIRT 
application, which generates a report in a window that allows you to export to 
PDF,WORD,EXCEL,PostScript...etc, as well as export to RAW by selecting fields 
used in the report. It supports table of contents...all kinds of nifty stuff. 

There is a bit of a learning curve involved tho. Just a heads up. The BIRT 
Report development environment is an Eclipse plugin that features nice drag and 
drop, but for real reporting expect to have to write some javascript or java - 
whichever you are more comfortable with. I didn't really know much of either 
when I started building with it 4 weeks ago, and now I have a fully functional 
reporting system with 4 pretty cool reports developed already. Still learning. 
There is lots of power here. 

Also, the birt support forums are incredible. Post a question and one of their 
techs respond within a couple hours usually. Good documentation, and unlike the 
other reporting suites I evaluated when I was trying to figure out what to go 
with, you can actually buy books on BIRT. I bought both Addison Wesley's BIRT - 
A field guide to reporting, and Integrating and Extending BIRT. 

Good stuff, good luck!

http://www.eclipse.org/birt/phoenix/
http://www.birt-exchange.org/#newest


Amanda



[flexcoders] Variables to reference variables/ids (not variable variables)

2009-06-04 Thread Trefalgar Bain
Might be a newbie question, but I'm failing to find this subject in my book or 
on the web.

While you can do variable variables, to create all sorts of fun things, I'm 
looking to create a variable to reference an object already created. 

For example ... I have 10 charts on a reporting interface, each with their own 
id and tab. Right now, if I want to make identical buttons affect individual 
charts, I'd have to create 10 buttons, each programed to update each individual 
chart. What I'd like to do is be able to pass the tab name / chart id to the 
function call, so it will know which chart to update.

This way, I only have to create one function to update any chart, instead of 10 
functions, one to handle each button/chart.

Does that make sense? Is it possible?

chart = 'linechart0';
{chart}.series = currentSeries;

Tref






[flexcoders] Newbie questions

2009-06-04 Thread markfu...@rocketmail.com
I have been trying to wrap my head around flex/actionscript for several weeks 
now...I'm a little slow.  I'm using Coldfusion as an application server with 
Flash Remoting.

So far, I've been able to get info from the database to a datagrid and after 
pulling several hundred hairs out of my head, figured out how to get a new 
record into the database from flex...with one small caveat...in the code below, 
I cannot un-comment the last line (//dataEstimateFixedItem.PricePerUnit = 
PricePerUnit.text;)as it causes an error...trying to put text into a numeric 
field (the value is a number)...Do I have to cast it as a number or something?

private function addEditItemInsertHandler():void
{
var dataEstimateFixedItem:EstimatesFixedItems = new 
EstimatesFixedItems();



dataEstimateFixedItem.ConstructionPhase = 
ConstructionPh.selectedItem.ConstructionPhaseId;
dataEstimateFixedItem.JobEstimateType = 
JobEstimateType.selectedItem.JobTypeId;
dataEstimateFixedItem.ItemType = 
ItemType.selectedItem.ItemTypeId;
dataEstimateFixedItem.DefaultUnitType = 
DefaultUnitType.selectedItem.DefaultUnitTypeId;
dataEstimateFixedItem.ItemName = ItemName.text;
dataEstimateFixedItem.ItemDescription= 
ItemDescription.text;

//dataEstimateFixedItem.PricePerUnit = PricePerUnit.text;


EstimatesFixedItemsGateway.save(dataEstimateFixedItem);
AddForm.height = 5;


}

uh...the code looks a little butt ugly...is there a better way to attach code? 

Thanks,

Mark Fuqua



[flexcoders] re: Flex and Reporting

2009-06-04 Thread Tony Obermeit
If you have details of where to download this, I'd appreciate you forwarding
them to the list.  I found the code in google code but it seemed I had to
download each .mxml file individually.  I'd like to download the entire
source as one bundle.

I'm keen to use this as it appears to answer the printing questions I've
posted recently.  If anyone has working examples of printing a textarea
using FlexReport, I'd love to see the code.

Regards

Tony

You might wonna look at this:
http://www.kemelyon.com/bts/2008/01/14/flexreport/

I have not used it yet, but I am planning to use it for my current app.

Hth,
martin


[flexcoders] How to use actionScript to build a general Form vaildation component?

2009-06-04 Thread markflex2007
I have a lot of forms and need to validate so I try to build a common class to 
do that?

Do you have a idea how to do that? I try many time but I have a lot errores now.

Thanks

Mark

--- In flexcoders@yahoogroups.com, "markflex2007"  wrote:
>
> Hi,
> 
> I try to build a validation class with AS. I extends UIComponent to build the 
> class,but I an not use "this.addChild(stVar);" because UIComponent only can 
> addChild with DisplayObject.
> 
> which class I can use to take place "UIComponent" and I can use addChild with 
> validator object?
> 
> Thanks
> 
> Mark
> 
 



Re: [flexcoders] How to addChild with StringValidator?

2009-06-04 Thread Manish Jethani
On Fri, Jun 5, 2009 at 2:12 AM, markflex2007  wrote:

> I try to build a validation class with AS. I extends UIComponent to build the 
> class,but I an not use "this.addChild(stVar);" because UIComponent only can 
> addChild with DisplayObject.
>
> which class I can use to take place "UIComponent" and I can use addChild with 
> validator object?
>

StringValidator is not a visual component. Why are you trying to add
it using addChild()? You can just store it in an internal array (as
you're doing) and that should be it.

Manish


[flexcoders] How to addChild with StringValidator?

2009-06-04 Thread markflex2007
Hi,

I try to build a validation class with AS. I extends UIComponent to build the 
class,but I an not use "this.addChild(stVar);" because UIComponent only can 
addChild with DisplayObject.

which class I can use to take place "UIComponent" and I can use addChild with 
validator object?

Thanks

Mark

--
source code:

public class ValidatorComponent extends UIComponent 
{
private var validatorArray:Array;  

public function ValidatorComponent()
{
super();
this.validatorArray = new Array;
}

public function 
addStringValidator(id:String,source:Object):void{

 var stVdt:StringValidator = new StringValidator(); 

 stVdt.initialized(source,id);
 stVdt.property = "text";
 this.addChild(stVar);   
 validatorArray.push(id);
}

  } 



Re: [flexcoders] Re: Creating Link inisde a Data Grid Collumn

2009-06-04 Thread guess what
eeks , I did that , the links dont appear .
This is my Code .
 
for (var i:int=0;i
http://www.adobe.com/2006/mxml"; 
label="Click On Me" 
click="navigateToURL(new URLRequest('rediff.com'))"/>
 
 
 


--- On Thu, 6/4/09, Tim Hoff  wrote:


From: Tim Hoff 
Subject: [flexcoders] Re: Creating Link inisde a Data Grid Collumn
To: flexcoders@yahoogroups.com
Date: Thursday, June 4, 2009, 1:05 PM









If you're creating the column in AS, you'll need to use ClassFactory for the 
itemRenderer:
var urlItemRenderer: ClassFactory = new ClassFactory( com.myPath. urlRenderer) ;
urlItemRenderer. properties = { myItemRendererPubli cProperty: myProperty };
myColumnID.itemRend erer  = urlItemRenderer;
-TH

--- In flexcod...@yahoogro ups.com, guess what  wrote:
>
> 
> I want to show link inisde of my Data Grid Columnm . I know i could use item 
> renderer . if I try to use it directly in flex file it works fine, meaning if 
> i have static columns ,Since my collumns are beeing built dynamicaly . I use 
> action Script . I think I am doing soemthing wrong with the script . Can 
> anyone help me . 
> 
> I assume this should be as simple as this . Should urlRenderer be Action 
> script file or can anyone explain how do i do this . 
> column.itemRenderer = urlRenderer
>
















  

[flexcoders] swf size of charting flash app

2009-06-04 Thread thomas parquier
I've just written a flash app which makes use of a line chart and a column
chart, with flex 3.3.
The swf size is around 750kb ! Is such a size usual ? There is also a simple
degrafa component...

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


Re: [flexcoders] flex app on losing focus...

2009-06-04 Thread Rick Winscot
Flash/Flex/AIR don¹t stop running when a window or browser loose focus... It
might appear this way if the only thing that drives your application refresh
is user input. That is to say, that when the application looses focus ­
there is nothing to cause the application to redraw / update.

You have quite a few options to keep things brewing: you could use
window-to-window communication via JavaScript, the Flash LocalConnection
object, cookies, a SharedObject, etc. You could even use a timer and a
global mouse/keyboard handler to establish inactivity that could drive UI
refresh as needed. If you are running a server product like BlazeDS, WebORB,
etc... Interaction in a single window could drive updates just about
anywhere you want. 

Cheers,

Rick Winscot



On 6/4/09 9:50 AM, "grimmwerks"  wrote:

>  
>   
> 
>   
> 
> I've got an application I created for a chain of stores, that when
> losing focus for a moment - ie when the admin flips to another
> interface -- upon return/getting focus, it draws it's entire interface
> again and basically takes a few seconds of receiving event dispatches
> to get into shape again.
> 
> I'm not sure how best to handle this as it seems it's something
> happening at the core of a flex app; but is there a way to 'force'
> flex/flash to keep getting updates while even in the background?
>   
> 
> 
>> 



Re: [flexcoders] minorticks and grid lines for charts

2009-06-04 Thread thomas parquier
I think you have to use datainterval and labelunit.

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


2009/6/4 netdeep 

>
>
> I have a chart which is created in actionscript with parameters specified
> by the user. So it needs to be flexible enough to accomodate all kinds of
> different styles and types of charts. One user would like to display lines
> on the minor ticks marks at every hour. Complicating matters is the fact
> that the chart can be resized horizontally which would increase or decrease
> the space available for such lines.
>
> So how do I create a chart which displays grid lines every hour on minor
> ticks and let's flex display major grid lines for each label. I'm using a
> DateTimeAxis, by the way.
>
> Thanks.
>
>  
>


Re: [flexcoders] Slider dataTip- is it possibole to have this visibale all the time

2009-06-04 Thread Manish Jethani
On Wed, Jun 3, 2009 at 4:29 PM, jossminker  wrote:
> I woudl like to have the datatip for my slider visible at all times, not just 
> when the user is holding down the thumb.
>
> if this is not possible, then I would at least like the datatip to appear if 
> the user moves the thumb using the arrow keys or by clicking on the track as 
> the way it is at present means it will never be visible to user who are not 
> using the mouse.

I don't think there's any official way of doing this. You can of
course set showDataTip to false and then go ahead and make your own
data tip (use ToolTipManager to display it), which you show and hide
in response to events from the slider.

Manish


Re: [flexcoders] CuePointEvent missing optional parameters

2009-06-04 Thread Manish Jethani
On Thu, Jun 4, 2009 at 5:33 AM, kris range  wrote:
> I'm using the VideoDisplay class and listening for cue points. I can
> recieve the cue points, check out the name, time, type but cuePoints
> also have an optional parameter value, which doesn't seem to be
> included in this event class. Why this is missing from this event? Do
> I need to access it a different way?

Have you looked at the metadata property and the metadataReceived event?

Manish


Re: [flexcoders] Re: About how to implement UIComponent

2009-06-04 Thread Manish Jethani
On Wed, Jun 3, 2009 at 11:46 PM, Amy  wrote:
> --- In flexcoders@yahoogroups.com, Manish Jethani  wrote:
>>
>> On Wed, Jun 3, 2009 at 10:26 PM, Manish Jethani
>>  wrote:
>> > 2009/6/3 j2me_soul :
>>
>> >>   override protected function measure():void{
>> >>    this.explicitMinWidth = this.explicitMinHeight = 50;
>> >>   }
>> >>  }
>> >
>> > Here you should set the meauredWidth, measuredHeight, and optionally
>> > measuredMinWidth and measuredMinHeight (they can be set to the same as
>> > measuredWidth and measuredHeight respectively).
>>
>> I forgot to say how to do the measurement. Here's how I'd do it:
>>
>>   function measure():void
>>   {
>>     measuredWidth = lal.getExplicitOrMeasuredWidth();
>>     measuredHeight = lal.getExplicitOrMeasuredHeight();
>>   }
>
> Do you need to use setActualSize on the label before you measure it?

No.

setActualSize() should be called in updateDisplayList(). That is
called after the measurement phase. The Label object will measure
itself based on the text assigned to it, so it doesn't care what size
you have set on it (for the purpose of measurement).

The Label object's getExplicitOrMeasuredWidth() and
getExplicitOrMeasuredHeight() methods will return the values computed
in its measure() implementation.

Manish


[flexcoders] how to fix poor performance in this example (AdvancedDataGrid and Binding)

2009-06-04 Thread Pan Troglodytes
I have the following example that is a very simplified form of what I need
to do in my much larger program.  The goal is to have a mouseover on a grid
item set a variable in the data object.  In the real program, this fires off
some other code which makes that item visible and the others hidden, etc.
But here, I'm just trying the first part.

*TestObject.as:*
package
{
  public class TestObject
  {
[Bindable] public var label:String;
[Bindable] public var highlighted:Boolean;
  }
}

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

  
  

  

  
  

  

  


To see the problem, run your mouse up and down the list on the left and the
list on the right.  If you get the same results I do with SDK 3.0.2 and
player 10,0,12,36 (FF 3.0.6 or IE 7), you'll see that the list on the right
tracks very smoothly but the one on the left is choppy.  The only difference
between the two is that the one on the left has a rollOver handler that sets
a Bindable variable in the data object.

If you comment out the [Bindable] on TestObject's highlighted variable, the
choppiness goes away.  So it's something to do with all the binding glue
being fired behind the scenes.  Is there some good way to work around this
while still being able to use binding in this way?

-- 
Jason


Re: [flexcoders] Delaying Component Load

2009-06-04 Thread Manish Jethani
On Thu, Jun 4, 2009 at 7:21 PM, Jonathan Ackerman
 wrote:

> I have been running into a IUIComponent issue on a component that is
> loading and I have determined that I need to delay the loading of this
> component a second or so.
>
> The component sits on a canvas with a tab navigator and I want to delay
> the load of this component until the specific tab is clicked on. I was
> thinking that I need to set the show event of the tab to run a function
> that would launch the component but I don't the syntax for doing this.

Is this component inside the TabNavigator? If yes, you have to set the
TabNavigator's creationPolicy property to "auto" (default) and the
component will be initialized only when the tab is clicked.

If the component is outside the TabNavigator, then you can just add
the component in the change event of the TabNavigator.

  

You can also look at the states feature (AddChild).

Manish


[flexcoders] minorticks and grid lines for charts

2009-06-04 Thread netdeep
I have a chart which is created in actionscript with parameters specified by 
the user.  So it needs to be flexible enough to accomodate all kinds of 
different styles and types of charts.  One user would like to display lines on 
the minor ticks marks at every hour.  Complicating matters is the fact that the 
chart can be resized horizontally which would increase or decrease the space 
available for such lines.  

So how do I create a chart which displays grid lines every hour on minor ticks 
and let's flex display major grid lines for each label.  I'm using a 
DateTimeAxis, by the way. 

Thanks.



[flexcoders] itemrenderer in popupMenuButton?

2009-06-04 Thread luvfotography
Is itemRenderer supported in popupMenuButton?

I just want to add an icon to my list of data in my popupMenuButton.
Is this easily possible?

I'm getting 'could not resolve  to a component implementation
when I'm trying to use it with a popupMenuButton.

thanks,




[flexcoders] Dynamically referencing arbitrarily deep arrays?

2009-06-04 Thread Keith Hughitt
Does anyone know a method to dynamically index an arbitrarily deep array
or object-literal?

e.g. Given an object "t", and the string "one.two", how can you access
t.one.two?

Here is some sample code to demonstrate the problem:


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


Any help would be greatly appreciated.

Thanks!
Keith



[flexcoders] Re: Creating Link inisde a Data Grid Collumn

2009-06-04 Thread Tim Hoff

If you're creating the column in AS, you'll need to use ClassFactory for
the itemRenderer:

var urlItemRenderer:ClassFactory = new
ClassFactory(com.myPath.urlRenderer);
urlItemRenderer.properties = { myItemRendererPublicProperty: myProperty
};
myColumnID.itemRenderer  = urlItemRenderer;

-TH

--- In flexcoders@yahoogroups.com, guess what  wrote:
>
>
> I want to show link inisde of my Data Grid Columnm . I know i could
use item renderer . if I try to use it directly in flex file it works
fine, meaning if i have static columns ,Since my collumns are beeing
built dynamicaly . I use action Script . I think I am doing soemthing
wrong with the script . Can anyone help me .
>
> I assume this should be as simple as this . Should urlRenderer be
Action script file or can anyone explain how do i do this .
> column.itemRenderer = urlRenderer
>




Re: [flexcoders] How to invoke mxml file or transfer control to mxml file after setting the request object in Java

2009-06-04 Thread Pedro Sena
Hi,

mxml and as files are all converted in .swf files when compiled.

You cannot call a "mxml" file from java, but you can exchange objects
between then, but not that way you are thinking.

Take a look at graniteds project:

http://www.graniteds.org/

Read the documentation, I believe that it will clarify how you can make the
communication between java and flex.

HTH,

PS

On Thu, Jun 4, 2009 at 10:21 AM, kotha poornima wrote:

>
>
> Hi All,
> I am new to flex. And i learned how to call java servlets or jsp's from
> flex. But now a question arises in my mind if in a project having all the
> jsps and java servlets. If suppose they want to replace jsps with flex mxml
> files how java servlets will
> invoke mxml files as they(servlets) invoke jsps.
> From java servlets we can invoke jsps and transfer the control to jsp by
> using RequestDispatcher. how can we call mxml files
> from java servlets.
> And if there are any request objects set in the java servlets, how can flex
> mxml files access those objects.
> Hope you all got my question.
> Awaiting for all your replies. Thanks in Advance!
>
> Poornima
>  
>



-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/


[flexcoders] Re: Custom Actionscript component data-binding question

2009-06-04 Thread Keith Hughitt
Thanks for all of the help guys! I have gotten things pretty much
working now: I just need to sort out some issues relating to working
with multidimensional data-sources, which I'm going to post in another
thread. In case it is helpful to anyone else though, here is the
near-completed class:

/***\

  * Filter Manager
 
\
**/
package custom {

 import mx.containers.Form;
 import mx.containers.FormItem;
 import mx.controls.Alert;
 import mx.collections.ArrayCollection;
 import mx.controls.DataGrid;
 import mx.controls.dataGridClasses.DataGridColumn;
 import mx.controls.TextInput;
 import mx.utils.ObjectUtil;
 import flash.events.Event;


/***\

 * Class definition for a class to manage the various search filters

\
***/
 public class FilterManager extends Form {

 private var _datasource:ArrayCollection;
 private var _datagrid:DataGrid;
 private var _filterSettings:Array;


/***
 * FilterManager (Constructor)
 *
 * Creates an instance of the filter manager class

***/
 public function FilterManager():void {
 super();
 }



/***
 * datagrid
 *
 * A reference to the DataGrid object for which the filter will
be applied

***/
 [Bindable]
 public function set datagrid(dg:DataGrid):void {
 _datagrid = dg;
 this.initFilters(); // DG not yet ready in constructor...
 this.setupUI();
 }

 public function get datagrid():DataGrid {
 return _datagrid;
 }


/***
 * datasource
 *
 * A reference to the actual data to be filtered

***/
 [Bindable]
 public function set datasource(data:ArrayCollection):void {
 _datasource = data;
 }

 public function get datasource():ArrayCollection {
 return _datasource;
 }


/***
 * initFilters
 *
 * Builds an array to manage the different filters that may be
set

***/
 private function initFilters():void {
 this._filterSettings = new Array();

 // Create an array for each column to keep track of it's
filter status
 for each (var col:DataGridColumn in _datagrid.columns) {
 var d:Object = new Object();

 // Add all filterable items (exclude thumbnails, etc)
 if (col['dataField'] != null) {
 d.field   = col['dataField'];
 d.header  = col['headerText'];
 d.enabled = false;
 d.filter  = null;
 this._filterSettings.push(d);
 }
 }
 }


/***
 * setupUI
 *
 * Sets up the form fields for entering filters

***/
 private function setupUI():void {
 for each (var item:Object in this._filterSettings) {
 var f:FormItem = new FormItem();
 f.label = item.header;

 // Filter input field
 var input:TextInput = new TextInput();

 // Setup event-handler
 var self:FilterManager = this;
 input.addEventListener("change", function (e:Event):void
{
 item.filter = e.target.text;

 // Update filter information
 item.enabled = (item.filter == "" ? false : true);

 // Update filter on DataGrid and throw event
 self._datasource.filterFunction = self.filter;
 self._datasource.refresh();
 });

 // Add text input to FormItem
 f.addChild(input);

 // Save a reference to the form control
 item.ui = f;
 addChild(f);
 }
 }


/*

[flexcoders] Re: cannot convert flash.display::Bitmap to mx.core.IUIComponent.

2009-06-04 Thread flexaustin
thanks again Alex. Yeah, duh, I have to put in an image.




--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Flex container children must be IUICOmponents.  Bitmap is not.  You can make 
> it a child of a UIComponent or the  source to Image if you want.
> 
> 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 flexaustin
> Sent: Thursday, June 04, 2009 9:13 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] cannot convert flash.display::Bitmap to 
> mx.core.IUIComponent.
> 
> 
> 
> 
> 
> Why would I be getting this error?
> 
> http://ns.adobe.com/mxml/2009";
> width="100%" height="100%"
> maxHeight="125" maxWidth="125">
> 
> 
> 
>  
> import flare.util.Displays;
> import flash.display.BitmapData;
> 
> // Take a bitmapdata object and shove it in the bitmapholder canvas
> public function shoveInBitmap( bm:BitmapData) : void
> {
> bitmapHolder.addChild( new Bitmap(bm) );
> }
> // Clear out all children from bitmapholder canvas
> public function clearBitmap() : void
> {
> bitmapHolder.removeAllChildren();
> }
> 
> ]]>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  left="{ (backGroundForZP.parent.width - mainBMPHolder.width) / 2}"
> top="{ (backGroundForZP.parent.height - mainBMPHolder.height) / 2}">
> 
> 
>  height="100%">
> 
> 
> 
>




[flexcoders] How to invoke mxml file or transfer control to mxml file after setting the request object in Java

2009-06-04 Thread kotha poornima
Hi All,
I am new to flex. And i learned how to call java servlets or jsp's from
flex. But now a question arises in my mind if in a project having all the
jsps and java servlets. If suppose they want to replace jsps with flex mxml
files how java servlets will
invoke mxml files as they(servlets) invoke jsps.
>From java servlets we can invoke jsps and transfer the control to jsp by
using RequestDispatcher. how can we call mxml files
from java servlets.
And if there are any request objects set in the java servlets, how can flex
mxml files access those objects.
Hope you all got my question.
Awaiting for all your replies. Thanks in Advance!

Poornima


RE: [flexcoders] flex app on losing focus...

2009-06-04 Thread Alex Harui
Flex responds to the Activate event when the browser becomes activated.  It 
should just set focus to the last control.  You'll probably have to use the 
profiler to see what else is going on then.

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 grimmwerks
Sent: Thursday, June 04, 2009 6:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flex app on losing focus...





I've got an application I created for a chain of stores, that when
losing focus for a moment - ie when the admin flips to another
interface -- upon return/getting focus, it draws it's entire interface
again and basically takes a few seconds of receiving event dispatches
to get into shape again.

I'm not sure how best to handle this as it seems it's something
happening at the core of a flex app; but is there a way to 'force'
flex/flash to keep getting updates while even in the background?



RE: [flexcoders] Re: Text stuck on screen BUG in FP10 or IE7????

2009-06-04 Thread Alex Harui
The intervals are short implying that the updates are happening fast enough.  
Where do you see the ghosting?  Can you get a screen shot?

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 flexaustin
Sent: Thursday, June 04, 2009 6:35 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Text stuck on screen BUG in FP10 or IE7





Thanks Alex. Here is what I get. Not sure what this tells me or if I can make 
refresh quicker?

56408
56446
56487
56527
56586
56625
56668
56708
56748
56788
56830
56869
56910
56951
56991
57031
57072
57114
57155
57193
57252
57292
57332
57374
57415
57454
57494
57535
57579
57620
57670
57693
57752
57779
57827
57863

Thanks, J

--- In flexcoders@yahoogroups.com, Alex 
Harui  wrote:
>
> Doesn't sound familiar. I'm not sure how you're moving the main sprite and 
> whether the text is within the stage or not. Trace getTImer() on enterFrame 
> to see how fast the player is refreshing the screen.
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com] On 
> Behalf Of flexaustin
> Sent: Wednesday, June 03, 2009 3:48 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Text stuck on screen BUG in FP10 or IE7
>
>
>
>
>
> So I have an app that has upto 300 sprites on screen at once and inside each 
> sprite is a textfield with embedded font (all Arial font).
>
> In IE7, when you move the main Sprite around the sprite/textfield text gets 
> stuck on the screen then eventually disappears. Its like the browser isn't 
> refreshing fast or something. The amount of time it takes for the 
> sprite/textfields to all go away varies sometimes 5 seconds sometimes 30 
> seconds.
>
> Wondering if its because of the way FP10 handles text now or ???
>
> TIA
>



RE: [flexcoders] cannot convert flash.display::Bitmap to mx.core.IUIComponent.

2009-06-04 Thread Alex Harui
Flex container children must be IUICOmponents.  Bitmap is not.  You can make it 
a child of a UIComponent or the  source to Image if you want.

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 flexaustin
Sent: Thursday, June 04, 2009 9:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] cannot convert flash.display::Bitmap to 
mx.core.IUIComponent.





Why would I be getting this error?

http://ns.adobe.com/mxml/2009";
width="100%" height="100%"
maxHeight="125" maxWidth="125">



























RE: [flexcoders] cannot convert flash.display::Bitmap to mx.core.IUIComponent.

2009-06-04 Thread Jake Churchill
addChild expects an mx.core.iUIComponent which Bitmap is not.  You're data
types are not matching up because you are adding everything to a Canvas.
You'll probably need to write a custom component that contains a public
property to store your bitmap children to.

 

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of flexaustin
Sent: Thursday, June 04, 2009 11:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] cannot convert flash.display::Bitmap to
mx.core.IUIComponent.

 






Why would I be getting this error?

http://ns.adobe.com/mxml/2009"; 
width="100%" height="100%" 
maxHeight="125" maxWidth="125">



















 







No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.339 / Virus Database: 270.12.53/2154 - Release Date: 06/04/09
05:53:00



[flexcoders] Re: Flex and Reporting

2009-06-04 Thread markgoldin_2000
I am using SQL reports with all Flex applications. A SQL report is rendered in 
an iFrame.

--- In flexcoders@yahoogroups.com, Angelo Anolin  wrote:
>
> Hi everyone,
> 
> I am totally amazed at the cool front-end UI things that could be done in 
> Flex.  I have been dabbling a lot on Flex and steadily getting the hang of it.
> 
> Anyway, one thing which I am looking for is on creating and printing 
> reports.  I am looking for some resources on how to achieve such things, like:
> 
> 1. Datagrid - creating a pdf file, open up in the swf application as well.
> 2. Crosstab reports
> 3. Executive summaries
> 4. Free-Form reports
> 
> Basically, am looking on how I would be able to design/generate reports which 
> could be used in a Flex application.
> 
> I would certainly welcome advise and feedback on this. Resources for further 
> explorations on reporting would also be appreciated.
> 
> Thanks.
>




Re: [flexcoders] Flex and Reporting

2009-06-04 Thread Richard Rodseth
Unfortunately, I don't think there's a great story yet. If an AIR
application is an option for you, you may have more options.

For PDF creation, there's the AlivePDF library, but I'm not aware of
anything to render a PDF within a SWF (short of sending the pages  to
the server for rendering as images).

On Thu, Jun 4, 2009 at 12:58 AM, Angelo Anolin  wrote:
>
>
> Hi everyone,
>
> I am totally amazed at the cool front-end UI things that could be done in
> Flex.  I have been dabbling a lot on Flex and steadily getting the hang of
> it.
>
> Anyway, one thing which I am looking for is on creating and printing
> reports.  I am looking for some resources on how to achieve such things,
> like:
>
> 1. Datagrid - creating a pdf file, open up in the swf application as well.
> 2. Crosstab reports
> 3. Executive summaries
> 4. Free-Form reports
>
> Basically, am looking on how I would be able to design/generate reports
> which could be used in a Flex application.
>
> I would certainly welcome advise and feedback on this. Resources for further
> explorations on reporting would also be appreciated.
>
> Thanks.
> 


[flexcoders] Re:Flex and Reporting

2009-06-04 Thread Martin Moschitz
You might wonna look at this:
http://www.kemelyon.com/bts/2008/01/14/flexreport/

I have not used it yet, but I am planning to use it for my current app.

Hth,
martin


[flexcoders] cannot convert flash.display::Bitmap to mx.core.IUIComponent.

2009-06-04 Thread flexaustin
Why would I be getting this error?

http://ns.adobe.com/mxml/2009"; 
width="100%" height="100%" 
maxHeight="125" maxWidth="125">



















 








RE: [flexcoders] Creating animated graphics

2009-06-04 Thread Battershall, Jeff
I've had better luck doing things like this in straight ActionScript.  There's 
a very lightweight library called Twease you might want to look into,and I am 
sure there are many other libraries available.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of bharat_1
Sent: Thursday, June 04, 2009 11:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Creating animated graphics


I need to create a continuous animation so that a bunch of shapes (circle, 
rectangles etc) move from left to right on the screen continuously in a 
non-ending loop. If I use the Move effect and set it to repeat, there is a 
flicker between each cycle so that the motion does not look continuous. Any 
suggestions how this can be done more smoothly?






--
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] Creating animated graphics

2009-06-04 Thread bharat_00001
I need to create a continuous animation so that a bunch of shapes (circle, 
rectangles etc) move from left to right on the screen continuously in a 
non-ending loop. If I use the Move effect and set it to repeat, there is a 
flicker between each cycle so that the motion does not look continuous. Any 
suggestions how this can be done more smoothly?




[flexcoders] Problem loading signed RSL

2009-06-04 Thread Denis
Hi all,

I am trying to publish an app with the signed framework RSL. The application 
works fine when accessed online from my machine (developer). However, when I 
try to access it from any other machine, I get this error: RSL 
framework_3.2.03958.swf failed to load. Error #2032. For some reason, the Flash 
player does not want to load the framework.swf or framework.swz. I have checked 
that all machines have the Flash player of a version higher than what I am 
running.

This app is running under SSL. Would that matter?

Thanks,
Denis



Re: [flexcoders] Adobe Flex Language Reference

2009-06-04 Thread Angelo Anolin
Hi Igor,

Thanks for this info.  I actually have the HTML file as well, but I wanted to 
have a PDF which I can print it out in one go.

Best regards,

Angelo





From: Igor Costa 
To: flexcoders@yahoogroups.com
Sent: Wednesday, 3 June, 2009 21:15:58
Subject: Re: [flexcoders] Adobe Flex Language Reference





Angelo


Not in PDF as I remember, but you can use a local version in html that is 
built-in in SDK.



Regards
Igor Costa


On Wed, Jun 3, 2009 at 1:02 AM, Angelo Anolin  wrote:




Is there a PDF download for this document?  I see this a lot in the Adobe 
Developer's Guide PDF documentation.
 
Thanks.



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

   


  

[flexcoders] Creating Link inisde a Data Grid Collumn

2009-06-04 Thread guess what

I want to show link inisde of my Data Grid Columnm . I know i could use item 
renderer . if I try to use it directly in flex file it works fine, meaning if i 
have static columns ,Since my collumns are beeing built dynamicaly . I use 
action Script . I think I am doing soemthing wrong with the script . Can anyone 
help me . 

I assume this should be as simple as this . Should urlRenderer be Action script 
file or  can anyone explain how do i do this . 
column.itemRenderer = urlRenderer  


  


Re: [flexcoders] Delaying Component Load

2009-06-04 Thread Pedro Sena
Check if this link can help you.

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

Regards,

PS

On Thu, Jun 4, 2009 at 10:51 AM, Jonathan Ackerman <
jacker...@latenitelabs.com> wrote:

>
>
>
> I have a small issue that I am sure that is solved relatively easily by
> all the pros here.
>
> I have been running into a IUIComponent issue on a component that is
> loading and I have determined that I need to delay the loading of this
> component a second or so.
>
> The component sits on a canvas with a tab navigator and I want to delay
> the load of this component until the specific tab is clicked on. I was
> thinking that I need to set the show event of the tab to run a function
> that would launch the component but I don't the syntax for doing this.
>
> Something like this?
>
> public function loadItem(event:Event):void{
> mycomponent.load()
> }
>
> Thanks!
>  
>



-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/


[flexcoders] Delaying Component Load

2009-06-04 Thread Jonathan Ackerman

I have a small issue that I am sure that is solved relatively easily by 
all the pros here.

I have been running into a IUIComponent issue on a component that is 
loading and I have determined that I need to delay the loading of this 
component a second or so.

The component sits on a canvas with a tab navigator and I want to delay 
the load of this component until the specific tab is clicked on. I was 
thinking that I need to set the show event of the tab to run a function 
that would launch the component but I don't the syntax for doing this.

Something like this?

public function loadItem(event:Event):void{
  mycomponent.load()
}


Thanks!


[flexcoders] flex app on losing focus...

2009-06-04 Thread grimmwerks
I've got an application I created for a chain of stores, that when  
losing focus for a moment - ie when the admin flips to another  
interface -- upon return/getting focus, it draws it's entire interface  
again and basically takes a few seconds of receiving event dispatches  
to get into shape again.

I'm not sure how best to handle this as it seems it's something  
happening at the core of a flex app; but is there a way to 'force'  
flex/flash to keep getting updates while even in the background?


Re: [flexcoders] Re: problems embedding symbols from Flash

2009-06-04 Thread grimmwerks
Thanks - it turns out I was doing something not too swift at all --  
think it was just not compiling for as2 or some idiocy.



On May 27, 2009, at 1:37 AM, Rohit Sharma wrote:




Will this help?

   http://jessewarden.com/2006/08/flash-9-button-in-flex-2.html

I use flash movieclip symbols in flex by linking to an external AS  
class and provide the symbol functionality in that class only.


Regards,
Rohit

On Tue, May 26, 2009 at 11:05 PM, a.scavarelli  
 wrote:



Is the symbol "exported for actionscript" in it's properties? And if  
so is the name "amp_ok"? or is it something like "someclass.amp_ok"?


I could not ever figure out how to link a symbol to an external as  
class and use it's extended functionality in Flex. I ended up just  
creating a component with all the external as within teh script tags.


Hopefully it's an easy fix like this for you :)



--- In flexcoders@yahoogroups.com, grimmwerks  wrote:
>
> Frustrated.
>
> I've got tried this with an AS3 version and currently with a Flash
> player 8 version... but am trying to embed a class within a  
component

> like so:
>
> [Bindable]
> [Embed(source="buttonStates/multistate8.swf", symbol="amp_ok")];
> private var tmp:Class;
>
> I get "Metadata requires an associated definition"
>
> The component is on the same level of buttonStates, so it's not a  
path

> issue; when I've attempted to test the flash file with a Button and
> using symbol as skins, it works no problem...\
>
> Thoughts?
>









[flexcoders] Re: Text stuck on screen BUG in FP10 or IE7????

2009-06-04 Thread flexaustin
Thanks Alex. Here is what I get. Not sure what this tells me or if I can make 
refresh quicker?

56408
56446
56487
56527
56586
56625
56668
56708
56748
56788
56830
56869
56910
56951
56991
57031
57072
57114
57155
57193
57252
57292
57332
57374
57415
57454
57494
57535
57579
57620
57670
57693
57752
57779
57827
57863

Thanks, J



--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Doesn't sound familiar.  I'm not sure how you're moving the main sprite and 
> whether the text is within the stage or not.  Trace getTImer() on enterFrame 
> to see how fast the player is refreshing the screen.
> 
> 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 flexaustin
> Sent: Wednesday, June 03, 2009 3:48 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Text stuck on screen BUG in FP10 or IE7
> 
> 
> 
> 
> 
> So I have an app that has upto 300 sprites on screen at once and inside each 
> sprite is a textfield with embedded font (all Arial font).
> 
> In IE7, when you move the main Sprite around the sprite/textfield text gets 
> stuck on the screen then eventually disappears. Its like the browser isn't 
> refreshing fast or something. The amount of time it takes for the 
> sprite/textfields to all go away varies sometimes 5 seconds sometimes 30 
> seconds.
> 
> Wondering if its because of the way FP10 handles text now or ???
> 
> TIA
>




Re: [flexcoders] mp3 playback problems only on Vista/IE?

2009-06-04 Thread Kevin F. Benz
What kind of problem? Need a little more than ³mp3 playback problems only on
Vista/IE²


On 6/4/09 6:05 AM, "joshuajnoble"  wrote:

>  
>   
> 
>   
> 
> 
> Has anyone heard of/run into this? Just curious, as a client is complaining
> about it and I'm on vacation and can't verify as I don't have a Win machine
> with me. Thanks for any thoughts,
> 
>   
> 
> 
>> 
> 
> Kevin F. Benz
> kb...@kbenz.com425-785-7100
> http://www.kbenz.com
> 
> "We can't solve problems by using the same kind of thinking we used when we
> created them" - Albert Einstein
> 



[flexcoders] comboBox close event trigger

2009-06-04 Thread markgoldin_2000
Is it possible to intercept combobox's close event and discover what triggerd 
the event? I have looked into event.triggerEvent but was not able to get any 
value.

Thanks.



[flexcoders] mp3 playback problems only on Vista/IE?

2009-06-04 Thread joshuajnoble

Has anyone heard of/run into this? Just curious, as a client is complaining 
about it and I'm on vacation and can't verify as I don't have a Win machine 
with me. Thanks for any thoughts,




RE: [flexcoders] Use ChangeWatcher with dynamic Object?

2009-06-04 Thread Yves Riel
Maybe you can use the ObjectProxy instead of Object. ObjectProxy
implements a dispatcher mechanism and could be a good candidate for
binding as it dispatches a PROPERTY_CHANGE event when a new property is
added to the object.



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Thursday, June 04, 2009 1:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Use ChangeWatcher with dynamic Object?





I want to have a dynamic Object to which I can add properties at will,
making an associative array or hashtable, and Object works fine for
this.

However, I also want to be able to set up changeWatchers for certain
properties, but my watchers are never getting fired.  I know Object is
not bindable, but should an explicit ChangeWatcher fire when a dynamic
property is  added or changed?

Tracy Spratt,

Lariat Services, development services available




[flexcoders] Flex and Reporting

2009-06-04 Thread Angelo Anolin
Hi everyone,

I am totally amazed at the cool front-end UI things that could be done in 
Flex.  I have been dabbling a lot on Flex and steadily getting the hang of it.

Anyway, one thing which I am looking for is on creating and printing reports.  
I am looking for some resources on how to achieve such things, like:

1. Datagrid - creating a pdf file, open up in the swf application as well.
2. Crosstab reports
3. Executive summaries
4. Free-Form reports

Basically, am looking on how I would be able to design/generate reports which 
could be used in a Flex application.

I would certainly welcome advise and feedback on this. Resources for further 
explorations on reporting would also be appreciated.

Thanks.


  

[flexcoders] Re: LCDS, Hibernate and offline synchronisation in Air

2009-06-04 Thread zdenekmikan
FYI: To fix this issue, I had to add the 



association metadata into data-services-config.xml file.

Zdenek M

--- In flexcoders@yahoogroups.com, Zdenek Mikan  wrote:
>
> I am trying to make the database application in Air, which should work 
> also offline. But I have a problem with associations.
> 
> I have two databases: Partner and Contact. In Contact there is a 
> ManyToOne association to Partner, based on the join table:
> 
> @ManyToOne(targetEntity=Partner.class, cascade={CascadeType.ALL})
> @JoinTable(name="partner_contact",
> joincolum...@joincolumn(name="fk_contact", 
> referencedColumnName="contact_id"),
> inversejoincolum...@joincolumn(name="fk_partner", 
> referencedColumnName="partner_id"))
> private Partner partner;
> 
> The problem is that when I create a new partner offline, then add a new 
> contact referencing this new partner, everything is OK when I am 
> offline, but after getting online and commiting offline changes, the new 
> partner is created two times.
> 
> Does anybody know the fix for this?
> 
> Thanks in advance
> 
> Zdenek M
>




RE: [flexcoders] Use ChangeWatcher with dynamic Object?

2009-06-04 Thread Gregor Kiddie
ChangeWatcher relies on the host being an event dispatcher doesn't it?
Which Object isn't.

Actually, the only reason I think it will compile is that the
host.addEventListener(...) calls to Object abuse the fact its dynamic.

 

Can you create a dynamic custom object which implements the
IEventDispatcher interface, and try that? Still not sure if it'll work
though, without being able to inject the dispatching code to fire when
properties change.

 

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 Tracy Spratt
Sent: 04 June 2009 06:12
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Use ChangeWatcher with dynamic Object?

 






I want to have a dynamic Object to which I can add properties at will,
making an associative array or hashtable, and Object works fine for
this.

 

However, I also want to be able to set up changeWatchers for certain
properties, but my watchers are never getting fired.  I know Object is
not bindable, but should an explicit ChangeWatcher fire when a dynamic
property is  added or changed?

 

 

Tracy Spratt,

Lariat Services, development services available