[flexcoders] Need to save Data in a database

2009-05-11 Thread Shabir Gilkar
I have a form in which i have taken Employee information in Flex builder 3

I need to first save this data in a database and then displaying this
data in a datagrid.

Can any body help? How to do that?

-- 
With Regards

Shabir Ahmad Gilkar

Srinagar Kashmir JK

Voice: +91 9419942501
email: shabirgil...@gmail.com
Skype: shabirgilkar


[flexcoders] Server Settings

2009-05-11 Thread Shabir Gilkar
Hi  flexers!

I have a Flex3 app and i have taken employee details fields as my required
fields. I need to save this data now in a database. during first creation of
my project i haven't defined the server settings. Now how to do that for my
already existing project.

-- 
With Regards

Shabir Ahmad Gilkar

Srinagar Kashmir JK

Voice: +91 9419942501
email: shabirgil...@gmail.com
Skype: shabirgilkar


[flexcoders] Re: can I get flv duration metadata without playing the flv file?

2009-05-11 Thread hoytlee2000
I've tried this code below in a labelFunction for a dataGrid column where the 
datafield is sourcePath (the path to the flv file)

var nc:NetConnection = new NetConnection();
nc.connect(null);

var ns:NetStream = new NetStream(nc);

var resultDur:String;
var client:Object = new Object();

client.onMetaData = 
function(metadata:Object):void {
resultDur = metadata.duration;
trace(resultDur.toString());
}
ns.client = client;
ns.play(sourcePath);

return ns.client.onMetaData.toString;


This is where I am unsure if the above function will work, so far I am getting 
[object Object] as the return value.  I am not sure if I am not getting 
anything from the function because my code is off or I need to assign a video 
object to get the netsteam to call the onMetadata event.

Thanks,
Hoyt




--- In flexcoders@yahoogroups.com, hoytlee2000 hoytlee2...@... wrote:

 Hello,
 
 I've seen all the examples on getting duration information from an flv file 
 using the netstream function, but they all require you to play the flv first.
 
 I was wondering if you could get the info without having to play the flv file.
 
 The situation I have is I am ingesting an xml file with a list of flv files 
 in a directory.  I want to display that list of files in a datagrid with the 
 duration in another column.  So I want to use a labelfunction that will read 
 the flv file and then calculate the duration.
 
 However I am concerned that the examples I have seen to retrieve this 
 metadata requires me to play each video to get the data which might be too 
 slow.  Is there a different approach to this?
 
 I would do this once and after getting the duration I would write it back 
 into the xml file but the flvs in the directory keep changing.  Any ideas or 
 hints would be appreciated.
 
 thanks,
 Hoyt





RE: [flexcoders] Source could not be found.... when I CTRL-CLICK on a chart Class???

2009-05-11 Thread Gregor Kiddie
Updating to a new sdk is what usually breaks the link for me, did you
update your sdk when you did an update?

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
blocked::http://www.inps.co.uk/ 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of - -
Sent: 08 May 2009 16:17
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Source could not be found when I
CTRL-CLICK on a chart Class???

 






Hi Gregor, I do have FB Pro... This feature used to work but is no
longer available... ??? 

I had done an update a couple of weeks ago... could that have changed
something ???

 

Thanks.

 

-David

 

 



[flexcoders] CollectionEvent and Hierarchical Data ArrayCollection

2009-05-11 Thread grg_blls
Hi all,

Is it that adding an event listener as:
addEventListener(CollectionEvent.COLLECTION_CHANGE to ArrayCollection 
representing hierarchical data, will not work?

This works fine in a flat data structure acting as dataProvider to ADG, but I 
can't get it work if this data structure is hierarchical..

Any confirmation?

Thanks all
George



[flexcoders] Dynamicaly shrink expand flex application

2009-05-11 Thread yossi.baram
Hi helper,

Can I set my DataGrid to dynamicaly shrink  expand as the browser changes its 
width?
The flex engine expect width  height in pixels when building the swf and not 
in %,
thats what makes the swf static size,
Can I make the swf to be of percentage size in the page?

Thanks

Jo



RE: [flexcoders] Re: drag drop tree to tree onto node, not between nodes

2009-05-11 Thread Yves Riel
Thanks Alan,
 
I was about to refer to the archive but you beat me to it.
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg117508.html
 
And to avoid any confusion ... Yves is a male name ;-)
 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alan Rother
Sent: Sunday, May 10, 2009 9:40 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: drag drop tree to tree onto node, not
between nodes [1 Attachment]


[Attachment(s) from Alan Rother included below] 



Yves Riel (r...@cae.com) sent this file to me when I had a similar
problem some time back, it totally saved my life. 


If it helps, drop him(her, not sure...) an email and thank them.


=]



On Sun, May 10, 2009 at 6:19 PM, Mic chigwel...@yahoo.com
mailto:chigwel...@yahoo.com  wrote:




Think I answered this myself - isBranch looks like it will turn
the leaf into branch, which is exactly what I need to do.



--- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Mic chigwel...@... wrote:

 Thanks Tracy - for the moment I am having to put a Peer/Child
radio button group so I know what the user wants to do. Next question
:-)
 
 New mgr is a leaf, rb set to child, rep dropped below mgr ...
need to change mgr to branch with new rep as leaf. Does one manipulate
the xml to do this and then invalidate something so the tree
reconfigures itself, or does one manipulate the tree gui? Thanks,
 
 Mic.
 
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Tracy Spratt tracy@ wrote:
 
  I hope someone has a solution for this, I do not. The tree
drop feedback
  lines will show above or below a child node, and will get
longer to indicate
  a drop point at the level above those, but I have found no
way to drop a
  first child node onto an empty node.
  
  
  
  Now, I have not researched this in the last year, so maybe
someone will have
  a fix.
  
  
  
  Tracy Spratt,
  
  Lariat Services, development services available
  
  _ 
  
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
  Behalf Of Mic
  Sent: Sunday, May 10, 2009 2:08 AM
  To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] drag drop tree to tree onto node, not
between nodes
  
  
  
  
  
  
  
  
  Will Flex recognize a drop onto a node? The visual position
bar when moving
  the drop up and down the destination tree displays between
nodes. When we
  first add a mgr to the HR tree, that mgr is a leaf. Want to
trap a drop
  directly onto the mgr so can turn him/her into a branch and
add people
  reporting to him/her. Cannot drop beneath as that would be a
legal peer.
  TIA,
  
  Mic.
 









-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org





[flexcoders] Flex builder and debugger

2009-05-11 Thread knottbrian
I guys I'm new to Flex and getting my feet wet.  The issue I have at 
the moment is that the debugger does not work.  I have installed the 
debug versiojn of the flash player (10,0,22,87) but it will not 
connect to Flex builder (3.0.2.214193).  Flex Builder returns a 
message saying you need to complie your application with debuggin on 
or you are not running the debug version of Flash player. 

As far as I know debugging is on.  Where doI start to findthis issue. 


Brian Knott 




[flexcoders] IP Mapping FVNC

2009-05-11 Thread venkat eswar
I ahve done remote desktop feature using FVNC.It works inside our network.I 
want to know whether it will work outside our network.I didnt test it outside 
our network.That means will there be any mapping issues(between public ip and 
private ip).Please help me to solve my doubt.


  

[flexcoders] Re: Form layout question

2009-05-11 Thread valdhor
Can you show some code?



--- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2...@... 
wrote:

 Somehow labels in my form are all left aligned, while according to this:
 
 Aligning and spacing Form container children
 
 All Form container labels are right-aligned, and all children are 
 left-aligned in the container. You cannot override this alignment
 
 it should be right-aligned.





[flexcoders] Re: Form layout question

2009-05-11 Thread markgoldin_2000
Sure. Here:

mx:Form width=60% id=listterms horizontalGap=1
mx:FormItem direction=horizontal 
   mx:Label text=Style color=#00/
mx:TextInput id=style
text={pricelist.style}
change={pricelist.style=style.text} 
width=100%/
/mx:FormItem
mx:FormItem direction=horizontal 
   mx:Label text=Fabric color=#00/  
