[flexcoders] States Transitions Example

2007-01-23 Thread JesterXL
An example of using states and transitions in Flex 2 components.

http://www.jessewarden.com/archives/2007/01/flex_2_states_t.html




[flexcoders] Flex Builder 2.0.1 vs Eclipse 3.2 Flex 2 Plug-in

2007-01-23 Thread Robert
Hi folks,

Since the 2.0.1 update for Flex 2, just what features that can only be
found on Eclipse 3.2 are you using that make life easier for you? Or
is the Flex Builder 2 updated good enough? I haven't migrated my
machine just yet so any thoughts as to which side is better to take
are appreciated. Is it better to send in for the plug-in and exchange
my CD or should I just go ahead and use the updater and keep with the
Eclipse v3.1.2?

Also I saw in the release notes that BEA Weblogic and one of the IBM
Rational versions is supported with the plug-in. I personally haven't
used either but I am evaluating MyEclipse Enterprise Workbench and
wondered if anyone has tried the Flex Plug-in here.

Thanks for the opinions,
Robert




[flexcoders] Re: Rotate Datagrid Headers

2007-01-23 Thread Tim Hoff

Hi Dana,

A real easy way to do this would be to use a headerRenderer for the
DataGrid columns.

Inline:

mx:DataGrid id=dg height=300 width=300 headerHeight=60
dataProvider={ myDataProvider }
 mx:columns
 mx:Array
 mx:DataGridColumn width=160 headerText=City
dataField=city
  mx:headerRenderer
   mx:Component
 mx:VBox horizontalAlign=center
   mx:Text
  text={ this.data.headerText }
  rotation=90
 
styleName=myEmbeddedFontStyleName/
 /mx:VBox
/mx:Component
   /mx:headerRenderer
 /mx:DataGridColumn
 /mx:Array
 /mx:columns
/mx:DataGrid

Or, if you want to reuse the headerRenderer, create a component:

mx:DataGrid id=dg height=300 width=300 headerHeight=60
dataProvider={ myDataProvider }
 mx:columns
 mx:Array
 mx:DataGridColumn width=160
   headerRenderer=RotatedHeaderRenderer
   headerText=City
   dataField=city/
  mx:DataGridColumn width=160
   headerRenderer=RotatedHeaderRenderer
   headerText=State
   dataField=state/
 /mx:Array
 /mx:columns
/mx:DataGrid

RotatedHeaderRenderer.mxml

?xml version=1.0 encoding=utf-8?
mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  horizontalAlign=center
   mx:Text
  text={ this.data.headerText }
  rotation=90
  styleName=myEmbeddedFontStyleName/
/mx:VBox

-TH
__

Tim Hoff
Cynergy Systems, Inc.
http://www.cynergysystems.com
Office http://www.cynergysystems.comoffice/ : 866-CYNERGY

--- In flexcoders@yahoogroups.com, Dana Gutride [EMAIL PROTECTED] wrote:

 Hi,

 After much searching, I haven't found a satisfactory answer to this
 question. I'm trying to rotate the headers of my datagrid so they are
 completely vertical. I've embedded the font successfully and can
rotate any
 other piece of text in my app, but when I attempt to rotate the text
in the
 datagrid header, it keeps disappearing. I've used both the rotation
 property and created a rotate effect, but to no avail. I think it
might
 have to do with the x and y of the text. Any ideas?

 Thanks,
 Dana





Re: [flexcoders] Help Extending TabNavigator/ButtonBar

2007-01-23 Thread Doug McCune
I know Jason said he's going to be releasing a new TabNavigator 
component, but I couldn't resist trying my hand at it.


Here's my enhanced TabNavigator: 
http://dougmccune.com/blog/2007/01/23/the-quest-for-the-perfect-tabnavigator/


It uses existing code for closeable and draggable tabs, and adds in 
functionality for scrolling tabs if there are too many, and also 
displaying the drop-down list on the right side. No source code yet, but 
that will come in another day or two after I clean it up a bit.


Jason, I'll be interested to see how you approach it...


Ciarán wrote:


Thanks Jason, would be a great help. Just subscribed to the feed. =)

-Ciarán

On 1/22/07, Jason Hawryluk [EMAIL PROTECTED] mailto:jh%403gcomm.fr wrote:




 I'm working on a blog post for something similar, but more toward 
the way flex builder does it with a drop down at the end. Plus a bunch 
of other goodies. ;)




 I may have it up this week, need to finish this current post first, 
plus do some paying work. :)




 I'll also provide source.



 jason


 




Re: [flexcoders] Re: Localizing Press Esc to exit full screen mode?

2007-01-23 Thread Oleg Filipchuk

Hi Matt,
any of supported languages - you mean English, French, German and Chinese?
The are a plenty of other languages. I've been testing it on machines, with
Russian, Czech, Polish, Slovakian, Ukrainian etc and everywhere it is the
same Press Esc to exit full screen... Is it so hard for such a big company
to make translation of one simple sentence to at least 50-70 languages?
There is the same issue  with settings panel, express install etc.

--
Best regards,
Oleg Filipchuk


[flexcoders] Draggable Slider Component

2007-01-23 Thread Doug McCune
Here's a component similar to Dual Slider component on Flex Exchange 
that Brendan Meutzner made. It allows you to drag the region between two 
thumbs of a VSlider or HSlider. I made it a while ago and never got 
around to posting it anywhere. I submitted it to the exchange, but until 
it shows up there, here's the link: 
http://dougmccune.com/blog/2007/01/21/draggable-slider-component-for-flex/

Full source included. Or there's a compile SWC if you want to drop that 
into a project.


Re: [flexcoders] What's in a name? That which we call Apollo by any other name would smell as sweet....

2007-01-23 Thread Tom Chiverton
On Monday 22 January 2007 23:37, Brendan Meutzner wrote:
 disappointed to hear that it will be called something entirely different by
 June?  Can anyone at Adobe comment?

I can see another 'Revolution' episode coming, with everyone expecting one 
name and getting another.
It'll probably end up as 'Adobe Desktop Reader Extension Portal' or 
something :-)

Apollo is generic enough to make a good code name, and a poor product name. 
Mind you, so is Flex :-)

-- 
Tom Chiverton
Helping to completely reintermediate interdependent products



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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Is Flash a single thread application?

2007-01-23 Thread saha.prasanta
Hi,


I've read in some forum that Flash is a single thread  application.
I tried to find some document supporting that statement, But I
couldn't find any document by Adobe or Macromedia regarding that.


Could you plase help me by forwarding the of such article. I need that
as a proof for one of my project. 


Warm regards,

Prasanta Saha,
Flash Developer,
Hyderabad, Indaia



Re: [flexcoders] Re: Silent Download

2007-01-23 Thread Tom Chiverton
On Monday 22 January 2007 19:16, mvbaffa wrote:
 In fact Server 2 is a web server located in a Kiosk. The Flex 2 App
 running at the Kiosk will have to show the movies on demand. So the
 movies will be downloaded from server 1 and stored on server 2.

Your best having the Flex app ask the local server to fetch the file from the 
remote server, and call some sort of callback (or poll until completed) when 
it has arrived.

-- 
Tom Chiverton
Helping to completely foster 24/365 functionalities



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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] playing two video simultaneously, seeking too slow especially when playing from dvd

2007-01-23 Thread Tom Chiverton
On Monday 22 January 2007 17:43, Benjamin Schwehn wrote:
 The two FLV typically have sizes between 20 and 200MB each. One is
 encoded with an Flash 7 Codec, the other with the newer Flash 8 On2 VP6
 Codec. (seeking is slow with both codecs)

Would it be possible to just join the two video files together off line and 
ship that on the DVD ?
Obviously, if you have hundreds of videos on the disk that can have any two 
combined, this isn't going to work.

-- 
Tom Chiverton
Helping to biannually target killer paradigms



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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Re: Localizing Press Esc to exit full screen mode?

2007-01-23 Thread Tom Chiverton
On Tuesday 23 January 2007 09:02, Oleg Filipchuk wrote:
 same Press Esc to exit full screen... Is it so hard for such a big
 company to make translation of one simple sentence to at least 50-70
 languages? 

No...

 There is the same issue  with settings panel, express install  
 etc.

..but now you recognise the true scale of the task.

-- 
Tom Chiverton
Helping to augmentatively entrench best-of-breed applications



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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Drag-Resize MDI Example

2007-01-23 Thread Michael Schmalle

Also,

I have a high octane tab navigator being released commercially in a month or
two.

http://www.flex2components.com/f2cblog/2007/01/18/flex-2-mdipanefx-not-a-pain/

Peace, Mike

On 1/23/07, Dave Carabetta [EMAIL PROTECTED] wrote:


  Do you mean something like this?

http://www.cynergysystems.com/blogs/page/andrewtrice?entry=enhanced_flex_mdi_interface


Regards,
Dave.
Cynergy Systems, Inc.

On 1/14/07, John Kirby [EMAIL PROTECTED] wrote:

Anyone know of a Flex 2 Drag-Resize MDI/Panel example?
 --
 *Whether you think that you can, or that you can't, you are usually
 right.*
  - Henry Ford


 





--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] extra line coming from an external text file

2007-01-23 Thread shemeshkale
hello,
i have made this log watcher for my testing.
it is very basic - loading an external file and putting its content to a
TextArea.
BUT.. for some reason it adds an extra redundant enpty line after every
line - as if the text have two RETURNs  (\n) on every line.
what m i doing wrong?

the condenseWhite on the TextArea is not solving this.

any idea?

here is my code(just point it to your own file):

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=vertical initialize=init()
 mx:Script
 ![CDATA[
 import mx.controls.Alert;

 private var myTimer:Timer;

 private function init():void{
 myTimer = new Timer(1000, 0);
 myTimer.addEventListener(timer, loadFile);
 myTimer.start();
 }

 private function loadFile(event:TimerEvent):void{
 var request:URLRequest = new URLRequest(D:/Documents
and Settings/someusername/Application Data/Macromedia/Flash
Player/Logs/flashlog.txt);
 var loader:URLLoader = new URLLoader();
 loader.dataFormat = URLLoaderDataFormat.TEXT;
 loader.addEventListener(Event.COMPLETE,
completeHandler);
 try {
 loader.load(request);
 } catch (error:Error) {
 mx.controls.Alert.show(Unable to load file:  +
error);
 }

 }

 private function completeHandler(event:Event):void {
 var loader:URLLoader = URLLoader(event.target);
 textAR.text = loader.data;
 trace(textAR.textHeight);
 if(scroll.selected == true)
 textAR.verticalScrollPosition = 500;
 }

 private function stopStart():void{
 if(run.selected == true)
 myTimer.start();
 else if(run.selected == false)
 myTimer.stop();
 }

 ]]
 /mx:Script
 mx:TextArea width=90% height=50% wordWrap=false id=textAR
 verticalScrollPosition=50 editable=false /
 mx:CheckBox id=scroll label=scroll /
 mx:Button label=clear click=textAR.text='' /
 mx:CheckBox id=run label=run selected=true
click=stopStart() /
/mx:Application

 
http://livedocs.macromedia.com/flex/2/langref/mx/controls/TextArea.html\
#condenseWhite


Re: [flexcoders] Re: creating swf online

2007-01-23 Thread Abdul Qabiz

4/...and return the builded swf. Here, We need to synchronize the
output of a shell command to the script return.



I don't know if MXMLC returns some code (which you can figure out
success/failure situation).. But it does return
standard message...

MXMLC would generate SWF on your file system... I suggest you looking at
mxmlc.jar, may be you can use it's API directly, that would give you more
control. But yes you can still do things with MXMLC...probably doing little
parsing on MXMLC messages...

-abdul


On 1/22/07, gdoucen [EMAIL PROTECTED] wrote:


  Hi Abdul,

1/ the first approach has sense but is not my favorite,

2/ I'm more interested by the second approach. A such solution would
be really clean and powerfull...not so far from the flexifier
application where they use private java api to do the job.

So what have we got ?

1/I have got a graphical interface that help me building my slideshow
by dragging images,shapes,audio (what i want) to the scene.

2/When pushlishing, an xml description of the scene (images  swf
assets to embed at compile, items properties) is transmitted to the
server-side script (php, java ???).

3/This script create my MXML file and call the mxmlc compiler to
generate the swf...

4/...and return the builded swf. Here, We need to synchronize the
output of a shell command to the script return.

Can u precise the last point? Have u got a working example.

I will make some test.

Thanks again for your help.

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Abdul
Qabiz [EMAIL PROTECTED] wrote:

 If I am right, you want to let user design something and then generate
 SWF...

 There are different ways, people do that:-

 1) You write two pieces (editor and player), editor let users design
and you
 serialize all information on server in database, xml or whatever. Player
 loads XML and renders the content.

 2) You want a monolithic piece (SWF) that contains the entire stuff...

 I guess, you are talking about second?

 You can do that by embedding all resources in SWF and letting user
download
 the final output. You can run MXMLC as CGI or process? to do that...

 Once user has done designing, you save the entire design (Canvas)
 information in some intermediate format, pass it to server-side
script which
 can construct a MXML file for it, run MXMLC on MXML to generate SWF...

 Does that make sense? But I would suggest you going for first
approach 

 -abdul

 On 1/21/07, gdoucen [EMAIL PROTECTED] wrote:
 
  Hi,
 
  I want to create a light scrapblog application as a personnal project.
  Which techniques scrapblog or similar apps use to create the swf
online ?
 
  Thanks for your help.
 
 
 


 



Re: [flexcoders] Is Flash a single thread application?

2007-01-23 Thread Abdul Qabiz

Yes it is Single threaded

-abdul

On 1/23/07, saha.prasanta [EMAIL PROTECTED] wrote:


  Hi,

I've read in some forum that Flash is a single thread application.
I tried to find some document supporting that statement, But I
couldn't find any document by Adobe or Macromedia regarding that.

Could you plase help me by forwarding the of such article. I need that
as a proof for one of my project.

Warm regards,

Prasanta Saha,
Flash Developer,
Hyderabad, Indaia

 



Re: [flexcoders] playing two video simultaneously, seeking too slow especially when playing from dvd

2007-01-23 Thread Abdul Qabiz

Hi,

1. Is it possible to force the flash player to just load both videos

into main memory (or PageFile) at start up?



You can set the buffer-time to a large number, I suggest don't keep it too
large. Should work fine on the cost of more memory consumption...

Read more about bufferTime in Flex docs.

You can also make it more

-abdul

