Re: [flexcoders] widget creation on Flex builder and related problems - need some help

2007-12-06 Thread Vadim Melnik
Hi,


if I want to migrate my app to that NativeWindow based solution - then
NativeWindow is not an mx class and I cannot find how I will use Flex
Builder Design mode to arrange my GUI elements. Is it somehow possible
to wrap my mx:Application inside NativeWindow and do not have to
migrate the design from mxml files to pure ActionScript
<<<

Not sure if it's the same functionality necessary in this case, but below is 
example how it's possible to integrate Flex component into native AIR 
window, also it would be good idea if standard Adobe AIR runtime supported 
similar functionality in final release:

http://www.partlyhuman.com/blog/roger/apollo-native-windows-part-2
http://partlyhuman.com/articles/apollo-windows/WindowManagerSimple.zip


--
Thanks,
Vadim Melnik,
http://www.docsultant.com/



  - Original Message - 
  From: maritakous 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, November 26, 2007 10:55 PM
  Subject: [flexcoders] widget creation on Flex builder and related problems - 
need some help


  Hi all.
  I am trying to create a desktop widget application and it seems I have
  made a mistake. As you know, desktop widgets are like small stickers,
  they do not appear on taskbar and can be hidden or docked.
  The problem is that I created an AIR application using Flex Builder 3
  Beta and now I cannot find how to make that application behave like
  custom-shaped window. My app appears on Windows taskbar and I don't
  want it. When I drag the window (which is a custom shape) it shows
  that nasty dragging rectangle around it.
  As far as I found out (and tried it) I need to use cod like:
  var initOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
  initOptions.systemChrome = NativeWindowSystemChrome.NONE;
  initOptions.type = NativeWindowType.UTILITY;

  to hide my window from the taskbar. But it seems I cannot use such a
  code for class mx:Application. Or can I (would be grateful for some idea)?
  The main question is:
  if I want to migrate my app to that NativeWindow based solution - then
  NativeWindow is not an mx class and I cannot find how I will use Flex
  Builder Design mode to arrange my GUI elements. Is it somehow possible
  to wrap my mx:Application inside NativeWindow and do not have to
  migrate the design from mxml files to pure ActionScript?

  The second issue - if I want to use some kind of subforms - like
  widget settings window - when I move that window with the mouse, it is
  being clipped to the region of my Application. Does that again mean
  that I need to use NativeWindow for creating such a "Widget settings"
  dialog window?

  Thanks for any ideas (and especially for useful links and examples :-) )



   

[flexcoders] mxml inside jsp file - error

2007-12-06 Thread kutti kumar
im in new flex.


i am using flex file(mxml) inside the jsp file.In that mxml file,i
am importing another mxml or another as file.while i am calling this,i am
getting the following error message.anyone plz help me in this.

Error /testing.jsp
Type was not found or was not a compile-time constant: Main. [Generated code
(use -keep to save): Path: jsp213D9DF41FEA388E125BE2488BF5B403-interface.as,
Line: 49, Column: 2124]


where,

testing.jsp  - Main file which i'm calling thr browser
.as-  this file i am calling inside the mxml.


without jsp, above all functinalities are working fine.when i use jsp, its
giving the above error message.

-- 
With regards

V.Kumar


[flexcoders] NetConnection.Call.Failed: HTTP: Status 500

2007-12-06 Thread eaiesb
Hi,

In my application sometimes I receive "
NetConnection.Call.Failed: HTTP: Status 500
" when the FlexUI is executing a call to the JavaBackend.
I am using RESIN as the server and AMF to transfer the data from front
end to backend and vice versa.

This doesn't happen everytime but rarely (especially when the reponse
data is relatively large or the backend call takes sometime to
execute)
Any clues on how to fix it.



Error executing GetDetails. Reason :
(mx.messaging.messages::ErrorMessage)#0
  body = (Object)#1
  clientId = (null)
  correlationId = "95CCE77C-D9B2-9936-1DC8-11D3245462BA"
  destination = ""
  extendedData = (null)
  faultCode = "Channel.Call.Failed"
  faultDetail = "NetConnection.Call.Failed: HTTP: Status 500"
  faultString = "error"
  headers = (Object)#2
  messageId = "D598D95C-E458-C760-B90A-11D3A0C17326"
  rootCause = (Object)#3
code = "NetConnection.Call.Failed"
description = "HTTP: Status 500"
details = "http://localhost:8080/myapp/messagebroker/amf
"
level = "error"
  timestamp = 0
  timeToLive = 0


RE: [flexcoders] Re: How to disble double click in ComboBo?

2007-12-06 Thread Alex Harui
Where do you see the doubleclick event?  I don't think ComboBox should
be dispatching one.  What is the event.target?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexawesome
Sent: Thursday, December 06, 2007 2:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to disble double click in ComboBo?

 

impossible? thanks a lot

--- In flexcoders@yahoogroups.com 
, "flexawesome" <[EMAIL PROTECTED]> wrote:
>
> 
> any suggestions? thanks
> 
> --- In flexcoders@yahoogroups.com
 , "flexawesome" 
wrote:
> >
> > 
> > Hi, I am working on ComboBox components and like to disable double
> > click event once click the little scrub( arrow icons )
> > 
> > The code doesn't work for me. Is there any way to reach that?
> > 
> > Thanks
> > 
> > =
> > 
> > 
> > http://www.adobe.com/2006/mxml
 "
> > layout="absolute" width="305" height="231">
> > 
> >  > mouseEnabled="true">
> > 
> > 
> >
>

 



RE: [flexcoders] Application.application.container?

2007-12-06 Thread Alex Harui
Sorry, didn't see that you typed it as UIComponent.

 

UIComponent(Application.application) should work

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Merrill, Jason
Sent: Thursday, December 06, 2007 1:36 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Application.application.container?

 

>>You should just be able to pass in Spite(Application.application)

 

Doing so gives an implicit coercion error:
1118: Implicit coercion of a value with static type flash.display:Sprite
to a possibly unrelated type mx.core:UIComponent. 

 

Jason Merrill 
Bank of America 
L&LD GT&O 
eTools & Multimedia Research & Development 

 


 



 



Re: [flexcoders] How to detect DoubleClick in Button?

2007-12-06 Thread yourName
Try This Code





http://www.adobe.com/2006/mxml"; layout="absolute">












  - Original Message - 
  From: flexawesome 
  To: flexcoders@yahoogroups.com 
  Sent: Friday, December 07, 2007 1:26 AM
  Subject: [flexcoders] How to detect DoubleClick in Button?


  Hey there,

  I have a button and would like to detect DoubleClick event. Is that
  possible?

  Thanks a lot



   

RE: [flexcoders] Component that passes through mouse events (?)

2007-12-06 Thread Gordon Smith
Try setting the mouseEnabled and mouseChildren properties of your
component to false.
 
Gordon Smith
Adobe Flex SDK Team



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of williamkusumo
Sent: Thursday, December 06, 2007 7:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Component that passes through mouse events (?)



Hi fellow flexcoders,

Is it possible to have a component that is on top of another component
yet it does not block 
any mouse events, instead it passes them through to the component
underneath it?

I need to overlay a component over another one for visual treatment, but
it is blocking the 
mouse interaction.

Thanks in advance for the help, I appreciate it.



 


[flexcoders] Cairngorm Issue

2007-12-06 Thread Manu Dhanda

Hii..

I am trying to learn how to use cairngorm. Now, I am creating Login/Register
page. 
The structure is like below:

   