mx:TextInput id=fabric
text={pricelist.fabric}
change={pricelist.fabric=fabric.text} 
width=100%/
/mx:FormItem
mx:FormItem width=100% direction=horizontal 
   mx:Label text=Edge color=#00/
mx:TextInput id=edge
text={pricelist.edge}
change={pricelist.edge=edge.text} 
width=100%/
/mx:FormItem
mx:FormItem width=100% direction=horizontal 
   mx:Label text=Design color=#00/
mx:TextInput id=design
text={pricelist.design}
change={pricelist.design=design.text} 
width=100%/
/mx:FormItem
mx:FormItem width=100% direction=horizontal 
   mx:Label text=Fill color=#00/
mx:TextInput id=fill
text={pricelist.fill}
change={pricelist.fill=fill.text} 
width=100%/
/mx:FormItem
mx:FormItem width=100% direction=horizontal 
   mx:Label text=Hypo-Allergenic color=#00/   
 
mx:TextInput id=hypo
text={pricelist.hypo}
change={pricelist.hypo=hypo.text} 
width=100%/
/mx:FormItem
mx:FormItem width=100% direction=horizontal 
   mx:Label text=Care color=#00/
mx:TextInput id=care
text={pricelist.care}
change={pricelist.care=care.text} 
width=100%/
/mx:FormItem
mx:FormItem width=100% direction=horizontal 
   mx:Label text=Packaging color=#00/
mx:TextInput id=packaging
text={pricelist.packaging}
change={pricelist.packaging=packaging.text} 
width=100%/
/mx:FormItem
mx:FormItem width=100% direction=horizontal 
   mx:Label text=Warranty color=#00/
mx:TextInput id=warranty
text={pricelist.warranty}
change={pricelist.warranty=warranty.text} 
width=100%/
/mx:FormItem
mx:FormItem width=100% direction=horizontal 
   mx:Label text=Colors color=#00/
mx:TextInput id=colors
text={pricelist.colors}
change={pricelist.colors=colors.text} 
width=100%/
/mx:FormItem
mx:FormItem width=100% direction=horizontal 
   mx:Label text=Features color=#00/
mx:TextInput id=features
text={pricelist.features}
change={pricelist.features=features.text} 
width=100%/
/mx:FormItem
/mx:Form


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

 Can you show some code?
 
 
 
 --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2000@ wrote:
 
  Somehow labels in my form are all left aligned, while according to this:
  
  Aligning and spacing Form container children
  
  All Form container labels are right-aligned, and all children are 
  left-aligned in the container. You cannot override this alignment
  
  it should be right-aligned.
 





Re: [flexcoders] Re: Form layout question

2009-05-11 Thread Charles Parcell
You do not have to make a separate label tag for your form items.  In
addition, FormItem can be styled using labelStyleName.  Your TextInput is
styled as normal.

mx:FormItem direction=horizontal
 label=Style
 horizontalAlign=left
 mx:TextInput id=style
   text={pricelist.style}
   change={pricelist.style=style.text}
   width=100%
 /
/mx:FormItem

http://livedocs.adobe.com/flex/3/langref/index.html


Charles P.



On Mon, May 11, 2009 at 9:07 AM, markgoldin_2000
markgoldin_2...@yahoo.comwrote:

 Sure. Here:

 mx:Form width=60% id=listterms horizontalGap=1
mx:FormItem direction=horizontal
   mx:Label text=Style color=#00/
mx:TextInput id=style
text={pricelist.style}
change={pricelist.style=style.text}
width=100%/
/mx:FormItem
mx:FormItem direction=horizontal
   mx:Label text=Fabric color=#00/
mx:TextInput id=fabric
text={pricelist.fabric}
change={pricelist.fabric=fabric.text}
width=100%/
/mx:FormItem
mx:FormItem width=100% direction=horizontal
   mx:Label text=Edge color=#00/
mx:TextInput id=edge
text={pricelist.edge}
change={pricelist.edge=edge.text}
width=100%/
/mx:FormItem
mx:FormItem width=100% direction=horizontal
   mx:Label text=Design color=#00/
mx:TextInput id=design
text={pricelist.design}
change={pricelist.design=design.text}
width=100%/
/mx:FormItem
mx:FormItem width=100% direction=horizontal
   mx:Label text=Fill color=#00/
mx:TextInput id=fill
text={pricelist.fill}
change={pricelist.fill=fill.text}
width=100%/
/mx:FormItem
mx:FormItem width=100% direction=horizontal
   mx:Label text=Hypo-Allergenic color=#00/
mx:TextInput id=hypo
text={pricelist.hypo}
change={pricelist.hypo=hypo.text}
width=100%/
/mx:FormItem
mx:FormItem width=100% direction=horizontal
   mx:Label text=Care color=#00/
mx:TextInput id=care
text={pricelist.care}
change={pricelist.care=care.text}
width=100%/
/mx:FormItem
mx:FormItem width=100% direction=horizontal
   mx:Label text=Packaging color=#00/
mx:TextInput id=packaging
text={pricelist.packaging}

  change={pricelist.packaging=packaging.text}
width=100%/
/mx:FormItem
mx:FormItem width=100% direction=horizontal
   mx:Label text=Warranty color=#00/
mx:TextInput id=warranty
text={pricelist.warranty}
change={pricelist.warranty=warranty.text}
width=100%/
/mx:FormItem
mx:FormItem width=100% direction=horizontal
   mx:Label text=Colors color=#00/
mx:TextInput id=colors
text={pricelist.colors}
change={pricelist.colors=colors.text}
width=100%/
/mx:FormItem
mx:FormItem width=100% direction=horizontal
   mx:Label text=Features color=#00/
mx:TextInput id=features
text={pricelist.features}
change={pricelist.features=features.text}
width=100%/
/mx:FormItem
/mx:Form


 --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:
 
  Can you show some code?
 
 
 
  --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2000@
 wrote:
  
   Somehow labels in my form are all left aligned, while according to
 this:
  
   

[flexcoders] Apply SDK changes

2009-05-11 Thread markgoldin_2000
If I change a line or two in SDKs source code how do I apply these changes to 
my project?

Thanks



[flexcoders] Re: Form layout question

2009-05-11 Thread valdhor
The addition of the label is screwing it up.

Just add the label property to the FormItem tag...

mx:FormItem label=The Label: fontWeight=bold
  mx:TextInput id=anInput width=100 fontWeight=normal/
/mx:FormItem



--- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2...@... 
wrote:

 Sure. Here:
 
 mx:Form width=60% id=listterms horizontalGap=1
   mx:FormItem direction=horizontal 
  mx:Label text=Style color=#00/
   mx:TextInput id=style
   text={pricelist.style}
   change={pricelist.style=style.text} 
   width=100%/
   /mx:FormItem
   mx:FormItem direction=horizontal 
  mx:Label text=Fabric color=#00/  
   mx:TextInput id=fabric
   text={pricelist.fabric}
   change={pricelist.fabric=fabric.text} 
   width=100%/
   /mx:FormItem
   mx:FormItem width=100% direction=horizontal 
  mx:Label text=Edge color=#00/
   mx:TextInput id=edge
   text={pricelist.edge}
   change={pricelist.edge=edge.text} 
   width=100%/
   /mx:FormItem
   mx:FormItem width=100% direction=horizontal 
  mx:Label text=Design color=#00/
   mx:TextInput id=design
   text={pricelist.design}
   change={pricelist.design=design.text} 
   width=100%/
   /mx:FormItem
   mx:FormItem width=100% direction=horizontal 
  mx:Label text=Fill color=#00/
   mx:TextInput id=fill
   text={pricelist.fill}
   change={pricelist.fill=fill.text} 
   width=100%/
   /mx:FormItem
   mx:FormItem width=100% direction=horizontal 
  mx:Label text=Hypo-Allergenic color=#00/   
  
   mx:TextInput id=hypo
   text={pricelist.hypo}
   change={pricelist.hypo=hypo.text} 
   width=100%/
   /mx:FormItem
   mx:FormItem width=100% direction=horizontal 
  mx:Label text=Care color=#00/
   mx:TextInput id=care
   text={pricelist.care}
   change={pricelist.care=care.text} 
   width=100%/
   /mx:FormItem
   mx:FormItem width=100% direction=horizontal 
  mx:Label text=Packaging color=#00/
   mx:TextInput id=packaging
   text={pricelist.packaging}
   change={pricelist.packaging=packaging.text} 
   width=100%/
   /mx:FormItem
   mx:FormItem width=100% direction=horizontal 
  mx:Label text=Warranty color=#00/
   mx:TextInput id=warranty
   text={pricelist.warranty}
   change={pricelist.warranty=warranty.text} 
   width=100%/
   /mx:FormItem
   mx:FormItem width=100% direction=horizontal 
  mx:Label text=Colors color=#00/
   mx:TextInput id=colors
   text={pricelist.colors}
   change={pricelist.colors=colors.text} 
   width=100%/
   /mx:FormItem
   mx:FormItem width=100% direction=horizontal 
  mx:Label text=Features color=#00/
   mx:TextInput id=features
   text={pricelist.features}
   change={pricelist.features=features.text} 
   width=100%/
   /mx:FormItem
   /mx:Form
 
 
 --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote:
 
  Can you show some code?
  
  
  
  --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2000@ 
  wrote:
  
   Somehow labels in my form are all left aligned, while according to this:
   
   Aligning and spacing Form container children
   
   All Form container labels are right-aligned, and all children are 
   left-aligned in the container. You cannot override this alignment
   

