[flexcoders] Re: Best way to load XML file

2009-12-09 Thread Nathan
Divide and Conquer



RE: [flexcoders] How can I keep myself motivated to program in Flex? Please help. Thanks?

2009-12-09 Thread Alex Harui
There are folks on the SDK team who were older than 48 when they learned AS3.

My 2-year old is interested in tossing a ball for 3 days, then gets interested 
in something else, then goes back to the ball.  I'm pretty sure that with 
enough reps over enough time, he'll lose less of what he learned in between.  I 
expect you will too.

For me, keeping a roof over his head and food in his belly and diapers on his 
butt is a great motivator.  On the other hand, I'm still a nerd.

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 fred44455
Sent: Wednesday, December 09, 2009 9:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How can I keep myself motivated to program in Flex? 
Please help. Thanks?



I am learning Actionscript 3 , I like it and I enjoy doing it. But then I can't 
seems to be consistent
I lose interest for like 3 days then I am back again with AS3 except that I 
have to relearn everything I forgot during those 3 days. Am I being lazy? How 
can I keep myself motivated? I am 48 that's my last chance to become a Flex 
Developer. I have been that way for some time. What should I do? How do you 
guys stay focus? Thanks

I was told by a professional Flex programmer that programming is hard and that 
most people have to force themselves to do it. Only a few % are nerds and are 
enjoying programming but the rest of the programmers are doing it as a job , a 
lot are mediocre which is the case in a lot of other jobs(fields) and that 90% 
of programmers are pushing themselves if not will give up. Do you guys agree? 
Do I need to push myself and finally get a living like everybody else, Stop 
being a lazy loser?



[flexcoders] Flex Testing

2009-12-09 Thread ganaraj p r
Hi,

My confusion lies in the fact that the currently in the application very few
classes exist which do any kind of data manipulation ( And various
components ) .

All that the components do is get the data and display it on the display
list. In such a scenario how do we test the application. What do people test
in general?

My application is flex front end ( UI ) for a PhP backend (data comes from
here).
I was wondering if someone could help me with testing in Flex. What I mean
is, can you post me a code which contains a typical Flex Web App (UI heavy)
and how you go about testing its contents? Any link or pointers here would
be really helpful. I went through some examples that are given for testing.
The one on adobe site which talks about accounts etc ( But in my case im not
creating any non UI objects ).

Also are there any test cases available for build in components ( Like
Button or ComboBox?  just for reference )

-- 
Regards,
Ganaraj P R


[flexcoders] Re: Question about getting the type of item / component with drag and drop

2009-12-09 Thread timgerr
What is the best way to check if it is a panel?

timgerr