On 1/23/07, Tom Chiverton [EMAIL PROTECTED] wrote:

On Monday 22 January 2007 17:43, Benjamin Schwehn wrote:
 The two FLV typically have sizes between 20 and 200MB each. One is
 encoded with an Flash 7 Codec, the other with the newer Flash 8 On2 VP6
 Codec. (seeking is slow with both codecs)

Would it be possible to just join the two video files together off line

and

ship that on the DVD ?
Obviously, if you have hundreds of videos on the disk that can have any

two

combined, this isn't going to work.

--
Tom Chiverton
Helping to biannually target killer paradigms



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 St James's Court Brown Street Manchester M2 2JF.  A list of members is
available for inspection at the registered office. Any reference to a
partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by the Law Society.


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 8008.


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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links






[flexcoders] TextField.embedFont strange behavior

2007-01-23 Thread polestar11
Hi there

I'm getting a strange error when dynamically adding a TF and turning
on the embedFonts property. Without the property turned on, all the
text is displayed, but with embedFonts set to true I only see the text
up to 'ABCDEFGH'. This is very odd behavior, am I missing something
blatantly obvious?

Code:
var fmt:TextFormat = new TextFormat()
fmt.font = Verdana
fmt.color = 0x99

var toc:TextField = new TextField()
toc.antiAliasType = AntiAliasType.NORMAL
toc.autoSize = TextFieldAutoSize.LEFT
toc.selectable = false
toc.multiline = true
toc.defaultTextFormat = fmt
toc.embedFonts = true

Tracy




[flexcoders] Re: Is Flash a single thread application?

2007-01-23 Thread ben.clinkinbeard
I don't know of any specific documents, but just to clarify, in
addition to Abdul's comment: Flash Player is single threaded except in
the case of remote calls. Remote calls are always asynchronous by way
of spinning off a separate thread. Not sure about any limits on the
number of threads that can be opened in that fashion.

HTH,
Ben


--- In flexcoders@yahoogroups.com, saha.prasanta [EMAIL PROTECTED]
wrote:

 Hi,
 
 
 I've read in some forum that Flash is a single thread  application.
 I tried to find some document supporting that statement, But I
 couldn't find any document by Adobe or Macromedia regarding that.
 
 
 Could you plase help me by forwarding the of such article. I need that
 as a proof for one of my project. 
 
 
 Warm regards,
 
 Prasanta Saha,
 Flash Developer,
 Hyderabad, Indaia





RE: [flexcoders] Newbie: Dataprovider sintax for column series with xml dataprovider

2007-01-23 Thread Ely Greenfield
 
 
Hi Guille. See my previous post. You're going to write some actionscript
to pre-process your dataprovider into individual XMLLists, one for each
series.
 
ely.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of g_vaccarezza
Sent: Monday, January 22, 2007 12:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Newbie: Dataprovider sintax for column series with
xml dataprovider



Guy,

I'm a a total dumba$$ trying to fill my column chart with my xml
dataprovider; I have so many doubts but let's concentrate in my current
problem:

I have a column with several series. I should like like this:

http://www.idslab.com.ar/tmp/chartShot.jpg
http://www.idslab.com.ar/tmp/chartShot.jpg 

And my dataprovider looks like:

data

- http://201.216.205.45/timmy/reports/viewXML/volumepayerreport/1/1#
month  label=January vol=12
  payorname label=p1 vol=9 / 
  payorname label=p2 vol=3 / 
  /month
- http://201.216.205.45/timmy/reports/viewXML/volumepayerreport/1/1#
month hidden_name=20052 label=February vol=13
  payorname label=p1 vol=13 / 
  /month
- http://201.216.205.45/timmy/reports/viewXML/volumepayerreport/1/1#
month hidden_name=20053 label=March vol=13
  payorname label=p1 vol=10 / 
  payorname label=p2 vol=3 / 
  /month

/data

So far, so good. I want to see those payornames displayed in series by
month.

Now the question: I know that I need to add series for each one of the
payornames I want to dispay, but I'm having trouble writing my
dataprovider declaration. It's more a sintax problem than a theory
problem, and it's driving me mad.

How shoud I declare the dataprovider for my column chart and each one of
the series? I still don't get how to properly link the xml structure
to work as a data provider so that I can pull the chart as shown.
Should it be something like dataprovider=myData.lastResult.data.month
or dataprovider=myData.lastResult.data.month.payorname... (none of
thos 2 is working correctly anyway).

Thanks for your help!
Guille


 


[flexcoders] Line Chart and Line shadows

2007-01-23 Thread Mikhail Shevchuk

Hello, flexcoders!

Is there any way to disable the shadow line effect in Line Chart component?

--
A vivid and creative mind characterizes you.


[flexcoders] Flex - ColdFusion data types

2007-01-23 Thread Steve Milburn

Hello all.

I am very new to Flex so forgive me for the newby questions.

I have been reading about Flex Data Services, Web Services, etc and working
through some examples from Adobe.  My question is when is it necessary to
return the data in XML and when is it ok to return other datatypes?

If you read in this article by Ben Forta, it states To make the integration
as simple as possible, data types are preserved and automatically converted
to their appropriate equivalent types. If ColdFusion returns a string, Flash
receives a string; if ColdFusion returns a query, Flash receives an
ArrayCollection, and so on.

OK, simple enough.  I have worked through examples that do just that.

However, in another article on Adobe's web site (which I cannot locate now
for the life of me), it stated that Flex only understands XML.  The example
on that page illustrated Flex calling a .cfm template, while the other
examples are calling .cfc components.

Is that the difference?  When Flex calls a .cfm, it must receive XML?  And
when it calls cfc functions it can recieve other data types?

Any clarification on this is appreciated.

Steve


[flexcoders] Re: DateField - is there a way to limit the amount of input allowed?

2007-01-23 Thread Libby
Anybody? As far as I can tell, DateField doesn't take a maxChars
property, which would be the logical solution.

--- In flexcoders@yahoogroups.com, Libby [EMAIL PROTECTED] wrote:

 I used a keyboard listener to keep track of the length of the text
 entered, but Flex ignores my demands to preventDefault() and/or
 stopImmediatePropagation(). Does anyone have the secret they could
 share with me?
 
 Thanks,
 Libby





[flexcoders] HTTPServlet response formatting -- unwanted type detection/conversion

2007-01-23 Thread mjharris73
The HTTPServlet has a property called resultFormat to allow the
programmer to control how the data is formatted in the response.  The
default, object, causes the response XMLNode to be parsed into a
flex object tree.  GREAT.  But it also converts the strings in the XML
into known types.  Thus the string 100e is converted into the number
100.  The e is removed because it is unnecessary.  Problem is, we
didn't want the string 100e to be parsed at all.  We wanted it to
stay a string.

In general, we will receive unknown data in the response and don't
want the parser fiddling with the data.  Just leave the data as
strings as it transforms the xml into an object tree so we can easily
reference components using the convenient dot notation.

Does anyone know of a way to override the type conversion in the
object format or specify another option to get flex to parse the
XMLNode into an object without type conversion? Maybe an option like
objectstrings or such?  I know I could write a routine to take the
XMLNode response and convert it into an object myself but it seems
quite inefficient.

Thanks.



[flexcoders] non visible fields in data grid are displaying

2007-01-23 Thread Shelley Browning
Hello,
 
I've been building an application that utilizes data grids.  For some
reason the fields that are set visible=false are displaying when the
data is populated using a data collection and data is updated. This just
started occurring when I did the updated with Flex Builder.  Anyone else
see this?  If so what did you do to correct?
 
mx:DataGrid id=gridEmployees dataProvider={searchCollection}
width=90% height=100%
  mx:columns
   mx:DataGridColumn headerText=Emp No dataField=EmpNo
width=60 /
   mx:DataGridColumn headerText=Name dataField=Name /
   mx:DataGridColumn headerText=Job Title dataField=JobTitle/
   mx:DataGridColumn headerText=PersonID dataField=PersonID
visible=false/
   mx:DataGridColumn headerText=PersonUUID dataField=PersonUUID
visible=false/
  /mx:columns
 /mx:DataGrid
 
Thanks,
 
Shelley Browning
Intermountain Healthcare


Re: [flexcoders] Is Flash a single thread application?

2007-01-23 Thread Cameron Bahan
Flash does seems to be single-threaded.  However, one should be  
careful as events are fired concurrently.  I have run into a few  
issues regarding concurrency and shared data.  So far the only  
solutions that I have heard is to write a custom locker class using  
a boolean lock.  Has anyone else experienced this?  How have you  
solved it?


CS Bahan
Lead Software Engineer

On Jan 23, 2007, at 4:31 AM, saha.prasanta wrote:


Hi,

I've read in some forum that Flash is a single thread application.
I tried to find some document supporting that statement, But I
couldn't find any document by Adobe or Macromedia regarding that.

Could you plase help me by forwarding the of such article. I need that
as a proof for one of my project.

Warm regards,

Prasanta Saha,
Flash Developer,
Hyderabad, Indaia







Re: [flexcoders] Re: Rotate Datagrid Headers

2007-01-23 Thread Dana Gutride

Tim:

Thanks for the response.  I neglected to mention that I have been attempting
to use a headerrenderer.  I've created it both inline and in a separate
component and still nothing.  This code below illustrates what I've been
attempting to do, am I missing something?

Thanks,
Dana

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
   mx:Style
   @font-face {
   src: url(assets/verdana.ttf);
   fontFamily: MyFont;
   }
   .myStyle1{fontFamily:MyFont; fontSize:12pt}
   /mx:Style
 mx:DataGrid id=rootDataGrid width=100% height=100%
headerHeight=300 
   mx:columns
   mx:Array
   mx:DataGridColumn dataField=Name width=100
headerText=Host Name /
   mx:DataGridColumn headerText=City dataField=city
mx:headerRenderer
 mx:Component
   mx:VBox horizontalAlign=center
 mx:Text
text={ this.data.headerText }

rotation=90
styleName=myStyle1/
   /mx:VBox
  /mx:Component
 /mx:headerRenderer
   /mx:DataGridColumn
   /mx:Array
   /mx:columns
   /mx:DataGrid
/mx:Application


On 1/23/07, Tim Hoff [EMAIL PROTECTED] wrote:


  Hi Dana,

A real easy way to do this would be to use a headerRenderer for the
DataGrid columns.

Inline:

mx:DataGrid id=dg height=300 width=300 headerHeight=60
dataProvider={ myDataProvider }
mx:columns
mx:Array
mx:DataGridColumn width=160 headerText=City
dataField=city
 mx:headerRenderer
  mx:Component
mx:VBox horizontalAlign=center
  mx:Text
 text={ this.data.headerText }
 rotation=90

styleName=myEmbeddedFontStyleName/
/mx:VBox
   /mx:Component
  /mx:headerRenderer
/mx:DataGridColumn
/mx:Array
/mx:columns
/mx:DataGrid

Or, if you want to reuse the headerRenderer, create a component:

mx:DataGrid id=dg height=300 width=300 headerHeight=60
dataProvider={ myDataProvider }
mx:columns
mx:Array
mx:DataGridColumn width=160
  headerRenderer=RotatedHeaderRenderer
  headerText=City
  dataField=city/
 mx:DataGridColumn width=160
  headerRenderer=RotatedHeaderRenderer
  headerText=State
  dataField=state/
/mx:Array
/mx:columns
/mx:DataGrid

RotatedHeaderRenderer.mxml

?xml version=1.0 encoding=utf-8?
mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml;
horizontalAlign=center
  mx:Text
 text={ this.data.headerText }
 rotation=90
 styleName=myEmbeddedFontStyleName/
/mx:VBox

-TH
__

*Tim Hoff
*Cynergy Systems, Inc.
http://www.cynergysystems.com http://www.cynergysystems.comoffice/
Office: 866-CYNERGY

--- In flexcoders@yahoogroups.com, Dana Gutride [EMAIL PROTECTED] wrote:

 Hi,

 After much searching, I haven't found a satisfactory answer to this
 question. I'm trying to rotate the headers of my datagrid so they are
 completely vertical. I've embedded the font successfully and can rotate
any
 other piece of text in my app, but when I attempt to rotate the text in
the
 datagrid header, it keeps disappearing. I've used both the rotation
 property and created a rotate effect, but to no avail. I think it might
 have to do with the x and y of the text. Any ideas?

 Thanks,
 Dana


 



[flexcoders] Any ideas on customizing labels an gridlines in LinearAxis of LineChart ?

2007-01-23 Thread mgrayfmr
Hey Guys- 

I have a line chart with a numeric Y axis that I want to control the 
number of gridlines.
Usually, this isn't a problem but sometimes lines are not drawn in 
even intervals.
My axis data ranges are dynamic.
For example, I might have a range of percentages from 88% to 100%. 
With an interval of 2,
I get horizontal lines at 88%, 90%, 92%, 94%, 96%, 98%, 100%.
But when the min and max become 87% and 100%, Flex draws axis labels 
for the same range and leaves off a label for 87% because it is only 
an interval of 1 away from 88%