In the code, loginForm & registerForm are two forms. and below them is a
controlbar( which controls which form need to be displayed via a link
button.

The issue is, initially, login form displayed fine. But, when I click the
link button to display the registerForm, it only displays the 'textfields'
and none of the labels being displayed.

First I thought, there might be an issue with registerForm code, but then I
set the registerForm to be displayed as the application default & it
displays fine and then same problem happen with login form(i.e. only text
fields displyed with none labels in front of them.

Any help to resolve this issue will be great.

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Cairngorm-Issue-tf4960151.html#a14206482
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Component that passes through mouse events (?)

2007-12-06 Thread Jonathan Lee
try bubble, capture kinds of feature.


williamkusumo <[EMAIL PROTECTED]> wrote:   Hi 
fellow flexcoders,
 
 Is it possible to have a component that is on top of another component yet it 
does not block 
 any mouse events, instead it passes them through to the component underneath 
it?
 
 I need to overlay a component over another one for visual treatment, but it is 
blocking the 
 mouse interaction.
 
 Thanks in advance for the help, I appreciate it.
 
 
 
   

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

[flexcoders] Component that passes through mouse events (?)

2007-12-06 Thread williamkusumo
Hi fellow flexcoders,

Is it possible to have a component that is on top of another component yet it 
does not block 
any mouse events, instead it passes them through to the component underneath it?

I need to overlay a component over another one for visual treatment, but it is 
blocking the 
mouse interaction.

Thanks in advance for the help, I appreciate it.



[flexcoders] Re: How to set selected index to 0 when i click on any columnheading to sort the

2007-12-06 Thread girish_ok
--- In flexcoders@yahoogroups.com, "candysmate" <[EMAIL PROTECTED]> wrote:
>
> To set the selectedIndex to 0 when the dataGrid initializes try:
> 
> creationComplete = "this.selectedIndex = 0;"
>
When i am loading the data into the datagrid at that time i am able to 
set the index to 0, but when i try to sort particular column at that 
time its not setting the index [clicking on any column heading i want 
to set the selectedindex=0?.



[flexcoders] Usage tracking in a Flex app with Google Analytics: How to

2007-12-06 Thread Tracy Spratt
The ability to record and analyze user navigation, actions and even
purchases is valuable in many web sites and applications.  In case you
are not aware of it, Google provides a free service called Google
Analytics (GA), that makes this very easy to do.  Learn more, and set up
your account here: http://www.google.com/analytics/

I recently set this up for a Flex application.  While clear and helpful,
the GA documentation is strongly oriented toward traditional html
websites, full of strange terms like "body onLoad" and such, so making
it work with a Flex app was harder than it needed to be.  Below are the
steps you need to take to use Google Analytics with Flex.

Tracking Navigation and actions:
1: Set up your account, a tracking profile, and get your account id, at
the above link.  It is quite simple.  At the end of this process, you
will see a block of javascript that needs to go in the html wrapper of
the Flex app

2: Modifying the Html Wrapper: Remember that if you are letting Flex
Builder generate the wrapper, you need to do this in
"index.template.html", otherwise it can jus to in the wrapper html. Copy
and paste the whole script block into the html wrapper.  I put mine just
below the style tag, and above the block that defines the flash Global
variables.  The first tag includes the js file, the next tag sets the
account id to a variable, and invokes the "urchinTracker()" function,
which logs a page hit with GA.  The script block looks like this:

http://www.google-analytics.com/urchin.js";
type="text/javascript">

_uacct = "UA-xxx-x"; //this is your account
Id
urchinTracker(); //this created a record
when the wrapper is hit


Now, you want to know more than that the app wrapper was hit.  To do
this, you use ExternalInterface in Flex to call the "urchinTracker()"
function, but you include an argument.  That argument should look like
an url.  In my case this was no problem, since my navigation was easily
represented by the form: 

/ApplicationName/MainNav/SubNav/OptionalAction.  

I implemented a public method in my main app:

/** sends usage id to GoogleAnalytics */
public function logUsage(sUsageId:String):void
{ 
  ExternalInterface.call("urchinTracker",sUsageId);
}

At my main navigation points and in sub-applications as desired, I call
that method:
_app.logUsage("/" + _sAppName + "/SubAppName[/Action]"
);

The result of this is a very useful set of data regarding users
navigation around my application.  GA has filters and many other
analysis tools available to look at this data.

Tracking Ecommerce:
Google analytics also lets you track sales that are made through your
application.  Again the docs are full of strange terms like "submit
form" and "receipt page", that we do not know about in Flex.  But if
your Flex site sells stuff, it is easy to log it in GA.

1: Set up GA for Ecommerce logging:
1.  Log in to your account. 
2.  Click Edit next to the profile you'd like to enable. 
3.  On the Profile Settings page, click edit next to Main Website
Profile Information. 
4.  Change the E-Commerce Website radio button from No to Yes. 


2: Modifying the Html Wrapper:
This works by placing your sales transaction data in a hidden form in
the html wrapper.  GA advises that this form be placed just before the
closing body tag.  It looks like this, copy it exactly:


  


Then, we again use ExternalInterface to send the transaction and line
item data to a wrapper function:

/* called by ExternalInterface */
function logTransaction(sTransInfo)
{
  document.getElementById('utmtrans').innerHTML =
sTransInfo;
  __utmSetTrans(); 
}

You see that the function takes the passed in sales transaction info and
puts it in the hidden form.  Then it calls the "__utmSetTrans" function,
which reads the hidden form values and sends it to Google Analytics.

The sales transaction info string is a specially formatted string, like
this:


UTM:T|[order-id]|[affiliation]|[total]|[tax]|[shipping]|[city]|[state]|[
country] 

UTM:I|[order-id]|[sku/code]|[productname]|[category]|[price]|[quantity]

The string works on the delimiters, "UTM" and the "|" pipe, so spaces
and newlines don't matter.  Build this string in your shopping cart
however you need.
You can have as many UTM:I, line item records that you want.  I think
only the order-id is required, but include all the pipe delimiters, even
if there is no data between them.

Note that it takes 12-24 hours for data to be visible in the GA reports,
which is a pain, but just be patient.

See the GA help for more details on all of this.

Since you are using client javascript, your back-end is ne

RE: [flexcoders] Application.application.container?

2007-12-06 Thread Gordon Smith
The framework's Application class has no 'container' property, and I get
a runtime error when I try to access it:

ReferenceError: Error #1069: Property container not found on
ApplicationContainerTest and there is no default value.

You must have defined it in your app.

-Gordon Smith
Adobe Flex SDK Team



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Merrill, Jason
Sent: Thursday, December 06, 2007 1:11 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Application.application.container?



Thanks.  No, and in fact I can trace out a value it's typeof object and
has an internal name same as my app.  I was told by someone on this list
a while back to do it that way.  
 

Jason Merrill 
Bank of America 
L&LD GT&O 
eTools & Multimedia Research & Development 




 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui
Sent: Thursday, December 06, 2007 4:03 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Application.application.container?





Didn't you get an exception accessing application.container?  I
don't think we have such a property.



You can draw on the graphics layer of any UIComponent, but it
may be obscured by children.  You should just be able to pass in
Spite(Application.application)







From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason
Sent: Thursday, December 06, 2007 11:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Application.application.container?



OK - not understanding something here.
Application.application.container?  I'm trying to figure out the base UI
class I can add sprite children to.  I have a class which draws objects,
and I want those objects to be drawn in my flex app.  So here is the
simplified version of the code below.  The thing I don't get is if I
leave in "_container = Application.application.container;" then the
constructor in my class does not run, but if I take it out, it runs. ?!?
Is Application.application.container the correct way to reference the
base UI object you can start adding Sprites to and then draw on with
Actionscript?



http://www.adobe.com/2006/mxml
 " layout="absolute"
applicationComplete="init()">

 
  
 





The MyClass.as file is:



package src
{


 import mx.core.UIComponent; 
 import mx.core.Application;

  

 public class MyClass 

 {

private var _container:UIComponent;

private var _circle:Sprite;



public function MyClass(container:UIComponent)
{

trace("constructor runs")
 _container = container;

  drawGraphics();
}



private function drawCircle():void
{
 _circle.graphics.drawCircle(100, 100, 100);
 _container.addChild(_circle);
}



}



}

Any ideas as to what is going on?  How do you handle getting to
the base UI class to draw objects with Actionscript?  Thank you.



Jason Merrill 
Bank of America 
L&LD GT&O 
eTools & Multimedia Research & Development 









 


RE: [flexcoders] Re: How can I overlay a UIComponent on top of my application?

2007-12-06 Thread Tracy Spratt
You could put a 100% HBox as the first child of the Application.  Then
you'd get your horizontal layout, plus have a place to put your
explicitly positioned elements.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bithroop
Sent: Thursday, December 06, 2007 5:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How can I overlay a UIComponent on top of my
application?

 

Hmm.. I might not be understanding what you're suggesting, but...

I have the exact component that I want to overlay... really the
question is what to addChild it to. Can I access the main
displayContainer and if so how? My Application.application uses
horizontal layout so it's not a candidate. 

--- In flexcoders@yahoogroups.com 
, "Blake Barrett" <[EMAIL PROTECTED]> wrote:
>
> I'm not sure about this, but you could try capturing a bitmap on
> MouseOver (of every component) of event.target
> 
> var bd : BitmapData (event.target);
> bd.draw (300, 300);
> var bmp : Bitmap ( bd );
> 
> then try adding that bitmap to the main displayContainer ("the
stage").
> I hope this works as a starting point.
> 
> Blake
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of bithroop
> Sent: Thursday, December 06, 2007 2:13 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] How can I overlay a UIComponent on top of my
> application?
> 
> 
> 
> Trying to figure out the best way to do this...
> 
> I have an image in my UI which is small. I want a larger version of it
> to draw, attached to the mouse cursor, when the user rolls over it.
> Kinda like a tooltip but moving along with the cursor. (Mixbook does
> this if you've ever seen it)
> 
> I have it mostly working but my main issue is that I know I always
> want the zoomed version of the image to draw on top of the entire UI.
> These small images can be in any number of different types of
> containers, so I can't addChild the UIComponent to the small image or
> to its parent... needs to be something like a popup or tooltip. 
> 
> Peeked a bit at SystemManager for this since that's what PopupManager
> talks about... anyway, anyone have any insight on this? Should I make
> it a cursor?
>

 



[flexcoders] Re: dataTipFunction position in datagrid

2007-12-06 Thread tungchau81
Nevermind, I found the toolTipShowHandler function in 
AdvancedDataGridItemRenderer.

--- In flexcoders@yahoogroups.com, "tungchau81" <[EMAIL PROTECTED]> 
wrote:
>
> In the API for AdvancedDataGridItemRenderer, there was 
> no "tooltipshow" event defined.
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > Listen to renderer not control
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of tungchau81
> > Sent: Wednesday, December 05, 2007 5:42 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: dataTipFunction position in datagrid
> > 
> >  
> > 
> > Hi Alex,
> > I tried to listen to the "tooltipshow" event in AdvancedDataGrid
> (Flex 
> > 3), but I was not able to catch the event at all.
> > 
> > private function changeToolTipPosition(event:ToolTipEvent):void {
> > trace("TungChau::x=" + ToolTipManager.currentToolTip.x);
> > trace("TungChau::y=" + ToolTipManager.currentToolTip.y);
> > trace("TungChau::y1=" + ToolTipManager.currentTarget.y);
> > }
> > 
> >  > groupIconFunction="reportArchiveGroupingIcon" 
> > groupLabelFunction="reportArchiveGroupingLabel"
> > dataTipFunction="generateReportDataTip" 
> > initialize="myGroupingCollection.refresh()" 
> > toolTipShow="changeToolTipPosition(event)" 
> > width="100%" height="100%">
> > ...
> > 
> > 
> > When debugging the problem, I set a breakpoint 
> > inside "changeToolTipPosition" function and I was never able to 
> reach 
> > the breakpoint. My AdvancedDataGrid has grouping by default.
> > 
> > Regards,
> > Tung Chau
> > 
> > --- In flexcoders@yahoogroups.com  40yahoogroups.com>
> > , "Alex Harui"  wrote:
> > >
> > > Try tooltipshow in a custom renderer
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com  40yahoogroups.com>
> > 
> > [mailto:flexcoders@yahoogroups.com  40yahoogroups.com>
> > ] On
> > > Behalf Of hammer995
> > > Sent: Thursday, October 18, 2007 8:19 AM
> > > To: flexcoders@yahoogroups.com  40yahoogroups.com> 
> > > Subject: [flexcoders] dataTipFunction position in datagrid
> > > 
> > > 
> > > 
> > > I have the following:
> > > 
> > >  > > showDataTips="true" dataTipFunction="fullAcctName"/>
> > > 
> > > The fullAcctName returns a string.
> > > 
> > > Unfortunately, the string is displayed right over the cell you 
are
> > > hovering over to get the tooltip. Is there a way to give it an 
> > offset
> > > so it doesn't block the cell?
> > > 
> > > Thanks!
> > >
> >
>




[flexcoders] Modifying the ObjectProxy class returned by RemoteObject

2007-12-06 Thread marty.pitt
Hi

I'm doing a bunch of coding at the moment which requires the
generation of lots of VO's.

I wrote some code to use reflection to analyze the object in an
ObjectProxy and generate the AS3 code to represent this object.  (Will
share this once it's cleaned up).

Now, I'd like to subclass the ObjectProxy class to providing a
property sourceCode():String which returns the code to represent the
class.

Subclassing the ObjectProxy is easy.  How do I set the type of object
returned by a RemoteObject result to my subclassed  ObjectProxy?

Marty



[flexcoders] Re: dataTipFunction position in datagrid

2007-12-06 Thread tungchau81
In the API for AdvancedDataGridItemRenderer, there was 
no "tooltipshow" event defined.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Listen to renderer not control
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of tungchau81
> Sent: Wednesday, December 05, 2007 5:42 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: dataTipFunction position in datagrid
> 
>  
> 
> Hi Alex,
> I tried to listen to the "tooltipshow" event in AdvancedDataGrid
(Flex 
> 3), but I was not able to catch the event at all.
> 
> private function changeToolTipPosition(event:ToolTipEvent):void {
> trace("TungChau::x=" + ToolTipManager.currentToolTip.x);
> trace("TungChau::y=" + ToolTipManager.currentToolTip.y);
> trace("TungChau::y1=" + ToolTipManager.currentTarget.y);
> }
> 
>  groupIconFunction="reportArchiveGroupingIcon" 
> groupLabelFunction="reportArchiveGroupingLabel"
> dataTipFunction="generateReportDataTip" 
> initialize="myGroupingCollection.refresh()" 
> toolTipShow="changeToolTipPosition(event)" 
> width="100%" height="100%">
> ...
> 
> 
> When debugging the problem, I set a breakpoint 
> inside "changeToolTipPosition" function and I was never able to 
reach 
> the breakpoint. My AdvancedDataGrid has grouping by default.
> 
> Regards,
> Tung Chau
> 
> --- In flexcoders@yahoogroups.com 
> , "Alex Harui"  wrote:
> >
> > Try tooltipshow in a custom renderer
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of hammer995
> > Sent: Thursday, October 18, 2007 8:19 AM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] dataTipFunction position in datagrid
> > 
> > 
> > 
> > I have the following:
> > 
> >  > showDataTips="true" dataTipFunction="fullAcctName"/>
> > 
> > The fullAcctName returns a string.
> > 
> > Unfortunately, the string is displayed right over the cell you are
> > hovering over to get the tooltip. Is there a way to give it an 
> offset
> > so it doesn't block the cell?
> > 
> > Thanks!
> >
>




[flexcoders] Re: How can I overlay a UIComponent on top of my application?

2007-12-06 Thread bithroop
Hmm.. I might not be understanding what you're suggesting, but...

I have the exact component that I want to overlay... really the
question is what to addChild it to. Can I access the main
displayContainer and if so how? My Application.application uses
horizontal layout so it's not a candidate. 

--- In flexcoders@yahoogroups.com, "Blake Barrett" <[EMAIL PROTECTED]> wrote:
>
> I'm not sure about this, but you could try capturing a bitmap on
> MouseOver (of every component) of event.target
> 
>   var bd : BitmapData (event.target);
>   bd.draw (300, 300);
>   var bmp : Bitmap ( bd );
> 
> then try adding that bitmap to the main displayContainer ("the stage").
> I hope this works as a starting point.
>  
> Blake
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of bithroop
> Sent: Thursday, December 06, 2007 2:13 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] How can I overlay a UIComponent on top of my
> application?
> 
> 
> 
> Trying to figure out the best way to do this...
> 
> I have an image in my UI which is small. I want a larger version of it
> to draw, attached to the mouse cursor, when the user rolls over it.
> Kinda like a tooltip but moving along with the cursor. (Mixbook does
> this if you've ever seen it)
> 
> I have it mostly working but my main issue is that I know I always
> want the zoomed version of the image to draw on top of the entire UI.
> These small images can be in any number of different types of
> containers, so I can't addChild the UIComponent to the small image or
> to its parent... needs to be something like a popup or tooltip. 
> 
> Peeked a bit at SystemManager for this since that's what PopupManager
> talks about... anyway, anyone have any insight on this? Should I make
> it a cursor?
>




[flexcoders] Re: dataTipFunction position in datagrid

2007-12-06 Thread tungchau81
In the API for AdvancedDataGridItemRenderer, there was 
no "tooltipshow" event defined.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Listen to renderer not control
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of tungchau81
> Sent: Wednesday, December 05, 2007 5:42 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: dataTipFunction position in datagrid
> 
>  
> 
> Hi Alex,
> I tried to listen to the "tooltipshow" event in AdvancedDataGrid
(Flex 
> 3), but I was not able to catch the event at all.
> 
> private function changeToolTipPosition(event:ToolTipEvent):void {
> trace("TungChau::x=" + ToolTipManager.currentToolTip.x);
> trace("TungChau::y=" + ToolTipManager.currentToolTip.y);
> trace("TungChau::y1=" + ToolTipManager.currentTarget.y);
> }
> 
>  groupIconFunction="reportArchiveGroupingIcon" 
> groupLabelFunction="reportArchiveGroupingLabel"
> dataTipFunction="generateReportDataTip" 
> initialize="myGroupingCollection.refresh()" 
> toolTipShow="changeToolTipPosition(event)" 
> width="100%" height="100%">
> ...
> 
> 
> When debugging the problem, I set a breakpoint 
> inside "changeToolTipPosition" function and I was never able to 
reach 
> the breakpoint. My AdvancedDataGrid has grouping by default.
> 
> Regards,
> Tung Chau
> 
> --- In flexcoders@yahoogroups.com 
> , "Alex Harui"  wrote:
> >
> > Try tooltipshow in a custom renderer
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of hammer995
> > Sent: Thursday, October 18, 2007 8:19 AM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] dataTipFunction position in datagrid
> > 
> > 
> > 
> > I have the following:
> > 
> >  > showDataTips="true" dataTipFunction="fullAcctName"/>
> > 
> > The fullAcctName returns a string.
> > 
> > Unfortunately, the string is displayed right over the cell you are
> > hovering over to get the tooltip. Is there a way to give it an 
> offset
> > so it doesn't block the cell?
> > 
> > Thanks!
> >
>




[flexcoders] Re: what is the recommended approach to flex in a portal environment

2007-12-06 Thread tomeuchre
--- In flexcoders@yahoogroups.com, "nitin_becomp" <[EMAIL PROTECTED]> 
wrote:
>
> I want to use the Flex swf in portal (JBOSS/ websphere/ liferay 
> etc). This Portal will have 5-6 tabs and will have many portlets 
> inside one tab for different functionality. And the options I have 
> are - 
> 
> 1.  To develop the complete portal in Flex
> 2.  To create the tab pages in flex and put them as page on one 
> portlet and then one tab will have one portlet.
> 3.  To have the separate swf files in every portlet of every page 
of 
> every tab.
> 
>  Basically what is the recommended approach to flex in a portal 
> environment? Which one is recommended and what are the pros and 
cons 
> over each other. 
> 
> Link to default JBOSS Portal page - 
> http://portal.demo.jboss.com/portal/default/default 
> Where each window that have the minimize button at top right is 
> called as portlet
>  
> 
> Other thing is what are the pros and cons of having one swf app vs 
> many swf files in one html/JSP page. And what is the overhead on 
the 
> browser
>

I saw an example the other day about "Flexify your portal" on google 
somewhere, and the fellow had it all figured out. Search for that 
phrase and you will find it.
The reason *I* was looking is that I am attempting to plug in my Flex 
apps in JSP pages in IFrame jsf components. It works fine...until the 
JSP page refreshes. If I am on the view of my viewstack, it doesn't 
maintain where it was at...and goes back to the initial view. I 
haven't done enough research on how to get around this, but if you or 
anyone have ideas, I am all ears.



RE: [flexcoders] How can I overlay a UIComponent on top of my application?

2007-12-06 Thread Blake Barrett
I'm not sure about this, but you could try capturing a bitmap on
MouseOver (of every component) of event.target

var bd : BitmapData (event.target);
bd.draw (300, 300);
var bmp : Bitmap ( bd );

then try adding that bitmap to the main displayContainer ("the stage").
I hope this works as a starting point.
 
Blake



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bithroop
Sent: Thursday, December 06, 2007 2:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How can I overlay a UIComponent on top of my
application?



Trying to figure out the best way to do this...

I have an image in my UI which is small. I want a larger version of it
to draw, attached to the mouse cursor, when the user rolls over it.
Kinda like a tooltip but moving along with the cursor. (Mixbook does
this if you've ever seen it)

I have it mostly working but my main issue is that I know I always
want the zoomed version of the image to draw on top of the entire UI.
These small images can be in any number of different types of
containers, so I can't addChild the UIComponent to the small image or
to its parent... needs to be something like a popup or tooltip. 

Peeked a bit at SystemManager for this since that's what PopupManager
talks about... anyway, anyone have any insight on this? Should I make
it a cursor?



 


[flexcoders] How can I overlay a UIComponent on top of my application?

2007-12-06 Thread bithroop
Trying to figure out the best way to do this...

I have an image in my UI which is small. I want a larger version of it
to draw, attached to the mouse cursor, when the user rolls over it.
Kinda like a tooltip but moving along with the cursor. (Mixbook does
this if you've ever seen it)

I have it mostly working but my main issue is that I know I always
want the zoomed version of the image to draw on top of the entire UI.
These small images can be in any number of different types of
containers, so I can't addChild the UIComponent to the small image or
to its parent... needs to be something like a popup or tooltip. 

Peeked a bit at SystemManager for this since that's what PopupManager
talks about... anyway, anyone have any insight on this? Should I make
it a cursor?



[flexcoders] Re: How to disble double click in ComboBo?

2007-12-06 Thread flexawesome
impossible? thanks a lot

--- In flexcoders@yahoogroups.com, "flexawesome" <[EMAIL PROTECTED]> wrote:
>
> 
> any suggestions? thanks
> 
> --- In flexcoders@yahoogroups.com, "flexawesome"  wrote:
> >
> > 
> > Hi, I am working on ComboBox components and like to disable double
> > click event once click the little scrub( arrow icons )
> > 
> > The code doesn't work for me. Is there any way to reach that?
> > 
> > Thanks
> > 
> > =
> > 
> > 
> > http://www.adobe.com/2006/mxml";
> >   layout="absolute" width="305" height="231">
> > 
> >> mouseEnabled="true">
> > 
> > 
> >
>




RE: [flexcoders] Re: flex builder 3 profiler. which player?

2007-12-06 Thread Jim Hayes
Mike is yesterdays (?) build of flashplayer (moviestar, the debug
version) reckoned to be OK to use with the current flexbuilder 3 beta?
I tend to be very cautious about updating my flash player, since I don't
like to introduce unnecessary unknowns.
Many thanks (no need for quick answer!),
Jim.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Morearty
Sent: 06 December 2007 21:22
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: flex builder 3 profiler. which player?
 
The one to use is the one in the "Player" subdirectory of Flex Builder
-- e.g. 

/Application/Adobe Flex Builder 3/Player/mac/Install Flash Player 9
UB.dmg

If that doesn't work, try one from
http://www.adobe.com/support/flashplayer/downloads.html
  -- those
should work too (now that Flash Player 9,0,115,0 was released the
other day).

- Mike Morearty, Adobe Flex Builder team

--- In flexcoders@yahoogroups.com 
, "aaron smith"
<[EMAIL PROTECTED]> wrote:
>
> I can't figure out which player to use for the flex 3 profiler. I've
> downloaded the latest flex3sdk and installed
> runtimes/players/mac/install...dmg. Do I need a special version of
the debug
> player? dah. I've also tried it with 9.0.47 debug, but i always the
get the
> "connect to debugger" popup which won't ever connect to localhost. Any
> ideas?
>
 

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

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

[flexcoders] Code Snippets and Code Templates in Flex Builder

2007-12-06 Thread Mark R. Jonkman
Hi

 

I'm curious whether anyone knows of any kind of Eclipse plugin that would
enable code snippets in Flex Builder (standalone). Not having snippets and
or templates that can be used to auto insert formatted code in Flex Builder
standalone is driving me nuts. 

 

Sincerely
Mark R. Jonkman



RE: [flexcoders] Application.application.container?

2007-12-06 Thread Merrill, Jason
>>You should just be able to pass in Spite(Application.application)
 
Doing so gives an implicit coercion error:
1118: Implicit coercion of a value with static type flash.display:Sprite
to a possibly unrelated type mx.core:UIComponent. 

 

Jason Merrill 
Bank of America 
L&LD GT&O 
eTools & Multimedia Research & Development 



 
 



[flexcoders] Re: flex builder 3 profiler. which player?

2007-12-06 Thread Mike Morearty
The one to use is the one in the "Player" subdirectory of Flex Builder
-- e.g. 

/Application/Adobe Flex Builder 3/Player/mac/Install Flash Player 9 UB.dmg

If that doesn't work, try one from
http://www.adobe.com/support/flashplayer/downloads.html -- those
should work too (now that Flash Player 9,0,115,0 was released the
other day).

- Mike Morearty, Adobe Flex Builder team



--- In flexcoders@yahoogroups.com, "aaron smith"
<[EMAIL PROTECTED]> wrote:
>
> I can't figure out which player to use for the flex 3 profiler. I've
> downloaded the latest flex3sdk and installed
> runtimes/players/mac/install...dmg. Do I need a special version of
the debug
> player? dah. I've also tried it with 9.0.47 debug, but i always the
get the
> "connect to debugger" popup which won't ever connect to localhost. Any
> ideas?
>




Re: [flexcoders] Triggering a .htrml page inside a html frame from Flex.

2007-12-06 Thread ben

Give your iframe an id, then
create a JS command like so:

javascript:document.getElementById('iframeid').src = 'page1.html';

And trigger it as you did below.

Ben

kalyancce wrote:


Hi Friends,

I am trying to work on a situation but not any close yet, and thought
that I could find some help here.

I am trying to trigger a html page from my flex .swf, but open it
inside a html frame. ie., from my app.swf, i click a button and must
open page1.html inside a frame existing in page2.html

The following function can just trigger/open the page1.html:

private function openMainWindow(event:Event):void{
var str1:String="page1.html";
var jscommand:String = "window.open('"+str1+"');";
var url1:URLRequest = new URLRequest("javascript:" + jscommand + "void
(0);");
navigateToURL(url1, "_self");

but how is that I can open this page1.html inside page2.html's frame
(say 'frame1').

Thank you.

Regards,
K:)

 




Re: [flexcoders] Re: How to detect DoubleClick in Button?

2007-12-06 Thread Joseph Balderson
AS3:
myUIComponent.doubleClickEnabled=true;
myUIComponent.addEventListener(MouseEvent.DOUBLE_CLICK, dblClickHandler);

MXML


EXAMPLE:


http://www.adobe.com/2006/mxml";
creationComplete="initApp()">












___

Joseph Balderson, Flash Platform Developer | http://joeflash.ca
Abobe Certified Developer & Trainer | 705-466-6345
Writing partner, Community MX | http://www.communitymx.com


lampei wrote:
> I don't think there's an actual event that will do it, but you could 
> write your own.  Something like:
> 
> When the mousedown event fires, set a variable with a date.
> When the user clicks again make sure a minimum amount of time has passed 
> (and also make sure it's less than a certain max time you determine).  
> If the second click of the button falls within your pre-defined range, 
> fire off the double-click event, else, set the variable to new Date and 
> wait for another click.
> 
> --- In flexcoders@yahoogroups.com, "flexawesome" <[EMAIL PROTECTED]> wrote:
>  >
>  > Hey there,
>  >
>  > I have a button and would like to detect DoubleClick event. Is that
>  > possible?
>  >
>  > Thanks a lot
>  >
> 


RE: [flexcoders] Application.application.container?

2007-12-06 Thread Merrill, Jason
Thanks.  No, and in fact I can trace out a value it's typeof object and
has an internal name same as my app.  I was told by someone on this list
a while back to do it that way.  
 

Jason Merrill 
Bank of America 
L&LD GT&O 
eTools & Multimedia Research & Development 




 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui
Sent: Thursday, December 06, 2007 4:03 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Application.application.container?





Didn't you get an exception accessing application.container?  I
don't think we have such a property.



You can draw on the graphics layer of any UIComponent, but it
may be obscured by children.  You should just be able to pass in
Spite(Application.application)







From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason
Sent: Thursday, December 06, 2007 11:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Application.application.container?



OK - not understanding something here.
Application.application.container?  I'm trying to figure out the base UI
class I can add sprite children to.  I have a class which draws objects,
and I want those objects to be drawn in my flex app.  So here is the
simplified version of the code below.  The thing I don't get is if I
leave in "_container = Application.application.container;" then the
constructor in my class does not run, but if I take it out, it runs. ?!?
Is Application.application.container the correct way to reference the
base UI object you can start adding Sprites to and then draw on with
Actionscript?



http://www.adobe.com/2006/mxml
 " layout="absolute"
applicationComplete="init()">

 
  
 





The MyClass.as file is:



package src
{


 import mx.core.UIComponent; 
 import mx.core.Application;

  

 public class MyClass 

 {

private var _container:UIComponent;

private var _circle:Sprite;



public function MyClass(container:UIComponent)
{

trace("constructor runs")
 _container = container;

  drawGraphics();
}



private function drawCircle():void
{
 _circle.graphics.drawCircle(100, 100, 100);
 _container.addChild(_circle);
}



}



}

Any ideas as to what is going on?  How do you handle getting to
the base UI class to draw objects with Actionscript?  Thank you.



Jason Merrill 
Bank of America 
L&LD GT&O 
eTools & Multimedia Research & Development 









 



RE: [flexcoders] How to detect DoubleClick in Button?

2007-12-06 Thread Alex Harui
Set doubleClickEnabled=true

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexawesome
Sent: Thursday, December 06, 2007 12:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to detect DoubleClick in Button?

 

Hey there,

I have a button and would like to detect DoubleClick event. Is that
possible?

Thanks a lot

 



RE: [flexcoders] Auto-sizing a Container that lives in rawChildren - how?

2007-12-06 Thread Alex Harui
Container layout only affects content children and not rawChildren
(borders, scrollbars, etc).

 

Since children are sized by their parents, you size and layout yourself,
which you should do in updateDisplayList.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Thursday, December 06, 2007 11:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Auto-sizing a Container that lives in rawChildren
- how?

 

It seems that Containers that are added to rawChildren do not get
measured and laid out automatically like they normally would. For
instance, if I don't give my HBox an explicit width and height it will
not show up when I call someCanvas.rawChildren.addChild(myHBox), no
matter how many children I put inside it. I am assuming this is due to
their measure() method not getting called (by SystemManager?) or
something but am not sure.

My question is whether or not there is a fairly easy way to get them
to auto-size like usual, or do I have to run through the children and
calculate it all myself during updateDisplayList()?

TIA,
Ben

 



RE: [flexcoders] Application.application.container?

2007-12-06 Thread Alex Harui
Didn't you get an exception accessing application.container?  I don't
think we have such a property.

 

You can draw on the graphics layer of any UIComponent, but it may be
obscured by children.  You should just be able to pass in
Spite(Application.application)

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Merrill, Jason
Sent: Thursday, December 06, 2007 11:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Application.application.container?

 

OK - not understanding something here.
Application.application.container?  I'm trying to figure out the base UI
class I can add sprite children to.  I have a class which draws objects,
and I want those objects to be drawn in my flex app.  So here is the
simplified version of the code below.  The thing I don't get is if I
leave in "_container = Application.application.container;" then the
constructor in my class does not run, but if I take it out, it runs. ?!?
Is Application.application.container the correct way to reference the
base UI object you can start adding Sprites to and then draw on with
Actionscript?

 

http://www.adobe.com/2006/mxml
 " layout="absolute"
applicationComplete="init()">

 
  
 



 

The MyClass.as file is:

 

package src
{


 import mx.core.UIComponent; 
 import mx.core.Application;

  

 public class MyClass 

 {

private var _container:UIComponent;

private var _circle:Sprite;

 

public function MyClass(container:UIComponent)
{

trace("constructor runs")
 _container = container;

  drawGraphics();
}

 

private function drawCircle():void
{
 _circle.graphics.drawCircle(100, 100, 100);
 _container.addChild(_circle);
}

 

}

 

}

Any ideas as to what is going on?  How do you handle getting to the base
UI class to draw objects with Actionscript?  Thank you.

 

Jason Merrill 
Bank of America 
L&LD GT&O 
eTools & Multimedia Research & Development 





 



[flexcoders] Re: How to detect DoubleClick in Button?

2007-12-06 Thread lampei
I don't think there's an actual event that will do it, but you could
write your own.  Something like:

When the mousedown event fires, set a variable with a date.
When the user clicks again make sure a minimum amount of time has passed
(and also make sure it's less than a certain max time you determine). 
If the second click of the button falls within your pre-defined range,
fire off the double-click event, else, set the variable to new Date and
wait for another click.

--- In flexcoders@yahoogroups.com, "flexawesome" <[EMAIL PROTECTED]>
wrote:
>
> Hey there,
>
> I have a button and would like to detect DoubleClick event. Is that
> possible?
>
> Thanks a lot
>



[flexcoders] How to detect DoubleClick in Button?

2007-12-06 Thread flexawesome
Hey there,

I have a button and would like to detect DoubleClick event. Is that
possible?

Thanks a lot



[flexcoders] Calling All Flex Writers!

2007-12-06 Thread Joseph Balderson
Hi everyone,

I've just been put in charge of a Flex 3 title by Wrox/Wiley Publishing, 
and we're currently looking for co-authors on the project.

More details here: 
http://www.joeflash.ca/blog/2007/12/professional-flex-3-book-calling-all-flex-writers.html
(or http://tinyurl.com/yphf7k)

Pass on the word to any experienced Flex developers you know who may 
want to get involved.

Thanks,

Joseph
-- 
___

Joseph Balderson, Flash Platform Developer | http://joeflash.ca
Abobe Certified Developer & Trainer | 705-466-6345
Writing partner, Community MX | http://www.communitymx.com


[flexcoders] Re: Using DateField as itemEditor for DataGrid column

2007-12-06 Thread carl_steinhilber

Thank you, Alex.
I'll need to be patient.  ;-)

One other thing I found interesting, in looking at the source of the
DateField from the SDK, it appears that the data setter *does* have
allowances for dates as strings... so I'm not sure why it's not
working... unless I'm really not formatting the date string properly.
But I've tried every format I can think of.

Thanks again, Alex!


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I've marked your issue for further investigation, but am backlogged this
> week.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of carl_steinhilber
> Sent: Thursday, December 06, 2007 10:35 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Using DateField as itemEditor for DataGrid
> column
> 
>  
> 
> Anybody? Anybody?
> 
> Various other namespaces seem to have definitions for date values, but
> I haven't been successful in loading up other namespaces in XML docs
> for Flex consumption. And I'm not convinced it would work even if I
> did... seems like the date value would *still* need to be in a format
> that Flex could understand internally, not based on some other
> namespace that it knows nothing about.
> 
> ANY help would be appreciated.
> Thanks,
> -Carl
> 
> --- In flexcoders@yahoogroups.com 
> , "carl_steinhilber"
>  wrote:
> >
> > Hi Alex,
> > 
> > Sure. (Holiday-themed) example below. :-) XML inline, of course,
> > rather than loaded from external doc as in my final app. As is, it
> > works (all data is shown, and clicking in the date field opens the
> > DateField editor... there's a coercion error on click in debug, but
> > it's silent when not in debug).
> > 
> > Changing the "date" DataGridColumn to 
> >  > width="100" editable="true"
> > itemRenderer="mx.controls.DateField"
> > editorDataField="selectedDate" rendererIsEditor="true" /> 
> > 
> > prevents any data from being shown. In debug, the coercion error
> > occurs immediately on creation... which makes perfect sense.
> > 
> > So the issue is definitely that Flex can't parse the date from the XML
> > node. But I'm at a loss as to how to define the date in the XML to fix
> > the problem. Am I going to have to step through the XML and convert it
> > to an Object, converting the date along the way? Or is there a more
> > straight-forward solution I'm missing? Would there be a way to wrap
> > the DateField in a custom renderer that can convert the date on the
> fly?
> > 
> > 
> > 
> > 
> > http://www.adobe.com/2006/mxml
>  "
> > layout="vertical" creationComplete="init()" >
> > 
> > 
> > 
> > 
> >  > width="600" height="160" editable="true">
> > 
> >  > width="200" editable="true" />
> >  > width="100" editable="true"
> > itemEditor="mx.controls.DateField"
> > editorDataField="selectedDate" /> 
> >  
> 
> >  > width="300" editable="true" /> 
> > 
> >  
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com
>  , "Alex Harui"  wrote:
> > >
> > > Can you post a mini-example?
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
>  
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > > Behalf Of carl_steinhilber
> > > Sent: Sunday, December 02, 2007 11:43 PM
> > > To: flexcoders@yahoogroups.com 
> 
> > > Subject: [flexcoders] Using DateField as itemEditor for DataGrid
> column
> > > 
> > > 
> > > 
> > > 
> > > I'm having a problem using a DateField as a itemRenderer/editor for
> a
> > > column in a dataGrid.
> > > 
> > > If I set the DateField as my itemEditor, everything works perfectly.
> > > But if I set the DateField as my itemRenderer and set
> rendererIsEditor
> > > to true the dataGrid renders completely blank (no data in *any*
> field)
> > > and locks down so *nothing* is editable.
> > > 
> > > In reading posts in the archives in this group and elsewhere, folks
> > > with similar issues were told to make sure the data bound to the
> > > column is of type date.
> > > But I have two issues with that:
> > > 1) if it wasn't understood as being of type date, why would it work
> > > when the dateField was set as the itemEditor
> > > and
> > > 2) I'm loading in the dataProvider for the DataGrid as a Bindable
> > > XMLListCollection from an external XML file... and I'm not sure how
> I
> > > can designate in XML that the node is of type date.
> > > 
> > > Anyone have any info or pointers? They'd be greatly appreciated.
> > > 
> > > Thanks in advance!
> > > -Carl
> > >
> >
>




Re: [flexcoders] Custom ItemEditor too big for container

2007-12-06 Thread Ken Dunnington
Ok, got it! I had to use some hard-coded values, which I'm not fond of
doing, but I can live with it :) Here's the function I used:

private function adjustEditorOffset(e:ListEvent):void {
var tree:Tree = Tree(e.currentTarget);
var treeBottomY:int = tree.y + tree.height;
tree.editorYOffset = (treeBottomY - tree.mouseY < 200) ?
-155 : 5;
}

The 200 is the height of my item editor, and the -155 is just from trial and
error as to what looked good :) This seems to do the trick just fine.

On Dec 6, 2007 2:27 PM, Ken Dunnington <[EMAIL PROTECTED]> wrote:

> I'm afraid that didn't do it. I'm going to try intercepting the
> itemEditBegin event and check the position of the item clicked and adjust
> the editorYOffset property on the Tree... does that sound right? Of course,
> I now need to learn how to figure out the item's position :)
>
>
> On Dec 6, 2007 1:03 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
>
> >variableRowHeight?
> >
> >
> >  --
> >
> > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of
> > *Ken Dunnington
> > *Sent:* Wednesday, December 05, 2007 11:47 AM
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* [flexcoders] Custom ItemEditor too big for container
> >
> >
> >
> > I've built a custom Tree ItemEditor that consists of a VBox with a Form
> > in it. It works just fine (besides the CheckBox which is too picky about
> > "true" vs. true in the XML data...) except when I try to edit an item near
> > the bottom of the container, the editor gets cut off. Because I wanted it to
> > only occupy the smallest necessary space, I set the following properties on
> > the Tree control: editorHeightOffset="150" editorWidthOffset="-650", and
> > there is no width or height set for the ItemEditor.
> >
> > What's the best way to ensure that my custom editor won't occupy a huge
> > amount of space, but will stay on-screen as well? I tried setting
> > verticalScrollPolicy to "on" but it doesn't register as an increase in the
> > control's height, so the bars don't activate when the editor is off the
> > screen.
> >
> >  
> >
>
>
>
> --
> Suppose you were an idiot. And suppose you were a member of congress. But
> I repeat myself.
> -- Mark Twain




-- 
Suppose you were an idiot. And suppose you were a member of congress. But I
repeat myself.
-- Mark Twain


RE: [flexcoders] Re: Sloooooow Flex Builder

2007-12-06 Thread Peter Farland
Make sure that you're not using a JVM that has IO performance issues...
Java 1.5.0_07 is known to have IO problems that seriously slows down
compilation, on both PC and Mac. Try to move to Java 1.5.0_13 which has
proven to have resolved this issue (note for Mac, Java 1.5.0_13 ships
with Leopard OS).

For Java 1.4.2, I suggest getting the latest possible. There are issues
in Java 1.4.2_02 through Java 1.4.2_05, and 1.4.2_10. If you can avoid
these particular update versions it will make life simpler.

Pete 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of denny431
Sent: Thursday, December 06, 2007 2:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Sloow Flex Builder

Forgot to note:

Plug In version

would be eclipse.ini



--- In flexcoders@yahoogroups.com, "denny431" <[EMAIL PROTECTED]> wrote:
>
> 
> I had the same problem on large Flex projects.
> Try adjusting the settings in FlexBuilder.ini file.(Standalone
> version)
> 
> You can increase the amount of memory alloted to Flex Builder.
> 
> Such as:
> -vmargs
> -Xms512M
> -Xmx1024M
> -XX:MinHeapFreeRatio=20
> 
> DJM
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
> >
> > Plenty of disc space?
> > 
> > - Original Message -
> > From: "Tim Ashworth" 
> > To: 
> > Sent: Thursday, December 06, 2007 4:52 PM
> > Subject: RE: [flexcoders] Sloow Flex Builder
> > 
> > 
> > > One project open, sometimes save to a network drive, sometimes
> save
> > > locally,
> > > always slow.
> > >
> > > I learnt about the open project thing and that's made things
> better, but
> > > really it's still pretty unbearable.
> > >
> > > -Original Message-
> > > From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
> > > Behalf Of Tom Chiverton
> > > Sent: 06 December 2007 13:10
> > > To: flexcoders@yahoogroups.com
> > > Subject: Re: [flexcoders] Sloow Flex Builder
> > >
> > > On Thursday 06 Dec 2007, Tim Ashworth wrote:
> > >> pauses on saves or just get used to sitting on my hands
looking 
> out
> > >> the window (at the rain)?
> > >
> > > Are you saving locally or to a network ? Do you have an on-
access 
> virus
> > > scanner running ? How many projects do you have open ?
> > >
> > > --
> > > Tom Chiverton
> > > Helping to preemptively extend value-added methodologies
> > > on: http://thefalken.livejournal.com
> > >
> > > 
> > >
> > > Please note, as of 10th December 2007 the registered office
> address of
> > > Halliwells LLP will be at 3 Hardman Square, Spinningfields,
> Manchester, M3
> > > 3EB
> > >
> > > 
> > >
> > > This email is sent for and on behalf of Halliwells LLP.
> > >
> > > Halliwells LLP is a limited liability partnership registered in
> England
> > > and
> > > Wales under registered number OC307980 whose registered office
> address is
> > > at
> > > St James's Court Brown Street Manchester M2 2JF.  A list of
> members is
> > > available for inspection at the registered office.  Any
reference 
> to a
> > > partner in relation to Halliwells LLP means a member of
> Halliwells LLP.
> > > Regulated by The 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 Mailing List
> > > FAQ: 
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives: http://www.mail-archive.com/flexcoders%
> 40yahoogroups.com
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ: 
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives: http://www.mail-archive.com/flexcoders%
> 40yahoogroups.com
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> >
>




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





[flexcoders] Re: Sloooooow Flex Builder

2007-12-06 Thread denny431
Forgot to note:

Plug In version

would be eclipse.ini



--- In flexcoders@yahoogroups.com, "denny431" <[EMAIL PROTECTED]> wrote:
>
> 
> I had the same problem on large Flex projects.
> Try adjusting the settings in FlexBuilder.ini file.(Standalone 
> version)
> 
> You can increase the amount of memory alloted to Flex Builder.
> 
> Such as:
> -vmargs
> -Xms512M
> -Xmx1024M
> -XX:MinHeapFreeRatio=20
> 
> DJM
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
> >
> > Plenty of disc space?
> > 
> > - Original Message - 
> > From: "Tim Ashworth" 
> > To: 
> > Sent: Thursday, December 06, 2007 4:52 PM
> > Subject: RE: [flexcoders] Sloow Flex Builder
> > 
> > 
> > > One project open, sometimes save to a network drive, sometimes 
> save 
> > > locally,
> > > always slow.
> > >
> > > I learnt about the open project thing and that's made things 
> better, but
> > > really it's still pretty unbearable.
> > >
> > > -Original Message-
> > > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On
> > > Behalf Of Tom Chiverton
> > > Sent: 06 December 2007 13:10
> > > To: flexcoders@yahoogroups.com
> > > Subject: Re: [flexcoders] Sloow Flex Builder
> > >
> > > On Thursday 06 Dec 2007, Tim Ashworth wrote:
> > >> pauses on saves or just get used to sitting on my hands 
looking 
> out
> > >> the window (at the rain)?
> > >
> > > Are you saving locally or to a network ? Do you have an on-
access 
> virus
> > > scanner running ? How many projects do you have open ?
> > >
> > > --
> > > Tom Chiverton
> > > Helping to preemptively extend value-added methodologies
> > > on: http://thefalken.livejournal.com
> > >
> > > 
> > >
> > > Please note, as of 10th December 2007 the registered office 
> address of
> > > Halliwells LLP will be at 3 Hardman Square, Spinningfields, 
> Manchester, M3
> > > 3EB
> > >
> > > 
> > >
> > > This email is sent for and on behalf of Halliwells LLP.
> > >
> > > Halliwells LLP is a limited liability partnership registered in 
> England 
> > > and
> > > Wales under registered number OC307980 whose registered office 
> address is 
> > > at
> > > St James's Court Brown Street Manchester M2 2JF.  A list of 
> members is
> > > available for inspection at the registered office.  Any 
reference 
> to a
> > > partner in relation to Halliwells LLP means a member of 
> Halliwells LLP.
> > > Regulated by The 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 Mailing List
> > > FAQ: 
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives: http://www.mail-archive.com/flexcoders%
> 40yahoogroups.com
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ: 
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives: http://www.mail-archive.com/flexcoders%
> 40yahoogroups.com
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> >
>




[flexcoders] Application.application.container?

2007-12-06 Thread Merrill, Jason
OK - not understanding something here.
Application.application.container?  I'm trying to figure out the base UI
class I can add sprite children to.  I have a class which draws objects,
and I want those objects to be drawn in my flex app.  So here is the
simplified version of the code below.  The thing I don't get is if I
leave in "_container = Application.application.container;" then the
constructor in my class does not run, but if I take it out, it runs. ?!?
Is Application.application.container the correct way to reference the
base UI object you can start adding Sprites to and then draw on with
Actionscript?
 
http://www.adobe.com/2006/mxml";
layout="absolute" applicationComplete="init()">
 
  
 

 
The MyClass.as file is:
 
package src
{

 import mx.core.UIComponent; 
 import mx.core.Application;
 
 public class MyClass 
 {
private var _container:UIComponent;
private var _circle:Sprite;
 
public function MyClass(container:UIComponent)
{
trace("constructor runs")
 _container = container;
  drawGraphics();
}
 
private function drawCircle():void
{
 _circle.graphics.drawCircle(100, 100, 100);
 _container.addChild(_circle);
}
 
}
 
}

Any ideas as to what is going on?  How do you handle getting to the base
UI class to draw objects with Actionscript?  Thank you.
 

Jason Merrill 
Bank of America 
L&LD GT&O 
eTools & Multimedia Research & Development 






[flexcoders] Re: Sloooooow Flex Builder

2007-12-06 Thread denny431

I had the same problem on large Flex projects.
Try adjusting the settings in FlexBuilder.ini file.(Standalone 
version)

You can increase the amount of memory alloted to Flex Builder.

Such as:
-vmargs
-Xms512M
-Xmx1024M
-XX:MinHeapFreeRatio=20

DJM




--- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>
> Plenty of disc space?
> 
> - Original Message - 
> From: "Tim Ashworth" <[EMAIL PROTECTED]>
> To: 
> Sent: Thursday, December 06, 2007 4:52 PM
> Subject: RE: [flexcoders] Sloow Flex Builder
> 
> 
> > One project open, sometimes save to a network drive, sometimes 
save 
> > locally,
> > always slow.
> >
> > I learnt about the open project thing and that's made things 
better, but
> > really it's still pretty unbearable.
> >
> > -Original Message-
> > From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> > Behalf Of Tom Chiverton
> > Sent: 06 December 2007 13:10
> > To: flexcoders@yahoogroups.com
> > Subject: Re: [flexcoders] Sloow Flex Builder
> >
> > On Thursday 06 Dec 2007, Tim Ashworth wrote:
> >> pauses on saves or just get used to sitting on my hands looking 
out
> >> the window (at the rain)?
> >
> > Are you saving locally or to a network ? Do you have an on-access 
virus
> > scanner running ? How many projects do you have open ?
> >
> > --
> > Tom Chiverton
> > Helping to preemptively extend value-added methodologies
> > on: http://thefalken.livejournal.com
> >
> > 
> >
> > Please note, as of 10th December 2007 the registered office 
address of
> > Halliwells LLP will be at 3 Hardman Square, Spinningfields, 
Manchester, M3
> > 3EB
> >
> > 
> >
> > This email is sent for and on behalf of Halliwells LLP.
> >
> > Halliwells LLP is a limited liability partnership registered in 
England 
> > and
> > Wales under registered number OC307980 whose registered office 
address is 
> > at
> > St James's Court Brown Street Manchester M2 2JF.  A list of 
members is
> > available for inspection at the registered office.  Any reference 
to a
> > partner in relation to Halliwells LLP means a member of 
Halliwells LLP.
> > Regulated by The 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 Mailing List
> > FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
>




Re: [flexcoders] Custom ItemEditor too big for container

2007-12-06 Thread Ken Dunnington
I'm afraid that didn't do it. I'm going to try intercepting the
itemEditBegin event and check the position of the item clicked and adjust
the editorYOffset property on the Tree... does that sound right? Of course,
I now need to learn how to figure out the item's position :)

On Dec 6, 2007 1:03 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>variableRowHeight?
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Ken Dunnington
> *Sent:* Wednesday, December 05, 2007 11:47 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Custom ItemEditor too big for container
>
>
>
> I've built a custom Tree ItemEditor that consists of a VBox with a Form in
> it. It works just fine (besides the CheckBox which is too picky about "true"
> vs. true in the XML data...) except when I try to edit an item near the
> bottom of the container, the editor gets cut off. Because I wanted it to
> only occupy the smallest necessary space, I set the following properties on
> the Tree control: editorHeightOffset="150" editorWidthOffset="-650", and
> there is no width or height set for the ItemEditor.
>
> What's the best way to ensure that my custom editor won't occupy a huge
> amount of space, but will stay on-screen as well? I tried setting
> verticalScrollPolicy to "on" but it doesn't register as an increase in the
> control's height, so the bars don't activate when the editor is off the
> screen.
>
>  
>



-- 
Suppose you were an idiot. And suppose you were a member of congress. But I
repeat myself.
-- Mark Twain


[flexcoders] Auto-sizing a Container that lives in rawChildren - how?

2007-12-06 Thread ben.clinkinbeard
It seems that Containers that are added to rawChildren do not get
measured and laid out automatically like they normally would. For
instance, if I don't give my HBox an explicit width and height it will
not show up when I call someCanvas.rawChildren.addChild(myHBox), no
matter how many children I put inside it. I am assuming this is due to
their measure() method not getting called (by SystemManager?) or
something but am not sure.

My question is whether or not there is a fairly easy way to get them
to auto-size like usual, or do I have to run through the children and
calculate it all myself during updateDisplayList()?

TIA,
Ben



[flexcoders] what is the recommended approach to flex in a portal environment

2007-12-06 Thread nitin_becomp
I want to use the Flex swf in portal (JBOSS/ websphere/ liferay 
etc). This Portal will have 5-6 tabs and will have many portlets 
inside one tab for different functionality. And the options I have 
are - 

1.  To develop the complete portal in Flex
2.  To create the tab pages in flex and put them as page on one 
portlet and then one tab will have one portlet.
3.  To have the separate swf files in every portlet of every page of 
every tab.

 Basically what is the recommended approach to flex in a portal 
environment? Which one is recommended and what are the pros and cons 
over each other. 

Link to default JBOSS Portal page - 
http://portal.demo.jboss.com/portal/default/default 
Where each window that have the minimize button at top right is 
called as portlet
 

Other thing is what are the pros and cons of having one swf app vs 
many swf files in one html/JSP page. And what is the overhead on the 
browser




[flexcoders] flex builder 3 profiler. which player?

2007-12-06 Thread aaron smith
I can't figure out which player to use for the flex 3 profiler. I've
downloaded the latest flex3sdk and installed
runtimes/players/mac/install...dmg. Do I need a special version of the debug
player? dah. I've also tried it with 9.0.47 debug, but i always the get the
"connect to debugger" popup which won't ever connect to localhost. Any
ideas?


RE: [flexcoders] navigation via mx:Tree

2007-12-06 Thread Tracy Spratt
To assign selectedChild, you need a reference to the acutal child.

 

Store an integer in the xml that relates to the index of the child in
the viewstack, then set selectedIndex.

 

Or have a switch statement that uses the @name to get the correct index.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ryanharlin
Sent: Thursday, December 06, 2007 2:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] navigation via mx:Tree

 

I'd like to have an mx:Tree that acts as a navigation menu; where
clicking an item in the Tree switches a viewStack to the corresponding
page.

I have an xml file with nodes that look like this:






When rendered in a tree it creates a folder called Folder 1 with two
sub-items called Item 1 and Item 2, respectively.

I have a function that's triggered onChange for the tree that looks
like this:

public function treeChanged(event:Event):void {
selectedNode=Tree(event.target).selectedItem;
var myDestination:String = [EMAIL PROTECTED];
trace ([EMAIL PROTECTED]);
}

That runs fine. Clicking on a item in the Tree traces "itemOne" or
"itemTwo" in the console.

Now... I then have a viewStack with children named "itemOne" and
"itemTwo."

And I want to have the tree change read the newly selected item in the
tree and go to the corresponding viewStack child.

So I added this to the function:

public function treeChanged(event:Event):void {
selectedNode=Tree(event.target).selectedItem;
var myDestination:String = [EMAIL PROTECTED];
myViewstack.selectedChild = [EMAIL PROTECTED];
}

unfortunately, this doesn't work. does anyone see how to do this better?

 



[flexcoders] navigation via mx:Tree

2007-12-06 Thread ryanharlin
I'd like to have an mx:Tree that acts as a navigation menu; where
clicking an item in the Tree switches a viewStack to the corresponding
page.

I have an xml file with nodes that look like this:






When rendered in a tree it creates a folder called Folder 1 with two
sub-items called Item 1 and Item 2, respectively.

I have a function that's triggered onChange for the tree that looks
like this:

public function treeChanged(event:Event):void {
selectedNode=Tree(event.target).selectedItem;
var myDestination:String = [EMAIL PROTECTED];
trace ([EMAIL PROTECTED]);
}

That runs fine.  Clicking on a item in the Tree traces "itemOne" or
"itemTwo" in the console.

Now... I then have a viewStack with children named "itemOne" and
"itemTwo."

And I want to have the tree change read the newly selected item in the
tree and go to the corresponding viewStack child.

So I added this to the function:

public function treeChanged(event:Event):void {
selectedNode=Tree(event.target).selectedItem;
var myDestination:String = [EMAIL PROTECTED];
myViewstack.selectedChild = [EMAIL PROTECTED];
}

unfortunately, this doesn't work.  does anyone see how to do this better?





RE: [flexcoders] Re: Using DateField as itemEditor for DataGrid column

2007-12-06 Thread Alex Harui
I've marked your issue for further investigation, but am backlogged this
week.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of carl_steinhilber
Sent: Thursday, December 06, 2007 10:35 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Using DateField as itemEditor for DataGrid
column

 

Anybody? Anybody?

Various other namespaces seem to have definitions for date values, but
I haven't been successful in loading up other namespaces in XML docs
for Flex consumption. And I'm not convinced it would work even if I
did... seems like the date value would *still* need to be in a format
that Flex could understand internally, not based on some other
namespace that it knows nothing about.

ANY help would be appreciated.
Thanks,
-Carl

--- In flexcoders@yahoogroups.com 
, "carl_steinhilber"
<[EMAIL PROTECTED]> wrote:
>
> Hi Alex,
> 
> Sure. (Holiday-themed) example below. :-) XML inline, of course,
> rather than loaded from external doc as in my final app. As is, it
> works (all data is shown, and clicking in the date field opens the
> DateField editor... there's a coercion error on click in debug, but
> it's silent when not in debug).
> 
> Changing the "date" DataGridColumn to 
>  width="100" editable="true"
> itemRenderer="mx.controls.DateField"
> editorDataField="selectedDate" rendererIsEditor="true" /> 
> 
> prevents any data from being shown. In debug, the coercion error
> occurs immediately on creation... which makes perfect sense.
> 
> So the issue is definitely that Flex can't parse the date from the XML
> node. But I'm at a loss as to how to define the date in the XML to fix
> the problem. Am I going to have to step through the XML and convert it
> to an Object, converting the date along the way? Or is there a more
> straight-forward solution I'm missing? Would there be a way to wrap
> the DateField in a custom renderer that can convert the date on the
fly?
> 
> 
> 
> 
> http://www.adobe.com/2006/mxml
 "
> layout="vertical" creationComplete="init()" >
> 
> 
> 
> 
>  width="600" height="160" editable="true">
> 
>  width="200" editable="true" />
>  width="100" editable="true"
> itemEditor="mx.controls.DateField"
> editorDataField="selectedDate" /> 
>  

>  width="300" editable="true" /> 
> 
>  
> 
> 
> 
> --- In flexcoders@yahoogroups.com
 , "Alex Harui"  wrote:
> >
> > Can you post a mini-example?
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
 
[mailto:flexcoders@yahoogroups.com 
] On
> > Behalf Of carl_steinhilber
> > Sent: Sunday, December 02, 2007 11:43 PM
> > To: flexcoders@yahoogroups.com 

> > Subject: [flexcoders] Using DateField as itemEditor for DataGrid
column
> > 
> > 
> > 
> > 
> > I'm having a problem using a DateField as a itemRenderer/editor for
a
> > column in a dataGrid.
> > 
> > If I set the DateField as my itemEditor, everything works perfectly.
> > But if I set the DateField as my itemRenderer and set
rendererIsEditor
> > to true the dataGrid renders completely blank (no data in *any*
field)
> > and locks down so *nothing* is editable.
> > 
> > In reading posts in the archives in this group and elsewhere, folks
> > with similar issues were told to make sure the data bound to the
> > column is of type date.
> > But I have two issues with that:
> > 1) if it wasn't understood as being of type date, why would it work
> > when the dateField was set as the itemEditor
> > and
> > 2) I'm loading in the dataProvider for the DataGrid as a Bindable
> > XMLListCollection from an external XML file... and I'm not sure how
I
> > can designate in XML that the node is of type date.
> > 
> > Anyone have any info or pointers? They'd be greatly appreciated.
> > 
> > Thanks in advance!
> > -Carl
> >
>

 



RE: [flexcoders] Re: Combo as itemEditor

2007-12-06 Thread Tracy Spratt
Yes, that is correct, I misspoke.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of carl_steinhilber
Sent: Thursday, December 06, 2007 1:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Combo as itemEditor

 

I would imagine that you don't *really* want to act on the change
event for the ComboBox. You'll be able to get the selectedItem for the
ComboBox, but you'll lose context and won't know which row in the
datagrid you're acting on... which I would think would be important.

As Scott mentioned, tie your processing to the itemEditEnd event of
the DataGrid itself. This way, you're in the proper context (you know
which row you're actually editing), and you can get access to the
ComboBox via the event.currentTarget.itemEditorInstance property, and
act on the selectedIndex, selectedItem, selectedLabel, etc *that* way.

--- In flexcoders@yahoogroups.com 
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> event.target (or currentTarget) returns a reference to the ComboBox,
so
> you should be able to access any public members, like selectedIndex,
> selectedItem, selectedLabel...
> 
> 
> 
> Tracy
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Barry
> Sent: Thursday, December 06, 2007 7:02 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Combo as itemEditor
> 
> 
> 
> I am using a comboBox component as an itemEditor within a datagrid and
> am dispatching an event on a change in the comboBox
> 
> dispatchEvent(new DataGridEvent("dgDataChange",
true,false,col,field));
> 
> I can catch this and send it to a listener function no problem.
> However, in the listener function I would like to access the selected
> item of the ComboBox.
> public function updateMe(event:DataGridEvent):void{
> 
> if(event.columnIndex ==0){
> //Do something with the data from the comboBox
> }else{
> //Do Nothing
> 
> } }
> Does anyone have an idea how to get that data? I see that I can
> dispatch a reference to the itemRenderer
> DataGridEvent(type:String, bubbles:Boolean = false, cancelable:Boolean
> = false, columnIndex:int = -1, dataField:String = null, rowIndex:int =
> -1, reason:String = null, itemRenderer:IListItemRenderer = null,
> localX:Number)
> 
> But am unsure whether it is the way, or how to actually implement it.
> Is it a class reference or a reference to a variable?? Hmm... Anyway,
if
> anyone can help me out, it might save my hair.
> Thanks
>

 



[flexcoders] Re: Missing classes when using RSL cache

2007-12-06 Thread Darrell Loverin
Yes, dependent RSLs must be included as well. The datavisualization 
RSL is dependent on the framework RSL. This means when you use 
datavisualization as an RSL you must also use the framework as an 
RSL. Also note that since the datavisualization is dependent on the 
framework RSL, the datavisualization RSL must be loaded after 
framework RSL. You can modify the RSL loading order in Flex Builder 
by modifying the project properties. In the project properties 
dialog goto Flex Build Path - Library Path. Select framework.swc and 
press the "Up" button until it is above datavisualization.swc. Now, 
assuming both framework.swc and datavisualization.swc are loaded as 
RSLs, the framework RSL will load before the datavisualization RSL.


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Darrell, do all dependent rsls have to be used as well?
> 
> -Original Message-
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Tom Chiverton
> Sent: Thursday, December 06, 2007 1:22 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Missing classes when using RSL cache
> 
> On Wednesday 05 Dec 2007, Alex Harui wrote:
> > Because TweenEffect is not in the app?
> 
> I should have been clearer - when not using data vis. as a RSL 
there is
> no 
> error.
> 
> I'll try and make up a test case today.
> 
> -- 
> Tom Chiverton
> Helping to augmentatively envisioneer enterprise-class solutions
> on: http://thefalken.livejournal.com
> 
> 
> 
> Please note, as of 10th December 2007 the registered office 
address of
> Halliwells LLP will be at 3 Hardman Square, Spinningfields, 
Manchester,
> M3 3EB
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in 
England
> and Wales under registered number OC307980 whose registered office
> address is at St James's Court Brown Street Manchester M2 2JF.  A 
list
> of members is available for inspection at the registered office.  
Any
> reference to a partner in relation to Halliwells LLP means a 
member of
> Halliwells LLP.  Regulated by The 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 Mailing List
> FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>




[flexcoders] Drag And Drop Question: List within list...

2007-12-06 Thread Boson Au
Hi everyone, I'm a beginning Flex Developer, but I've had a couple of
years experience w/ scripting.

here's my problem:

my current app basically deals with folders and files, such that a
folder has files and a folder can have another folder (that has files
or other folders... you get the idea) 

I'm populating this using a really simple xml list of nodes and children.

I'm using a tree control with DnD enabled.  I've been testing this and
here's what's going on:


1.) I drag the files and folders around on the own 'level' and reorder
them: all good.
2.) I drag a file from one folder and put them in another, this is
where it gets weird.  It either does not remove the original object
being dragged from its previous list, or it disappears into the ether
and I just straight up lose the object.