[flexcoders] Re: Form layout question

2009-05-11 Thread markgoldin_2000
A, I see, thanks.

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

 The addition of the label is screwing it up.
 
 Just add the label property to the FormItem tag...
 
 mx:FormItem label=The Label: fontWeight=bold
   mx:TextInput id=anInput width=100 fontWeight=normal/
 /mx:FormItem
 
 
 
 --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2000@ wrote:
 
  Sure. Here:
  
  mx:Form width=60% id=listterms horizontalGap=1
  mx:FormItem direction=horizontal 
 mx:Label text=Style color=#00/
  mx:TextInput id=style
  text={pricelist.style}
  change={pricelist.style=style.text} 
  width=100%/
  /mx:FormItem
  mx:FormItem direction=horizontal 
 mx:Label text=Fabric color=#00/  
  mx:TextInput id=fabric
  text={pricelist.fabric}
  change={pricelist.fabric=fabric.text} 
  width=100%/
  /mx:FormItem
  mx:FormItem width=100% direction=horizontal 
 mx:Label text=Edge color=#00/
  mx:TextInput id=edge
  text={pricelist.edge}
  change={pricelist.edge=edge.text} 
  width=100%/
  /mx:FormItem
  mx:FormItem width=100% direction=horizontal 
 mx:Label text=Design color=#00/
  mx:TextInput id=design
  text={pricelist.design}
  change={pricelist.design=design.text} 
  width=100%/
  /mx:FormItem
  mx:FormItem width=100% direction=horizontal 
 mx:Label text=Fill color=#00/
  mx:TextInput id=fill
  text={pricelist.fill}
  change={pricelist.fill=fill.text} 
  width=100%/
  /mx:FormItem
  mx:FormItem width=100% direction=horizontal 
 mx:Label text=Hypo-Allergenic color=#00/   
   
  mx:TextInput id=hypo
  text={pricelist.hypo}
  change={pricelist.hypo=hypo.text} 
  width=100%/
  /mx:FormItem
  mx:FormItem width=100% direction=horizontal 
 mx:Label text=Care color=#00/
  mx:TextInput id=care
  text={pricelist.care}
  change={pricelist.care=care.text} 
  width=100%/
  /mx:FormItem
  mx:FormItem width=100% direction=horizontal 
 mx:Label text=Packaging color=#00/
  mx:TextInput id=packaging
  text={pricelist.packaging}
  change={pricelist.packaging=packaging.text} 
  width=100%/
  /mx:FormItem
  mx:FormItem width=100% direction=horizontal 
 mx:Label text=Warranty color=#00/
  mx:TextInput id=warranty
  text={pricelist.warranty}
  change={pricelist.warranty=warranty.text} 
  width=100%/
  /mx:FormItem
  mx:FormItem width=100% direction=horizontal 
 mx:Label text=Colors color=#00/
  mx:TextInput id=colors
  text={pricelist.colors}
  change={pricelist.colors=colors.text} 
  width=100%/
  /mx:FormItem
  mx:FormItem width=100% direction=horizontal 
 mx:Label text=Features color=#00/
  mx:TextInput id=features
  text={pricelist.features}
  change={pricelist.features=features.text} 
  width=100%/
  /mx:FormItem
  /mx:Form
  
  
  --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote:
  
   Can you show some code?
   
   
   
   --- In flexcoders@yahoogroups.com, markgoldin_2000 markgoldin_2000@ 
   wrote:
   
Somehow labels in my form are all left aligned, while according to this:

Aligning and spacing Form container children

All Form container labels are right-aligned, and all children are 
left-aligned in the container. 

[flexcoders] Looking for syntatic sugar for getting an Class reference based on String

2009-05-11 Thread Todd
I have a long list string to graphic class mappings that are contained within a 
gigantic switch statement:

case icon_1:
  selectedIcon = icon_1;
  break;
case icon_2:
  selectedIcon = icon_2;
  break;

I'm looking for a way to get an instance of an Class reference based on a 
string.  I'm not looking to create a NEW instance, however.

For example, I'm NOT looking to do this:
var icon_1:Class = getDefinitionByName(icon_1) as Class;
selectedIcon = new icon_1();

I've tried some simple things like, but without results:
selectedIcon = Class(icon_1);

Any suggestions for the syntactical shortcut that I'm looking for? 

Thanks



[flexcoders] Re: Looking for syntatic sugar for getting an Class reference based on String

2009-05-11 Thread Todd
I don't know what I was smoking, but my solution actually works as I'd expect.

The following works (I was just off a bit in my syntax):
var icon1:Class = getDefinitionByName(icon1) as Class;
var currentIcon:Object =  icon1 as Object;  

--- In flexcoders@yahoogroups.com, Todd tpreka...@... wrote:

 I have a long list string to graphic class mappings that are contained within 
 a gigantic switch statement:
 
 case icon_1:
   selectedIcon = icon_1;
   break;
 case icon_2:
   selectedIcon = icon_2;
   break;
 
 I'm looking for a way to get an instance of an Class reference based on a 
 string.  I'm not looking to create a NEW instance, however.
 
 For example, I'm NOT looking to do this:
 var icon_1:Class = getDefinitionByName(icon_1) as Class;
 selectedIcon = new icon_1();
 
 I've tried some simple things like, but without results:
 selectedIcon = Class(icon_1);
 
 Any suggestions for the syntactical shortcut that I'm looking for? 
 
 Thanks





[flexcoders] Source Not Found in Flex Builder Debug

2009-05-11 Thread markgoldin_2000
When I run my app from the Builder I am getting an SDK run-time error that does 
not open a source file but instead shows:
Source not found

How do I fix it?

Thanks






Re: [flexcoders] Source Not Found in Flex Builder Debug

2009-05-11 Thread Daniel Freiman
It could be two things.  You could be using a component/library that isn't
open source (such as the flash.* packages or a third party component) or
sometimes using the Flex RSL does this.  If it's a standard open source Flex
class, try incorporating the Flex code into your project instead of using
the RSL and see if that works.

- Daniel Freiman

On Mon, May 11, 2009 at 10:53 AM, markgoldin_2000 markgoldin_2...@yahoo.com
 wrote:



 When I run my app from the Builder I am getting an SDK run-time error that
 does not open a source file but instead shows:
 Source not found

 How do I fix it?

 Thanks

  



[flexcoders] Re: Source Not Found in Flex Builder Debug

