Re: [flexcoders] Flash Builder 4 - How to update?

2010-03-22 Thread Igor Costa
Unistall the existing beta. download the new one and install.

Thats all you need

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


On Mon, Mar 22, 2010 at 7:30 PM, Eduardo Dias  wrote:

>
>
> Hi Guys,
>
> Does anyone know how can i update the Flash Builder 4 from beta to the
> newest final release?
>
>
> Thanks !
>
> --
> Best Regards,
> Eduardo Dias
> 
>


Re: [flexcoders] Module to fill up space

2010-03-22 Thread Alex Harui
I would try:


http://ns.adobe.com/mxml/2009";
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo">




And if that doesn’t work, add:


http://ns.adobe.com/mxml/2009";
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo"
percentWidth=”100”
percentHeight=”100”>









On 3/22/10 9:44 AM, "jsutjahjo"  wrote:






Hi,

I have a question about module.  The following code has 1 main application, and 
1 module.  The module contains a data grid.  How do I make the data grid fill 
up the available space?  I tried to set left/right/top/bottom properties to 
zero, but no success.  Thank you - Jan.

Main Application:


http://ns.adobe.com/mxml/2009";
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo">



Module (Book.mxml):


http://ns.adobe.com/mxml/2009";
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo">















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


Re: [flexcoders] How to monkey patch using multiple libraries?

2010-03-22 Thread Alex Harui
It is bad practice to be adding new APIs when monkey-patching.  You should be 
subclassing instead.

However, all that should matter is the compile time stamp in the SWC.  Newest 
one wins.  Make sure the SWCs are listed in the correct order just to be safe 
in your project properties.  I’m not sure if code hints go lookin for the time 
stamps.


On 3/22/10 5:30 PM, "tntomek"  wrote:






Seems like monkey patching works when everything is included in 1 project but 
not when using libraries. What happens when I have 2 projects and monkey patch 
is in other one.

i.e.
MainAppProject (contains MainApp.mxml)
 -SomeLibraryProject (this has the monkey patch code, i.e. Button)

Now in my MainApp.mxml I'm unable to reference my version of the code.

I understand if I use RSLs I can force load my class first so runtime would 
work, but how do I get compile time access to this class? What if I added a new 
property (in library project) and I want to access that property from MainApp? 
The compiler has no idea and I can't build. This forces me to make the monkey 
patch class implement some interface that would guarantee compile time changes, 
but this is getting way more complicated then it needs to. Any other ideas?

