Re: [flexcoders] User manual

2010-01-22 Thread John McCormack
Hi Christophe,

The user manual exists in printed form (4 books, about 15cm thick)  but 
it has no index in the back, which makes it hard to use.
I have it, but the pdf format is better.

John

Christophe wrote:
 Hello, 

 Does the user manual is still existing for a flex application ? 

 Or did the FAQ is sufficient ? 

 Thank you,
 Christophe, 




 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links





   




[flexcoders] Preferred Socket Policy File Server Implementation?

2010-01-22 Thread Karthik Kailash
I'm trying to get my Flex application to connect via socket to my server, so
I need to set up a socket policy file server. It seems like there are
various roll-your-own implementations floating around out there, but is
there any kind of standard or best practice with what to use? Some google
searches turned up nothing, so I'd be curious to hear the pros and cons of
what other people have tried.

 

 As an aside, it seems strange that Adobe imposes this restriction but
doesn't make something readily available to support it.

 

Karthik

 

 

Karthik Kailash | Product

SocialVision, Online Television Becomes a Social Experience

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



Re: [flexcoders] Adobe pulls Single CPU and 100-user licenses

2010-01-22 Thread Tom Chiverton
On Thursday 21 Jan 2010, busitech wrote:
 How are these changes affecting your business?

Dunno about price, but have you looked at ColdFusion? Comes with LCDS and a 
bunch of other stuff.

-- 
Helping to administratively introduce granular revolutionary prospective 
one-to-one customers as part of the IT team of the year 2010, '09 and '08



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

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

CONFIDENTIALITY

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

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

[flexcoders] Re: Read svg file in FLEX

2010-01-22 Thread flexlearner
I have some attributes in my svg file which I am not able to read using flex 
builder. Can you help me out in this regard ? Actually I have one svg file 
which I want to load it then parse it and get the x,y coordinates of path or 
rectangle which is there in svg file.

--- In flexcoders@yahoogroups.com, Aaron Hardy aaronius...@... wrote:

 Hey flexlearner,
 
 What's your question exactly?  How to parse XML?  After you parse the XML
 (you can use e4x) you'll convert SVG attributes into actionscript graphics
 functions like graphics.lineTo().  Are you having trouble with something in
 particular?
 
 Aaron
 
 On Thu, Jan 21, 2010 at 3:30 AM, flexlearner flexlear...@... wrote:
 
 
 
  Hi,
 
  I am new to flex and am using svg file for one of my application which
  basically contains 2-3 rectangles and few paths.
  Now I want to parse this svg file in my application and get rect
  coordinates.
 
  Kindly let me know how to achieve this.
 
   
 





[flexcoders] roundtrip catalyst flash builder

2010-01-22 Thread Johannes Nel
Hi

I followed the approach outlined by Ryan Stewart by creating the catalyst
project, exporting it as a library project, pulling this into flex builder
(it automagically creates a library project although you just select flex
builder project). So all good one way in. Then i get compile errors, my fxg
graphics cannot be found by the compiler.
Looking at the compilation settings for my FB Library project, even if I add
the assets (under the assets tab) I still get this error, the only way
around it seems to be selecting the option to specify which files go into
the project in the classes tab and then exporting to fxpl.

Importing this resultant fxpl into Catalyst then gives me a wrong format
error.

Have people gotten this right?
Can I see a detailed error log of why the import into catalyst has failed?
Is it worth exploring compiling this fxpl from command line and then
importing it into catalyst?

Suggestions and approaches welcome.

Johan

-- 
j:pn
\\no comment


[flexcoders] Re: horizontalAlign Puzzling

2010-01-22 Thread criptopus
Yup that did it!

--- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote:

 I think because horizontalAlign is a style, not a property.  Try setStyle();
 
 -TH
 
 --- In flexcoders@yahoogroups.com, criptopus sd_brown@ wrote:
 
  var boxArray:Array=new Array();
  var boxIdx:int=boxArray.length;
  boxArray.push(new Box());
  boxArray[boxIdx].percentWidth=100;
  
  Why not...?
  
  boxArray[boxIdx].horizontalAlign=center;
  
  - Stephen
 





[flexcoders] Public Arrays

2010-01-22 Thread criptopus
I have an array of Video Players (yes video players, if people set up more than 
one in the CMS why should I deny them the luxury).

I have just opened a preview window and there they are and they play lovely, 
just when I click the cross to close the TitleWindow they are displayed in I 
would like to stop them all playing.

Fortunately or unfortunately I have references to the custom players in an 
array I was going to make public so that the calling program that opened the 
pop up could close all those that where playing.

The the problem, don't seem to be able to make an array public, it will let me 
define it as public but it does not like me referencing it.

Does anybody have a work around?

- Stephen



Re: [flexcoders] Public Arrays

2010-01-22 Thread Fotis Chatzinikos
Can you post an example? I have tens of public arrays and arraycollections
and they work without any problems...

On Fri, Jan 22, 2010 at 2:35 PM, criptopus sd_br...@ntlworld.com wrote:



 I have an array of Video Players (yes video players, if people set up more
 than one in the CMS why should I deny them the luxury).

 I have just opened a preview window and there they are and they play
 lovely, just when I click the cross to close the TitleWindow they are
 displayed in I would like to stop them all playing.

 Fortunately or unfortunately I have references to the custom players in an
 array I was going to make public so that the calling program that opened the
 pop up could close all those that where playing.

 The the problem, don't seem to be able to make an array public, it will let
 me define it as public but it does not like me referencing it.

 Does anybody have a work around?

 - Stephen

  




-- 
Fotis Chatzinikos, Ph.D.
Founder,
LivinData Technologies
www.styledropper.com
fotis.chatzini...@gmail.com,


RE: [flexcoders] User manual

2010-01-22 Thread Stephen Gilson
You can download all Flex 3 doc as HTML or PDF from here: 
http://www.adobe.com/support/documentation/en/flex/

If you are using the Flex 4 Beta,  you can get the doc for the last public Beta 
release from: http://help.adobe.com/en_US/Flex/4.0/UsingFlashBuilder/index.html

Stephen

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of John McCormack
Sent: Friday, January 22, 2010 4:13 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] User manual



Hi Christophe,

The user manual exists in printed form (4 books, about 15cm thick) but
it has no index in the back, which makes it hard to use.
I have it, but the pdf format is better.

John

Christophe wrote:
 Hello,

 Does the user manual is still existing for a flex application ?

 Or did the FAQ is sufficient ?

 Thank you,
 Christophe,




 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links







inline: image001.jpginline: image002.jpg

Re: [flexcoders] Re: Setting perspectiveProjection disable children interactivity

2010-01-22 Thread franto
Hi,

I have same exact problem in Gumbo. I'm using native 3d support and when I
set perspectiveProjection all children loose interactivity or it's screwed
up...

do you know how to fix it?

It's very urgent :) Is there anybody who knows how to fix it?

Franto

-- 
Franto Kormanak (fra...@flexets.com)
Owner  Senior RIA Developer
at Flexets (http://www.flexets.com)

profile: http://www.linkedin.com/in/franto
skype: franto.kormanak


2008/12/29 gwangdesign gwangdes...@yahoo.com

   Okay. So, okay. Here I am again. I just got a stripped down version of
 my code working on Gumbo but not sdk 3.2. In the following code, the
 Button instance maintains its interactivity (hover, tooltip, gets
 click event). If the same code gets complied to sdk 3.2, the Button
 looses hover/tooltip and doesn't take the click event)

 ?xml version=1.0 encoding=utf-8?
 Application xmlns=http://ns.adobe.com/mxml/2009; layout=absolute
 width=800 height=600 creationComplete=initApp();
 Script
 ![CDATA[
 import mx.controls.Button;
 import flash.geom.PerspectiveProjection;

 private function initApp():void
 {
 var btn:Button = new Button();
 btn.label = hello world;
 btn.toolTip = This is the secret ninja!;
 btn.addEventListener(MouseEvent.CLICK,
 function(event:MouseEvent):void{trace(Button(event.currentTarget).label+
 is clicked!);});
 homeBx.addChild(btn);
 setPPCenter(0, 0);
 }
 private function setPPCenter(x:Number, y:Number):void

 {
 var pp:PerspectiveProjection = new PerspectiveProjection();
 pp.projectionCenter = new Point(x, y);
 homeBx.transform.perspectiveProjection = pp;
 }
 ]]
 /Script

 Canvas id=homeBx x=400 y=300 z=0 clipContent=false/

 /Application


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 gwangdesign gwangdes...@... wrote:
 
  Just a follow-up from myself;)
 
  I am not able to re-compile my existing code using Gumbo sdk since all
  the code that tries to get/set UIComponent.transform seems to be
  broken on re-compile.
 
  For example:
 
  I got:
  TypeError: Error #1009: Cannot access a property or method of a null
  object reference.
  for v3 = items[id].transform.matrix3D.decompose();
 
  In Halo (sdk 3.2), as long as you set UIComponent.z or
  UIComponent.rotationX/rotationY, you will get the Transform object
  without any problem.
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 gwangdesign gwangdesign@ wrote:
  
   Hi,
  
   This is a Flex project (3.2) complied to target FP10, which utilizes
   the 3D API. Inside a Canvas object, I add whole bunch of Buttons which
   are laid out in a 3D carousel fashion. The problem is once I set the
   projectionCenter property of the Canvas, all the Button instances
   inside the Canvas stop taking any mouse interaction (including hover
   highlight, tooltips, click events, etc.), while everything else seems
   to be working fine.
  
   Is this the expected behavior or a bug?
  
   Here is the code:
   //carouselContainer is the Canvas instance
   var pp:PerspectiveProjection = new PerspectiveProjection();
   pp.projectionCenter = new Point(x, y);
   carouselContainer.transform.perspectiveProjection = pp;
   //end of code.
  
   Thanks.
  
 

  



