RE: [flexcoders] Question about overlay and transparency

2009-10-22 Thread Alex Harui
It will have to be parented somewhere else and positioned back where you need 
it so it doesn't fall under a parent that has alpha<1.

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 guytom19
Sent: Thursday, October 22, 2009 6:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Question about overlay and transparency



Hello,

I'm failing to achieve something that sounded trivial at first - please see if 
you have an idea:
- We have a video player
- The video player loads a flex application
- This flex application we'd like to have a semi transparent (alpha=0.5) black 
background
- on top of the black background there should be an opaque image and a text 
container

That's it...

Problem is - whenever we put a backgroundAlpha in the loaded application , or 
alpha in the SWFLoader that loads it, there's no way to make one of the 
components opaque.

I'm sure it's simple but can't find it.

Help appreciated.

Guy



RE: [flexcoders] Can you take a Canvas and save it as a PNG?

2009-10-22 Thread Alex Harui
BitmapData.draw, then PNGEncoder

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 Paul Johnston
Sent: Thursday, October 22, 2009 7:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Can you take a Canvas and save it as a PNG?



Have a client needing image work done in an AIR application to be saved as an 
image.

It's all working on a Canvas object, but I can't see a toImage() or toBitmap() 
methods to do that.

Is it possible?

Paul



RE: [flexcoders] ArrayCollection of VO's Memory Leak??

2009-10-22 Thread Alex Harui
The profiler should be able to show you who is still referencing the objects.

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 Jake Churchill
Sent: Thursday, October 22, 2009 10:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ArrayCollection of VO's Memory Leak??



Hi all,

I have a charting application where I have an ArrayCollection of VO's.  The 
chart has several series, each looking at one property in the VO.

There are several controls that when changed, require a re-calculation of the 
VO's in the ArrayCollection.  Before I do the re-calculation, I call 
.removeAll() on the ArrayCollection and re-populate it with new VO's.

When I run the profiler, my VO instances grow with each re-calculation.  So, 
why doesn't the garbage collector take care of the objects that got removed 
from the ArrayCollection?  How can I fix this?

Please help.

Thanks!

-Jake



RE: [flexcoders] Disable sort when values in grid change (on propertyChanged)

2009-10-22 Thread Alex Harui
Try blocking the collectionEvent.  It will have kind = 
CollectionEventKind.REFRESH.  Note that any scrolling will be incorrect since 
it will use the new sort order.

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 tntomek
Sent: Thursday, October 22, 2009 5:46 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Disable sort when values in grid change (on 
propertyChanged)



I don't want my grid reordering itself on every propertyChanged event that 
would cause the sort order to change, can I prevent this somehow?

I understand this is default behavior but it's not an option for our customer, 
and it is really annoying when the 1000 row grid is re-ordered every time user 
changes any values, not to mention slow.

I tried returning 0 from sortComparer with no luck, grid still seems to reorder 
itself according to original data provider and not the sorted view when sort() 
was set.

Specifically using AdvancedDataGrid and I'm starting to run out of ideas. Do I 
reset the dataprovider every time I decide to change my sort? I'm already 
intercepting headerRelease and setting sort explicitly as well as calling sort 
from controls outside the grid. How would I get the currently sorted list from 
my ArrayCollection, does the baseclass CollectionView have a current sorted 
view? Is there really no way to take a snapshot or current view and set it to 
current? Is there a way to tell sort() to physically move the rows instead of 
maintaining a view?

What I found online:
http://www.actionscript.org/forums/showthread.php3?t=199554
Not an option since grid is sortable, I just want to suppress the updates AFTER 
initial sort



RE: [flexcoders] Flex Datagrid bottom row cutoff

2009-10-22 Thread Alex Harui
Fix the height to rowCount * rowHeight + viewMetrics.top + viewMetrics.bottom

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of flexaustin
Sent: Thursday, October 22, 2009 8:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Datagrid bottom row cutoff



My datagrids bottom row is getting cutoff, how do I stop this?

J



RE: [flexcoders] Flex 3: AIR & Local Database

2009-10-22 Thread Jack @ WenSan
Guys:

 

Thanks for your comments.

 

I am beginning to wonder if AIR is the best solution.

 

The application must be cross browser/cross platform compatible

and the user requires the data remain local on their PC/Mac.

 

I don't really want to get into hacks, workarounds, etc.  I just want

something that is clean and works.

 

Not sure of my options.  More research I guess.

 

Anyone else with ideas, please comment.

 

Thanks,

 

Jack

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Sam Lai
Sent: Thursday, October 22, 2009 10:48 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 3: AIR & Local Database

 

  

2009/10/23 jwc_wensan mailto:jwcaldwell%40zingit.com> >:
> In all the articles I have read and some examples, it only talks about
using SQLite as the database on the users' PC/Mac.  Is that the only
database that can be used locally?