I need for the min and max values to be displayed on the axis when 
there are uneven intervals.
I have sub-classed the LinearAxis class to manipulate the AxisLabel 
objects, but I am having a hard time creating even intervals.
The two best scenarios I have come up with is 
1) a chart with labels 87% ,90%,. . . 100%, but that leaves a larger 
interval at the bottom of the chart.
And 2) check for a modulus (means I don't have an even interval), 
and alternate the intervals 2, than 3, than 2 again.
This creates uneven gridline intervals, even though the chart is 
accurately displaying the data

Ideally, I would like to end up with the second style, with 
alternating intervals, but have the chart rescale so the intervals 
appear equal.
Just to let you know, I am copying the functionality of an existing 
Flash Fusion Chart control, so this isn't a completely random idea!
The Fusion control asks for the number of divlines you want only, 
and figures it out from there.
A Flex chart though, as you probably know, takes an interval instead.

If anyone has any ideas, or has run into anything like this, please 
let me know !!!
Thanks - Mike Gray



Re: [flexcoders] playing two video simultaneously, seeking too slow especially when playing from dvd

2007-01-23 Thread Benjamin Schwehn
Tom Chiverton wrote:
 On Monday 22 January 2007 17:43, Benjamin Schwehn wrote:
 The two FLV typically have sizes between 20 and 200MB each. One is
 encoded with an Flash 7 Codec, the other with the newer Flash 8 On2 VP6
 Codec. (seeking is slow with both codecs)
 
 Would it be possible to just join the two video files together off line and 
 ship that on the DVD ?

We considered that option, but would like to avoid it because the videos 
are not at the same resolution (neither same framerate, but that would 
be less of a problem):

Video 1 (typically a lecturer giving a speech) is at 320x240, video 2 
(typically PPT Slides, Animations, Films) is at 640x480. Since a joined 
video must still be rectangular, it would get quite large, at least 
980x480, but in fact even a bit bigger (ca 1040x480, since we would need 
some additional space for our layout (the two videos shouldn't be right 
next to each other). Those videos would possibly be a bit of a hassle to 
generate and handle (and probably quite a bit larger because of the 
empty space and because we'd have to use the higher framerate for both 
videos). Escpecially as it is a bit of a hassle putting controls on top 
of a VideoDisplay, which we would have to do to for design reasons.

I'm a bit surprised really, that Flash can't seek forward just a bit 
faster once the FLVs are a bit bigger and better quality than the stuff 
on YouTube etc.

Thanks
Ben


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Re: Line Chart and Line shadows

2007-01-23 Thread g_odds
Set the chart's series filters to an empty array.

mx:LineChart
  ...
  mx:seriesFilters
mx:Array /
  /mx:seriesFilters
/mx:LineChart



--- In flexcoders@yahoogroups.com, Mikhail Shevchuk
[EMAIL PROTECTED] wrote:

 Hello, flexcoders!
 
 Is there any way to disable the shadow line effect in Line Chart
component?
 
 -- 
 A vivid and creative mind characterizes you.





[flexcoders] titleBar event listeners

2007-01-23 Thread Bruce Denham
Trying to add a doubleClick listener to the TitleWindow's title bar
without luck:

public class AgendaItemViewerBase extends TitleWindow
{   
public function AgendaItemViewerBase()
{
addEventListener(FlexEvent.CREATION_COMPLETE, init);
}

private function init(event:FlexEvent):void
{
this.titleBar.addEventListener(MouseEvent.DOUBLE_CLICK,
slideUpDown);   
}

I've had problems adding event listeners here (after
CREATION_COMPLETE) with other items as well. Why?




[flexcoders] Re: Any ideas on customizing labels an gridlines in LinearAxis of LineChart ?

2007-01-23 Thread mgrayfmr
Oh, I should mention that I also figured out how to evenly space the 
labels and also evenly space the gridlines. I used the intervals 
from the AxisLabelCache. Unfortunately, the series data is no longer 
accurate to the tick marks when I do this. It looks good though !!!

Thanks,
Mike

--- In flexcoders@yahoogroups.com, mgrayfmr [EMAIL PROTECTED] wrote:

 Hey Guys- 
 
 I have a line chart with a numeric Y axis that I want to control 
the 
 number of gridlines.
 Usually, this isn't a problem but sometimes lines are not drawn in 
 even intervals.
 My axis data ranges are dynamic.
 For example, I might have a range of percentages from 88% to 100%. 
 With an interval of 2,
 I get horizontal lines at 88%, 90%, 92%, 94%, 96%, 98%, 100%.
 But when the min and max become 87% and 100%, Flex draws axis 
labels 
 for the same range and leaves off a label for 87% because it is 
only 
 an interval of 1 away from 88%
 
 I need for the min and max values to be displayed on the axis when 
 there are uneven intervals.
 I have sub-classed the LinearAxis class to manipulate the 
AxisLabel 
 objects, but I am having a hard time creating even intervals.
 The two best scenarios I have come up with is 
 1) a chart with labels 87% ,90%,. . . 100%, but that leaves a 
larger 
 interval at the bottom of the chart.
 And 2) check for a modulus (means I don't have an even interval), 
 and alternate the intervals 2, than 3, than 2 again.
 This creates uneven gridline intervals, even though the chart is 
 accurately displaying the data
 
 Ideally, I would like to end up with the second style, with 
 alternating intervals, but have the chart rescale so the intervals 
 appear equal.
 Just to let you know, I am copying the functionality of an 
existing 
 Flash Fusion Chart control, so this isn't a completely random idea!
 The Fusion control asks for the number of divlines you want only, 
 and figures it out from there.
 A Flex chart though, as you probably know, takes an interval 
instead.
 
 If anyone has any ideas, or has run into anything like this, 
please 
 let me know !!!
 Thanks - Mike Gray





[flexcoders] Re: Silent Download

2007-01-23 Thread mvbaffa
Hi Tom,

How can I do that 

Thanks
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] 
wrote:

 On Monday 22 January 2007 19:16, mvbaffa wrote:
  In fact Server 2 is a web server located in a Kiosk. The Flex 2 
App
  running at the Kiosk will have to show the movies on demand. So 
the
  movies will be downloaded from server 1 and stored on server 2.
 
 Your best having the Flex app ask the local server to fetch the 
file from the 
 remote server, and call some sort of callback (or poll until 
completed) when 
 it has arrived.
 
 -- 
 Tom Chiverton
 Helping to completely foster 24/365 functionalities
 
 
 
 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 St James's Court Brown Street Manchester M2 
2JF.  A list of members is available for inspection at the registered 
office. Any reference to a partner in relation to Halliwells LLP 
means a member of Halliwells LLP. Regulated by the Law Society.
 
 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 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.





Re: [flexcoders] playing two video simultaneously, seeking too slow especially when playing from dvd

2007-01-23 Thread Abdul Qabiz

Depends, if you are streaming FLVs using Flash Media Server or Red5, you can
do the seek thingy...It's quite cool... But if it's progressive, it all
depends on how much video is downloaded, how much it is buffered, how big
the video is..

Generally seek algorithms are kindda complex.. Also depends on video
encoding, bitrate etc...

One of my colleagues has been doing some research on different ways to
buffer progressive videos...he has come up some algos, I would see if I can
share that with you, no promises though...

Since you are going do deliver your project on optical-disc, it's not about
downloading from internet.. I am sure you can do much better here... just
keep trying different things (playing with numbers, encoding options etc)...

-abdul

On 1/23/07, Benjamin Schwehn [EMAIL PROTECTED] wrote:


Tom Chiverton wrote:
 On Monday 22 January 2007 17:43, Benjamin Schwehn wrote:
 The two FLV typically have sizes between 20 and 200MB each. One is
 encoded with an Flash 7 Codec, the other with the newer Flash 8 On2 VP6
 Codec. (seeking is slow with both codecs)

 Would it be possible to just join the two video files together off line
and
 ship that on the DVD ?

We considered that option, but would like to avoid it because the videos
are not at the same resolution (neither same framerate, but that would
be less of a problem):

Video 1 (typically a lecturer giving a speech) is at 320x240, video 2
(typically PPT Slides, Animations, Films) is at 640x480. Since a joined
video must still be rectangular, it would get quite large, at least
980x480, but in fact even a bit bigger (ca 1040x480, since we would need
some additional space for our layout (the two videos shouldn't be right
next to each other). Those videos would possibly be a bit of a hassle to
generate and handle (and probably quite a bit larger because of the
empty space and because we'd have to use the higher framerate for both
videos). Escpecially as it is a bit of a hassle putting controls on top
of a VideoDisplay, which we would have to do to for design reasons.

I'm a bit surprised really, that Flash can't seek forward just a bit
faster once the FLVs are a bit bigger and better quality than the stuff
on YouTube etc.

Thanks
Ben


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links






RE: [flexcoders] extra line coming from an external text file

2007-01-23 Thread Robert Chyko
http://www.adobe.com/support/documentation/en/flex/2/releasenotes_flex2_
fds.html
 

85034 - TextArea uses UNIX-style line endings, which means that text
data containing Windows-style carriage-return line-feed (that is, \r\n)
formatting for new lines contain extra line breaks. You can use
String.replace() with a regular expression to convert the text to
UNIX-style line endings, as the following example shows:

private static const windowsCRLF:RegExp = /\r\n/gm; 

... 

myTextString = myTextString.replace(windowsCRLF, \n); 
 
 
 
 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of shemeshkale
Sent: Tuesday, January 23, 2007 6:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] extra line coming from an external text
file



hello,
i have made this log watcher for my testing.
it is very basic - loading an external file and putting its
content to a TextArea.
BUT.. for some reason it adds an extra redundant enpty line
after every line - as if the text have two RETURNs  (\n) on every line.
what m i doing wrong?

the condenseWhite on the TextArea is not solving this.

any idea?

here is my code(just point it to your own file):

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=vertical initialize=init()
mx:Script
![CDATA[
import mx.controls.Alert;

private var myTimer:Timer;

private function init():void{
myTimer = new Timer(1000, 0);
myTimer.addEventListener(timer, loadFile);
myTimer.start();
}

private function loadFile(event:TimerEvent):void{
var request:URLRequest = new
URLRequest(D:/Documents and Settings/someusername/Application
Data/Macromedia/Flash Player/Logs/flashlog.txt);
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.TEXT;
loader.addEventListener(Event.COMPLETE,
completeHandler);
try {
loader.load(request);
} catch (error:Error) {
mx.controls.Alert.show(Unable to load file:
 + error);
}

}

private function completeHandler(event:Event):void {
var loader:URLLoader = URLLoader(event.target);
textAR.text = loader.data;
trace(textAR.textHeight);
if(scroll.selected == true)
textAR.verticalScrollPosition = 500;
}

private function stopStart():void{
if(run.selected == true)
myTimer.start();
else if(run.selected == false)
myTimer.stop();
}

]]
/mx:Script
mx:TextArea width=90% height=50% wordWrap=false
id=textAR
verticalScrollPosition=50 editable=false /
mx:CheckBox id=scroll label=scroll /
mx:Button label=clear click=textAR.text='' /
mx:CheckBox id=run label=run selected=true
click=stopStart() /
/mx:Application


http://livedocs.macromedia.com/flex/2/langref/mx/controls/TextArea.html
#condenseWhite 

 



Re: [flexcoders] TextField.embedFont strange behavior

2007-01-23 Thread Daniel Freiman

I hate to ask a stupid question, but are you sure the entire font (or at
least the Latin characters) is embedded?  How are you embedding the font?

- Dan

On 1/23/07, polestar11 [EMAIL PROTECTED] wrote:


  Hi there

I'm getting a strange error when dynamically adding a TF and turning
on the embedFonts property. Without the property turned on, all the
text is displayed, but with embedFonts set to true I only see the text
up to 'ABCDEFGH'. This is very odd behavior, am I missing something
blatantly obvious?

Code:
var fmt:TextFormat = new TextFormat()
fmt.font = Verdana
fmt.color = 0x99

var toc:TextField = new TextField()
toc.antiAliasType = AntiAliasType.NORMAL
toc.autoSize = TextFieldAutoSize.LEFT
toc.selectable = false
toc.multiline = true
toc.defaultTextFormat = fmt
toc.embedFonts = true

Tracy

 



Re: [flexcoders] Flex - ColdFusion data types

2007-01-23 Thread Rachel Maxim

Steve,

The type of data you use with Flex and CF really are best determined by the
data you have and the scope of your project, but you don't have to use XML.
I'd imagine the article you read is either outdated or perhaps was not very
clear in its meaning.

I haven't personally tried calling a CFM page from Flex, I use CFCs and they
work great. If what you read says that you can only use a CFM page for XML,
it's probably because a CFM page doesn't return any data type; but you
could use Flex to load a CFM page that is dynamically generated XML via
HTTP service.

To be honest, it's still probably easier to use a CFC than to load a CFM
page! If you are using CF on the back end, then Remote Objects with AMF are
the easiest way to go, and fast performance-wise. To do this, you use
mx:RemoteObject with the destination set to ColdFusion and the CFC and
method you wish to call as attributes.

If you need to interface with another app server, then Web Services would be
ideal. You don't have to convert CFC or web services results, etc into XML
for Flex to understand them. Flex does a pretty good job with that natively.

HTH
Rachel Maxim

On 1/22/07, Steve Milburn [EMAIL PROTECTED] wrote:


Hello all.

I am very new to Flex so forgive me for the newby questions.

I have been reading about Flex Data Services, Web Services, etc and
working through some examples from Adobe.  My question is when is it
necessary to return the data in XML and when is it ok to return other
datatypes?

If you read in this article by Ben Forta, it states To make the
integration as simple as possible, data types are preserved and
automatically converted to their appropriate equivalent types. If ColdFusion
returns a string, Flash receives a string; if ColdFusion returns a query,
Flash receives an ArrayCollection, and so on.

OK, simple enough.  I have worked through examples that do just that.

However, in another article on Adobe's web site (which I cannot locate now
for the life of me), it stated that Flex only understands XML.  The example
on that page illustrated Flex calling a .cfm template, while the other
examples are calling .cfc components.

Is that the difference?  When Flex calls a .cfm, it must receive XML?  And
when it calls cfc functions it can recieve other data types?

Any clarification on this is appreciated.

Steve




[flexcoders] How to Control an SWF movie

2007-01-23 Thread mvbaffa
Hi All,

How can I control an SWF movie, loaded by SWFLoader, as I do with an 
FLV file, loaded by VideoDisplay. With VideoDisplay I can be notified 
at the end of the movie, Cuepoints etc. 

I could not find events triggered by the SWFLoader control to monitor 
it's execution. Is there a way to do this 

Thanks in advance




Re: [flexcoders] playing two video simultaneously, seeking too slow especially when playing from dvd

2007-01-23 Thread Benjamin Schwehn
Abdul Qabiz wrote:
 Hi,
 
 1. Is it possible to force the flash player to just load both videos
 into main memory (or PageFile) at start up?
 
 
 You can set the buffer-time to a large number, 

Thanks Abdul,

I entirely overlooked this property!

Interestingly when setting this property to a very large value, initial 
load only gets slow for the film encoded with the older sorenson codec. 
Initial load is 90 seconds for a  70MB/23 minutes film when trying to 
buffer it completely (just for testing purposes) from harddrive, not 
dvd). I'm not sure why it takes so long, since neither CPU nor disk 
access time seem to be the bottleneck.

The VP6 encoded film loads very fast, even when bufferTime is set to 
totalTime.

Anyways, first tests show good results when buffering only the VP6 film. 
At least for small films that can be buffered entirely. Well, I guess 
I'll have to play around a bit more, probably re-encode all films to 
VP6, but this definitely helped, thanks!

  Generally seek algorithms are kindda complex.. Also depends on video
  encoding, bitrate etc...

Well, I kind of thought that seeking should be very fast for constant 
bitrate (cbr) encoded videos. I believe the VP6 codec is alway cbr. 
After all, for cbr vids, it should be trivial to calculate the exact 
file offset for any given frame. Then readhead positioning should only 
take a few milliseconds for HDDs and a couple 100 ms for DVDs.