[flexcoders] How to click through a component ?

2010-01-22 Thread thomas parquier
Hello,

How to get sort of a click-through-component behavior ?
In the app I'm coding now, an image with some transparency should not
prevent a component behind (not a child) to receive mouse events.

have a good day,
thomas parquier
---
http://www.web-attitude.fr/realisations/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net sip%3awebattit...@ekiga.net
téléphone portable : +33601 822 056


[flexcoders] Re: Image not loading

2010-01-22 Thread valdhor
The problem is in your Main.mxml file.

You have two LoadImage components but only one is displayed (The MXML
one). You need to remove the MXML component altogether and add the
ActionScript component to the display list.

So, Change these lines:

 mx:VBox width=100% height=100% 
 view:LoadImage/
 /mx:VBox

to:

 mx:VBox width=100% height=100% id=LoadImageVBox /

Then add this line:

 LoadImageVBox.addChild(loadImages);

to the bottom of your ongallery1Click function.

That should do it.

This was pretty simple to find. You should probably hone your debugging
skills a lot more.

--- In flexcoders@yahoogroups.com, venkat eswar cooler...@... wrote:

 Hi,

 In my application images are not laoding. I have attached the code.




[flexcoders] Re: Preferred Socket Policy File Server Implementation?

2010-01-22 Thread jamesfin



Here's a Java based PFS...a flash-player bug seems to still exist though...
https://bugs.adobe.com/jira/browse/FP-1866


package

import java.io.BufferedReader;
import java.io.EOFException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.InterruptedIOException;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * Class PolicyServer
 * Starts a PolicyServer on the specified port.
 * Can be started as main class, passing the port number as the first command 
line argument
 *
 */