Because AIR has support for sockets, there are ongoing projects to
give AIR the ability to talk to other databases. Here's one for mysql
(http://code.google.com/p/assql/). You don't get the one-click install
though.

Also, given AIR 2.0 has support for native executables, you could if
push comes to shove, use a native executable to be the conduit between
AIR and whatever database you want.



<><>

Re: [flexcoders] Need Clean URL Advice ...

2009-10-22 Thread paruliant
You can try using .htacces
http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html
http://evolt.org/Making_clean_URLs_with_Apache_and_PHP

 Thanks and regard's


Sondang pangaribuan







From: knowself 
To: flexcoders@yahoogroups.com
Sent: Thu, October 22, 2009 7:08:20 AM
Subject: [flexcoders] Need Clean URL Advice ...

  
Ladies and Gents,

I have a client that is troubled by their website being "Blacklisted"
by http://www.surbl. org/ ... when attempting to create ( Bit.Ly )
links for use on twitter and facebook.

As a reminder ...

"SURBLs are lists of web sites that have appeared in unsolicited
messages. Unlike most lists, SURBLs are not lists of message senders."

What happens is the Bit.Ly links bring up a nasty page ...

"Warning - this site has been flagged and may contain unsolicited content.
The content of this web page appears to contain spam, or links to
unsolicited or undesired sites."

It seems that somehow my client is being penalized by Bit.Ly through
their use of SURBL to "vet" their links ...

And the response from the Bit.Ly guy was 

"the way that url was formatted, I wouldn't doubt it is re-blocked.
Looks like some sort of phishing/virus url to me. With the cmd call
and curl, etc."

Basically, my client is being Blacklisted ... for the style of their
URL's ... It's a complicated high volume webisite, but like many
websites the command structure is ... Baroque.

Question: Is he right? Are ugly URL's grounds for being banned from a
certain, trustworthiness ... to be fair, the full reason SURBL bans
domains is that they believe these domains have been seen in a certain
threshold of spam ... as defined by them.

So, without giving away my client ... Here is their URL ... without
the actual domain ... it's only a demo !!

http://NotaRealDomain.com/?cmd=sb-register&rb=907073&cmp=7&cxid=0-0&fb=true&rwrd=1%20John%20Some&curl=www.FitForNothing.com&deno=1>

Is that so ugly?

Are clean URLs required today ... for high volume websites?

Thanks in Advance ... All Mighty and Powerful web405 

Joet


   


  

Re: [flexcoders] Flex 3: AIR & Local Database

2009-10-22 Thread Sam Lai
2009/10/23 jwc_wensan :
> In all the articles I have read and some examples, it only talks about using 
> SQLite as the database on the users' PC/Mac.  Is that the only database that 
> can be used locally?

Because AIR has support for sockets, there are ongoing projects to
give AIR the ability to talk to other databases. Here's one for mysql
(http://code.google.com/p/assql/). You don't get the one-click install
though.

Also, given AIR 2.0 has support for native executables, you could if
push comes to shove, use a native executable to be the conduit between
AIR and whatever database you want.


[flexcoders] Delay / Pause between script executions

2009-10-22 Thread Angelo Anolin
Hi Flexcoders,
 
I know this may sound very elementary but I cannot figure the hell out of me 
how to achieve this.
 
I have a label control.  I want to display different messages after every 5 
seconds, such as:
 
myLabel.text = "This is my first message"
// Need to delay for about 5 seconds here
 
myLabel.text = "This is my second message"
// Need to delay for about 5 seconds here
 
myLabel.text = "This is my last message"

I cannot figure out how to properly use the pause or timer utilities in 
achieving this.
 
Any idea would be appreciated.
 
Thanks.
Regards,
Angelo


  

[flexcoders] Flex Datagrid bottom row cutoff

2009-10-22 Thread flexaustin
My datagrids bottom row is getting cutoff, how do I stop this?

J



[flexcoders] Disable sort when values in grid change (on propertyChanged)

2009-10-22 Thread tntomek
I don't want my grid reordering itself on every propertyChanged event that 
would cause the sort order to change, can I prevent this somehow?

I understand this is default behavior but it's not an option for our customer, 
and it is really annoying when the 1000 row grid is re-ordered every time user 
changes any values, not to mention slow.

I tried returning 0 from sortComparer with no luck, grid still seems to reorder 
itself according to original data provider and not the sorted view when sort() 
was set.

Specifically using AdvancedDataGrid and I'm starting to run out of ideas. Do I 
reset the dataprovider every time I decide to change my sort? I'm already 
intercepting headerRelease and setting sort explicitly as well as calling sort 
from controls outside the grid. How would I get the currently sorted list from 
my ArrayCollection, does the baseclass CollectionView have a current sorted 
view? Is there really no way to take a snapshot or current view and set it to 
current? Is there a way to tell sort() to physically move the rows instead of 
maintaining a view?

What I found online:
http://www.actionscript.org/forums/showthread.php3?t=199554
Not an option since grid is sortable, I just want to suppress the updates AFTER 
initial sort



[flexcoders] Best way to call SQL LAST_INSERT_ID through Zend Amf

2009-10-22 Thread steveb805
Hi,
I'm mostly a newbie and am writing a simple Flex app. So far, just a List box, 
where I am renderering a Checkbox and a :abel field, for a simple To-Do utility.

I just added the "Add New task" functionality, and it's working fine, using the 
addItem method to add the new object to the List after saving the record to DB 
via ZendAmf.

However it has occurred to me that I need to go back to the database 
immediately after, to get the record Id via ZendAmf so that the Flex List's new 
Item has the actual database id.

Is it best practice you think to create a ValueObject class for just this 
integer  - the task_id key field - or should I simply just use the existing 
Value Object for the entire object that represents an entire Task and 
obviously, just use the task_id field to pass it from db to flex.

Steve



[flexcoders] Flex-Ajax bridge data size and type

2009-10-22 Thread mohan.kongu

Hi, 
  
I have a requirement to send 1-2 MB of data through Flex Ajax bridge. I need
the following details: 
  
1. The size of data, the flex-ajax bridge is capable of handling 
2. Type of data. Whether it will accept only XML data or even binary. 
3. Can a Java Object be passed through it. 
  
Thanks, 
Mohan
-- 
View this message in context: 
http://www.nabble.com/Flex-Ajax-bridge-data-size-and-type-tp25847000p25847000.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: SOLVED: Flex, remoting, and dev/production environments

2009-10-22 Thread drudiggy


Just wanted to respond to this and note that this was my issue as well.  I had 
a cflocation redirect in my application.cfm that was commented out with an HTML 
comment tag, instead of a CFML comment tag.  Fixed the comment tag and now my 
CFC mapping works, YAY!  Also would like to note that using the Charles proxy 
software that I just discovered helped me confirm that the redirect was taking 
place, after this thread clued me in.

--- In flexcoders@yahoogroups.com, Rick Root  wrote:
>
> Rick Root wrote:
> > 
> > Okay, I copied the files to production and clearly it doesn't work. I
> > get an RPC error "channel disconnected before an acknowledgement was
> > received" - yet another error that doesn't show up in google.
> > 
> > Anyway... how do I recompile for production without making an entirely
> > new project? I tried changing my flex server path and compiler options
> > to the production server but I'm still getting the error now :(
> 
> This was related to my application.cfm, actually.  I had the following 
> code in my application.cfm:
> 
> 
>   
> 
> 
> this meant things worked fine on my local server, but the redirect 
> messed up calls to the flex gateway in production.  I didn't consider 
> that remoting calls would still go over port 80 even if the page is secure.
> 
> anyway, after I added some code to bypass that if it was a remoting 
> call, all worked fine when I copied files from local machine to production.
> 
> Rick
>




Re: [flexcoders] Flex 3: AIR & Local Database

2009-10-22 Thread Jake Churchill
I've had many thousand records before and SQLite performed just fine.  The
only limitation I found was with datatypes which is easily overcome in most
cases.
I can't comment about the rest.

On Thu, Oct 22, 2009 at 5:28 PM, jwc_wensan  wrote:

>
>
> In all the articles I have read and some examples, it only talks about
> using SQLite as the database on the users' PC/Mac. Is that the only database
> that can be used locally?
>
> Can that database handle a large-scale commercial AIR app with tens of
> thousands of records?
>
> Also, since the AIR app is installed on the users PC/Mac, is there any
> reason to use mx:Modules?
>
> If the user needs/requires that data remain local, is AIR the best
> solution?
>
> Does Flex 4 solve any issues?
>
> Thoughts, options, suggestions?
>
> Thanks in advance,
>
> Jack
>
>  
>


[flexcoders] Flex 3: AIR & Local Database

2009-10-22 Thread jwc_wensan
In all the articles I have read and some examples, it only talks about using 
SQLite as the database on the users' PC/Mac.  Is that the only database that 
can be used locally?

Can that database handle a large-scale commercial AIR app with tens of 
thousands of records? 

Also, since the AIR app is installed on the users PC/Mac, is there any reason 
to use mx:Modules?

If the user needs/requires that data remain local, is AIR the best solution?

Does Flex 4 solve any issues?

Thoughts, options, suggestions?

Thanks in advance,

Jack



Re: [flexcoders] LCDS : number of flexsessions

2009-10-22 Thread Jeffrey Vroom
The first thing would be to determine if they are RTMP or HTTP sessions that
are sticking around.  HTTP sessions can grow because polling clients keep
the session alive indefinitely.  RTMP sessions should only stick around if
the socket between the client and server is still open.  Netstat is a good
way to ensure the sockets are not being kept open for some reason.   I also
vaguely recall there being a bug on some OS's where RTMP sessions would not
be closed properly.   The latest hotfix for 2.5.1 should have that fix and
it should be fixed in the beta of the next release.
Jeff

On Thu, Oct 22, 2009 at 10:03 AM, Besite - Bart  wrote:

>
>
> Hello,
>
> Our application uses amf and rtmp channels. All our destinations have
> application scope.
> The rtmp channels in our application have an idle-timeout-minutes
> property of 20 minutes.
>
> In our ds-console we see that the number of Flexsessions keeps growing
> and growing. After a few hours
> our application becomes slow and we think that the growing number of
> flexsessions causes our appication to slow down.
>
> What could be the reason that some flexsessions are never ended ?
>
> Kind regards
> Bart Ronsyn
>
>  
>


[flexcoders] Flex2gateway not accessible

2009-10-22 Thread Agha Mehdi
All,
http://[servername]/flex2gateway comes back with error 404. My setup is
Coldfusion on JRun integrated with IIS. have tried a bunch of suggestions
from the web but nothing seems to be working.

Please help

Thanks


[flexcoders] Ctrl + eh?

2009-10-22 Thread Mark Lapasa
In IE, why does Ctrl + A in a TextInput work but Ctrl + A in a datagrid 
doesn't? What is this funny business? Thx, -mL


Notice of confidentiality:
The information contained in this e-mail is intended only for the use of the 
individual or entity named above and may be confidential. Should the reader of 
this message not be the intended recipient, you are hereby notified that any 
unauthorized dissemination, distribution or reproduction of this message is 
strictly prohibited. If you have received this message in error, please advise 
the sender immediately and destroy the e-mail.



[flexcoders] How to know whether there is a hideEffect?

2009-10-22 Thread reflexactions
I have some code that needs to run when a window is hidden, the problem is that 
there might (or might not) be an effect attached to the hide event which means 
if there is I dont want to run this routine until after the effect has 
completed, if there isnt I can run it immediately.

So how do I determine in code if changing visibility is going to trigger an 
effect?





[flexcoders] Re: How to remove object from nested arraycollection

2009-10-22 Thread turbo_vb

Here's a way you can do it recursively:

RecursiveDeleteSample

(right click for source)

-TH

--- In flexcoders@yahoogroups.com, "timgerr"  wrote:
>
> Hello all, I have a problem, I need to remove an object from a nested
array. Lets say I have this arraycollection
>
> private var people:ArrayCollection = new ArrayCollection([
> new Person("Grandma Susan", new ArrayCollection([
> new Person("John", new ArrayCollection([
> new Person("Timmy"),
> new Person("Sammy"),
> new Person("Alan")
>
> ])),
> new Person("Tiffany", new ArrayCollection([
> new Person("Billy"),
> new Person("Adam"),
> new Person("Graham"),
> new Person("Vennesa")
>
> ])),
> new Person("Michael", new ArrayCollection([
> new Person("Jannette"),
> new Person("Alan", new ArrayCollection([
> new Person("Alice"),
> new Person("Jane")
>
> ]))
>
> ])),
> new Person("Peter"),
> new Person("Cindy", new ArrayCollection([
> new Person("Paul"),
> new Person("David"),
> new Person("Joseph"),
> new Person("Cameron"),
> new Person("Debra"),
> new Person("Polly")
>
> ]))
>
> ]))
>
> ]);
>
> How can I remove peter?
>
> Thanks,
> timgerr
>




RE: [SPAM] [flexcoders] example of CheckBoxDataGrid in ActionScript: mine ignores col properties

2009-10-22 Thread Tracy Spratt
Yep, the problem is that grid.columns returns a COPY of the columns array.
This is in the docs, but is not obvious.

 

Do this:

var aColumns:Array = grid.columns;

//then do the column creation and push stuff like you are, to the aColumns
array

 

Then, and this critical,

grid.columns = aColumns;

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of tim_romano
Sent: Thursday, October 22, 2009 9:35 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] example of CheckBoxDataGrid in ActionScript:
mine ignores col properties

 

  

Although I've succeeded in creating an mxml version of Alex Harui's
CheckBoxDataGrid, I'm new at Flex coding, and my ActionScript version isn't
succeeding. An example would be very helpful. BTW, I can include a
'selected' column in my dataProvider, or I can leave it out.

In my attempts, the grid is displaying every column in my ArrayCollection,
ignoring ALL of my explicitly defined column-creation properties, which set
one column to be invisible and turns off other properties, such as draggable
and sortable. In mxml you can set the dataProvider and set these column
properties, but in ActionScript, it appears to be the case that if you
assign an ArrayCollection to the dataProvider property, the grid simply uses
the collection as the columns definition.

Also, Alex's drawItem method is blowing up with a TypeError, but not in the
mxml version.

Thanks in advance for the help. Here's what I have so far:

private var grid: CheckBoxDataGrid= new CheckBoxDataGrid;
grid.height=300;
grid.allowMultipleSelection=true;

var selcol:DataGridColumn=new DataGridColumn;
selcol.itemRenderer= new ClassFactory(CheckBoxRenderer);
selcol.editable=true; 
selcol.draggable=false;
selcol.sortable=false;
selcol.headerText=""
selcol.visible=true;
selcol.dataField="selected";
grid.columns.push(selcol);

var wordcol:DataGridColumn=new DataGridColumn;
wordcol.dataField="spelling";
wordcol.headerText="spelling";
grid.columns.push(wordcol);


var idcol:DataGridColumn = new DataGridColumn;
idcol.dataField="wrdid";
idcol.visible=false;
idcol.width=0; // attempt to make invisible since visible=false fails
idcol.headerText="id";
grid.columns.push(idcol);


grid.dataProvider =myBindableArrayCollection;

--

My class BindableArrayCollection simply wraps an ObjectProxy around each
element in the array:

import mx.collections.ArrayCollection;
import mx.utils.ObjectProxy;

public dynamic class BindableArrayCollection extends ArrayCollection
{
public function BindableArrayCollection(source:Array=null)
{
for (var s:String in source)
{
source[s] = new ObjectProxy(source[s]);
}
super(source);
}

}





[flexcoders] ArrayCollection of VO's Memory Leak??

2009-10-22 Thread Jake Churchill
Hi all,

I have a charting application where I have an ArrayCollection of VO's.  The
chart has several series, each looking at one property in the VO.

There are several controls that when changed, require a re-calculation of
the VO's in the ArrayCollection.  Before I do the re-calculation, I call
.removeAll() on the ArrayCollection and re-populate it with new VO's.

When I run the profiler, my VO instances grow with each re-calculation.  So,
why doesn't the garbage collector take care of the objects that got removed
from the ArrayCollection?  How can I fix this?

Please help.

Thanks!

-Jake


[flexcoders] How to remove object from nested arraycollection

2009-10-22 Thread timgerr
Hello all, I have a problem, I need to remove an object from a nested array.  
Lets say I have this arraycollection

private var people:ArrayCollection = new ArrayCollection([
new Person("Grandma Susan", new ArrayCollection([
new Person("John", new ArrayCollection([
new Person("Timmy"),
new Person("Sammy"),
new Person("Alan")

])),
new Person("Tiffany", new ArrayCollection([
new Person("Billy"),
new Person("Adam"),
new Person("Graham"),
new Person("Vennesa")

])),
new Person("Michael", new ArrayCollection([
new Person("Jannette"),
new Person("Alan", new ArrayCollection([
new Person("Alice"),
new Person("Jane")

]))

])),
new Person("Peter"),
new Person("Cindy", new ArrayCollection([
new Person("Paul"),
new Person("David"),
new Person("Joseph"),
new Person("Cameron"),
new Person("Debra"),
new Person("Polly")

]))

]))

]);

How can I remove peter?

Thanks,
timgerr



RE: [SPAM] Re: [flexcoders] Flex AIR app: How to determine Operating System at run-time

2009-10-22 Thread Tracy Spratt
Excellent, thanks!  The Capabilities class is the ticket. 

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of primo411
Sent: Thursday, October 22, 2009 11:21 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] Re: [flexcoders] Flex AIR app: How to determine Operating
System at run-time

 

  