For vbr things get potentially more complicated, I believe most codecs 
just generate a keyframe - offset table which is loaded before 
playback and enables fast (keyframe-) seeking.

Anyways, thanks again for your help!

Ben










RE: [flexcoders] Re: Please Help - Components, States, Transitions

2007-01-23 Thread David Terry
Thank you Stephen.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stephen Gilson
Sent: Tuesday, January 23, 2007 7:17 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Please Help - Components, States, 
Transitions



It is covered in the doc in the chapter on the Application container:
 
http://livedocs.macromedia.com/flex/201/html/app_container_064_09.html
http://livedocs.macromedia.com/flex/201/html/app_container_064_09.html

 
Stephen



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Monday, January 22, 2007 6:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Please Help - Components, States, 
Transitions



I'm on the Flex framework team in San Francisco. Glad to be of help.

I'm not sure where (if?) this is covered in our doc set. Where would you
expect to look?

- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Terry
Sent: Monday, January 22, 2007 2:39 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Please Help - Components, States, 
Transitions

GORDON!

Where the hell are you in the country?  I'm coming to kiss you.  :)~

J/K

But really, thank you!!!

When you are just starting out in a language, the simplest things are
the hardest.  I've been coding C++, VB, C#, VB.NET for 12 years (3 on
the later), but learning this - has been like jumping into the abyss.

Thanks again.

~David T.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Monday, January 22, 2007 4:07 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Please Help - Components, States, 
Transitions

It sounds like what you really want to know is If I have component B
inside of component (or application) A, how can ActionScript code in B
access A's properties and methods? (Setting the currentState property
of the app from one of its components is simply a special case of this.)

The answer is by using the parentDocument property.

- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Terry
Sent: Monday, January 22, 2007 1:35 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Please Help - Components, States, 
Transitions

If it was that simple I would not be asking for help.

I can figure out how to change state when all controls are in the same
application, but I can't figure out how to make a custom control
change the state of the parent.

If the comp:Login control has the register button, and this is the
'parent' page, how does the 'login' tell the parent to change to the
'Register' state?

~David T.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  layout=absolute
xmlns:comp=assets.components.* currentState=Login

 mx:Style source=../assets/css/main.css/

 mx:states
  mx:State name=Register
   mx:AddChild position=lastChild
comp:signup1 horizontalCenter=0 verticalCenter=0/
   /mx:AddChild
  /mx:State
  mx:State name=Login
   mx:AddChild position=lastChild
comp:login horizontalCenter=0 verticalCenter=0
/comp:login
   /mx:AddChild
  /mx:State
 /mx:states

/mx:Application



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of theduderino82
Sent: Monday, January 22, 2007 3:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Please Help - Components, States, 
Transitions

It's really much more simple then you think. There are some good
tutorials on the flex start page. Just type in the search transition
or state.

 


[flexcoders] Re: FDS createItem - how to find ID of inserted record?

2007-01-23 Thread sunilpatel_10
Thans Olivier for the reply. However, I am using Hibernate, FDS and
Flex 2.0 with MySQL - Much like the CRM sample application with
Hibernate. I didn't write my own DAO. The canvas has dept code, dept
name, emp first name, emp last name. On click of save, I want to save
dept info in DEPT table (ID, CODE, NAME) and EMP info in EMP table
(ID, DEPT_ID, FNAME, LNAME) with EMP.DEPT_ID as new DEPT.ID - the code
looks something like this - 

dept = new Dept();
dept.code = fcode.text;
dept.name = fname.text;
var ir:ItemReference = dataServiceDEPT.createItem(dept);
dataServiceDEPT.commit();

emp =new Emp();
emp.dept = dept;
emp.fname = ffname.text;
emp.lname = flname.text;
dataServiceEMP.createItem(emp);
dataServiceEMP.commit();

This code creates a new DEPT but not an EMP record. Help !!!

Thanks

--- In flexcoders@yahoogroups.com, Stembert Olivier (BIL)
[EMAIL PROTECTED] wrote:

 Hi,
 
 You should set the id in your dao class.
 Here is an example with a dao using Spring:
 
 public void create(Dept dept) throws DataAccessException
 {
 String sql = ...
 NamedParameterJdbcTemplate template = new
 NamedParameterJdbcTemplate(this.getDataSource());
 MapSqlParameterSource namedParameters = new MapSqlParameterSource();
 ...
 template.update(sql, namedParameters);
 int id = getJdbcTemplate().queryForInt(call identity());
 dept.setDeptId(id);
 
 }
 
 Regards,
 
 Olivier
 
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of sunilpatel_10
 Sent: Saturday, January 20, 2007 2:25 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] FDS createItem - how to find ID of inserted
 record?
 
 
 
 Hi,
 
 I have a page where I capture DEPT and EMP data. On click of a button
 I want to save DEPT record and all the EMP records with ID of newly
 created DEPT as a parent. I use FDS, hibernate and db generated IDs.
 The problem I am facing is how do I get the ID of DEPT record created
 by createitem() and access it to assign this DEPT as a parent of EMP
 records that I want to create? If I examine ID of dept object used in
 createitem after FDS commit(), it is still 0. Appreciate your help.
 
 
 
  
 
 -
 
 An electronic message is not binding on its sender.
 
 Any message referring to a binding engagement must be confirmed in
 writing and duly signed.
 
 -
 
  
 
 
 -
 An electronic message is not binding on its sender.
 Any message referring to a binding engagement must be confirmed in
writing and duly signed.
 -





[flexcoders] FDS

2007-01-23 Thread darvon4u
Hello everybody,

Is there anything other than WebORB out there for .net connectivity? 
We are looking to use reliable/realtime messaging services, and it 
appears that other than java or coldfusion the options are limited.
Now, this has to be connected and realtime, so WebService approach is 
out of the question. We can't do polling either because of the delay 
and heavy requests (want to notify the client whenever data is updated 
vs. polls every seconds).

Is there any other framework out there that will let us integrate flex 
and FDS with a .net backend? Or even any code examples to point in the 
right directions? We're working with C# currently.