public class PolicyServer extends Thread
{
/**
 * If no argument is passed the server will listen on this port for 
connections
 */
public static final int DEFAULT_PORT = 1008;
public static final String[] DEFAULT_POLICY = new String[] { * };

/**
 * The character sequence sent by the Flash Player to request a _policy 
file
 */
public static final String POLICY_REQUEST = policy-file-request/;

public static final boolean DEBUG = true;

/**
 * @param args  Use the first command line argument to set the port the 
server will listen on for connections
 */
public static void main(String[] args)
{
int port = DEFAULT_PORT;
try
{
if (args.length0) port = Integer.parseInt(args[0]);
}
catch (NumberFormatException e) {}

// Start the PolicyServer
(new PolicyServer( port , new String[] { *:80 })).start();
}


/*
 * PolicyServer class variables
 */
private int _port;
private boolean _listening;
private ServerSocket _socketServer;
private String _policy;


/**
 * PolicyServer constructor
 * @param port_ Sets the port that the PolicyServer listens on
 */
public PolicyServer( int port_, String[] allowedHosts_ )
{
_port = port_;
_listening=true;
if (allowedHosts_==null) allowedHosts_ = DEFAULT_POLICY;
_policy = buildPolicy(allowedHosts_);
}

private String buildPolicy( String[] allowedHosts_ )
{
StringBuffer policyBuffer = new StringBuffer();

policyBuffer.append(?xml 
version=\1.0\?cross-domain-policy);
for (int i = 0; i  allowedHosts_.length; i++) {
String[] hostInfo = allowedHosts_[i].split(:);
String hostname = hostInfo[0];
String ports;
if (hostInfo.length1) ports = hostInfo[1];
else ports = *;

policyBuffer.append(allow-access-from 
domain=\+hostname+\ to-ports=\+ports+\ /);
}
policyBuffer.append(/cross-domain-policy);

return policyBuffer.toString();
}

/**
 * Thread run method, accepts incoming connections and creates 
SocketConnection objects to handle requests
 */
public void run()
{
try
{
_listening=true;

// Start listening for connections
_socketServer = new ServerSocket(_port,50);
if (DEBUG) System.out.println(PolicyServer listening 
on port +_port);

while(_listening)
{
// Wait for a connection and accept it
Socket socket = _socketServer.accept();

try
{
if (DEBUG) 
System.out.println(PolicyServer got a connection on port +_port);
// Start a new connection thread
(new SocketConnection(socket)).start();
}
catch (Exception e)
{
if (DEBUG) 
System.out.println(Exception: +e.getMessage());
}
try
{
// Wait for a sec until a new 
connection is accepted to avoid flooding
sleep(1000);
}
catch (InterruptedException e) {}
}
}
catch(IOException e)
{
if (DEBUG) System.out.println(IO Exception: 

[flexcoders] Custom ComboBox Class issue

2010-01-22 Thread Warren
Yesterday I posted some code which fixes a bug and adds some features to the 
ComboBox.  Because the ComboBox class has private functions in it, I was forced 
to copy the code into my own class and modify it.  No problems except.

I had named my class ComboBox simply because I copied the code directly from 
the sdk.  Yesterday I decided it might be a better idea to name it something 
different to distinguish it from the one in the sdk.  I went into my class and 
renamed it to ComboBoxSuper. 

Now it doesn't work some of the time.  If I use ComboBoxSuper as straight a 
mxml tag, it fails.  If I create one in AS and then addChild it to a container, 
it works fine.

I don't get it.  Can anyone explain this behavior?

Warren

Re: [flexcoders] How to click through a component ?

2010-01-22 Thread kovacs levy
try to use mouseEnabled and mouseChildren properties, if those will set to 
false the component will not interact with the mouse





From: thomas parquier mailingli...@web-attitude.fr
To: flexcoders@yahoogroups.com
Sent: Fri, January 22, 2010 4:02:20 PM
Subject: [flexcoders] How to click through a component ?

  
Hello,

How to get sort of a click-through- component behavior ?
In the app I'm coding now, an image with some transparency should not prevent a 
component behind (not a child) to receive mouse events.

have a good day,
thomas parquier
---
http://www.web- attitude. fr/realisations/
msn : thomas.parquier@ web-attitude. fr
softphone : sip:webattitude@ ekiga.net
téléphone portable : +33601 822 056

 


  

Re: [flexcoders] IP adress for Language

2010-01-22 Thread Kevin Benz
Locale is the only thing that really works. IP/Country is fine if you have to 
model different business processes depending on the location (VAT tax vs Sales 
Tax). Export restrictions, etc etc.

Remember, just because you know they might be in France, doesn't mean they 
don't prefer English. Over half the computers in Quebec are set to French in a 
predominately English speaking country. Locale is a user determined setting and 
using it allows you to accomodate their preferences.

On Jan 20, 2010, at 7:58 AM, Christophe wrote:

 Hello, 
 
 I have a bilingual Flex application. French and English.
 How to automatically set the French or English version in function of the IP 
 adress localisation of the client PC ?
 
 Thank you,
 Christophe, 
 
 

Kevin F. Benz
kb...@kbenz.com (425) 785-7100  http://www.kbenz.com

http://www.facebook.com/kbenz  http://www.linkedin.com/in/kbenz
 
We can't solve problems by using the same kind of thinking we used when we 
created them - Albert Einstein



RE: [flexcoders] Custom ComboBox Class issue

2010-01-22 Thread Vaibhav Seth

its a problem with the namespace.
check out for manifest.xml

Thanks,
Vaibhav Seth.




 EMAILING FOR THE GREATER GOOD
Join me

To: flexcoders@yahoogroups.com
From: warrenony...@charter.net
Date: Fri, 22 Jan 2010 09:17:16 -0600
Subject: [flexcoders] Custom ComboBox Class issue


















 



  



  
  
  



Yesterday I posted some code which fixes a bug and 
adds some features to the ComboBox.  Because the ComboBox class has private 
functions in it, I was forced to copy the code into my own class and modify 
it.  No problems except.
 
I had named my class ComboBox simply because I 
copied the code directly from the sdk.  Yesterday I decided it might be a 
better idea to name it something different to distinguish it from the one in 
the sdk.  I went into my class and renamed it to ComboBoxSuper. 

 
Now it doesn't work some of the time.  If I 
use ComboBoxSuper as straight a mxml tag, it fails.  If I create one 
in AS and then addChild it to a container, it works fine.
 
I don't get it.  Can anyone explain this 
behavior?
 
Warren




 









  

RE: [flexcoders] Public Arrays

2010-01-22 Thread Vaibhav Seth

If I got you right, are you getting the references as null inside the array or 
array itself as null ?

Then you can call the function on the close event of the window, inside the 
pop-up component.


Thanks,
Vaibhav Seth.




 EMAILING FOR THE GREATER GOOD
Join me

To: flexcoders@yahoogroups.com
From: fotis.chatzini...@gmail.com
Date: Fri, 22 Jan 2010 14:40:41 +0200
Subject: Re: [flexcoders] Public Arrays


















 



  



  
  
  Can you post an example? I have tens of public arrays and 
arraycollections and they work without any problems...


On Fri, Jan 22, 2010 at 2:35 PM, criptopus sd_br...@ntlworld.com wrote:
















 



  



  
  
  I have an array of Video Players (yes video players, if people set up 
more than one in the CMS why should I deny them the luxury).



I have just opened a preview window and there they are and they play lovely, 
just when I click the cross to close the TitleWindow they are displayed in I 
would like to stop them all playing.



Fortunately or unfortunately I have references to the custom players in an 
array I was going to make public so that the calling program that opened the 
pop up could close all those that where playing.



The the problem, don't seem to be able to make an array public, it will let me 
define it as public but it does not like me referencing it.



Does anybody have a work around?



- Stephen







 









  








-- 
Fotis Chatzinikos, Ph.D.
Founder,
LivinData Technologies
www.styledropper.com
fotis.chatzini...@gmail.com, 






 









  

RE: [flexcoders] How to parse xml with namespaces

2010-01-22 Thread Vaibhav Seth

Use regex and eliminate the namspaces from the root tag of the XML, check if it 
works.

Root
.
.
.

/Root

Thanks,
Vaibhav Seth.




 EMAILING FOR THE GREATER GOOD
Join me

To: flexcoders@yahoogroups.com
From: lukevanderfl...@gmail.com
Date: Fri, 22 Jan 2010 03:04:05 +
Subject: [flexcoders] How to parse xml with namespaces


















 



  



  
  
  Hi. 



Here is a snippet of xml:

It contains an element with a namespace (c:question) and several elements 
without a namespace.

If I get the whole thing as an XML object, how do I go about accessing all the 
different fields.

E.G. I need to access the c:question text or c:question subelements



So: 1. c:question text: This is a wine question

2. c:question subelements: p.ul.li: Penfolds Grange - no effect or p: A 
bottle shop in a remote country pub sells five different bottled wines. The 
publican increases the price of a bottle of Jacob's Creek core range by 50 
cents.

3. question attribute format: radio



Ive tried setting a namespace for c and a default namespace but cannot 
consistently access elements and values from both namespaces.



Id love your help..

Thanks.

Kr. 

Luke.



=

?xml version=\1.0\ encoding=\UTF-8\?

c:question xmlns=\http://www.w3.org/1999/xhtml\; 
xmlns:c=\http://www.eddygordon.com/namespaces/course\;This is a wine question

pA bottle shop in a remote country pub sells five different bottled wines. 
The publican increases the price of a bottle of Jacob's Creek core range by 50 
cents. 

/p

pAssuming that the prices of the other wines do not change, the Jacob's Creek 
price increase is likely to affect sales of the other products as follows:

/p

p 

  ul

liPenfolds Grange - no effect;

/li

liWyndham Estate Bin Range - the Wyndham Estate products are slightly 
more expensive but the price increase has narrowed the gap so a slight increase 
can be expected;

/li

liLindemans Bin Range - large increase in sales as this is a direct 
competitor;

/li

liRosemount Split Label Range - large increase in sales as this is a 
direct competitor

/li

  /ul/ppBased on this information, which wines are in the same market as 
Jacob's Creek? 

/p

question format=\radio\ name=\part1\

 answer correct=\true\Lindemans Bin Range and Rosemount Split Label Range 
are definitely in the same market and Wyndham Estate may be.

 /answer

 answerPenfolds Grange is the only wine in the same market.

 /answer

 answerLindemans Bin Range and Rosemount Split Label Range are the only wines 
in the same market.

 /answer

/questionp/

/c:question









 









  

RE: [flexcoders] HSlider max/min position

2010-01-22 Thread Vaibhav Seth

Try rotating the control by 180 degree and give a thumb your own inverted icon, 
so that it can appear straight.

Or else, don't set the values to the control directly, but use a function to 
set and get its value, take care of the inversion of the values in the setters 
and getters.

Thanks,
Vaibhav Seth.




 EMAILING FOR THE GREATER GOOD
Join me

To: flexcoders@yahoogroups.com
From: kashif.i...@gmail.com
Date: Thu, 21 Jan 2010 12:15:22 -0500
Subject: [flexcoders] HSlider max/min position


















 



  



  
  
  Hi,



I have to swap max/min position in HSlider control.



By default max come to right and min on left.



Any help would be appreciated



Thanks

Kashif Inam



Sent from my iPhone





 









  

RE: [flexcoders] How to dynamically populate the Header Text of Flex Datagrid from XML or from an arrayCollection

2010-01-22 Thread Vaibhav Seth

You need to make it hardcoded, as you hard code the dataField for every column.

Else you need to make use of regex and apply it to the XML to make out your 
nodes for the headers.

Good practice is not to pouplate it like this, instead make proper VOs and 
populate them with your data XML. Your work will be more structured and then 
you have control over the things you mentioned.


Thanks,
Vaibhav Seth.




 EMAILING FOR THE GREATER GOOD
Join me

To: flexcoders@yahoogroups.com
From: thomas_...@yahoo.com
Date: Thu, 21 Jan 2010 11:55:41 -0800
Subject: [flexcoders] How to dynamically populate the Header Text of Flex 
Datagrid from XML or from an arrayCollection


















 



  



  
  
  Hi,

I currently return an XML File(below) to Flex and have been assigning it to an 
array collection in order to populate a data grid.   As of now i have the 
header Text hardcoded . I want to put it dynamically from the arraycollection 
below, and some timee there are some of the columns need to hide and show 
too.How can i do this? 
 

var xLabels:Array = (Xs[0].label as Array);

labels = new ArrayCollection(xLabels); 

var hObj:Object=new Object();
for (var lObj:int=0; lObj  labels.length; lObj++)
{

hlabel =labels[lObj];
}


public var arrRawData:ArrayCollection = new ArrayCollection();  

__model.arrNewData = event.result.rawdata.record as ArrayCollection;
var xmlResult:XML = XML(event.result);

Any help would be greatly appreciated.

Thanks,
blue





1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:

rawdata
record
ServiceSer1/Service
Health1Health
Availability100%Availability
Risk2/Risk
/record
record
ServiceSer1/Service
Health1Health
Availability100%Availability
Risk2/Risk
/record
record
ServiceSer1/Service
Health1Health
Availability100%Availability
Risk2/Risk

/record
record
ServiceSer1/Service
Health1Health
Availability100%Availability
Risk2/Risk
/record
/rawdata



 









  

[flexcoders] Re: Public Arrays

2010-01-22 Thread Amy


--- In flexcoders@yahoogroups.com, criptopus sd_br...@... wrote:

 I have an array of Video Players (yes video players, if people set up more 
 than one in the CMS why should I deny them the luxury).
 
 I have just opened a preview window and there they are and they play lovely, 
 just when I click the cross to close the TitleWindow they are displayed in I 
 would like to stop them all playing.
 
 Fortunately or unfortunately I have references to the custom players in an 
 array I was going to make public so that the calling program that opened the 
 pop up could close all those that where playing.
 
 The the problem, don't seem to be able to make an array public, it will let 
 me define it as public but it does not like me referencing it.

What you're probably experiencing (though doesn't like me referencing it is 
SO vague this is just a guess) is that the default data binding Flex sets up 
for you when you use {} notation does not fire when an element of an array 
changes.  Instead, it will only fire if the entire array changes.  This is why 
God invented the ArrayCollection.

You have several choices if this is, in fact, your problem:

1) Switch to an AC
2) Manually dispatch a property change event for the array that is a property 
of the object.
3) Replace the entire array object with a different array object with your 
desired values every time.