You will find what you need here:
http://help.

adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118
a9b90204-7cd8.html

The trick is to analyze the String describing the Flash player version.

2009/10/22 Tracy Spratt mailto:tr...@nts3rd.com> com>

  

We are creating an app that will run in an embedded linux environment, but
are developing under windows.

 

There are several functions we want to enable or disable based on whether we
are running under windows or under linux.

 

I have an init file parameter that lets me handle this, but we seem to often
forget to set that param every time we publish.

 

Is there anyway a runtime Flex AIR application can determine its host
operating system?  runtimeVersion and sandboxType do not seem to give me
what I want.

 

Tracy Spratt,

Lariat Services, development services available

 

 





[flexcoders] help urgent.. - how to insert html data using AS3FlexDB

2009-10-22 Thread paruliant
Dear all
how to insert html data using AS3FlexDB
 Thanks and regard's


Sondang pangaribuan


  

[flexcoders] Can you take a Canvas and save it as a PNG?

2009-10-22 Thread Paul Johnston
Have a client needing image work done in an AIR application to be saved as
an image.

It's all working on a Canvas object, but I can't see a toImage() or
toBitmap() methods to do that.

Is it possible?

Paul


Re: [flexcoders] Developing Flash/Flex on Linux

2009-10-22 Thread Leonardo Camargo
A new linux based IDE would be awesome, I only wished you guys had started
developing it a year ago, cause now, assuming you get to it, it's gonna be
another yet till it's out.