--- In flexcoders@yahoogroups.com, Gordon Smith  wrote:
>
> 1. if (dragEvent.currentTarget is Panel)
> 
> 2. currentTarget is generically typed as Object, which doesn't have an 
> addChild() method. But if you have already checked that the dropTarget is a 
> Panel, it's safe to do a cast:
> 
> Panel(dragEvent.currentTarget).addChild(...);
> 
> Gordon Smith
> Adobe Flex SDK Team
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of timgerr
> Sent: Wednesday, December 09, 2009 12:01 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Question about getting the type of item / component 
> with drag and drop
> 
> 
> 
> Hello all,
> I have been tasked with creating a menu that gets build with drag and drop 
> components. I have followed this tutorial 
> (http://www.flexafterdark.com/tutorials/Flex-Drag-and-Drop) and have learned 
> a lot.
> 
> I have a few questions to get to the next stage so I will ask a few questions.
> 
> 1. When I drop (or drag over) an item like a panel, how can I tell what that 
> UIComponent is, how can I tell that is a panel?
> 
> 2. How can I get that panel as an object so I can do something like 
> panelid.addChild(new dropped item)?
> 
> Thanks for the read,
> timgerr
> 
> Here is the code that I have from the tutorial.
> 
> 
> http://www.adobe.com/2006/mxml"; layout="absolute"
> name="Drag and Drop tutorial" creationComplete="Init()">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>




[flexcoders] Re: Tree : disable "select as you type"

2009-12-09 Thread aceoohay
I have read through this, and it appears that some success was gained by 
overriding the keydown handler.

Can this be done via the keyDown="myFunction(event)" in the mxml or do I need 
to create a custom component? Of course myFunction is in the as3 code.

I would prefer using the keyDown handler, if someone could point the way.

What I tried was;

private function treeTableKeyDown(event:KeyboardEvent):void
{
  var keycode_c:uint = 67;
  if (event.ctrlKey && event.keyCode == keycode_c)
  {
  event.preventDefault();
  event.stopImmediatePropagation();
  var strSeparator:String = "";
  var dataString:String = "";
  var selectItems:String = "";
  var objItem:Object = null;
  for (var i:int = 0; i < treeTable.selectedItems.length; i++)
  {
objItem = treeTable.selectedItems[i];
if (objit...@type == "Field")
{
selectItems += strSeparator + objit...@label;
strSeparator = ",";
}
  }
  System.setClipboard(selectItems);
  }
}

It of course finds the first item that begins with "C."

--- In flexcoders@yahoogroups.com, "chicanery99"  wrote:
>
> never mind.. i just had to stop the immediate propagation of the event
> after I finished handling it..
> 
> --- In flexcoders@yahoogroups.com, "chicanery99"  wrote:
> >
> > overriding keyDownHandler worked.. but looks like it worked only for
> > the first time.. following is what I mean..
> > 
> > hit ctrl-c.. i was able to capture the selected data on tree
> > hit ctrl-v.. doesnt hit the breakpoint(in the first line) of
> > keyDownHandler.. in fact none of the keydowns seem to be handled..
> > 
> > is something that would have run in case of default keyDown handling
> > preventing the future keydowns from being captured?
> > 
> > --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> > >
> > > Call stopImmediatePropagation, or override keyDownHandler and
> don't call
> > > super, or override findString
> > > 
> > >  
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
> [mailto:flexcod...@yahoogroups.com] On
> > > Behalf Of benoit.kogut
> > > Sent: Thursday, November 22, 2007 8:36 AM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Tree : disable "select as you type"
> > > 
> > >  
> > > 
> > > Hello,
> > > Is there a way to disable the select as you type feature of the Tree
> > > component ?
> > > 
> > > I'm trying to add keyboard shortcuts (Cut / Copy / Paste) on a tree,
> > > using the keyDown event. As soon as I hit the 'c' key (for instance)
> > > the first node whose label begins with a 'c' gets selected : the
> > > selection jumps from one node to another, which is weird.
> > >
> >
>




RE: [flexcoders] Question about getting the type of item / component with drag and drop

2009-12-09 Thread Gordon Smith
1. if (dragEvent.currentTarget is Panel)

2. currentTarget is generically typed as Object, which doesn't have an 
addChild() method. But if you have already checked that the dropTarget is a 
Panel, it's safe to do a cast:

Panel(dragEvent.currentTarget).addChild(...);

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of timgerr
Sent: Wednesday, December 09, 2009 12:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Question about getting the type of item / component with 
drag and drop



Hello all,
I have been tasked with creating a menu that gets build with drag and drop 
components. I have followed this tutorial 
(http://www.flexafterdark.com/tutorials/Flex-Drag-and-Drop) and have learned a 
lot.

I have a few questions to get to the next stage so I will ask a few questions.

1. When I drop (or drag over) an item like a panel, how can I tell what that 
UIComponent is, how can I tell that is a panel?

2. How can I get that panel as an object so I can do something like 
panelid.addChild(new dropped item)?

Thanks for the read,
timgerr

Here is the code that I have from the tutorial.


http://www.adobe.com/2006/mxml"; layout="absolute"
name="Drag and Drop tutorial" creationComplete="Init()">













[flexcoders] How can I keep myself motivated to program in Flex? Please help. Thanks?

2009-12-09 Thread fred44455
I am learning Actionscript 3 , I like it and I enjoy doing it. But then I can't 
seems to be consistent
I lose interest for like 3 days then I am back again with AS3 except that I 
have to relearn everything I forgot during those 3 days. Am I being lazy? How 
can I keep myself motivated? I am 48 that's my last chance to become a Flex 
Developer. I have been that way for some time. What should I do? How do you 
guys stay focus? Thanks

I was told by a professional Flex programmer that programming is hard and that 
most people have to force themselves to do it. Only a few % are nerds and are 
enjoying programming but the rest of the programmers are doing it as a job , a 
lot are mediocre which is the case in a lot of other jobs(fields) and that 90% 
of programmers are pushing themselves if not will give up. Do you guys agree? 
Do I need to push myself and finally get a living like everybody else, Stop 
being a lazy loser?



Re: [flexcoders] libs in a lib

2009-12-09 Thread Romeo Obane
Guess because you're already in a Flex Library Project :)

Honestly in my practice, I just delete the "libs" folder and directly
referring to my Library Project.

On Thu, Dec 10, 2009 at 7:50 AM, Richard Rodseth  wrote:

>
>
> Any particular reason that a Flex library project can't have a "libs"
> folder the way an application project can?
>  
>


Re: [flexcoders] Re: Link Bar behaves differently after SDK 3.4.1 update

2009-12-09 Thread Romeo Obane
It's true as I also manage to compare the LinkBar specially to it's extended
class NavBar but currently I just used 3.3 from the Milestone build as the
Linkbar just behaves well in there.

Thanks for the recommendation and will try that one.

On Thu, Dec 10, 2009 at 2:17 AM, tntomek  wrote:

>
>
> 3.4 and 3.4.1 (5 lines of code changed) are flaky, I would recommend the
> 3.5 nightly and from what Matt Chotin said the official should be out any
> day now.
>
>
> --- In flexcoders@yahoogroups.com , Romeo
> Obane  wrote:
> >
> > Greetings,
> >
> > In the code below, you can have a LinkBar that depends it's link menus
> from
> > the ViewStack and the second menu is somehow I set into disabled.
> >
> > eg.
> >
> > 
> >
> > 
> > 
> > 
> > 
> >
> >
> > OUTPUT:
> > *
> > *
> > *Menu 1 *
> > *
> > *
> > *Menu 2*
> > *
> > *
> > *
> > *
> > This just work perfectly from my 3.2 SDK until I updated into 3.4.1, the
> > disabled "Menu 2" is still enabled and found this one quite strange.
> > It's somehow clear that there's something to do with my SDK update, would
> > like to ask of any ideas or things I need to check that affects this one?
> > Hope that my illustration above is clear.
> >
> > Thanks a lot,
> > Romeo
> >
>
>  
>


RE: [flexcoders] Tree component + sort + LCDS 2.6 : nasty stackoverflow error

2009-12-09 Thread Alex Harui
This might be helpful. 
http://blogs.adobe.com/aharui/2008/12/tree_and_lazy_or_paged_data_1.html

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 Jeffrey Vroom
Sent: Wednesday, December 09, 2009 9:58 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Tree component + sort + LCDS 2.6 : nasty 
stackoverflow error [1 Attachment]


[Attachment(s) from Jeffrey Vroom included below]

I do recall seeing and workaround an error like that... it would occur when you 
using paging or pending data features with the tree components.  They did not 
do all of the checking for ItemPendingErrors that they needed in the default 
Flex implementation.

There are two ways you can workaround those problems.  One is to use the 
ResidentCollection I wrote to wrap your managed ArrayCollection in LCDS.  It 
swallows IPEs and makes it look like the ArrayCollection just goes from empty 
to full via change events.   I also think that I was able to workaround this 
problem by patching in some of the client classes even when you are not using 
resident collection.   I'll attach the source from the sample I had on this but 
unfortunately I don't have a build or the flex or lcds source so it is all from 
memory now.

Jeff
On Mon, Dec 7, 2009 at 1:19 AM, Rajeev Goel 
mailto:db.raj...@gmail.com>> wrote:

[Attachment(s) from Rajeev Goel included below]
hi All,

Need pointers/help to solve this issue. Had created an issue under LCDS 
component (on 1st december) in adobe's jira but its not public. Can't view its 
status and didn't hear back from them also.

Hopefully someone in forum can generate new ideas/insights.

Please refer attached source code (build instruction are provided at bottom)

1. launch the lcds-samples war with tomcat server
2. log on to URL: http://localhost:8400/lcds-samples/tree/TreeApp.swf
3. Completely expand the tree nodes in application
4. Drag and drop tree node with name "1.3.1 #7" upon tree node with name "root".


**Actual Results:**
5. application fails with StackOverflow error. (see image5).
Also note that 2 nodes with same name - "1.3.1 #7" is added as child to "root".
6. Another variation to this bug is: Open two app in two browser windows, DnD 
in one window causes stackoverflow in both application instances.
(see image6)

**Expected Results:**
7. DnD should occur smoothly, node "1.3.1 #7" should become a child of tree 
node "root".

Workaround (if any): remove sorting in Tree's dataDescriptor and code works 
smoothly.

** Exact error msg:**
 Error: Error #1023: Stack overflow occurred.
at 
mx.data.utils::Managed$/getProperty()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\utils\Managed.as:158]
at BOMVO/get 
children()[D:\server\lcds\tomcat\webapps\lcds-samples\WEB-INF\flex-src\tree\src\BOMVO.as:21]
at 
BOMTreeDataDescriptor/calculateChildren()[D:\server\lcds\tomcat\webapps\lcds-samples\WEB-INF\flex-src\tree\src\BOMTreeDataDescriptor.as:38]
at 
BOMTreeDataDescriptor/getChildren()[D:\server\lcds\tomcat\webapps\lcds-samples\WEB-INF\flex-src\tree\src\BOMTreeDataDescriptor.as:22]
at 
mx.controls.treeClasses::HierarchicalCollectionView/getChildren()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\treeClasses\HierarchicalCollectionView.as:393]
at 
mx.controls.treeClasses::HierarchicalCollectionView/calculateLength()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\treeClasses\HierarchicalCollectionView.as:285]
at 
mx.controls.treeClasses::HierarchicalCollectionView/calculateLength()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\treeClasses\HierarchicalCollectionView.as:293]
at 
mx.controls.treeClasses::HierarchicalCollectionView/calculateLength()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\treeClasses\HierarchicalCollectionView.as:259]
at 
mx.controls.treeClasses::HierarchicalCollectionView/calculateLength()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\treeClasses\HierarchicalCollectionView.as:293]
at