-Tom Gruszowski (http://tomek.me)






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


[flexcoders] anybody using Grebulon code for flex olap?

2010-03-22 Thread MicC
couple of classes missing from download? TIA,

Mic.



Re: [flexcoders] DataGrids with large datasets Tips & Tricks?

2010-03-22 Thread Alex Harui
It doesn’t matter if you add columns at run-time or not.  The main factor is 
how many column you are displaying and how many rows will be displayed.  And 
note that is different from the total set of columns that could be displayed 
and total number of data items:

Example:  I have a 1 person database with 100 different statistics on each 
person.  I set up my DataGrid to have 100 columns representing each statistic, 
but because it won’t fit on the screen I set horizontalScrollPolicy=”true”.  
Still, the DG is likely to be full screen so it can show about 20 columns and 
30 rows.

Note that if do not set horizontalScrollPolicy=”true”, the DG will cram all 100 
columns on screen.  This makes a significant difference.  Instead of 20x30=600 
renderers, it is 100x30=3000 renderers.  The DG will take more than 5 times 
longer to set up and render 3000 renderers instead of 600 renderers, memory 
usage will go way up, and even things like mouse tracking and CPU utilization 
at idle time will be impacted.

The next important thing to remember is that DG has a very generalized update 
mechanism.  If it detects a change to any of the 1 person records, it will 
refresh “all” of the renderers on the screen.  It does not optimize for whether 
that renderer is associated with that data item because labelFunctions and 
custom renderers make it possible for any data item change to affect every 
renderer.  This is very inefficient, but we have to be this conservative 
otherwise your renderers could miss updates.

This is important in how you setup and maintain your dataProvider.  A common 
mistake I see is to take some XML, make a new ArrayCollection, and loop through 
the XML creating Person records and using push/addItem to add it to the 
ArrayCollection.  Every time you do that, the AC generates a change event, and 
if the DG is already bound, it is going to try to refresh all of its renderers.

So, aggregate changes.  If you are converting XML, make an array, convert items 
and push them on the array and then set the whole array into the 
ArrayCollection’s source.

HTH,


On 3/22/10 4:28 PM, "fusionpage"  wrote:







Does anyone have any tips or tricks, in general, about optimizing the Flex 
client for best performance in populating/rendering large datasets in an 
AdvancedDataGrid?

I'm specifically NOT asking about improving the server-side.  I'm trying to 
understand what the factors are on the Flex client-side that impact how fast 
data loads/renders into an ADG, when the columns use in-line itemrenderers 
and/or the columns are added at run-time.

Are there any significant difference in performance when comparing different 
design patterns or ways of generating the datagrid? e.g. does it matter if it 
generated via pure AS3, or if you use MXML? Is performance the same no matter 
which design pattern one uses?

Assume the data is loading via a RemoteObject call.  In my case via a 
ColdFusion CFC.

Any tips, tricks, or links so I can learn more?

So, far, in my experience, most of the performance issues come from the 
server-side, but I may be ignorant on the impact of the design on the Flex side.

Thanks,
Don






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


[flexcoders] Problems installing Flash Builder 4 upgrade

2010-03-22 Thread Farid Shahlavi
Hi All,

I'm having issues running Flash Builder 4 after a successful install.
I keep getting the License agreement dialog which keeps reappearing
after I agree, I can't get the application to launch. Has anyone else
experienced this? I had the beta installed before this which I
uninstalled before I installed the release version.

Any help would be greatly appreciated.

Thanks,

Farid


[flexcoders] How to monkey patch using multiple libraries?

2010-03-22 Thread tntomek
Seems like monkey patching works when everything is included in 1 project but 
not when using libraries. What happens when I have 2 projects and monkey patch 
is in other one.

i.e.
MainAppProject (contains MainApp.mxml)
 -SomeLibraryProject (this has the monkey patch code, i.e. Button)

Now in my MainApp.mxml I'm unable to reference my version of the code.

I understand if I use RSLs I can force load my class first so runtime would 
work, but how do I get compile time access to this class? What if I added a new 
property (in library project) and I want to access that property from MainApp? 
The compiler has no idea and I can't build. This forces me to make the monkey 
patch class implement some interface that would guarantee compile time changes, 
but this is getting way more complicated then it needs to. Any other ideas?

-Tom Gruszowski (http://tomek.me)




[flexcoders] DataGrids with large datasets Tips & Tricks?

2010-03-22 Thread fusionpage

Does anyone have any tips or tricks, in general, about optimizing the Flex 
client for best performance in populating/rendering large datasets in an 
AdvancedDataGrid?

I'm specifically NOT asking about improving the server-side.  I'm trying to 
understand what the factors are on the Flex client-side that impact how fast 
data loads/renders into an ADG, when the columns use in-line itemrenderers 
and/or the columns are added at run-time.

Are there any significant difference in performance when comparing different 
design patterns or ways of generating the datagrid? e.g. does it matter if it 
generated via pure AS3, or if you use MXML? Is performance the same no matter 
which design pattern one uses?

Assume the data is loading via a RemoteObject call.  In my case via a 
ColdFusion CFC.

Any tips, tricks, or links so I can learn more?

So, far, in my experience, most of the performance issues come from the 
server-side, but I may be ignorant on the impact of the design on the Flex side.

Thanks,
Don





RE: [flexcoders] Re: WHO IS RESPONSIBLE???

2010-03-22 Thread Matt Chotin
We share a number of libraries with the Creative Suite to do things like 
artwork import, font resolution, etc.  That's more what was meant here.

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Jeff
Sent: Monday, March 22, 2010 3:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: WHO IS RESPONSIBLE???



When did Flash Builder join the Creative Suite?

--- In flexcoders@yahoogroups.com, Gordon 
Smith mailto:gosm...@...>> wrote:
>
> My understanding is that none of Adobe's Creative Suite applications support 
> being installed on a case-sensitive Mac file system. The Flex team was 
> unfortunately unable to get this restriction relaxed when Flash Builder 
> joined the Creative Suite.
>
> Gordon Smith
> Adobe Flex SDK Team
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com] On 
> Behalf Of Florian
> Sent: Monday, March 22, 2010 5:44 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] WHO IS RESPONSIBLE???
>
>
>
> I am scared...
>
> I was glad to see that there is now Flash Builder 4 available @ adobe.com... 
> I am glad i didn't buy it right away. I can't install it on a case sensitive 
> formatted HDD?
>



Re: [flexcoders] Email in TextInput

2010-03-22 Thread Oleg Sivokon
Opps, sorry, wrong link: http://tools.ietf.org/html/rfc822


Re: [flexcoders] Remote objects issue - Channel.Connect.Failed error NetConnection.Call.BadVersion

2010-03-22 Thread Oleg Sivokon
BadVersion usually means there's junk in the response, this would be caused
by warnings or error messages being output into the same stream as the
response body. The literal meaning of this message is that the Flash AMF
parser could not understand what's been sent to it.
Check for any code that may cause errors or warnings on the server side. I
use Charles Proxy for watching the AMF communication - it is not a free
program, but it has an evaluation version, that doesn't expire, but keeps
annoying you with "buy me" sort of messages. Actually, I think it's worth
the money, but, that's up to you.