2009/10/22 primo411 

>
>
> Besides, Intellij Idea provides a free license for open-source projects
> developers .
> But I guess an Eclipse-based IDE will always find its audience ;)
>
> 2009/10/22 Nick Collins 
>
>>
>>
>> Personally, I'm not all that concerned about Flex Builder running on
>> Linux, in and of itself. Now if they ported the Creative Suite as well, I
>> would be totally psyched. Unfortunately, as long as CS is only available on
>> Windows or OSX, I'm going to be tied to those platforms.
>>
>> That being said, for those who want to code on Linux, IntelliJ IDEA is an
>> excellent editor, and feature for feature, FDT will have a very hard time
>> competing with it with their current pricing. IDEA is $250 for a single
>> developer license, and that includes MXML support, integrated debugger, Flex
>> Unit integrated with the IDE, etc. To get the same features in FDT, you'd
>> have to pay more than 3X that.
>>
>>
>> On Wed, Oct 21, 2009 at 5:36 PM, Kelly  wrote:
>>
>>>
>>>
>>> I don't get what is so hard about supporting Linux.
>>>
>>> Eclipse is Java based.
>>>
>>> Eclipse runs perfectly on pretty much all platforms.
>>>
>>> Not sure why Adobe took a big dump on Flexbuilder Linux.
>>>
>>> I was totally OK with using Flexbuilder on Linux with all the missing
>>> features that Windose Flexbuilder has except that Flexbuilder Linux never
>>> worked right even though it was crippled.
>>>
>>>
>>> I have never used FDT but I have heard it works pretty well.
>>>
>>>
>>>
>>> If people are having a hard time getting Java software to run
>>> cross-platform then I question why.
>>>
>>>
>>> The countless other Eclipse plugins I use don't have a 2 year lag between
>>> Windose and Linux versions because JAVA IS CROSS-PLATFORM.
>>>
>>>
>>>
>>>
>>> If you guys make FDT work on Linux I will check it out.
>>>
>>> Adobe obviously doesn't give half a crap about Linux.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> fonzibruno wrote:
>>>
>>>
>>>
>>> Powerflasher, the creators of FDT, the Flash/Flex IDE, is seriously
>>> considering investing to support the a Linux version of FDT, if
>>> interested let us
>>> know.
>>>
>>> Bruno Fonzi & the FDT Team
>>> http://fdt.powerflasher.com
>>>
>>>
>>
>  
>