**BUILD INSTRUCTIONS: **

1. This bug's source code uses lcds-samples project shipped with LCDS 2.6 setup.
2. refer /tomcat/webapps/lcds-samples
3. copy the provided java source code into lcds-samples/WEB-INF/src/com/myapp 
directory
so that it contains these files:
com/myapp/
com/myapp/tree
com/myapp/tree/BOM.java
com/myapp/tree/BOMAssembler.java
com/myapp/tree/BOMService.java
4. copy flex sources files into folder: lcds-samples/WEB-INF/flex-src/tree/src 
. It should look like:
tree/src/assets
tree/src/BOMTreeDataDescriptor.as
tree/src/BOMVO.as
tree/src/TreeApp.mxml

5. overwrite these files in lcds-samples/WEB-INF/flex
data-management-config.xml
remoting-config.xml

6. after compilati

[flexcoders] JSON

2009-12-09 Thread Richard Rodseth
Have there been any recent developments/improvements in JSON <-> AS3
serialization? The goal being to get typed value objects, not generic
Objects.

I'm aware of (and have used) as3corelib and Darron Schall's ObjectTranslator
class.

Thanks.


[flexcoders] libs in a lib

2009-12-09 Thread Richard Rodseth
Any particular reason that a Flex library project can't have a "libs" folder
the way an application project can?


Re: [flexcoders] Inserting Datagrid printscreen in PDF with AlivePDF

2009-12-09 Thread thomas parquier
I've used a invisible viewstack to store datagrids with good dataprovider to
fit in a page. A listener on creationcomplete adds a page and inserts the
image.

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


2009/12/8 Vitor Cunha 

>
>
> Hello,
> I'm having problems trying to insert the contents of a DataGrid in a PDF
> generated with AlivePDF. I'm not using AlivePDF grid component because my
> DataGrid has many customizations, like grouped headers, etc. The difficulty
> is that the Datagrid conten is large, and would take more than one page in
> the PDF.
> I use the addImage method ( myPDF.addImage(DataGrid) ) to draw the DataGrid
> in the PDF. When I have to create a new page in the PDF, I modify the
> dataProvider, slicing the array so the DataGrid shows the contents of the
> next page, and I call the addImage method again. This time, the DataGrid
> image added to the PDF didn't change, it's the same as the first image. It
> looks like the DataGrid wasn't updated.
> Here's a part of the code that generates the PDF :
>
>
> myPDF =
> *new* PDF(Orientation.LANDSCAPE,Unit.MM,Size.A4);
>
> myPDF.setDisplayMode(Display.FULL_PAGE, Layout.SINGLE_PAGE );
>
> **
>
> *var* newPage:Page;
>
> **
>
> */* Calculate the number of pages*/*
>
> numPages = (dataGrid.height/dataGrid.rowHeight)-1;
>
> intPages = Math.ceil(dataProvider.length/numPages);
>
>  * *
>
> *for*( *var* i:uint = 0; i < intPages; i++){
>
>
>
> */* Add a new page in the PDF */*
>
> newPage =
> *new* Page(Orientation.LANDSCAPE, Unit.MM, Size.A4 );
>
> myPDF.addPage(newPage);
>
>
>
> */* Refresh the dataProvider */*
>
> Data =
> *new* ArrayCollection(ArrData.source.slice((i * numPages),(i * numPages) +
> numPages) );
>
> dataGrid.dataProvider = Data;
>
> Data.refresh();
>
>
>
> */* Insert the grid image in the dataGrid */*
>
> myPDF.addImage(dataGrid);
>
> }
>
>
>
> Is there a way to update the dataGrid image so I can insert multiple pages
> correctly in the PDF?
>
>
>
> Thanks,
>
> Vitor.
>
> --
> Agora a pressa é amiga da perfeição. Chegou Windows 7. 
> Conheça.
> 
>


Re: [flexcoders] CSS Div not working

2009-12-09 Thread Wesley Acheson
Try putting in a valid doctype into the document. This forces IE into
standards mode which should make a difference to margin:auto

On Mon, Dec 7, 2009 at 10:02 PM, Dan Pride  wrote:

> I am trying to enclose pages in a div that is centered on the page.
> It works great on the Mac but Css code that works in every other instance
> does not seem to work on Windows for any ie versions. Windows Firefox etc
> fine, any ie and the page is stuck to the left.
> This is not the usual ie crap, code that normally works there doesn't work
> on my flex html wrapper pages. Whats up?
> (page http://www.archaeolibrary.com/Gezer/Center/Center.html)
> Thanks for the Great help thats always up on this board !
> Dan Pride
>
>
>
>
>
> 
>
> --
> 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] replicating Flex build with ant script

2009-12-09 Thread Ariel J
I am trying to reproduce the standard build with an ant script to prepare for 
future customizations, but when I compile I am getting a SWF with a drastically 
different size that won't run. Can anyone spot an error in my script? Here is 
my current ant target:



/Main 
 


 


 


 


 


 


 




[flexcoders] Re: Inserting Datagrid printscreen in PDF with AlivePDF

2009-12-09 Thread Mike
I gave up on AlivePDF.  All it can do is provide fuzzy screen grabs; the width 
and height of the displayed UIComponent determines the printed output, which 
sucks.  No pagination is possible.

The Flex PrintGrid is also inadequate for reporting needs.

Instead, I wrote a Java program that create PDFs from an application's data, 
using the iText library.  This is the same library that Cold Fusion uses for 
creating PDFs.  The Flex client sends the data that needs to be printed to a 
server using an HTTP POST, and my little Java program generates the PDF. The 
result is a crisp, paginated document.  The data is sent as XML; the only tags 
I currently support are  and , and just enough attributes to 
satisfy this client's needs.

BTW, iText allows other PDFs and files to be merged, and the generated PDF 
could even contain a Flex app and data... but that is another story.

Sorry I can't provide the source at this time, because it was paid for by my 
client.  If they are willing to make the source available at another time, I'll 
publish it.

It only took about 10 hours to write a POC, not a big deal.  If another client 
wanted this, I could write a similar program easily enough.

Mike



[flexcoders] Data in a drag and drop

2009-12-09 Thread Wally Kolcz
When dragging an item out of a TileList and into a Datagrid, how can I find 
the actual data that is in the DragSource Object?

I want to use the item being drag's properties (productID, productName, 
etc) so i can add them to a holder ArrayCollection and then use them to 
insert into the database.

Any ideas on how or where I can find this information? Thanks!




[flexcoders] Question about getting the type of item / component with drag and drop