Best.

Oleg


[flexcoders] Module to fill up space

2010-03-22 Thread jsutjahjo

Hi,

I have a question about module.  The following code has 1 main
application, and 1 module.  The module contains a data grid.  How do I
make the data grid fill up the available space?  I tried to set
left/right/top/bottom properties to zero, but no success.  Thank you -
Jan.

Main Application:


http://ns.adobe.com/mxml/2009";
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo">



Module (Book.mxml):


http://ns.adobe.com/mxml/2009";
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo">













Re: [flexcoders] Trim from the left till it finds the last '/'

2010-03-22 Thread Oleg Sivokon
var a:String = "1/2/3/4";
trace(a.substr(a.lastIndexOf("/") + 1));


[flexcoders] Re: Regarding CollapsiblePanel's minimize and restore Events

2010-03-22 Thread binoop_cv
Yes valdhor. We are also using the same. For CollapsiblePanel, the events are 
of "minimize" and "restore". We cant achieve this functionality using "open" or 
"close" events.

Once again thanking you for the support.

Regards,
Binoop

--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> Which CollapsiblePanel  are you using? (Note: CollapsiblePanel is not a 
> built-in Flex component).
> 
> If you are using the one from http://hasseg.org/blog/?p=113, you can check if 
> the CollapsiblePanel is open or not to figure out if it's a open or close 
> event.
> 
> --- In flexcoders@yahoogroups.com, "binoop_cv"  wrote:
> >
> > In mxml we can specify the minimize and restore Events as
> > 
> >  > collapseDuration="200" width="100%"  collapsed="false" 
> > minimize="fnHndlerForMinimize()"
> > restore="fnHndlerForRestore">
> > 
> > My question is how can we determine whether its an "minimize" or "restore" 
> > events using actionscript?
> > 
> > In the case of datagrid we can specify addEventListener as 
> > dg.addEventListener(DataGridEvent.ITEM_EDIT_BEGIN, checkFieldCanBeEdited);
> > 
> > So in the ITEM_EDIT_BEGIN, it will call the function checkFieldCanBeEdited.
> > 
> > How we can add "minimize" and "restore" events of CollapsiblePanel   like 
> > the above?
> > 
> > Thanks much,
> > Binoop
> >
>




Re: [flexcoders] Embedded an image list

2010-03-22 Thread Oleg Sivokon
Simplest possible reply - you are asked to do exactly this - embed the
images, not load them at runtime. :)

Best.

Oleg


[flexcoders] Re: WHO IS RESPONSIBLE???

2010-03-22 Thread Jeff
When did Flash Builder join the Creative Suite? 

--- In flexcoders@yahoogroups.com, Gordon Smith  wrote:
>
> My understanding is that none of Adobe's Creative Suite applications support 
> being installed on a case-sensitive Mac file system. The Flex team was 
> unfortunately unable to get this restriction relaxed when Flash Builder 
> joined the Creative Suite.
> 
> Gordon Smith
> Adobe Flex SDK Team
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of Florian
> Sent: Monday, March 22, 2010 5:44 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] WHO IS RESPONSIBLE???
> 
> 
> 
> I am scared...
> 
> I was glad to see that there is now Flash Builder 4 available @ adobe.com... 
> I am glad i didn't buy it right away. I can't install it on a case sensitive 
> formatted HDD?
>




[flexcoders] Flash Builder 4 - How to update?

2010-03-22 Thread Eduardo Dias
Hi Guys,

Does anyone know how can i update the Flash Builder 4 from beta to the
newest final release?


Thanks !

-- 
Best Regards,
Eduardo Dias


RE: [flexcoders] WHO IS RESPONSIBLE???

2010-03-22 Thread Gordon Smith
My understanding is that none of Adobe's Creative Suite applications support 
being installed on a case-sensitive Mac file system. The Flex team was 
unfortunately unable to get this restriction relaxed when Flash Builder joined 
the Creative Suite.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Florian
Sent: Monday, March 22, 2010 5:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] WHO IS RESPONSIBLE???



I am scared...

I was glad to see that there is now Flash Builder 4 available @ adobe.com... I 
am glad i didn't buy it right away. I can't install it on a case sensitive 
formatted HDD?



[flexcoders] Re: Make a Timer's first timeout event immediate

2010-03-22 Thread djhatrick
By the way, here's how i skin this cat:

10ms and 0ms might be the same thing to flashplayer, as people have mentioned 
before me


updateTimer = new Timer();
pollTimer = new Timer(6*60*5,0);

updateTimer.addEventListener(TimerEvent.TIMER,onUpdateTimer);
updateTimer.start();
onUpdateTimer(null)



[flexcoders] Duplicate Subscription error (Flex,CF9 with embedded BlazeDS)