[flexcoders] Daylight Savings Time issues from Flex to ColdFusion 8.01

2009-10-22 Thread gareth_arch
I am having some issues with DST when transferring a date from Flex to 
ColdFusion.

In our application, we create a date object in Flex (3/30/2006 00:00).  The PC 
has "adjust for daylight savings time" checked in clock.  When this date object 
is passed to ColdFusion, it takes that time and subtracts 1 hour (3/29/2006 
23:00), thinking that it is undergoing DST (in 2006, DST started April 2, 
2006).  This mismatch occurs for all dates ranging from the 2nd Sunday in March 
(DST after 2006) to 1st Sunday in April (DST before 2007).  It has a similar 
issue in October, the end of DST.  When the date comes back from ColdFusion and 
is displayed in our Flex app again, the date is 3/30/2006 (adjusted for DST)

If I turn off "adjust for daylight savings time", the dates that we had 
previously passed to ColdFusion show up as 3/29/2006, so obviously Flex or 
ColdFusion is doing something weird when it passes the date to and from the 
other system.

Passing the dates around in ColdFusion or just in Flex, it works fine, but 
passing the dates from Flex to ColdFusion is where the issue arises.

Our JVM in ColdFusion is 1.6, so the old CFMX7 DST issue should not be 
affecting things.

I really don't want to just add 12 hours to fix the solution (in case we need 
to use the time at some point in the future), but this has become a bit of an 
irritant for me and I'd like to figure out where the issue is coming from.



[flexcoders] example of CheckBoxDataGrid in ActionScript: mine ignores col properties

2009-10-22 Thread tim_romano
Although I've succeeded in creating an mxml version of Alex Harui's 
CheckBoxDataGrid, I'm new at Flex coding, and my ActionScript version isn't 
succeeding. An example would be very helpful. BTW, I can include a 'selected' 
column in my dataProvider, or I can leave it out.

In my attempts, the grid is displaying every column in my ArrayCollection, 
ignoring ALL of my explicitly defined column-creation properties, which set one 
column to be invisible and turns off other properties, such as draggable and 
sortable. In mxml you can set the dataProvider and set these column properties, 
but in ActionScript, it appears to be the case that if you assign an 
ArrayCollection to the dataProvider property, the grid simply uses the 
collection as the columns definition.

Also, Alex's drawItem method is blowing up with a TypeError, but not in the 
mxml version.


Thanks in advance for the help. Here's what I have so far:


private var grid: CheckBoxDataGrid= new CheckBoxDataGrid;
grid.height=300;
grid.allowMultipleSelection=true;

var selcol:DataGridColumn=new DataGridColumn;
selcol.itemRenderer= new ClassFactory(CheckBoxRenderer);
selcol.editable=true;   
selcol.draggable=false;
selcol.sortable=false;
selcol.headerText=""
selcol.visible=true;
selcol.dataField="selected";
grid.columns.push(selcol);

var wordcol:DataGridColumn=new DataGridColumn;
wordcol.dataField="spelling";
wordcol.headerText="spelling";
grid.columns.push(wordcol);


var idcol:DataGridColumn = new DataGridColumn;
idcol.dataField="wrdid";
idcol.visible=false;
idcol.width=0;  // attempt to make invisible since visible=false fails
idcol.headerText="id";
grid.columns.push(idcol);


grid.dataProvider =myBindableArrayCollection;

--

My class BindableArrayCollection simply wraps an ObjectProxy around each 
element in the array:


import mx.collections.ArrayCollection;
import mx.utils.ObjectProxy;

public dynamic class BindableArrayCollection extends ArrayCollection
{
public function BindableArrayCollection(source:Array=null)
{
for (var s:String in source)
{
  source[s] = new ObjectProxy(source[s]);
}
  super(source);
}

}












[flexcoders] Need Clean URL Advice ...

2009-10-22 Thread knowself
Ladies and Gents,

I have a client that is troubled by their website being "Blacklisted"
by http://www.surbl.org/ ... when attempting to create ( Bit.Ly )
links for use on twitter and facebook.

As a reminder ...

"SURBLs are lists of web sites that have appeared in unsolicited
messages. Unlike most lists, SURBLs are not lists of message senders."

What happens is the Bit.Ly links bring up a nasty page ...


"Warning - this site has been flagged and may contain unsolicited content.
The content of this web page appears to contain spam, or links to
unsolicited or undesired sites."


It seems that somehow my client is being penalized by Bit.Ly through
their use of SURBL to "vet" their links ...

And the response from the Bit.Ly guy was 

"the way that url was formatted, I wouldn't doubt it is re-blocked.
Looks like some sort of phishing/virus url to me. With the cmd call
and curl, etc."

Basically, my client is being Blacklisted ... for the style of their
URL's ... It's a complicated high volume webisite, but like many
websites the command structure is ... Baroque.

Question: Is he right? Are ugly URL's grounds for being banned from a
certain, trustworthiness ... to be fair, the full reason SURBL bans
domains is that they believe these domains have been seen in a certain
threshold of spam ... as defined by them.

So, without giving away my client ... Here is their URL ... without
the actual domain ... it's only a demo !!


http://NotaRealDomain.com/?cmd=sb-register&rb=907073&cmp=7&cxid=0-0&fb=true&rwrd=1%20John%20Some&curl=www.FitForNothing.com&deno=1

Is that so ugly?

Are clean URLs required today ... for high volume websites?

Thanks in Advance ... All Mighty and Powerful web405 

Joet



[flexcoders] LCDS : number of flexsessions

2009-10-22 Thread Besite - Bart
Hello,

Our application uses amf and rtmp channels. All our destinations have 
application scope. 
The rtmp channels in our application have an idle-timeout-minutes 
property of 20 minutes.

In our ds-console we see that the number of Flexsessions keeps growing 
and growing.  After a few hours
our application becomes slow and we think that the growing number of 
flexsessions causes our appication to slow down.

What could be the reason that some flexsessions are never ended ?

Kind regards
Bart Ronsyn




Re: [flexcoders] Button skin without button behaviour

2009-10-22 Thread Richard Rodseth
Thankyou! Just what I needed.

On Thu, Oct 22, 2009 at 1:33 AM, Andriy Panas  wrote:

>
>
> Hi Richard,
>
> 
>
> --
> Best regards,
> Andriy Panas
>
>
>
> 2009/10/21 Richard Rodseth 
>
>
>>
>> I have a menu bar-like structure composed of PopUpButtons with no gap
>> between them, and wish to extend the bar to the edge of the page.
>> If I do that by adding a "dummy" button what's the easiest way to suppress
>> the appearance changes due to rollover and mousedown?
>>
>> I figured that might be easier than trying to recreate the button
>> appearance with a VBox + borderSkin.
>> Thanks.
>>
>
>  
>


Re: [flexcoders] Flex AIR app: How to determine Operating System at run-time

2009-10-22 Thread primo411
I wasn't that wrong after all =) You will have to match the OS version from
the player version String.

2009/10/22 primo411 

> Oh, I missed that one :) Jake's solution is better.
>
> 2009/10/22 Jake Churchill 
>
>
>>
>> Look at Capabilities.  It has an "os" property.
>>
>> http://livedocs.adobe.com/flex/3/langref/flash/system/Capabilities.html#os
>>
>> -Jake
>>
>>
>> On Thu, Oct 22, 2009 at 10:15 AM, Tracy Spratt  wrote:
>>
>>>
>>>
>>>  We are creating an app that will run in an embedded linux environment,
>>> but are developing under windows.
>>>
>>>
>>>
>>> There are several functions we want to enable or disable based on whether
>>> we are running under windows or under linux.
>>>
>>>
>>>
>>> I have an init file parameter that lets me handle this, but we seem to
>>> often forget to set that param every time we publish.
>>>
>>>
>>>
>>> Is there anyway a runtime Flex AIR application can determine its host
>>> operating system?  runtimeVersion and sandboxType do not seem to give me
>>> what I want.
>>>
>>>
>>>
>>> Tracy Spratt,
>>>
>>> Lariat Services, development services available
>>>
>>>
>>>
>>
>>  
>>
>
>


Re: [flexcoders] Flex AIR app: How to determine Operating System at run-time

2009-10-22 Thread primo411
You will find what you need here:
http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7cd8.html

The trick is to analyze the String describing the Flash player version.

2009/10/22 Tracy Spratt 

>
>
>  We are creating an app that will run in an embedded linux environment,
> but are developing under windows.
>
>
>
> There are several functions we want to enable or disable based on whether
> we are running under windows or under linux.
>
>
>
> I have an init file parameter that lets me handle this, but we seem to
> often forget to set that param every time we publish.
>
>
>
> Is there anyway a runtime Flex AIR application can determine its host
> operating system?  runtimeVersion and sandboxType do not seem to give me
> what I want.
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>
>
>  
>


Re: [flexcoders] Flex AIR app: How to determine Operating System at run-time

2009-10-22 Thread primo411
Oh, I missed that one :) Jake's solution is better.

2009/10/22 Jake Churchill 

>
>
> Look at Capabilities.  It has an "os" property.
>
> http://livedocs.adobe.com/flex/3/langref/flash/system/Capabilities.html#os
>
> -Jake
>
>
> On Thu, Oct 22, 2009 at 10:15 AM, Tracy Spratt  wrote:
>
>>
>>
>>  We are creating an app that will run in an embedded linux environment,
>> but are developing under windows.
>>
>>
>>
>> There are several functions we want to enable or disable based on whether
>> we are running under windows or under linux.
>>
>>
>>
>> I have an init file parameter that lets me handle this, but we seem to
>> often forget to set that param every time we publish.
>>
>>
>>
>> Is there anyway a runtime Flex AIR application can determine its host
>> operating system?  runtimeVersion and sandboxType do not seem to give me
>> what I want.
>>
>>
>>
>> Tracy Spratt,
>>
>> Lariat Services, development services available
>>
>>
>>
>
>  
>


Re: [flexcoders] Flex AIR app: How to determine Operating System at run-time

2009-10-22 Thread Jake Churchill
my bad, os is only for in browser.  look at the version property:

http://livedocs.adobe.com/flex/3/langref/flash/system/Capabilities.html#version

-Jake

On Thu, Oct 22, 2009 at 10:20 AM, Jake Churchill  wrote:

> Look at Capabilities.  It has an "os" property.
>
> http://livedocs.adobe.com/flex/3/langref/flash/system/Capabilities.html#os
>
> -Jake
>
>
> On Thu, Oct 22, 2009 at 10:15 AM, Tracy Spratt  wrote:
>
>>
>>
>>  We are creating an app that will run in an embedded linux environment,
>> but are developing under windows.
>>
>>
>>
>> There are several functions we want to enable or disable based on whether
>> we are running under windows or under linux.
>>
>>
>>
>> I have an init file parameter that lets me handle this, but we seem to
>> often forget to set that param every time we publish.
>>
>>
>>
>> Is there anyway a runtime Flex AIR application can determine its host
>> operating system?  runtimeVersion and sandboxType do not seem to give me
>> what I want.
>>
>>
>>
>> Tracy Spratt,
>>
>> Lariat Services, development services available
>>
>>
>>  
>>
>
>


Re: [flexcoders] Flex AIR app: How to determine Operating System at run-time

2009-10-22 Thread Jake Churchill
Look at Capabilities.  It has an "os" property.

http://livedocs.adobe.com/flex/3/langref/flash/system/Capabilities.html#os

-Jake

On Thu, Oct 22, 2009 at 10:15 AM, Tracy Spratt  wrote:

>
>
>  We are creating an app that will run in an embedded linux environment,
> but are developing under windows.
>
>
>
> There are several functions we want to enable or disable based on whether
> we are running under windows or under linux.
>
>
>
> I have an init file parameter that lets me handle this, but we seem to
> often forget to set that param every time we publish.
>
>
>
> Is there anyway a runtime Flex AIR application can determine its host
> operating system?  runtimeVersion and sandboxType do not seem to give me
> what I want.
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>
>
>  
>


[flexcoders] Flex AIR app: How to determine Operating System at run-time

2009-10-22 Thread Tracy Spratt
We are creating an app that will run in an embedded linux environment, but
are developing under windows.

 

There are several functions we want to enable or disable based on whether we
are running under windows or under linux.

 

I have an init file parameter that lets me handle this, but we seem to often
forget to set that param every time we publish.

 

Is there anyway a runtime Flex AIR application can determine its host
operating system?  runtimeVersion and sandboxType do not seem to give me
what I want.

 

Tracy Spratt,

Lariat Services, development services available

 



[flexcoders] Re: Developing Flash/Flex on Linux

