Re: [flexcoders] Re: 3.1 changelog?

2008-08-18 Thread Josh McDonald
Problem isn't what's in the release notes, it's where are the release
notes? :)

I guess I sorta expected a post here with a link to some release notes or
something. All I got was a popup from Adobe Updater when I got into work
this morning.

-Josh

On Mon, Aug 18, 2008 at 3:48 PM, Alex Harui [EMAIL PROTECTED] wrote:

  Sorry, we need to update that.  Marshall Plan is 3.2, it was going to be
 3.1 when we published that page but something came up and we had to bump
 Marshall plan.



 The release notes don't have any info on bug fixes?  A JIRA search might
 also yield some information.


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Bjorn Schultheiss
 *Sent:* Sunday, August 17, 2008 10:16 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: 3.1 changelog?



 Quote from the doc
 The Marshall Plan will only support 3.1 Flex applications working in
 Flex 4 and beyond.
 http://opensource.adobe.com/wiki/display/flexsdk/Marshall+Plan

 In terms of bug-fixes, haven't seen one yet..
 Mind you haven't look much either.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh
 McDonald [EMAIL PROTECTED] wrote:
 
  Yeah just found that :) That's pretty much only API changes though,
 I was
  wondering if there's anything official listing bugfixes / changes in
 builder
  (if any), etc...
 
  Did the Marshall Plan stuff go into 3.1 or is it 3.2?
 
  -Josh
 
  On Mon, Aug 18, 2008 at 2:54 PM, Bjorn Schultheiss 
  [EMAIL PROTECTED] wrote:
 
   I saw this blog post the other day.
  
   differences between Flex 3.1.0 and Flex 3.0.0
  
  

 http://shigeru-nakagaki.com/index.cfm/2008/8/16/20080816-diff-between-Flex310-and-Flex300
  
   Bjorn
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Josh McDonald dznuts@ wrote:
   
Hey Guys,
   
Is there a changelog for 3.1? I can't seem to find anything via
 google.
   
-Josh
   
--
Therefore, send not to know For whom the bell tolls. It tolls for
   thee.
   
:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: josh@
   
  
  
  
   
  
   --
   Flexcoders Mailing List
   FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives:
   http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
   Links
  
  
  
  
 
 
  --
  Therefore, send not to know For whom the bell tolls. It tolls for
 thee.
 
  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: [EMAIL PROTECTED]
 

 




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Xiff + updating groups

2008-08-18 Thread venkat eswar
have any one tried creating new groups using . please help



  

[flexcoders] SmartCard/eToken with AIR Application?

2008-08-18 Thread tudsy
I would like to use an eToken (USB smartcard) for the client
authentication in an SSL handshake as part of an AIR application. 
Anybody know if this is even possible? 

Presumably the easiest route would be to use the baked in WebKit...



[flexcoders] Format XML

2008-08-18 Thread litesh_b321
Hi,
i am binding Xml to flex application 
i want To format XMl while displaying in flex application 
plz check the link for more information 


www.digitalpaperworks.com/Knuth/Demo/KNUTH.html

I want to format bullets which getting in description 
I want to use different color for mx:tree child node 
ThanX 




[flexcoders] Re: state and country dropdown boxes

2008-08-18 Thread benjidudu
http://aralbalkan.com/1351


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

 Does anyone have/care to share a premade country/state/province
 dropboxes?
 
  
 
 I can find a state list, but where does one find an accurate (at least
 to this day anyway...) country list?
 
  
 
  Thanks!
 
   Scott





[flexcoders] Grouping on ADG using hierarchicalData

2008-08-18 Thread nikscares4u
Hi All,
 
I was trying to perform grouping on Advanced datagrid. I did grouping
on ADG using arraycollection as dataprovider and then setting it to
grouping collection. That works fine but I don't know how the same can
be done using HierarchicalData as dataprovider? Any Idea ?
 
Many thanks in advance.
 
Regards
Nikunj



[flexcoders] Actionscript based Modules

2008-08-18 Thread sudha_bsb
Hi,

I was going through Livedocs about Modules in Flex and I have a few 
questions. I created an ActionScript project with a few modules, 
compiled them and everything works fine. 

My question is, is it possible to have both ActionScript based modules 
and MXML Based modules in the same project (Flex Project). If yes, how 
can I compile the Actionscript based module using Flex Builder?

Looking forward to your replies,

Regards,
Sudha. 




Re: [flexcoders] Actionscript based Modules

2008-08-18 Thread Simon Bailey
Right click the Project  Properties  Flex Modules  Add... add the  
AS module :-)


Cheers,

Simon

On 18 Aug 2008, at 11:36, sudha_bsb wrote:

Hi,

I was going through Livedocs about Modules in Flex and I have a few
questions. I created an ActionScript project with a few modules,
compiled them and everything works fine.

My question is, is it possible to have both ActionScript based modules
and MXML Based modules in the same project (Flex Project). If yes, how
can I compile the Actionscript based module using Flex Builder?

Looking forward to your replies,

Regards,
Sudha.






[flexcoders] Re: Actionscript based Modules

2008-08-18 Thread sudha_bsb
Hi Simon,

  Thanks for that one..it works now :)

Thanks  Regards,
Sudha.

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

 Right click the Project  Properties  Flex Modules  Add... add 
the  
 AS module :-)
 
 Cheers,
 
 Simon
 
 On 18 Aug 2008, at 11:36, sudha_bsb wrote:
 
 Hi,
 
 I was going through Livedocs about Modules in Flex and I have a few
 questions. I created an ActionScript project with a few modules,
 compiled them and everything works fine.
 
 My question is, is it possible to have both ActionScript based 
modules
 and MXML Based modules in the same project (Flex Project). If yes, 
how
 can I compile the Actionscript based module using Flex Builder?
 
 Looking forward to your replies,
 
 Regards,
 Sudha.





Re: [flexcoders] Printing and PDF creation

2008-08-18 Thread Blair Cox
Hmm, well I¹m with the fellow here in another post that stated Flex will not
be enterprise ready until it can create reports within the app. This is a
basic business practice and should not be some convoluted, insanely
expensive add-on. If you purchase the Pro version of flex for nearly a
grand, it should be a feature just like creating charts.

Thanks for the links but I was hoping for a solution.

-- 
Blair 