2010-03-22 Thread wlbagent
Very simple Flex (FB3) application which subscribes to a ColdFusion 9
DataServicesMessaging Event Gateway using the CF9 "embedded" BlazeDS.

Issue: When the Flex application starts, the mx:Consumer component
returns the following faultSting "Duplicate subscription. Another client
has already subscribed with the clientId,
'803B65B1-312C-989A-F55A-4C3973AAEDD6'."

If I reload the page in the browser the error does  not occur and the
application works as expected.

I have a ColdFusion page that sends a message to the CF Event Gateway. 
The gateway is working because the "out" count increases each time I
send a message and, once I reload the Flex page, the messages from the
CF page show up on the Flex page.

Here is the code for the cfm page that sends a message to the CF
gateway:



 
 
 
 
 
 Message sent.
 
 Message failed.
 
 




Message:







Here is the Flex application code:

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

 
 
 
 
 
 



My messaging-config.xml file is the original one that was installed with
CF9.

This is running locally  using the built-in CF webserver
(http://localhost:8500).

Any help/ideas would be greatly appreciated.



[flexcoders] Re: 360flex videos

2010-03-22 Thread Jeff
E-mail them; or watch their blog and / or twitter feed.

They have a huge amount of video; and I expect it'll take a couple months to 
get it all processed and uploaded somewhere.

--- In flexcoders@yahoogroups.com, "Ariel J"  wrote:
>
> I was told attendees would get access to the videos from the conference. 
> Anyone know where they can be found?
>




RE: [flexcoders] WHO IS RESPONSIBLE???

2010-03-22 Thread Matt Chotin
Unfortunately many Adobe products don't support case-sensitive file systems.  
FB is one of them due to a number of the libraries we share with other Adobe 
products.

Matt

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Florian
Sent: Monday, March 22, 2010 5:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] WHO IS RESPONSIBLE???



I am scared...

I was glad to see that there is now Flash Builder 4 available @ adobe.com... I 
am glad i didn't buy it right away. I can't install it on a case sensitive 
formatted HDD?



[flexcoders] 360flex videos

2010-03-22 Thread Ariel J
I was told attendees would get access to the videos from the conference. Anyone 
know where they can be found?



RE: [flexcoders] Trim from the left till it finds the last '/'

2010-03-22 Thread Keith Reinfeld
One minor correction: 

var filename:String = urlStr2.substr(urlStr2.lastIndexOf("/")+1,
urlStr2.length);

 

Regards,

 

Keith Reinfeld
Home Page:  
http://keithreinfeld.home.comcast.net

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Keith Reinfeld
Sent: Monday, March 22, 2010 10:36 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Trim from the left till it finds the last '/'

 

  

var Filename:String = urlStr.substr(urlStr.lastIndexOf("/"), urlStr.length);

 

Regards,

 

Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net
 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wally Kolcz
Sent: Monday, March 22, 2010 10:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Trim from the left till it finds the last '/'

 

  

I am trying to trim down a url path to just the stuff after the last '/' 
character. It changes from time to time so I cannot just replace base 
URL path and just keep the difference at the end.

How can I do this in AS3:

Turn these:
/com/mysite/views/app1/app.swf
/com/mysite/view/otherapp/app2.swf

Into just these:
app.swf
app2.swf

Thanks if you can help!



<><>

[flexcoders] Remote objects issue - Channel.Connect.Failed error NetConnection.Call.BadVersion

2010-03-22 Thread Eric Dunn
I am running into an issue where I am attempting to use a remote object to 
retrieve data. I am getting the following error on the initial attempt, but 
seems to work on all other connections after the initial one: 
faultCode: Client.Error.MessageSend 
faultDetail: Channel.Connect.Failed error NetConnection.Call.BadVersion: : url: 
' http://myServer:80/weborb.wo ' 
faultString: Send failed 


here is the setup for the method call: 