can anyone help?  I uploaded the test at
http://www.americanforkliftsociety.com/flexStuff/xmlTest.html (rt
click to view source)...





[flexcoders] Sanity Check!

2007-12-06 Thread triggersoftware
Is there any way to strongly type the objects that come back from a
Webservice call?  Something along the lines of:

[Bindable(wsdl=http://localhost:8080/MyProject/CandidateService?wsdl.Questionnaire)]
public class Questionnaire {
  ...
}

I know about the proxy generation in Flex Builder 3...



[flexcoders] Spacing wrong with embedded fonts and htmlText -- please help

2007-12-06 Thread toofah_gm
I am seeing some terrible problems when attempting to make my html
text look nice in a TextArea component that uses embedded fonts.  

It seems that my  tags and my spaces are not being respected.

Here is some sample code that shows it all.  I have embedded arial.ttf
font in this example since it would be simple for anyone to get this
ttf and compile the code:


http://www.adobe.com/2006/mxml";
layout="absolute" creationComplete="init()" xmlns:local="*">













And here is my "CustomTextArea" component:

http://www.adobe.com/2006/mxml";
creationComplete="init()">






Click on the "IN-2" button to put the HTML in the second box into the
RTE and the box on the right.  You will notice that the RTE, which
does not use the embedded font, will display with correct
formatting...the CustomTextArea on the right, which is setup to use
the embeded font will not display correctly.

If you push the "IN" button, the HTML from the first box will get
pushed in...it does not have font "face" defined...in this case none
of the text shows up...IMHO it should show the text anyway with some
sort of "default" font.

What am I doing incorrectly?  I need HTML formatting to work correctly
with my embedded fonts.

Thanks,
Gary






[flexcoders] Re: Combo as itemEditor

2007-12-06 Thread carl_steinhilber
I would imagine that you don't *really* want to act on the change
event for the ComboBox. You'll be able to get the selectedItem for the
ComboBox, but you'll lose context and won't know which row in the
datagrid you're acting on... which I would think would be important.

As Scott mentioned, tie your processing to the itemEditEnd event of
the DataGrid itself. This way, you're in the proper context (you know
which row you're actually editing), and you can get access to the
ComboBox via the event.currentTarget.itemEditorInstance property, and
act on the selectedIndex, selectedItem, selectedLabel, etc *that* way.


--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> event.target (or currentTarget) returns a reference to the ComboBox, so
> you should be able to access any public members, like selectedIndex,
> selectedItem, selectedLabel...
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Barry
> Sent: Thursday, December 06, 2007 7:02 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Combo as itemEditor
> 
>  
> 
> I am using a comboBox component as an itemEditor within a datagrid and
> am dispatching an event on a change in the comboBox
> 
> dispatchEvent(new DataGridEvent("dgDataChange", true,false,col,field));
> 
> I can catch this and send it to a listener function no problem.
> However, in the listener function I would like to access the selected
> item of the ComboBox.
> public function updateMe(event:DataGridEvent):void{
> 
> if(event.columnIndex ==0){
> //Do something with the data from the comboBox
> }else{
> //Do Nothing
> 
> } }
> Does anyone have an idea how to get that data? I see that I can
> dispatch a reference to the itemRenderer
> DataGridEvent(type:String, bubbles:Boolean = false, cancelable:Boolean
> = false, columnIndex:int = -1, dataField:String = null, rowIndex:int =
> -1, reason:String = null, itemRenderer:IListItemRenderer = null,
> localX:Number)
> 
> But am unsure whether it is the way, or how to actually implement it.
> Is it a class reference or a reference to a variable?? Hmm... Anyway, if
> anyone can help me out, it might save my hair.
> Thanks
>




[flexcoders] Display an html page in a flex popup

2007-12-06 Thread letterpigeon
Hi all,
 
Has anyone successfully embeded html in a flex popup.  I've looked at
the IFrame approach in this link
http://www.deitte.com/archives/2006/08/finally_updated.htm and able to
get html to display in a simple canvas but i can't figure out how to
take it a step further (putting it in a popup, or put it in a tab as
part of a tab navigator).  
 
Is IFrame the correct way to do this?  Any other suggestions?  Thanks.
 
Ban



[flexcoders] Re: Using DateField as itemEditor for DataGrid column

2007-12-06 Thread carl_steinhilber
Anybody? Anybody?

Various other namespaces seem to have definitions for date values, but
I haven't been successful in loading up other namespaces in XML docs
for Flex consumption. And I'm not convinced it would work even if I
did... seems like the date value would *still* need to be in a format
that Flex could understand internally, not based on some other
namespace that it knows nothing about.

ANY help would be appreciated.
Thanks,
-Carl

--- In flexcoders@yahoogroups.com, "carl_steinhilber"
<[EMAIL PROTECTED]> wrote:
>
> Hi Alex,
> 
> Sure. (Holiday-themed) example below.  :-)   XML inline, of course,
> rather than loaded from external doc as in my final app. As is, it
> works (all data is shown, and clicking in the date field opens the
> DateField editor... there's a coercion error on click in debug, but
> it's silent when not in debug).
> 
> Changing the "date" DataGridColumn to 
>width="100" editable="true"
>   itemRenderer="mx.controls.DateField"
> editorDataField="selectedDate" rendererIsEditor="true" /> 
> 
> prevents any data from being shown. In debug, the coercion error
> occurs immediately on creation... which makes perfect sense.
> 
> So the issue is definitely that Flex can't parse the date from the XML
> node. But I'm at a loss as to how to define the date in the XML to fix
> the problem. Am I going to have to step through the XML and convert it
> to an Object, converting the date along the way? Or is there a more
> straight-forward solution I'm missing? Would there be a way to wrap
> the DateField in a custom renderer that can convert the date on the fly?
> 
> 
> 
> 
> http://www.adobe.com/2006/mxml";
> layout="vertical" creationComplete="init()" >
> 
> 
> 
> 
>  width="600" height="160" editable="true">
> 
>  width="200" editable="true" />
>  width="100" editable="true"
>   itemEditor="mx.controls.DateField"
> editorDataField="selectedDate" /> 
>
 
>  width="300" editable="true" /> 
> 
>  
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > Can you post a mini-example?
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of carl_steinhilber
> > Sent: Sunday, December 02, 2007 11:43 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Using DateField as itemEditor for DataGrid
column
> > 
> >  
> > 
> > 
> > I'm having a problem using a DateField as a itemRenderer/editor for a
> > column in a dataGrid.
> > 
> > If I set the DateField as my itemEditor, everything works perfectly.
> > But if I set the DateField as my itemRenderer and set rendererIsEditor
> > to true the dataGrid renders completely blank (no data in *any* field)
> > and locks down so *nothing* is editable.
> > 
> > In reading posts in the archives in this group and elsewhere, folks
> > with similar issues were told to make sure the data bound to the
> > column is of type date.
> > But I have two issues with that:
> > 1) if it wasn't understood as being of type date, why would it work
> > when the dateField was set as the itemEditor
> > and
> > 2) I'm loading in the dataProvider for the DataGrid as a Bindable
> > XMLListCollection from an external XML file... and I'm not sure how I
> > can designate in XML that the node is of type date.
> > 
> > Anyone have any info or pointers? They'd be greatly appreciated.
> > 
> > Thanks in advance!
> > -Carl
> >
>