2009-10-22 Thread Michael Slinn
IntelliJ IDEA for Flex, even v9M1 ("Maia"), doesn't quite work properly  
:( 
You can see for yourself: http://www.jetbrains.com/idea/nextversion/
It's been a while, but the issues remain.  Maia seems stalled.

A free policy for open source projects would speed adoption of any IDE; 
also a free student policy, but this issue is not related to the choice 
of O/S.  Here is the Flex Builder student policy: 
https://freeriatools.adobe.com/flex/

Another idea for speeding adoption would be to get FDT placed into the 
Ubuntu commercial source repositories, like 
{feisty,gutsy,hardy,intrepid,jaunty,karmic,lucid}-commercial.  See 
https://help.ubuntu.com/community/Repositories/Ubuntu

$700 is fairly steep for individuals and small businesses, which is why 
the competition (Flex Builder) has an intermediate price point.  FDT 
would need to carve out features differently, however.  The marketing 
story for IDEs is always productivity.  $700 would be perceived to be 
good value by enterprises and hard-core Flex developers if productivity 
gains justified the expense.  If your bill rate is third-world ($15/hr) 
then productivity is not an issue.  If your bill rate is enterprise 
level ($125-200/hr) then productivity is very important.  The developers 
of successful open source products are very good, and they are 
often/usually employed by large companies.  A product offering that 
addressed open source projects would allow these star developers to 
become familiar with FDT, and if they liked the IDE they would spread 
adoption throughout their (wide) circle of influence.

I hope that a 64 bit version of FDT for Linux would be the goal.  A 
visual design surface is not important, just the basics of an IDE: edit, 
compile, debug, unit test. Strong refactoring features could be 
restricted to the higher price point of a tiered product offering.

Mike


RE: [SPAM] [flexcoders] TabNavigator content refresh

2009-10-22 Thread Tracy Spratt
Have both (all, really) depend on a "model".  Use binding or ChangeWatcher
or event listeners to update whatever when a value in the model is updated.
Update the model from wherever, and all will be good.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of |Mirko
Sent: Thursday, October 22, 2009 7:01 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] TabNavigator content refresh

 

  


Hi,

I have a TabNavigator with let's say two Tabs - TabA and TabB along with its
contents. Both tab contents read and change xml on which their both contents
depends. If i click TabA, then on TabB in which content i modify xml and
then return to TabA which also depends on that xml but change won't be
reflected like TabA content is not refreshed :/ So i am not sure how to
handle that, how can i accomplish that Tab content refreshes every time i
click on Tab?

Thanks,
Best regards
-- 
View this message in context: http://www.nabble.
 com/TabNavigator-content-refresh-tp26008039p26008039.html
Sent from the FlexCoders mailing list archive at Nabble.com.





[flexcoders] Re: TextArea and new line problems (with PHP and MySQL)

2009-10-22 Thread valdhor
When I try this using WebORB, any newlines are transferred through to PHP fine. 
I haven't tried saving and retrieving from a database but Flex passes them 
through.

Try just creating a PHP page that saves a string with newlines to a database, 
then retrieves the string and write it to a file. Are the newlines in the file?



--- In flexcoders@yahoogroups.com, David Pariente  wrote:
>
> Hello all,
> 
> I got into a problem, that i guess it's pretty common.
> 
> I got a TextArea in a form that sends to PHP and records to MySQL database.
> 
> My text area won't record the new lines, and they will just dissappear, 
> next time i load the text from the DataBase :(
> 
> How do people manage that?
> 
> people manage it from Flex or from PHP side?
> For my project i think it would better to manage it in the PHP side.
> 
> I guess i have to make some string replacement, but i'm not good at all 
> at RegEx.
> Also...should i replace chars at saving into DB? at loading from the DB? 
> or them both???
> 
> I already had my project quite advanced, and i didn't noticed this issue 
> until now,
> so i will thank alot any help you could offer.
> 
> Lots of thanks!
> David Pariente
>




[flexcoders] Flex Profiler Questions

2009-10-22 Thread Jesse Warden
1. Why doesn't he show assets (bitmaps, fonts, ... the things that take the
most RAM)?  Profiler reports 6 megs, but System.totalMemory reports 40 megs.
 No other SWF is open on the system beyond that one (so as not to pollute
System.totalMemory accounting for multiple SWF's).

2. I had some XML accounting for 150 megs of 190 megs, yet the profiler
didn't show it; said 21 megs.  I ran garbage collection multiple times in
the profiler, but it still stayed around.  Why isn't it picking this massive
chunk up?

3. What are "Method Closure"; event listeners?

4. Running code in Flash, I can confirm from both viewing memory via
System.totalMemory + having a timer that traces out a message on every tick
that a SWF is in fact unloaded from a Loader in Flash Player 10.  Running
this code in the profiler shows the Loader never unloading (yes, I'm
compiling for 10 and yes I'm using unloadAndStop; remember, same code).  The
profiler claims Loader still has it's instance around and the timer doesn't
die with his weak listener... but does running in Flash.


[flexcoders] Question about overlay and transparency

2009-10-22 Thread guytom19
Hello,

I'm failing to achieve something that sounded trivial at first - please see if 
you have an idea:
- We have a video player
- The video player loads a flex application
- This flex application we'd like to have a semi transparent (alpha=0.5) black 
background
- on top of the black background there should be an opaque image and a text 
container

That's it...

Problem is - whenever we put a backgroundAlpha in the loaded application , or 
alpha in the SWFLoader that loads it, there's no way to make one of the 
components opaque.

I'm sure it's simple but can't find it.

Help appreciated.

Guy



[flexcoders] ArrayCollection.setItemAt() triggering a new instance of itemRenderer class

2009-10-22 Thread Brandon Krakowsky
Tracy,

Thanks for the info.  Yeah, that makes sense.  Initially I was thinking that I 
could reuse images, textfields, etc., which I sometimes can, but I can't count 
on the fact that they'll be there.

Sorry about hijacking the thread.  My mistake.

Thanks,
Brandon



  

[flexcoders] Re: Serious bug with array sorting?

2009-10-22 Thread mole5000.geo
> I've logged this as a bug in JIRA but I just want to know if anyone else has 
> seen this behaviour?  We first noticed something was up when we were sorting 
> dates-as-milliseconds and all kinds of anomalous behaviour occurred).
> 

Incidentally, for those interested, this is logged as SDK-23743 in JIRA.

--
Alistair Hutton



[flexcoders] TabNavigator content refresh

2009-10-22 Thread |Mirko

Hi,

I have a TabNavigator with let's say two Tabs - TabA and TabB along with its
contents. Both tab contents read and change xml on which their both contents
depends. If i click TabA, then on TabB in which content i modify xml and
then return to TabA which also depends on that xml but change won't be
reflected like TabA content is not refreshed :/ So i am not sure how to
handle that, how can i accomplish that Tab content refreshes every time i
click on Tab?

Thanks,
Best regards
-- 
View this message in context: 
http://www.nabble.com/TabNavigator-content-refresh-tp26008039p26008039.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] 3D look Array

2009-10-22 Thread Christophe
Hello, 

How to display an array in Flex with a 3D look ? 

Do you have any examples ?

Thank you,
Christophe, 




[flexcoders] Re: Spark layout / horizonal and vertical centered button

2009-10-22 Thread Markus
Hello Peter, 

thanks for that good advice. I have used the button only to have a simple 
example to show. But your approach is definitely better in that case.

I have used the outer Group only for a solid background fill in a viewstack 
like approach using depth. Like this:










Kind regards
Markus

BTW: I really like your great blogs. :-)