2009-05-11 Thread markgoldin_2000
incorporating the Flex code into your project 
How do I do that?
--- In flexcoders@yahoogroups.com, Daniel Freiman freima...@... wrote:

 It could be two things.  You could be using a component/library that isn't
 open source (such as the flash.* packages or a third party component) or
 sometimes using the Flex RSL does this.  If it's a standard open source Flex
 class, try incorporating the Flex code into your project instead of using
 the RSL and see if that works.
 
 - Daniel Freiman
 
 On Mon, May 11, 2009 at 10:53 AM, markgoldin_2000 markgoldin_2...@...
  wrote:
 
 
 
  When I run my app from the Builder I am getting an SDK run-time error that
  does not open a source file but instead shows:
  Source not found
 
  How do I fix it?
 
  Thanks
 
   
 





RE: [flexcoders] Need to save Data in a database

2009-05-11 Thread Tracy Spratt
What is you server-side platform?  .net? PHP?, Java? ColdFusion?, etc.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Shabir Gilkar
Sent: Monday, May 11, 2009 2:56 AM
To: flexcoders
Subject: [flexcoders] Need to save Data in a database

 






I have a form in which i have taken Employee information in Flex builder 3

I need to first save this data in a database and then displaying this
data in a datagrid.

Can any body help? How to do that?

-- 
With Regards

Shabir Ahmad Gilkar

Srinagar Kashmir JK

Voice: +91 9419942501
email: shabirgilkar@ mailto:shabirgilkar%40gmail.com gmail.com
Skype: shabirgilkar





RE: [flexcoders] Dynamicaly shrink expand flex application

2009-05-11 Thread Tracy Spratt
Yes, you can set the height and width to percentages and the DataGrid will
expand and shrink with its container.

 

Changing  the swf size in the html wrapper will take some javascript.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of yossi.baram
Sent: Monday, May 11, 2009 4:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamicaly shrink  expand flex application

 






Hi helper,

Can I set my DataGrid to dynamicaly shrink  expand as the browser changes
its width?
The flex engine expect width  height in pixels when building the swf and
not in %,
thats what makes the swf static size,
Can I make the swf to be of percentage size in the page?

Thanks

Jo





RE: [flexcoders] Dynamicaly shrink expand flex application

2009-05-11 Thread Tracy Spratt
Yes, you can set the height and width to percentages and the DataGrid will
expand and shrink with its container.

 

Changing  the swf size in the html wrapper will take some javascript.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of yossi.baram
Sent: Monday, May 11, 2009 4:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dynamicaly shrink  expand flex application

 






Hi helper,

Can I set my DataGrid to dynamicaly shrink  expand as the browser changes
its width?
The flex engine expect width  height in pixels when building the swf and
not in %,
thats what makes the swf static size,
Can I make the swf to be of percentage size in the page?

Thanks

Jo





RE: [flexcoders] Re: drag drop tree to tree onto node, not between nodes

2009-05-11 Thread Tracy Spratt
Thanks for that post, Yves.  I may have to go back an update some of my
previous apps.

 

But I take exception to the idea that names can imply gender. ;)

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Yves Riel
Sent: Monday, May 11, 2009 7:20 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: drag drop tree to tree onto node, not between
nodes

 






Thanks Alan,

 

I was about to refer to the archive but you beat me to it. http://www.mail-
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg117508.html
archive.com/flexcoders@yahoogroups.com/msg117508.html

 

And to avoid any confusion ... Yves is a male name ;-)

 

 

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alan Rother
Sent: Sunday, May 10, 2009 9:40 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: drag drop tree to tree onto node, not between
nodes [1 Attachment]

Yves Riel (r...@cae.com) sent this file to me when I had a similar problem
some time back, it totally saved my life. 

 

If it helps, drop him(her, not sure...) an email and thank them.

 

=]

 

On Sun, May 10, 2009 at 6:19 PM, Mic chigwel...@yahoo.
mailto:chigwel...@yahoo.com com wrote:

 

Think I answered this myself - isBranch looks like it will turn the leaf
into branch, which is exactly what I need to do.



--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Mic chigwel...@... wrote:

 Thanks Tracy - for the moment I am having to put a Peer/Child radio button
group so I know what the user wants to do. Next question :-)
 
 New mgr is a leaf, rb set to child, rep dropped below mgr ... need to
change mgr to branch with new rep as leaf. Does one manipulate the xml to do
this and then invalidate something so the tree reconfigures itself, or does
one manipulate the tree gui? Thanks,
 
 Mic.
 
 
 --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Tracy Spratt tracy@ wrote:
 
  I hope someone has a solution for this, I do not. The tree drop feedback
  lines will show above or below a child node, and will get longer to
indicate
  a drop point at the level above those, but I have found no way to drop a
  first child node onto an empty node.
  
  
  
  Now, I have not researched this in the last year, so maybe someone will
have
  a fix.
  
  
  
  Tracy Spratt,
  
  Lariat Services, development services available
  
  _ 
  
  From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
[mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com]
On
  Behalf Of Mic
  Sent: Sunday, May 10, 2009 2:08 AM
  To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com
  Subject: [flexcoders] drag drop tree to tree onto node, not between
nodes
  
  
  
  
  
  
  
  
  Will Flex recognize a drop onto a node? The visual position bar when
moving
  the drop up and down the destination tree displays between nodes. When
we
  first add a mgr to the HR tree, that mgr is a leaf. Want to trap a drop
  directly onto the mgr so can turn him/her into a branch and add people
  reporting to him/her. Cannot drop beneath as that would be a legal peer.
  TIA,
  
  Mic.
 





-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org





[flexcoders] Extending ColumnSeries to force labels to always display vertically.

2009-05-11 Thread sailorsea21
Hi everyone, is it possible to create a class which extends ColumnSeries to 
force all the labels in my ColumnChart to rotate vertically?

I am unable to accomplish this...

Any thoughts or ideas??? 

Thanks everyone.



RE: [flexcoders] Source Not Found in Flex Builder Debug

2009-05-11 Thread Jake Churchill
It probably means the error is from a class in a SWC file.  Are you
importing any SWC files?  This happens to me if I screw something up in
Cairngorm or FlexLib (both SWC files)

 

Jake Churchill

CF Webtools

11204 Davenport, Ste. 100

Omaha, NE  68154

http://www.cfwebtools.com

402-408-3733 x103

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of markgoldin_2000
Sent: Monday, May 11, 2009 9:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Source Not Found in Flex Builder Debug

 






When I run my app from the Builder I am getting an SDK run-time error that
does not open a source file but instead shows:
Source not found

How do I fix it?

Thanks





[flexcoders] Re: Source Not Found in Flex Builder Debug

2009-05-11 Thread markgoldin_2000
The error I am getting is a run-time error from SDK.

--- In flexcoders@yahoogroups.com, Jake Churchill j...@... wrote:

 It probably means the error is from a class in a SWC file.  Are you
 importing any SWC files?  This happens to me if I screw something up in
 Cairngorm or FlexLib (both SWC files)
 
  
 
 Jake Churchill
 
 CF Webtools
 
 11204 Davenport, Ste. 100
 
 Omaha, NE  68154
 
 http://www.cfwebtools.com
 
 402-408-3733 x103
 
  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of markgoldin_2000
 Sent: Monday, May 11, 2009 9:53 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Source Not Found in Flex Builder Debug
 
  
 
 
 
 
 
 
 When I run my app from the Builder I am getting an SDK run-time error that
 does not open a source file but instead shows:
 Source not found
 
 How do I fix it?
 
 Thanks





Re: [flexcoders] Re: Source Not Found in Flex Builder Debug

2009-05-11 Thread Daniel Freiman
Project Properties - Flex Build Path - Library Path - Framework Linkage
- Merged Into Code

On Mon, May 11, 2009 at 11:17 AM, markgoldin_2000 markgoldin_2...@yahoo.com
 wrote:



 incorporating the Flex code into your project
 How do I do that?
 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Daniel
 Freiman freima...@... wrote:
 
  It could be two things. You could be using a component/library that isn't
  open source (such as the flash.* packages or a third party component) or
  sometimes using the Flex RSL does this. If it's a standard open source
 Flex
  class, try incorporating the Flex code into your project instead of using
  the RSL and see if that works.
 
  - Daniel Freiman
 
  On Mon, May 11, 2009 at 10:53 AM, markgoldin_2000 markgoldin_2...@...
   wrote:
 
  
  
   When I run my app from the Builder I am getting an SDK run-time error
 that
   does not open a source file but instead shows:
   Source not found
  
   How do I fix it?
  
   Thanks
  
  
  
 

  