Re: [flexcoders] Reusing a localconnection

2007-12-06 Thread Guillermo Villasana
I forgot, I am using it to send and recieve between flex and flash using 
AS2.
Thanks

Guillermo Villasana wrote:
>
> Hello everyone, I know that with LocalConnection you can only have one
> connection with the same name... the problem I am having here is that if
> you open a second window of the same page, the comunication is lost, so
> is there a way to determine that an id is already open, an use it, so
> the information flows from one flash to another?
> Thanks.
> Terius
>
>  



[flexcoders] Reusing a localconnection

2007-12-06 Thread Guillermo Villasana
Hello everyone, I know that with LocalConnection you can only have one 
connection with the same name... the problem I am having here is that if 
you open a second window of the same page, the comunication is lost, so 
is there a way to determine that an id is already open, an use it, so 
the information flows from one flash to another?
Thanks.
Terius


Re: [flexcoders] Sloooooow Flex Builder

2007-12-06 Thread Paul Andrews
Plenty of disc space?

- Original Message - 
From: "Tim Ashworth" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, December 06, 2007 4:52 PM
Subject: RE: [flexcoders] Sloow Flex Builder


> One project open, sometimes save to a network drive, sometimes save 
> locally,
> always slow.
>
> I learnt about the open project thing and that's made things better, but
> really it's still pretty unbearable.
>
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Tom Chiverton
> Sent: 06 December 2007 13:10
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Sloow Flex Builder
>
> On Thursday 06 Dec 2007, Tim Ashworth wrote:
>> pauses on saves or just get used to sitting on my hands looking out
>> the window (at the rain)?
>
> Are you saving locally or to a network ? Do you have an on-access virus
> scanner running ? How many projects do you have open ?
>
> --
> Tom Chiverton
> Helping to preemptively extend value-added methodologies
> on: http://thefalken.livejournal.com
>
> 
>
> Please note, as of 10th December 2007 the registered office address of
> Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester, M3
> 3EB
>
> 
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in England 
> and
> Wales under registered number OC307980 whose registered office address is 
> at
> St James's Court Brown Street Manchester M2 2JF.  A list of members is
> available for inspection at the registered office.  Any reference to a
> partner in relation to Halliwells LLP means a member of Halliwells LLP.
> Regulated by The 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 Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
> 