Thank you in advance for any pointers, I'm pretty new to this and it 
looks like flex has a ton of potential, just don't want to write our 
own tcp server from scratch :(

Thank you!
-A



Re: [flexcoders] Re: Is Flash a single thread application?

2007-01-23 Thread Shannon Hicks
So maybe this would be the area causing some of us to get Connection 
already in use errors in the flash player when we have more than one 
flex application open?


Shan

ben.clinkinbeard wrote:


I don't know of any specific documents, but just to clarify, in
addition to Abdul's comment: Flash Player is single threaded except in
the case of remote calls. Remote calls are always asynchronous by way
of spinning off a separate thread. Not sure about any limits on the
number of threads that can be opened in that fashion.

HTH,
Ben

--- In flexcoders@yahoogroups.com 
mailto:flexcoders%40yahoogroups.com, saha.prasanta [EMAIL PROTECTED]

wrote:

 Hi,


 I've read in some forum that Flash is a single thread application.
 I tried to find some document supporting that statement, But I
 couldn't find any document by Adobe or Macromedia regarding that.


 Could you plase help me by forwarding the of such article. I need that
 as a proof for one of my project.


 Warm regards,

 Prasanta Saha,
 Flash Developer,
 Hyderabad, Indaia


 




[flexcoders] Sending XMLListCollection with HTTPService

2007-01-23 Thread darylgmyers
I am trying to send an XMLListCollection with HTTPService 
using .toXMLString().  The xml appears to be getting escaped - lt, 
quot, etc.  Does anyone know how to do this?



[flexcoders] Re: Is Flash a single thread application?

2007-01-23 Thread parkerwhirlow
Events are not fired concurrently. They are fired in order of their
listener priority. See the following documentation on
addEventListener function
http://livedocs.macromedia.com/flex/2/langref/flash/events/EventDispatcher.html#addEventListener()

By default, priority is '0' for user added events, so they will fire
in the order added. There's some constants defined in the
EventPriority class that the framework uses when adding event
listeners for things such as Bindings, Effects, etc. 

Hope this helps.
PW

--- In flexcoders@yahoogroups.com, Cameron Bahan [EMAIL PROTECTED] wrote:

 Flash does seems to be single-threaded.  However, one should be  
 careful as events are fired concurrently.  I have run into a few  
 issues regarding concurrency and shared data.  So far the only  
 solutions that I have heard is to write a custom locker class using  
 a boolean lock.  Has anyone else experienced this?  How have you  
 solved it?
 
 CS Bahan
 Lead Software Engineer
 
 On Jan 23, 2007, at 4:31 AM, saha.prasanta wrote:
 
  Hi,
 
  I've read in some forum that Flash is a single thread application.
  I tried to find some document supporting that statement, But I
  couldn't find any document by Adobe or Macromedia regarding that.
 
  Could you plase help me by forwarding the of such article. I need that
  as a proof for one of my project.
 
  Warm regards,
 
  Prasanta Saha,
  Flash Developer,
  Hyderabad, Indaia
 
 
 





[flexcoders] Cynergy Adobe Sponsor Full Day Flex Track @ AjaxWorld NYC

2007-01-23 Thread Dave Wolf
I wanted to let everyone know that Cynergy and Adobe have teamed up to
become Platinum Sponsors for AjaxWorld 2007 in NYC on March 19th-21st.
 As part of the overall AjaxWorld 2007 show, Cynergy and Adobe are
creating an entire day of tracks dedicated totally to Flex design,
development and deployment.  If Flex is on your radar, this is not
something you're going to want to miss. Mark it down on your calendar
and start talking to your bosses today.  This is without question one
of the preeminent RIA shows of the year and between Cynergy  Adobe we
are going to make sure it screams Flex from every corner.

We'd love to meet you so be sure and stop by our booth or just grab
any of us during the conference. Just look for the Cynergy red shirts
and make sure to say hi!

For more information check out Cynergy:

http://www.cynergysystems.com/blogs/page/carsonhager?entry=cynergy_and_adobe_co_sponsor
http://www.cynergysystems.com/news/2007-01-18.jsp

Or Sys-Con:

http://ajax.sys-con.com/read/325001.htm
http://linux.sys-con.com/read/324931.htm

Or to register go to the AjaxWorld 2007 site at:

http://www.ajaxworld.com

-- 
Dave Wolf
Cynergy Systems, Inc.
Adobe Flex Alliance Partner
http://www.cynergysystems.com
http://www.cynergysystems.com/blogs

Email:  [EMAIL PROTECTED]
Office: 866-CYNERGY




[flexcoders] Re: non visible fields in data grid are displaying

2007-01-23 Thread parkerwhirlow
I have seen other posts recently regarding this. Search for 2.0.1 in
recent past, and you'll find some others with this issue. I personally
have not seen it.

good luck,
PW

--- In flexcoders@yahoogroups.com, Shelley Browning
[EMAIL PROTECTED] wrote:

 Hello,
  
 I've been building an application that utilizes data grids.  For some
 reason the fields that are set visible=false are displaying when the
 data is populated using a data collection and data is updated. This just
 started occurring when I did the updated with Flex Builder.  Anyone else
 see this?  If so what did you do to correct?
  
 mx:DataGrid id=gridEmployees dataProvider={searchCollection}
 width=90% height=100%
   mx:columns
mx:DataGridColumn headerText=Emp No dataField=EmpNo
 width=60 /
mx:DataGridColumn headerText=Name dataField=Name /
mx:DataGridColumn headerText=Job Title dataField=JobTitle/
mx:DataGridColumn headerText=PersonID dataField=PersonID
 visible=false/
mx:DataGridColumn headerText=PersonUUID dataField=PersonUUID
 visible=false/
   /mx:columns
  /mx:DataGrid
  
 Thanks,
  
 Shelley Browning
 Intermountain Healthcare





[flexcoders] flex.messaging.config.ConfigurationException. ???10101-details???

2007-01-23 Thread sgrosven2
I've got a Flex 2 / FDS project that I'm trying to stage to an 
interim deployment environment.  

On the developer side, I've set up the FDS access as a 'compile 
locally'.   I can keep my AS/MXML files separate from the server-
side FDS app, which I like for general organization purposes.

This therefore only  deploys the compiled SWF files to the server-
side.  For at least interim deployment (ie to an independent 
server, not developers desktop, but no full client access either), I 
want to also have the AS/MXML deployed... and be able to run from 
browser either by referencing the html wrapper around the SWF... or 
an mxml application.

I've tried just copying the AS/MXML files to the server side (under 
webapps/{flexds}/{appname}  (where {flexds} is the Flex DS webapp, 
and {appname} is project subdirectly that already gets the SWF/HTML 
files.

When I try to call up an mxml, {host}/{flexds}/{appname}/
{mainapp}.mxml... I get the subjet line configurationexception.

It appears to be trying to compile the .mxml file, so its finding it 
and its engaging the server side flex compiler... but beyond that I 
have not idea whats wrong.

Anyone else had this problem and solved it?
thanx much




[flexcoders] Holy crap, Flex 3.0 is going to be at 360Flex

2007-01-23 Thread lar.drolet
http://www.powersdk.com/ted/

I am only now getting into version 2.0.1 with mild success, feel as if
I have not touched on all that can be done, far from it.  Now I am
really glad I signed up for that conference, be nice to see what Adobe
has planned.  

Any guesses as to what more they could add?  

Some of my guesses:
More components
Better modularity
More/better support for Apollo

The article did say it will be released when the Flash 9 player hits
90% penetration, so that may be before the end of the year I guess. 
Bring it on!

LD



[flexcoders] Re: FDS createItem - how to find ID of inserted record?

2007-01-23 Thread sunilpatel_10
Thanks Olivier for the reply. However, I am using Hibernate, FDS and
Flex 2.0 with MySQL - Much like the CRM sample application with
Hibernate. I didn't write my own DAO. The canvas has dept code, dept
name, emp first name, emp last name. On click of save, I want to save
dept info in DEPT table (ID, CODE, NAME) and EMP info in EMP table
(ID, DEPT_ID, FNAME, LNAME) with EMP.DEPT_ID as new DEPT.ID - the code
looks something like this -

dept = new Dept();
dept.code = fcode.text;
dept.name = fname.text;
var ir:ItemReference = dataServiceDEPT.createItem(dept);
dataServiceDEPT.commit();

emp =new Emp();
emp.dept = dept;
emp.fname = ffname.text;
emp.lname = flname.text;
dataServiceEMP.createItem(emp);
dataServiceEMP.commit();

This code creates a new DEPT but not an EMP record. Help !!!

Thanks

--- In flexcoders@yahoogroups.com, Stembert Olivier (BIL)
[EMAIL PROTECTED] wrote:

 Hi,
 
 You should set the id in your dao class.
 Here is an example with a dao using Spring:
 
 public void create(Dept dept) throws DataAccessException
 {
 String sql = ...
 NamedParameterJdbcTemplate template = new
 NamedParameterJdbcTemplate(this.getDataSource());
 MapSqlParameterSource namedParameters = new MapSqlParameterSource();
 ...
 template.update(sql, namedParameters);
 int id = getJdbcTemplate().queryForInt(call identity());
 dept.setDeptId(id);
 
 }
 
 Regards,
 
 Olivier
 
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of sunilpatel_10
 Sent: Saturday, January 20, 2007 2:25 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] FDS createItem - how to find ID of inserted
 record?
 
 
 
 Hi,
 
 I have a page where I capture DEPT and EMP data. On click of a button
 I want to save DEPT record and all the EMP records with ID of newly
 created DEPT as a parent. I use FDS, hibernate and db generated IDs.
 The problem I am facing is how do I get the ID of DEPT record created
 by createitem() and access it to assign this DEPT as a parent of EMP
 records that I want to create? If I examine ID of dept object used in
 createitem after FDS commit(), it is still 0. Appreciate your help.
 
 
 
  
 
 -
 
 An electronic message is not binding on its sender.
 
 Any message referring to a binding engagement must be confirmed in
 writing and duly signed.
 
 -
 
  
 
 
 -
 An electronic message is not binding on its sender.
 Any message referring to a binding engagement must be confirmed in
writing and duly signed.
 -





[flexcoders] Printing

2007-01-23 Thread loisgh
Hi All, 

Does anyone know how you can control font size in Flex 2 printing? 

Thanks

Lois


[flexcoders] ChartElement Effect

2007-01-23 Thread g_odds
I have an extension of ChartElement that draws what amounts to a
little flag on the parent chart.  What I have so far been unable to do
is to get it to use a Resize effect when you click on it.  I have
managed to get other effects to play on it but that one does not seem
to do anything.

The updateDisplayList function has the following lines to draw the
chart element:
graphics.moveTo(point.x,point.y);
graphics.beginFill(0x96CEFD,.6);
graphics.lineStyle(2,0x017C98);
graphics.lineTo(point.x , point.y - 30);
graphics.lineTo(point.x + 25, point.y - 30);
graphics.lineTo(point.x + 25, point.y - 15);
graphics.lineTo(point.x , point.y - 15);
graphics.endFill();

Any suggestions for how to get a resize effect on it?



Re: [flexcoders] Re: FDS createItem - how to find ID of inserted record?

2007-01-23 Thread Mikey
is your emp id set as an auto increment?

Re: [flexcoders] Re: DateField - is there a way to limit the amount of input allowed?

2007-01-23 Thread Tom Chiverton
On Tuesday 23 January 2007 13:45, Libby wrote:
 Anybody? As far as I can tell, DateField doesn't take a maxChars
 property, which would be the logical solution.

 --- In flexcoders@yahoogroups.com, Libby [EMAIL PROTECTED] wrote:
  I used a keyboard listener to keep track of the length of the text
  entered, but Flex ignores my demands to preventDefault() and/or
  stopImmediatePropagation(). Does anyone have the secret they could

Can you be clearer about what you want to achieve ?
For instance, I've never heard of those two methods, and so have no idea how 
they relate to what seems a fairly simple case of using a key press handler 
to truncate a form field.

-- 
Tom Chiverton
Helping to assertively maintain exceptional methodologies



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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Re: Rotate Datagrid Headers

2007-01-23 Thread Tim Hoff

Dana:

It doesn't look like it works when you use fontWeight: normal.  If you
use the bold version of the font (copy verdanab.ttf to assets) and make
the following subtle changes, you should be good to go.

mx:Style
  @font-face {
  src:url(assets/verdanab.ttf);
  fontFamily: MyFont;
  fontWeight: bold;
  }
  .myStyle1{
  fontFamily:MyFont;
  fontSize:12pt;
  }
/mx:Style

-TH
__

Tim Hoff
Cynergy Systems, Inc.
http://www.cynergysystems.com
Office http://www.cynergysystems.comoffice/ : 866-CYNERGY

--- In flexcoders@yahoogroups.com, Dana Gutride [EMAIL PROTECTED] wrote:

 Tim:

 Thanks for the response. I neglected to mention that I have been
attempting
 to use a headerrenderer. I've created it both inline and in a separate
 component and still nothing. This code below illustrates what I've
been
 attempting to do, am I missing something?

 Thanks,
 Dana

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 mx:Style
 @font-face {
 src: url(assets/verdana.ttf);
 fontFamily: MyFont;
 }
 .myStyle1{fontFamily:MyFont; fontSize:12pt}
 /mx:Style
 mx:DataGrid id=rootDataGrid width=100% height=100%
 headerHeight=300 
 mx:columns
 mx:Array
 mx:DataGridColumn dataField=Name width=100
 headerText=Host Name /
 mx:DataGridColumn headerText=City dataField=city
 mx:headerRenderer
 mx:Component
 mx:VBox horizontalAlign=center
 mx:Text
 text={ this.data.headerText }

 rotation=90
 styleName=myStyle1/
 /mx:VBox
 /mx:Component
 /mx:headerRenderer
 /mx:DataGridColumn
 /mx:Array
 /mx:columns
 /mx:DataGrid
 /mx:Application


 On 1/23/07, Tim Hoff [EMAIL PROTECTED] wrote:
 
  Hi Dana,
 
  A real easy way to do this would be to use a headerRenderer for the
  DataGrid columns.
 
  Inline:
 
  mx:DataGrid id=dg height=300 width=300 headerHeight=60
  dataProvider={ myDataProvider }
  mx:columns
  mx:Array
  mx:DataGridColumn width=160 headerText=City
  dataField=city
  mx:headerRenderer
  mx:Component
  mx:VBox horizontalAlign=center
  mx:Text
  text={ this.data.headerText }
  rotation=90
 
  styleName=myEmbeddedFontStyleName/
  /mx:VBox
  /mx:Component
  /mx:headerRenderer
  /mx:DataGridColumn
  /mx:Array
  /mx:columns
  /mx:DataGrid
 
  Or, if you want to reuse the headerRenderer, create a component:
 
  mx:DataGrid id=dg height=300 width=300 headerHeight=60
  dataProvider={ myDataProvider }
  mx:columns
  mx:Array
  mx:DataGridColumn width=160
  headerRenderer=RotatedHeaderRenderer
  headerText=City
  dataField=city/
  mx:DataGridColumn width=160
  headerRenderer=RotatedHeaderRenderer
  headerText=State
  dataField=state/
  /mx:Array
  /mx:columns
  /mx:DataGrid
 
  RotatedHeaderRenderer.mxml
 
  ?xml version=1.0 encoding=utf-8?
  mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml;
  horizontalAlign=center
  mx:Text
  text={ this.data.headerText }
  rotation=90
  styleName=myEmbeddedFontStyleName/
  /mx:VBox
 
  -TH
  __
 
  *Tim Hoff
  *Cynergy Systems, Inc.
  http://www.cynergysystems.com http://www.cynergysystems.comoffice/
  Office: 866-CYNERGY
 
  --- In flexcoders@yahoogroups.com, Dana Gutride dgutride@ wrote:
  
   Hi,
  
   After much searching, I haven't found a satisfactory answer to
this
   question. I'm trying to rotate the headers of my datagrid so they
are
   completely vertical. I've embedded the font successfully and can
rotate
  any
   other piece of text in my app, but when I attempt to rotate the
text in
  the
   datagrid header, it keeps disappearing. I've used both the
rotation
   property and created a rotate effect, but to no avail. I think it
might
   have to do with the x and y of the text. Any ideas?
  
   Thanks,
   Dana
  
 
 
 





Re: [flexcoders] Re: Silent Download

2007-01-23 Thread Tom Chiverton
On Tuesday 23 January 2007 14:07, mvbaffa wrote:
 How can I do that 

Do which bit ?
It might also help if you explain any experience you have with server side 
code.

-- 
Tom Chiverton
Helping to ambassadorially build leading-edge portals



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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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 8008.

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Re: DateField - is there a way to limit the amount of input allowed?

2007-01-23 Thread Libby
I have a DateField in which editing is allowed. I want to prevent the
user from typing more than x characters since x + 1 characters
will not represent a valid date to my application. In other
programming languages my keypress handler would allow me to consume
the event, effectively putting a stop to typing beyond a certain
length. How can I do this in Flex, as so far my attempts at stopping
the event propagation have been ignored by the Flash player?

Thanks,
Libby

--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED]
wrote:

 On Tuesday 23 January 2007 13:45, Libby wrote:
  Anybody? As far as I can tell, DateField doesn't take a maxChars
  property, which would be the logical solution.
 
  --- In flexcoders@yahoogroups.com, Libby libbychantel@ wrote:
   I used a keyboard listener to keep track of the length of the text
   entered, but Flex ignores my demands to preventDefault() and/or
   stopImmediatePropagation(). Does anyone have the secret they could
 
 Can you be clearer about what you want to achieve ?
 For instance, I've never heard of those two methods, and so have no
idea how 
 they relate to what seems a fairly simple case of using a key press
handler 
 to truncate a form field.
 
 -- 
 Tom Chiverton
 Helping to assertively maintain exceptional methodologies
 
 
 
 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 St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
 
 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 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.





[flexcoders] Re: Style Bug?

2007-01-23 Thread potentialunfounded
Keep the Panel styling, switch ApplicationControlBar to ControlBar in
the MXML with no styling applied to it.

The styling may not work for an ApplicationControlBar because of the
way you are using it. Maybe it's not meant to be used in a Panel like
that.

Juan
scalenine.com

mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=448
height=294 
mx:Panel width=422 height=257 layout=absolute
title=Login horizontalCenter=0 verticalCenter=-3.5 
mx:Image x=10 y=29 source=assets/images/lock.jpg/ 
mx:Form x=111 y=58 
mx:FormItem label=User Name required=true 
mx:TextInput/ 
/mx:FormItem 
mx:FormItem label=Password required=true 
mx:TextInput/ 
/mx:FormItem 
/mx:Form 
mx:Text x=111 y=17 text=Please login for access
to the Digital Publishing System, or register to join. width=272
height=35/

mx:ControlBar x=100 y=143 height=50 
mx:HBox width=50% horizontalGap=8 
mx:Button id=btnRegister
label=Register click=parentDocument.currentState='Register'/

/mx:HBox 
mx:HBox width=50% horizontalGap=8
horizontalAlign=right 
mx:Button id=btnLogin label=Login
click=parentDocument.currentState='Main'/ 
/mx:HBox 
/mx:ControlBar 
/mx:Panel 
/mx:Canvas

--- In flexcoders@yahoogroups.com, David Terry [EMAIL PROTECTED] wrote:

 Hi Guys,
 
 I'm not sure if I'm doing something wrong or if I've found a bug.
 
 I have a MXML Component (Login Screen) that contains an
 'ApplicationControlBar' within a 'Panel'.
 
 mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=448
 height=294
   mx:Panel width=422 height=257 layout=absolute
 title=Login horizontalCenter=0 verticalCenter=-3.5
   mx:Image x=10 y=29
 source=assets/images/lock.jpg/
   mx:Form x=111 y=58
   mx:FormItem label=User Name required=true
   mx:TextInput/
   /mx:FormItem
   mx:FormItem label=Password required=true
   mx:TextInput/
   /mx:FormItem
   /mx:Form
   mx:Text x=111 y=17 text=Please login for access to
 the Digital Publishing System, or register to join. width=272
 height=35/
   mx:ApplicationControlBar x=100 y=143 height=50
   mx:HBox width=50% horizontalGap=8
   mx:Button id=btnRegister
 label=Register click=parentDocument.currentState='Register'/
   /mx:HBox
   mx:HBox width=50% horizontalGap=8
 horizontalAlign=right
   mx:Button id=btnLogin label=Login
 click=parentDocument.currentState='Main'/
   /mx:HBox
   /mx:ApplicationControlBar 
   /mx:Panel
 /mx:Canvas
 
 If I use a global style for the 'ApplicationControlBar' and the
 'Panel'...
 
 ApplicationControlBar {
cornerRadius: 14;
dropShadowEnabled: false;
borderStyle: none;
fillColors: #e7e7e7, #d9d9d9;
 }
 
 Panel { 
cornerRadius: 14;
headerHeight: 40;
dropShadowEnabled: true;
shadowDistance: 0;
roundedBottomCorners: true;
textAlign: left;
borderThicknessLeft: 0;
borderThicknessRight: 0;
borderThicknessTop: 0;
borderThicknessBottom: 0;
headerColors: #e7e7e7, #d9d9d9;
footerColors: #e7e7e7, #d9d9d9;
titleStyleName: myTitleStyle;
 } 
 
 The bar looks correct, but if I remove the 'ApplicationControlBar'
 global style and change to a custom style (notice the styles are the
 exactly same)...
 
 .myAppBar {
cornerRadius: 14;
dropShadowEnabled: false;
borderStyle: none;
fillColors: #e7e7e7, #d9d9d9;
 }
 
 And add the styleName=myAppBar tag to the 'ApplicationControlBar' the
 display looks off.
 
 Also...  Why does the global style override a custom style.  What I mean
 is.  Why can't I have both a global style and a custom style in the same
 application?  I would think if you set a global style for the
 'ApplicationControlBar' it would use that style UNLESS you have a
 styleName defined.
 
 Where am I going wrong?
 
 Enclosed is a screenshot.
  style.jpg 
 
 ~David T.





[flexcoders] Re: non visible fields in data grid are displaying

2007-01-23 Thread jmfillman
I have had this same problem. I did a search on the Adobe message 
boards and found a post from an Abode person saying it was a problem, 
but had been fixed internally in Adobe and would be resolved in an 
upcoming hotfix. No date was listed for the fix though.

--- In flexcoders@yahoogroups.com, parkerwhirlow 
[EMAIL PROTECTED] wrote:

 I have seen other posts recently regarding this. Search for 2.0.1 in
 recent past, and you'll find some others with this issue. I 
personally
 have not seen it.
 
 good luck,
 PW
 
 --- In flexcoders@yahoogroups.com, Shelley Browning
 shelley.browning@ wrote:
 
  Hello,
   
  I've been building an application that utilizes data grids.  For 