Check out this preso for more information 
http://tv.adobe.com/watch/360flex-conference/diving-in-the-data-binding-waters-by-michael-labriola/

HTH;

Amy



Re: [flexcoders] How to click through a component ?

2010-01-22 Thread thomas parquier
already set mouseEnabled to false... so as includeInLayout

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


2010/1/22 kovacs levy gyermek_...@yahoo.com



 try to use mouseEnabled and mouseChildren properties, if those will set to
 false the component will not interact with the mouse

 --
 *From:* thomas parquier mailingli...@web-attitude.fr
 *To:* flexcoders@yahoogroups.com
 *Sent:* Fri, January 22, 2010 4:02:20 PM
 *Subject:* [flexcoders] How to click through a component ?



 Hello,

 How to get sort of a click-through- component behavior ?
 In the app I'm coding now, an image with some transparency should not
 prevent a component behind (not a child) to receive mouse events.

 have a good day,
 thomas parquier
 ---
 http://www.web- attitude. 
 fr/realisations/http://www.web-attitude.fr/realisations/
 msn : thomas.parquier@ web-attitude. fr thomas.parqu...@web-attitude.fr
 softphone : sip:webattitude@ ekiga.net sip%3awebattit...@ekiga.net
 téléphone portable : +33601 822 056

  



Re: [flexcoders] How to click through a component ?

2010-01-22 Thread thomas parquier
I managed to get an underlying canvas receive events (not a uicomponent as
previously set).

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


2010/1/22 thomas parquier mailingli...@web-attitude.fr

 already set mouseEnabled to false... so as includeInLayout


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


 2010/1/22 kovacs levy gyermek_...@yahoo.com



 try to use mouseEnabled and mouseChildren properties, if those will set to
 false the component will not interact with the mouse

 --
 *From:* thomas parquier mailingli...@web-attitude.fr
 *To:* flexcoders@yahoogroups.com
 *Sent:* Fri, January 22, 2010 4:02:20 PM
 *Subject:* [flexcoders] How to click through a component ?



 Hello,

 How to get sort of a click-through- component behavior ?
 In the app I'm coding now, an image with some transparency should not
 prevent a component behind (not a child) to receive mouse events.

 have a good day,
 thomas parquier
 ---
 http://www.web- attitude. 
 fr/realisations/http://www.web-attitude.fr/realisations/
 msn : thomas.parquier@ web-attitude. fr thomas.parqu...@web-attitude.fr
 softphone : sip:webattitude@ ekiga.net sip%3awebattit...@ekiga.net
 téléphone portable : +33601 822 056

  





[flexcoders] Re: Adobe pulls Single CPU and 100-user licenses

2010-01-22 Thread busitech
Good to hear from you, Jeff!  We are saddened too.  We are quite
passionate about LCDS, and always have been.  We built somewhere in the
neighborhood of 14 test cases for LCDS 3.0 during the most recent
alpha/beta, so just in the last 6 months our investment has remained
quite significant even though we're a small company without deep
pockets.  This was not welcome news to say the least, especially at the
end of the beta process we just went through, upgrading everything.  I
feel like the crew of the SS Minnow!  Here's what the developer of
another Flex data project has said about fds.swc:
[Our] data management implementation is quite different than the one in
LCDS. The code and APIs from LCDS have not been ported. The reason for
that is Adobe's license agreement. When you use Adobe's LCDS approach,
your client code is coupled to their library (fds.swc). Even if you do
not have LCDS running on the backend, but use their client-side data
management library, you still owe the LCDS licensing fee to Adobe. Our
attorney confirmed this and we also had a conversation with the LCDS
team management about it as well.
Our software uses the LCDS exclusive features quite heavily, especially
for sending messages from server to client.  We have an ERP system
almost ready to release.  If an inventory count changes, it is broadcast
in case anyone is selling from an inventory search which has become
stale.  Price changes work the same way, as well as customer A/R
balances, etc.
We will be looking at how to recreate the auto sync functions and
obtaining true data push (or reverse RPC).  We're looking at Red5
http://code.google.com/p/red5/   for possibly adding RTMP to BlazeDS. 
At least if we start with BlazeDS, we can use our custom object proxies
in the serialization process.  Red5 has also implemented SharedObjects
(between client and server) which is really neat.
I will definitely read your articles.  Unless Adobe hurries up and
changes their LCDS licensing policies very soon, I'll be interested in
working on a project which would at least integrate what is available,
and build the missing pieces.
Some of the client code found in fds.swc has been recreated by Farata
Systems and released as open source
http://sourceforge.net/projects/cleartoolkit/ .  They've built change
tracking/logging on the client for sending and array of ChangeObjects to
the server through a RemoteObject, simulating what LCDS would pass to
the sync() method...  I have not looked at their OfflineDataCollection
yet.  I don't think they've got unsolicited data push in there, but I'm
still investigating.  They've also got an NIO streaming AMF channel
endpoint written for BlazeDS on Servlet 3.0.
Thank you for your willingness to contribute, Jeff.  Let's watch this
thread to see what kind of demand there is.  We may need to move on it
simply for our own product to be marketable.
Best Regards!


[flexcoders] Re: Adobe pulls Single CPU and 100-user licenses

2010-01-22 Thread busitech
João, would you (and others) mind heading over to Anil Channappa's
blog post http://anilchannappa.org/2009/11/20/lcds-3-0-released/  
about this to voice your concern?  There's a long string of comments
which are calling for lower pricing so LCDS can be successful.  We are
very passionate about this product, and want to see it available for
everyone.  I think it's essential they know we're out here.  Thank you.


[flexcoders] Re: Adobe pulls Single CPU and 100-user licenses

2010-01-22 Thread busitech
Hi Tom, in the same vein, Adobe downgraded ColdFusion 9 to include BlazeDS 
instead of LCDS.


 Dunno about price, but have you looked at ColdFusion? Comes with LCDS and a 
 bunch of other stuff.
 




Re: [flexcoders] Custom ComboBox Class issue

2010-01-22 Thread Warren
OK.  I read up on manifest files and gave it a go.

I had no manifest in my library project so I created one

?xml version=1.0?
componentPackage
component id=ComboBoxSuper class=myClassLibrary.ComboBoxSuper/
component id=ComboBox class=myClassLibrary.ComboBox/
/componentPackage

I added this to the library compiler, created a namespace URL http://myLibrary, 
and recompiled

I changed my application from 

xmlns:myCL=myClassLibrary.*  to 
xmlns:myCL=http://myLibrary;  and recompiled.  Got no errors but it still 
doesn't work.

I must be missing something once more.  Can you elaborate a bit more about what 
is wrong and what I need to do to fix it?


  - Original Message - 
  From: Vaibhav Seth 
  To: flexcoders@yahoogroups.com 
  Sent: Friday, January 22, 2010 11:18 AM
  Subject: RE: [flexcoders] Custom ComboBox Class issue



  its a problem with the namespace.
  check out for manifest.xml

  Thanks,
  Vaibhav Seth.




 EMAILING FOR THE GREATER GOOD
Join me 





--
  To: flexcoders@yahoogroups.com
  From: warrenony...@charter.net
  Date: Fri, 22 Jan 2010 09:17:16 -0600
  Subject: [flexcoders] Custom ComboBox Class issue




  Yesterday I posted some code which fixes a bug and adds some features to the 
ComboBox.  Because the ComboBox class has private functions in it, I was forced 
to copy the code into my own class and modify it.  No problems except.

  I had named my class ComboBox simply because I copied the code directly from 