private var cs:ChannelSet = new ChannelSet(); 
private var myChannel:Channel = new AMFChannel("my-amf", " 
http://myServer:80/weborb.wo "); 
private var compinfo:RemoteObject = new RemoteObject( "PojoDestination" ); 

private function getInfo():void { 
cs.addChannel(myChannel); 
compinfo.channelSet = cs; 
compinfo.addEventListener( FaultEvent.FAULT, faultHandler ); 
compinfo.addEventListener(ResultEvent.RESULT, getComputerInfoHandler); 
compinfo.getComputerInfo("3"); 
} 
I am setting up the calls wrong? what am I missing? Is there a better way? 


Thanks, 

Eric W Dunn 
Adaption Technologies 
281-465-3326 
ed...@adpt-tech.com 


RE: [flexcoders] Trim from the left till it finds the last '/'

2010-03-22 Thread Keith Reinfeld
var Filename:String = urlStr.substr(urlStr.lastIndexOf("/"), urlStr.length);

 

Regards,

 

Keith Reinfeld
Home Page:  
http://keithreinfeld.home.comcast.net

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wally Kolcz
Sent: Monday, March 22, 2010 10:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Trim from the left till it finds the last '/'

 

  

I am trying to trim down a url path to just the stuff after the last '/' 
character. It changes from time to time so I cannot just replace base 
URL path and just keep the difference at the end.

How can I do this in AS3:

Turn these:
/com/mysite/views/app1/app.swf
/com/mysite/view/otherapp/app2.swf

Into just these:
app.swf
app2.swf

Thanks if you can help!



<><>

[flexcoders] Re: Wow. Healthcare passed and flashbuilder 4 all in the same day

2010-03-22 Thread jamesfin
got me there

https://store4.adobe.com/cfusion/store/index.cfm?&store=OLS-US&view=ols_prod&category=/Applications/FlashBuilderPremium&distributionMethod=FULL&nr=0#view=ols_prod&category=/Applications/FlashBuilderPremium&store=OLS-US&loc=en_us



--- In flexcoders@yahoogroups.com, "djhatrick"  wrote:
>
> Hi, 
> 
> Now how much is the upgrade, and how do i buy it? Looks like the upgrade is 
> not available through the on-line adobe store.
> 
> Cheers engineers, and qa and the whole loop.
>




[flexcoders] Trim from the left till it finds the last '/'

2010-03-22 Thread Wally Kolcz
I am trying to trim down a url path to just the stuff after the last '/' 
character. It changes from time to time so I cannot just replace base 
URL path and just keep the difference at the end.

How can I do this in AS3:

Turn these:
/com/mysite/views/app1/app.swf
/com/mysite/view/otherapp/app2.swf

Into just these:
app.swf
app2.swf

Thanks if you can help!



[flexcoders] Wow. Healthcare passed and flashbuilder 4 all in the same day

2010-03-22 Thread djhatrick
Hi, 

Now how much is the upgrade, and how do i buy it? Looks like the upgrade is not 
available through the on-line adobe store.

Cheers engineers, and qa and the whole loop.



[flexcoders] Re: how to prevent multiple logins w/ same id

2010-03-22 Thread valdhor
Use a PHP Session variable and a database to keep track of which user is logged 
in.

--- In flexcoders@yahoogroups.com, "hgnowhg"  wrote:
>
> My application is a .swf file inside a php wrapper. Since I have a paid 
> subscription site, I want to prevent "user A" from giving his password to 
> "user B". If user B loggeds in w/ User A's username & password, then I will 
> simply log out User A. (In the case that User B stole the password/username 
> of User A then User A can simply change his password...This would also allow 
> User A to login at home if he forgets to logout of the application while at 
> work).
> 
> What's the best way to do this?
>




[flexcoders] WHO IS RESPONSIBLE???

2010-03-22 Thread Florian
I am scared...

I was glad to see that there is now Flash Builder 4 available @ adobe.com... I 
am glad i didn't buy it right away. I can't install it on a case sensitive 
formatted HDD?



Re: [flexcoders] Embedded an image list

2010-03-22 Thread claudiu ursica
I'm still trying to understand what you are trying to achieve... But you should 
be able to loadn the xml at run time, parse it and load the images from the 
path that you read from the xml ...
C





From: Oleg Sivokon 
To: flexcoders@yahoogroups.com
Sent: Mon, March 22, 2010 12:42:48 PM
Subject: Re: [flexcoders] Embedded an image list

   
This depends on the OS and / or the programming / scripting language you know 
to operate it. I had written a tiny C# program to browse a given folder for the 
files of a given type and generate an AS file with embeds, but, I'm sure you 
can do the same with any language that can access to the file system and 
process strings, even AIR can do that.

If you're interested in what I did - here it is:

using System;
using System.Collections. Generic;
using System.Linq;
using System.Windows. Forms;

namespace ResourceBatchProces sor
{
static class Program
{
/// 
/// The main entry point for the application.
/// 
[STAThread]
static void Main()
{
Application. EnableVisualStyl es();
Application. SetCompatibleTex tRenderingDefaul t(false);
Application. Run(new Form1());
}
}
}

using System;
using System.Collections. Generic;
using System.Linq;
using System.Text;
using System.Text. RegularExpressio ns;
using System.IO;
using System.Xml;

namespace ResourceBatchProces sor
{
class MXMLGenerator
{
public static string templateStart = 
@"
http://www.adobe. com/2006/ mxml""
xmlns:fl=""flash.display. *""
xmlns:rs=""org.wvxvws.resource s.*""
>";
public static string embed =
@"
";
public static string templateEnd = "";

public static Regex nonAlphaNum = new Regex(@"\W", RegexOptions. 
Compiled) ;

public static void ProcessDirectory( string path)
{
DirectoryInfo di = new DirectoryInfo( path);
FileInfo[] files = di.GetFiles("*.png");
string filePath;
string resultFileName = di.Parent.FullName + @"\" + 
nonAlphaNum. Replace(di. Name, "_") + ".mxml";
string resultFile = (string)templateSta rt.Clone( );
foreach (FileInfo fi in files)
{
filePath = ((string)embed. Clone()). Replace("%path%", 
fi.FullName) ;
resultFile += filePath;
}
resultFile += templateEnd;
XmlTextWriter textWriter = new XmlTextWriter( resultFileName, 
Encoding.UTF8) ;
textWriter.WriteRaw (resultFile) ;
textWriter.Close( );
}

public static void ProcessDirectory( string[] path)
{
//DirectoryInfo[ ] di = new DirectoryInfo[ path.Length] ;
//int i = 0;
foreach (string pt in path)
{
ProcessDirectory( pt);
//di.SetValue( new DirectoryInfo( pt), i);
}
}
}
}

using System;
using System.Collections. Generic;
using System.ComponentMod el;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows. Forms;
using System.IO;

namespace ResourceBatchProces sor
{
public partial class Form1 : Form
{
private bool multipleSelected = false;

public Form1()
{
InitializeComponent ();
this.buttonCreateMX ML.Enabled = false;
this.buttonSelectFo lder.Click += new EventHandler( 
buttonSelectFold er_Click) ;
this.buttonCreateMX ML.Click += new EventHandler( buttonCreateMXML 
_Click);
this.buttonSelectAl lFolders. Click += new EventHandler( 
buttonSelectAllF olders_Click) ;
this.textSelectedFo lder.TextChanged += new EventHandler( 
textSelectedFold er_TextChanged) ;
this.Resize += new EventHandler( Form1_Resize) ;
}

void buttonSelectAllFold ers_Click( object sender, EventArgs e)
{
FolderBrowserDialog dialog = new FolderBrowserDialog ();
DialogResult result = dialog.ShowDialog( );
if (result == DialogResult. OK)
{
this.textSelectedFo lder.Text = dialog.SelectedPath ;
}
this.multipleSelect ed = true;
}

void Form1_Resize( object sender, EventArgs e)
{
this.buttonCreateMX ML.Width = this.Width - 30;
this.buttonSelectFo lder.Width = this.Width - 30;
this.textSelectedFo lder.Width = this.Width - 30;
this.buttonSelectAl lFolders. Width = this.Width - 30;
this.label2. Width = this.Width;
}

void textSelectedFolder_ TextChanged( object sender, EventArgs e)
{
if (this.textSelectedF older.Text == "")
{
this.buttonCreateMX ML.Enabled = false;
}
else
{
this.buttonCreateMX ML.Enabled = true;

[flexcoders] Re: Regarding CollapsiblePanel's minimize and restore Events

2010-03-22 Thread valdhor
Which CollapsiblePanel  are you using? (Note: CollapsiblePanel is not a 
built-in Flex component).

If you are using the one from http://hasseg.org/blog/?p=113, you can check if 
the CollapsiblePanel is open or not to figure out if it's a open or close event.

--- In flexcoders@yahoogroups.com, "binoop_cv"  wrote:
>
> In mxml we can specify the minimize and restore Events as
> 
>  collapseDuration="200" width="100%"  collapsed="false" 
> minimize="fnHndlerForMinimize()"  
> restore="fnHndlerForRestore">
> 
> My question is how can we determine whether its an "minimize" or "restore" 
> events using actionscript?
> 
> In the case of datagrid we can specify addEventListener as 
> dg.addEventListener(DataGridEvent.ITEM_EDIT_BEGIN, checkFieldCanBeEdited);
> 
> So in the ITEM_EDIT_BEGIN, it will call the function checkFieldCanBeEdited.
> 
> How we can add "minimize" and "restore" events of CollapsiblePanel   like the 
> above?
> 
> Thanks much,
> Binoop
>




[flexcoders] Re: Euros/Dollars conversion tools

2010-03-22 Thread valdhor
Try http://www.xe.com/dfs/product.php.

You can get an XML feed at whatever frequency you desire.

Also, a lot of countries produce their own conversion tables on their 
government web sites (I know they do in Australia and New Zealand). These are 
usually Excel spreadsheets that you can download. You may like to see if you 
can get that and pick apart the data you need.

--- In flexcoders@yahoogroups.com, "Christophe"  
wrote:
>
> Hello, 
> 
> I am searching a system to receive with a script the Euro/Dollars conversion 
> every day. 
> 
> How to do this with Flex? 
> 
> Thank you,
> Christophe,
>




[flexcoders] Re: FileReference.load() not found -- help please?

2010-03-22 Thread valdhor
I get...

Property http://www.adobe.com/2008/actionscript/Flash10/::save not found on 
flash.net.FileReference and there is no default value.
at 
LiveCycle/onSaveText()[C:\ColdFusion8\wwwroot\LiveCycle\src\LiveCycle.mxml:15]
at 
LiveCycle/___LiveCycle_Button1_click()[C:\ColdFusion8\wwwroot\LiveCycle\src\LiveCycle.mxml:41]

using Flash Player 10 WIN 10,0,45,2 Debug.

It looks like you are not calling the save method but are accessing save as a 
property of the FileReference class. I would check how you are trying to call 
this method. Also, is the data parameter non null?

--- In flexcoders@yahoogroups.com, "reflexactions"  wrote:
>
> No its not just in the IDE (and yes we did that).
> 
> To be very clear what we have done as a final resort to test the problem 
> 
> We went to this site
> http://sherifabdou.com/2008/06/using-the-new-filereference-class-in-flex-to-save-and-load-without-a-server/
> 
> and accessed the flex app there.
> 
> A number of users all using FP10 access this app get the above error even 
> ones using FP10.1
> 
> I access the app and I dont get any error.
> 
> 
> The same issue happened with our own application. So we can compile the app , 
> some people can use it others cant even if using same browser, same version 
> of FP.
> 
> Its a show stopper at moment
> 
>  
> 
> --- In flexcoders@yahoogroups.com, "tntomek"  wrote:
> >
> > If this problem is in the IDE open all your .project/.flexProperties etc 
> > files and manually search for 9.x. Flex libraries don't have version number 
> > exposed in the IDE which makes it even harder to troubleshoot
> > 
> > -Tom Gruszowski (http://tomek.me)
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "reflexactions"  wrote:
> > >
> > > This API is marked as FP10.
> > > 
> > > We have been having a problem with some people getting the above error 
> > > and they are using FP10.
> > > 
> > > One guy was using FP10.0.32.18 and got the error, another guy was using 
> > > 10.1 the same version as I was using and they got they error but I didnt.
> > > 
> > > We even tried an example of this API that was on the web
> > > 
> > > The same issue, works for me but not for the other guys .
> > > 
> > > Any idea on what the problem is??
> > >
> >
>




Re: [flexcoders] Make a Timer's first timeout event immediate

2010-03-22 Thread Oleg Sivokon
In the same stack frame? If so, then just call the handler directly.
Otherwise it's not possible. Besides other things Timer isn't precise enough
for such short intervals, it will depend very much on rendering and the code
in the same frame. At 10 ms you can get +- 50% precision error.

Best.

Oleg


Re: [flexcoders] Email in TextInput

2010-03-22 Thread Tom Chiverton
On Monday 22 Mar 2010, Christophe wrote:
> How to verify that a mx:TextInput content is a valid email address ?


http://livedocs.adobe.com/flex/3/html/validators_2.html#129011

-- 
Helping to continuously entrench interactive best-of-breed 24/7 best-of-breed 
clusters as part of the IT team of the year 2010, '09 and '08



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

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

CONFIDENTIALITY

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

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

Re: [flexcoders] Email in TextInput

2010-03-22 Thread Oleg Sivokon
Validating e-mail address is quite a task... See this for what the
requirements are: http://tools.ietf.org/html/rfc3696#section-4.3
There is the EmailValidator in the validators library provided with SDK, but
it is doing it wrong - don't use it. Best way is to write your own, so far
this is what I did.

Best.

Oleg


Re: [flexcoders] Embedded an image list

2010-03-22 Thread Oleg Sivokon
This depends on the OS and / or the programming / scripting language you
know to operate it. I had written a tiny C# program to browse a given folder
for the files of a given type and generate an AS file with embeds, but, I'm
sure you can do the same with any language that can access to the file
system and process strings, even AIR can do that.

If you're interested in what I did - here it is:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace ResourceBatchProcessor
{
static class Program
{
/// 
/// The main entry point for the application.
/// 
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.IO;
using System.Xml;

namespace ResourceBatchProcessor
{
class MXMLGenerator
{
public static string templateStart =
@"
http://www.adobe.com/2006/mxml"";
xmlns:fl=""flash.display.*""
xmlns:rs=""org.wvxvws.resources.*""
>";
public static string embed =
@" 
";
public static string templateEnd = "";

public static Regex nonAlphaNum = new Regex(@"\W",
RegexOptions.Compiled);

public static void ProcessDirectory(string path)
{
DirectoryInfo di = new DirectoryInfo(path);
FileInfo[] files = di.GetFiles("*.png");
string filePath;
string resultFileName = di.Parent.FullName + @"\" +
nonAlphaNum.Replace(di.Name, "_") + ".mxml";
string resultFile = (string)templateStart.Clone();
foreach (FileInfo fi in files)
{
filePath = ((string)embed.Clone()).Replace("%path%",
fi.FullName);
resultFile += filePath;
}
resultFile += templateEnd;
XmlTextWriter textWriter = new XmlTextWriter(resultFileName,
Encoding.UTF8);
textWriter.WriteRaw(resultFile);
textWriter.Close();
}

public static void ProcessDirectory(string[] path)
{
//DirectoryInfo[] di = new DirectoryInfo[path.Length];
//int i = 0;
foreach (string pt in path)
{
ProcessDirectory(pt);
//di.SetValue(new DirectoryInfo(pt), i);
}
}
}
}

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace ResourceBatchProcessor
{
public partial class Form1 : Form
{
private bool multipleSelected = false;

public Form1()
{
InitializeComponent();
this.buttonCreateMXML.Enabled = false;
this.buttonSelectFolder.Click += new
EventHandler(buttonSelectFolder_Click);
this.buttonCreateMXML.Click += new
EventHandler(buttonCreateMXML_Click);
this.buttonSelectAllFolders.Click += new
EventHandler(buttonSelectAllFolders_Click);
this.textSelectedFolder.TextChanged += new
EventHandler(textSelectedFolder_TextChanged);
this.Resize += new EventHandler(Form1_Resize);
}

void buttonSelectAllFolders_Click(object sender, EventArgs e)
{
FolderBrowserDialog dialog = new FolderBrowserDialog();
DialogResult result = dialog.ShowDialog();
if (result == DialogResult.OK)
{
this.textSelectedFolder.Text = dialog.SelectedPath;
}
this.multipleSelected = true;
}

void Form1_Resize(object sender, EventArgs e)
{
this.buttonCreateMXML.Width = this.Width - 30;
this.buttonSelectFolder.Width = this.Width - 30;
this.textSelectedFolder.Width = this.Width - 30;
this.buttonSelectAllFolders.Width = this.Width - 30;
this.label2.Width = this.Width;
}

void textSelectedFolder_TextChanged(object sender, EventArgs e)
{
if (this.textSelectedFolder.Text == "")
{
this.buttonCreateMXML.Enabled = false;
}
else
{
this.buttonCreateMXML.Enabled = true;
}
}

private void buttonCreateMXML_Click(object sender, EventArgs e)
{
if (this.textSelectedFolder.Text == "") return;
if (this.multipleSelected)
{
DirectoryInfo di = new
DirectoryInfo(this.textSelectedFolder.Text);
DirectoryInfo[] dil = di.GetDirectories();
string[] paths = new string[dil.Length];
int i = 0;
foreach (Dir

Re: [flexcoders] What are the Flex3/4 websites requirements after been FTP to the hosting server?

2010-03-22 Thread Oleg Sivokon
FTP stands for File Transfer Protocol. The idea is that it sets some rules
on how to transfers arbitrary file formats from one computer to another.
Flex3 website is a very broad definition, but, it's client would normally
consist of HTML + SWF + some JS files. There should be no problem using
those files with any FTP program.
Judging from your question it seems like something didn't work for you, if
I'm allowed to suggest: it is always better to tell the symptoms of the
problem, rather then ask generic questions.

Best.

Oleg


[flexcoders] Email in TextInput

2010-03-22 Thread Christophe
Hello, 

How to verify that a mx:TextInput content is a valid email address ? 

Thx,
Christophe, 



Re: [flexcoders] Embedded an image list

2010-03-22 Thread claudiu ursica
Why would you want to embed when you can load them at runtime ?
C






From: Christophe 
To: flexcoders@yahoogroups.com
Sent: Mon, March 22, 2010 11:02:31 AM
Subject: [flexcoders] Embedded an image list

  
Hello,

How to embed an image list in a swf for a galery ? 
At this time, the image file paths are in a xml ? 

Thank you,
Christophe, 


 


  

[flexcoders] Embedded an image list

2010-03-22 Thread Christophe
Hello,

How to embed an image list in a swf for a galery ? 
At this time, the image file paths are in a xml ? 

Thank you,
Christophe, 




Re: [flexcoders] Make a Timer's first timeout event immediate

2010-03-22 Thread p_repetti

Thanks.

A different solution occurred to me right after posting: if delay is not so
short (say > 5s) I explicitly call timeout() after starting the timer.

-- Pier


Alex Harui wrote:
> 
> Set the timeout to be much shorter, then on the first event, change the
> delay to 10s
> 
> 
> On 3/21/10 3:20 PM, "p_repetti"  wrote:
> 
> 
> 
> 
> 
> 
> 
> Hello
> 
> how do I set a Timer to time out immediately the first time ?
> I mean: I create a Timer with an interval of 10s; I set an event listener
> to
> the timeout() function.
> When I start() it, I have to wait for 10s for it to time out and execute
> timeout(). How can I force the first timeout() execution immediately ?
> 
> Thanks
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Make-a-Timer%27s-first-timeout-event-immediate-tp27977025p27983596.html
Sent from the FlexCoders mailing list archive at Nabble.com.