Re: [flexcoders] Sloooooow Flex Builder

2007-12-06 Thread Scott Melby
My project eventually grew to a point where FB was completely unusable.  
That forced me to re-org my code into modules which has been much 
better.  I decided on a single project with multiple modules... which 
means it is still dog slow when I clean the project.  But, otherwise 
things are much much faster.


hth
Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com



Tim Ashworth wrote:


One project open, sometimes save to a network drive, sometimes save 
locally,

always slow.

I learnt about the open project thing and that's made things better, but
really it's still pretty unbearable.

-Original Message-
From: flexcoders@yahoogroups.com  
[mailto:flexcoders@yahoogroups.com 
] On

Behalf Of Tom Chiverton
Sent: 06 December 2007 13:10
To: flexcoders@yahoogroups.com 
Subject: Re: [flexcoders] Sloow Flex Builder

On Thursday 06 Dec 2007, Tim Ashworth wrote:
> pauses on saves or just get used to sitting on my hands looking out
> the window (at the rain)?

Are you saving locally or to a network ? Do you have an on-access virus
scanner running ? How many projects do you have open ?

--
Tom Chiverton
Helping to preemptively extend value-added methodologies
on: http://thefalken.livejournal.com 



Please note, as of 10th December 2007 the registered office address of
Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester, M3
3EB



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