the sdk.  Yesterday I decided it might be a better idea to name it something 
different to distinguish it from the one in the sdk.  I went into my class and 
renamed it to ComboBoxSuper. 

  Now it doesn't work some of the time.  If I use ComboBoxSuper as straight a 
mxml tag, it fails.  If I create one in AS and then addChild it to a container, 
it works fine.

  I don't get it.  Can anyone explain this behavior?

  Warren




  

[flexcoders] file extension missing when save the file.

2010-01-22 Thread markflex2007
Hi,

I did this

var fileRef:FileReference = new FileReference;
fileRef.save(bytes, 'books.xls');

but the popup save window only have books. I need the window have books.xls

Why the extension is missing.Please help.

Thanks

Mark




[flexcoders] problems with firefox 3.6 on a mac

2010-01-22 Thread gwgeiger947
Has any one else experienced issues with double clicking when using Firefox 3.6 
on a mac ? I can't get it to work anywhere. I have tried other people's example 
sites to show double clicking and it works in safari, but not on the new 
firefox.

any ideas, help, suggestions ?



[flexcoders] Re: spark list functions missing?

2010-01-22 Thread Ariel J
1) dataGroup.getElementAt won't return renderers for non-visible items
2) dataGroup.verticalScrollPosition is measured in pixels not items
3) dataGroup.getElementAt cannot receive an index based on the dataProvider 
because if the 10th item is the first visible item, the index of the renderer 
for the 10th item is the element at position 0.
4) ensureIndexIsVisible works, but does not tell us where the item renderer is 
positioned in the dataGroup so we still have to seach the elements of the 
dataGroup to get the item of interest. 

Interestingly enough, if you create a list of height 100 with 5 data items and 
use an item renderer with height 50 so only 2 items show at a time, the 
dataGroup's numElements property will equal 5, yet cycling through them, three 
will be null.

To get indexToItemRenderer type functionality, you need to:

myList.ensureIndexIsVisible(4);
myList.validateNow();

for (var i:int = 0; i  myList.dataGroup.numElements; i++)
{
var element:IVisualElement = myList.dataGroup.getElementAt(i);

if (element != null)
{
if (ItemRenderer(element).data == dp.getItemAt(indexOfInterest))
{
return element;
}
}
}

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 I haven¡Çt actually tried it but you could use
 
 
  1.  dataGroup.getElementAt
  2.  dataGroup.verticalScrollPosition
  3.  dataGroup.getElementAt(dataProvider.getItemIndex(item)) != null)
  4.  ensureIndexIsVisible
 
 
 On 1/21/10 7:14 PM, j2me_soul j2me_s...@... wrote:
 
 
 
 
 
 
 yes, I find this problem too.
 
 Is anybody figure out this ?
 
 
 ºß2010-01-22 02:59:50¡¤Ariel J arielj...@... ¼ÌÆ»¡§
 
 Where are these methods in the spark list control:
 
 1) indexToItemRenderer()
 
 2) set verticalScrollPosition() - that uses the index of the item in the data 
 provider
 
 3) isItemVisible()
 
 4) scrollToIndex
 
 I am also not finding them in DataGroup.
 
 
 
 
 
 
 
 
 --
 Alex Harui
 Flex SDK Team
 Adobe System, Inc.
 http://blogs.adobe.com/aharui





Re: [flexcoders] Re: spark list functions missing?

2010-01-22 Thread Alex Harui
 1.  There is also a getVirtualElementAt
 2.  You’re right. I remembered that after I hit send.  Is the element’s Y 
value useful?
 3.  getItemIndicesInView might help or getElementIndex


On 1/22/10 11:54 AM, arielj...@yahoo.com arielj...@yahoo.com wrote:






1) dataGroup.getElementAt won't return renderers for non-visible items
2) dataGroup.verticalScrollPosition is measured in pixels not items
3) dataGroup.getElementAt cannot receive an index based on the dataProvider 
because if the 10th item is the first visible item, the index of the renderer 
for the 10th item is the element at position 0.
4) ensureIndexIsVisible works, but does not tell us where the item renderer is 
positioned in the dataGroup so we still have to seach the elements of the 
dataGroup to get the item of interest.

Interestingly enough, if you create a list of height 100 with 5 data items and 
use an item renderer with height 50 so only 2 items show at a time, the 
dataGroup's numElements property will equal 5, yet cycling through them, three 
will be null.

To get indexToItemRenderer type functionality, you need to:

myList.ensureIndexIsVisible(4);
myList.validateNow();

for (var i:int = 0; i  myList.dataGroup.numElements; i++)
{
var element:IVisualElement = myList.dataGroup.getElementAt(i);

if (element != null)
{
if (ItemRenderer(element).data == dp.getItemAt(indexOfInterest))
{
return element;
}
}
}

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex 
Harui aha...@... wrote:

 I haven¡Çt actually tried it but you could use


  1.  dataGroup.getElementAt
  2.  dataGroup.verticalScrollPosition
  3.  dataGroup.getElementAt(dataProvider.getItemIndex(item)) != null)
  4.  ensureIndexIsVisible


 On 1/21/10 7:14 PM, j2me_soul j2me_s...@... wrote:






 yes, I find this problem too.

 Is anybody figure out this ?


 ºß2010-01-22 02:59:50¡¤Ariel J arielj...@... ¼ÌÆ»¡§

 Where are these methods in the spark list control:

 1) indexToItemRenderer()

 2) set verticalScrollPosition() - that uses the index of the item in the data 
 provider

 3) isItemVisible()

 4) scrollToIndex

 I am also not finding them in DataGroup.








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







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


[flexcoders] Re: Datagrid itemrenderer for adding multiple linkbuttons in same gridcolumn

2010-01-22 Thread aramsdell2000
I have put aside the thoughts of making fancy hyperlinks, now I am just trying 
to understand events in the itemrenderer. I am ashamed to say that even after 
searching this subject in the forum and googling it, I still find myself 
struggling.

I ended up trying a LinkBar as Tino suggested 