[flexcoders] Re: Source Not Found in Flex Builder Debug

2009-05-11 Thread markgoldin_2000
Well, that what it says. I am not modifying that for any of my projects.
--- In flexcoders@yahoogroups.com, Daniel Freiman freima...@... wrote:

 Project Properties - Flex Build Path - Library Path - Framework Linkage
 - Merged Into Code
 
 On Mon, May 11, 2009 at 11:17 AM, markgoldin_2000 markgoldin_2...@...
  wrote:
 
 
 
  incorporating the Flex code into your project
  How do I do that?
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Daniel
  Freiman FreimanCQ@ wrote:
  
   It could be two things. You could be using a component/library that isn't
   open source (such as the flash.* packages or a third party component) or
   sometimes using the Flex RSL does this. If it's a standard open source
  Flex
   class, try incorporating the Flex code into your project instead of using
   the RSL and see if that works.
  
   - Daniel Freiman
  
   On Mon, May 11, 2009 at 10:53 AM, markgoldin_2000 markgoldin_2000@
wrote:
  
   
   
When I run my app from the Builder I am getting an SDK run-time error
  that
does not open a source file but instead shows:
Source not found
   
How do I fix it?
   
Thanks
   
   
   
  
 
   
 





[flexcoders] Loader coming back with incorrect dimensions

2009-05-11 Thread Jonathon Stierman
Has anyone run across a Loader instance incorrectly reporting the width/height 
of the SWF file it is loading?

Information about the application:
1.  The SWF files I am loading are generated via a FileExport command out of 
Adobe Illustrator.  This causes it to come out as an AVM1Movie.
2.  I am loading these SWF files into an AVM2 SWF via the Loader class.  Some 
of them correctly give me the dimensions, and some of them do not.
3.  Oddly enough, on the incorrectly sized content, the Loader's LoaderInfo 
instance contains the correct dimensions.

My initial reaction was to look at the content in Illustrator and see if maybe 
some vector data was being included in the SWF way offscreen (the incorrect 
dimensions are always larger) - thus causing the SWF to report a larger width 
than I am expecting.   But I do not see any content in the Illustrator that 
would do that.

I know there is some issues with loading AVM1 content into an AVM2 SWF - I 
wouldn't think the dimensions would be something affected by this, but you 
never know.

Anyone have any ideas on what else to look at?

Jonathon


Re: [flexcoders] Re: Source Not Found in Flex Builder Debug

2009-05-11 Thread Daniel Freiman
What actual class is throwing the error?


On Mon, May 11, 2009 at 11:55 AM, markgoldin_2000 markgoldin_2...@yahoo.com
 wrote:



 Well, that what it says. I am not modifying that for any of my projects.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Daniel
 Freiman freima...@... wrote:
 
  Project Properties - Flex Build Path - Library Path - Framework
 Linkage
  - Merged Into Code
 
  On Mon, May 11, 2009 at 11:17 AM, markgoldin_2000 markgoldin_2...@...
   wrote:
 
  
  
   incorporating the Flex code into your project
   How do I do that?
   --- In flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com, Daniel
   Freiman FreimanCQ@ wrote:
   
It could be two things. You could be using a component/library that
 isn't
open source (such as the flash.* packages or a third party component)
 or
sometimes using the Flex RSL does this. If it's a standard open
 source
   Flex
class, try incorporating the Flex code into your project instead of
 using
the RSL and see if that works.
   
- Daniel Freiman
   
On Mon, May 11, 2009 at 10:53 AM, markgoldin_2000 markgoldin_2000@
 wrote:
   


 When I run my app from the Builder I am getting an SDK run-time
 error
   that
 does not open a source file but instead shows:
 Source not found

 How do I fix it?

 Thanks



   
  
  
  
 

  



Re: [flexcoders] Re: Source Not Found in Flex Builder Debug

2009-05-11 Thread Daniel Freiman
Sorry, check that.  What actual class is not showing the source?

On Mon, May 11, 2009 at 11:57 AM, Daniel Freiman freima...@gmail.comwrote:

 What actual class is throwing the error?



 On Mon, May 11, 2009 at 11:55 AM, markgoldin_2000 
 markgoldin_2...@yahoo.com wrote:



 Well, that what it says. I am not modifying that for any of my projects.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Daniel
 Freiman freima...@... wrote:
 
  Project Properties - Flex Build Path - Library Path - Framework
 Linkage
  - Merged Into Code
 
  On Mon, May 11, 2009 at 11:17 AM, markgoldin_2000 markgoldin_2...@...
   wrote:
 
  
  
   incorporating the Flex code into your project
   How do I do that?
   --- In flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com, Daniel
   Freiman FreimanCQ@ wrote:
   
It could be two things. You could be using a component/library that
 isn't
open source (such as the flash.* packages or a third party
 component) or
sometimes using the Flex RSL does this. If it's a standard open
 source
   Flex
class, try incorporating the Flex code into your project instead of
 using
the RSL and see if that works.
   
- Daniel Freiman
   
On Mon, May 11, 2009 at 10:53 AM, markgoldin_2000 markgoldin_2000@
 wrote:
   


 When I run my app from the Builder I am getting an SDK run-time
 error
   that
 does not open a source file but instead shows:
 Source not found

 How do I fix it?

 Thanks



   
  
  
  
 

  





[flexcoders] Dictionary class?

2009-05-11 Thread luvfotography
What are some good uses for the dictionary class?

I haven't used it yet, but I'm sure if I knew more, I might. . . .



RE: [flexcoders] Loader coming back with incorrect dimensions

2009-05-11 Thread Tracy Spratt
There are timing issues with SWFLoader.  Perhaps the loaded swf has not
completed its layout when you check the size?  A loaded swf is not ready on
the loader.complete event, you must wait for the applicationComplete event.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jonathon Stierman
Sent: Monday, May 11, 2009 11:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Loader coming back with incorrect dimensions

 






Has anyone run across a Loader instance incorrectly reporting the
width/height of the SWF file it is loading?  

 

Information about the application:

1.  The SWF files I am loading are generated via a FileExport command out
of Adobe Illustrator.  This causes it to come out as an AVM1Movie.

2.  I am loading these SWF files into an AVM2 SWF via the Loader class.
Some of them correctly give me the dimensions, and some of them do not.

3.  Oddly enough, on the incorrectly sized content, the Loader's LoaderInfo
instance contains the correct dimensions.

 

My initial reaction was to look at the content in Illustrator and see if
maybe some vector data was being included in the SWF way offscreen (the
incorrect dimensions are always larger) - thus causing the SWF to report a
larger width than I am expecting.   But I do not see any content in the
Illustrator that would do that.

 

I know there is some issues with loading AVM1 content into an AVM2 SWF - I
wouldn't think the dimensions would be something affected by this, but you
never know.

 

Anyone have any ideas on what else to look at?

 

Jonathon





RE: [flexcoders] Loader coming back with incorrect dimensions

2009-05-11 Thread Jonathon Stierman
Thanks, Tracy --

Does that still apply even when the loaded SWF is not built with the Flex 
framework?

Note - I am actually not using the Flex framework at all in this project.  It's 
a pure AS3 application.  Sorry, I forgot to mention that.

My specific code looks like this:
var request:URLRequest = new URLRequest(path);
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onSwfComplete, false, 
0, true);
...
private function onSwfComplete(event:Event):void
{
  var loaderInfo:LoaderInfo = event.target as LoaderInfo;
  var loader:Loader = loaderInfo.loader;

  Out.out(this, loaderInfo (+loaderInfo.width+, +loaderInfo.height+));
  Out.out(this, loader (+loader.width+, +loader.height+));

  checkComplete();
}

The Out.out calls are a simple trace utility - and they report:
[Out] [BootstrapTask] says, loaderInfo (441, 331)
[Out] [BootstrapTask] says, loader (2252.3, 2464.8)