Halliwells LLP is a limited liability partnership registered in 
England and
Wales under registered number OC307980 whose registered office address 
is at

St James's Court Brown Street Manchester M2 2JF. A list of members is
available for inspection at the registered office. Any reference to a
partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by The 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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 

Search Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com 


Yahoo! Groups Links

 


RE: [flexcoders] Re: PrintDataGrid variablerowheight issue

2007-12-06 Thread Alex Harui
Please file a bug with a simple test case and post the bug#

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jf317820
Sent: Wednesday, December 05, 2007 9:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: PrintDataGrid variablerowheight issue

 

Default

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Custom or default renderers?
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of jf317820
> Sent: Wednesday, December 05, 2007 7:28 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] PrintDataGrid variablerowheight issue
> 
> 
> 
> Hi everyone,
> 
> I've done my thorough 5 days of documentation research, trial and
> error, and forum perusing on this subject, but have come to you as a
> frustrated, nearly broken developer. My printdatagrid will not print
> correctly, no matter what I try. I am getting rows cut off at the end
> of pages and extra empty rows added at the end of the printdatagrid.
> 
> I have followed the sample code for the printdatagrid, using the
> validatenow and validnextpage methods, i've created my printdatagrid
> dynamically in actionscript and in mxml, I've tried adding extra line
> breaks to my data in an effort to force full rows...but nothing seems
> to work.
> 
> I believe the culprit to be the variablerowheight attribute of my
> printdatagrid which seems to be throwing off the printing. 
> 
> Has anyone figured out a way to print to a printdatagrid
effectively???
> 
> Thanks in advance.
> 
> Joe
>

 



RE: [flexcoders] Custom ItemEditor too big for container

2007-12-06 Thread Alex Harui
variableRowHeight?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ken Dunnington
Sent: Wednesday, December 05, 2007 11:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Custom ItemEditor too big for container

 

I've built a custom Tree ItemEditor that consists of a VBox with a Form
in it. It works just fine (besides the CheckBox which is too picky about
"true" vs. true in the XML data...) except when I try to edit an item
near the bottom of the container, the editor gets cut off. Because I
wanted it to only occupy the smallest necessary space, I set the
following properties on the Tree control: editorHeightOffset="150"
editorWidthOffset="-650", and there is no width or height set for the
ItemEditor. 

What's the best way to ensure that my custom editor won't occupy a huge
amount of space, but will stay on-screen as well? I tried setting
verticalScrollPolicy to "on" but it doesn't register as an increase in
the control's height, so the bars don't activate when the editor is off
the screen. 

 



Re: [flexcoders] Re: How to access .net dll's in FLEX 3.0

2007-12-06 Thread Jeffry Houser

  I thought for RemoteObject you needed more than just an application 
server?  Using CF you can access CFCS, but .NET assemblies?  I was 
unaware that BlueDragon had any Flex Remoting support.

Tom Chiverton wrote:
> On Thursday 06 Dec 2007, Praveen wrote:
>>  .NET dll's. and the dll's return data in HASHTABLE format. Now JRUN
>> is not there. Can I know presently how FLEX 3.0 can access .NET dll's
>> using IIS and FlashRemoting. Thanks in advance.
> 
> You need a server (not IIS) of some sort, like BlueDragon, Adobe's 
> ColdFusion, 
> or just put JRUN back.
> 

-- 
Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: 
My Podcast: 
My Blog: 



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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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


RE: [flexcoders] Re: dataTipFunction position in datagrid

2007-12-06 Thread Alex Harui
Listen to renderer not control

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tungchau81
Sent: Wednesday, December 05, 2007 5:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: dataTipFunction position in datagrid

 

Hi Alex,
I tried to listen to the "tooltipshow" event in AdvancedDataGrid(Flex 
3), but I was not able to catch the event at all.

private function changeToolTipPosition(event:ToolTipEvent):void {
trace("TungChau::x=" + ToolTipManager.currentToolTip.x);
trace("TungChau::y=" + ToolTipManager.currentToolTip.y);
trace("TungChau::y1=" + ToolTipManager.currentTarget.y);
}


...


When debugging the problem, I set a breakpoint 
inside "changeToolTipPosition" function and I was never able to reach 
the breakpoint. My AdvancedDataGrid has grouping by default.

Regards,
Tung Chau

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Try tooltipshow in a custom renderer
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 

[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of hammer995
> Sent: Thursday, October 18, 2007 8:19 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] dataTipFunction position in datagrid
> 
> 
> 
> I have the following:
> 
>  showDataTips="true" dataTipFunction="fullAcctName"/>
> 
> The fullAcctName returns a string.
> 
> Unfortunately, the string is displayed right over the cell you are
> hovering over to get the tooltip. Is there a way to give it an 
offset
> so it doesn't block the cell?
> 
> Thanks!
>

 



RE: [flexcoders] Sloooooow Flex Builder

2007-12-06 Thread Tim Ashworth
One project open, sometimes save to a network drive, sometimes save locally,
always slow.

I learnt about the open project thing and that's made things better, but
really it's still pretty unbearable. 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: 06 December 2007 13:10
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Sloow Flex Builder

On Thursday 06 Dec 2007, Tim Ashworth wrote:
> pauses on saves or just get used to sitting on my hands looking out 
> the window (at the rain)?

Are you saving locally or to a network ? Do you have an on-access virus
scanner running ? How many projects do you have open ?

--
Tom Chiverton
Helping to preemptively extend value-added methodologies
on: http://thefalken.livejournal.com



Please note, as of 10th December 2007 the registered office address of
Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester, M3
3EB



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

Halliwells LLP is a limited liability partnership registered in England and
Wales under registered number OC307980 whose registered office address is at
St James's Court Brown Street Manchester M2 2JF.  A list of members is
available for inspection at the registered office.  Any reference to a
partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by The 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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links






[flexcoders] Support ical recurrence in Flex Calendar

2007-12-06 Thread kuroiryu42
I am expanding on the calendar from
http://www.quietlyscheming.com/blog/components/interactive-calendar/

I want to be able to support holiday calendars which means I need to
support recurrence rules.

I tried loading a holiday calendar and inspecting the calendar the
holiday feed was loaded but nothing shows up because the events are
not adjusted by their recurrence rules.

Just curious if anyone has already fixed this.

Thanks,
Joe



RE: [flexcoders] Add textfield error

2007-12-06 Thread Alex Harui
In flex, container children must be iuicomponents.  Use uitextfield

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jonathan Lee
Sent: Wednesday, December 05, 2007 8:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Add textfield error

 

Hello all,
I have a application to in creationComplete event to execute a function
called initApp();

This is initApp()..
import flash.text.TextField;
public var mtTXT:TextField;
public function initApp():void{
myTXT = new TextField();
myTXT.x = 343; myTXT.y = 10; 
myTXT.width = 196; myTXT.height = 300;
myTXT.wordWrap = true; myTXT.border = true;
myTXT.multiline =true;

 !
addChild(myTXT);
}

It compiles ok, but when it runs, it says TypeError: Error #1034: Type
Coercion failed: cannot convert flash.text::[EMAIL PROTECTED] to
mx.core.IUIComponent.
at
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::addingChi
ld()



But that TextField is inherited from DisplayObject which suppose to be
abled to used within addChild() function.

Any thoughts.

Thanks.

  



Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try
it now.
 

 



RE: [flexcoders] MOUSE RIGHT CLICK EVENT..

2007-12-06 Thread Alex Harui
No such event in the flash player.  You can detect context menu events

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of yourName
Sent: Wednesday, December 05, 2007 11:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] MOUSE RIGHT CLICK EVENT..

 

Plz Tell me how to capture RIGHT CLICK EVENT 

Plz Send me If u Can a code sample if u can

Thanks in advance

 



RE: [flexcoders] Re: DataGrid tab order (again)

2007-12-06 Thread Alex Harui
I think you are describing bug SDK-12588

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stephen Roy J. Tang
Sent: Wednesday, December 05, 2007 11:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: DataGrid tab order (again)

 

Ok, no rush. Just wanted to quickly check if there was something I was
missing instead. 

Note that in the sample I gave, I'm not cheating on the tab order in
any way. :)

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> If you're cheating on how tabbing works, you'll have this problem in
IE.
> In IE, if you aren't in the tab order from the FocusManager's
> perspective you could end up having focus leave to the browser. There
> might be a bug related to that as well where we don't handle all
cases.
> I won't have time to investigate this week.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Stephen Roy J. Tang
> Sent: Wednesday, December 05, 2007 5:00 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] DataGrid tab order (again)
> 
> 
> 
> Hi!
> 
> Thanks to Alex's help I got the datagrid tab order functionality I
> needed mostly working (including avoiding the datagrid remembering the
> last edited cell). 
> 
> Just one minor issue now, which I *might* be able to just ignore, but
> I'm curious about it because it works correctly on Firefox, but not on
> IE. Specifically, when I reverse-tab (shift+tab) out of my DataGrid,
> the focus seems to be going to the wrong control. But it only happens
> in IE.
> 
> Check my sample here:
> http://roytang.net/sandbox/DataGridTabOrder.swf
 
>  > 
> Source: http://roytang.net/sandbox/DataGridTabOrder.mxml
 
>  > 
> 
> Is it a bug in the SDK? or is there something I can do to work around
> it?
> 
> Thanks!
> 
> Roy
>

 



RE: [flexcoders] Missing classes when using RSL cache

2007-12-06 Thread Alex Harui
Darrell, do all dependent rsls have to be used as well?

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Thursday, December 06, 2007 1:22 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Missing classes when using RSL cache

On Wednesday 05 Dec 2007, Alex Harui wrote:
> Because TweenEffect is not in the app?

I should have been clearer - when not using data vis. as a RSL there is
no 
error.

I'll try and make up a test case today.

-- 
Tom Chiverton
Helping to augmentatively envisioneer enterprise-class solutions
on: http://thefalken.livejournal.com



Please note, as of 10th December 2007 the registered office address of
Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester,
M3 3EB



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

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at St James's Court Brown Street Manchester M2 2JF.  A list
of members is available for inspection at the registered office.  Any
reference to a partner in relation to Halliwells LLP means a member of
Halliwells LLP.  Regulated by The 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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links





RE: [flexcoders] Re: How to access .net dll's in FLEX 3.0

2007-12-06 Thread Lukas Ruebbelke

I have been working with WebOrb for the last couple months to connect to a
.net dll and it has performed like a champ. My suggestion would be to
download the standard edition and go through a few of the example files. It
is incredibly easy to set up and get going. 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Thursday, December 06, 2007 9:02 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: How to access .net dll's in FLEX 3.0

On Thursday 06 Dec 2007, Praveen wrote:
>  .NET dll's. and the dll's return data in HASHTABLE format. Now JRUN
> is not there. Can I know presently how FLEX 3.0 can access .NET dll's
> using IIS and FlashRemoting. Thanks in advance.

You need a server (not IIS) of some sort, like BlueDragon, Adobe's
ColdFusion, 
or just put JRUN back.

-- 
Tom Chiverton
Helping to completely bully mission-critical design-patterns
on: http://thefalken.livejournal.com



Please note, as of 10th December 2007 the registered office address of
Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester, M3
3EB



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

Halliwells LLP is a limited liability partnership registered in England and
Wales under registered number OC307980 whose registered office address is at
St James's Court Brown Street Manchester M2 2JF.  A list of members is
available for inspection at the registered office.  Any reference to a
partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by The 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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links







[flexcoders] Re: Flex 3::AdvancedDataGrid::groupItemRenderer is for group or branch node only?

2007-12-06 Thread sreeni_r
ADGGroupItemRenderer is used for all the items in that column because 
it attempts to show parent and leaf icons for the items. Hence the 
color is getting applied for the tree column child labels.