some
  reason the fields that are set visible=false are displaying 
when the
  data is populated using a data collection and data is updated. 
This just
  started occurring when I did the updated with Flex Builder.  
Anyone else
  see this?  If so what did you do to correct?
   
  mx:DataGrid id=gridEmployees dataProvider={searchCollection}
  width=90% height=100%
mx:columns
 mx:DataGridColumn headerText=Emp No dataField=EmpNo
  width=60 /
 mx:DataGridColumn headerText=Name dataField=Name /
 mx:DataGridColumn headerText=Job Title 
dataField=JobTitle/
 mx:DataGridColumn headerText=PersonID 
dataField=PersonID
  visible=false/
 mx:DataGridColumn headerText=PersonUUID 
dataField=PersonUUID
  visible=false/
/mx:columns
   /mx:DataGrid
   
  Thanks,
   
  Shelley Browning
  Intermountain Healthcare
 





[flexcoders] Cairngorm web service not getting results

2007-01-23 Thread achegedus
I have a small login app that is calling a web service to determine if
the login is valid.  The web service currently only returns a string.

Here is the code:

in Services.mxml
mx:WebService id=Service
wsdl=http://localhost/GSSData/service.asmx?WSDL;
showBusyCursor=true
useProxy=false
makeObjectsBindable=false
/mx:WebService

in LoginDelegate.as:

public function login (loginVO:LoginVO):void{
service.loadWSDL();

DebugWindow.debug(service.wsdl:  + service.wsdl.toString());
var token:AsyncToken = service.login(loginVO.username,
loginVO.password);
DebugWindow.debug(After login: + 
token.result.toString());
token.addResponder(responder);
}


My problem is that I am seeing the web service get called and the
response is returned, but it doesn't seem like my app is taking the
response.  When I try to view the response in my debug window i get an
error:  

TypeError: Error #1009: Cannot access a property or method of a null
object reference.

as though the web service isn't returning a value.  I'm totally at a
loss here, I'm trying to learn Cairngorm, but i'm really struggling. 
I basically am trying to rework this sample app: 

http://www.alex-uhlmann.de/flash/adobe/blog/cairngormlogin/CairngormLogin.html

to use a web service and I having little to no success.  can anyone
see what I'm doing wrong?

Thanks,
A





[flexcoders] Job in Maine

2007-01-23 Thread Russell Sprague
My company, Infusion Studios, Inc,(www.infusion-studios.com) located in 
Gorham Maine just north of Portland, is looking to build a network of 
Flash/Flex and/or 3D freelancers that we can call on from time to time.
If you are a freelancer that would like to be on our list, send your 
resume, examples, and pricing info to
info(at)infusion-studios.com - Please specify you would like to be 
freelance.
(we have a spam filter on our server, so you will have to fill out the 
verification email)...


We are also looking for a part time employee.
The job requirements are:
Design skills
Web site development skills, both Flash and HTML
Fireworks/Photoshop skills.
Flash and AS 2 skills.
Should have some knowledge of OOP.
Flex 2 and AS3 knowledge - you don't have to be a pro, just know what is 
going on.

Coldfusion knowledge is helpful.
knowledge and experience in 3D studios Max, or a strong desire to learn.
Maya knowledge will work as well, or other 3D packages if will to 
transfer knowledge to 3D Max.
Video compositing knowledge.  We use Combustion, but also have After 
Effects.


tasks would include:
Maintenance of current Flash sites.
Building new sites, both Flash and HTML.
Helping to design and build Flex apps.
Playing video games.

So basically we are look for someone to do it all.
We would like to have someone in house, but it may be possible to work 
remotely.

Pay will depend on experience, etc.
Send us your info - info(at)infusion-studios.com

thanks
Russ Sprague


Re: [flexcoders] Holy crap, Flex 3.0 is going to be at 360Flex

2007-01-23 Thread Daniel Wabyick

Whoah, wait for the world to catch up to Flex 2!  ;-)   I will 
definitely be in attendance at 360Flex !

-D


lar.drolet wrote:

 http://www.powersdk.com/ted/ http://www.powersdk.com/ted/

 I am only now getting into version 2.0.1 with mild success, feel as if
 I have not touched on all that can be done, far from it. Now I am
 really glad I signed up for that conference, be nice to see what Adobe
 has planned.

 Any guesses as to what more they could add?

 Some of my guesses:
 More components
 Better modularity
 More/better support for Apollo

 The article did say it will be released when the Flash 9 player hits
 90% penetration, so that may be before the end of the year I guess.
 Bring it on!

 LD

  



[flexcoders] Re: Silent Download

2007-01-23 Thread mvbaffa
Thanks Tom,

I have a very good experience with the server side code. Specially 
in .NET. My Services are written in C#, with Fluorine.

Maybe I have to explain better my problem:

My application originally was designed to stream Flash Video Files. 
So The Kiosk would have only a browser. The application, services and 
SQL Server would be hosted in a contracted provider. The problem is 
that the cost for streaming was very high and it was not possible to 
used it.

So I am looking for another solution. 

My objective is to maintain the Kiosk functionally as thinner as I 
can. So I decided to install a web server on the Kiosk, with the Flex 
App running locally and maintain SQL Server and the services at the 
contracted provider. 

I understand that Kiosk App could call a local service asking to 
download the necessary FLV files but this solution would include more 
functionality at the client, and want to avoid it.

If there is not a better solution I beleive I will have to use this 
one, at least until Appollo is released.

Thank you very much Tom


--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] 
wrote:

 On Tuesday 23 January 2007 14:07, mvbaffa wrote:
  How can I do that 
 
 Do which bit ?
 It might also help if you explain any experience you have with 
server side 
 code.
 
 -- 
 Tom Chiverton
 Helping to ambassadorially build leading-edge portals
 
 
 
 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 St James's Court Brown Street Manchester M2 
2JF.  A list of members is available for inspection at the registered 
office. Any reference to a partner in relation to Halliwells LLP 
means a member of Halliwells LLP. Regulated by the Law Society.
 
 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 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.





RE: [flexcoders] Holy crap, Flex 3.0 is going to be at 360Flex

2007-01-23 Thread João Fernandes
I wonder if all those crazy improvements that Manish talks on his blog will
be part of it…

 

João Fernandes

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel Wabyick
Sent: 23 January 2007 17:34
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Holy crap, Flex 3.0 is going to be at 360Flex

 


Whoah, wait for the world to catch up to Flex 2! ;-) I will 
definitely be in attendance at 360Flex !

-D

lar.drolet wrote:

 http://www.powersdk.com/ted/ http://www.powersdk.com/ted/

 I am only now getting into version 2.0.1 with mild success, feel as if
 I have not touched on all that can be done, far from it. Now I am
 really glad I signed up for that conference, be nice to see what Adobe
 has planned.

 Any guesses as to what more they could add?

 Some of my guesses:
 More components
 Better modularity
 More/better support for Apollo

 The article did say it will be released when the Flash 9 player hits
 90% penetration, so that may be before the end of the year I guess.
 Bring it on!

 LD

 

 



Re: [flexcoders] AMFPHP Service Browser SVN

2007-01-23 Thread Kevin
I have my SVN located on a completely separate server (with a hosted  
SVN company).  I am running AMFPHP on a localserver in my office.  I  
would like to point the gateway to a services folder on the SVN.  I  
modified the 'setBaseClass' variable in the gateway to point to the  
URL of the folder on the SVN, but it didn't work when I tried to run  
the services browser:


External server:
SVN - services folder (includes amfphp/DiscoveryService.php which I  
uploaded to the SVN)


Local server:
AMPHP files  AMFPHP Service Browser

Can this work???

thanks, kevin



On Jan 20, 2007, at 7:15 PM, Patrick Mineault wrote:


Could you expand on what your setup is like? The Apache htdocs folder
vs. the SVN location (on the same machine? elsewhere?) vs. the service
browser being loaded locally or from the server, etc.

Patrick

Kevin a écrit :

 I am trying to figure out how to use the AMFPHP service browser with
 my SVN so coders can use the service browser to test committed code
 on the svn.

 Is it possible to point the gateway to different folder other than
 the local services folder? I tried to put a full URL in the
 setBaseClass var, but I get the error:

 (mx.rpc::Fault) #0
 errorID = 0
 faultCode = AMFPHP_CLASSPATH_ NOT_FOUND
 faultDetail = /Users/me/Sites/ amfphp/core/ shared/app/
 BasicActions. php on line 25
 faultString = The classpath folder {/amfphp/DiscoveryS ervice.php}
 does not exist. You probably misplaced your service.
 message = faultCode:AMFPHP_ CLASSPATH_ NOT_FOUND faultString: 'The
 classpath folder {/amfphp/DiscoveryS ervice.php} does not exist. You
 probably misplaced your service.' faultDetail: '/Users/kevin/ Sites/
 amfphp/core/ shared/app/ BasicActions. php on line 25'
 name = Error
 rootCause = (null)

 I then tried to upload the '/amfphp/DiscoveryS ervice.php' to the  
SVN,

 but that didn't seem to work either.

 thanks, Kevin









[flexcoders] Re: FDS createItem - how to find ID of inserted record?

2007-01-23 Thread sunilpatel_10
YES emp.id as well as dept.id 

--- In flexcoders@yahoogroups.com, Mikey [EMAIL PROTECTED] wrote:

 is your emp id set as an auto increment?





[flexcoders] Printing a Data Grid

2007-01-23 Thread loisgh1961
Hi There, 

I'm trying to set up print views for a datagrid.  I want to control
the font size of the columns.  I've been reading about embedded fonts
but they only seem to work on text fields .  Is there another option
for datagrid columns?

Thanks

Lois



RE: [flexcoders] Re: DateField - is there a way to limit the amount of input allowed?

2007-01-23 Thread Gordon Smith
Have you tried subclassing DateField and setting textInput.maxChars?

 

As for stopping keystrokes from being processed by a TextField,
TextInput, or TextArea, handle the 'textInput' event and call
preventDefault(), not stopPropagation() or stopImmediatePropagation().

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Libby
Sent: Tuesday, January 23, 2007 9:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: DateField - is there a way to limit the amount
of input allowed?

 

I have a DateField in which editing is allowed. I want to prevent the
user from typing more than x characters since x + 1 characters
will not represent a valid date to my application. In other
programming languages my keypress handler would allow me to consume
the event, effectively putting a stop to typing beyond a certain
length. How can I do this in Flex, as so far my attempts at stopping
the event propagation have been ignored by the Flash player?

Thanks,
Libby

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Tom Chiverton [EMAIL PROTECTED]
wrote:

 On Tuesday 23 January 2007 13:45, Libby wrote:
  Anybody? As far as I can tell, DateField doesn't take a maxChars
  property, which would be the logical solution.
 
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Libby libbychantel@ wrote:
   I used a keyboard listener to keep track of the length of the text
   entered, but Flex ignores my demands to preventDefault() and/or
   stopImmediatePropagation(). Does anyone have the secret they could
 
 Can you be clearer about what you want to achieve ?
 For instance, I've never heard of those two methods, and so have no
idea how 
 they relate to what seems a fairly simple case of using a key press
handler 
 to truncate a form field.
 
 -- 
 Tom Chiverton
 Helping to assertively maintain exceptional methodologies
 
 
 
 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 St James's Court Brown Street Manchester M2 2JF.
A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP means
a member of Halliwells LLP. Regulated by the Law Society.
 
 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 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.


 



[flexcoders] Module subclass issue

2007-01-23 Thread jerome_cordiez
Hello,

I finally decided to port an existing development towards the new
Modules architecture, and i am facing a pretty tough issue here.

I have a bunch of modules, that all extend BlockModule, which is a
Module subclass that itself implements the IBlockModule interface.
BlockModule and IBlockModule are in a library that the modules project
includes. 
Apparently, everything compiles fine, so far so good.

But now, in my application, I load these modules (using ModuleLoader),
and, when ready, try to set a symbol property on these modules.
Using the target property of the ModuleEvent, I correctly find the
modules. But, in order to be able to set the symbol property, I need
to cast them as IBlockModule.

And, that simply doesn't work.

Here is what my ready event listener looks like :


private function blockReady( pEvt:ModuleEvent ) : void
{
  var ml:ModuleLoader = pEvt.target as ModuleLoader;
  var block:IBlockModule = ml.child as IBlockModule;
  trace (ml.child); // output is correct
  trace (block); // null (apparently, the casting 
failed)
  if( block != null) {
block.symbol = symbol;
  }
}

From what my googling tells me, I believe it might be an issue with
the shared library But I honestly have no clue of what precisely
(everything seems correct to me) nor of how I could solve this.

If anyone has an idea, i would love to hear it :)
cheers,
J.



RE: [flexcoders] Re: Style Bug?

2007-01-23 Thread David Terry
Thank you Juan.  I appreciate the tip.
 
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of potentialunfounded
Sent: Tuesday, January 23, 2007 11:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Style Bug?



Keep the Panel styling, switch ApplicationControlBar to ControlBar in
the MXML with no styling applied to it.

The styling may not work for an ApplicationControlBar because of the
way you are using it. Maybe it's not meant to be used in a Panel like
that.

Juan
scalenine.com

mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  width=448
height=294 
mx:Panel width=422 height=257 layout=absolute
title=Login horizontalCenter=0 verticalCenter=-3.5 
mx:Image x=10 y=29 source=assets/images/lock.jpg/ 
mx:Form x=111 y=58 
mx:FormItem label=User Name required=true 
mx:TextInput/ 
/mx:FormItem 
mx:FormItem label=Password required=true 
mx:TextInput/ 
/mx:FormItem 
/mx:Form 
mx:Text x=111 y=17 text=Please login for access
to the Digital Publishing System, or register to join. width=272
height=35/

mx:ControlBar x=100 y=143 height=50 
mx:HBox width=50% horizontalGap=8 
mx:Button id=btnRegister
label=Register click=parentDocument.currentState='Register'/