Very strange to me - I've never had them report different values.  But then 
again, I've never tried loading an Illustrator exported SWF either..

Jonathon

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Tracy Spratt
Sent: Monday, May 11, 2009 11:13 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Loader coming back with incorrect dimensions



There are timing issues with SWFLoader.  Perhaps the loaded swf has not 
completed its layout when you check the size?  A loaded swf is not ready on the 
loader.complete event, you must wait for the applicationComplete event.

Tracy Spratt,
Lariat Services, development services available

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Jonathon Stierman
Sent: Monday, May 11, 2009 11:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Loader coming back with incorrect dimensions




Has anyone run across a Loader instance incorrectly reporting the width/height 
of the SWF file it is loading?

Information about the application:
1.  The SWF files I am loading are generated via a FileExport command out of 
Adobe Illustrator.  This causes it to come out as an AVM1Movie.
2.  I am loading these SWF files into an AVM2 SWF via the Loader class.  Some 
of them correctly give me the dimensions, and some of them do not.
3.  Oddly enough, on the incorrectly sized content, the Loader's LoaderInfo 
instance contains the correct dimensions.

My initial reaction was to look at the content in Illustrator and see if maybe 
some vector data was being included in the SWF way offscreen (the incorrect 
dimensions are always larger) - thus causing the SWF to report a larger width 
than I am expecting.   But I do not see any content in the Illustrator that 
would do that.

I know there is some issues with loading AVM1 content into an AVM2 SWF - I 
wouldn't think the dimensions would be something affected by this, but you 
never know.

Anyone have any ideas on what else to look at?

Jonathon

inline: image001.jpginline: image002.jpg

RE: [flexcoders] Loader coming back with incorrect dimensions

2009-05-11 Thread Tracy Spratt
I do not really know, but it might be worth investigating.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jonathon Stierman
Sent: Monday, May 11, 2009 12:21 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Loader coming back with incorrect dimensions

 






Thanks, Tracy --

 

Does that still apply even when the loaded SWF is not built with the Flex
framework?  

 

Note - I am actually not using the Flex framework at all in this project.
It's a pure AS3 application.  Sorry, I forgot to mention that.  

 

My specific code looks like this:

var request:URLRequest = new URLRequest(path);

var loader:Loader = new Loader();

loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onSwfComplete,
false, 0, true);

.

private function onSwfComplete(event:Event):void

{

  var loaderInfo:LoaderInfo = event.target as LoaderInfo;

  var loader:Loader = loaderInfo.loader;

  

  Out.out(this, loaderInfo (+loaderInfo.width+,
+loaderInfo.height+));

  Out.out(this, loader (+loader.width+, +loader.height+));

  

  checkComplete();

}

 

The Out.out calls are a simple trace utility - and they report: 

[Out] [BootstrapTask] says, loaderInfo (441, 331)

[Out] [BootstrapTask] says, loader (2252.3, 2464.8)

 

Very strange to me - I've never had them report different values.  But then
again, I've never tried loading an Illustrator exported SWF either..

 

Jonathon

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Monday, May 11, 2009 11:13 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Loader coming back with incorrect dimensions

 






There are timing issues with SWFLoader.  Perhaps the loaded swf has not
completed its layout when you check the size?  A loaded swf is not ready on
the loader.complete event, you must wait for the applicationComplete event.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jonathon Stierman
Sent: Monday, May 11, 2009 11:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Loader coming back with incorrect dimensions

 







Has anyone run across a Loader instance incorrectly reporting the
width/height of the SWF file it is loading?  

 

Information about the application:

1.  The SWF files I am loading are generated via a FileExport command out
of Adobe Illustrator.  This causes it to come out as an AVM1Movie.

2.  I am loading these SWF files into an AVM2 SWF via the Loader class.
Some of them correctly give me the dimensions, and some of them do not.

3.  Oddly enough, on the incorrectly sized content, the Loader's LoaderInfo
instance contains the correct dimensions.

 

My initial reaction was to look at the content in Illustrator and see if
maybe some vector data was being included in the SWF way offscreen (the
incorrect dimensions are always larger) - thus causing the SWF to report a
larger width than I am expecting.   But I do not see any content in the
Illustrator that would do that.

 

I know there is some issues with loading AVM1 content into an AVM2 SWF - I
wouldn't think the dimensions would be something affected by this, but you
never know.

 

Anyone have any ideas on what else to look at?

 

Jonathon





[flexcoders] Re: Source Not Found in Flex Builder Debug

2009-05-11 Thread markgoldin_2000
I have added a path to Flex SDK under project's Run/Debug Settings Edit 
/Source. Now I see source code. Actual class is AdvancedDataGridBaseEx from SDK 
4.

--- In flexcoders@yahoogroups.com, Daniel Freiman freima...@... wrote:

 Sorry, check that.  What actual class is not showing the source?
 
 On Mon, May 11, 2009 at 11:57 AM, Daniel Freiman freima...@...wrote:
 
  What actual class is throwing the error?
 
 
 
  On Mon, May 11, 2009 at 11:55 AM, markgoldin_2000 
  markgoldin_2...@... wrote:
 
 
 
  Well, that what it says. I am not modifying that for any of my projects.
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Daniel
  Freiman FreimanCQ@ wrote:
  
   Project Properties - Flex Build Path - Library Path - Framework
  Linkage
   - Merged Into Code
  
   On Mon, May 11, 2009 at 11:17 AM, markgoldin_2000 markgoldin_2000@
wrote:
  
   
   
incorporating the Flex code into your project
How do I do that?
--- In flexcoders@yahoogroups.com 
flexcoders%40yahoogroups.comflexcoders%
  40yahoogroups.com, Daniel
Freiman FreimanCQ@ wrote:

 It could be two things. You could be using a component/library that
  isn't
 open source (such as the flash.* packages or a third party
  component) or
 sometimes using the Flex RSL does this. If it's a standard open
  source
Flex
 class, try incorporating the Flex code into your project instead of
  using
 the RSL and see if that works.

 - Daniel Freiman

 On Mon, May 11, 2009 at 10:53 AM, markgoldin_2000 markgoldin_2000@
  wrote:

 
 
  When I run my app from the Builder I am getting an SDK run-time
  error
that
  does not open a source file but instead shows:
  Source not found
 
  How do I fix it?
 
  Thanks
 
 
 

   
   
   
  
 
   
 
 
 





Re: [flexcoders] ADG header appearance

2009-05-11 Thread Richard Rodseth
Thanks!

On Sun, May 10, 2009 at 9:51 PM, Tracy Spratt tr...@nts3rd.com wrote:



  Set sortExpertMode=”true”.



 Not exactly intuitive, is it?



 Tracy Spratt,

 Lariat Services, development services available
   --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Richard Rodseth
 *Sent:* Sunday, May 10, 2009 11:49 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] ADG header appearance






  In an ADG with non-sortable columns, how does one eliminate the vertical
 bar within the column header (the one that normally gets the sort indicator
 to the right of it).

 sortable=false doesn't seem to do the trick.

 Thanks.
   



[flexcoders] AmFast Python remoting framework version 0.3 Released.

2009-05-11 Thread limscoder
AmFast http://code.google.com/p/amfast/  is Flash remoting package for
Python. AmFast http://code.google.com/p/amfast/  version 0.3 has been
released. In addition to the changes listed below, the documentation
http://code.google.com/p/amfast/wiki/Documentation  has been updated,
and several new example 
http://code.google.com/p/amfast/wiki/ExampleImplementations
applications
http://code.google.com/p/amfast/wiki/ExampleImplementations  
http://code.google.com/p/amfast/wiki/ExampleImplementations have been
added.

Changes


  * Producer/Consumer messaging via HTTP polling.
  * Built in Channels for CherryPy, Twisted Web, and straight-up WSGI.
  * Easily configurable authentication for NetConnection and
RemoteObject.
  * PyAmfEndpoint to encode/decode messages with pure Python, with no C
compiler dependencies.



Re: [flexcoders] Dictionary class?

2009-05-11 Thread Alan Klement

One case is if you don¹t want to use loops.