--- In flexcoders@yahoogroups.com, "tungchau81" <[EMAIL PROTECTED]> 
wrote:
>
> Hi,
> My AdvancedDataGrid has grouping collection set up during 
> intialization.I tried to change the label's color of all group or 
> branch nodes, but the color got applied to the labels of child 
nodes 
> also. Is this a bug?
> 
>  defaultLeafIcon="{myLeftIcon}"
> groupIconFunction="reportArchiveGroupingIcon"  
> dataTipFunction="generateReportDataTip"
> initialize="gc.refresh();" 
> width="100%" height="100%">
> 
> 
>   
>   
> 
> 
>  
>   
>
>   name="{arrangeBySelection.selectedItem.data}"/>
>   
> 
> 
>   
> 
>headerText="{getString('label.reportName')}" showDataTips="true" 
> minWidth="300"/>
>dataField="startDate" labelFunction="formatStartDate" 
> headerText="{getString('label.reportStartDate')}" 
showDataTips="true" 
> width="100"/>
>labelFunction="formatEndDate" headerText="{getString
> ('label.reportEndDate')}" showDataTips="true" width="100"/>
>dataField="createdOn" labelFunction="formatCreatedOnDate" 
> headerText="{getString('label.createdOn')}" showDataTips="true" 
> width="100"/>
> ...
> 
> 
> Note: "0xAAB3B3" is a light grey color.
>




RE: [flexcoders] How to set selected index to 0 when i click on any columnheading to sort the datagrid

2007-12-06 Thread Alex Harui
You'll get a HEADER_RELEASE event, then I would wait for updateComplete
before setting selectedIndex.  The sort code wll try to retain the
selected item and you need to wait until it has run.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Girish
Sent: Thursday, December 06, 2007 5:52 AM
To: flexcoders
Subject: [flexcoders] How to set selected index to 0 when i click on any
columnheading to sort the datagrid

 

Hi all

 

When i click on column heading in datagrid, i want to set the 1st item
as selected. how can i achieve this.

 

I am filling data in datagrid control and making the first index
selected for the first time,

my question is when i sort the columns at that time i tried to set the
selected index to 0, but it is not selecting the first index,

how to set the selected index to 0 when i sort any column in ascending
or decending order.

 

always 1st item should be selected in datagrid even when i click on any
column heading to sort.

 

Regards

Girish







Now you can chat without downloading messenger. Click here
  to know how.

 



[flexcoders] Re: AdvancedDataGrid::toolTip formatting

2007-12-06 Thread sreeni_r
If you need groupLabelFunction or the normal labelFunction to show 
html text you need to use custom itemRenderers because the default 
itemRenderes do not attempt to show html text.

--- In flexcoders@yahoogroups.com, "tungchau81" <[EMAIL PROTECTED]> 
wrote:
>
> The same thing for groupLabelFunction. Returned HTML text is not 
> accepted. 
> 
> --- In flexcoders@yahoogroups.com, "sreeni_r"  wrote:
> >
> > Hi Tung,
> > 
> > you can use the trick mentioned here
> > 
> > http://www.flex-flex.net/blog/article.asp?id=18
> > 
> > to display html formatted strings as toolTips.
> > 
> > -Sreenivas
> > 
> > --- In flexcoders@yahoogroups.com, "tungchau81"  
> > wrote:
> > >
> > > Hi,
> > > I wrote my own custom dataTipFunction that return an HTML 
> formatted 
> > > text, but it does not work. Please help!
> > > 
> > > private function myDataTip(data:Object):String {
> > > return "Tung Chau";
> > > }
> > > 
> > > The result I saw was a raw "Tung Chau" instead of the 
bold 
> > text 
> > > format I want.
> > > 
> > > Please help.
> > > Tung Chau
> > >
> >
>




RE: [flexcoders] DataGridDragProxy - Transparency

2007-12-06 Thread Alex Harui
imageAlpha param on doDrag()

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of marcel.beerta
Sent: Thursday, December 06, 2007 6:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGridDragProxy - Transparency

 

I want to re-skin the Item which is rendered when I drag an item from
a DataGrid. I've read an article which showed a basic example how it
is done and it's working fine. 

Flex seems to set a default transparency to the listitem when I drag
it around and i couldn't find any property which would let me disable
this. Is there any chance to disable that transparency when the item
is dragged around?

 



Re: [flexcoders] Double click tree item editing

2007-12-06 Thread Jerome Clarke
right on time. thanks... :p I was gonna work on this myself soon

I'll try this out later

On Dec 6, 2007 4:44 PM, Ken Dunnington <[EMAIL PROTECTED]> wrote:

>   I needed my Tree control to only bring up the item editor when double
> clicked. I was going to post this as a question, but instead dug into it a
> bit more and came up with a solution, so I thought I'd share in case anyone
> else needs the same functionality (or has a better solution.)
>
> Basically, I'm listening for the itemEditBeginning event, canceling it,
> then manually setting the editedItemPosition on the itemDoubleClick event.
> Pretty simple, really, but if you're just getting into itemEditors (like me)
> hopefully this will be useful to you. Here's the relevant code:
>
> 
> 
> 
>
>  doubleClickEnabled="true" editable="true"
> itemDoubleClick="initiateDblClickEditing(event)"
> itemEditBeginning="cancelSingleClickEditing(event)"
> showRoot="false" labelField="@name" />
>  
>


[flexcoders] Double click tree item editing

2007-12-06 Thread Ken Dunnington
I needed my Tree control to only bring up the item editor when double
clicked. I was going to post this as a question, but instead dug into it a
bit more and came up with a solution, so I thought I'd share in case anyone
else needs the same functionality (or has a better solution.)

Basically, I'm listening for the itemEditBeginning event, canceling it, then
manually setting the editedItemPosition on the itemDoubleClick event. Pretty
simple, really, but if you're just getting into itemEditors (like me)
hopefully this will be useful to you. Here's the relevant code:








[flexcoders] Re: Redirect to new page

2007-12-06 Thread Abyss Knight
This is the JS library I've been using, and it works like a charm:

http://blog.deconcept.com/swfobject/

-- William

--- In flexcoders@yahoogroups.com, "Mark" <[EMAIL PROTECTED]> wrote:
>
> How can I redirect the user to a new page if that uses doesn't have 
> the plug-in or an out of date plug-in?
> 
> Thanks,
> Mark
>




Re: [flexcoders] Re: How to access .net dll's in FLEX 3.0

2007-12-06 Thread Jeffry Houser

  Have you looked into LiveCycle Data Services yet?

Praveen wrote:
> 
> 
> Thanks for the reply. Today i came to know
> that in our company FlashRemoting is used with JRUN by FLEX to access
> .NET dll's. and the dll's return data in HASHTABLE format. Now JRUN
> is not there. Can I know presently how FLEX 3.0 can access .NET dll's
> using IIS and FlashRemoting. Thanks in advance.
> 
> --- In flexcoders@yahoogroups.com , 
> "Douglas
> Knudsen" <[EMAIL PROTECTED]> wrote:
>  >
>  > yeah, news to me too. Must have had some secret edition of Flex
> 1.5 for
>  > that.
>  >
>  > Praveen, maybe your Flex 1.5 app was actually calling a Java POJO
> that did
>  > some magic to use a .NET dll? Jumping the globe to travel to the
>  > neighbourhood coffee shopanyhoo, with Flex 2 and 3, you could
> possibly
>  > expose this .NET code as web services and consume with no added
> server
>  > expense.
>  >
>  > DK
>  >
>  > On Dec 5, 2007 2:45 PM, Jeffry Houser <[EMAIL PROTECTED]> wrote:
>  >
>  > >
>  > > I had no idea Flex 1.5 allowed you to call .NET dlls using
>  > > RemoteObject. Pretty sweet. If Flex 1. Server could access .NET
> DLLs,
>  > > then I Bet that this funcionality would be present in the current
>  > > rendition of LiveCycle Data Services.
>  > >
>  > > You could also look into WebORB for .NET, although if your
> company can
>  > > afford Flex 1.5 licenses, I'd suspect that LDS is probably also
> within
>  > > your budget.
>  > >
>  > > Destinations refer to a remoting configuration file. I believe it
>  > > tells 'you' where to find the remoting gateway.
>  > >
>  > >
>  > > Praveen wrote:
>  > > >
>  > > >
>  > > > HI.. I am Praveen.
>  > > > I joined this group newly. I recently joined
>  > > > in job as fresher in hyderabad. My company is product
> devleopment
>  > > > company and it developed its product in FLEX 1.5 and .Net.
> Presently
>  > > > we design our interface in FLEX and interact with .Net dll's
> using
>  > > > REMOTEOBJECT tag. Presetly the dll's are placed in bin folder
> of JRUN
>  > > > server. Now our company wants to recode the entire product FLEX
>  > > > 3.0(presently beta) and formed some of us team to study FLEX
> 3.0. Now
>  > > > I cant understantd how to call(access) the dll's which are
> previously
>  > > > in the bin folder of JRUN SERVER in the FLEX 3.0. and cant
> understand
>  > > > the 'destination' property in the REMOTEOBJECT tag and its
> purpose as
>  > > > we dont use it in our present code(FLEX1.5).
>  > > >
>  > > > Please give me some reply which any of you know..
>  > > >
>  > >
>  > > --
>  > > Jeffry Houser, Technical Entrepreneur, Software Developer, Author,
>  > > Recording Engineer
>  > > AIM: Reboog711 | Phone: 1-203-379-0773
>  > > --
>  > > My Company: >
>  > > My Podcast: >
>  > > My Blog: >
>  > >
>  > >
>  > >
>  >
>  >
>  >
>  > --
>  > Douglas Knudsen
>  > http://www.cubicleman.com 
>  > this is my signature, like it?
>  >
> 
> 

-- 
Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: 
My Podcast: 
My Blog: 



Re: [flexcoders] Re: How to access .net dll's in FLEX 3.0

2007-12-06 Thread Tom Chiverton
On Thursday 06 Dec 2007, Praveen wrote:
>  .NET dll's. and the dll's return data in HASHTABLE format. Now JRUN
> is not there. Can I know presently how FLEX 3.0 can access .NET dll's
> using IIS and FlashRemoting. Thanks in advance.

You need a server (not IIS) of some sort, like BlueDragon, Adobe's ColdFusion, 
or just put JRUN back.

-- 
Tom Chiverton
Helping to completely bully mission-critical design-patterns
on: http://thefalken.livejournal.com



Please note, as of 10th December 2007 the registered office address of 
Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester, M3 3EB



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office.  Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP.  Regulated by The 
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 Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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


RE: [flexcoders] Re: How to access .net dll's in FLEX 3.0