in the itemrenderer:
else if (column.dataField == monitorlocations){
 var linksArray:Array = String((data[monitorlocations])).split(\n);
 var linkbarItemRendererFactory:ClassFactory = new ClassFactory(LinkBar);
 linkbarItemRendererFactory.properties = {dataProvider:linksArray, 
direction:vertical,enabled:true };
 column.itemRenderer = linkbarItemRendererFactory;
 column.setStyle(verticalGap,5);
 column.addEventListener(ItemClickEvent.ITEM_CLICK, linkBarEventHandler); 


Problem is that it seems like the click event on the button on the linkbar 
never makes it to the linkBarEventHandler which is a function inside this 
itemrenderer. I would at least think that this event would fire but setting a 
breakpoint in this eventhandler fuction, I can tell it never makes it there. 
The datagrid itemclick event doesn't even get called like it does in the other 
columns, which I think is a good indication that I can bubble up the linkbar 
clickItem event, I just can't figure out what I am doing wrong or even how to 
capture in a debug session what happens on that click event.


One post I read says :

Re: [flexcoders] Listem to an event sent by a DataGrid ItemRenderer 

In your item renderer, if you have control over the TimerEvent creation, set 
the bubbles parameter to true.  If you do not, you may want to catch the 
event in the renderer and  re-dispatch a new one with bubbles set to true.  
This will allow your event to bubble out, up the parental chain until it 
reaches your application.  Then all you need to do is register for the event 
at the Application level.


Can I set the bubbles property to true somehow using the ItemRendererFactory 
approach I have above? If I can't, theoretically I can dispatch the event from 
the eventhandler (if I could get it to fire) and then listen for it in the file 
that my datagrid is created in. 

Alternative to bubbling up an event, maybe somehow I can add an eventlistener 
that calls a function using owner.document.myFunction?




--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 As far as I know the code is open source but you could add a comment at his 
 blog (http://www.jabbypanda.com/blog/?p=28).
 
 You will either have to disable the datagrids click event handler on that 
 specific column or figure out a way to put each link in its own column.
 
 --- In flexcoders@yahoogroups.com, aramsdell2000 aramsdell2000@ wrote:
 
  Actually I am not so sure how this will work in a datagrid. One datagrid 
  cell would have multiple hyperlink buttons. Right now the click event for 
  the datagrid behaves differently depending on which column you click. In 
  another column I have one link button per row. But for this one, I would 
  have several link buttons in one row's cell. Do I do nothing on the 
  datagrid's click event and then the listerner events for the links would 
  take over? Haven't tried anything yet, just thinking about how to approach 
  it.
  
  Thanks!
  
  --- In flexcoders@yahoogroups.com, aramsdell2000 aramsdell2000@ wrote:
  
   Oh wow, this looks great! Thank you! This looks like what I want to do, 
   just curious, how do I cite it if I use it/ modified version of it?? I 
   can add a link to his website and blog in the code?
   
   --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote:
   
Here is a quick and dirty example using the hyperlink component from
jabbypanda (http://jabbypanda.com/labs/hyperLink/srcview/index.html):

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute width=700
 mx:Script
 ![CDATA[
 import mx.collections.ArrayCollection;

 [Bindable] public var initDG:ArrayCollection = new
ArrayCollection([
 {Company: 'Apple Computer', WebSites:
'www.apple.com,store.apple.com,developer.apple.com'},
 {Company: 'Google', WebSites:
'www.google.com,code.google.com,mail.google.com'}
 ]);
 ]]
 /mx:Script
 mx:DataGrid id=myGrid dataProvider={initDG}
rowCount={initDG.length}
 mx:columns
 mx:DataGridColumn width=120 dataField=Company
editable=false/
 mx:DataGridColumn width=500 dataField=WebSites
itemRenderer=Renderers.LinksRenderer/
 /mx:columns
 /mx:DataGrid
/mx:Application

LinksRenderer.as:
package Renderers
{
 import flash.net.*;
 import htmltext.controls.HyperLink;
 import htmltext.controls.events.HyperlinkEvent;
 import mx.containers.HBox;

 public class LinksRenderer extends 

Re: [flexcoders] Custom ComboBox Class issue

2010-01-22 Thread Warren
I found what is causing the problem.  ComboBoxSuper failed to work when the 
arrowButtonWidth wasn't set in the mxml.  I never set it in my custom class 
because it seemed to be there already.  There must be some default parameters 
that the mx:ComboBox pulls in and that my ComboBox version was inheriting 
without me knowing about it.  ComboBoxSuper didn't inherit these values and 
fails silently.

Sigh.  I've fought my way through the debugger and it is way beyond me.  
Something is setting the default styles and parameters for a combobox but I 
can't figure out where it is or how to force my ComboBoxSuper to pick them up.  
I hate relying on using the same class name...  I'm reluctant to create an 
arrowButtonStyle in the ComboBoxSuper constructor -- that may fix that problem 
but I don't know what other defaults I'm missing because I can't extend the 
ComboBox.

Anyone have a suggestion?


  - Original Message - 
  From: Warren 
  To: flexcoders@yahoogroups.com 
  Sent: Friday, January 22, 2010 12:31 PM
  Subject: Re: [flexcoders] Custom ComboBox Class issue




  OK.  I read up on manifest files and gave it a go.

  I had no manifest in my library project so I created one

  ?xml version=1.0?
  componentPackage
  component id=ComboBoxSuper class=myClassLibrary.ComboBoxSuper/
  component id=ComboBox class=myClassLibrary.ComboBox/
  /componentPackage

  I added this to the library compiler, created a namespace URL 
http://myLibrary, and recompiled

  I changed my application from 

  xmlns:myCL=myClassLibrary.*  to 
  xmlns:myCL=http://myLibrary;  and recompiled.  Got no errors but it still 
doesn't work.

  I must be missing something once more.  Can you elaborate a bit more about 
what is wrong and what I need to do to fix it?


- Original Message - 
From: Vaibhav Seth 
To: flexcoders@yahoogroups.com 
Sent: Friday, January 22, 2010 11:18 AM
Subject: RE: [flexcoders] Custom ComboBox Class issue


  
its a problem with the namespace.
check out for manifest.xml

Thanks,
Vaibhav Seth.




   EMAILING FOR THE GREATER GOOD
  Join me 






To: flexcoders@yahoogroups.com
From: warrenony...@charter.net
Date: Fri, 22 Jan 2010 09:17:16 -0600
Subject: [flexcoders] Custom ComboBox Class issue

  


Yesterday I posted some code which fixes a bug and adds some features to 
the ComboBox.  Because the ComboBox class has private functions in it, I was 
forced to copy the code into my own class and modify it.  No problems 
except.

I had named my class ComboBox simply because I copied the code directly 
from the sdk.  Yesterday I decided it might be a better idea to name it 
something different to distinguish it from the one in the sdk.  I went into my 
class and renamed it to ComboBoxSuper. 

Now it doesn't work some of the time.  If I use ComboBoxSuper as straight a 
mxml tag, it fails.  If I create one in AS and then addChild it to a container, 
it works fine.

I don't get it.  Can anyone explain this behavior?

Warren





  

[flexcoders] flex 4 - application root

2010-01-22 Thread Ariel J
anyone know how to get a reference to the root Application in some static way. 

I used to say PopUpManager.addPopup() with the Application.application as the 
parent. That property isn't there anymore. 

Are there other options?



[flexcoders] Re: file extension missing when save the file.

2010-01-22 Thread seanmcmonahan
Are you running Windows by chance?

I had a problem with missing file extensions on Windows because the system 
default is to hide extensions for known file types.  A quick Google search will 
tell you how to disable this.  

Unfortunately there is no way you can know if your users have this enabled or 
disabled so you need to write some code to handle this possibility.

--- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote:

 Hi,
 
 I did this
 
 var fileRef:FileReference = new FileReference;
 fileRef.save(bytes, 'books.xls');
 
 but the popup save window only have books. I need the window have 
 books.xls
 
 Why the extension is missing.Please help.
 
 Thanks
 
 Mark





[flexcoders] Re: Custom ComboBox Class issue

2010-01-22 Thread Amy


--- In flexcoders@yahoogroups.com, Warren warrenony...@... wrote:

 I found what is causing the problem.  ComboBoxSuper failed to work when the 
 arrowButtonWidth wasn't set in the mxml.  I never set it in my custom class 
 because it seemed to be there already.  There must be some default parameters 
 that the mx:ComboBox pulls in and that my ComboBox version was inheriting 
 without me knowing about it.  ComboBoxSuper didn't inherit these values and 
 fails silently.
 
 Sigh.  I've fought my way through the debugger and it is way beyond me.  
 Something is setting the default styles and parameters for a combobox but I 
 can't figure out where it is or how to force my ComboBoxSuper to pick them 
 up.  I hate relying on using the same class name...  I'm reluctant to create 
 an arrowButtonStyle in the ComboBoxSuper constructor -- that may fix that 
 problem but I don't know what other defaults I'm missing because I can't 
 extend the ComboBox.
 
 Anyone have a suggestion?

I think it's called globals.css.

HTH;

Amy



[flexcoders] Re: How to dynamically populate the Header Text of Flex Datagrid from XML or from an arrayCollection

2010-01-22 Thread Amy


--- In flexcoders@yahoogroups.com, Vaibhav Seth vaibhav.s...@... wrote:

 
 You need to make it hardcoded, as you hard code the dataField for every 
 column.
 
 Else you need to make use of regex and apply it to the XML to make out your 
 nodes for the headers.
 
 Good practice is not to pouplate it like this, instead make proper VOs and 
 populate them with your data XML. Your work will be more structured and then 
 you have control over the things you mentioned.

What the heck? DataGridColumn has a property called headerText.  You can set 
this in AS.

Please be careful when responding to peoples' questions.  Sometimes you can 
cost someone more time giving them the wrong answer than by not answering at 
all.

Thomas, you can find the reference for the DataGridColumn class here:
http://livedocs.adobe.com/flex/3/langref/index.html?mx/controls/dataGridClasses/DataGridColumn.htmlmx/controls/dataGridClasses/class-list.html

Thanks;

Amy



[flexcoders] Re: Datagrid itemrenderer for adding multiple linkbuttons in same gridcolumn

2010-01-22 Thread Amy


--- In flexcoders@yahoogroups.com, aramsdell2000 aramsdell2...@... wrote:

 I have put aside the thoughts of making fancy hyperlinks, now I am just 
 trying to understand events in the itemrenderer. I am ashamed to say that 
 even after searching this subject in the forum and googling it, I still find 
 myself struggling.
 
 I ended up trying a LinkBar as Tino suggested 
 
 in the itemrenderer:
 else if (column.dataField == monitorlocations){
  var linksArray:Array = String((data[monitorlocations])).split(\n);
  var linkbarItemRendererFactory:ClassFactory = new ClassFactory(LinkBar);
  linkbarItemRendererFactory.properties = {dataProvider:linksArray, 
 direction:vertical,enabled:true };
  column.itemRenderer = linkbarItemRendererFactory;
  column.setStyle(verticalGap,5);
  column.addEventListener(ItemClickEvent.ITEM_CLICK, linkBarEventHandler); 
 
 
 Problem is that it seems like the click event on the button on the linkbar 
 never makes it to the linkBarEventHandler which is a function inside this 
 itemrenderer. I would at least think that this event would fire but setting a 
 breakpoint in this eventhandler fuction, I can tell it never makes it there. 
 The datagrid itemclick event doesn't even get called like it does in the 
 other columns, which I think is a good indication that I can bubble up the 
 linkbar clickItem event, I just can't figure out what I am doing wrong or 
 even how to capture in a debug session what happens on that click event.

If the linkBarEventHandler is a function inside the item renderer, I would 
expect you to get a compile error, since the function would be defined in a 
scope that the parent does not have access to, especially since when the 
factory is defined, no instances of it exist.

If you want to have an event handler in the itemRenderer, attach the event 
listener inside the item renderer, either in MXML or in AS.


The itemClick event of NavBar does not bubble, so the only place you can listen 
for it is inside the itemRenderer.  This is a separate and distinct event from 
the ListBase itemClick, which will give you information about the entire object 
that is represented in the DataGrid row.  You could potentially catch the 
NavBar itemClick in your renderer and create your own bubbling event that 
describes what happened.  You could also just listen for a mouse click anywhere 
on the DataGrid and check the target property to see if the LinkBar is in some 
way a parent of whatever was clicked.

HTH;

Amy



Re: [flexcoders] Re: Read svg file in FLEX

2010-01-22 Thread Aaron Hardy
Yeah, spit out some code or an error or something so we can help.

On Thu, Jan 21, 2010 at 11:40 PM, flexlearner flexlear...@yahoo.com wrote:



 I have some attributes in my svg file which I am not able to read using
 flex builder. Can you help me out in this regard ? Actually I have one svg
 file which I want to load it then parse it and get the x,y coordinates of
 path or rectangle which is there in svg file.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Aaron
 Hardy aaronius...@... wrote:
 
  Hey flexlearner,
 
  What's your question exactly? How to parse XML? After you parse the XML
  (you can use e4x) you'll convert SVG attributes into actionscript
 graphics
  functions like graphics.lineTo(). Are you having trouble with something
 in
  particular?
 
  Aaron
 
  On Thu, Jan 21, 2010 at 3:30 AM, flexlearner flexlear...@... wrote:
 
  
  
   Hi,
  
   I am new to flex and am using svg file for one of my application which
   basically contains 2-3 rectangles and few paths.
   Now I want to parse this svg file in my application and get rect
   coordinates.
  
   Kindly let me know how to achieve this.
  
  
  
 

  



[flexcoders] Re: Adobe pulls Single CPU and 100-user licenses

2010-01-22 Thread joao_m_fernandes
Tom, even with CF8 bundle with LCDS, you have to pay for a Departmental / 
enterprise license if your CFLCDS instance uses more than 1 CPU. You could 
always use them in separated instances, cf with all available resources and 
only LCDS restricted to 1 CPU.

João Fernandes

--- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiver...@... wrote:

 On Thursday 21 Jan 2010, busitech wrote:
  How are these changes affecting your business?
 
 Dunno about price, but have you looked at ColdFusion? Comes with LCDS and a 
 bunch of other stuff.
 
 -- 
 Helping to administratively introduce granular revolutionary prospective 
 one-to-one customers as part of the IT team of the year 2010, '09 and '08
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in England and 
 Wales under registered number OC307980 whose registered office address is at 
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
 of members is available for inspection at the registered office together with 
 a list of those non members who are referred to as partners.  We use the word 
 ?partner? to refer to a member of the LLP, or an employee or consultant with 
 equivalent standing and qualifications. Regulated by the Solicitors 
 Regulation Authority.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above and may 
 be confidential or legally privileged.  If you are not the addressee you must 
 not read it and must not use any information contained in nor copy it nor 
 inform any person other than Halliwells LLP or the addressee of its existence 
 or contents.  If you have received this email in error please delete it and 
 notify Halliwells LLP IT Department on 0870 365 2500.
 
 For more information about Halliwells LLP visit www.halliwells.com.





Re: [flexcoders] Re: Custom ComboBox Class issue

2010-01-22 Thread Warren
After digging around some, I found the defaults.css file.  I guess I could copy 
it into an assets folder and correct it for my class.  Then I'd have to figure 
out how to invoke it in the constructor.  Problem is I still don't know if I'm 
missing defaults on the properties too.  I guess any inherited ones would come 
in through the comboboxbase and that the combobox getters/setters I copied in 
would be sufficient.

I'm starting to wonder if keeping the ComboBox name in the custom class is not 
such a bad idea.  Things are getting complicated.

Or just change the private functions in the ComboBox.as sdk to protected so I 
can just extend the combobox and override the few functions I need.  I just 
hate messing with the sdk.


  - Original Message - 
  From: Amy 
  To: flexcoders@yahoogroups.com 
  Sent: Friday, January 22, 2010 6:37 PM
  Subject: [flexcoders] Re: Custom ComboBox Class issue





  --- In flexcoders@yahoogroups.com, Warren warrenony...@... wrote:
  
   I found what is causing the problem. ComboBoxSuper failed to work when the 
arrowButtonWidth wasn't set in the mxml. I never set it in my custom class 
because it seemed to be there already. There must be some default parameters 
that the mx:ComboBox pulls in and that my ComboBox version was inheriting 
without me knowing about it. ComboBoxSuper didn't inherit these values and 
fails silently.
   
   Sigh. I've fought my way through the debugger and it is way beyond me. 
Something is setting the default styles and parameters for a combobox but I 
can't figure out where it is or how to force my ComboBoxSuper to pick them up. 
I hate relying on using the same class name... I'm reluctant to create an 
arrowButtonStyle in the ComboBoxSuper constructor -- that may fix that problem 
but I don't know what other defaults I'm missing because I can't extend the 
ComboBox.
   
   Anyone have a suggestion?

  I think it's called globals.css.

  HTH;

  Amy



  

Re: [flexcoders] flex 4 - application root

2010-01-22 Thread Alex Harui
FlexGlobals.topLevelApplication


On 1/22/10 2:40 PM, arielj...@yahoo.com arielj...@yahoo.com wrote:






anyone know how to get a reference to the root Application in some static way.

I used to say PopUpManager.addPopup() with the Application.application as the 
parent. That property isn't there anymore.

Are there other options?






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


Re: [flexcoders] Re: Adobe pulls Single CPU and 100-user licenses

2010-01-22 Thread Jeffrey Vroom
That statement about fds.swc certainly was true before, but the DataService
apis are used to power the rpc based data tools in the new Flex Builder.  In
the beta at least, it was the exact same file shipped in LCDS as in FB, so
presumably use of that file would be covered by the FB4 license.  There's a
public adapter interface in the code in which you can translate messages
into whatever operation on the client.  It is used as the hinge point that
switches between client DMS in FB4 and LCDS.  That would be the easiest
way probably to hook into Granite - just use their client apis to emulate
the LCDS behavior right there in a new extension of RPCDataServiceAdapter.
Alternatively, you could override DataServiceAdapter's invoke method and
translate them directly into granite's AS library calls.

With BlazeDS on the backend, you can use the standard DataServiceAdapter
which sends those DataMessages to a new DataService on the server.  There
you would need some Java code to replace that DataService.java's
serviceMessage (I think).  It would translate those messages into the
Assembler calls, then get the response and translate that data back into
DataMessages.   The hardest one is the batch message used for updates.  It
essentially means decoding a series of messages and making repeated calls to
createItem, updateItem, etc.  Even that is easy until you start to factor in
associations.  That requires some subtle logic for turning the ids into
instances to preserve instance integrity but LCDS was not the first place I
used those algorithms :)

I think you also could get manual sync working using BlazeDS since the
DataService just uses a normal Consumer for implementing that.  Hopefully if
the new DataService extends MessagingService that would just work but there
is probably some tweaking needed there.   I have a feeling the farata folks
might have some of these pieces already so maybe we can just contribute to
that project?

FB4 also contains the core Java modeling code, used to generate those
service wrapper classes on the client.  FB4 does not contain the tools to
generate those models other than against simple RPC backends.  If the dev
license for LCDS really is free though, I wonder if you could use it to
generate models that you deploy on other servers?   If so, with a bit more
work you could write a model adapter which generates JPA code.  Not too hard
if you do not mind a web-app restart for model changes.

To me Adobe should be a tools company... giving the tools away for free
seems like a bad strategy.

Jeff

On Fri, Jan 22, 2010 at 10:05 AM, busitech m...@paradisesoftware.netwrote:



 Good to hear from you, Jeff! We are saddened too. We are quite passionate
 about LCDS, and always have been. We built somewhere in the neighborhood of
 14 test cases for LCDS 3.0 during the most recent alpha/beta, so just in the
 last 6 months our investment has remained quite significant even though
 we're a small company without deep pockets. This was not welcome news to say
 the least, especially at the end of the beta process we just went through,
 upgrading everything. I feel like the crew of the SS Minnow! Here's what the
 developer of another Flex data project has said about fds.swc:

 [Our] data management implementation is quite different than the one in
 LCDS. The code and APIs from LCDS have not been ported. The reason for that
 is Adobe's license agreement. When you use Adobe's LCDS approach, your
 client code is coupled to their library (fds.swc). Even if you do not have
 LCDS running on the backend, but use their client-side data management
 library, you still owe the LCDS licensing fee to Adobe. Our attorney
 confirmed this and we also had a conversation with the LCDS team management
 about it as well.


 Our software uses the LCDS exclusive features quite heavily, especially for
 sending messages from server to client. We have an ERP system almost ready
 to release. If an inventory count changes, it is broadcast in case anyone is
 selling from an inventory search which has become stale. Price changes work
 the same way, as well as customer A/R balances, etc.

 We will be looking at how to recreate the auto sync functions and obtaining
 true data push (or reverse RPC). We're looking at 
 Red5http://code.google.com/p/red5/
 for possibly adding RTMP to BlazeDS. At least if we start with BlazeDS, we
 can use our custom object proxies in the serialization process. Red5 has
 also implemented SharedObjects (between client and server) which is really
 neat.

 I will definitely read your articles. Unless Adobe hurries up and changes
 their LCDS licensing policies very soon, I'll be interested in working on a
 project which would at least integrate what is available, and build the
 missing pieces.

 Some of the client code found in fds.swc has been recreated by Farata
 Systems and released as open 
 sourcehttp://sourceforge.net/projects/cleartoolkit/.
 They've built change tracking/logging on the client for sending 

[flexcoders] Image not loading [1 Attachment]

2010-01-22 Thread venkat eswar
Hi ,

In my application when i click gallery1 button image s are loading in the 
tilelist container.But when i click the back button and then click the gallery2 
button, previously loaded images are displaying. What i am missing. Please help 
me to solve this issue..

Thanks,
Venkat





  

[flexcoders] Selecting a video from a list

2010-01-22 Thread Becky

I am trying to have a video play, by selecting it from a list.

Here is the code:



mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;

paddingLeft=4 paddingRight=8 paddingBottom=4

horizontalScrollPolicy=off verticalScrollPolicy=off



mx:Script

![CDATA[



public function toggle():void

{

if (vd.playing)

{

vd.stop();

list.visible = true;

}

else

{

list.visible = false;

vd.play();

}

}



]]

/mx:Script





mx:Parallel id=hideList

mx:children

mx:Array

mx:Resize target={list} widthTo=0/

mx:Resize target={vd} widthTo=400 heightTo=300/

/mx:Array

/mx:children

/mx:Parallel



mx:Parallel id=showList

mx:children

mx:Array

mx:Resize target={list} widthTo=180/

mx:Resize target={vd} widthTo=240 heightTo=180/

/mx:Array

/mx:children

/mx:Parallel



mx:List id=list width=180 height=100% selectedIndex=0

hideEffect=hideList showEffect=showList

mx:dataProvider

mx:Array

mx:Object label=Applying the CompreSleeve /

mx:Object label=Applying Strap Extenders/

/mx:Array

/mx:dataProvider

/mx:List



mx:Canvas width=100% verticalScrollPolicy=off
horizontalScrollPolicy=off



mx:VideoDisplay id=vd width=320 height=240
source=assets/compresleeve.flv

autoPlay=false complete=list.visible=true/



mx:Button label={vd.playing ? 'Stop' : 'Play'} click=toggle()
left=8 bottom=8 includeInLayout=false

/mx:Button



/mx:Canvas



/mx:HBox



How do i create those list items to have the flv file attributes and
then pass them to the video player.

Thanks so much!



[flexcoders] TabNavigator switches to second tab when revealed after a currentState change

2010-01-22 Thread Penny Laus
I've run into a funny problem in a registration application I'm
working on. The base state for this application is a TabNavigator with
three Canvas subelements. On its own, this works fine.

When the application loads, I switch away from the base state to a
screen to let the user login/get their password emailed/add a new
registration. If they want to add a new registration, currentState is
set back to  to return to the base state - the full data entry form.

The funny part is that when the state changes, the selectedIndex of
the TabNavigator switches from 0 to 1. I've stepped through in the
debugger and before this line the (hidden) TabNavigator has an index
of 0.

this.currentState = ; // Base state has input form

After this line, the TabNavigator has an index of 1.

If I explicitly reset the selectedIndex back to 0, the TabNavigator is
drawn with elements from the first two pages drawn on top of each
other. I can see that the Canvas for index 0 is drawn and the Canvas
for index 1 is drawn on top of that.

I've tried using a ViewStack instead of TabNavigator but, as you would
expect, it makes no difference.

I've been going around in circles for some time here without any
progress - is this problem ringing a bell? I didn't find anything like
it in the archives. I've tried with the 3.2 and 3.5 SDKs but the
behavior is the same in both cases.

I could skip the TabNavigator completely and do everything with
ViewStates but, honestly, I'd rather not. I find it simpler to work
with the TabNavigator in the visual designer. Then again, if it isn't
going to work right it's not really eaiser any more.

Thanks in advance for any help or suggestions.


RE: [SPAM] [flexcoders] TabNavigator switches to second tab when revealed after a currentState change

2010-01-22 Thread Tracy Spratt
For a change as significant as that, I suggest using ViewStack instead of
states.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Penny Laus
Sent: Saturday, January 23, 2010 1:22 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] TabNavigator switches to second tab when
revealed after a currentState change

 

  

I've run into a funny problem in a registration application I'm
working on. The base state for this application is a TabNavigator with
three Canvas subelements. On its own, this works fine.

When the application loads, I switch away from the base state to a
screen to let the user login/get their password emailed/add a new
registration. If they want to add a new registration, currentState is
set back to  to return to the base state - the full data entry form.

The funny part is that when the state changes, the selectedIndex of
the TabNavigator switches from 0 to 1. I've stepped through in the
debugger and before this line the (hidden) TabNavigator has an index
of 0.

this.currentState = ; // Base state has input form

After this line, the TabNavigator has an index of 1.

If I explicitly reset the selectedIndex back to 0, the TabNavigator is
drawn with elements from the first two pages drawn on top of each
other. I can see that the Canvas for index 0 is drawn and the Canvas
for index 1 is drawn on top of that.

I've tried using a ViewStack instead of TabNavigator but, as you would
expect, it makes no difference.

I've been going around in circles for some time here without any
progress - is this problem ringing a bell? I didn't find anything like
it in the archives. I've tried with the 3.2 and 3.5 SDKs but the
behavior is the same in both cases.

I could skip the TabNavigator completely and do everything with
ViewStates but, honestly, I'd rather not. I find it simpler to work
with the TabNavigator in the visual designer. Then again, if it isn't
going to work right it's not really eaiser any more.

Thanks in advance for any help or suggestions.





Re: [SPAM] [flexcoders] TabNavigator switches to second tab when revealed after a currentState change

2010-01-22 Thread Penny Laus
On Sat, Jan 23, 2010 at 5:28 PM, Tracy Spratt tr...@nts3rd.com wrote:



  For a change as significant as that, I suggest using ViewStack instead of
 states.

 Tracy,

Thanks very much for responding - I always read your postings with
attention.

In my case are you suggesting I put everything into a ViewStack and not use
states? So, I'd have something like

ViewStack

   0 - My landing screen with the login/send password/add registration

  1 - 2 -3 My registration details

Am I right in thinking that I could use a TabBar to make ViewStack 1, 2  3
look and act like a TabNavigator?

Thanks for the help!