On 5/11/09 12:11 PM, luvfotography ygro...@all-digital-links.com wrote:

  
   
 
   
 
 What are some good uses for the dictionary class?
 
 I haven't used it yet, but I'm sure if I knew more, I might. . . .
 
   
 
 



RE: [flexcoders] Dictionary class?

2009-05-11 Thread Tracy Spratt
Dictionary is similar to Associative Aarray (Object, hashtable) except
that it can use an object reference as a key.

 

You might use to associate some data, perhaps an isModified flag with some
instance of a class, perhaps an item in a dataProvider.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alan Klement
Sent: Monday, May 11, 2009 3:42 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Dictionary class?

 







One case is if you don't want to use loops.

On 5/11/09 12:11 PM, luvfotography ygro...@all-digital-links.com wrote:


  

  

What are some good uses for the dictionary class?

I haven't used it yet, but I'm sure if I knew more, I might. . . .

  






Re: [flexcoders] Dictionary class?

2009-05-11 Thread Manish Jethani
On Mon, May 11, 2009 at 9:41 PM, luvfotography
ygro...@all-digital-links.com wrote:

 What are some good uses for the dictionary class?

 I haven't used it yet, but I'm sure if I knew more, I might. . . .


One of the things I use Dictionary for is for storing weak references
to objects.

http://manishjethani.com/blog/2008/07/31/using-weak-references-in-actionscript-3/

You can see for instance the EffectManager class in the Flex 3
framework uses a Dictionary object to store references to effects.

Manish


Re: [flexcoders] Apply SDK changes

2009-05-11 Thread Rick Winscot
In the Flex SDKs source? Are you monkey patching (underridding) a control /
class? ...a little more info about your setup would be helpful.


Rick Winscot



On 5/11/09 9:49 AM, markgoldin_2000 markgoldin_2...@yahoo.com wrote:

  
   
 
   
 
 If I change a line or two in SDKs source code how do I apply these changes to
 my project?
 
 Thanks
 
   
 
 
 



Re: [flexcoders] Loader coming back with incorrect dimensions

2009-05-11 Thread Manish Jethani
On Mon, May 11, 2009 at 9:27 PM, Jonathon Stierman
jonat...@wolfmotell.com wrote:

 Has anyone run across a Loader instance incorrectly reporting the
 width/height of the SWF file it is loading?

I think the original width/height of the loaded content is always
available through the LoaderInfo object. If you resize the content,
you might get the new values from the Loader, but the original values
will be available in the LoaderInfo.

Manish


[flexcoders] Re: Apply SDK changes

2009-05-11 Thread markgoldin_2000
Oh, sure.
Iam trying to recompile one of my projects currently written for 3.3 into SDK 
4. While I was able to set things up to get thru compiling I am getting a 
run-time error when an application uses ADG. Here is the error:
TypeError: Error #1007: Instantiation attempted on a non-constructor.
at 
mx.controls::AdvancedDataGridBaseEx/getSeparator()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4149]
at 
mx.controls::AdvancedDataGridBaseEx/createHeaderSeparators()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4186]
at 
mx.controls::AdvancedDataGrid/createHeaderSeparators()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:1774]
at 
mx.controls::AdvancedDataGridBaseEx/drawSeparators()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4110]
at 
mx.controls::AdvancedDataGridBaseEx/updateDisplayList()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:1880]
at 
mx.controls::AdvancedDataGrid/updateDisplayList()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:6007]
at 
mx.controls.listClasses::AdvancedListBase/validateDisplayList()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\listClasses\AdvancedListBase.as:3072]
at 
mx.managers::LayoutManager/validateDisplayList()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:657]
at 
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:734]

I was thinking to comment the offensive code out and see what happens.

--- In flexcoders@yahoogroups.com, Rick Winscot rick.wins...@... wrote:

 In the Flex SDKs source? Are you monkey patching (underridding) a control /
 class? ...a little more info about your setup would be helpful.
 
 
 Rick Winscot
 
 
 
 On 5/11/09 9:49 AM, markgoldin_2000 markgoldin_2...@... wrote:
 
   

  

  
  If I change a line or two in SDKs source code how do I apply these changes 
  to
  my project?
  
  Thanks
  

  
  
 





[flexcoders] Chart tooltip issue

2009-05-11 Thread richmcgillicuddy
Using a standard line chart with a separate data tip renderer
dataTipRenderer=SimpleDataPointTip. I don't currently move it or modify it at 
all except to place data in it. The problem is that the tooltip goes off the 
screen for the data points on the far right. Is there something I need to set 
in order to have the tooltip recognize it will not fit to the right of the 
datapoint and display it to the left so it doesn't get cut off?


Rich



[flexcoders] Re: scrollbar inside 100% sized background image in container?

2009-05-11 Thread gwangdesign
Hi Charles,

Thanks. I finally get it to work. I didn't get it at first since I thought I 
have to use the scrollbars on the outer Canvas, as opposed to the inner Canvas.

Besides this, you will have to set the percentage width and height both to 100% 
for the inner Canvas to get it work right. Just in case someone else is 
interested.

Cheers,

geng 

--- In flexcoders@yahoogroups.com, Charles Parcell pokemonkil...@... wrote:

 This is dumb, I know, but put your Canvas (with the scrollbars) inside
 another Canvas and apply the background to the parent Canvas so that it
 never has to deal with scrollbar scaling. And set the child Canvas
 background to transparent.
 
 Charles P.
 
 
 On Thu, May 7, 2009 at 4:54 PM, gwangdesign gwangdes...@... wrote:
 
 
 
  Hi,
 
  I am trying to get the scrollbar for a container (can be either a Canvas or
  VBox) inside my background image. Basically my Canvas has a background
  image which I set background-size to 100%. Flex scales the background
  image to fit the whole component when there is no scroll bar. But when the
  scroll bar appears, the image shrinks to allow space for the scroll bar.
 
  So say if the Canvas has a width of 200 px, the background image has a
  width of 200 px when there is no scrollbar. If the scrollbar is 16 pixels
  wide, the background image would become 200 - 16 = 184 px, as opposed to
  staying 200px.
 
  I think I can get around this by using nested containers. Just to want to
  make sure that I am not missing anything obvious.
 
  Thanks.
 
   
 





[flexcoders] Custom component itemRenderer

2009-05-11 Thread kpjj31
Is it possible to pass data into an itemRenderer that is not apart of the 
dataProvider. The component I am using as an does not seem to except
bindable data when it's used as an item Renderer.


coursedays and unittypes are both arrayCollections from remoteObjects.

The itemRender is using data. from coursedays. But I also want to
pass in the arrayCollection of unittypes. Is this the correct opproach?

mx:HorizontalList id=days_hlist useRollOver=false width=980 height=570 
borderStyle=none selectable=false horizontalScrollPolicy=off left=0  
dataProvider={coursedays}

mx:itemRenderer
mx:Component
courseeditor:dayoutline unittypes={unittypes}/ 
/mx:Component
/mx:itemRenderer

/mx:HorizontalList



Re: [flexcoders] Custom component itemRenderer

2009-05-11 Thread Jeffry Houser

kpjj31 wrote:
 Is it possible to pass data into an itemRenderer that is not apart of the 
 dataProvider. 
 Yes, but I would not consider it trivial.  You must extend the 
component creating the itemRenderers and modify it to pass in your 
additional data. 

 Most itemRenderers also have a ListData component, which has an owner 
attribute that give you hook into the list.  So if you can get to your 
data using that owner property, it may work for you.  Or you can create 
your own ListData component and modify your list based class to create 
your new ListData component instead of the built in one and pass that to 
itemRenderers. 

 You may also be able to use a singleton, conceptually similar to 
Cairngorm's ModelLocator to access the data hanging out in the middle 
of nowhere.

-- 
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust




RE: [flexcoders] using as breaks data binding?

2009-05-11 Thread Alex Harui
I didn't get any warnings like you did so I couldn't investigate further.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Pan Troglodytes
Sent: Saturday, May 09, 2009 10:38 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] using as breaks data binding?