2009-12-09 Thread timgerr
Hello all, 
I have been tasked with creating a menu that gets build with drag and drop 
components.  I have followed this tutorial 
(http://www.flexafterdark.com/tutorials/Flex-Drag-and-Drop) and have learned a 
lot.

I have a few questions to get to the next stage so I will ask a few questions.

1. When I drop (or drag over) an item like a panel, how can I tell what that 
UIComponent is, how can I tell that is a panel?

2. How can I get that panel as an object so I can do something like 
panelid.addChild(new dropped item)?

Thanks for the read,
timgerr

Here is the code that I have from the tutorial.


http://www.adobe.com/2006/mxml"; layout="absolute"
name="Drag and Drop tutorial" creationComplete="Init()">














RE: [flexcoders] using system fonts in Flex

2009-12-09 Thread Gordon Smith
> Given a use-case involving Flash running in IE7 on a Windows OS, is it safe 
> to assume that
> "device fonts" in the context of this thread refers to any font installed on 
> the Windows client machine?

That's right.

Gordon Smith
Adobe Flex SDK Team


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Glenn Jones
Sent: Tuesday, December 08, 2009 5:09 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] using system fonts in Flex



Thanks for all of the helpful responses.

I don't need to rotate the text or do anything exotic with it - just render 
basic labels.
I'm actually trying to avoid embedding fonts in the SWF as I don't have a 
license to redistribute my preferred font.

If I can specify a list of fonts that includes one or more fonts which are 
already installed on Windows,
then that will work fine for my case.

Given a use-case involving Flash running in IE7 on a Windows OS, is it safe to 
assume that "device fonts" in the context of this thread refers to any font 
installed on the Windows client machine?

Thanks,
Glenn
On Tue, Dec 8, 2009 at 6:18 PM, Gordon Smith 
mailto:gosm...@adobe.com>> wrote:

> Out of curiosity, why *can't* Flash do things like rotate text unless the 
> corresponding font is embedded?
> Couldn't it just embed the necessary glyphs from the local font on an 
> as-needed basis?

For one thing, you don't generally know at compile time (i.e., when the SWF is 
being created) what text you're going to render at runtime (i.e., when the SWF 
is being executed). The data to display often comes from outside, or gets 
calculated in some way. And even if all the text was set explicitly in MXML or 
AS, the compiler doesn't understand what those assignment statements are 
actually doing, as opposed to c = a + b.

For another thing, I think with device fonts the Player doesn't just grab 
glyphs and render them... I think it uses the OS to render them. So if the OS 
doesn't have rotation APIs, it can't rotate them.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On 
Behalf Of Guy Morton
Sent: Tuesday, December 08, 2009 3:55 PM

To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] using system fonts in Flex



Yes, the original post didn't state why he thought embedding was required, so 
you may be right and the requirement may have been to do something you can only 
do with an embedded font. In which case, neither of us has provided a useful 
answer, other that "yes you need to embed the font in a swf file"... :-)

Out of curiosity, why *can't* Flash do things like rotate text unless the 
corresponding font is embedded? Couldn't it just embed the necessary glyphs 
from the local font on an as-needed basis?

Guy




On 09/12/2009, at 10:16 AM, Alex Harui wrote:


It will if he wants to use device fonts.  I just assumed he wanted to use 
embedded fonts for various rendering effects.

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

From: flexcoders@yahoogroups.com 
[mailto:flexcod...@yahoog! roups.com] On Behalf Of Guy Morton

Sent: Tuesday, December 08, 2009 2:55 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] using system fonts in Flex


Are you sure it won't pick up locally available fonts? I'm fairly sure it will. 
If you use CSS to define the font to use you can specify a list of fonts to 
degrade to, so if ! your preferred font is unavailable the next one on the list 
wi! ll be us ed.

Have you tried that?

Guy


On 09/12/2009, at 7:12 AM, Glenn Jones wrote:



AFAIK, any fonts used in Flex ha! ve to be compiled into the SWF.

Is there some way to use system fonts that are already installed on a customer 
machine?

Specifically, I'd like to build an app that uses Microsoft's new Segoi UI font 
(included
with Vista and Office 2007) without compiling a TTF into my SWF.

Thanks,
Glenn







[flexcoders] Re: Creating admin section tutorial with flex?

2009-12-09 Thread valdhor
There are all sorts of posts about this sort of thing. Try these three to 
start...

http://www.brucephillips.name/blog/index.cfm/2007/3/17/Login-System-For-A-Flex-Application-With-ColdFusion-Backend-Part-3--Custom-Login-Form-Component

http://old.nabble.com/Login-Registration-Page---td21747714.html#a21748295

http://old.nabble.com/flex-login-popup-help-needed-please-td20772482.html#a20833766


Google is also your friend.

--- In flexcoders@yahoogroups.com, "Calbeans"  wrote:
>
> Hi All, 
> 
> I've been doing a ton of searches for developing an admin section with Flex, 
> but haven't come across anything.  I'm trying to create a login page, so that 
> a user would have to enter their username/password for entry, then be taken 
> to another page but I'm having a hard time trying to find that.  Would any of 
> you happen to know any good tutorials for something like this?  Thanks in 
> advance!
>




[flexcoders] Re: new StringValidator() .source problem?

2009-12-09 Thread Tibor
purchOrg us most likely null when you are assigning it as the source of the 
validator.

Could you post the rest of the coded where purchOrg is defined?

also this_initializeHandler is the handler for which event?

Tibor.
www.tiborballai.com

--- In flexcoders@yahoogroups.com, Nick Middleweek  wrote:
>
> Hi,
> 
> I'm trying to use StringValidator in ActionScript. The following example
> shows MXML and then adding the ID's to an Array...
> 
> http://blog.flexexamples.com/2007/08/13/validating-flex-forms-using-the-validator-classes/
> 
> ... I'd like to do this entirely in ActionScript but am getting an error
> about the source property needing to be set...
> 
> Error: The source attribute must be specified when the property attribute is
> specified.
> 
> 
> But I am specifying the source property of the StringValidator instance. Can
> anyone see what I may be doing wrong? Thanks in advance...
> 
> 
> [Bindable]
> private var validationArray:Array;
> 
> 
> private function this_initializeHandler():void
> {
> validationArray = new Array();
> 
> var purchOrg_Validator:StringValidator = new
> StringValidator();
> //purchOrg_Validator.required = true;
> purchOrg_Validator.source = purchOrg;
> purchOrg_Validator.property = "text"
> purchOrg_Validator.minLength = 2;
> 
> validationArray.push(purchOrg_Validator);
> 
> }
> 
> private function submitButton_clickHandler(event:MouseEvent):void
> {
> //validate the form validators...
> var validatorErrorArray:Array =
> Validator.validateAll(validationArray); // ERRORS HERE?
> 
> var formIsValid:Boolean = (validatorErrorArray.length == 0);
> 
> Alert.show(formIsValid.toString());
> }
> 
> 
> There is a TextInput object with ID="purchOrg" in a form but I can
> understand.
> 
> 
> Thanks,
> N
>




[flexcoders] Re: new StringValidator() .source problem?

2009-12-09 Thread Nick Middleweek
I thought I'd try it by creating the MXML StringValidator...





... and adding that to the validation array.

This works.


So I must be doing something wrong with the ActionScript ? Can anyone see
what I'm doing wrong?


Thanks,
N





2009/12/9 Nick Middleweek 