2007-12-06 Thread Jim Hayes
Look into "fluorine" or "weborb", both are remoting solutions for
dotnet. Personally I'm using fluorine at the moment and am quite happy
with it.
There are getting started tutorials for both just a short google search
away (Sorry, I don't have any links to hand just now)
Jim.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Praveen
Sent: 06 December 2007 15:47
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to access .net dll's in FLEX 3.0
 
Thanks for the reply. Today i came to know 
that in our company FlashRemoting is used with JRUN by FLEX to access
.NET dll's. and the dll's return data in HASHTABLE format. Now JRUN 
is not there. Can I know presently how FLEX 3.0 can access .NET dll's 
using IIS and FlashRemoting. Thanks in advance.

--- In flexcoders@yahoogroups.com 
, "Douglas 
Knudsen" <[EMAIL PROTECTED]> wrote:
>
> yeah, news to me too. Must have had some secret edition of Flex 
1.5 for
> that.
> 
> Praveen, maybe your Flex 1.5 app was actually calling a Java POJO 
that did
> some magic to use a .NET dll? Jumping the globe to travel to the
> neighbourhood coffee shopanyhoo, with Flex 2 and 3, you could 
possibly
> expose this .NET code as web services and consume with no added 
server
> expense.
> 
> DK
> 
> On Dec 5, 2007 2:45 PM, Jeffry Houser <[EMAIL PROTECTED]> wrote:
> 
> >
> > I had no idea Flex 1.5 allowed you to call .NET dlls using
> > RemoteObject. Pretty sweet. If Flex 1. Server could access .NET 
DLLs,
> > then I Bet that this funcionality would be present in the current
> > rendition of LiveCycle Data Services.
> >
> > You could also look into WebORB for .NET, although if your 
company can
> > afford Flex 1.5 licenses, I'd suspect that LDS is probably also 
within
> > your budget.
> >
> > Destinations refer to a remoting configuration file. I believe it
> > tells 'you' where to find the remoting gateway.
> >
> >
> > Praveen wrote:
> > >
> > >
> > > HI.. I am Praveen.
> > > I joined this group newly. I recently joined
> > > in job as fresher in hyderabad. My company is product 
devleopment
> > > company and it developed its product in FLEX 1.5 and .Net. 
Presently
> > > we design our interface in FLEX and interact with .Net dll's 
using
> > > REMOTEOBJECT tag. Presetly the dll's are placed in bin folder 
of JRUN
> > > server. Now our company wants to recode the entire product FLEX
> > > 3.0(presently beta) and formed some of us team to study FLEX 
3.0. Now
> > > I cant understantd how to call(access) the dll's which are 
previously
> > > in the bin folder of JRUN SERVER in the FLEX 3.0. and cant 
understand
> > > the 'destination' property in the REMOTEOBJECT tag and its 
purpose as
> > > we dont use it in our present code(FLEX1.5).
> > >
> > > Please give me some reply which any of you know..
> > >
> >
> > --
> > Jeffry Houser, Technical Entrepreneur, Software Developer, Author,
> > Recording Engineer
> > AIM: Reboog711 | Phone: 1-203-379-0773
> > --
> > My Company:  >
> > My Podcast: 
>
> > My Blog: 
>
> >
> > 
> >
> 
> 
> 
> -- 
> Douglas Knudsen
> http://www.cubicleman.com  
> this is my signature, like it?
>
 

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

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

[flexcoders] Datatips with buttons - using dataTipRenderer

2007-12-06 Thread maybe later...
Hi,

I'm trying to put a button in a datatip.
I created a class, extending the DataTip class.
I did an override to createChildren, adding my button.
(also override to measure() to widen it for the button, and get/set data).
I attached the "hide" event to a function that keeps the datatip
visible (meaning: this.visible = true;)
So the datatip with the button stays visible, but the button isn't
responding to a click. I attached the custom class itself to a click
event, and when I click on the tooltip it also doesn't respond.

btw - if I extend a canvas, it's working. but I want to extend a
datatip, so it has all the abilities and design of a datatip, only
with a button.

What should I do to be able to click the button I added there? 
Thanks,
butch



RE: [flexcoders] Combo as itemEditor

2007-12-06 Thread Tracy Spratt
event.target (or currentTarget) returns a reference to the ComboBox, so
you should be able to access any public members, like selectedIndex,
selectedItem, selectedLabel...

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Barry
Sent: Thursday, December 06, 2007 7:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Combo as itemEditor

 

I am using a comboBox component as an itemEditor within a datagrid and
am dispatching an event on a change in the comboBox

dispatchEvent(new DataGridEvent("dgDataChange", true,false,col,field));

I can catch this and send it to a listener function no problem.
However, in the listener function I would like to access the selected
item of the ComboBox.
public function updateMe(event:DataGridEvent):void{

if(event.columnIndex ==0){
//Do something with the data from the comboBox
}else{
//Do Nothing

} }
Does anyone have an idea how to get that data? I see that I can
dispatch a reference to the itemRenderer
DataGridEvent(type:String, bubbles:Boolean = false, cancelable:Boolean
= false, columnIndex:int = -1, dataField:String = null, rowIndex:int =
-1, reason:String = null, itemRenderer:IListItemRenderer = null,
localX:Number)

But am unsure whether it is the way, or how to actually implement it.
Is it a class reference or a reference to a variable?? Hmm... Anyway, if
anyone can help me out, it might save my hair.
Thanks

 



[flexcoders] Re: How to access .net dll's in FLEX 3.0

2007-12-06 Thread Praveen
   Thanks for the reply. Today i came to know 
that in our company FlashRemoting is used with JRUN by FLEX to access
 .NET dll's. and the dll's return data in HASHTABLE format. Now JRUN 
is not there. Can I know presently how FLEX 3.0 can access .NET dll's 
using IIS and FlashRemoting. Thanks in advance.


--- In flexcoders@yahoogroups.com, "Douglas 
Knudsen" <[EMAIL PROTECTED]> wrote:
>
> yeah, news to me too.  Must have had some secret edition of Flex 
1.5 for
> that.
> 
> Praveen, maybe your Flex 1.5 app was actually calling a Java POJO 
that did
> some magic to use a .NET dll? Jumping the globe to travel to the
> neighbourhood coffee shopanyhoo, with Flex 2 and 3, you could 
possibly
> expose this .NET code as web services and consume with no added 
server
> expense.
> 
> DK
> 
> On Dec 5, 2007 2:45 PM, Jeffry Houser <[EMAIL PROTECTED]> wrote:
> 
> >
> > I had no idea Flex 1.5 allowed you to call .NET dlls using
> > RemoteObject. Pretty sweet. If Flex 1. Server could access .NET 
DLLs,
> > then I Bet that this funcionality would be present in the current
> > rendition of LiveCycle Data Services.
> >
> > You could also look into WebORB for .NET, although if your 
company can
> > afford Flex 1.5 licenses, I'd suspect that LDS is probably also 
within
> > your budget.
> >
> > Destinations refer to a remoting configuration file. I believe it
> > tells 'you' where to find the remoting gateway.
> >
> >
> > Praveen wrote:
> > >
> > >
> > > HI.. I am Praveen.
> > > I joined this group newly. I recently joined
> > > in job as fresher in hyderabad. My company is product 
devleopment
> > > company and it developed its product in FLEX 1.5 and .Net. 
Presently
> > > we design our interface in FLEX and interact with .Net dll's 
using
> > > REMOTEOBJECT tag. Presetly the dll's are placed in bin folder 
of JRUN
> > > server. Now our company wants to recode the entire product FLEX
> > > 3.0(presently beta) and formed some of us team to study FLEX 
3.0. Now
> > > I cant understantd how to call(access) the dll's which are 
previously
> > > in the bin folder of JRUN SERVER in the FLEX 3.0. and cant 
understand
> > > the 'destination' property in the REMOTEOBJECT tag and its 
purpose as
> > > we dont use it in our present code(FLEX1.5).
> > >
> > > Please give me some reply which any of you know..
> > >
> >
> > --
> > Jeffry Houser, Technical Entrepreneur, Software Developer, Author,
> > Recording Engineer
> > AIM: Reboog711 | Phone: 1-203-379-0773
> > --
> > My Company: 
> > My Podcast: 
> > My Blog: 
> >
> >  
> >
> 
> 
> 
> -- 
> Douglas Knudsen
> http://www.cubicleman.com
> this is my signature, like it?
>




[flexcoders] Redirect to new page

2007-12-06 Thread Mark
How can I redirect the user to a new page if that uses doesn't have 
the plug-in or an out of date plug-in?

Thanks,
Mark



Re: [flexcoders] Datagrid ItemEditor - multiple data edits?

2007-12-06 Thread Ken Dunnington
I'm doing exactly that, and it is pretty easy. Here's the LiveDoc link:
http://livedocs.adobe.com/flex/201/html/celleditor_073_15.html#247667
and you also might want to read over this bit on making your custom editor
respond to keyboard events (enter and escape, for example)
http://livedocs.adobe.com/flex/201/html/celleditor_073_07.html#208069

On Dec 5, 2007 6:05 PM, Tracy Spratt <[EMAIL PROTECTED]> wrote:

>Sure, this should not be difficult.  Have your renderer do its own
> updating of the dataProvider item, and don't attempt to use the
> renderIsEditor or other built in item editor functionality.  The renderer
> gets a reference to the entire item, so it can manipulate that data however
> you want.
>
>
>
> I also recall a document topic about returning multiple values from a
> renderer, that might be useful.
>
>
>
> Tracy
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Rick Schmitty
> *Sent:* Wednesday, December 05, 2007 2:43 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Datagrid ItemEditor - multiple data edits?
>
>
>
> Is it possible for an ItemEditor in a datagrid (or some other way) to
> allow you to edit 2 or more things at once? Like say instead of a
> combo box dropdown for a cell in a datagrid, could you have an item
> editor that is like a mini form update multiple data objects in that
> row's data that may not be displayed in the datagrids view
>
> Or Flex3 advanced datagrid something I should look into? Or this will
> have to be completely custom and kinda 'fake' this behavior
>
>  
>



-- 
Suppose you were an idiot. And suppose you were a member of congress. But I
repeat myself.
-- Mark Twain


[flexcoders] SeriesInterpolate effectEnd event continually dispatches

2007-12-06 Thread vic8427
I have a chart with 3 series.  I use the SeriesInterpolate effect with the 
column series.  I want 
to use the effectEnd event to call a function.



This event dispatches, but does so continually.  Therefore my callback function 
is continually 
being called.  The column series is the only object that I am using this effect 
with.  Any idea 
as to why this would happen?

Thanks,
vic



[flexcoders] Re: accessing nested objects... what am I missing?!?!

2007-12-06 Thread ryanharlin
So things are half-working.  I say half-working because they work but
they give me an error when I compile.

switching a viewstack in the nested mxml app is done like this in my code:

viewstack in main file is called "mainscreens"
inside that viewstack are two  tags

so it looks like this:







If I try and change a viewstack that's in appOne, called 'myView', I
do this (based on advice earlier in this thread):

click = "mainScreens.myView.selectedChild = screen2;"

If try to run this app I get an error that says:

"1119:Access of possibly undefined property myView through a reference
 with static type mx.containers:ViewStack"

BUT IT WORKS!  If I ignore the error and run the app, the code works.



But I get the error every time I compile and I think it's messing up
other things below it in the program.











--- In flexcoders@yahoogroups.com, "Adnan Doric" <[EMAIL PROTECTED]> wrote:
>
> It is better to dispatch events from your nested component and handle
> them in your parent component.
> 
> 
> --- In flexcoders@yahoogroups.com, "ryanharlin"  wrote:
> >
> > Thanks for the help.  Your solution worked in practice but I do still
> > get an error prior to compiling.  If I ignore the error and compile,
> > though, it works.
> > 
> > But similarly, I want to be able to call functions that are in these
> > different mxml files.  So if I have an mxml file called
> > navigation.mxml embedded in the master app file called master.mxml,
> > how can I call master.mxml functions from navigation.mxml?
> > 
> > Back from the flash days, I thought this would work:
> > 
> > root.myFunction();
> > 
> > but it doesn't.  I'm sure this problem is related to my earlier post,
> > that's why I have it in the same thread.
> > 
> > thanks,
> > 
> > ryan
> > 
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "ryanharlin"  wrote:
> > >
> > > I have a simple enough question, I think.  But I've been struggling
> > > with it for two days.
> > > 
> > > I have an mxml application which has a viewstack in it.  The
children
> > > in the viewstack are  > > 
> > > It looks like this:
> > >   
> > > 
> > > 
> > > 
> > > 
> > > 
> > > In the mxml file called interfacePanel I have another viewstack with
> > > interface screens on them.
> > > 
> > > How can I select different children of that viewstack from the main
> > > mxml app.
> > > 
> > > I would think I'd do something like this:
> > > 
> > >  > > click="mainScreens.interfacePanel.secondViewstack.selectedChild =
> > > Page2;" />
> > > 
> > > But that doesn't work.
> > > 
> > > Does anyone know the method of addressing object across multiple
> > > nested mxml files?
> > > 
> > > Thanks!  Hopefully someone can show me what I'm missing.
> > >
> >
>




Re: [flexcoders] AsDoc and libraries problem

2007-12-06 Thread Muzak
Add the location of the flexlib swc to the -source-path parameter list

asdoc -source-path "path/to/project" "path/to/flexlib" ...


- Original Message - 
From: "rleuthold" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, December 06, 2007 12:02 PM
Subject: [flexcoders] AsDoc and libraries problem


Hi,

I want to run asdoc (from command line) for my project, but always getting an 
error cause of 
the flexlib components I'm using (Error: Could not resolve 
 to a 
component implementation). Does somebody have an idea how to exclude the 
flexlib 
components when running asdoc ?

thanx_rico 




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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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


Re: [flexcoders] Combo as itemEditor

2007-12-06 Thread Scott Melby

In the itemEditEnd handler I get the comboBox as follows:

var comboBox:ComboBox = ComboBox(event.currentTarget.itemEditorInstance);

hth
Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com



Barry wrote:


I am using a comboBox component as an itemEditor within a datagrid and
am dispatching an event on a change in the comboBox

dispatchEvent(new DataGridEvent("dgDataChange", true,false,col,field));

I can catch this and send it to a listener function no problem.
However, in the listener function I would like to access the selected
item of the ComboBox.
public function updateMe(event:DataGridEvent):void{

if(event.columnIndex ==0){
//Do something with the data from the comboBox
}else{
//Do Nothing

} }
Does anyone have an idea how to get that data? I see that I can
dispatch a reference to the itemRenderer
DataGridEvent(type:String, bubbles:Boolean = false, cancelable:Boolean
= false, columnIndex:int = -1, dataField:String = null, rowIndex:int =
-1, reason:String = null, itemRenderer:IListItemRenderer = null,
localX:Number)

But am unsure whether it is the way, or how to actually implement it.
Is it a class reference or a reference to a variable?? Hmm... Anyway, if
anyone can help me out, it might save my hair.
Thanks

 


[flexcoders] Re: Summary Data

2007-12-06 Thread triggersoftware
It was this level of fiddling about that I didn't really want to have
to get into, but I've managed to limit it to the following:




private function makeSummary(event:CollectionEvent = null):void {
var mCount:uint = 0;
var iCount:uint = 0;
var sCount:uint = 0;

var source:ArrayCollection = grd.dataProvider as ArrayCollection;

for (var i:uint=0; i < source.length; i++) {
var user:SimpleUser = SimpleUser(source[i]);
if (user.dept == "Management") {
mCount++;
}
if (user.dept == "IT") {
iCount++;
}
if (user.dept == "Support") {
sCount++;
}   

}

var summary:ArrayCollection = new ArrayCollection();
summary.addItem({Department:'Management', count: mCount});
summary.addItem({Department:'IT', count: iCount});
summary.addItem({Department:'Support', count: sCount});

grdSummary.dataProvider = summary;
}


Thanks for all your help.

David.



[flexcoders] Multiple Series Flex Charting

2007-12-06 Thread netdeep
Hi, I'm new to flex and new to this group.  I really like flex so far, but I'm 
having problems 
getting data from an xml source to display dynamically in a flex chart.  The 
xml has an 
indeterminate number of series and each series will contain metadata which 
defines what 
type of chart it is (i.e. PlotSeries, LineSeries, etc) along with labels for 
axis.  But I do not 
know:

A)  How to read this data
B)  How to get the data into a chart.

I can read in the data fine from an HttpService into a static chart, but have 
had zero 
success with the dynamic version.  Here's a sample of the xml I need to read in.



Chart Name

Unit X1
Unit X2
Date


PlotSeries
Plot Series

[int x]  [int y]


[int x]  [int y]

[etc]



LineSeries
Line Series

[int x]  [int y]


[int x]  [int y]

[etc]




Again the xml file could have an indeterminate number of these series objects.  
I've been 
trying to find this answer for quite a while in other forums with no success.  
Thanks for any help you can offer.



[flexcoders] Combo as itemEditor

2007-12-06 Thread Barry
I am using a comboBox component as an itemEditor within a datagrid and
am dispatching an event on a change in the comboBox

dispatchEvent(new DataGridEvent("dgDataChange", true,false,col,field));

I can catch this and send it to a listener function no problem.
However, in the listener function I would like to access the selected
item of the ComboBox.
public function updateMe(event:DataGridEvent):void{

if(event.columnIndex ==0){
//Do something with the data from the comboBox
}else{
//Do Nothing

} }
Does anyone have an idea how to get that data? I see that I can
dispatch a reference to the itemRenderer
DataGridEvent(type:String, bubbles:Boolean = false, cancelable:Boolean
= false, columnIndex:int = -1, dataField:String = null, rowIndex:int =
-1, reason:String = null, itemRenderer:IListItemRenderer = null,
localX:Number)

But am unsure whether it is the way, or how to actually implement it.
Is it a class reference or a reference to a variable?? HmmÂ… Anyway, if
anyone can help me out, it might save my hair.
Thanks



[flexcoders] how to create 3D chart using Flex 3

2007-12-06 Thread i_m_suniket
Hi there,

I have installed the new Flex 3 Beta. Also I can have "ILOG" in this 
version of Flex. so I have written the follwing code for creating #D 
Pie Chart in an simple MXML file. There is no error in code, but I 
got the error while compilation :


 Unable to resolve resource bundle "charts3d" for locale "en_US".



Code:
=

http://www.adobe.com/2006/mxml"; 
xmlns:ilog="http://www.ilog.com/2007/ilog/flex";>
  
  
  
 

  
  
  

  
 




[flexcoders] DataGridDragProxy - Transparency

2007-12-06 Thread marcel.beerta
I want to re-skin the Item which is rendered when I drag an item from
a DataGrid. I've read an article which showed a basic example how it
is done and it's working fine. 

Flex seems to set a default transparency to the listitem when I drag
it around and i couldn't find any property which would let me disable
this. Is there any chance to disable that transparency when the item
is dragged around?

 



[flexcoders] TileList Memory Issues - not freeing up renderers

2007-12-06 Thread rueter007
Hi,

I have a tilelist with a custom item renderer showing an image and
some text. I used the profiler to look at the memory issues and see
that the tilelist is not reusing renderers when the dataprovider
changes. It simply creates new renderers. Moreover, when I scroll up
and down on the tilelist, it is creating new renderers rather than
reusing the existing ones. I get this information from the profiler.
The old instances are never being garbage collected. Is there a way to
force the tilelist to flush these renderers? (I believe the tilelist
is supposed to do this already, but some how it does not seem to be
working in my case.) Any help is appreciated. thanks,

venkat



[flexcoders] Question regarding loading spinner icon

2007-12-06 Thread Loyvin
I want to change the default busy icon (the clock) in my flex
application. Is there a way? How can I do this? Thanks.



[flexcoders] Tactics for writing data to the DB?

2007-12-06 Thread Barry
Should we write a little a lot or a lot a little?

The reason I ask is that in a normal html web form type of page After 
the user edited any fields, I would wait for the user click to 
submit/update before sending anything to the sever.
However, taking the datagrid in Flex as an example, the user can edit 
the data and events are triggered thus the local dataprovider is 
updated automatically. I am wrestling with the problem of whether I 
should send the data as it is edited in the grid, or whether to use 
some kind of call later function to check whether the editing has been 
finished etc before sending the update request to the backend. It would 
be interesting to hear how people are dealing with taking to the 
database.

Barry




[flexcoders] Re: ValueObject Factories?

2007-12-06 Thread phattarin_s

Hi, Christophe.

I have used VO in send/recieve communication with server by use Java 
Spring. No problem at all, but I still don't try to use custom-define 
collection class to contain VO. It works well with ArrayCollection <-> 
List, Array.

Hope it help you.

Phattarin


--- In flexcoders@yahoogroups.com, "b_alen" <[EMAIL PROTECTED]> wrote:
>
> Sometimes I use Factory for creating VOs, it really depends on the
> need. And I use VOs for everything that goes OTW, even if it is a
> trivial object.
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Christophe Herreman" 
> wrote:
> >
> > Hi all,
> > 
> > I was wondering how you guys deal with model objects and their
> corresponding
> > value objects. We have a pretty big domain model with complex 
nested
> classes
> > and we need to create value objects from them before sending 
them to the
> > server. Right now we create a factory for each model, that can
> create a vo
> > from a model and a model from a vo. This works, but it is obviously
> a lot of
> > work and error prone, so it requires more work to write testcases
> for them.
> > 
> > Does anyone have this "problem" too? Are you only sending VO's to
> the server
> > or do you only do that for complex types and otherwise send the 
object
> > itself?
> > 
> > Input, comments and ideas are welcome.
> > 
> > regards,
> > Christophe
> > 
> > -- 
> > Christophe Herreman
> > http://www.herrodius.com
> > http://www.pranaframework.org
> >
>




  1   2   >