3.3.0.  I also get it with 4.0.0.6137.  Just downloaded and got it in 6772, 
too.  I'm using player version 10,0,12,36.  Do you need to know anything about 
my Flex Builder version?  Let me know anything else I can provide.

When you say you don't get it with the soon-to-be 3.4, what exactly do you 
mean?  You just don't get the run-time warning?  Did you track down why it 
would be okay with x and see if that's still doing whatever weird thing it is 
in 3.4?

On Sat, May 9, 2009 at 4:11 PM, Alex Harui 
aha...@adobe.commailto:aha...@adobe.com wrote:


Which version of Flex?  I don't get it on the latest builds that will ship as 
3.4



Alex Harui

Flex SDK Developer

Adobe Systems Inc.http://www.adobe.com/

Blog: http://blogs.adobe.com/aharui



From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On 
Behalf Of Pan Troglodytes
Sent: Friday, May 08, 2009 11:06 PM
To: flexcoders
Subject: [flexcoders] using as breaks data binding?





I've run across some peculiar behavior and I am trying to figure out if I 
should report it and if so, how exactly to explain it.  Given these two bits of 
code:

TestObject.as:
package
{
  public class TestObject
  {
[Bindable] public var a:uint = 2;
[Bindable] public var b:uint = 3;
[Bindable] public var x:uint = 1;
  }
}

Main Application:
?xml version=1.0 encoding=utf-8?
Application
  xmlns=http://www.adobe.com/2006/mxml;
  
  Script
![CDATA[
  import mx.collections.ArrayCollection;
  [Bindable] public var d:ArrayCollection = new ArrayCollection([
new TestObject,
new TestObject,
new TestObject
  ]);
]]
  /Script
  List dataProvider={d}
itemRenderer
  Component
HBox
  Label text={TestObject(data).a}/
  Label text={(data as TestObject).b}/
  Label text={(data as TestObject).x}/
/HBox
  /Component
/itemRenderer
  /List
  Button click=for each (var o:TestObject in d) { o.x++; o.a++; o.b++ }/
/Application

If you run this application, you get the following warnings:
warning: unable to bind to property 'b' on class 'GenericTest_inlineComponent1'
warning: unable to bind to property 'b' on class 'GenericTest_inlineComponent1'
warning: unable to bind to property 'b' on class 'GenericTest_inlineComponent1'
warning: unable to bind to property 'b' on class 'GenericTest_inlineComponent1'
warning: unable to bind to property 'b' on class 'GenericTest_inlineComponent1'
warning: unable to bind to property 'b' on class 'GenericTest_inlineComponent1'

There's a couple of things that stand out here.  First, it doesn't complain 
about properties x or a.  The reason it doesn't complain about property a 
is that I used TestObject(data).a instead of (data as TestObject).a.  If 
you change it to the other way around, you will get a warning on a as well.  
I find this rather bizarre, as I thought there was no functional difference to 
the two, other than as returning null if the object wasn't of the appropriate 
type rather than just erroring out like straight type coercion does.  But type 
coercion/as are very (ahem) lightly documented so I admit I don't know a lot. 
 But I don't think it's because of the null problem, since you can replace it 
with TestObject(null).b and it stops giving the warning.

The second weird thing is that it doesn't complain about x when using (data 
as TestObject).x like it does with a.  As you can see, it's claiming this 
error is on GenericTest_inlineComponent1.  This is significant because it 
appears that it's instead doing some binding to the x property on the item 
renderer, which is very odd.  You can try this yourself by changing x to 
other strings.  Ones where there is a property of HBox named the same thing 
won't give you a warning.  Others will.

Yet for all this griping, it seems the data binding IS working.  If you click 
on the button, you'll see all the labels in the list change as the data is 
being changed.

So, anyone want to shed some light on these two behaviors?

--
Jason



--
Jason



RE: [flexcoders] Custom component itemRenderer

2009-05-11 Thread Tracy Spratt
Speaking only from what I have read here, I believe if you set the renderer
using  ActionScript and the ClassFactory, you can set properties on the
renderer.  

 

Ah, from one of alex's posts: If you look at ClassFactory, it has a
properties map that will copy any properties in the map to each instance. 

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jeffry Houser
Sent: Monday, May 11, 2009 6:26 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Custom component itemRenderer

 







kpjj31 wrote:
 Is it possible to pass data into an itemRenderer that is not apart of the
dataProvider. 
Yes, but I would not consider it trivial. You must extend the 
component creating the itemRenderers and modify it to pass in your 
additional data. 

Most itemRenderers also have a ListData component, which has an owner 
attribute that give you hook into the list. So if you can get to your 
data using that owner property, it may work for you. Or you can create 
your own ListData component and modify your list based class to create 
your new ListData component instead of the built in one and pass that to 
itemRenderers. 

You may also be able to use a singleton, conceptually similar to 
Cairngorm's ModelLocator to access the data hanging out in the middle 
of nowhere.

-- 
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl. http://tinyurl.com/684b5h
com/684b5h
http://www.twitter. http://www.twitter.com/reboog711 com/reboog711 |
Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras http://www.flextras.com?c=104 .com?c=104
--
http://www.theflexs http://www.theflexshow.com how.com
http://www.jeffryho http://www.jeffryhouser.com user.com
--
Part of the DotComIt Brain Trust





Re: [flexcoders] Custom component itemRenderer

2009-05-11 Thread Jeffry Houser


I didn't know that, definitely gonna have to check that out. 


Tracy Spratt wrote:


Ah, from one of alex's posts: If you look at ClassFactory, it has a 
properties map that will copy any properties in the map to each 
instance. 

--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



[flexcoders] Component inheritance is now available in Flex 3.0

2009-05-11 Thread uroojy2002
Just checking if inheritance is supported in FLEX 3.0.
I keep getting:
multiple sets of visual children have been specified




[flexcoders] Component inheritance is now available in Flex 3.0

2009-05-11 Thread uroojy2002
Is there custom component inheritance in FLEX 3.0?




RE: [flexcoders] Component inheritance is now available in Flex 3.0

2009-05-11 Thread Tracy Spratt
Yes.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of uroojy2002
Sent: Monday, May 11, 2009 3:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Component inheritance is now available in Flex 3.0

 






Is there custom component inheritance in FLEX 3.0?





[flexcoders] Tracy's search tree solution question ...

2009-05-11 Thread Mic
http://www.cflex.net/showFileDetails.cfm?ObjectID=554

I got the example to work perfectly, but in my code where the xml is more 
complex, it only selects/highlights the last match. allowMultipleSelection = 
true but when I step through I can see that the array tree.selectedItems only 
holds the last

treeSlsHrchy.selectedItem = xmllistDescendants[i];

which overwrites the previous entry i.e. the array is always a single row. In 
the example debug I can see the selectedItem array build up line by line as the 
loop loops. So I went back to the example and altered the xml from

element eid=graham/
element eid=weldon

to

element eid=graham id=6/
element eid=weldon id=7

and the example now only highlights/selects the last match i.e. the 
selectedItems array refuses to hold more than a single row. Why does the extra 
xml do this? Inquiring minds etc :-) TIA,

Mic.



[flexcoders] chart presentation problem

2009-05-11 Thread Vikram Singh
Hello Flexers,
I am representing data using Chart and want to display Horizontal axis label at 
some specific angle rotation.
i have try this. but not getting perfect output.
Horizontal axis label are of long text.

mx:ColumnChart id=DataChart showDataTips=true width=100% height=100% 
dataProvider={db_data}
mx:horizontalAxisRenderer
mx:AxisRenderer labelRotation=45.50 /
/mx:horizontalAxisRenderer
mx:verticalAxis
mx:LinearAxis maximum={max_yaxis} interval=1  /
/mx:verticalAxis
mx:horizontalAxis
mx:CategoryAxis categoryField=name /
/mx:horizontalAxis
mx:series
mx:ColumnSeries  xField=name yField=patent_count displayName=  /
/mx:series
/mx:ColumnChart


do you have any idea of where I am doing mistake?
help me.

Thanks,
Vikram



  Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! 
Edition http://downloads.yahoo.com/in/firefox/?fr=om_email_firefox