> Hi,
>
> I'm trying to use StringValidator in ActionScript. The following example
> shows MXML and then adding the ID's to an Array...
>
>
> http://blog.flexexamples.com/2007/08/13/validating-flex-forms-using-the-validator-classes/
>
> ... I'd like to do this entirely in ActionScript but am getting an error
> about the source property needing to be set...
>
> Error: The source attribute must be specified when the property attribute
> is specified.
>
>
> But I am specifying the source property of the StringValidator instance.
> Can anyone see what I may be doing wrong? Thanks in advance...
>
>
> [Bindable]
> private var validationArray:Array;
>
>
> private function this_initializeHandler():void
> {
> validationArray = new Array();
>
> var purchOrg_Validator:StringValidator = new
> StringValidator();
> //purchOrg_Validator.required = true;
> purchOrg_Validator.source = purchOrg;
> purchOrg_Validator.property = "text"
> purchOrg_Validator.minLength = 2;
>
> validationArray.push(purchOrg_Validator);
>
> }
>
> private function submitButton_clickHandler(event:MouseEvent):void
> {
> //validate the form validators...
> var validatorErrorArray:Array =
> Validator.validateAll(validationArray); // ERRORS HERE?
>
> var formIsValid:Boolean = (validatorErrorArray.length ==
> 0);
>
> Alert.show(formIsValid.toString());
> }
>
>
> There is a TextInput object with ID="purchOrg" in a form but I can
> understand.
>
>
> Thanks,
> N
>
>
>


[flexcoders] new StringValidator() .source problem?

2009-12-09 Thread Nick Middleweek
Hi,

I'm trying to use StringValidator in ActionScript. The following example
shows MXML and then adding the ID's to an Array...

http://blog.flexexamples.com/2007/08/13/validating-flex-forms-using-the-validator-classes/

... I'd like to do this entirely in ActionScript but am getting an error
about the source property needing to be set...

Error: The source attribute must be specified when the property attribute is
specified.


But I am specifying the source property of the StringValidator instance. Can
anyone see what I may be doing wrong? Thanks in advance...


[Bindable]
private var validationArray:Array;


private function this_initializeHandler():void
{
validationArray = new Array();

var purchOrg_Validator:StringValidator = new
StringValidator();
//purchOrg_Validator.required = true;
purchOrg_Validator.source = purchOrg;
purchOrg_Validator.property = "text"
purchOrg_Validator.minLength = 2;

validationArray.push(purchOrg_Validator);

}

private function submitButton_clickHandler(event:MouseEvent):void
{
//validate the form validators...
var validatorErrorArray:Array =
Validator.validateAll(validationArray); // ERRORS HERE?

var formIsValid:Boolean = (validatorErrorArray.length == 0);

Alert.show(formIsValid.toString());
}


There is a TextInput object with ID="purchOrg" in a form but I can
understand.


Thanks,
N


[flexcoders] Re: Why am I seeing a greyed out folder icon...

2009-12-09 Thread Matthew
Actually, the more online examples I see, that folder (really more a document) 
always appears in the left-most column of the row that is expanded. I guess 
it's there by default. 

--- In flexcoders@yahoogroups.com, "Matthew"  wrote:
>
> ...in the first column of my AdvancedDataGridRendererProvider??
> 
> I'm using an AdvancedDataGrid with a DataGrid item renderer. I set the 
> renderer up with a columnIndex="1" and columnSpan="0".
> 
> When the row is expanded, the DataGrid is indented one column (as it should), 
> but why am I seeing the grey folder in the first column? 
> 
> Does anyone have an idea what might be making this folder show up? I've seen 
> it before when my dataProvider wasn't set up correctly. However, both 
> datagrids are showing their data so I don't know if that's the case. 
> 
> Thank you for any helpful tips,
> 
> Matt
>




[flexcoders] Re: Link Bar behaves differently after SDK 3.4.1 update

2009-12-09 Thread tntomek
3.4 and 3.4.1 (5 lines of code changed) are flaky, I would recommend the 3.5 
nightly and from what Matt Chotin said the official should be out any day now.

--- In flexcoders@yahoogroups.com, Romeo Obane  wrote:
>
> Greetings,
> 
> In the code below, you can have a LinkBar that depends it's link menus from
> the ViewStack and the second menu is somehow I set into disabled.
> 
> eg.
> 
> 
> 
> 
>
>
> 
> 
> 
> OUTPUT:
> *
> *
> *Menu 1   *
> *
> *
> *Menu 2*
> *
> *
> *
> *
> This just work perfectly from my 3.2 SDK until I updated into 3.4.1, the
> disabled "Menu 2" is still enabled and found this one quite strange.
> It's somehow clear that there's something to do with my SDK update, would
> like to ask of any ideas or things I need to check that affects this one?
> Hope that my illustration above is clear.
> 
> Thanks a lot,
> Romeo
>




Re: [flexcoders] Tree component + sort + LCDS 2.6 : nasty stackoverflow error [1 Attachment]

2009-12-09 Thread Jeffrey Vroom
I do recall seeing and workaround an error like that... it would occur when
you using paging or pending data features with the tree components.  They
did not do all of the checking for ItemPendingErrors that they needed in the
default Flex implementation.

There are two ways you can workaround those problems.  One is to use the
ResidentCollection I wrote to wrap your managed ArrayCollection in LCDS.  It
swallows IPEs and makes it look like the ArrayCollection just goes from
empty to full via change events.   I also think that I was able to
workaround this problem by patching in some of the client classes even when
you are not using resident collection.   I'll attach the source from the
sample I had on this but unfortunately I don't have a build or the flex or
lcds source so it is all from memory now.

Jeff

On Mon, Dec 7, 2009 at 1:19 AM, Rajeev Goel  wrote:

>
>  [Attachment(s) <#12569edb8eb3129b_TopText> from Rajeev Goel included
> below]
>
> hi All,
>
> Need pointers/help to solve this issue. Had created an issue under LCDS
> component (on 1st december) in adobe's jira but its not public. Can't view
> its status and didn't hear back from them also.
>
> Hopefully someone in forum can generate new ideas/insights.
>
>
> Please refer attached source code (build instruction are provided at
> bottom)
>
>
>
> 1. launch the lcds-samples war with tomcat server
>
> 2. log on to URL: http://localhost:8400/lcds-samples/tree/TreeApp.swf
>
> 3. Completely expand the tree nodes in application
>
> 4. Drag and drop tree node with name "1.3.1 #7" upon tree node with name
> "root".
>
>
>
>
>
> **Actual Results:**
>
> 5. application fails with StackOverflow error. (see image5).
>
> Also note that 2 nodes with same name - "1.3.1 #7" is added as child to
> "root".
>
> 6. Another variation to this bug is: Open two app in two browser windows,
> DnD in one window causes stackoverflow in both application instances.
>
> (see image6)
>
>
>
> **Expected Results:**
>
> 7. DnD should occur smoothly, node "1.3.1 #7" should become a child of tree
> node "root".
>
>
>
> Workaround (if any): remove sorting in Tree's dataDescriptor and code works
> smoothly.
>
>
>
> ** Exact error msg:**
>
>  Error: Error #1023: Stack overflow occurred.
>
> at
> mx.data.utils::Managed$/getProperty()[C:\depot\flex\branches\enterprise_corfu_rc\frameworks\projects\data\src\mx\data\utils\Managed.as:158]
>
> at BOMVO/get
> children()[D:\server\lcds\tomcat\webapps\lcds-samples\WEB-INF\flex-src\tree\src\BOMVO.as:21]
>
> at
> BOMTreeDataDescriptor/calculateChildren()[D:\server\lcds\tomcat\webapps\lcds-samples\WEB-INF\flex-src\tree\src\BOMTreeDataDescriptor.as:38]
>
> at
> BOMTreeDataDescriptor/getChildren()[D:\server\lcds\tomcat\webapps\lcds-samples\WEB-INF\flex-src\tree\src\BOMTreeDataDescriptor.as:22]
>
> at
> mx.controls.treeClasses::HierarchicalCollectionView/getChildren()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\treeClasses\HierarchicalCollectionView.as:393]
>
> at
> mx.controls.treeClasses::HierarchicalCollectionView/calculateLength()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\treeClasses\HierarchicalCollectionView.as:285]
>
> at
> mx.controls.treeClasses::HierarchicalCollectionView/calculateLength()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\treeClasses\HierarchicalCollectionView.as:293]
>
> at
> mx.controls.treeClasses::HierarchicalCollectionView/calculateLength()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\treeClasses\HierarchicalCollectionView.as:259]
>
> at
> mx.controls.treeClasses::HierarchicalCollectionView/calculateLength()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\treeClasses\HierarchicalCollectionView.as:293]
>
> at
>
>
>
> **BUILD INSTRUCTIONS: **
>
>
>
> 1. This bug's source code uses lcds-samples project shipped with LCDS 2.6
> setup.
>
> 2. refer /tomcat/webapps/lcds-samples
>
> 3. copy the provided java source code into
> lcds-samples/WEB-INF/src/com/myapp directory
>
> so that it contains these files:
>
> com/myapp/
>
> com/myapp/tree
>
> com/myapp/tree/BOM.java
>
> com/myapp/tree/BOMAssembler.java
>
> com/myapp/tree/BOMService.java
>
> 4. copy flex sources files into folder:
> lcds-samples/WEB-INF/flex-src/tree/src . It should look like:
>
> tree/src/assets
>
> tree/src/BOMTreeDataDescriptor.as
>
> tree/src/BOMVO.as
>
> tree/src/TreeApp.mxml
>
>
>
> 5. overwrite these files in lcds-samples/WEB-INF/flex
>
> data-management-config.xml
>
> remoting-config.xml
>
>
>
> 6. after compilation lcds-samples/tree folder should be created with these
> contents:
>
> tree/
>
> tree/assets
>
> tree/assets/font
>
> tree/TreeApp.swf
>
>
>
> 7. To configure lcds-samples as eclipse project, copy these files to
> /lcds-samples folder -
>
> .actionScriptProperties
>
> .classpath
>
> .flexPrope

[flexcoders] Creating admin section tutorial with flex?

2009-12-09 Thread Calbeans
Hi All, 

I've been doing a ton of searches for developing an admin section with Flex, 
but haven't come across anything.  I'm trying to create a login page, so that a 
user would have to enter their username/password for entry, then be taken to 
another page but I'm having a hard time trying to find that.  Would any of you 
happen to know any good tutorials for something like this?  Thanks in advance!



[flexcoders] Creating admin section tutorial with flex?

2009-12-09 Thread Calbeans
Hi All, 

I've been doing a ton of searches for developing an admin section with Flex, 
but haven't come across anything.  I'm trying to create a login page, so that a 
user would have to enter their username/password for entry, then be taken to 
another page but I'm having a hard time trying to find that.  Would any of you 
happen to know any good tutorials for something like this?  Thanks in advance!



[flexcoders] Why am I seeing a greyed out folder icon...

2009-12-09 Thread Matthew
...in the first column of my AdvancedDataGridRendererProvider??

I'm using an AdvancedDataGrid with a DataGrid item renderer. I set the renderer 
up with a columnIndex="1" and columnSpan="0".

When the row is expanded, the DataGrid is indented one column (as it should), 
but why am I seeing the grey folder in the first column? 

Does anyone have an idea what might be making this folder show up? I've seen it 
before when my dataProvider wasn't set up correctly. However, both datagrids 
are showing their data so I don't know if that's the case. 

Thank you for any helpful tips,

Matt



Re: [flexcoders] Blazeds on Godaddy

2009-12-09 Thread Flex Killer
Thanks Kannan for your response . I am able run simple web application  . I 
have few servlets and JSP running and they are working fine.Only problem with 
Blazeds configuration . 

Unofrtunately server log is not giving much infromation other than 
http://mywebsite/ messagebroker/ amf page not found error.
I did copy the flex folder directly under WEB-INF directory .
Regards
Kiran





From: kannan Mugundan 
To: flexcoders@yahoogroups.com
Sent: Wed, December 9, 2009 10:54:12 AM
Subject: Re: [flexcoders] Blazeds on Godaddy

   
Hi,

  I can't answer your question directly, but I have a question. Are you able to 
run a simple web application.
And also do you have access to server log. May be you can find some error 
there. 


With Regards
Kannan



On Wed, Dec 9, 2009 at 5:12 PM, Flex Killer  wrote:

>
>
>
>
>
>
>
>
>
>
>
>
>
>  >
>
>>
> 
>>  
> 
>>
>Dear All,
>
>
>( Not sure I am supposed to ask this question here or not , but in the end 
>left with no option)
>
>
>I am struggling to set up blazeds on my godaddy account . It totally stopped
>all my work. Could somebody kindly look into this issue? 
>
>
>
>I am using blazeds in my local environment and It is working fine ( Tomcast
>as a server) . Context root is set to null. 
>
>
>
>The same configuration I copied to godaddy server and could not able to get
>it running. 
>
>
>
>My directory structure in Godaddy account
>/WEB-INF/flex
>And if I try to hit the URL
>http://mywebsite/ messagebroker/ amf' 
>, I am getting page not found error .
> ( I am using godaddys shared linux java
>supported hosting environment, After I set up the server was restarted around 5
>times)
> Could somebody please look into this and help
>me?
>
>
>Regards
>Kiran
>
>

 


  

[flexcoders] Re: Prevent inset/shifting of text in selected tabs

2009-12-09 Thread dfalling
Yeah, I've skinned a tab navigator to have no backgrounds or borders.  The text 
shift looks absolutely horrific in it- much more obvious than when you have all 
the button's regular chrome.