From: Sefi Ninio [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
Date: Sat, 16 Aug 2008 21:44:11 +0300
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Printing and PDF creation

 
 

I actually just googled for it.. You could do the same...

http://christophrooms.com/2007/03/23/lc-ds-25-generating-pdf-from-within-a-f
lex-application/

http://blogs.adobe.com/mikepotter/2006/09/create_pdf_from.html

http://flexblog.faratasystems.com/?p=237

HTH 
Sefi


On Sat, Aug 16, 2008 at 8:35 PM, cox.blair [EMAIL PROTECTED] wrote:
  
  
 
 Just wondering if anyone could provide some information on general
 printing concepts and creating PDF reports from an application.
 
 With regards to printing, I really only need to allow the user to
 correctly print what is displayed in their browser - the application
 interface. As a bonus, allowing the user to print a report would be
 even better. I've heard a lot of talk about printing DG's, but how
 about printing charts? If you could pass along some links to read more
 on this, it would be a great help.
 
 PDF creation - Is it possible to create a pdf directly from the
 application within the browser (not AIR)? An example would be within
 Goggle Analytics, you can create a PDF report containing all the data
 and charts displayed online. Nothing complex here, simple plain
 reports full justified, center aligned - the way the business folk
 like it.
 
 Cheers,
 Blair
 
  
 

 




Re: [flexcoders] state and country dropdown boxes

2008-08-18 Thread Toby Ashley
You could have a look at this -
http://www.peterelst.com/blog/2006/12/24/flex-country-combobox-component/

This might be useful too - http://aralbalkan.com/1351


On Mon, Aug 18, 2008 at 2:58 AM, Scott [EMAIL PROTECTED] wrote:

  Does anyone have/care to share a premade country/state/province
 dropboxes?



 I can find a state list, but where does one find an accurate (at least to
 this day anyway…) country list?



  Thanks!

   Scott
  



[flexcoders] Chart Items values

2008-08-18 Thread Tolis Christomanos
Hi all,

Can anyone tell how i access the values of  column chart items populated by
a xml file?

Thanks in advance.


[flexcoders] Access column chart items

2008-08-18 Thread mousikos2001
Hi all,

I have a column chart and i want to access the columns values in order
to display them in a textarea. How can i do this?

Thanks in advance.



Re: [flexcoders] Problem with ExternalInterface.call

2008-08-18 Thread Toby Ashley
What specifically is the problem here? If you uncomment the reload line,
presumably it'll reload the entire page without you seeing the Alert box. If
you want to wait for the Alert box to be closed before reloading the page,
you'll need to listen out for the CloseEvent.CLOSE event.



On Sun, Aug 17, 2008 at 10:08 PM, markgoldin_2000 [EMAIL PROTECTED]
 wrote:

 public function setPlan(resultXML:XML):void
 {
Alert.show(resultXML.toString());
//ExternalInterface.call(window.location.reload(true));
 }

 If I uncomment ExternalInterface.call then reload goes with Alert box
 being shown. Is that right?

 Thanks


 

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






[flexcoders] Re: Custom Container component and drag 'n drop support

2008-08-18 Thread Nicolas Noben
I find sometimes that the DragManager is overkill. I had problems with  
it as well, it's just too complicated.

For a simple drag and drop of panels, such as here

http://code.google.com/p/air-sql-designer/source/browse/trunk/Flex/src/airsqldesigner/TablePanel.mxml

I have simply (the good old flash way)

btnDrag.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
btnDrag.addEventListener(MouseEvent.MOUSE_UP, stopDragging);

public function startDragging(e:MouseEvent) :void
{
this.startDrag();
}

public function stopDragging(e:MouseEvent = null) :void
{
this.stopDrag();
}

This has limitations.

Hope this helps,

Nicolas Noben
http://noben.org/
http://idletogether.com/



[flexcoders] Re: SecurityError: Error #2060: Security sandbox violation-what is the real solu

2008-08-18 Thread Nicolas Noben
Hi

Either try to use navigateToURL (open blank) instead of a javascript popup or
go with the modal approach, using lightbox js or similar?

As I said, You would get popup blockers stopping you in most cases anyway.

HTH

Nicolas Noben
http://noben.org/
http://idletogether.com/

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

 So, no one (atleast people at adobe) knows about this. Cool






Re: [flexcoders] creating a custom context menu on right click

2008-08-18 Thread venkateswarlu naidu
Hi Alex,

Thanks for the reply, but i want to remove the 'settings' option also. I want 
to show only my custom options.
Is there any way to achive that, like capturing the right click event and 
showing our own component like titlewindow.


 Thanks,
Venkat.



- Original Message 
From: Alex Harui [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, 16 August, 2008 10:26:28 PM
Subject: RE: [flexcoders] creating a custom context menu on right click


You can remove everything except the Settings… 
Call hideBuiltInItems
 


 
From:[EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf 
Of venkateswarlu naidu
Sent: Saturday, August 16, 2008
8:52 AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] creating a
custom context menu on right click
 
Hi,

I dont want to show the options like 'Show redraw regions', 'settings' on right
click on the datagrid. i have to show my own options and have to capture the
selected row of the datagrid. In the documentation i saw that we cant remove
those options, but i want to remove them completely. 

How can i achieve this requirement, any help is appreciated.

Thanks in advance,
Venkat.

Add more friends to your messenger and enjoy! Go to http://in.messenger 
.yahoo.com/ invite/


  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

[flexcoders] LCDS and real-time performance

2008-08-18 Thread jopepie2
Hi, 

Recently we have started an experiment on our benchmark-LAN where we 
have several Windows XP PCs running test programs. One of the PCs is 
the data-injector (Flex) which pushes changes every second, one is 
the LCDS2.6 server running on Tomcat and one PC is running the client 
application (Flex) in which the changes are visible every second. 
This experiment should determine if Flex using LCDS is a viable 
option for our real-time systems. 
There is very little network-traffic and CPU-usage on all PCs is very 
low, yet the system is able to handle only 400 changes every second. 

Using our own logger we see that about 400ms pass between the 
injector committing the changes and the server synchronizing the 
database. Another 400ms are needed to get all the changes to the 
other client so it can merge the changes and display them. 

By examining the built-in server-side logging of LCDS, it becomes 
clear that a lot of time is spent in the sending and receiving of 
messages over RTMP: 

[LCDS] 16:25:10.578 [DEBUG] Thread[my-rtmp-SocketServer-WorkerThread-
1,5,main] Connection '19658898' starting a read. 
... 
[LCDS] 16:25:10.937 [DEBUG] Deserializing AMF/RTMP request 
... 
[LCDS] 16:25:10.968 [DEBUG] Before invoke service: data-service 
... 
[LCDS] 16:25:11.156 [DEBUG] After invoke service: data-service; 
execution time = 172ms 
... 
[LCDS] 16:25:11.171 [DEBUG] Serializing AMF/RTMP push x 400 
... 
[LCDS] 16:25:11.390 [DEBUG] Committed transaction 
... 
[LCDS] 16:25:11.421 [DEBUG] After invoke service: data-service 
  reply: Flex Message (flex.messaging.messages.AcknowledgeMessage) 
... etc. etc. 

As you can probably see the communication starting at the first entry 
up to the start of deserialization already takes approx. 400ms.. the 
processing of all the changes 172. 
The pushing of all the changes again takes about 400ms. If we can 
eliminate these two bottlenecks LCDS would be the perfect candidate 
to use in our new systems. 

We have tried everything we can think of, but nothing seems to help. 
Is it the RTMP protocol or a server or socket setting, or the way the 
server handles multithreading? Is there some JVM setting we don't 
know about? 

Any pointers and help would be appreciated! 

Greetings, 
Rogier Oorburg 




[flexcoders] Re: flex captcha

2008-08-18 Thread haykelbj
If you need a captcha, it generally means that you communicate with a
server. You can generally use any captcha creation tool that works
with your server's technology.

As an example, we use PHP on the server side and for the captcha
generation we use a slightly modified version of this simple script:
http://www.white-hat-web-design.co.uk/articles/php-captcha.php

The modification we did is:
1. Add this line before the class declaration:
$font = realpath('monofont.ttf');

2. Remove this line:
var $font = 'monofont.ttf';

3. Add this to the beginning of the constructor:
global $font;

In the Flex application simply create an image control with the source
set to something like this:
CaptchaSecurityImages.php?width=100height=40characters=5

Hope it helps,
Haykel

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

 Does anyone have a good/cool flex(flash) captcha generator?
 
  
 
  Regards,
 
Scott





[flexcoders] Problem with Subclipse...

2008-08-18 Thread Rob Kunkle
Hello all -

I'm having a problem with with subclipse and flex builder 3, and I was
wondering if anyone else had run into similar issues.

Basically all of my source directories in a project (src, libs,
html-template) sync up with the subversion server without issue. But
the binary directories (bin-release, bin-debug) don't. 

I've tried different ways of creating the project and have attempted
working directly from the command line, but nothing seems to work as
expected. I just wanted to check if this a known issue / feature or if
I am out on the edge of the curve with this one.

Thanks!
 



[flexcoders] Debugging with standalone Flex3 installation

2008-08-18 Thread betty80906
I get the message that Flex Builder cannot locate the required
debugger version of Flash Player.  The Alert message title bar is
Installed Flash Player Is Not a Debugger.  

It is looking at the one at
C:\WINDOWS\system32\Macromed\Flas\Flash9f.ocx according to the error
message.  


I have the required flash player at C:\Program Files\Adobe\Flex
Builder 3\Player\win\FlashPlayer.exe  ( 9.0.115.0 3.60MB) 

I wish to use the trace() function in my code, but it does not work at
this time.  I'm very new to Flex and have read some of the articles
online; but it's not clear yet what I need to do.

Thank you for your help.




[flexcoders] DefaultProperty metadata

2008-08-18 Thread Fernando Flórez
Hello guys,

I think this is my first post here so hello hello!

Anyway, can you please help me understand why the DefaultProperty metadata 
doesn't always work?

For example:

i have the following:

[mxml]
mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Metadata
[DefaultProperty(test)]
/mx:Metadata

mx:Script
![CDATA[
public function set test(value:*):void{ trace (value); }
]]
/mx:Script
/mx:Canvas

and on a different mxml i have the following:

?xml version=1.0 encoding=utf-8?
local:MyOtherFile xmlns:local=temp.* 
xmlns:mx=http://www.adobe.com/2006/mxml;

mx:Label text=dfsdf /

/local:MyOtherFile

It just doesn't work but if i do the following:

?xml version=1.0 encoding=utf-8?
mx:Canvas xmlns:local=temp.* 
xmlns:mx=http://www.adobe.com/2006/mxml;

local:MyOtherFile
mx:Label text=dfsdf /
/local:MyOtherFile

/mx:Canvas

It does!

Why is that?

Thanks!

|| fernandoflórez - [EMAIL PROTECTED] 
|| funcitoncommunications - justcommunicate 
|| telf: 719.6500 - http://www.funciton.com


Re: [flexcoders] Debugging with standalone Flex3 installation

2008-08-18 Thread Howard Fore
You need to install the Debugger version of the Flash Player. You can
download it at http://www.adobe.com/support/flashplayer/downloads.html

I have had some issues installing Flash over previously installed versions.
The procedure I follow these days is to uninstall, reboot, install (make
sure you have your browsers closed so the plugins get installed properly).

On Sat, Aug 16, 2008 at 8:43 PM, betty80906 [EMAIL PROTECTED] wrote:

 I get the message that Flex Builder cannot locate the required
 debugger version of Flash Player.  The Alert message title bar is
 Installed Flash Player Is Not a Debugger.

 It is looking at the one at
 C:\WINDOWS\system32\Macromed\Flas\Flash9f.ocx according to the error
 message.


 I have the required flash player at C:\Program Files\Adobe\Flex
 Builder 3\Player\win\FlashPlayer.exe  ( 9.0.115.0 3.60MB)

 I wish to use the trace() function in my code, but it does not work at
 this time.  I'm very new to Flex and have read some of the articles
 online; but it's not clear yet what I need to do.

 Thank you for your help.




-- 
Howard Fore, [EMAIL PROTECTED]
The universe tends toward maximum irony. Don't push it. - Jeff Atwood


[flexcoders] Multiple arrays?

2008-08-18 Thread smccran
Hi all,

I'm trying to produce a booking form, where users can select their 
seat. The seats are laid out in a square. I'm currently doing this 
with 4 arrays, one for each side of the square. This is proving very 
complicated tho, as I have a remote object from a cfc returning the 
results from all 4 arrays, and its proving a nightmare to map the 
results back to the images? (full code below.

Anyone have any thoughts on how they would approach this?

Thanks
Shaun



?xml version=1.0?
!-- Simple example to demonstrate the Repeater class. --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute backgroundColor=#00 
backgroundGradientColors=[#22, #22] creationComplete=init
()

mx:Style source=style.css /

mx:Script
![CDATA[
import mx.formatters.CurrencyFormatter;
import mx.controls.FormItemLabel;
import mx.rpc.events.ResultEvent;
import mx.controls.Alert;
  
[Bindable]
private var glowTarget:*;
  
[Bindable]
private var topRow:Array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 
10, 11];

[Bindable]
private var rightCol:Array = [12, 13, 14, 15, 16, 17, 18, 
19, 20, 21, 22];

[Bindable]
private var bottomRow:Array = [33, 32, 31, 30, 29, 28, 
27, 26, 25, 24, 23];

[Bindable]  
private var leftCol:Array = [44, 43, 42, 41, 40, 39, 38, 
37, 36, 35, 34];

private var _ukFormatter:CurrencyFormatter;

private function init():void
{
seatsManager.getAllSeats();

// hide all the elements
resUserName.visible = false
resButton.visible = false
reserved.visible = false
reserved2.visible = false
reserved3.visible = false
createAccountButton.visible = false

reserveLabel.visible = false
reservedText1.visible = false
reservedText2.visible = false

payLabel.visible = false
payText1.visible = false
priceText.visible = false
payButton.visible = false

}

private function changeDisplay(event:Event):void
{
var chosenSeatNo:String = 
event.currentTarget.getRepeaterItem();
//Alert.show(String
(event.currentTarget.getRepeaterItem()));

// build the txt strings
centerLabel.text = 'Seat No. ' + chosenSeatNo;
payLabel.text = 'Pay for Seat No. ' + chosenSeatNo;
reserveLabel.text = 'Reserve Seat No. ' + 
chosenSeatNo;

// control glow of buttons
glowImage.end();
glowTarget = event.currentTarget;
glowImage.target = glowTarget;
glowImage.play();

// do function call 
seatsManager.getChosenSeat
(chosenSeatNo)
}

private function handleFetchResult(event:ResultEvent):void
{
var seatNo:String = String
(event.result.intSeatNumber);
var intId:String = String(event.result.intId);
var intPrice:String = String(event.result.intPrice);
var intReserved:Boolean = 
event.result.intReserved;
var usr_alias:String = 
event.result.usr_alias;
var intPaid:Boolean = 
event.result.intPaid;

_ukFormatter = new CurrencyFormatter
();
_ukFormatter.currencySymbol = £;
_ukFormatter.precision = 2;
_ukFormatter.decimalSeparatorFrom 
= .;
_ukFormatter.decimalSeparatorTo = .;
_ukFormatter.useNegativeSign = true;
_ukFormatter.useThousandsSeparator = 
true;
_ukFormatter.alignSymbol = left;

intPrice = _ukFormatter.format
(intPrice);
priceText.text = 'Price for this seat 
is ' + intPrice;

//seat is already paid for
   

re: [flexcoders] Debugging with standalone Flex3 installation

2008-08-18 Thread Rob Kunkle




I'm not sure about the setup on windows, but there are a couple of  
steps that you have to take to configure flex builder for debugging.


A good resource of the steps you need to take is here:
http://blog.flexexamples.com/2007/08/26/debugging-flex-applications-with-mmcfg-and-flashlogtxt/



Create a file named “mm.cfg” in one of the following locations:

* Windows; C:\Documents and Settings\username\mm.cfg
* OSX; /Library/Application Support/Macromedia/mm.cfg
* Linux; home/username/mm.cfg

Open the newly created mm.cfg file in a text editor and add the  
following text:


ErrorReportingEnable=1
TraceOutputFileEnable=1

The flashlog.txt file will be created in the following location:

* Windows; C:\Documents and Settings\username\Application Data 
\Macromedia\Flash Player\Logs\flashlog.txt
* OSX; /Users/username/Library/Preferences/Macromedia/Flash  
Player/Logs/flashlog.txt

* Linux; home/username/Macromedia/Flash_Player/Logs/flashlog.txt


Hope this helps!



On Aug 16, 2008, at 5:43 PM, betty80906 wrote:


I get the message that Flex Builder cannot locate the required
debugger version of Flash Player. The Alert message title bar is
Installed Flash Player Is Not a Debugger.

It is looking at the one at
C:\WINDOWS\system32\Macromed\Flas\Flash9f.ocx according to the error
message.

I have the required flash player at C:\Program Files\Adobe\Flex
Builder 3\Player\win\FlashPlayer.exe ( 9.0.115.0 3.60MB)

I wish to use the trace() function in my code, but it does not work  
at

this time. I'm very new to Flex and have read some of the articles
online; but it's not clear yet what I need to do.

Thank you for your help.









RE: [flexcoders] state and country dropdown boxes

2008-08-18 Thread Dimitrios Gianninas
Country list you can get from here: 
http://www.iso.org/iso/country_codes/iso_3166_code_lists/english_country_names_and_code_elements.htm
 
Dimitrios Gianninas
RIA Developer and Team Lead
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Scott
Sent: Sunday, August 17, 2008 9:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] state and country dropdown boxes



Does anyone have/care to share a premade country/state/province dropboxes?

I can find a state list, but where does one find an accurate (at least to this 
day anyway...) country list?

 Thanks!

  Scott

 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



[flexcoders] Re: Namespace issue displaying xml in Tree

2008-08-18 Thread Mandy
No, that really isn't the name. I put 'x' so no one could see the 
actual name.

I added:
public var ns2:Namespace = new Namespace
(http://service.xx.xx.xx.xx.xx.xx/;);
default xml namespace = ns2;

but i haven't gotten that to work.

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

 It is really @http://sevice.xxxxx::name
 
  
 
 You may have to declare a namespace and use it instead and maybe 
use a
 labelFunction
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Mandy
 Sent: Thursday, August 14, 2008 12:43 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Namespace issue displaying xml in Tree
 
  
 
 I am trying to display xml data in a tree but can't get the xml to 
 correctly populate the Tree because of the namespace in front of 
the 
 attributes. 
 Here is the xml I am getting back:
 ns2:getProductsResponse 
 xmlns:ns2=http://service.xxx.xx.xx.xx.xx.xx/
 http://service.xxx.xx.xx.xx.xx.xx/ 
 return ns2:size=344 ns2:name=Products ns2:link=Products
 product ns2:name=WEATHER ns2:link=WEATHER
 product ns2:name=ANALYSES ns2:link=WEATHER.ANALYSES
 product ns2:name=CYCLONE 
 ns2:link=WEATHER.ANALYSES.CYCLONE/
 /product
 /product
 /return
 /ns2:getProductsResponse
 
 The tree is defined (I have tried both @name and @ns2:name):
 
 mx:Tree id=Tree width=100% height=100% 
 labelField=@name 
 change=treeChanged(event)
 themeColor=#99
 folderClosedIcon=@Embed(source='images/marble.png')
 folderOpenIcon=@Embed(source='images/marble.png')
 defaultLeafIcon=@Embed(source='images/marble.png') 
 dragEnabled=true
 dragMoveEnabled=false visible=true/
 
 Here is my code to get the xml:
 
 public function getProductsResult(resultObj:Object):void
 {
 private var ns2:Namespace = new Namespace
 (http://service.xxx.xx.xx.xx.xx.xx/
 http://service.xxx.xx.xx.xx.xx.xx/ );
 default xml namespace = ns2;
 var xml:XMLListCollection = new XMLListCollection(new XMLList
 (resultObj.result));
 var productsXML:XMLListCollection = new XMLListCollection
(xml.children
 ());
 }
 
 productsXML contains everything under the ns2:getProductsResponse 
 element.
 
 Any ideas would be greatly appreciated.
 Thanks,
 Amanda





Re: [flexcoders] Debugging with standalone Flex3 installation

2008-08-18 Thread Howard Fore
The steps below (setting up the mm.cfg file) are only needed to have the
trace statements output to a external file, they're not needed to do
debugging otherwise.

On Mon, Aug 18, 2008 at 8:44 AM, Rob Kunkle [EMAIL PROTECTED] wrote:



 I'm not sure about the setup on windows, but there are a couple of steps
 that you have to take to configure flex builder for debugging.

 A good resource of the steps you need to take is here:

 http://blog.flexexamples.com/2007/08/26/debugging-flex-applications-with-mmcfg-and-flashlogtxt/


 
 Create a file named mm.cfg in one of the following locations:

 * Windows; C:\Documents and Settings\username\mm.cfg
 * OSX; /Library/Application Support/Macromedia/mm.cfg
 * Linux; home/username/mm.cfg

 Open the newly created mm.cfg file in a text editor and add the following
 text:

 ErrorReportingEnable=1
 TraceOutputFileEnable=1

 The flashlog.txt file will be created in the following location:

 * Windows; C:\Documents and Settings\username\Application
 Data\Macromedia\Flash Player\Logs\flashlog.txt
 * OSX; /Users/username/Library/Preferences/Macromedia/Flash
 Player/Logs/flashlog.txt
 * Linux; home/username/Macromedia/Flash_Player/Logs/flashlog.txt
 

 Hope this helps!



 On Aug 16, 2008, at 5:43 PM, betty80906 wrote:

 I get the message that Flex Builder cannot locate the required
 debugger version of Flash Player. The Alert message title bar is
 Installed Flash Player Is Not a Debugger.

 It is looking at the one at
 C:\WINDOWS\system32\Macromed\Flas\Flash9f.ocx according to the error
 message.

 I have the required flash player at C:\Program Files\Adobe\Flex
 Builder 3\Player\win\FlashPlayer.exe ( 9.0.115.0 3.60MB)

 I wish to use the trace() function in my code, but it does not work at
 this time. I'm very new to Flex and have read some of the articles
 online; but it's not clear yet what I need to do.

 Thank you for your help.



 




-- 
Howard Fore, [EMAIL PROTECTED]
The universe tends toward maximum irony. Don't push it. - Jeff Atwood


Re: [flexcoders] flex captcha

2008-08-18 Thread Scott
Thanks! I'll take a look at it.

 

 Best regards,

  Scott

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED] Uttarwar
Sent: Monday, August 18, 2008 12:30 AM
To: flexcoders@yahoogroups.com
Subject: {Disarmed} Re: [flexcoders] flex captcha

 

Hey u can try this one which i have created.
I have attached the file...
Thanks and Regards,
Pravin G.Uttarwar,
Software Developer,
Perennial Systems.
Visit Us at:www.perennialsys.com http://www.perennialsys.com 
E-mail: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
Mob. +919371288080 



2008/8/17 Scott [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 

Does anyone have a good/cool flex(flash) captcha generator?

 

 Regards,

   Scott

 

 


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


Re: [flexcoders] Multiple arrays?

2008-08-18 Thread Howard Fore
Why not just use one array and number the seats all the way around the
square?

On Mon, Aug 18, 2008 at 8:39 AM, smccran [EMAIL PROTECTED] wrote:

 Hi all,

 I'm trying to produce a booking form, where users can select their
 seat. The seats are laid out in a square. I'm currently doing this
 with 4 arrays, one for each side of the square. This is proving very
 complicated tho, as I have a remote object from a cfc returning the
 results from all 4 arrays, and its proving a nightmare to map the
 results back to the images? (full code below.

 Anyone have any thoughts on how they would approach this?




-- 
Howard Fore, [EMAIL PROTECTED]
The universe tends toward maximum irony. Don't push it. - Jeff Atwood


[flexcoders] Re: state and country dropdown boxes

2008-08-18 Thread Scott
Super! Thanks!

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of benjidudu
Sent: Monday, August 18, 2008 4:56 AM
To: flexcoders@yahoogroups.com
Subject: {Disarmed} [flexcoders] Re: state and country dropdown boxes

 

http://aralbalkan.com/1351 http://aralbalkan.com/1351 

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

 Does anyone have/care to share a premade country/state/province
 dropboxes?
 
 
 
 I can find a state list, but where does one find an accurate (at least
 to this day anyway...) country list?
 
 
 
 Thanks!
 
 Scott


 


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


[flexcoders] Re: Multiple arrays?

2008-08-18 Thread smccran
That would be much better, but I couldn't figure out how to change 
the layout.

IE I'm using 4, because I can then map each one to a mx:Hbox, or an 
mx:Vbox.

How would you split the array into the 'directions' for display?


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

 Why not just use one array and number the seats all the way around 
the
 square?
 
 On Mon, Aug 18, 2008 at 8:39 AM, smccran [EMAIL PROTECTED] wrote:
 
  Hi all,
 
  I'm trying to produce a booking form, where users can select their
  seat. The seats are laid out in a square. I'm currently doing this
  with 4 arrays, one for each side of the square. This is proving 
very
  complicated tho, as I have a remote object from a cfc returning 
the
  results from all 4 arrays, and its proving a nightmare to map the
  results back to the images? (full code below.
 
  Anyone have any thoughts on how they would approach this?
 
 
 
 
 -- 
 Howard Fore, [EMAIL PROTECTED]
 The universe tends toward maximum irony. Don't push it. - Jeff 
Atwood





[flexcoders] Re: Problem with Subclipse...

2008-08-18 Thread Nicolas Noben
I had the same problem, with Google Code Hosting I shall add.

I ended up doing the bin with SCP (mac) or tortoise (win).


Nicolas Noben
http://noben.org/
http://idletogether.com/


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

 Hello all -
 
 I'm having a problem with with subclipse and flex builder 3, and I was
 wondering if anyone else had run into similar issues.
 
 Basically all of my source directories in a project (src, libs,
 html-template) sync up with the subversion server without issue. But
 the binary directories (bin-release, bin-debug) don't. 
 
 I've tried different ways of creating the project and have attempted
 working directly from the command line, but nothing seems to work as
 expected. I just wanted to check if this a known issue / feature or if
 I am out on the edge of the curve with this one.
 
 Thanks!






[flexcoders] flexcoders] Re: flex captcha

2008-08-18 Thread Scott
I've got one for coldfusion.  However, I'd like to animate the captcha.
And since it's flash, I should be able to. :-)

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of haykelbj
Sent: Monday, August 18, 2008 2:28 AM
To: flexcoders@yahoogroups.com
Subject: {Disarmed} [flexcoders] Re: flex captcha

 

If you need a captcha, it generally means that you communicate with a
server. You can generally use any captcha creation tool that works
with your server's technology.

As an example, we use PHP on the server side and for the captcha
generation we use a slightly modified version of this simple script:
http://www.white-hat-web-design.co.uk/articles/php-captcha.php
http://www.white-hat-web-design.co.uk/articles/php-captcha.php 

The modification we did is:
1. Add this line before the class declaration:
$font = realpath('monofont.ttf');

2. Remove this line:
var $font = 'monofont.ttf';

3. Add this to the beginning of the constructor:
global $font;

In the Flex application simply create an image control with the source
set to something like this:
CaptchaSecurityImages.php?width=100height=40characters=5

Hope it helps,
Haykel

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

 Does anyone have a good/cool flex(flash) captcha generator?
 
 
 
 Regards,
 
 Scott


 


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


[flexcoders] Re: Data binding

2008-08-18 Thread Amy
--- In flexcoders@yahoogroups.com, markgoldin_2000 
[EMAIL PROTECTED] wrote:

 I have DGs and I am assigning dataProviders to these controls at run-
 time. All these datProviders are XML. The xml has more data that is 
 being shown in DGs. I am changing some of that non visible data 
 programmatically like this:
 DataGrid(DGObject).dataProvider[selectedIndex].trainplan = addToPlan;
 Should I expect that initial XML that was used to setup dataProvider 
is 
 getitng changed as well?

Yes.



[flexcoders] Menu.setStyle('openDuration', 0) will break Alert.show() - bug?

2008-08-18 Thread bjorn
I'm wondering if this is a bug or not .. I accidently discovered that
Alert.show() called by a menu would break if the menu had openDuration=0.

Check it out here:
http://www.juicability.com/entry/setting-openduration-to-0-on-menu-will-break-alert/

Is this a bug?

-- 


http://www.juicability.com - flex blog
http://www.43min.com - funny movies


[flexcoders] LCDS 2.6 + Hibernate: problem deleting items

2008-08-18 Thread Zdenek Mikan
I have got big problems deleting items from my managed collections:

When I delete item through ds.deleteItem and then call the ds.commit, 
after return from the commit operation my item is back in the 
ArrayCollection. The second time this item is deleted properly.

When I delete item through ac.removeItemAt the item is again restored by 
commit, but this time it is impossible to delete this item by the second 
call.

When I delete item from the collection and add another item into the 
same collection, the commit fails and the server returns error The item 
was not in the cache...

Does anyone know how to fix these problems? My items have to be 
improperly cached somewhere...

TIA Zdenek



Re: [flexcoders] Re: Problem with Subclipse...

2008-08-18 Thread Sefi Ninio
Yeah I have the same issues, and use tortoise to commit externally...

On Mon, Aug 18, 2008 at 3:53 PM, Nicolas Noben [EMAIL PROTECTED]wrote:

   I had the same problem, with Google Code Hosting I shall add.

 I ended up doing the bin with SCP (mac) or tortoise (win).

 Nicolas Noben
 http://noben.org/
 http://idletogether.com/


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Rob
 Kunkle [EMAIL PROTECTED] wrote:
 
  Hello all -
 
  I'm having a problem with with subclipse and flex builder 3, and I was
  wondering if anyone else had run into similar issues.
 
  Basically all of my source directories in a project (src, libs,
  html-template) sync up with the subversion server without issue. But
  the binary directories (bin-release, bin-debug) don't.
 
  I've tried different ways of creating the project and have attempted
  working directly from the command line, but nothing seems to work as
  expected. I just wanted to check if this a known issue / feature or if
  I am out on the edge of the curve with this one.
 
  Thanks!
 

  



Re: [flexcoders] Problem with Subclipse...

2008-08-18 Thread Johannes Nel
you should not commit your bin and bin debug to svn, we have an exclude rule
on it to enforce this.

On Mon, Aug 18, 2008 at 2:10 PM, Rob Kunkle [EMAIL PROTECTED] wrote:

   Hello all -

 I'm having a problem with with subclipse and flex builder 3, and I was
 wondering if anyone else had run into similar issues.

 Basically all of my source directories in a project (src, libs,
 html-template) sync up with the subversion server without issue. But
 the binary directories (bin-release, bin-debug) don't.

 I've tried different ways of creating the project and have attempted
 working directly from the command line, but nothing seems to work as
 expected. I just wanted to check if this a known issue / feature or if
 I am out on the edge of the curve with this one.

 Thanks!


  




-- 
j:pn
\\no comment


Re: [flexcoders] Re: Multiple arrays?

2008-08-18 Thread Howard Fore
I think I'd use a grid instead of repeater/HBox/VBox combinations, esp since
you know the seating arrangments are going to be in a square.

On Mon, Aug 18, 2008 at 8:52 AM, smccran [EMAIL PROTECTED] wrote:

 That would be much better, but I couldn't figure out how to change
 the layout.

 IE I'm using 4, because I can then map each one to a mx:Hbox, or an
 mx:Vbox.

 How would you split the array into the 'directions' for display?




-- 
Howard Fore, [EMAIL PROTECTED]
The universe tends toward maximum irony. Don't push it. - Jeff Atwood


[flexcoders] Flex is time consuming

2008-08-18 Thread litesh_b321
Hi gyus 
i have around 16000 line of code 
which is already broke up in two mxml file and five class file 
still what ever i want to change in my application flex is taking time 
why so it is happening 
i turn off my auto refresh option ,auto built option 

Plz Help me out 
ThanX




Re: [flexcoders] Flex is time consuming

2008-08-18 Thread Howard Fore
Sounds like you need to break it down further...

On Mon, Aug 18, 2008 at 9:30 AM, litesh_b321 [EMAIL PROTECTED] wrote:

 Hi gyus
 i have around 16000 line of code
 which is already broke up in two mxml file and five class file



-- 
Howard Fore, [EMAIL PROTECTED]
The universe tends toward maximum irony. Don't push it. - Jeff Atwood


Re: [flexcoders] Flex is time consuming

2008-08-18 Thread Laurent Cozic
Open the Task Manager while your are making changes and check if one of the 
processes is taking too much CPU. 

Now and then, I have one of the svchost.exe processes taking 99% CPU each time 
I press a key in Flex. Once I kill the process everything goes back to normal.


--
Laurent Cozic

Flash, Flex and Web Application development
http://pogopixels.com

--- On Mon, 8/18/08, litesh_b321 [EMAIL PROTECTED] wrote:
From: litesh_b321 [EMAIL PROTECTED]
Subject: [flexcoders] Flex is time consuming
To: flexcoders@yahoogroups.com
Date: Monday, August 18, 2008, 1:30 PM











Hi gyus 

i have around 16000 line of code 

which is already broke up in two mxml file and five class file 

still what ever i want to change in my application flex is taking time 

why so it is happening 

i turn off my auto refresh option ,auto built option 



Plz Help me out 

ThanX




  




 

















  

[flexcoders] Re: Flex is time consuming

2008-08-18 Thread dbronk
Although I agree that 16000 lines of code broken between only 7
classes certainly seems like a further break down of code into smaller
classes is necessary, I also believe that Adobe needs to kick it into
gear and come out with a patch ASAP that addresses the, from my
experience, the absolute slowest compiler on the planet.  Also with
that, they need to get a patch out that doesn't go into a full
workspace build just because I make a small change to a class.  I've
even simply added a space and saved which caused a full workspace
build.  To me, placing this as a top priority for Flex 4 is great and
I thank them for that, but that doesn't help me now.  My single
greatest productivity killer right now is having to wait 60-90 seconds
everytime I save a file.



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

 Sounds like you need to break it down further...
 
 On Mon, Aug 18, 2008 at 9:30 AM, litesh_b321 [EMAIL PROTECTED] wrote:
 
  Hi gyus
  i have around 16000 line of code
  which is already broke up in two mxml file and five class file
 
 
 
 -- 
 Howard Fore, [EMAIL PROTECTED]
 The universe tends toward maximum irony. Don't push it. - Jeff Atwood





Re: [flexcoders] Re: Flex is time consuming

2008-08-18 Thread Johannes Nel
I also believe that Adobe needs to kick it into
gear and come out with a patch ASAP that addresses the, from my
experience, the absolute slowest compiler on the planet.
you never used flash then. mx2004 anyone...

On Mon, Aug 18, 2008 at 3:49 PM, dbronk [EMAIL PROTECTED] wrote:

   Although I agree that 16000 lines of code broken between only 7
 classes certainly seems like a further break down of code into smaller
 classes is necessary, I also believe that Adobe needs to kick it into
 gear and come out with a patch ASAP that addresses the, from my
 experience, the absolute slowest compiler on the planet. Also with
 that, they need to get a patch out that doesn't go into a full
 workspace build just because I make a small change to a class. I've
 even simply added a space and saved which caused a full workspace
 build. To me, placing this as a top priority for Flex 4 is great and
 I thank them for that, but that doesn't help me now. My single
 greatest productivity killer right now is having to wait 60-90 seconds
 everytime I save a file.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Howard
 Fore [EMAIL PROTECTED] wrote:
 
  Sounds like you need to break it down further...
 
  On Mon, Aug 18, 2008 at 9:30 AM, litesh_b321 [EMAIL PROTECTED] wrote:
 
   Hi gyus
   i have around 16000 line of code
   which is already broke up in two mxml file and five class file
  
 
 
  --
  Howard Fore, [EMAIL PROTECTED]
  The universe tends toward maximum irony. Don't push it. - Jeff Atwood
 

  




-- 
j:pn
\\no comment


Re: [flexcoders] Problem with Subclipse...

2008-08-18 Thread Rob Kunkle

hmm...

Is there any way to turn the exclude rule off? I didn't see it in the  
fb preferences? It would be great if this were documented somewhere.  
This might be a stupid newbie question, but could you explain why this  
should be excluded?


thanks in advance,
rob


On Aug 18, 2008, at 6:19 AM, Johannes Nel wrote:



you should not commit your bin and bin debug to svn, we have an  
exclude rule on it to enforce this.



On Mon, Aug 18, 2008 at 2:10 PM, Rob Kunkle [EMAIL PROTECTED]  
wrote:

Hello all -

I'm having a problem with with subclipse and flex builder 3, and I was
wondering if anyone else had run into similar issues.

Basically all of my source directories in a project (src, libs,
html-template) sync up with the subversion server without issue. But
the binary directories (bin-release, bin-debug) don't.

I've tried different ways of creating the project and have attempted
working directly from the command line, but nothing seems to work as
expected. I just wanted to check if this a known issue / feature or if
I am out on the edge of the curve with this one.

Thanks!






--
j:pn
\\no comment






Re: [flexcoders] Problem with Subclipse...

2008-08-18 Thread Johannes Nel
its a svn command. svn ignore path/path if I recall.subclipse should have
the functionality it built in, but since you have already committed that
stuff, you need to delete it from svn and then do an ignore on the folder.

its a pain once you have committed it.


On Mon, Aug 18, 2008 at 3:56 PM, Rob Kunkle [EMAIL PROTECTED] wrote:

   hmm...

 Is there any way to turn the exclude rule off? I didn't see it in the fb
 preferences? It would be great if this were documented somewhere. This might
 be a stupid newbie question, but could you explain why this should be
 excluded?

 thanks in advance,
 rob


 On Aug 18, 2008, at 6:19 AM, Johannes Nel wrote:


 you should not commit your bin and bin debug to svn, we have an exclude
 rule on it to enforce this.


 On Mon, Aug 18, 2008 at 2:10 PM, Rob Kunkle [EMAIL PROTECTED] wrote:

 Hello all -

 I'm having a problem with with subclipse and flex builder 3, and I was
 wondering if anyone else had run into similar issues.

 Basically all of my source directories in a project (src, libs,
 html-template) sync up with the subversion server without issue. But
 the binary directories (bin-release, bin-debug) don't.

 I've tried different ways of creating the project and have attempted
 working directly from the command line, but nothing seems to work as
 expected. I just wanted to check if this a known issue / feature or if
 I am out on the edge of the curve with this one.

 Thanks!





 --
 j:pn
 \\no comment


  




-- 
j:pn
\\no comment


[flexcoders] Flex Scheduling framework

2008-08-18 Thread hworke

  Hi,

  can someone point me to a good example
  of flex scheduling framework? I googled
  for it many times but could not find one.
  Only examples that I found were with 
  flexlib.

  Regards...



[flexcoders] Re: LCDS 2.6 + Hibernate: problem deleting items

2008-08-18 Thread zdenekmikan
More details to first issue (delete item with ds.deleteItem):

The item is in fact deleted from the database, just the display in my
application is wrong - when I restart application, the deleted item is
really deleted. 

In client log (in Flex Builder) there are following lines after commit:

Updating cached item for: Parent#:#254 excluding properties: null
Adding item to cache: ChildItem#:#272 destination: ChildDestination
About to dispatch commit result events

where 272 is the id of the item I am trying to delete.

TIA for any help.

Zdenek M

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

 I have got big problems deleting items from my managed collections:
 
 When I delete item through ds.deleteItem and then call the ds.commit, 
 after return from the commit operation my item is back in the 
 ArrayCollection. The second time this item is deleted properly.
 
 When I delete item through ac.removeItemAt the item is again
restored by 
 commit, but this time it is impossible to delete this item by the
second 
 call.
 
 When I delete item from the collection and add another item into the 
 same collection, the commit fails and the server returns error The
item 
 was not in the cache...
 
 Does anyone know how to fix these problems? My items have to be 
 improperly cached somewhere...
 
 TIA Zdenek





RE: [flexcoders] Re: mx:HTTPService or URLRequest ?

2008-08-18 Thread Tracy Spratt
http://livedocs.adobe.com/flash/9.0/main/0320.html

 

About middle of doc.  It was harder to find than it should have been.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markflex2007
Sent: Sunday, August 17, 2008 1:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: mx:HTTPService or URLRequest ?

 

Please help me and I can not find the demo.

Thanks

M 

 



[flexcoders] getChildByName using it to get the value of a textbox

2008-08-18 Thread Jason B
when using getchildbyname variable i've not been able to get the value
can someone please post an example of how to get a value using
getChildByName.



var test:DisplayObject = this.getChildByName(inputtext + i);
  




RE: [flexcoders] Format XML

2008-08-18 Thread Tracy Spratt
If your XML structure is the same a the Tree structure you want, then
you can format the Tree nodes using a custom Item renderer.  If you go
this route, find an example to modify, do not attempt to build it from
scratch.  I have an example on www.cflex.net http://www.cflex.net/ .

 

If your XML structure is different than what you want in the tree, you
have two options.  One, pre-process the XML into the format you want, or
two, create a custom tree item descriptor.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of litesh_b321
Sent: Monday, August 18, 2008 4:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Format XML

 

Hi,
i am binding Xml to flex application 
i want To format XMl while displaying in flex application 
plz check the link for more information 

www.digitalpaperworks.com/Knuth/Demo/KNUTH.html

I want to format bullets which getting in description 
I want to use different color for mx:tree child node 
ThanX 

 



RE: {Disarmed} [flexcoders] Compare two XMLs

2008-08-18 Thread Tracy Spratt
Yes, what complicates this is the question of how do you define
identical?

 

If the XML objects are in fact identical, you could do
xml1.toXMLString() == xml2.toXMLString()

 

But the two objects can be practically identical, and this compare can
be false.

 

Further, if some nodes are simply in a different order, would you still
consider the two objects identical?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott
Sent: Sunday, August 17, 2008 7:40 PM
To: flexcoders@yahoogroups.com
Subject: RE: {Disarmed} [flexcoders] Compare two XMLs

 

You should be able to use the as3 funtion, contains() (see
http://livedocs.adobe.com/flex/3/langref/XML.html
http://livedocs.adobe.com/flex/3/langref/XML.html ).  You would have
to read both XML files then use a loop to go through items

 

bResult = xml1.item[nLoop].contains(xml2.item[nLoop]);

if (bResult == false )

{

{Not equal do your handler, or fire an event, etc...}

}

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Sunday, August 17, 2008 5:01 PM
To: flexcoders@yahoogroups.com
Subject: {Disarmed} [flexcoders] Compare two XMLs

 

If I have two large xml objects can I compare them whether they are 
identical?

Thanks


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 

 



Re: [flexcoders] Problem with Subclipse...

2008-08-18 Thread Nik Derewianka
The ignore option operates on a file/folder level in your working  
copy.  Right click on an item in the Flex Navigator pane, go down to  
the Team menu and then select Add to svn:ignore.

With regards to why something should be excluded - mainly because  
there is no point.  When you commit a source revision, it should  
contain everything needed to create the output binaries (source files,  
resources, compiler/project settings etc).  The only thing you gain by  
putting your output folders under version control is to have more  
stuff bloating up your repository.   Even more annoyingly, you will  
end up with a dirty working copy that gets committed where nothing has  
changed except that someone rebuilt the project - this clutters your  
history and forces other team members to do an update where non was  
needed.  This is not specific advice for Flex, this is pretty much  
given for any development environment under version control.

Regards,
Nik


RE: [flexcoders] Menu.setStyle('openDuration', 0) will break Alert.show() - bug?

2008-08-18 Thread Alex Harui
Sounds like it.  Feel free to file it

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bjorn
Sent: Monday, August 18, 2008 5:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Menu.setStyle('openDuration', 0) will break
Alert.show() - bug?

 

I'm wondering if this is a bug or not .. I accidently discovered that
Alert.show() called by a menu would break if the menu had
openDuration=0.

 

Check it out here:

http://www.juicability.com/entry/setting-openduration-to-0-on-menu-will-
break-alert/
http://www.juicability.com/entry/setting-openduration-to-0-on-menu-will
-break-alert/ 

 

Is this a bug?

-- 


http://www.juicability.com http://www.juicability.com  - flex blog
http://www.43min.com http://www.43min.com  - funny movies

 



RE: [flexcoders] Re: Namespace issue displaying xml in Tree

2008-08-18 Thread Alex Harui
I wouldn'tuse default namespace, but once you have the namespace, you
should be able to access it.  @ns2::name

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mandy
Sent: Monday, August 18, 2008 5:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Namespace issue displaying xml in Tree

 

No, that really isn't the name. I put 'x' so no one could see the 
actual name.

I added:
public var ns2:Namespace = new Namespace
(http://service.xx.xx.xx.xx.xx.xx/ http://service.xx.xx.xx.xx.xx.xx/
);
default xml namespace = ns2;

but i haven't gotten that to work.

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

 It is really @http://sevice.xxxxx::name
http://sevice.xxxxx::name 
 
 
 
 You may have to declare a namespace and use it instead and maybe 
use a
 labelFunction
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Mandy
 Sent: Thursday, August 14, 2008 12:43 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Namespace issue displaying xml in Tree
 
 
 
 I am trying to display xml data in a tree but can't get the xml to 
 correctly populate the Tree because of the namespace in front of 
the 
 attributes. 
 Here is the xml I am getting back:
 ns2:getProductsResponse 
 xmlns:ns2=http://service.xxx.xx.xx.xx.xx.xx/
http://service.xxx.xx.xx.xx.xx.xx/ 
 http://service.xxx.xx.xx.xx.xx.xx/
http://service.xxx.xx.xx.xx.xx.xx/  
 return ns2:size=344 ns2:name=Products ns2:link=Products
 product ns2:name=WEATHER ns2:link=WEATHER
 product ns2:name=ANALYSES ns2:link=WEATHER.ANALYSES
 product ns2:name=CYCLONE 
 ns2:link=WEATHER.ANALYSES.CYCLONE/
 /product
 /product
 /return
 /ns2:getProductsResponse
 
 The tree is defined (I have tried both @name and @ns2:name):
 
 mx:Tree id=Tree width=100% height=100% 
 labelField=@name 
 change=treeChanged(event)
 themeColor=#99
 folderClosedIcon=@Embed(source='images/marble.png')
 folderOpenIcon=@Embed(source='images/marble.png')
 defaultLeafIcon=@Embed(source='images/marble.png') 
 dragEnabled=true
 dragMoveEnabled=false visible=true/
 
 Here is my code to get the xml:
 
 public function getProductsResult(resultObj:Object):void
 {
 private var ns2:Namespace = new Namespace
 (http://service.xxx.xx.xx.xx.xx.xx/
http://service.xxx.xx.xx.xx.xx.xx/ 
 http://service.xxx.xx.xx.xx.xx.xx/
http://service.xxx.xx.xx.xx.xx.xx/  );
 default xml namespace = ns2;
 var xml:XMLListCollection = new XMLListCollection(new XMLList
 (resultObj.result));
 var productsXML:XMLListCollection = new XMLListCollection
(xml.children
 ());
 }
 
 productsXML contains everything under the ns2:getProductsResponse 
 element.
 
 Any ideas would be greatly appreciated.
 Thanks,
 Amanda


 



RE: [flexcoders] creating a custom context menu on right click

2008-08-18 Thread Alex Harui
No, sorry

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of venkateswarlu naidu
Sent: Saturday, August 16, 2008 9:48 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] creating a custom context menu on right click

 

Hi Alex,

Thanks for the reply, but i want to remove the 'settings' option also. I
want to show only my custom options.
Is there any way to achive that, like capturing the right click event
and showing our own component like titlewindow.

 

Thanks,
Venkat.

 

 

- Original Message 
From: Alex Harui [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Saturday, 16 August, 2008 10:26:28 PM
Subject: RE: [flexcoders] creating a custom context menu on right click

You can remove everything except the Settings...  Call hideBuiltInItems

 



From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ]
On Behalf Of venkateswarlu naidu
Sent: Saturday, August 16, 2008 8:52 AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] creating a custom context menu on right click

 

Hi,

I dont want to show the options like 'Show redraw regions', 'settings'
on right click on the datagrid. i have to show my own options and have
to capture the selected row of the datagrid. In the documentation i saw
that we cant remove those options, but i want to remove them completely.


How can i achieve this requirement, any help is appreciated.

Thanks in advance,
Venkat.

Add more friends to your messenger and enjoy! Go to http://in.messenger
.yahoo.com/ invite/ http://in.messenger.yahoo.com/invite/ 







Unlimited freedom, unlimited storage. Get it now
http://in.rd.yahoo.com/tagline_mail_2/*http:/help.yahoo.com/l/in/yahoo/
mail/yahoomail/tools/tools-08.html/ 

 



[flexcoders] Re: Flex is time consuming

2008-08-18 Thread JWOpitz
I also believe that Adobe needs to kick it into gear and come out
with a patch ASAP that addresses the, from my experience, the absolute
slowest compiler on the planet.

If you haven't already, learn to use the command-line compiler and an
ANT script then.  I don't think it is nearly as slow as the Flex
Builder compiler.  3-7 seconds to compile via ANT is pretty fast to me.



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

 Although I agree that 16000 lines of code broken between only 7
 classes certainly seems like a further break down of code into smaller
 classes is necessary, I also believe that Adobe needs to kick it into
 gear and come out with a patch ASAP that addresses the, from my
 experience, the absolute slowest compiler on the planet.  Also with
 that, they need to get a patch out that doesn't go into a full
 workspace build just because I make a small change to a class.  I've
 even simply added a space and saved which caused a full workspace
 build.  To me, placing this as a top priority for Flex 4 is great and
 I thank them for that, but that doesn't help me now.  My single
 greatest productivity killer right now is having to wait 60-90 seconds
 everytime I save a file.
 
 
 
 --- In flexcoders@yahoogroups.com, Howard Fore howard.fore@ wrote:
 
  Sounds like you need to break it down further...
  
  On Mon, Aug 18, 2008 at 9:30 AM, litesh_b321 litesh_b321@ wrote:
  
   Hi gyus
   i have around 16000 line of code
   which is already broke up in two mxml file and five class file
  
  
  
  -- 
  Howard Fore, howard.fore@
  The universe tends toward maximum irony. Don't push it. - Jeff
Atwood
 





[flexcoders] warning: unable to bind to property 'XXX' on class 'XML' (class is not an IEventDispatcher)

2008-08-18 Thread ammu nath
Hello All,
  can some body help me with this warning  please.
Thanks 
Amar



  Unlimited freedom, unlimited storage. Get it now, on 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/

Re: [flexcoders] getChildByName using it to get the value of a textbox

2008-08-18 Thread Nik Derewianka


You need to cast it to the type of object you want to operate on:

var test:TextBox = this.getChildByName(inputtext + 1) as TextBox;

or

var test:TextBox = TextBox(this.getChildByName(inputtext + 1));

The first form will return null if it cannot cast the displayObject to  
that type as opposed to the second which will cause an error.

Of course the Eclipse help system is so utterly useless that searching  
for 'as' will return nothing and displayObject will not be in the  
first 3 items you search for.

Regards,
Nik


[flexcoders] Sizing Components

2008-08-18 Thread Amy
Is there any way to tell from a component how much space the parent 
container has allocated to it?  My goal is to try to get a TileList to 
re-evaluate its size if any of its children are larger than the first 
child, which is the only one it measures.  Conversely, if there is a 
way to get the TileList to use the largest tile size instead of the 
first tile size, that would probably work as well.

Thanks;

Amy



Re: [flexcoders] Flash Player 10 RC

2008-08-18 Thread Sherif Abdou
anyone?
  - Original Message - 
  From: Sherif Abdou 
  To: flexcoders@yahoogroups.com 
  Sent: Saturday, August 16, 2008 7:20 PM
  Subject: [flexcoders] Flash Player 10 RC



  Anyone Having trouble with the Debugger? When I was using the Beta2, The 
Debugger was 10. Now with the RC Flash Player the Debugger is not 10 but 9r115. 

   

[flexcoders] Re: Multiple arrays?

2008-08-18 Thread Amy
--- In flexcoders@yahoogroups.com, Howard Fore [EMAIL PROTECTED] 
wrote:

 I think I'd use a grid instead of repeater/HBox/VBox combinations, 
esp since
 you know the seating arrangments are going to be in a square.

A Canvas with a Constraint-based layout would also work, or a repeater 
that just looks at currentIndex and calculates the position based on 
that.  I suspect this might be a lighter weight solution.

JMO;

Amy



[flexcoders] LCDS vs FMIS for flex-based text chat

2008-08-18 Thread p smith
i am working with a team planning development on a new flex app. the app will 
have multiple text chat rooms and video chat too.

for video the architecture must include flash media interactive server (FMIS), 
so team members assume we will use FMIS for the text messaging.

i am wondering if livecycle data services (LCDS) might have any advantages over 
FMIS for text chat?

does anyone here have experience with both that they can comment on? or links 
to articles or blog posts that might compare the pros and cons of LCDS vs FMIS 
in real time messaging apps? maybe even including BlazeDS in the analysis too?

any thoughts or assistance will be appreciated.

p


  

[flexcoders] Re: getChildByName using it to get the value of a textbox

2008-08-18 Thread Jason B

Thanks a lot for the reply...

turns out i get an error 1009 when i try to something as simple as an
alert

 var test:TextInput = TextInput(this.getChildByName(inputtext + a));
Alert.show(test.text.toString());


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

 
 
 You need to cast it to the type of object you want to operate on:
 
 var test:TextBox = this.getChildByName(inputtext + 1) as TextBox;
 
 or
 
 var test:TextBox = TextBox(this.getChildByName(inputtext + 1));
 
 The first form will return null if it cannot cast the displayObject to  
 that type as opposed to the second which will cause an error.
 
 Of course the Eclipse help system is so utterly useless that searching  
 for 'as' will return nothing and displayObject will not be in the  
 first 3 items you search for.
 
 Regards,
 Nik





[flexcoders] Re: Multiple arrays?

2008-08-18 Thread Tim Hoff

Hi Shaun,

Last year I lead a project, for a major on-line ticket company, which is
currently being used to select and sell seats to sporting events.  The
approach used there, was to maintain all of the seats in a single array
(ArrayCollection).  Each seat has a unique id field; so that updating
the server and checking availability was simplified.  In order to know
where the seats were located, in relationship to each other, a reference
x/y point was used to position (draw) each individual seat.  This
reference point was contained in the data.  For each seat, a custom
UIComponent was drawn on the seat-map canvas; when the data was returned
from the server.  This allowed for easy manipulation of the seat's
state; for user interactions like mouse over and select.  This approach
also allows the client to easily customize the layout of the seat-maps;
in a wysiwyg venue builder application.  Hope that this gives you some
ideas.

-TH

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

 Hi all,

 I'm trying to produce a booking form, where users can select their
 seat. The seats are laid out in a square. I'm currently doing this
 with 4 arrays, one for each side of the square. This is proving very
 complicated tho, as I have a remote object from a cfc returning the
 results from all 4 arrays, and its proving a nightmare to map the
 results back to the images? (full code below.

 Anyone have any thoughts on how they would approach this?

 Thanks
 Shaun

 

 ?xml version=1.0?
 !-- Simple example to demonstrate the Repeater class. --
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute backgroundColor=#00
 backgroundGradientColors=[#22, #22] creationComplete=init
 ()

 mx:Style source=style.css /

 mx:Script
 ![CDATA[
 import mx.formatters.CurrencyFormatter;
 import mx.controls.FormItemLabel;
 import mx.rpc.events.ResultEvent;
 import mx.controls.Alert;

 [Bindable]
 private var glowTarget:*;

 [Bindable]
 private var topRow:Array = [1, 2, 3, 4, 5, 6, 7, 8, 9,
 10, 11];

 [Bindable]
 private var rightCol:Array = [12, 13, 14, 15, 16, 17, 18,
 19, 20, 21, 22];

 [Bindable]
 private var bottomRow:Array = [33, 32, 31, 30, 29, 28,
 27, 26, 25, 24, 23];

 [Bindable]
 private var leftCol:Array = [44, 43, 42, 41, 40, 39, 38,
 37, 36, 35, 34];

 private var _ukFormatter:CurrencyFormatter;

 private function init():void
 {
 seatsManager.getAllSeats();

 // hide all the elements
 resUserName.visible = false
 resButton.visible = false
 reserved.visible = false
 reserved2.visible = false
 reserved3.visible = false
 createAccountButton.visible = false

 reserveLabel.visible = false
 reservedText1.visible = false
 reservedText2.visible = false

 payLabel.visible = false
 payText1.visible = false
 priceText.visible = false
 payButton.visible = false

 }

 private function changeDisplay(event:Event):void
 {
 var chosenSeatNo:String =
 event.currentTarget.getRepeaterItem();
 //Alert.show(String
 (event.currentTarget.getRepeaterItem()));

 // build the txt strings
 centerLabel.text = 'Seat No. ' + chosenSeatNo;
 payLabel.text = 'Pay for Seat No. ' + chosenSeatNo;
 reserveLabel.text = 'Reserve Seat No. ' +
 chosenSeatNo;

 // control glow of buttons
 glowImage.end();
 glowTarget = event.currentTarget;
 glowImage.target = glowTarget;
 glowImage.play();

 // do function call
 seatsManager.getChosenSeat
 (chosenSeatNo)
 }

 private function handleFetchResult(event:ResultEvent):void
 {
 var seatNo:String = String
 (event.result.intSeatNumber);
 var intId:String = String(event.result.intId);
 var intPrice:String = String(event.result.intPrice);
 var intReserved:Boolean =
 event.result.intReserved;
 var usr_alias:String =
 event.result.usr_alias;
 var intPaid:Boolean =
 event.result.intPaid;

 _ukFormatter = new CurrencyFormatter
 ();
 _ukFormatter.currencySymbol = £;
 _ukFormatter.precision = 2;
 _ukFormatter.decimalSeparatorFrom
 = .;
 _ukFormatter.decimalSeparatorTo = .;
 _ukFormatter.useNegativeSign = true;
 _ukFormatter.useThousandsSeparator =
 true;
 _ukFormatter.alignSymbol = left;

 intPrice = _ukFormatter.format
 (intPrice);
 priceText.text = 'Price for this seat
 is ' + intPrice;

 //seat is already paid for
 if (intPaid)
 {
 // change values of text
 thats visible
 reserved.text = 'This seat
 is unavailable.'
 reserved2.text = 'It has been
 booked by ' + usr_alias;

 reserved.visible = true
 reserved2.visible = true

 // set other elements to
 hidden
 reserved3.visible = false
 resUserName.visible = false
 resButton.visible = false
 createAccountButton.visible =
 false
 payLabel.visible = false
 payText1.visible = false
 payButton.visible = false

 reserveLabel.visible = false
 reservedText1.visible = false
 reservedText2.visible = false
 priceText.visible = false

 }

 // not paid for
 else
 {

 // if reserved
 if (intReserved)
 {
 // change text
 reserved.text = 'This
 seat is reserved by ' + usr_alias;
 reserved2.text
 = 'This reservation can be removed, if you book 

[flexcoders] Re: Access column chart items

2008-08-18 Thread Tim Hoff

Hi there,

Your question is a little vague; concerning the use-case.  But, this
might help get you moving in the right direction:

import mx.charts.events.ChartItemEvent;

private function selectItem(e:ChartItemEvent) : void
{
 myTextArea.text = e.hitData.item.myField.toString();
}

mx:ColumnChart itemClick=selectItem(event)

-TH

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

 Hi all,

 I have a column chart and i want to access the columns values in order
 to display them in a textarea. How can i do this?

 Thanks in advance.





[flexcoders] Re: Namespace issue displaying xml in Tree

2008-08-18 Thread Tim Hoff

Hi Amanda,

I usually just strip out the namespace junk; when the result is
returned.  Something like:

public function onResult(event: * = null) : void
{
  var myXML : XML = event.result as XML;
  model.myXML = new
XML(myXML.toXMLString().replace(xmlns:ns2=http://service.xxx.xx.xx.xx.\
xx.xx/,))
}

You would probably want to get rid of all of the ns2: stuff as well;
using a RegEx replace.  Just one approach.

-TH

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

 No, that really isn't the name. I put 'x' so no one could see the
 actual name.

 I added:
 public var ns2:Namespace = new Namespace
 (http://service.xx.xx.xx.xx.xx.xx/;);
 default xml namespace = ns2;

 but i haven't gotten that to work.

 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  It is really @http://sevice.xxxxx::name
 
 
 
  You may have to declare a namespace and use it instead and maybe
 use a
  labelFunction
 
 
 
  
 
  From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
  Behalf Of Mandy
  Sent: Thursday, August 14, 2008 12:43 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Namespace issue displaying xml in Tree
 
 
 
  I am trying to display xml data in a tree but can't get the xml to
  correctly populate the Tree because of the namespace in front of
 the
  attributes.
  Here is the xml I am getting back:
  ns2:getProductsResponse
  xmlns:ns2=http://service.xxx.xx.xx.xx.xx.xx/
  http://service.xxx.xx.xx.xx.xx.xx/ 
  return ns2:size=344 ns2:name=Products ns2:link=Products
  product ns2:name=WEATHER ns2:link=WEATHER
  product ns2:name=ANALYSES ns2:link=WEATHER.ANALYSES
  product ns2:name=CYCLONE
  ns2:link=WEATHER.ANALYSES.CYCLONE/
  /product
  /product
  /return
  /ns2:getProductsResponse
 
  The tree is defined (I have tried both @name and @ns2:name):
 
  mx:Tree id=Tree width=100% height=100%
  labelField=@name
  change=treeChanged(event)
  themeColor=#99
  folderClosedIcon=@Embed(source='images/marble.png')
  folderOpenIcon=@Embed(source='images/marble.png')
  defaultLeafIcon=@Embed(source='images/marble.png')
  dragEnabled=true
  dragMoveEnabled=false visible=true/
 
  Here is my code to get the xml:
 
  public function getProductsResult(resultObj:Object):void
  {
  private var ns2:Namespace = new Namespace
  (http://service.xxx.xx.xx.xx.xx.xx/
  http://service.xxx.xx.xx.xx.xx.xx/ );
  default xml namespace = ns2;
  var xml:XMLListCollection = new XMLListCollection(new XMLList
  (resultObj.result));
  var productsXML:XMLListCollection = new XMLListCollection
 (xml.children
  ());
  }
 
  productsXML contains everything under the ns2:getProductsResponse
  element.
 
  Any ideas would be greatly appreciated.
  Thanks,
  Amanda
 





RE: [flexcoders] warning: unable to bind to property 'XXX' on class 'XML' (class is not an IEventDispatcher)

2008-08-18 Thread Tracy Spratt
That warning is confusing.  It occurs because the selectedItem
property(or whatever property you are accessing) is an Object, and
Object does not support binding.  The confusion is because it implies
that XML does not support binding, while it definitely does.

 The fix is to cast/convert selectedItem to XML:

mx:Label text={XML(cmbCategories.selectedItem).categoryid} /

The warning will go away.

 Tracy

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ammu nath
Sent: Monday, August 18, 2008 11:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] warning: unable to bind to property 'XXX' on class
'XML' (class is not an IEventDispatcher)

 

Hello All,
  can some body help me with this warning please.
Thanks 
Amar







Unlimited freedom, unlimited storage. Get it now
http://in.rd.yahoo.com/tagline_mail_2/*http:/help.yahoo.com/l/in/yahoo/
mail/yahoomail/tools/tools-08.html/ 

 



[flexcoders] Accessing form elements with cairngrom

2008-08-18 Thread jerry_gagliano
Hi,

I am using cairngrom framework with flex 3 and i need to access form
fields or combo boxes from the results function in the command file. I
imported my view and created an instance which i am able to access the
properties a but no results show up.

I am very curious about this solution.

Thanks



RE: [flexcoders] Re: Multiple arrays?

2008-08-18 Thread Tracy Spratt
And as Amy points out, Repeater can use the x,y coordinates to draw the seat 
components in their correct positions, without the weight of the Grid container.

 

An pay attention to what Tim says:  For each seat, a custom UIComponent. Do 
that, do not attempt to code the repeated elements in line.  Pass a reference 
to the entire currentItem into that component and let it set its position.

 

Tracy

 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Hoff
Sent: Monday, August 18, 2008 11:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Multiple arrays?

 

Hi Shaun,

Last year I lead a project, for a major on-line ticket company, which is 
currently being used to select and sell seats to sporting events.  The approach 
used there, was to maintain all of the seats in a single array 
(ArrayCollection).  Each seat has a unique id field; so that updating the 
server and checking availability was simplified.  In order to know where the 
seats were located, in relationship to each other, a reference x/y point was 
used to position (draw) each individual seat.  This reference point was 
contained in the data.  For each seat, a custom UIComponent was drawn on the 
seat-map canvas; when the data was returned from the server.  This allowed for 
easy manipulation of the seat's state; for user interactions like mouse over 
and select.  This approach also allows the client to easily customize the 
layout of the seat-maps; in a wysiwyg venue builder application.  Hope that 
this gives you some ideas.

-TH

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

 Hi all,
 
 I'm trying to produce a booking form, where users can select their 
 seat. The seats are laid out in a square. I'm currently doing this 
 with 4 arrays, one for each side of the square. This is proving very 
 complicated tho, as I have a remote object from a cfc returning the 
 results from all 4 arrays, and its proving a nightmare to map the 
 results back to the images? (full code below.
 
 Anyone have any thoughts on how they would approach this?
 
 Thanks
 Shaun
 
 
 
 ?xml version=1.0?
 !-- Simple example to demonstrate the Repeater class. --
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 layout=absolute backgroundColor=#00 
 backgroundGradientColors=[#22, #22] creationComplete=init
 ()
 
 mx:Style source=style.css /
 
 mx:Script
 ![CDATA[
 import mx.formatters.CurrencyFormatter;
 import mx.controls.FormItemLabel;
 import mx.rpc.events.ResultEvent;
 import mx.controls.Alert;
 
 [Bindable]
 private var glowTarget:*;
 
 [Bindable]
 private var topRow:Array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 
 10, 11];
 
 [Bindable]
 private var rightCol:Array = [12, 13, 14, 15, 16, 17, 18, 
 19, 20, 21, 22];
 
 [Bindable]
 private var bottomRow:Array = [33, 32, 31, 30, 29, 28, 
 27, 26, 25, 24, 23];
 
 [Bindable] 
 private var leftCol:Array = [44, 43, 42, 41, 40, 39, 38, 
 37, 36, 35, 34];
 
 private var _ukFormatter:CurrencyFormatter;
 
 private function init():void
 {
 seatsManager.getAllSeats();
 
 // hide all the elements
 resUserName.visible = false
 resButton.visible = false
 reserved.visible = false
 reserved2.visible = false
 reserved3.visible = false
 createAccountButton.visible = false
 
 reserveLabel.visible = false
 reservedText1.visible = false
 reservedText2.visible = false
 
 payLabel.visible = false
 payText1.visible = false
 priceText.visible = false
 payButton.visible = false
 
 }
 
 private function changeDisplay(event:Event):void
 {
 var chosenSeatNo:String = 
 event.currentTarget.getRepeaterItem();
 //Alert.show(String
 (event.currentTarget.getRepeaterItem()));
 
 // build the txt strings
 centerLabel.text = 'Seat No. ' + chosenSeatNo;
 payLabel.text = 'Pay for Seat No. ' + chosenSeatNo;
 reserveLabel.text = 'Reserve Seat No. ' + 
 chosenSeatNo;
 
 // control glow of buttons
 glowImage.end();
 glowTarget = event.currentTarget;
 glowImage.target = glowTarget;
 glowImage.play();
 
 // do function call 
 seatsManager.getChosenSeat
 (chosenSeatNo)
 }
 
 private function handleFetchResult(event:ResultEvent):void
 {
 var seatNo:String = String
 (event.result.intSeatNumber);
 var intId:String = String(event.result.intId);
 var intPrice:String = String(event.result.intPrice);
 var intReserved:Boolean = 
 event.result.intReserved;
 var usr_alias:String = 
 event.result.usr_alias;
 var intPaid:Boolean = 
 event.result.intPaid;
 
 _ukFormatter = new CurrencyFormatter
 ();
 _ukFormatter.currencySymbol = £;
 _ukFormatter.precision = 2;
 _ukFormatter.decimalSeparatorFrom 
 = .;
 _ukFormatter.decimalSeparatorTo = .;
 _ukFormatter.useNegativeSign = true;
 _ukFormatter.useThousandsSeparator = 
 true;
 _ukFormatter.alignSymbol = left;
 
 intPrice = _ukFormatter.format
 (intPrice);
 priceText.text = 'Price for this seat 
 is ' + intPrice;
 
 //seat is already paid for
 if (intPaid)
 {
 // change values of text 
 thats visible
 reserved.text 

[flexcoders] Accordion Header renderer layout help

2008-08-18 Thread nathanpdaniel
I'm trying to create an Accordion Header Renderer component (extends 
Button, implements IDataRenderer) - when I add children to 
the createChildren method - it places them below (maybe behind is a 
better term) the actual header itself.  
I'm attempting to add another button and set the hitArea for the header 
to that button (I want the user to have to click the Button to navigate 
the Accordion rather than being able to click the entire header).  I 
also want to add some other textual elements, those always end up not 
visible either.  Anyone have any idea how to accomplish this? :D
-Nathan D. 



Re: [flexcoders] Re: 3.1 changelog?

2008-08-18 Thread Matt Chotin
Release notes and whatnot are going live in a few hours.  I have a short 
article that will be live on the Dev Center as well.  The primary differences 
are support for AIR 1.1 along with bug fixes.  3.1 is mostly a rollup of bug 
fixes and we have a filter in JIRA where you can see all of them.

Matt


On 8/17/08 11:00 PM, Josh McDonald [EMAIL PROTECTED] wrote:




Problem isn't what's in the release notes, it's where are the release notes? 
:)

I guess I sorta expected a post here with a link to some release notes or 
something. All I got was a popup from Adobe Updater when I got into work this 
morning.

-Josh

On Mon, Aug 18, 2008 at 3:48 PM, Alex Harui [EMAIL PROTECTED] wrote:
Sorry, we need to update that.  Marshall Plan is 3.2, it was going to be 3.1 
when we published that page but something came up and we had to bump Marshall 
plan.



The release notes don't have any info on bug fixes?  A JIRA search might also 
yield some information.





From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn 
Schultheiss
Sent: Sunday, August 17, 2008 10:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: 3.1 changelog?



Quote from the doc
The Marshall Plan will only support 3.1 Flex applications working in
Flex 4 and beyond.
http://opensource.adobe.com/wiki/display/flexsdk/Marshall+Plan

In terms of bug-fixes, haven't seen one yet..
Mind you haven't look much either.

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

 Yeah just found that :) That's pretty much only API changes though,
I was
 wondering if there's anything official listing bugfixes / changes in
builder
 (if any), etc...

 Did the Marshall Plan stuff go into 3.1 or is it 3.2?

 -Josh

 On Mon, Aug 18, 2008 at 2:54 PM, Bjorn Schultheiss 
 [EMAIL PROTECTED] wrote:

  I saw this blog post the other day.
 
  differences between Flex 3.1.0 and Flex 3.0.0
 
 
http://shigeru-nakagaki.com/index.cfm/2008/8/16/20080816-diff-between-Flex310-and-Flex300
 
  Bjorn
 
  --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
  Josh McDonald dznuts@ wrote:
  
   Hey Guys,
  
   Is there a changelog for 3.1? I can't seem to find anything via
google.
  
   -Josh
  
   --
   Therefore, send not to know For whom the bell tolls. It tolls for
  thee.
  
   :: Josh 'G-Funk' McDonald
   :: 0437 221 380 :: josh@
  
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
  Links
 
 
 
 


 --
 Therefore, send not to know For whom the bell tolls. It tolls for
thee.

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]






[flexcoders] Re: Access column chart items

2008-08-18 Thread mousikos2001
That's exactly what I've wanted to do!! :D

I didn't know about the HitData class. All is clearer now :)

Thanks a lot!!!

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

 
 Hi there,
 
 Your question is a little vague; concerning the use-case.  But, this
 might help get you moving in the right direction:
 
 import mx.charts.events.ChartItemEvent;
 
 private function selectItem(e:ChartItemEvent) : void
 {
  myTextArea.text = e.hitData.item.myField.toString();
 }
 
 mx:ColumnChart itemClick=selectItem(event)
 
 -TH
 
 --- In flexcoders@yahoogroups.com, mousikos2001 christomanos@
 wrote:
 
  Hi all,
 
  I have a column chart and i want to access the columns values in order
  to display them in a textarea. How can i do this?
 
  Thanks in advance.
 





Re: [flexcoders] Printing and PDF creation

2008-08-18 Thread Richard Rodseth
Have you looked at AlivePDF?

On Mon, Aug 18, 2008 at 4:04 AM, Blair Cox [EMAIL PROTECTED] wrote:

Hmm, well I'm with the fellow here in another post that stated Flex
 will not be enterprise ready until it can create reports within the app.
 This is a basic business practice and should not be some convoluted,
 insanely expensive add-on. If you purchase the Pro version of flex for
 nearly a grand, it should be a feature just like creating charts.

 Thanks for the links but I was hoping for a solution.

 --
 *Blair
 *

 --
 *From: *Sefi Ninio [EMAIL PROTECTED]
 *Reply-To: *flexcoders@yahoogroups.com
 *Date: *Sat, 16 Aug 2008 21:44:11 +0300
 *To: *flexcoders@yahoogroups.com
 *Subject: *Re: [flexcoders] Printing and PDF creation




 I actually just googled for it.. You could do the same...


 http://christophrooms.com/2007/03/23/lc-ds-25-generating-pdf-from-within-a-flex-application/

 http://blogs.adobe.com/mikepotter/2006/09/create_pdf_from.html

 http://flexblog.faratasystems.com/?p=237

 HTH
 Sefi


 On Sat, Aug 16, 2008 at 8:35 PM, cox.blair [EMAIL PROTECTED]
 wrote:




 Just wondering if anyone could provide some information on general
 printing concepts and creating PDF reports from an application.

 With regards to printing, I really only need to allow the user to
 correctly print what is displayed in their browser - the application
 interface. As a bonus, allowing the user to print a report would be
 even better. I've heard a lot of talk about printing DG's, but how
 about printing charts? If you could pass along some links to read more
 on this, it would be a great help.

 PDF creation - Is it possible to create a pdf directly from the
 application within the browser (not AIR)? An example would be within
 Goggle Analytics, you can create a PDF report containing all the data
 and charts displayed online. Nothing complex here, simple plain
 reports full justified, center aligned - the way the business folk
 like it.

 Cheers,
 Blair







   



RE: [flexcoders] Re: 3.1 changelog?

2008-08-18 Thread Jim Hayes
Thanks for letting us know Matt.
 
Before anyone else asks (!), is it basically an SDK update, and is it
just a question of selecting the previous Flex 3.0 SDK if anything
breaks in the new one?
 
It's just that I'm right on the edge of a release, so I'm slightly
nervous of anything changing, whilst excited to be getting new code :-)
 
That's all I need to know right now.
 
Thanks,
 
Jim.
 
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt Chotin
Sent: 18 August 2008 17:08
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: 3.1 changelog?
 
Release notes and whatnot are going live in a few hours. I have a short
article that will be live on the Dev Center as well. The primary
differences are support for AIR 1.1 along with bug fixes. 3.1 is mostly
a rollup of bug fixes and we have a filter in JIRA where you can see all
of them.

Matt

On 8/17/08 11:00 PM, Josh McDonald [EMAIL PROTECTED]
mailto:dznuts%40gmail.com  wrote:

Problem isn't what's in the release notes, it's where are the release
notes? :)

I guess I sorta expected a post here with a link to some release notes
or something. All I got was a popup from Adobe Updater when I got into
work this morning.

-Josh

On Mon, Aug 18, 2008 at 3:48 PM, Alex Harui [EMAIL PROTECTED]
mailto:aharui%40adobe.com  wrote:
Sorry, we need to update that. Marshall Plan is 3.2, it was going to be
3.1 when we published that page but something came up and we had to
bump Marshall plan.

The release notes don't have any info on bug fixes? A JIRA search might
also yield some information.



From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On Behalf Of Bjorn Schultheiss
Sent: Sunday, August 17, 2008 10:16 PM
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
Subject: [flexcoders] Re: 3.1 changelog?

Quote from the doc
The Marshall Plan will only support 3.1 Flex applications working in
Flex 4 and beyond.
http://opensource.adobe.com/wiki/display/flexsdk/Marshall+Plan
http://opensource.adobe.com/wiki/display/flexsdk/Marshall+Plan 

In terms of bug-fixes, haven't seen one yet..
Mind you haven't look much either.

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

 Yeah just found that :) That's pretty much only API changes though,
I was
 wondering if there's anything official listing bugfixes / changes in
builder
 (if any), etc...

 Did the Marshall Plan stuff go into 3.1 or is it 3.2?

 -Josh

 On Mon, Aug 18, 2008 at 2:54 PM, Bjorn Schultheiss 
 [EMAIL PROTECTED] wrote:

  I saw this blog post the other day.
 
  differences between Flex 3.1.0 and Flex 3.0.0
 
 
http://shigeru-nakagaki.com/index.cfm/2008/8/16/20080816-diff-between-Fl
ex310-and-Flex300
http://shigeru-nakagaki.com/index.cfm/2008/8/16/20080816-diff-between-F
lex310-and-Flex300 
 
  Bjorn
 
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Josh McDonald dznuts@ wrote:
  
   Hey Guys,
  
   Is there a changelog for 3.1? I can't seem to find anything via
google.
  
   -Josh
  
   --
   Therefore, send not to know For whom the bell tolls. It tolls for
  thee.
  
   :: Josh 'G-Funk' McDonald
   :: 0437 221 380 :: josh@
  
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo ! Groups
  Links
 
 
 
 


 --
 Therefore, send not to know For whom the bell tolls. It tolls for
thee.

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]

 

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

Re: [flexcoders] Re: Identifying row index relative to node vs. ADG - childIndex() fails.

2008-08-18 Thread Adrian Williams

Hi Amy,

   I've tried your suggestion and am having a problem...

   The childIndex() method is not available to my object...and I have 
tried it both with my drag event as well as my ADG with negative results 
(errors). 


   Here is the function that this lives in:
  
   private function dropHandler(event:DragEvent):void

   {
   var endIndex:int = event.currentTarget.selectedIndex;
   alert.info(Index is: + endIndex);
   .

   .
   .

   When I replace
   var endIndex:int = event.currentTarget.selectedIndex;
  
   with

  var endIndex:int = event.currentTarget.selectedItem.childIndex();

   I get -- TypeError: Error #1010: A term is undefined and has no 
properties.


   When I try accessing the actual ADG to attempt to get the position
 
   var endIndex:int = 
currentSubgroups.selectedItem.childIndex();


   I get the very same error. 


   Additionally, I've also tried:

   var endIndex:int = 
currentSubgroups.dataProvider.selectedItem.childIndex();


   which gets me -- ReferenceError: Error #1069: Property selectedItem 
not found on mx.collections.HierarchicalCollectionView and there is no 
default value.


   From what little I have been able to find on the net for 
documentation on the childIndex() method, it all seems to be using an 
XML data set.  Is that part of the problem here...that I am not using an 
XML dataset or am I mis-applying this method?


Thanks,
Adrian
  


Amy wrote:


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

wrote:

 Hi all,

 I have a challenge

 I am using an ADG in tree mode on a flat array. Everything
looks
 great. One of the requirements is that whenever a user wants to
 rearrange the order of the rows under a node, I have to store that
index
 value (display order). I.E. The 1st node of the ADG is collapsed.
The
 2nd node is expanded. The 5th row in the 2nd node gets dragged and
 dropped to the 3rd row of the same node. The 3rd row then becomes
the
 4th and the 4th then becomes the 5th. The actual drag and drop
functions
 work beautifully. The problem comes into play when I try to
identify
 the begin index and the end index for the row that was manipulated.

 When I use:

 var beginIndex:int = event.currentTarget.selectedIndex;

selectedItem.childIndex();

HTH;

Amy

 


[flexcoders] How to get the ColumnSeries id

2008-08-18 Thread mousikos2001
Hello,

I have a ColumnChart with two ColumnSeries which have ids. How can i
get the values of those ids?

For Example:

mx:ColumnChart id=someChart

   mx:series

mx:ColumnSeries id=clmn1 /

mx:ColumnSeries id=clmn2 /
/mx:series
/mx:ColumnChart

Thanks in advance!



[flexcoders] ItemRenderer returns empty Object instead of encapsuled data.

2008-08-18 Thread florian.salihovic
I have two instances of mx:controls::List. Both use the same ItemRenderer. A 
TypeError 
occours, when i drop one item from one List into the other List. Instead of the 
encapsuled 
type (an instance of an interface, typed to the interface) just an empty 
Ombject instance is 
returned.

I implement mx.core.IDataRenderer, 
mx.controls.listClasses.IDropInListItemRenderer and 
mx.controls.listClasses.IListItemRenderer in my component. Here is the code for 
the 
overwritten data and listData Propertys:

private var _item:IPlayListItem;
private var _listData:BaseListData;

[Bindable(dataChange)]
override public function get data():Object {
return this._item;
}

[Bindable(dataChange)]
public function get listData():BaseListData {
return this._listData
}

override public function set data(value:Object):void {
trace(ListItemRenderer.data: +value);
super.data = value;
if (!value) {
return;
}
if (this._item == value) {
return;
}
if (value is IPlayListItem) {
super.data = IPlayListItem(value);
this._item = IPlayListItem(value);
}
this.dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));

}

public function set listData(value:BaseListData):void {
if (this._listData == value) {
return;
}
this._listData = value;
this.dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
}

What am i missing?

Best regards!



[flexcoders] Re: Accessing form elements with cairngrom

2008-08-18 Thread Tim Hoff
Hi Jerry,

Usually a Command will update variables in the ModelLocator; which will 
be bound to the View controls.  In other words, a Command should not 
know about a View and vice-versa.

-TH

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

 Hi,
 
 I am using cairngrom framework with flex 3 and i need to access form
 fields or combo boxes from the results function in the command file. I
 imported my view and created an instance which i am able to access the
 properties a but no results show up.
 
 I am very curious about this solution.
 
 Thanks





[flexcoders] flex_sdk_3.1.0.2710 works with flexBuilder?

2008-08-18 Thread Paolo Bernardini
dose flex_sdk_3.1.0.2710 works with flexBuilder?
after installing flex_sdk_3.1.0.2710, and setting it as the default sdk I
compiled some old projects that I have, and it works fine, then I tried to
code and notice that code hint for Event, MouseEvent is not working anymore.
Even when you type import flash. it only sees errors package.
Is there a way to use it with flexBuilder and expect to work as with the
previous version?


[flexcoders] Re: Problem with ExternalInterface.call

2008-08-18 Thread markgoldin_2000
Yes, I see what you are saying.
Another thing about ExternalInterface.call(window.location.reload
(true).
I am running my application from Flex Builder. Then at some pint I do 
ExternalInterface.call(window.location.reload(true).
How can I run reload in the debugging environment?

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

 What specifically is the problem here? If you uncomment the reload 
line,
 presumably it'll reload the entire page without you seeing the 
Alert box. If
 you want to wait for the Alert box to be closed before reloading 
the page,
 you'll need to listen out for the CloseEvent.CLOSE event.
 
 
 
 On Sun, Aug 17, 2008 at 10:08 PM, markgoldin_2000 
[EMAIL PROTECTED]
  wrote:
 
  public function setPlan(resultXML:XML):void
  {
 Alert.show(resultXML.toString());
 //ExternalInterface.call(window.location.reload(true));
  }
 
  If I uncomment ExternalInterface.call then reload goes with Alert 
box
  being shown. Is that right?
 
  Thanks
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups
  Links
 
 
 
 





RE: [flexcoders] Re: Identifying row index relative to node vs. ADG - childIndex() fails.

2008-08-18 Thread Tracy Spratt
What IS your dataProvider?

 

You mention flat array.  How are you getting a tree out of a flat
array?

 

childIndex() is for XML.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Adrian Williams
Sent: Monday, August 18, 2008 12:15 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Identifying row index relative to node vs.
ADG - childIndex() fails.

 

Hi Amy,

I've tried your suggestion and am having a problem...

The childIndex() method is not available to my object...and I have
tried it both with my drag event as well as my ADG with negative results
(errors).  

Here is the function that this lives in:

private function dropHandler(event:DragEvent):void
{
var endIndex:int = event.currentTarget.selectedIndex;
alert.info(Index is: + endIndex); 
.
.
.

When I replace 
var endIndex:int = event.currentTarget.selectedIndex;

with
   var endIndex:int = event.currentTarget.selectedItem.childIndex();

I get -- TypeError: Error #1010: A term is undefined and has no
properties.

When I try accessing the actual ADG to attempt to get the position
   
var endIndex:int =
currentSubgroups.selectedItem.childIndex();

I get the very same error.  

Additionally, I've also tried:

var endIndex:int =
currentSubgroups.dataProvider.selectedItem.childIndex();

which gets me -- ReferenceError: Error #1069: Property selectedItem
not found on mx.collections.HierarchicalCollectionView and there is no
default value.

From what little I have been able to find on the net for
documentation on the childIndex() method, it all seems to be using an
XML data set.  Is that part of the problem here...that I am not using an
XML dataset or am I mis-applying this method?

Thanks,
Adrian


Amy wrote: 

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

 Hi all,
 
 I have a challenge
 
 I am using an ADG in tree mode on a flat array. Everything 
looks 
 great. One of the requirements is that whenever a user wants
to 
 rearrange the order of the rows under a node, I have to store
that 
index 
 value (display order). I.E. The 1st node of the ADG is
collapsed. 
The 
 2nd node is expanded. The 5th row in the 2nd node gets dragged
and 
 dropped to the 3rd row of the same node. The 3rd row then
becomes 
the 
 4th and the 4th then becomes the 5th. The actual drag and drop

functions 
 work beautifully. The problem comes into play when I try to 
identify 
 the begin index and the end index for the row that was
manipulated.
 
 When I use:
 
 var beginIndex:int = event.currentTarget.selectedIndex;

selectedItem.childIndex();

HTH;

Amy

 



Re: [flexcoders] Re: Identifying row index relative to node vs. ADG - childIndex() fails.

2008-08-18 Thread Adrian Williams
Ahh, yes...that would help...here is the construction for the ADG 
dataProvider.  I am making a web service call to our .NET backend to 
grab the data set.  This function is the result handler that builds the 
array for the ADG.


   private function 
groupedParticipantsResult(event:ResultEvent):void

   {
   groupedParticipantsArray = event.result as ArrayCollection;
  
   var gc:GroupingCollection = new GroupingCollection();

   gc.source = groupedParticipantsArray;
  
   var g:Grouping = new Grouping();

   gc.grouping = g;
   g.fields = [new GroupingField(Name)];
   gc.refresh();
   currentSubgroups.dataProvider = gc;


Tracy Spratt wrote:


What IS your dataProvider?

 


You mention flat array.  How are you getting a tree out of a flat array?

 


childIndex() is for XML.

 


Tracy

 




*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
*On Behalf Of *Adrian Williams

*Sent:* Monday, August 18, 2008 12:15 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Re: Identifying row index relative to node 
vs. ADG - childIndex() fails.


 


Hi Amy,

I've tried your suggestion and am having a problem...

The childIndex() method is not available to my object...and I have 
tried it both with my drag event as well as my ADG with negative 
results (errors). 


Here is the function that this lives in:
   
private function dropHandler(event:DragEvent):void

{
var endIndex:int = event.currentTarget.selectedIndex;
alert.info(Index is: + endIndex);
.

.
.

When I replace
var endIndex:int = event.currentTarget.selectedIndex;
   
with

   var endIndex:int = event.currentTarget.selectedItem.childIndex();

I get -- TypeError: Error #1010: A term is undefined and has no 
properties.


When I try accessing the actual ADG to attempt to get the position
  
var endIndex:int = 
currentSubgroups.selectedItem.childIndex();


I get the very same error. 


Additionally, I've also tried:

var endIndex:int = 
currentSubgroups.dataProvider.selectedItem.childIndex();


which gets me -- ReferenceError: Error #1069: Property 
selectedItem not found on mx.collections.HierarchicalCollectionView 
and there is no default value.


From what little I have been able to find on the net for 
documentation on the childIndex() method, it all seems to be using an 
XML data set.  Is that part of the problem here...that I am not using 
an XML dataset or am I mis-applying this method?


Thanks,
Adrian
   


Amy wrote:

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

wrote:

 Hi all,

 I have a challenge

 I am using an ADG in tree mode on a flat array. Everything
looks
 great. One of the requirements is that whenever a user wants to
 rearrange the order of the rows under a node, I have to store that
index
 value (display order). I.E. The 1st node of the ADG is collapsed.
The
 2nd node is expanded. The 5th row in the 2nd node gets dragged and
 dropped to the 3rd row of the same node. The 3rd row then becomes
the
 4th and the 4th then becomes the 5th. The actual drag and drop
functions
 work beautifully. The problem comes into play when I try to
identify
 the begin index and the end index for the row that was manipulated.

 When I use:

 var beginIndex:int = event.currentTarget.selectedIndex;

selectedItem.childIndex();

HTH;

Amy

 


[flexcoders] Re: LCDS: data management and limited access

2008-08-18 Thread aglosband
Hi Zdenek, 
I did some testing of the whitelist/blacklist settings in LCDS 2.6 
this morning and as far as I can tell they are working as expected. 
Can you send me both your channel/endpoint settings from services-
config.xml and your destination settings from data-management-
config.xml so that I can look them over? It sounds like possibly 
your whitelist/blacklist settings are preventing the connection to 
the endpoint over RTMP but you are falling back to another endpoint 
that does not have the whitelist/blacklist settings. It is also 
possible that there is a bug but I need to see your settings to 
confirm that. Have you tried turning on Debug level logging in your 
services-config.xml file? If you set up a filter pattern of 
Endpoint.* you should be able to tell in the server console log 
which endpoint you are actually connecting over. Please take a look 
at this also and let me know if it is in fact the RTMP channel that 
you are connecting over. Thanks. 

-Alex 

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

 I am trying to limit access to my flex application which works 
with LCDS 
 2.6 data management endpoints configured to use only the rtmp 
channel. I 
 would like to limit access to my application from just certain ip 
 addresses - I want to list these ip addresses in whitelist 
property of 
 my server, but with this setting I am still able to connect to my 
 application from ip addresses which are not in this whitelist. 
Even if I 
 put my ip address into blacklist in services-config.xml file, I am 
still 
 able to connect and see the data from my endpoints. I am a little 
 confused why this feature does not work?
 
 Zdenek M





Re: [flexcoders] Re: getChildByName using it to get the value of a textbox

2008-08-18 Thread Nik Derewianka
That #1009 error means that it returned a null from the first line  
because it couldn't find the child with that name.   getChildByName is  
not recursive so you need to be mindful of the nesting of your  
requested object.


The following app has the functionality working as you need it, but it  
also has a really handy listing function that displays all of the  
current children recursively (outputs to the console window in Flex,  
if you have the debug player) so that you can see the children that  
are present and how they are nested.


Regards,
Nik

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;  
layout=vertical horizontalAlign=left

mx:Script
![CDATA[
import mx.controls.Alert;
private function showText(evt:MouseEvent):void{
var test:TextInput = this.getChildByName(test 
+ 1) as TextInput;
Alert.show(test.text);
traceDisplayList(this);
}

			public function traceDisplayList(container:DisplayObjectContainer,  
indentString:String = -):void{

var child:DisplayObject;
for (var i:uint=0; i  container.numChildren; i++)
{
child = container.getChildAt(i);
trace(indentString, child, child.name);
if (container.getChildAt(i) is 
DisplayObjectContainer)
{
			traceDisplayList(DisplayObjectContainer(child),   
+ indentString)

}
}
}
]]
/mx:Script

mx:TextInput id=test1/
mx:Button label=Button click=showText(event)/
/mx:Application

[flexcoders] Re: Accessing form elements with cairngrom

2008-08-18 Thread gabriela.perry
If I understood you, you want to access the views children from the
execute method, is it?
If so, you should add a property for this view (propably a Container
subclass) in the event that's mapped to this control on the controler.
The controler class has an initialize method which does this mapping
(command / event).
Then, in your command, you just have to access the event property, like:
var myView:MyTYpe=e.myEventProperty as MyType

Hope it helps.





Re: [flexcoders] Re: 3.1 changelog?

2008-08-18 Thread Matt Chotin
Correct, just select the old SDK and you should be good.  Flex Builder has an 
update (autoupdate is pushed today) that is just bug fixes.

Matt


On 8/18/08 9:14 AM, Jim Hayes [EMAIL PROTECTED] wrote:




Thanks for letting us know Matt.

Before anyone else asks (!), is it basically an SDK update, and is it just a 
question of selecting the previous Flex 3.0 SDK if anything breaks in the new 
one?

It's just that I'm right on the edge of a release, so I'm slightly nervous of 
anything changing, whilst excited to be getting new code :)

That's all I need to know right now.

Thanks,

Jim.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt 
Chotin
Sent: 18 August 2008 17:08
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: 3.1 changelog?


Release notes and whatnot are going live in a few hours. I have a short article 
that will be live on the Dev Center as well. The primary differences are 
support for AIR 1.1 along with bug fixes. 3.1 is mostly a rollup of bug fixes 
and we have a filter in JIRA where you can see all of them.

Matt

On 8/17/08 11:00 PM, Josh McDonald [EMAIL PROTECTED] 
mailto:dznuts%40gmail.com  wrote:

Problem isn't what's in the release notes, it's where are the release notes? 
:)

I guess I sorta expected a post here with a link to some release notes or 
something. All I got was a popup from Adobe Updater when I got into work this 
morning.

-Josh

On Mon, Aug 18, 2008 at 3:48 PM, Alex Harui [EMAIL PROTECTED] 
mailto:aharui%40adobe.com  wrote:
Sorry, we need to update that. Marshall Plan is 3.2, it was going to be 3.1 
when we published that page but something came up and we had to bump Marshall 
plan.

The release notes don't have any info on bug fixes? A JIRA search might also 
yield some information.



From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On 
Behalf Of Bjorn Schultheiss
Sent: Sunday, August 17, 2008 10:16 PM
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
Subject: [flexcoders] Re: 3.1 changelog?

Quote from the doc
The Marshall Plan will only support 3.1 Flex applications working in
Flex 4 and beyond.
http://opensource.adobe.com/wiki/display/flexsdk/Marshall+Plan

In terms of bug-fixes, haven't seen one yet..
Mind you haven't look much either.

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

 Yeah just found that :) That's pretty much only API changes though,
I was
 wondering if there's anything official listing bugfixes / changes in
builder
 (if any), etc...

 Did the Marshall Plan stuff go into 3.1 or is it 3.2?

 -Josh

 On Mon, Aug 18, 2008 at 2:54 PM, Bjorn Schultheiss 
 [EMAIL PROTECTED] wrote:

  I saw this blog post the other day.
 
  differences between Flex 3.1.0 and Flex 3.0.0
 
 
http://shigeru-nakagaki.com/index.cfm/2008/8/16/20080816-diff-between-Flex310-and-Flex300
 
  Bjorn
 
  --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  mailto:flexcoders%40yahoogroups.com , Josh McDonald dznuts@ wrote:
  
   Hey Guys,
  
   Is there a changelog for 3.1? I can't seem to find anything via
google.
  
   -Josh
  
   --
   Therefore, send not to know For whom the bell tolls. It tolls for
  thee.
  
   :: Josh 'G-Funk' McDonald
   :: 0437 221 380 :: josh@
  
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
  http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
  Links
 
 
 
 


 --
 Therefore, send not to know For whom the bell tolls. It tolls for
thee.

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__




Re: [flexcoders] flex_sdk_3.1.0.2710 works with flexBuilder?

2008-08-18 Thread Matt Chotin
It should work without problems.  Maybe try cleaning your workspace 
(instructions in the release notes)?


On 8/18/08 9:56 AM, Paolo Bernardini [EMAIL PROTECTED] wrote:




dose flex_sdk_3.1.0.2710 works with flexBuilder?
after installing flex_sdk_3.1.0.2710, and setting it as the default sdk I 
compiled some old projects that I have, and it works fine, then I tried to code 
and notice that code hint for Event, MouseEvent is not working anymore. Even 
when you type import flash. it only sees errors package.
Is there a way to use it with flexBuilder and expect to work as with the 
previous version?




Re: [flexcoders] Re: Multiple arrays?

2008-08-18 Thread Howard Fore
Even better...

On Mon, Aug 18, 2008 at 11:30 AM, Amy [EMAIL PROTECTED] wrote:

 --- In flexcoders@yahoogroups.com, Howard Fore [EMAIL PROTECTED]
 wrote:
 
  I think I'd use a grid instead of repeater/HBox/VBox combinations,
 esp since
  you know the seating arrangments are going to be in a square.

 A Canvas with a Constraint-based layout would also work, or a repeater
 that just looks at currentIndex and calculates the position based on
 that.  I suspect this might be a lighter weight solution.




-- 
Howard Fore, [EMAIL PROTECTED]
The universe tends toward maximum irony. Don't push it. - Jeff Atwood


[flexcoders] Basic authentication for file upload

2008-08-18 Thread Dmitry Miller
Hello, everyone

I am trying to implement file upload and authenticate myself via basic
authentication. However, when I try to add Authorization header into
underlying URLRequest object, Flash Player seems to ignore my code and
proceed without this header. I am using Flash version 9.0.124 which,
according to the documentation, allows tampering with Authorization
header

Is Basic Auth support possible for file upload? and if it is, how do I
make it work?

Thanks, 

--- Dmitry





[flexcoders] Re: Namespace issue displaying xml in Tree

2008-08-18 Thread Mandy
I got the xml to display by replacing ns2: with , but never did get 
use namespace to work. Oh well, I think replacing the ns2: is good 
for now. Thanks guys.

~Amanda 
--- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote:

 
 Hi Amanda,
 
 I usually just strip out the namespace junk; when the result is
 returned.  Something like:
 
 public function onResult(event: * = null) : void
 {
   var myXML : XML = event.result as XML;
   model.myXML = new
 XML(myXML.toXMLString().replace
(xmlns:ns2=http://service.xxx.xx.xx.xx.\
 xx.xx/,))
 }
 
 You would probably want to get rid of all of the ns2: stuff as 
well;
 using a RegEx replace.  Just one approach.
 
 -TH
 
 --- In flexcoders@yahoogroups.com, Mandy saltydg2003@ wrote:
 
  No, that really isn't the name. I put 'x' so no one could see the
  actual name.
 
  I added:
  public var ns2:Namespace = new Namespace
  (http://service.xx.xx.xx.xx.xx.xx/;);
  default xml namespace = ns2;
 
  but i haven't gotten that to work.
 
  --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
  
   It is really @http://sevice.xxxxx::name
  
  
  
   You may have to declare a namespace and use it instead and maybe
  use a
   labelFunction
  
  
  
   
  
   From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] On
   Behalf Of Mandy
   Sent: Thursday, August 14, 2008 12:43 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Namespace issue displaying xml in Tree
  
  
  
   I am trying to display xml data in a tree but can't get the xml 
to
   correctly populate the Tree because of the namespace in front of
  the
   attributes.
   Here is the xml I am getting back:
   ns2:getProductsResponse
   xmlns:ns2=http://service.xxx.xx.xx.xx.xx.xx/
   http://service.xxx.xx.xx.xx.xx.xx/ 
   return ns2:size=344 ns2:name=Products ns2:link=Products
   product ns2:name=WEATHER ns2:link=WEATHER
   product ns2:name=ANALYSES ns2:link=WEATHER.ANALYSES
   product ns2:name=CYCLONE
   ns2:link=WEATHER.ANALYSES.CYCLONE/
   /product
   /product
   /return
   /ns2:getProductsResponse
  
   The tree is defined (I have tried both @name and @ns2:name):
  
   mx:Tree id=Tree width=100% height=100%
   labelField=@name
   change=treeChanged(event)
   themeColor=#99
   folderClosedIcon=@Embed(source='images/marble.png')
   folderOpenIcon=@Embed(source='images/marble.png')
   defaultLeafIcon=@Embed(source='images/marble.png')
   dragEnabled=true
   dragMoveEnabled=false visible=true/
  
   Here is my code to get the xml:
  
   public function getProductsResult(resultObj:Object):void
   {
   private var ns2:Namespace = new Namespace
   (http://service.xxx.xx.xx.xx.xx.xx/
   http://service.xxx.xx.xx.xx.xx.xx/ );
   default xml namespace = ns2;
   var xml:XMLListCollection = new XMLListCollection(new XMLList
   (resultObj.result));
   var productsXML:XMLListCollection = new XMLListCollection
  (xml.children
   ());
   }
  
   productsXML contains everything under the 
ns2:getProductsResponse
   element.
  
   Any ideas would be greatly appreciated.
   Thanks,
   Amanda
  
 





[flexcoders] Repaint screen

2008-08-18 Thread markgoldin_2000

I have a complex screen that consists of a number of DGs shown side by
side that creates an illusion of a single very wide DataGrid. The users
are able to select a row in one of the DG and all grids will have the
same row highlighted.

I am using this as a custom item renderer:

public class blockItemRenderer extends Label implements
IDropInListItemRenderer

Here is code that does on or off depending on data conditions:

override protected function updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void

{

super.updateDisplayList(unscaledWidth, unscaledHeight);

var grid1:DataGrid = DataGrid(DataGridListData(listData).owner);

if (grid1.isItemSelected(data))

{

if (g == null)

{

g = graphics;

storeBackgroundCell = getStyle(backgroundColor);

}

if (data.trainplan == true)

{

g.clear();

g.beginFill(0xe1dc4d);

g.drawRect(0, 0, unscaledWidth, unscaledHeight + 1);

g.endFill();

}

else

{

g.clear();

}

}

}

Here is code that basically triggers the updateDisplayList:

DataGrid(DGObject).selectedIndex = selectedIndex;

DataGrid(DGObject).dataProvider[selectedIndex].trainplan = addToPlan;

So far so good, it works fine.

But now the users want to save screen. Another words they wont to be
able to bring a scrren copy back with all the highlights they have made
before they save the screen.  Since everything is data driven I am
saving the whole xml that is used to build the screen in the first palce
to a database and simply send it back when they request a copy.
Unfortunatelly no hightlight cells are shown when a screen copy is
loaded.

I am trying to force the updateDisplayList by doing this:

override public function set dataProvider(value:Object):void

{

super.dataProvider = value;

if(dataProvider != null  value != null  dataProvider is
ICollectionView)

{

var cursor:IViewCursor =

(dataProvider as ICollectionView).createCursor();

var cnt:int = 0;

while (!cursor.afterLast)

{

if (cursor.current.trainplan == true  listData != null)

{

DataGrid(listData.owner).selectedIndex = cnt;

Alert.show(cnt.toString());

}

cnt++;

cursor.moveNext();

}

}

}

But the Alert box is not even popping up I think because listData is
null.

Any idea that might help?



[flexcoders] Re: getChildByName using it to get the value of a textbox

2008-08-18 Thread Jason B

Yes your code works since its not dynamically building the form but what
happens if you try this code...it gets an error like i do

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=vertical horizontalAlign=left creationComplete=loaditem() 
mx:Script
![CDATA[
import mx.controls.Alert;
 import mx.controls.TextInput;
 import mx.managers.PopUpManager;
 import mx.rpc.events.ResultEvent;
 import mx.rpc.events.FaultEvent;
 import mx.controls.Alert;
 import mx.controls.ComboBox;
 import mx.controls.Text;
 import mx.controls.RadioButton;
 import mx.controls.RadioButtonGroup;
 import mx.controls.Label;
 import mx.collections.ArrayCollection;
 import mx.controls.dataGridClasses.DataGridColumn;
 import mx.controls.TextArea;
 import mx.events.*;
 import mx.validators.*;
 import mx.managers.ToolTipManager;
 import mx.managers.IFocusManager;
 import mx.managers.IFocusManagerComponent;
 import mx.core.Container;
 import mx.controls.Alert;
 import mx.core.ComponentDescriptor;
 import flash.utils.*;
 import flash.net.navigateToURL;
 import flash.net.URLRequest;
 import flash.net.URLVariables;

public function loaditem(){

 create_text = new TextInput();
 create_text.id = tester;
 create_text.text =create_text.id;
 dataBox.addChild(create_text);
}

private function showText(evt:MouseEvent):void{



var test:TextInput = this.getChildByName(tester) as TextInput;
Alert.show(test.text);
traceDisplayList(this);
}

public function traceDisplayList(container:DisplayObjectContainer,
indentString:String = -):void{
 var child:DisplayObject;
 for (var i:uint=0; i  container.numChildren; i++)
 {
 child = container.getChildAt(i);
 trace(indentString, child, child.name);
 if (container.getChildAt(i) is DisplayObjectContainer)
 {
 traceDisplayList(DisplayObjectContainer(child),  +
indentString)
 }
 }
}
]]
/mx:Script
mx:VBox id=dataBox/mx:VBox

mx:TextInput id=test1/
mx:Button label=Button click=showText(event)/
/mx:Application





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

 That #1009 error means that it returned a null from the first line
 because it couldn't find the child with that name.   getChildByName is
 not recursive so you need to be mindful of the nesting of your
 requested object.

 The following app has the functionality working as you need it, but it
 also has a really handy listing function that displays all of the
 current children recursively (outputs to the console window in Flex,
 if you have the debug player) so that you can see the children that
 are present and how they are nested.

 Regards,
 Nik

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=vertical horizontalAlign=left
  mx:Script
   ![CDATA[
import mx.controls.Alert;
private function showText(evt:MouseEvent):void{
 var test:TextInput = this.getChildByName(test + 1) as TextInput;
 Alert.show(test.text);
 traceDisplayList(this);
}

public function traceDisplayList(container:DisplayObjectContainer,
 indentString:String = -):void{
var child:DisplayObject;
for (var i:uint=0; i  container.numChildren; i++)
{
child = container.getChildAt(i);
trace(indentString, child, child.name);
if (container.getChildAt(i) is DisplayObjectContainer)
{
traceDisplayList(DisplayObjectContainer(child), 
 + indentString)
}
}
}
   ]]
  /mx:Script

  mx:TextInput id=test1/
  mx:Button label=Button click=showText(event)/
 /mx:Application





[flexcoders] Problems running Flex app on an OLPC

2008-08-18 Thread Paul Cezanne
Hello

I'm having a bit of a newbie problem understanding exactly how I can  
get our Flex application running on our Unix machine. I'm not the flex  
coder, but I'm the Unix guy, so getting it running is up to me.

The issue is that our Unix machine is an OLPC XO machine. (See  
laptop.org if you're not familiar with it.)

I can get our application on the XO without any problems, I can unzip  
and I see the .swf file. I'm just not sure how I'm supposed to LAUNCH  
the .swf file.

I tried downloading and installing the AIR runtime, that seemed to go  
ok but the docs say that the runtime should be in /opt/Adode AIR/ and  
that folder is empty.

I've tried opening it in Browse (the XO's web browser) and I do get a  
click to play text link but clicking it doesn't do anything.

I've read that I can launch it by running adl from the command line  
but I don't see how to get adl on my system without having the user  
install the SDK and it isn't clear to me that I'm allowed to  
distribute Adobe's SDK anyhow

Note: The self installer works fine under Windows (well, not 100%  
happy with Vista) and we can get it running under OS X, so we know  
that the app itself is fine.

I think I'm just missing some tiny point about installation, I'd love  
it if someone could point it out to me. Thank you.

Paul Cezanne
Open Learning Exchange


RE: [flexcoders] Re: LCDS 2.6 + Hibernate: problem deleting items

2008-08-18 Thread Jeff Vroom
If you could send me the server debug log with Message.* and Service.* enable I 
could tell what is happening.   I've seen this type of behavior in the past, 
but only when some query or something was holding onto a cached copy of the 
deleted item.   After the item gets deleted, we could be refreshing a query or 
something and then seeing that cached item and thinking it needs to get added 
back to the collection.

If I recall correctly though, you are using the hibernate assembler which 
shouldn't be caching queries - unless maybe you have turned on the cached 
queries option or maybe have customized the assembler?

Another possibility is that you might have a bi-directional association 
involving this item and you are not removing the item from both sides of the 
relationship.

Jeff

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
zdenekmikan
Sent: Monday, August 18, 2008 7:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: LCDS 2.6 + Hibernate: problem deleting items


More details to first issue (delete item with ds.deleteItem):

The item is in fact deleted from the database, just the display in my
application is wrong - when I restart application, the deleted item is
really deleted.

In client log (in Flex Builder) there are following lines after commit:

Updating cached item for: Parent#:#254 excluding properties: null
Adding item to cache: ChildItem#:#272 destination: ChildDestination
About to dispatch commit result events

where 272 is the id of the item I am trying to delete.

TIA for any help.

Zdenek M

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Zdenek 
Mikan [EMAIL PROTECTED] wrote:

 I have got big problems deleting items from my managed collections:

 When I delete item through ds.deleteItem and then call the ds.commit,
 after return from the commit operation my item is back in the
 ArrayCollection. The second time this item is deleted properly.

 When I delete item through ac.removeItemAt the item is again
restored by
 commit, but this time it is impossible to delete this item by the
second
 call.

 When I delete item from the collection and add another item into the
 same collection, the commit fails and the server returns error The
item
 was not in the cache...

 Does anyone know how to fix these problems? My items have to be
 improperly cached somewhere...

 TIA Zdenek


inline: image001.jpginline: image002.jpg

[flexcoders] Odd behavior: Tree Component - selectedIndices

2008-08-18 Thread sbx33

Greetings!

I'm encountering some strange behavior, and I was wondering if anyone
could explain the results for me. The code below:
?xml version=1.0 encoding=utf-8? mx:Application
xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
creationComplete=init()  mx:Script   ![CDATA[import
mx.collections.ArrayCollection;[Bindable]public var
cards:ArrayCollection = new ArrayCollection([ {label:Visa, data:1,
children:[{label:1, data:1}, {label:2, data:2}, {label:3, data:3}]},
{label:MasterCard, data:2, children:[4, 5, 6]}, {label:American
Express, data:3}, 5 ]);public function init():void{ var
temp:Object = new Object(); temp.selectedIndices = [1,2]; 
trace(::, temp.selectedIndices, ::); tree.selectedIndices =
temp.selectedIndices; trace(::, temp.selectedIndices, ::);}
]]  /mx:Script  mx:Tree id=tree height=142
dataProvider={cards} editable=true
allowMultipleSelection=true/mx:Tree /mx:Application
Traces out to:
:: 1,2 :: ::  ::
I would have expected the second trace to match the first one, however
that doesn't seem to be the case. Does anyone have any insight on this?

Thanks!

-Mac



[flexcoders] timeout in adobe flex netconnection call

2008-08-18 Thread alex_m2000_cl
i want to know if anyone knows if possible set a timeout when makes a
remote call using netconnection call method. I was looking for this on
internet but i could find anything.



Re: [flexcoders] Re: Identifying row index relative to node vs. ADG - data source info.

2008-08-18 Thread Adrian Williams






Ahh, yes...that would
help...here is the construction for the ADG dataProvider. I am making
a web service call to our .NET backend to grab the data set. This
function is the result handler that builds the array for the ADG.

 private function
groupedParticipantsResult(event:ResultEvent):void
 {
  groupedParticipantsArray = event.result as
ArrayCollection;
  
  var gc:GroupingCollection = new GroupingCollection();
  gc.source = groupedParticipantsArray;
  
  var g:Grouping = new Grouping();
  gc.grouping = g;
  g.fields = [new GroupingField("Name")];
  gc.refresh();
  currentSubgroups.dataProvider = gc;


Tracy Spratt wrote:


  
  
  What IS your
dataProvider?
  
  You mention
flat array. How
are you getting a tree out of a flat array?
  
  childIndex()
is for XML.
  
  Tracy
  
  
  
  
  From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Adrian Williams
  Sent: Monday, August
18, 2008
12:15 PM
  To: [EMAIL PROTECTED]ups.com
  Subject: Re:
[flexcoders] Re:
Identifying row index relative to node vs. ADG - childIndex() fails.
  
  
  
  
  
  Hi Amy,
  
 I've tried your suggestion and am having a problem...
  
 The childIndex() method is not available to my object...and
I have tried it both with my drag event as well as my ADG with negative
results
(errors). 
  
 Here is the function that this lives in:
 
 private
function dropHandler(event:DragEvent):void
 {
  
var endIndex:int = event.currentTarget.selectedIndex;
  
alert.info("Index is:" +
endIndex);  
   .
   .
   .
  
 When I replace 
  var endIndex:int = event.currentTarget.selectedIndex;
 
 with
  var endIndex:int = event.currentTarget.selectedItem.childIndex();
  
 I get -- TypeError: Error #1010: A term is undefined and
has no properties.
  
 When I try accessing the actual ADG to attempt to get the
position
  
 
 var endIndex:int = currentSubgroups.selectedItem.childIndex();
  
 I get the very same error. 
  
 Additionally, I've also tried:
  
  
var endIndex:int = currentSubgroups.dataProvider.selectedItem.childIndex();
  
 which gets me -- ReferenceError: Error #1069: Property
selectedItem not found on mx.collections.HierarchicalCollectionView
and there is no default value.
  
 From what little I have been able to find on the net for
documentation on the childIndex() method, it all seems to be using an
XML data
set. Is that part of the problem here...that I am not using an XML
dataset or am I mis-applying this method?
  
Thanks,
  Adrian
 
  
Amy wrote: 
  

--- In [EMAIL PROTECTED]ups.com,
Adrian Williams [EMAIL PROTECTED] 
wrote:

 Hi all,
 
 I have a challenge
 
 I am using an ADG in tree mode on a flat array. Everything 
looks 
 great. One of the requirements is that whenever a user wants to 
 rearrange the order of the rows under a node, I have to store that

index 
 value (display order). I.E. The 1st node of the ADG is collapsed. 
The 
 2nd node is expanded. The 5th row in the 2nd node gets dragged and

 dropped to the 3rd row of the same node. The 3rd row then becomes 
the 
 4th and the 4th then becomes the 5th. The actual drag and drop 
functions 
 work beautifully. The problem comes into play when I try to 
identify 
 the begin index and the end index for the row that was manipulated.
 
 When I use:
 
 var beginIndex:int = event.currentTarget.selectedIndex;

selectedItem.childIndex();

HTH;

Amy

  
  
  
  

  
  
 





inline: ma_grp_160.gifinline: transparent.gif

[flexcoders] Re: Identifying row index relative to node vs. ADG - childIndex() fails.

2008-08-18 Thread Amy
--- In flexcoders@yahoogroups.com, Adrian Williams [EMAIL PROTECTED] wrote:

 Hi Amy,
 
 I've tried your suggestion and am having a problem...
 
 The childIndex() method is not available to my object...and I 
have 
 tried it both with my drag event as well as my ADG with negative 
results 
 (errors). 

Sorry, thought you were using XML.  Try this:

http://flexdiary.blogspot.com/2008/07/musings-on-advanceddatagrid-part-
5_03.html

HTH;

Amy



  1   2   >