/mx:HBox 
mx:HBox width=50% horizontalGap=8
horizontalAlign=right 
mx:Button id=btnLogin label=Login
click=parentDocument.currentState='Main'/ 
/mx:HBox 
/mx:ControlBar 
/mx:Panel 
/mx:Canvas

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, David Terry [EMAIL PROTECTED] wrote:

 Hi Guys,
 
 I'm not sure if I'm doing something wrong or if I've found a bug.
 
 I have a MXML Component (Login Screen) that contains an
 'ApplicationControlBar' within a 'Panel'.
 
 mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  width=448
 height=294
 mx:Panel width=422 height=257 layout=absolute
 title=Login horizontalCenter=0 verticalCenter=-3.5
 mx:Image x=10 y=29
 source=assets/images/lock.jpg/
 mx:Form x=111 y=58
 mx:FormItem label=User Name required=true
 mx:TextInput/
 /mx:FormItem
 mx:FormItem label=Password required=true
 mx:TextInput/
 /mx:FormItem
 /mx:Form
 mx:Text x=111 y=17 text=Please login for access to
 the Digital Publishing System, or register to join. width=272
 height=35/
 mx:ApplicationControlBar x=100 y=143 height=50
 mx:HBox width=50% horizontalGap=8
 mx:Button id=btnRegister
 label=Register click=parentDocument.currentState='Register'/
 /mx:HBox
 mx:HBox width=50% horizontalGap=8
 horizontalAlign=right
 mx:Button id=btnLogin label=Login
 click=parentDocument.currentState='Main'/
 /mx:HBox
 /mx:ApplicationControlBar 
 /mx:Panel
 /mx:Canvas
 
 If I use a global style for the 'ApplicationControlBar' and the
 'Panel'...
 
 ApplicationControlBar {
 cornerRadius: 14;
 dropShadowEnabled: false;
 borderStyle: none;
 fillColors: #e7e7e7, #d9d9d9;
 }
 
 Panel { 
 cornerRadius: 14;
 headerHeight: 40;
 dropShadowEnabled: true;
 shadowDistance: 0;
 roundedBottomCorners: true;
 textAlign: left;
 borderThicknessLeft: 0;
 borderThicknessRight: 0;
 borderThicknessTop: 0;
 borderThicknessBottom: 0;
 headerColors: #e7e7e7, #d9d9d9;
 footerColors: #e7e7e7, #d9d9d9;
 titleStyleName: myTitleStyle;
 } 
 
 The bar looks correct, but if I remove the 'ApplicationControlBar'
 global style and change to a custom style (notice the styles are the
 exactly same)...
 
 .myAppBar {
 cornerRadius: 14;
 dropShadowEnabled: false;
 borderStyle: none;
 fillColors: #e7e7e7, #d9d9d9;
 }
 
 And add the styleName=myAppBar tag to the 'ApplicationControlBar'
the
 display looks off.
 
 Also... Why does the global style override a custom style. What I mean
 is. Why can't I have both a global style and a custom style in the
same
 application? I would think if you set a global style for the
 'ApplicationControlBar' it would use that style UNLESS you have a
 styleName defined.
 
 Where am I going wrong?
 
 Enclosed is a screenshot.
 style.jpg 
 
 ~David T.




 


[flexcoders] Accessibility and imported components

2007-01-23 Thread Jason Goodwin
I have an app with lots of imported components. I can't seem to get
JAWS to read anything that's not on the main page. I have tried
several ways of add in the accessibility properties to the controls.
Thanks.


[flexcoders] Modal PopUp without background blur?

2007-01-23 Thread zzwi89
I am using the PopUpManager to make a modal dialog out of a Canvas
subclass. I need the dialog to be modal, but I'd prefer not to blur
out the rest of the application. Is there any way to do this short of
subclassing the PopUpManager itself?



Re: [flexcoders] Printing a Data Grid

2007-01-23 Thread Sam Shrefler

Lois:

If you use the PrintDataGrid component, you can specify fontSize right in
the tag.

For example:

mx:PrintDataGrid id=myPrintGrid fontSize=24

Hope that helps...

Sam


On 1/23/07, loisgh1961 [EMAIL PROTECTED] wrote:


  Hi There,

I'm trying to set up print views for a datagrid. I want to control
the font size of the columns. I've been reading about embedded fonts
but they only seem to work on text fields . Is there another option
for datagrid columns?

Thanks

Lois

 



Re: [flexcoders] Convert Project To FDS

2007-01-23 Thread Clint Modien

Ya... I think you can just edit the (.project) file and then add a WEB-INF
folder with the config files in it.


On 1/22/07, m2281m2281 [EMAIL PROTECTED] wrote:


  Is there a way to convert an existing non FDS project to an FDS project?

Thanks,

Mike

 



[flexcoders] Convert Videos to FLV via Web

2007-01-23 Thread Marlos Carmo | 5clicks.com.br
Hi Folks,

 

I need develop a video conversor to flv via Web, using PHP. Anybody have a
suggestion for help me?

 

Thanks,

 

Marlos Carmo

 

  _  

De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome
de Jason Goodwin
Enviada em: terça-feira, 23 de janeiro de 2007 17:10
Para: flexcoders@yahoogroups.com
Assunto: [flexcoders] Accessibility and imported components

 

I have an app with lots of imported components. I can't seem to get
JAWS to read anything that's not on the main page. I have tried
several ways of add in the accessibility properties to the controls.
Thanks.

 



RE: [flexcoders] Modal PopUp without background blur?

2007-01-23 Thread Tracy Spratt
Searching the archives for blur turns up this topic: Re: [flexcoders]
Re: Disable Application Blur in Popup window, and in that message you
will find:

mx:TitleWindow modalTransparencyBlur=0 ...

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of zzwi89
Sent: Tuesday, January 23, 2007 2:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Modal PopUp without background blur?

 

I am using the PopUpManager to make a modal dialog out of a Canvas
subclass. I need the dialog to be modal, but I'd prefer not to blur
out the rest of the application. Is there any way to do this short of
subclassing the PopUpManager itself?

 



Re: [flexcoders] Re: RTE when using itemRenderers in DataGrid.

2007-01-23 Thread Dana Gutride

Ok, I've found some additional details on this problem.  The call to
validateDisplayList will only help if you have added an itemRenderer at run
time.  Adding a headerRenderer at run time will still cause this error to
happen.  If the header renderer is included in-line, everything works
correctly.  Does anybody know a work around for this?

Thanks,
Dana

On 1/19/07, michael_ramirez44 [EMAIL PROTECTED] wrote:


  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Dana
Gutride [EMAIL PROTECTED]
wrote:

 I think I've got an answer.

 After the columns are added, I had to include a call to
validateDisplayList
 for the datagrid. That seemed to clear up this problem. Maybe
this will
 help somebody else so they don't have to spend 3 hours researching
this one.

 myDataGrid.validateDisplayList();

 Dana

 On 1/19/07, Dana Gutride [EMAIL PROTECTED] wrote:
 
  Does anybody have a workaround for this bug?
 
  Thanks,
  Dana
 
  On 1/16/07, Jim Robson [EMAIL PROTECTED]  wrote:
  
   They don't generally respond unless they need some
clarification from
   you.
  
   --- In flexcoders@yahoogroups.com 
flexcoders%40yahoogroups.comflexcoders%
40yahoogroups.com,
   michael_ramirez44
   michael_ramirez44@ wrote:
   
   ...
I have submitted this bug via the WishForm on Jan 10 but I
have not
recieved any response back not even an auto-response. Is
there another
  
place I can submit bugs?
   
Michael Ramirez
   
  
  
  
 
 


I applied your fix to the example application I had posted and it
fixed the problem. I tried to apply the same fix to my code and it
didn't work. I think it might be the placement of the
validateDisplayList() call. We are making progress :)

 



Re: [flexcoders] Re: Rotate Datagrid Headers

2007-01-23 Thread Dana Gutride

Tim:

Thanks, that definitely helped.  I'm about to ditch these datagrids
altogether, though.  Whenever I add a headerRenderer programmatically, the
datagrid throws a 1010 run time error if I try to scroll it vertically.  I
appreciate your help, though.

Dana

On 1/23/07, Tim Hoff [EMAIL PROTECTED] wrote:


  Dana:

It doesn't look like it works when you use fontWeight: normal.  If you use
the bold version of the font (copy verdanab.ttf to assets) and make the
following subtle changes, you should be good to go.

mx:Style
 @font-face {
 src:url(assets/verdanab.ttf);
 fontFamily: MyFont;
 fontWeight: bold;
 }
 .myStyle1{
 fontFamily:MyFont;
 fontSize:12pt;
 }
/mx:Style

-TH
__

*Tim Hoff
*Cynergy Systems, Inc.
http://www.cynergysystems.com http://www.cynergysystems.comoffice/
Office: 866-CYNERGY

--- In flexcoders@yahoogroups.com, Dana Gutride [EMAIL PROTECTED] wrote:

 Tim:

 Thanks for the response. I neglected to mention that I have been
attempting
 to use a headerrenderer. I've created it both inline and in a separate
 component and still nothing. This code below illustrates what I've been
 attempting to do, am I missing something?

 Thanks,
 Dana

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 mx:Style
 @font-face {
 src: url(assets/verdana.ttf);
 fontFamily: MyFont;
 }
 .myStyle1{fontFamily:MyFont; fontSize:12pt}
 /mx:Style
 mx:DataGrid id=rootDataGrid width=100% height=100%
 headerHeight=300 
 mx:columns
 mx:Array
 mx:DataGridColumn dataField=Name width=100
 headerText=Host Name /
 mx:DataGridColumn headerText=City dataField=city
 mx:headerRenderer
 mx:Component
 mx:VBox horizontalAlign=center
 mx:Text
 text={ this.data.headerText }

 rotation=90
 styleName=myStyle1/
 /mx:VBox
 /mx:Component
 /mx:headerRenderer
 /mx:DataGridColumn
 /mx:Array
 /mx:columns
 /mx:DataGrid
 /mx:Application


 On 1/23/07, Tim Hoff [EMAIL PROTECTED] wrote:
 
  Hi Dana,
 
  A real easy way to do this would be to use a headerRenderer for the
  DataGrid columns.
 
  Inline:
 
  mx:DataGrid id=dg height=300 width=300 headerHeight=60
  dataProvider={ myDataProvider }
  mx:columns
  mx:Array
  mx:DataGridColumn width=160 headerText=City
  dataField=city
  mx:headerRenderer
  mx:Component
  mx:VBox horizontalAlign=center
  mx:Text
  text={ this.data.headerText }
  rotation=90
 
  styleName=myEmbeddedFontStyleName/
  /mx:VBox
  /mx:Component
  /mx:headerRenderer
  /mx:DataGridColumn
  /mx:Array
  /mx:columns
  /mx:DataGrid
 
  Or, if you want to reuse the headerRenderer, create a component:
 
  mx:DataGrid id=dg height=300 width=300 headerHeight=60
  dataProvider={ myDataProvider }
  mx:columns
  mx:Array
  mx:DataGridColumn width=160
  headerRenderer=RotatedHeaderRenderer
  headerText=City
  dataField=city/
  mx:DataGridColumn width=160
  headerRenderer=RotatedHeaderRenderer
  headerText=State
  dataField=state/
  /mx:Array
  /mx:columns
  /mx:DataGrid
 
  RotatedHeaderRenderer.mxml
 
  ?xml version=1.0 encoding=utf-8?
  mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml;
  horizontalAlign=center
  mx:Text
  text={ this.data.headerText }
  rotation=90
  styleName=myEmbeddedFontStyleName/
  /mx:VBox
 
  -TH
  __
 
  *Tim Hoff
  *Cynergy Systems, Inc.
  http://www.cynergysystems.com http://www.cynergysystems.comoffice/
  Office: 866-CYNERGY
 
  --- In flexcoders@yahoogroups.com, Dana Gutride dgutride@ wrote:
  
   Hi,
  
   After much searching, I haven't found a satisfactory answer to this
   question. I'm trying to rotate the headers of my datagrid so they
are
   completely vertical. I've embedded the font successfully and can
rotate
  any
   other piece of text in my app, but when I attempt to rotate the text
in
  the
   datagrid header, it keeps disappearing. I've used both the rotation
   property and created a rotate effect, but to no avail. I think it
might
   have to do with the x and y of the text. Any ideas?
  
   Thanks,
   Dana
  
 
 
 


 



[flexcoders] getting XML out of Oracle

2007-01-23 Thread Greg Morphis
This is a little off topic but was hoping some of you have tried this.
Have any of you been able to run a query in Oracle that returns data
which can be easily loaded into the Tree component?

If so can you pass along the info on how you accomplished this?
Thanks


AW: [flexcoders] Re: Setting UIComponent.errorString creates a black border around the component

2007-01-23 Thread Harald Dehn
Hi,

 

There is a caching problem of the borderColor in the UIComponent class. I
found the following workaround:

 

myClass.validateProperties();

myClass.errorString = ;

 

If you call validateProperties before clearing the errorString property,
everything works fine in my application.

 

Harald

 

  _  

Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
Auftrag von harbaugj
Gesendet: Montag, 22. Januar 2007 21:15
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Re: Setting UIComponent.errorString creates a black
border around the component

 

I am having this same problem as well. Does anyone have the resolution 
to this?

--- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com,
brian_m_riley [EMAIL PROTECTED] 
wrote:

 I've been using the errorString property of UIComponent to remove
 errors associated with TextInput fields, but it seems to put a black
 border around the field instead of just removing the red error border
 and error string. 
 
 Thoughts?
 -riley


 



[flexcoders] Flex Example Sites online please

2007-01-23 Thread Robert Walters
Hello,

Besides Yahoo Maps can I get examples of content type sites using Flex II?

It seems like 99% of RIA sites are in Ajax.

ThanksRob



[flexcoders] (unknown)

2007-01-23 Thread Dima Ulich
Hello, 
 
I'm using Renaun's RemoteObject to access amfphp. I have a script written 
in php to handle certain operations. It might take a long time to execute the 
operation. The problem I have is that when I run the script from flex 
application everything works fine, php script does what it suppose to do. But 
it seems like if it takes more than one hour to finish the operation 
NetConnection returns NetStatus.Call.Failed error. I wonder if there is a way 
to prevent that and have the process continue. Is it a bug? 
 
Street


 

Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html

[flexcoders] Re: Custom Tree Renderer with checkboxes for Flex 2

2007-01-23 Thread vuleman
Hi,
Actually it's not really traversing the tree, it's more like getting to 
the renderer of each child node (since the checkboxes are declared 
inside the renderer).

public class CustomTreeRenderer extends TreeItemRenderer
{
   var checkbox:Checkbox;
}

Any help is appreciated
Thx
Vu





[flexcoders] File upload via JAVA

2007-01-23 Thread [EMAIL PROTECTED]

I'm trying to implement the file upload using the FileReference class and can't 
find an example of the JAVA code that would be required, I've found .net and 
php but no java, does anyone have an example ?