--- In flexcoders@yahoogroups.com, "invertedspear"  wrote:
>
> I couldn't even notice it before, but now I can see it shifting about a 
> pixel. It looks to me like it defaults to being vertically aligned to center, 
> and the selected tab has no bottom border, so the space to center the text in 
> is slightly bigger. There is no vertical-align style for selected tab or any 
> tabs for that matter.
> 
> Maybe an itemRenderer is the solution. This is bothering me now, if I find 
> the answer I will let you know ASAP.
> 
> --- In flexcoders@yahoogroups.com, "dfalling"  wrote:
> >
> > It's definitely not a style I've set.  If you go select the tab navigator 
> > in the style explorer, you should be able to notice the text in the tabs 
> > shifting down slightly whenever the tab is selected.  I haven't found any 
> > styles or text properties that cause this, and have even dug through the 
> > tab navigator code to try to see the changes it does to selected tabs.
> > 
> > --- In flexcoders@yahoogroups.com, "invertedspear"  wrote:
> > >
> > > I haven't seen that before but it may be something to do with some of 
> > > your styles. Check this gadget out, it has helped me beyond words in 
> > > dealing with styles in Flex. I haven't seen one for flex3 yet, but this 
> > > covers most of everything.
> > > 
> > > http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html
> > > 
> > > --- In flexcoders@yahoogroups.com, "dfalling"  wrote:
> > > >
> > > > When a tab in a tab navigator is selected, the text shifts down a 
> > > > slight amount.  I've looked everywhere and can't find a style or 
> > > > property that's causing this.  How can I prevent the text from shifting?
> > > > 
> > > > Thanks
> > > >
> > >
> >
>




Re: [flexcoders] Blazeds on Godaddy

2009-12-09 Thread kannan Mugundan
Hi,

  I can't answer your question directly, but I have a question. Are you able
to run a simple web application.
And also do you have access to server log. May be you can find some error
there.


With Regards
Kannan

On Wed, Dec 9, 2009 at 5:12 PM, Flex Killer  wrote:

>
>
> Dear All,
>
>
> ( Not sure I am supposed to ask this question here or not , but in the end
> left with no option)
>
>
> I am struggling to set up blazeds on my godaddy account . It totally
> stopped all my work. Could somebody kindly look into this issue?
>
>
> I am using blazeds in my local environment and It is working fine ( Tomcast
> as a server) . Context root is set to null.
>
>
> The same configuration I copied to godaddy server and could not able to get
> it running.
>
>
> My directory structure in Godaddy account
>
> /WEB-INF/flex
>
> And if I try to hit the URL
>
> http://mywebsite/messagebroker/amf'  , I am getting page not found error .
>
>  ( I am using godaddys shared linux java supported hosting environment,
> After I set up the server was restarted around 5 times)
>
>  Could somebody please look into this and help me?
>
>
> Regards
>
> Kiran
>
>  
>


Re: [flexcoders] Re: Publishing Blazeds application

2009-12-09 Thread kannan Mugundan
Hi,

 Make sure you have all your blazeds jars is available under web-inf/lib
 If you want those files to be secure and accessed only by authenticated
user You can have your swf under web-inf/ some folder/
else the swf files can be parallel to WEB-INF folder

Also make sure you have some default channels configured in blazeDS config
panel.


If you get any error,  mention what error you get and also on server side
are you using Struts or Spring.




On Wed, Dec 9, 2009 at 10:38 AM, chenyang3  wrote:

>
>
> Could someone please give me some directions to go with publishing blazeds
> application?
> With Regards
>
Kannan

>
> --- In flexcoders@yahoogroups.com ,
> "chenyang3"  wrote:
> >
> > Hi all. I'm new to blazeds and I have created a flex/blazeds application
> and I'm able to test it sucessfully locally with tomcat. Now I'm publishing
> it to a web server to test it online. But I'm not sure about what extra
> configurations I would need to do in order to make it work on the web
> server. First of all, what folders should I upload? I tried to upload both
> the release build folder (which contains the swf files, html wrappers, etc)
> and the WEB-INF folder (which contains the classes folder and the 4
> configuration files, etc). I put them in the same directory in my server.
> Now should I change the endpoints in the services-config.xml file? And do I
> need to install any other programs on my server in order to make it work?
> >
> > Any hints much appreciated.
> >
> > Regards,
> > Yang
> >
>
>  
>


[flexcoders] How can I filter hierarchicaldata in advanced DataGridcolumn, this is tree structuredata?

2009-12-09 Thread Thomas Silvester
Hi All,
Can Anyone help me to filter Hierarchicla Data in an advanced datagridcolumn, 
Any sample code
Below is my data
 









 
 





 


 


 



 
 
 
 
 
 


 
I tried the below but it only filtered the first level of data not the children 
level data
 
private function filterSName():void {
dp.filterFunction = filterServiceName;
dp.refresh();
}

private function filterServiceName(item:Object):Boolean {
var searchSName:String = sTextInput.text.toLowerCase();
var itemName:String = (item.PService as String).toLowerCase();
return itemName.indexOf(searchSName) > -1;
}
 
 
thanks in advance,
Anitha.

[flexcoders] Best way to load XML file

2009-12-09 Thread Flex Killer
Dear All,

I have a 2 MB XML file locally and if I try to import that file using



It is loading all the data at compile time  ( In fact flex builder is throwing 
memory exception)

I loaded the same file using HTTPService and It is taking
significant amount of time to load the data in production environment . 

Could some body suggest a better way to load this? ( I don't
have an option of loading this to database and reading it from there)

Regards
Kiran


  

[flexcoders] Re: Publishing Blazeds application

2009-12-09 Thread chenyang3
Could someone please give me some directions to go with publishing blazeds 
application?

--- In flexcoders@yahoogroups.com, "chenyang3"  wrote:
>
> Hi all. I'm new to blazeds and I have created a flex/blazeds application and 
> I'm able to test it sucessfully locally with tomcat. Now I'm publishing it to 
> a web server to test it online. But I'm not sure about what extra 
> configurations I would need to do in order to make it work on the web server. 
> First of all, what folders should I upload? I tried to upload both the 
> release build folder (which contains the swf files, html wrappers, etc) and 
> the WEB-INF folder (which contains the classes folder and the 4 configuration 
> files, etc). I put them in the same directory in my server. Now should I 
> change the endpoints in the services-config.xml file? And do I need to 
> install any other programs on my server in order to make it work?
> 
> Any hints much appreciated.
> 
> Regards,
> Yang
>




[flexcoders] Blazeds on Godaddy

2009-12-09 Thread Flex Killer
Dear All,

( Not sure I am supposed to ask this question here or not , but in the end left 
with no option)

I am struggling to set up blazeds on my godaddy account . It totally stopped
all my work. Could somebody kindly look into this issue? 


I am using blazeds in my local environment and It is working fine ( Tomcast
as a server) . Context root is set to null. 


The same configuration I copied to godaddy server and could not able to get
it running. 


My directory structure in Godaddy account
/WEB-INF/flex
And if I try to hit the URL
http://mywebsite/messagebroker/amf' 
, I am getting page not found error .
 ( I am using godaddys shared linux java
supported hosting environment, After I set up the server was restarted around 5
times)
 Could somebody please look into this and help
me?

Regards
Kiran



  

[flexcoders] PureMVC Portability

2009-12-09 Thread Karthik Kailash
Hi all,

I'm looking into potentially looking PureMVC because of its platform
independence.  We are developing an app in Flex and may eventually want to
port into to Silverlight and maybe even desktop (not just with AIR).  My
question is, are there examples of major Silverlight applications out there
that are currently built on PureMVC?  From what I've seen so far, almost
everything seems to be done for AS3.

 

I am specifically interested in a case where PureMVC helped migrate and
maintain an application on multiple (at least 2) frameworks, because that's
where I see its real potential value.

Cheers,
Karthik

 

Karthik Kailash | Product