--- In flexcoders@yahoogroups.com, Peter DeHaan  wrote:
>
> Couldn't you just use this instead? Using a nested Group/HGroup/VGroup seems 
> like overkill just to center align something.
> 
> 
> 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">
> 
> 
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of Markus
> Sent: Wednesday, October 21, 2009 1:08 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Spark layout / horizonal and vertical centered 
> button
> 
> 
> 
> Ok, i got it. :-) It was really just a little thing. Only the height="100%" 
> was wrong on the VGroup - so it couldn't be aligned in the middle.
> 
> So my code looks like this now:
> 
> 
> 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">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Watch for the minWidth and minHeight if it doesn't scale right when resizing.
> 
> Markus
> 
> --- In flexcoders@yahoogroups.com, 
> "Markus"  wrote:
> >
> > Hello,
> >
> > this might be an easy question but at the moment I am not sure how to do 
> > this. I want to use the new Spark layout and display a button that is 
> > horizontal and vertical centered in the middle.
> >
> > I have tried the following code but it didn't work.
> >
> > 
> > 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">
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > Any suggestions or examples?
> >
> > Regards Markus
> >
> > BTW: Does anybody know where to get the source code from Glenn Ruehle's 
> > presentation about Spark layouts on the MAX 2009?
> >
>




Re: [flexcoders] Button skin without button behaviour

2009-10-22 Thread Andriy Panas
Hi Richard,



--
Best regards,
Andriy Panas



2009/10/21 Richard Rodseth 

>
>
> I have a menu bar-like structure composed of PopUpButtons with no gap
> between them, and wish to extend the bar to the edge of the page.
> If I do that by adding a "dummy" button what's the easiest way to suppress
> the appearance changes due to rollover and mousedown?
>
> I figured that might be easier than trying to recreate the button
> appearance with a VBox + borderSkin.
> Thanks.
>  
>


Re: [flexcoders] Possible to change border thickness of textInput in error state?

2009-10-22 Thread Andriy Panas
Hi G,
I assume you are on Flex 3 SDK, then I suggest you to set "focusThickness"
style on textInput propety, not very elegant solution, because it also
influences the thinkness of the focus.

If setting "focusThinkness" is not an option for you, then I suggest you to
extend standard TextInput component to include the support for the skin for
"error" state, see for example those great samples by Lejnieks

Show error skin for Flex 3 checkbox
http://www.lejnieks.com/2009/04/06/skinning-checkbox-with-error-state/
Show error skin for Flex 3 combobox
http://www.lejnieks.com/2009/04/06/skinning-combobox-with-error-state/


If you are already moved along to Flex 4 SDK, then your task will be easy,
you do not have to extend standard components, just
create extra skin with custom border defined for "error" state for Spark
TextInput component, see source file of ErrorSkin.as as starting point
http://www.airia.cn/FLEX4API/livedocs/spark/skins/default/ErrorSkin.html


--
Best regards,
Andriy Panas



2009/10/21 G 

>
>
> I know you can change the errorColor of a textinput, but I have found
> nothing in the docs, or online about how to change the thickness of that
> border (when not in focus).
>
> It seems that the thin red line is not very noticeable, and I want to bring
> more attention to fields which have errors.
>
> I am also open to any other suggestions that people have found succesful.
>
> Thanks.
>
>  
>


Re: [flexcoders] Developing Flash/Flex on Linux

2009-10-22 Thread primo411
Besides, Intellij Idea provides a free license for open-source projects
developers .
But I guess an Eclipse-based IDE will always find its audience ;)

2009/10/22 Nick Collins 

>
>
> Personally, I'm not all that concerned about Flex Builder running on Linux,
> in and of itself. Now if they ported the Creative Suite as well, I would be
> totally psyched. Unfortunately, as long as CS is only available on Windows
> or OSX, I'm going to be tied to those platforms.
>
> That being said, for those who want to code on Linux, IntelliJ IDEA is an
> excellent editor, and feature for feature, FDT will have a very hard time
> competing with it with their current pricing. IDEA is $250 for a single
> developer license, and that includes MXML support, integrated debugger, Flex
> Unit integrated with the IDE, etc. To get the same features in FDT, you'd
> have to pay more than 3X that.
>
>
> On Wed, Oct 21, 2009 at 5:36 PM, Kelly  wrote:
>
>>
>>
>> I don't get what is so hard about supporting Linux.
>>
>> Eclipse is Java based.
>>
>> Eclipse runs perfectly on pretty much all platforms.
>>
>> Not sure why Adobe took a big dump on Flexbuilder Linux.
>>
>> I was totally OK with using Flexbuilder on Linux with all the missing
>> features that Windose Flexbuilder has except that Flexbuilder Linux never
>> worked right even though it was crippled.
>>
>>
>> I have never used FDT but I have heard it works pretty well.
>>
>>
>>
>> If people are having a hard time getting Java software to run
>> cross-platform then I question why.
>>
>>
>> The countless other Eclipse plugins I use don't have a 2 year lag between
>> Windose and Linux versions because JAVA IS CROSS-PLATFORM.
>>
>>
>>
>>
>> If you guys make FDT work on Linux I will check it out.
>>
>> Adobe obviously doesn't give half a crap about Linux.
>>
>>
>>
>>
>>
>>
>>
>>
>> fonzibruno wrote:
>>
>>
>>
>> Powerflasher, the creators of FDT, the Flash/Flex IDE, is seriously
>> considering investing to support the a Linux version of FDT, if interested
>> let us
>> know.
>>
>> Bruno Fonzi & the FDT Team
>> http://fdt.powerflasher.com
>>
>>
>  
>