Cheers
Grant


[flexcoders] Accessibility and imported components

2007-01-23 Thread Jason Goodwin
*RE POST (my thread got hijacked)

I have an app with lots of imported components. I can't seem to get
JAWS to read anything that's not on the main page. I have tried
several ways of add in the accessibility properties to the controls.
Thanks.


[flexcoders] Looking for freelance/contract developers

2007-01-23 Thread revanisle
Hi all,
  I have been lurking on this list for over a year now trying to
improve my Flex skills while my workload has been piling up.  I'm
finding more opportunities than I can handle on my own so I'd like to
compile a list of experienced freelance/contract Flex developers I can
outsource projects to.  If you're well versed in Flash Media Server
and/or plain old Flash either as designer/animator or developer I'd
like to hear from you as well.  

Please send a resume and links to your portfolio or samples of recent
work (is there any other kind in Flex?).  If you care to disclose rate
information at this point as well, that would be helpful - or just
send me your email address...

Although nothing is finalized yet, I have 2 decent sized projects that
have a high probablility of starting within a month or three.

Of course, email me off-list at rick-at-jbes-dot-NET.

Thanks,

Rick Englert
JBE Services



[flexcoders] Re: RTE when using itemRenderers in DataGrid.

2007-01-23 Thread michael_ramirez44
That is why the fixed did work for me :) My application also adds an 
HeaderRenderer at run-time. I don't think anybody at Adobe is aware 
of this issue even through I submitted it as a bug.


--- In flexcoders@yahoogroups.com, Dana Gutride [EMAIL PROTECTED] 
wrote:

 Ok, I've found some additional details on this problem.  The call to
 validateDisplayList will only help if you have added an 
itemRenderer at run
 time.  Adding a headerRenderer at run time will still cause this 
error to
 happen.  If the header renderer is included in-line, everything 
works
 correctly.  Does anybody know a work around for this?
 
 Thanks,
 Dana
 
 On 1/19/07, michael_ramirez44 [EMAIL PROTECTED] wrote:
 
--- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.com, Dana
  Gutride dgutride@
  wrote:
  
   I think I've got an answer.
  
   After the columns are added, I had to include a call to
  validateDisplayList
   for the datagrid. That seemed to clear up this problem. Maybe
  this will
   help somebody else so they don't have to spend 3 hours 
researching
  this one.
  
   myDataGrid.validateDisplayList();
  
   Dana
  
   On 1/19/07, Dana Gutride dgutride@ wrote:
   
Does anybody have a workaround for this bug?
   
Thanks,
Dana
   
On 1/16/07, Jim Robson jim.robson@  wrote:

 They don't generally respond unless they need some
  clarification from
 you.

 --- In flexcoders@yahoogroups.com flexcoders%
40yahoogroups.comflexcoders%
  40yahoogroups.com,
 michael_ramirez44
 michael_ramirez44@ wrote:
 
 ...
  I have submitted this bug via the WishForm on Jan 10 but I
  have not
  recieved any response back not even an auto-response. Is
  there another

  place I can submit bugs?
 
  Michael Ramirez
 



   
   
  
 
  I applied your fix to the example application I had posted and it
  fixed the problem. I tried to apply the same fix to my code and it
  didn't work. I think it might be the placement of the
  validateDisplayList() call. We are making progress :)
 
   
 





[flexcoders] Help with Tree component : getting XML out of Oracle

2007-01-23 Thread Greg Morphis
 This is a little off topic but was hoping some of you have tried this.
 Have any of you been able to run a query in Oracle that returns data
 which can be easily loaded into the Tree component?

 If so can you pass along the info on how you accomplished this?
 Thanks


[flexcoders] Problem using Flex webservice component

2007-01-23 Thread th_vador
Hi everybody,

I am building an application using Flex and I am experiencing some
trouble with the flex webservice componnent.

The WSDL file I am working with was a bit complex, so I had to make it
far more simple in order to get a clue on what's wrong with it.
At last, it seems that Flex webservice component doesn't like abstract
type in WSDL files.

Could anyone confirm that Flex webservice component doesn't support
webservice based on WSDL files that use abstract types?
Can something be done to make Flex support such a webservice?


regards, 
Thomas Roosen.



RE: [flexcoders] Help with Tree component : getting XML out of Oracle

2007-01-23 Thread Brian Holmes
Hi Greg,
 I've been able to do this with Cold Fusion. Turning a query into a
tree, and also a cfdirectory into a tree and then passing them back to
flex.

Is that what you are trying to do? 

Brian.
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Greg Morphis
Sent: Tuesday, January 23, 2007 2:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Help with Tree component : getting XML out of
Oracle

 This is a little off topic but was hoping some of you have tried this.
 Have any of you been able to run a query in Oracle that returns data
which can be easily loaded into the Tree component?

 If so can you pass along the info on how you accomplished this?
 Thanks


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links





***
The information in this e-mail is confidential and intended solely for the 
individual or entity to whom it is addressed.  If you have received this e-mail 
in error please notify the sender by return e-mail delete this e-mail and 
refrain from any disclosure or action based on the information.
***


RE: [flexcoders] Accessibility and imported components

2007-01-23 Thread Andrew Kirkpatrick
Jason,
The short answer is that it does work.  The longer, more useful answer
requires more information from you about what you've tried, and how you
are using JAWS (e.g. are you in forms mode or virtual cursor mode)

Thanks,
AWK

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of Jason Goodwin
 Sent: Tuesday, January 23, 2007 3:25 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Accessibility and imported components
 
 *RE POST (my thread got hijacked)
 
 I have an app with lots of imported components. I can't seem 
 to get JAWS to read anything that's not on the main page. I 
 have tried several ways of add in the accessibility 
 properties to the controls.
 Thanks.
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links
 
 
 
 


Re: [flexcoders] regexp and html tags

2007-01-23 Thread Webdevotion

No one ?  Come n : )

Any nice tutorials or pointers ?


[flexcoders] force to preload UI children

2007-01-23 Thread ecpmaz
I want to force any UI Container to preload its children. I explain
myself. For instance I have an accordion which contains 2 tabs.
The first one is automatically loaded. But I can't acess to the second's
children as long as the user has not clicked on it to display it!

mx:Accordion
  mx:VBox label=1mx:Button id=b1 label=box1 //mx:VBox
  mx:VBox label=2mx:Button id=b2 label=box2 //mx:VBox
/mx:Accordion

here I won't be able to execute this :
b2.label = hop changed;
as b2 will be null.

Any idea ?
I tried all the validateProperties/validateSize/validateNow... but  it
won't do anything...

Thank you

Mathieu LEMAIRE



RE: [flexcoders] Re: Custom Tree Renderer with checkboxes for Flex 2

2007-01-23 Thread Tracy Spratt
I was afraid you were there:  ...like getting to the renderer of each
child node ...  You can't do that.  You must work with the
dataProvider, setting an item node property with the checked state you
want, and the renderer must use that state in the set data method to set
the state of the check box.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of vuleman
Sent: Tuesday, January 23, 2007 3:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Custom Tree Renderer with checkboxes for Flex
2

 

Hi,
Actually it's not really traversing the tree, it's more like getting to 
the renderer of each child node (since the checkboxes are declared 
inside the renderer).

public class CustomTreeRenderer extends TreeItemRenderer
{
var checkbox:Checkbox;
}

Any help is appreciated
Thx
Vu

 



Re: [flexcoders] regexp and html tags

2007-01-23 Thread Michael Schmalle

Hi,

I don't know exactly what you are looking for as far as your algorithm but
try this;

private function init()
{
   var s:String = linkwww.mywebsite.com/link;
   var p:RegExp = /link\b[^]*(.*?)\/link/gi;
   s = s.replace(p,a href='$1' target='_blank'$1/a);
   trace(s)
}

it traces;

a href='www.mywebsite.com' target='_blank'www.mywebsite.com/a

Peace, Mike

On 1/23/07, Webdevotion [EMAIL PROTECTED] wrote:


  No one ?  Come n : )

Any nice tutorials or pointers ?







 





--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.


RE: [flexcoders] force to preload UI children

2007-01-23 Thread Tracy Spratt
There is a simple answer to your question, but before I tell you, I need
you to understand the ramifications.  The behavior your see is called
deferred instantiation and is the default behavior of many of the Flex
navigation containers.  Its purpose is to improve the start-up
performance of the Flex app.

 

The best way to handle issues like this is to use binding, or an event
process of your own, to pull the data you want into the child views
when they are viewed.

 

Now, the answer to your question is: on the Accordion tag, set
creationPolicy=all.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ecpmaz
Sent: Tuesday, January 23, 2007 4:52 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] force to preload UI children

 

I want to force any UI Container to preload its children. I explain
myself. For instance I have an accordion which contains 2 tabs. 
The first one is automatically loaded. But I can't acess to the second's
children as long as the user has not clicked on it to display it!

mx:Accordion
 mx:VBox label=1mx:Button id=b1 label=box1 //mx:VBox
 mx:VBox label=2mx:Button id=b2 label=box2 //mx:VBox
/mx:Accordion

here I won't be able to execute this :
b2.label = hop changed;
as b2 will be null.

Any idea ?
I tried all the validateProperties/validateSize/validateNow... but  it
won't do anything...

Thank you

Mathieu LEMAIRE

 



Re: [flexcoders] Loading Flash 8 RIA into Flex 2 Application

2007-01-23 Thread Bjorn Schultheiss

Any info on this error

ReferenceError: Error #1056: Cannot create property reserved on  
_main_mx_managers_SystemManager.






On 23/01/2007, at 9:43 AM, Bjorn Schultheiss wrote:

Hey I'm trying to load one of our Monster Flash 8 RIA's into our  
new superior Flex 2 app and I'm getting a couple of errors in the  
console.



ReferenceError: Error #1056: Cannot create property reserved on  
_main_mx_managers_SystemManager.


ReferenceError: Error #1056: Cannot create property apContainer_mc  
on _main_mx_managers_SystemManager.


I believe the second error is related to Alex Ulhmann's animation  
package. It's seems the focusManager and the V2 components in the  
app are screwed...



Any help?


Bjorn






Re: [flexcoders] Help with Tree component : getting XML out of Oracle

2007-01-23 Thread Greg Morphis
Thanks for replying, unfortunately we're using a Java backend, so I'm
trying to output the data as a big fat CLOB and and then load it into
the Tree

On 1/23/07, Brian Holmes [EMAIL PROTECTED] wrote:
 Hi Greg,
  I've been able to do this with Cold Fusion. Turning a query into a
 tree, and also a cfdirectory into a tree and then passing them back to
 flex.

 Is that what you are trying to do?

 Brian.


 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Greg Morphis
 Sent: Tuesday, January 23, 2007 2:16 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Help with Tree component : getting XML out of
 Oracle

  This is a little off topic but was hoping some of you have tried this.
  Have any of you been able to run a query in Oracle that returns data
 which can be easily loaded into the Tree component?

  If so can you pass along the info on how you accomplished this?
  Thanks


 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links





 ***
 The information in this e-mail is confidential and intended solely for the 
 individual or entity to whom it is addressed.  If you have received this 
 e-mail in error please notify the sender by return e-mail delete this e-mail 
 and refrain from any disclosure or action based on the information.
 ***


 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
 Yahoo! Groups Links






Re: [flexcoders] regexp and html tags

2007-01-23 Thread Webdevotion

That's exactly what I needed!

How do you call the $1 technique?

Groups ?

Thanks Mike !


Re: [flexcoders] Re: Localizing Press Esc to exit full screen mode?

2007-01-23 Thread John Dowdell
Oleg Filipchuk wrote:
 any of supported languages - you mean English, French, German and Chinese?
 The are a plenty of other languages. I've been testing it on machines, with
 Russian, Czech, Polish, Slovakian, Ukrainian etc and everywhere it is the
 same Press Esc to exit full screen... Is it so hard for such a big 
 company
 to make translation of one simple sentence to at least 50-70 languages?

I'm assuming you have a display of your own Click Here for Fullscreen! 
message, in whichever set of languages you wish... could you toggle it 
to Click Here to Switch Back! when they do so?

The Player is localized into many but not all languages, and its context 
menu can contain fullscreen text, with the screen itself then 
containing escape text. My point here is that these are usually not 
the only interface elements exposed -- usually you'd also have your own 
instructions, which can be in any language you care to write.

(I'm not sure whether anyone from the Flash Player team keeps up-to-date 
with reading all messages on FlexCoders.)

jd





-- 
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.


[flexcoders] Re: Max OS X Flex Builder 2.01 License Issue - still waiting

2007-01-23 Thread Bill Gercken
Has anyone been able to get an new license?

I contacted adobe and opened a ticket back on the 9th of January and I am still 
waiting...

After 50 minutes on hold, they took my information and then put me on hold for 
another 
30 minutes. They finally came back on the phone and asked me to fax in a letter 
of 
destruction for my Windows version, which I did.  They said that they would 
email the new 
Mac key within 48 hours. Waited until the 18th and still no key. Another call 
to Adobe (30 
minute hold time) and they told me that my original request was missrouted and 
that I 
should have the key by the end of the week, worst case by Tuesday (today). 
Still no key...

I am a HUGE fan of Macromedia/Adobe/Flex but I am not sure why it has to be 
this 
difficult. Thank goodness for the 30 day trials...

-bill
 



--- In flexcoders@yahoogroups.com, Rich Tretola [EMAIL PROTECTED] wrote:

 Same here, I was hoping that we were beyond the dual license issues and
 could have a single that installs on 2 machines but different OS's.  I
 really wanted to stop using Parallels.
 
 
 Rich
 
 
 
 On 1/8/07, Adam Dorritie [EMAIL PROTECTED] wrote:
 
On 1/7/07, Joost Nuijten [EMAIL PROTECTED]flexcoders%40innuendo.nl
  wrote:
  
   Yeah, I agree. It's a bit outdated. This is what I found on the Adobe
  site:
  
 
  I'm wondering how many folks are in my position. Adobe is kind enough
  to permit me to install the Flex Builder 2 with Charting software on
  my home computer as well as my work computer (thanks!).
  Unfortunately, at work I develop on Windows and at home I use a Mac.
  Will I need to purchase an additional copy of FB2 w/ charting in order
  to run it on my Mac? I'm still working on convincing my boss to get
  me an MB Pro w/ Parallels:)
   
 
 
 
 
 -- 
 Rich Tretola
 mx:EverythingFlex/
 http://www.EverythingFlex.com




  1   2   >