SocialVision, Online Television Becomes a Social Experience

CELL . 408.768.7704  | WEB . www.socialvisioninc.com | FACEBOOK .
 facebook.com/socialvision | TWITTER .
 twitter.com/socialvision


Confidential: This electronic message and all contents contain information
from SOCIALVISION, INC. which may be privileged, confidential or otherwise
protected from disclosure. The information is intended to be for the
addressee only. If you are not the addressee, any disclosure, copy,
distribution or use of the contents of this message is prohibited. If you
have received this electronic message in error, please notify the sender
immediately and destroy the original message and all copies.



[flexcoders] AdvancedDataGridColumn itemRenderer AS class

2009-12-09 Thread daniel_cantin
Hi,

I use a class as itemRender for my AdvancedDataGridColumn and it work fine. 
See the code below:

package vues
{

import mx.collections.ArrayCollection;
import mx.containers.HBox;
import mx.containers.VBox;

public class gridColonne extends VBox 
{

protected override function createChildren():void

{

super.createChildren();

var boxHaut:HBox   = new HBox();
var boxMilieu:HBox = new HBox();
var boxBas:HBox= new HBox();

boxHaut.height= 20;
boxHaut.percentWidth  = 100;
boxHaut.setStyle("backgroundColor", 0xFF); 
boxHaut.setStyle("color", 0xFF);

this.addChild(boxHaut);

boxMilieu.height   = 20;
boxMilieu.percentWidth = 100;
boxMilieu.setStyle("backgroundColor", 0x00FF00); 
boxMilieu.setStyle("color", 0x00FF00);

this.addChild(boxMilieu);

boxBas.height  = 20;
boxBas.percentWidth= 100;
boxBas.setStyle("backgroundColor", 0xFF); 
boxBas.setStyle("color", 0xFF);

this.addChild(boxBas);

}

}

}

   I try to have access at the column informations of the AdvancedDataGrid 
treated by my itemRenderer class (Column index). How can I have access to this 
information.

Regards,





[flexcoders] Inserting Datagrid printscreen in PDF with AlivePDF

2009-12-09 Thread Vitor Cunha

Hello,

I'm having problems trying to insert the contents of a DataGrid in a PDF 
generated with AlivePDF. I'm not using AlivePDF grid component because my 
DataGrid has many customizations, like grouped headers, etc. The difficulty is 
that the Datagrid conten is large, and would take more than one page in the PDF.

I use the addImage method ( myPDF.addImage(DataGrid) ) to draw the DataGrid in 
the PDF. When I have to create a new page in the PDF, I modify the 
dataProvider, slicing the array so the DataGrid shows the contents of the next 
page, and I call the addImage method again. This time, the DataGrid image added 
to the PDF didn't change, it's the same as the first image. It looks like the 
DataGrid wasn't updated.

Here's a part of the code that generates the PDF :

 

myPDF = new PDF(Orientation.LANDSCAPE,Unit.MM,Size.A4);

myPDF.setDisplayMode(Display.FULL_PAGE, Layout.SINGLE_PAGE );

 
var newPage:Page;

 
/* Calculate the number of pages*/
numPages = (dataGrid.height/dataGrid.rowHeight)-1;
intPages = Math.ceil(dataProvider.length/numPages);


 
for( var i:uint = 0; i < intPages; i++){

 
/* Add a new page in the PDF */
newPage = new Page(Orientation.LANDSCAPE, Unit.MM, Size.A4 );

myPDF.addPage(newPage);
 
/* Refresh the dataProvider */

Data = new ArrayCollection(ArrData.source.slice((i * numPages),(i * 
numPages) + numPages) );

dataGrid.dataProvider = Data;
Data.refresh();
 

/* Insert the grid image in the dataGrid */
myPDF.addImage(dataGrid);
}
 
Is there a way to update the dataGrid image so I can insert multiple pages 
correctly in the PDF?
 
Thanks, 
Vitor.
_
Fique protegido de ameças utilizando o Novo Internet Explorer 8. Baixe já, é 
grátis!
http://brasil.microsoft.com.br/IE8/mergulhe/?utm_source=MSN%3BHotmail&utm_medium=Tagline&utm_content=Tag1&utm_campaign=IE8

[flexcoders] Re: Prevent inset/shifting of text in selected tabs

2009-12-09 Thread valdhor
I must be blind cause I'm not seeing this.

Anyway, just for future reference, the flex 3 Style Explorer can be found at 
http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplorer.html

--- In flexcoders@yahoogroups.com, "invertedspear"  wrote:
>
> I couldn't even notice it before, but now I can see it shifting about a 
> pixel. It looks to me like it defaults to being vertically aligned to center, 
> and the selected tab has no bottom border, so the space to center the text in 
> is slightly bigger. There is no vertical-align style for selected tab or any 
> tabs for that matter.
> 
> Maybe an itemRenderer is the solution. This is bothering me now, if I find 
> the answer I will let you know ASAP.
> 
> --- In flexcoders@yahoogroups.com, "dfalling"  wrote:
> >
> > It's definitely not a style I've set.  If you go select the tab navigator 
> > in the style explorer, you should be able to notice the text in the tabs 
> > shifting down slightly whenever the tab is selected.  I haven't found any 
> > styles or text properties that cause this, and have even dug through the 
> > tab navigator code to try to see the changes it does to selected tabs.
> > 
> > --- In flexcoders@yahoogroups.com, "invertedspear"  wrote:
> > >
> > > I haven't seen that before but it may be something to do with some of 
> > > your styles. Check this gadget out, it has helped me beyond words in 
> > > dealing with styles in Flex. I haven't seen one for flex3 yet, but this 
> > > covers most of everything.
> > > 
> > > http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html
> > > 
> > > --- In flexcoders@yahoogroups.com, "dfalling"  wrote:
> > > >
> > > > When a tab in a tab navigator is selected, the text shifts down a 
> > > > slight amount.  I've looked everywhere and can't find a style or 
> > > > property that's causing this.  How can I prevent the text from shifting?
> > > > 
> > > > Thanks
> > > >
> > >
> >
>




[flexcoders] Re: Spark / mx:DataGrid inline item renderer

2009-12-09 Thread Markus
Thanks Alex for that good advice. I'll have a look.

Markus

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> New feature to make that easier due soon.  Part of it is already in the 
> nightly builds.  Search for MXDataGridItemRenderer
> 
> 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 Markus
> Sent: Tuesday, December 08, 2009 5:55 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Spark / mx:DataGrid inline item renderer
> 
> 
> 
> Hi,
> 
> I have simple question about how to write an inline item renderer with the 
> new Spark components using the mx:DataGrid. If I try the code below it gives 
> me an error that I can't access the data property when using the Spark 
> s:Label. But with the mx:Label it works. What am I doing wrong?
> 
> Are there any examples out there on how to use custom Spark item renderers 
> with the mx:DataGrid?
> 
> Thanks in advance.
> 
> Markus
> 
> 
> http://ns.adobe.com/mxml/2009";
> xmlns:s="library://ns.adobe.com/flex/spark"
> xmlns:mx="library://ns.adobe.com/flex/halo"
> minWidth="1024" minHeight="768">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>