RE: [flexcoders] swapchildren error: The supplied DisplayObject must be a child of the caller

2007-09-04 Thread Alex Harui
I could be wrong, but I believe that swapChildren is not supported in
Flex Container.  Neither is re-parenting.
 
I would use PopUpManager to float the draggable image.  You can call
removeChild to remove from the container before handing to popupmanager.
 
You might also want to build the whole thing by subclassing UIComponent.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flashcrow2000
Sent: Monday, September 03, 2007 5:13 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] swapchildren error: The supplied DisplayObject
must be a child of the caller



Hi again.

I have the following sequence of code:

if (this.parent.getChildIndex(this)  this.parent.numChildren-1) {
trace(this.parent+ should swap the following items:)
trace(this+ on level +this.parent.getChildIndex(this))
trace(this.parent.getChildAt(this.parent.numChildren-1)+ on level 
+(this.parent.numChildren-1))
try {
this.parent.swapChildren(this, 
this.parent.getChildAt(int(this.parent.numChildren-1))
);
}
catch (e:*) {
trace(e)
}
}

and it's output from the console window:

FloatingWidgetContainer135.FloatingFrontView138.WidgetMainView198.Canvas
248
should swap the following items:
FloatingWidgetContainer135.FloatingFrontView138.WidgetMainView198.Canvas
248.thumbnail280
on level 1
FloatingWidgetContainer135.FloatingFrontView138.WidgetMainView198.Canvas
248.thumbnail409
on level 2
ArgumentError: Error #2025: The supplied DisplayObject must be a child
of the caller.

The above code is called inside the mouse_Down listener for a custom
thumbnail. The thumbnail is located inside a canvas and more instances
of the thumbnail are added programatically when needed. The user has
the option to drag and drop the thumbnail (this are thumbnails of
uploaded pictures) and I need to swap them because the dragged object
is shown below some of the thumbnails (for example, if I have 2
thumbs, and I drag the first one, it will be displayed below the
second one, because of their corresponding depths. Each thumbnail
creates the floating, draggable image as it's own child).

One option would be to create the draggable item in the same canvas
with the other thumbnails, but that might raise some issues related to
the position of the draggable picture.

Any ideas on this (I hope i'm not being too ambiguous)
Thanks.



 


RE: [flexcoders] DoubleClick together with Mouse_Down and Mouse_Up

2007-09-04 Thread Alex Harui
You might get two MOUSE_UPs, but not continuous.  Are you sure you're
not redispatching the event?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flashcrow2000
Sent: Monday, September 03, 2007 4:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DoubleClick together with Mouse_Down and Mouse_Up



Hi all,

I have a custom made thumbnail class, and I must allow the user to
either drag and drop the thumbnail, or double-click it in order to do
whatever it is the thumb does. Now...I have the drag and drop all
figured out (I'm not using DragManager, I'm catching the mouse_down
and mouse_up event) but if I double click the thumb (which has
doubleClickEnabled set to true), I get my double click method called
once, but also my mouse_up listener method called continuously, even
though I have no timers or any other mechanism which might explain a
continuous call of a method. 

To put it simple, I'm asking if there is a way to tell one object to
ignore a mouse_down - mouse_up sequence if that sequence is part of a
mouse_doubleClick event. 

If you have any ideas, please let me know.
Thanks



 


RE: [flexcoders] Global include file

2007-09-04 Thread Alex Harui
You can make GlobalColors a class and import it instead.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lhy90936
Sent: Monday, September 03, 2007 3:09 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Global include file



Hi,

I've created a global include file which contains some const definition:

GlobalColors.as
public static const RED:Number = 0xff;
public static const ORANGE:Number = 0xFFA500;
..

When I tried to include the file into another class:
myRenderer.as
package myClass.renderer
{
include ../global/GlobalColor.as;

public class myRenderer extends Text
{
..
}

}

I get the following error during compilation:
A file found in a source-path can not have more than one externally 
visible definition. 
myClass.renderer:RED; myClass.renderer:ORANGE; .. 
myClass.renderer:myRenderer 

Can anyone point out where is the problem?
Am I including the .as file wrongly?

Thank you.



 


Re: [flexcoders] DoubleClick together with Mouse_Down and Mouse_Up

2007-09-04 Thread Paul Hastings
Alex Harui wrote:
 You might get two MOUSE_UPs, but not continuous.  Are you sure you're 
 not redispatching the event?

i had the same sort of problem, listening for pretty much all mouse events  we 
found it impossible to capture *just* the double click, the app would react to 
the mouse down/up instead of the double click. had to resort to using 
control-key+mouse click.

how should we have done this?


RE: [flexcoders] Making datagrid column editable via actionscript?

2007-09-04 Thread Alex Harui
dg.columns[i].editable = true;
 
but you have to do it before ITEM_EDIT_BEGINNING and the MOUSE_DOWN that
precedes it.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of candysmate
Sent: Monday, September 03, 2007 5:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Making datagrid column editable via actionscript?



How do I address a datagrid column in AS in order to make it editable
please?



 


[flexcoders] Re: List of checkboxes control - help handling events

2007-09-04 Thread arieljake
The main problem is that there is no way to tell the difference, as
far as I can tell, between the checkbox selected value being updated
by the List due to rendering (like reusage of renderers during
scrolling) and when the user clicks it.

I am receiving events from the checkbox that do not signify user input.

How can I handle this?

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

 Do you mean that the .selected property isn't set right? or the data
 object isn't updated?
  
 It should be set by the time the Checkbox (not the List) dispaches
 CHANGE.
  
 If you're referring to the data object, you're responsible for updating
 it.  It is better to work from that than from the renderers anyway since
 they might get recycled.
  
 You can also try low priority listeners as well.
  
 -Alex
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of arieljake
 Sent: Monday, September 03, 2007 10:38 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] List of checkboxes control - help handling events
 
 
 
 I have a list of checkboxes just like the one posted on alex h's blog.
 
 I am trying to modify it so I get an event when a checkbox is clicked
 so I can POST to the server. The trouble is asking for the right
 event, because none seem to work right.
 
 Though the CLICK and CHANGE events on the LIST do result in changes to
 the state of the checkbox renderers, they are fired BEFORE the
 checkbox is updated.
 
 I added a bubbling CHANGE event to the checkbox renderer when its
 state is changed, but it gets fired when the list is rendering itself. 
 
 I tried to fix this by adding an isActive field to the checkbox list
 itself that gets set to false when its state is being changed and back
 to true when its UPDATECOMPLETE event is fired. But that only works
 when I am responding to changes in its dataProvider. Not when
 scrolling happens, as I just found.
 
 Any ideas?





[flexcoders] Re: Making datagrid column editable via actionscript?

2007-09-04 Thread candysmate
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 dg.columns[i].editable = true;
  
 but you have to do it before ITEM_EDIT_BEGINNING and the MOUSE_DOWN that
 precedes it.
 
 

Thank you Alex.



[flexcoders] Re: DoubleClick together with Mouse_Down and Mouse_Up

2007-09-04 Thread flashcrow2000
Alex, according to the Flex Help, the DoubleClick must follow a
sequence of mouse_down, mouse_up, click, mouse_down, mouse_up events.

My main issue is that the mouse_up event (which is not being
re-dispatched) is caught in a double_click sequence in the first
place, so my actual question was if I can instruct the player to
handle these events with some sort of timeout (something like, check
if the mouse_down is part of a double_click sequence, and if so, do
nothing; otherwise, do what it's supposed to do).

If you have any ideas on how this could be implemented, or you happen
to have an example, it would be of great help.

Again, my goal is a thumbnail that the user can either double click,
or drag and drop over a specific target.

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

 Alex Harui wrote:
  You might get two MOUSE_UPs, but not continuous.  Are you sure you're 
  not redispatching the event?
 
 i had the same sort of problem, listening for pretty much all mouse
events  we 
 found it impossible to capture *just* the double click, the app
would react to 
 the mouse down/up instead of the double click. had to resort to using 
 control-key+mouse click.
 
 how should we have done this?





[flexcoders] Re: List of checkboxes control - help handling events

2007-09-04 Thread arieljake
Never mind. This was easier than I thought. I added an event listener
for CLICK on the checkbox, and in the handler, updated the data and
dispatched an event. This is fine. Thanks for the help.

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

 The main problem is that there is no way to tell the difference, as
 far as I can tell, between the checkbox selected value being updated
 by the List due to rendering (like reusage of renderers during
 scrolling) and when the user clicks it.
 
 I am receiving events from the checkbox that do not signify user input.
 
 How can I handle this?
 
 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  Do you mean that the .selected property isn't set right? or the data
  object isn't updated?
   
  It should be set by the time the Checkbox (not the List) dispaches
  CHANGE.
   
  If you're referring to the data object, you're responsible for
updating
  it.  It is better to work from that than from the renderers anyway
since
  they might get recycled.
   
  You can also try low priority listeners as well.
   
  -Alex
  
  
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of arieljake
  Sent: Monday, September 03, 2007 10:38 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] List of checkboxes control - help handling
events
  
  
  
  I have a list of checkboxes just like the one posted on alex h's blog.
  
  I am trying to modify it so I get an event when a checkbox is clicked
  so I can POST to the server. The trouble is asking for the right
  event, because none seem to work right.
  
  Though the CLICK and CHANGE events on the LIST do result in changes to
  the state of the checkbox renderers, they are fired BEFORE the
  checkbox is updated.
  
  I added a bubbling CHANGE event to the checkbox renderer when its
  state is changed, but it gets fired when the list is rendering
itself. 
  
  I tried to fix this by adding an isActive field to the checkbox list
  itself that gets set to false when its state is being changed and back
  to true when its UPDATECOMPLETE event is fired. But that only works
  when I am responding to changes in its dataProvider. Not when
  scrolling happens, as I just found.
  
  Any ideas?
 





[flexcoders] Re: DoubleClick together with Mouse_Down and Mouse_Up

2007-09-04 Thread flashcrow2000
Another thing (sorry for the double post). On the mouse_down event,
I'm creating a copy of the thumbnail's picture under the mouse
pointer, so I guess the mouse up isn't caught at all by the thumbnail,
but rather by the thumbnail's copy.

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

 Alex Harui wrote:
  You might get two MOUSE_UPs, but not continuous.  Are you sure you're 
  not redispatching the event?
 
 i had the same sort of problem, listening for pretty much all mouse
events  we 
 found it impossible to capture *just* the double click, the app
would react to 
 the mouse down/up instead of the double click. had to resort to using 
 control-key+mouse click.
 
 how should we have done this?





[flexcoders] Flex - AIR: local port listener

2007-09-04 Thread cuddlygunchi
Hi,

I am trying to create an AIR application that would listen to a port 
on the client's machine and print the messages. I know that this was 
not possible when running applications in the Flash sandbox but AIR 
applications are supposed to be free from such restrictions.

However, everytime I run the application, IOErrorEvent.IO_ERROR is 
raised and I receive the message:

[IOErrorEvent type=ioError bubbles=false cancelable=false 
eventPhase=2 text=Error #2031: Socket Error. URL: localhost 
errorID=2031]

I am using the sample code in the Socket documentation for Flex 
2.01/3.0 for this. I have tried replacing localhost by a multitude of 
hostnames but to no effect.

This is my first AIR app and any help would be greatly appreciated.

Application Code:

Consists of just 2 files, an actionscript class that extends Socket 
and adds listeners for all socket events and an mxml that 
instantiates it. Only the listener to IOErrorEvent.IO_ERROR gets 
called and nothing else happens.

Monitor.mxml

mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute creationComplete=init()

mx:Script
![CDATA[
import com.monitor.CustomSocket;

public function init():void
{
var socket:CustomSocket = new CustomSocket
(localhost, 9880);
}

]]
/mx:Script

/mx:WindowedApplication


com/monitor/CustomSocket.as
-
package com.monitor
{
import flash.errors.*;
import flash.events.*;
import flash.net.Socket;
import mx.controls.Alert;

[Bindable]
public class CustomSocket extends Socket 
{
private var response:String;

public function CustomSocket(host:String = null, 
port:uint = 0) {
super(host, port);
configureListeners();
}

private function configureListeners():void {
addEventListener(Event.CLOSE, closeHandler);
addEventListener(Event.CONNECT, connectHandler);
addEventListener(IOErrorEvent.IO_ERROR, 
ioErrorHandler);
addEventListener(SecurityErrorEvent.SECURITY_ERROR, 
securityErrorHandler);
addEventListener(ProgressEvent.SOCKET_DATA, 
socketDataHandler);
}

private function writeln(str:String):void {
str += \n;
try {
writeUTFBytes(str);
}
catch(e:IOError) {
trace(e);
}
}

private function sendRequest():void {
trace(sendRequest);
response = ;
writeln(GET /);
flush();
}

private function readResponse():void {
var str:String = readUTFBytes(bytesAvailable);
response += str;
}

private function closeHandler(event:Event):void {
trace(closeHandler:  + event);
trace(response.toString());
}

private function connectHandler(event:Event):void {
trace(connectHandler:  + event);
sendRequest();
}

private function ioErrorHandler(event:IOErrorEvent):void {
trace(ioErrorHandler:  + event);
Alert.show(event.toString(),ioErrorHandler);
}

private function securityErrorHandler
(event:SecurityErrorEvent):void {
trace(securityErrorHandler:  + event);
}

private function socketDataHandler
(event:ProgressEvent):void {
trace(socketDataHandler:  + event);
readResponse();
}
}
}
-

Many Thanks,
Aman




[flexcoders] Builder 3 and unable to resolve a class for resourcebundle: charts - Help needed asap!

2007-09-04 Thread Josh McDonald
Anybody have an answer to this?

I switched to flex 3 because it lets me use a windows key on mac, and Adobe
are taking weeks to swap me for a mac one.

I've found some pointers online but they're all about manual installation,
and directories that don't seem to be in my install. I *really, really*
don't want to go back to running Flex 2 under vmware, so any pointers would
be definitely appreciated.

Under a pretty tight deadline at the moment, so I'll keep trying to figure
it out, but if you guys could help me out I'll owe you a beer or ten.

Cheers,
-Josh

-- 
This is crazy! Why are we talking about going to bed with Wilma
Flintstone... She'll never leave Fred and we know it. 

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


Re: [flexcoders] Flex - AIR: local port listener

2007-09-04 Thread Claus Wahlers

 I am trying to create an AIR application that would listen to a port 
 on the client's machine and print the messages.

That's not possible without a (non-Flash) local socket server. AIR 
applications can only work as socket clients, but not as socket servers 
(they can connect to sockets but can't accept socket connections).

Cheers,
Claus.



[flexcoders] Soap fault with empty results

2007-09-04 Thread brey_magenta
I updated flex 2.0.1 with hotfix 3 and now we are experiencing the
soap function we call returns an empty collection.

Does anyone have the same problem or can anyone post a solution? I've
tried making the collection nillable but it had no effect.



[flexcoders] Re: Flex - AIR: local port listener

2007-09-04 Thread cuddlygunchi
--- In flexcoders@yahoogroups.com, Claus Wahlers [EMAIL PROTECTED] wrote:

 
  I am trying to create an AIR application that would listen to a 
port 
  on the client's machine and print the messages.
 
 That's not possible without a (non-Flash) local socket server. AIR 
 applications can only work as socket clients, but not as socket 
servers 
 (they can connect to sockets but can't accept socket connections).
 
 Cheers,
 Claus.

Many thanks for the reply Claus!

Sorry apparently the listener word in the heading is confusing.

I am just creating a socket client in flex/air that connects to a 
local port, reads the data and displays it on the screen. I have 
another application running locally that is writing messages to that 
port.

So basically, I am creating a local application that is reading from 
a port and dumping the received data on the screen, thats all.

I am definitely missing something as even just this:

-
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute creationComplete=init()

mx:Script
![CDATA[

[Bindable]
private var socket:Socket;
public function init():void
{
socket= new Socket;
socket.connect(localhost, 9930);
}

]]
/mx:Script

mx:Label text={socket.connected}/

/mx:WindowedApplication


is generating:

Error #2044: Unhandled IOErrorEvent:. text=Error #2031: Socket Error.
at Monitor/init()
at Monitor/___Monitor_WindowedApplication1_creationComplete()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
entFunction()
at flash.events::EventDispatcher/dispatchEvent()[C:\Documents 
and Settings\acrorel\Local Settings\Temp\aslibc-28157
\EventDispatcher.as:209]
at mx.core::UIComponent/dispatchEvent()
at mx.core::UIComponent/set initialized()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()

Many Thanks,
Aman






Re: [flexcoders] Re: Flex - AIR: local port listener

2007-09-04 Thread Claus Wahlers

 I am just creating a socket client in flex/air that connects to a 
 local port, reads the data and displays it on the screen. I have 
 another application running locally that is writing messages to that 
 port.

Ah, ok..

 socket= new Socket;
 socket.connect(localhost, 9930);

 Error #2044: Unhandled IOErrorEvent:. text=Error #2031: Socket Error.

Are you sure that there is a socket server running locally, and that 
this socket server accepts connections on port 9930?

Cheers,
Claus.


Re: [flexcoders] Builder 3 and unable to resolve a class for resourcebundle: charts - Help needed asap!

2007-09-04 Thread Maximilian Nyman
Google: unable to resolve a class for resourcebundle: charts -
http://www.google.com/search?q=unable+to+resolve+a+class+for+resourcebundle%3A+chartssourceid=navclient-ffie=UTF-8rlz=1B3GGGL_enAU231AU231

The very first result:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72catid=651threadid=1291918enterthread=y

/Max


On 9/4/07, Josh McDonald [EMAIL PROTECTED] wrote:

 Anybody have an answer to this?

 I switched to flex 3 because it lets me use a windows key on mac, and Adobe 
 are taking weeks to swap me for a mac one.

 I've found some pointers online but they're all about manual installation, 
 and directories that don't seem to be in my install. I *really, really* don't 
 want to go back to running Flex 2 under vmware, so any pointers would be 
 definitely appreciated.

 Under a pretty tight deadline at the moment, so I'll keep trying to figure it 
 out, but if you guys could help me out I'll owe you a beer or ten.

 Cheers,
 -Josh



[flexcoders] How to add a toolTip for each node of tree

2007-09-04 Thread Baljeet singh
Can anybody helpout ???Any hint will be appreciated...

I am creating a tree with XmlListCollection as data provider to tree.
I want show tooltip for each node of the tree based on name 
attribute of XML node in XML file. Below is my sample code:--

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
viewSourceURL=src/index.html
mx:Script
![CDATA[

import mx.collections.XMLListCollection;
import mx.controls.Alert;
  
[Bindable]
[Embed(source=SpecimenCollectionGroup.gif)] 
public var iconSymbol1:Class; 
[Bindable]
[Embed(source=Specimen.gif)] 
public var iconSymbol2:Class; 


[Bindable]
private var company:XML =

  node
node name=Finance code=200
node name=John H
   node name=A
  node name=B
 node name=C/
   /node 
/node
  /node  
node name=Sam K/
/node
node name=Operations code=400

node name=Bill C/
node name=Jill W
 node name=D
 node name=E
   node name=F/
 /node
  /node
   /node

 /node
node name=Engineering code=300

node name=Erin M/
node name=Ann B/
/node 

node name=Production /   
  /node;

[Bindable]

private var companyData:XMLListCollection = new 
XMLListCollection(company.node);

]]
/mx:Script

   mx:Tree id=tree top=72 left=50 
dataProvider={companyData} labelField=@name height=224 
width=179 folderClosedIcon=@Embed(source='Specimen.gif') 
folderOpenIcon=@Embed(source='Specimen.gif') 
defaultLeafIcon=@Embed(source='Specimen.gif') 
disclosureClosedIcon=@Embed(source='nolines_plus.gif') 
disclosureOpenIcon=@Embed(source='nolines_minus.gif') /

/mx:Application











[flexcoders] Combobox selectable text

2007-09-04 Thread Giles Roadnight
Hi All

The text on my comboboxes has inexplicably become selctable which is
quite annoying. When I move the mouse over the combobox it turns into
an I bar which again is annoying.

Is there any way of tunring this off? I tried adding
selectable=false but that gave a compiler error.

This might have started when I installed Hot Fix 2.

Any ideas?

Thanks

Giles



[flexcoders] Re: Flex 3 with Multiples Axis (Visual Error) BUG?

2007-09-04 Thread Rodrigo Pereira Fraga
Hi!!!

My source:


#
My Comp
#

private function showFrmEscala():void{
var popUpFrmEscalas:FrmEscalas = new FrmEscalas();

popUpFrmEscalas = FrmEscalas(PopUpManager.createPopUp
(parentApplication.vbPrincipal,FrmEscalas,true));

popUpFrmEscalas.dgEscalas.dataProvider = arrayAxisRenderers;
popUpFrmEscalas.chart = chart;

popUpFrmEscalas.addEventListener(EventFrmEscalas.ADD_ESCALA,
function(event:EventFrmEscalas):void {
registerClassAlias(mx.chart,LinearAxis);
lx = ObjectUtil.copy(event.escalaLinear) as LinearAxis;
addEscalaLinear(lx);
}
);


popUpFrmEscalas.addEventListener(EventFrmEscalas.REMOVE_ESCALA,
function(event:EventFrmEscalas):void {
registerClassAlias(mx.chart,LinearAxis);
lx = ObjectUtil.copy(event.escalaLinear) as LinearAxis;
removeEscalaLinear(lx);
}
);
}


private function addEscalaLinear(lx:LinearAxis):void{
axRenderer = new AxisRenderer();
axRenderer.axis = lx;
arrayAxisRenderers.push(axRenderer);
this.chart.verticalAxisRenderers = arrayAxisRenderers;
}

private function removeEscalaLinear(lx:LinearAxis):void {

for (var i:int=0; iarrayAxisRenderers.length; i++){
if (arrayAxisRenderers[i].axis.displayName == 
lx.displayName){
arrayAxisRenderers.splice(i,1);
this.chart.verticalAxisRenderers = arrayAxisRenderers;

}
}
}


#
FrmEscalas:
#

private function createEscala():void {

preparaLinearAxis();
dispatchEvent( new EventFrmEscalas( EventFrmEscalas.ADD_ESCALA, 
lx , true ) );


.

dispatchEvent( new EventFrmEscalas( 
EventFrmEscalas.REMOVE_ESCALA, dgEscalas.selectedItem.axis, true ) );

}


Thank's


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

 Please send ur sample code, 
  so that i will make an analysis on that !!
  
 Thank's  Regards,
 Gunasekaran Sambandhan
 
 
 
 - Original Message 
 From: Rodrigo Pereira Fraga [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, 30 August, 2007 3:59:15 PM
 Subject: [flexcoders] Re: Flex 3 with Multiples Axis (Visual Error) 
BUG?
 
 With Axis addeds, when I remove the Vertical Axis, 
 the Chart don't update, and when add again, Chart distorted. 
 
 --- In [EMAIL PROTECTED] ups.com, guna.samba gunase29@ . 
wrote:
 
  When the chart get distorted, while changing any action or from 
the 
  begining (loading..)
  
  --- In [EMAIL PROTECTED] ups.com, Rodrigo Pereira Fraga 
  rpffoz@ wrote:
  
   Please...
   
   I need Help! =/
   
   http://img480. imageshack. us/my.php? image=linecharte 
rrorgt7.jpg
   
   
Hi!

I am using Flex3, and I create VerticalAxis, and Series 
  Dynamically.

but when inserting and removing the VerticalAxis, the display 
 of 
chart goes being distorted.

I need a method to repaint!!!





--- In [EMAIL PROTECTED] ups.com, guna.samba gunase29@ 
 wrote:

 i think u need to show ur chart with dynamic axis and with 
 out 
 dynamic axis.
 If this is ur question,
 there may be some good way to solve the problem in flex 
 3.
 but as my knowledge, u can do this by setting visible 
option 
 in 
 vertical axis dynamically,
 but the problem is chart will not get reloaded when 
 using 
   the 
 above way, just the axis and supporing series get disabled.
 
 In order to repaint the chart, u have to dynamicaly 
generate 
  the 
 series. there is some way to create the series dynamically.
 
 
 
 --- In [EMAIL PROTECTED] ups.com, Rodrigo Pereira Fraga 
 rpffoz@ wrote:
 
  Hi!
  
  I put and remove Dynamic Axis, and when I remove the axis:
  
  http://img480. imageshack. us/my.php?
 image=linecharterro rgt7.jpg
  
  how I can update the chart?
  with chart.validateNow( );
  I dont have success.
  
  in the AdobeFlex exists repaint, or something thus?
 

   
  
 
 
 
 
 
 
   Once upon a time there was 1 GB storage in your inbox. To 
know the happy ending go to 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html





Re: [flexcoders] Change Color of Column in Chart When Clicked

2007-09-04 Thread Mikhail Shevchuk
Hi,

Do you need to specify one single column or the whole set of column series?
If first, then you should definetly look into Ely's
http://www.quietlyscheming.com/blog/charts/easy-custom-charts/
If second, then you can just apply the corresponding props of the column.

HTH,
Mikhail

2007/9/3, Daniel Kim [EMAIL PROTECTED]:

   How would I change the color of a column in a ColumnChart when the
 column is clicked?

  




-- 
A vivid and creative mind characterizes you.


[flexcoders] DataGrid ItemRenderes - How to use AS to select the state

2007-09-04 Thread oneproofdk
I'ce created a MXML ItemRenderer used in a dg - the cell contains a
Button that spawns a new window - works fine.

In my dataset I have an item called pagecount containing a integer.
What I'd like to do, is to have the buttons enabled=false when that
value == 0 !!

I just cant make it work - can someone please help or provide
links/examples for this ??

mx:DataGrid x=0 y=0 id=dgProjects width=100% height=100%
backgroundColor=#FF rowHeight=22
mx:columns
   
mx:DataGridColumn width=30 textAlign=center headerText=PDF
itemRenderer=dg_pdficon/
   
mx:DataGridColumn headerText=Orderid dataField=orderid width=80/
   
mx:DataGridColumn headerText=Jobnavn dataField=jobnavn width=250/
   
mx:DataGridColumn headerText=Kunde dataField=kundenavn width=200/
   
mx:DataGridColumn headerText=/
/mx:columns
/mx:DataGrid

Itemrenderer : dg_pdficon
?xml version=1.0 encoding=utf-8?
mx:HBox clipContent=false xmlns:mx=http://www.adobe.com/2006/mxml;
xmlns:flexlib=http://code.google.com/p/flexlib/;

  flexlib:CanvasButton enabled=true buttonMode=true
useHandCursor=true verticalCenter=1 horizontalCenter=1
width=25 height=20 click=parentDocument.showAlert(data.orderid)
   mx:HBox id=hb height=100% width=100% verticalGap=0
verticalAlign=middle horizontalAlign=center
 mx:Image id=btn source=@Embed(source='assets/pdf_16.png')
mouseOver=parentDocument.showThumb(data.orderid, data.pagecount);
mouseOut=parentDocument.removeThumb();/
   /mx:HBox
  /flexlib:CanvasButton
/mx:HBox


Thanks for any help!

Mark



Re: [flexcoders] need Flash Player Standalone 9r28 Win/Mac NON-debug, cant find on adobegoogle

2007-09-04 Thread Adam Dorritie
On 9/3/07, tctommm [EMAIL PROTECTED] wrote:
 can someone please provide me the Flash Player Standalone 9r28 Win/Mac
  NON-debug version.

Is this what you're looking for?

http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14266sliceId=1


[flexcoders] Call function from itemrenderer?

2007-09-04 Thread candysmate
I tried to call a public function from an itemRenderer situated in a
dataGrid with enter=myfunction();. But Flex complains that this is
an undefined method. Which it's not, as I use it successfully elsewhere.

?



Re: [flexcoders] How to add a toolTip for each node of tree

2007-09-04 Thread Adam Dorritie
On 9/4/07, Baljeet singh [EMAIL PROTECTED] wrote:
  I am creating a tree with XmlListCollection as data provider to tree.
  I want show tooltip for each node of the tree based on name
  attribute of XML node in XML file. Below is my sample code:--

Have you tried using the dataTipFunction or dataTipField properties of
the Tree class?

Adam


[flexcoders] State Refresh

2007-09-04 Thread smccran
Hi all,

I have a page which contains a tilelist. The Tilelist is populated from 
a list.

I have a button in the tilelist which triggers a function which removes 
an element from a list.

My problem is that without 'refreshing' the screen it doesn't look like 
the list item has been removed. Iv'e tried recalling the state 
(currentState='wishList') but it doesn't work. I need it to re-draw the 
state to show the item has gone.

Is there a refresh function? How can I reload the currentState?

Thanks
Shaun



Re: [flexcoders] Call function from itemrenderer?

2007-09-04 Thread feiy
u can do it this:
enter=myfunction

2007/9/4, candysmate [EMAIL PROTECTED]:

   I tried to call a public function from an itemRenderer situated in a
 dataGrid with enter=myfunction();. But Flex complains that this is
 an undefined method. Which it's not, as I use it successfully elsewhere.

 ?

  




-- 
闲云孤鹤 - 清冷香中抱膝吟


[flexcoders] Re: Call function from itemrenderer?

2007-09-04 Thread candysmate
--- In flexcoders@yahoogroups.com, feiy [EMAIL PROTECTED] wrote:

 u can do it this:
 enter=myfunction
 

Many thanks.



[flexcoders] Strange black line on drop-enabled datagrids when using preventDefault?

2007-09-04 Thread darenbell
I'm getting a strange black line that appears above any item rendered in
a datagrid when using preventDefault in my drophandler.  As I add
subsequent item, the line moves to appear just above the newly entered
item.
img
src=http://myskitch.com/darenbell/https__piteamweb01__inventoriumsy\
stema_test_inventorium.html-20070904-072126.jpg height=220
width=433/



[flexcoders] Using Cairngorm with amazon SQS (polling based remote access)

2007-09-04 Thread hank williams
I am wondering if anyone has an familiarity with using cairngorm with a back
end where polling is required to get the result. Amazon SQS is a queue based
messaging server where you send messages that get enqueued and ultimately
handled by presumably a server farm. When the results are in, the answer
becomes available. The only way to find the answer is to poll to see if the
answer is in fact available.

This sounds like a wonderfully scalable system, but I am wondering if anyone
has either done anything to support sqs from cairngorm or if anyone has any
thoughts on the best way to put polling based result handling into
cairngorm.

It seems to me this is a much more scalable solution than FDS or standard
remoting for large scale web apps, and that a good generalized cairngorm
solution would be very helpful.

Hank


Re: [flexcoders] Re: Flex 2, Spring 1.2 and Maven 2

2007-09-04 Thread Sebastien ARBOGAST
Hi Christian,

Sorry to bother you with that again, but I'm returning to my Flex
integration project after some inactivity and I still get the same problem.
I can't find any 1.1 release of maven-flex2-plugin. Did you figure out
another solution?

Sebastien

2007/6/20, Christian Gruber [EMAIL PROTECTED]:

   Ok. This one is tricky. the maven-flex2-plugin depends on the maven-
 dependency-plugin:2.0-alpha-1. I had forgotten this, but you can't
 override it because the change from alpha-1 to alpha-4 actually
 changed the API, and I depend on a class whose constructor is
 different between the two.

 I'm going to release an emergency 1.1 plugin because this is actually
 quite problematic. I have tried to find a way to decouple your
 projects. Mine don't seem to work this way - I think it's your
 global dependency management getting in the way, but I'll have this
 out later today and it should fix your glitch. I'd like to know why
 yours is forcing two projects to use the same version, though. Hmm.

 Christian.


 On Jun 20, 2007, at 11:05 AM, Christian Gruber wrote:

  Ugh. It looks like some existing plugin (don't know which one yet)
  depends on the earlier version of maven-dependency-plugin explcitly,
  and ends up accidentally overriding the 2.0-alpha-4 with 2.0-
  alpha-1. I just have to figure out which one so I can explicitly
  exclude the transitive call to maven-dependency-plugin, and allow our
  preferred version through.
 
  Christian
 
  On Jun 20, 2007, at 9:28 AM, Sebastien Arbogast wrote:
 
  I sent you my project. Thanks a lot.
 
  2007/6/20, Christian Gruber [EMAIL PROTECTED]cgruber%40israfil.net
 :
 
  Hey Sabastian,
 
  Can you post your pom,xml files please? It's kind of hard to
  analyse this without seeing your project metadata. Feel free to
  clean it of anything confidential first, but the structure and
  relationships should be there, including any plugin config, etc.
  Also, describe the file system (if you're not going to zip the
  pom.xml files with the structure intact) and explain what steps you
  are going through in what directories.
 
  I have a gut feeling there's a conceptual mismatch going on, but
  I can't know for sure until I see what you're doing.
 
  Christian.
 
  On Jun 20, 2007, at 7:20 AM, Sebastien Arbogast wrote:
 
  OK, FYI the prepare-package lifecycle phase won't exist until the
  2.1release of Maven. In the meantime, you're better off using
 
  process-classes
  Now I'm having another weird issue because mvn install works great
  on my web
  module but when I try to build the root project, I get an error on
  copy-dependencies
 
 
  2007/6/20, Sebastien Arbogast
  [EMAIL PROTECTED] sebastien.arbogast%40gmail.com
 sebastien.arbogast%40gmail.com
  :
 
  I've found an example of .flexLibProperties and I still don't
  understand
  what is the purpose of this file but I've created an empty one and
  moved on
  to build my project.
 
  Now when I try to build the whole thing, when it build my web
  project,
  which depends on my swf module, I get the following error:
 
  [INFO]
  --
  ---
  [INFO] Building Opalys JEE Web
  [INFO] task-segment: [install]
  [INFO]
  --
  ---
  [INFO] [andromda-multi-source:add-source {execution: default}]
  [INFO] [resources:resources]
  [INFO] Using default encoding to copy filtered resources.
  [WARNING] While downloading itext:itext: 0.99
  This artifact has been relocated to com.lowagie:itext:0.99.
 
 
  [INFO] [antrun:run {execution: default}]
  [INFO] Executing tasks
  [copy] Warning: /Users/sarbogast/dev/opalys-jee/web/src/main/
  jsp not
  found.
  [INFO] Executed tasks
  [INFO] [compiler:compile]
  [INFO] Nothing to compile - all classes are up to date
  [INFO] [resources:testResources]
  [INFO] Using default encoding to copy filtered resources.
  [INFO] [compiler:testCompile]
  [INFO] No sources to compile
  [INFO] [surefire:test]
  [INFO] No tests to run.
  [INFO] [war:war]
  [INFO] Exploding webapp...
  [INFO] Assembling webapp opalys-jee-web in
  /Users/sarbogast/dev/opalys-jee/web/target/opalys- jee-web-4.0.1-
  SNAPSHOT
  [INFO] Copy webapp webResources to
  /Users/sarbogast/dev/opalys-jee/web/target/opalys-jee-web-4.0.1-
  SNAPSHOT
  [INFO]
  --
  ---
  [ERROR] FATAL ERROR
  [INFO]
  --
  ---
  [INFO] basedir /Users/sarbogast/dev/opalys-jee/web/target/flex-
  resources
  does not exist
  [INFO]
  --
  ---
  [INFO] Trace
  java.lang.IllegalStateException: basedir
  /Users/sarbogast/dev/opalys-jee/web/target/flex-resources does not
  exist
  at org.codehaus.plexus.util.DirectoryScanner.scan(
  DirectoryScanner.java:542)
  at org.apache.maven.plugin.war.AbstractWarMojo.getWarFiles(
  AbstractWarMojo.java:824)
  at 

[flexcoders] ResourceBundle with ActionScript code - Problem in Flex 2 Flex 3

2007-09-04 Thread mayurrami
Hi everybody...

I am having few problems for ResourceBundle.

The code is as below

--
 mxml code : RB_3.mxml
--
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute 
xmlns:local=*
pageTitle= Resoruce Bundle 
!--mx:Label text=@Resource(key='txName',bundle='German') / --
!-- The above commented line works very well, but when I try to
achieve the same through Actionscript it gives an Error --
local:RB_B_AS width=200 height=200 borderStyle=solid
paddingLeft=10 paddingTop=10 /
/mx:Application
--
  Actionscript code : RB_ActionScript.as
--
package
{
import mx.resources.ResourceBundle;
import mx.containers.VBox;
import mx.controls.Label;
import mx.controls.Alert;

[ResourcBundle(German)]
public class RB_B_AS extends VBox
{
private static var rb:ResourceBundle = new ResourceBundle();

public var l:Label;

function RB_B_AS()
{
this.width = 300;
this.height = 300;
this.setStyle(borderStyle,solid);
this.setStyle(paddingLeft,10);
this.setStyle(paddingTop,10);

l = new Label();
l.width = 100;
l.height = 30;

/* Error come on Line : 34 
[
Error: Key txName was not found in resource 
bundle null
at 
mx.resources::ResourceBundle/::_getObject()
at 
mx.resources::ResourceBundle/getString()
at RB_B_AS$iinit()
] */
l.text = rb.getString(txName);

this.addChild(l);

var child2:Label = new Label();
child2.name = Lable2;
child2.text = Two;
this.addChild(child2);
}
}
}
--
  Res.Bundle : German.properties
--
   txName=What is your Name ?
--


If you can provide me any link for ResourceBundle example purely in
AS-3, that will be helpful, also.

Thanking you in advance.

 - Mayur



[flexcoders] passing reference?

2007-09-04 Thread freska
Hi list,
Please review my code. I have no better words to explain my problem.


In the main file, I have this variable.

[Bindable]
public var arrayStep:ArrayCollection = new ArrayCollection();


In my component file, I define a DataGrid component using three
ComboBox as item editor. I need to pass that variable to one of them.
Here is the code. I mark the part with a comment.

?xml version=1.0 encoding=utf-8?
mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; width=480
height=336
mx:Script
![CDATA[
import mx.collections.ArrayCollection;

// array untuk menyimpan data result (tabel)
[Bindable]
public var arrayStepResChild:ArrayCollection = new 
ArrayCollection();

/* This is not correct. */
[Bindable]
public var myArrayStep:ArrayCollection =
parentDocument.arrayStep;

]]
/mx:Script

mx:Component id=goToEditor
mx:ComboBox dataProvider={outerDocument.myArrayStep}
labelField=colLabel/
/mx:Component

mx:Component id=timeEditor
mx:ComboBox dataProvider={arrayTime} labelField=time
mx:Script
![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var arrayTime:ArrayCollection = 
new
ArrayCollection([{time:immediately}, {time:1 hour}, {time:1
day}, {time:1 week}]);
]]
/mx:Script
/mx:ComboBox
/mx:Component

mx:Component id=roleEditor
mx:ComboBox dataProvider={arrayRole} labelField=role
mx:Script
![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var arrayRole:ArrayCollection = 
new
ArrayCollection([{role:Employee}, {role:Manager}, {role:HR
Admin}, {role:Finance}]);
]]
/mx:Script
/mx:ComboBox
/mx:Component

mx:Canvas width=100% height=100% minHeight=256
mx:Button id=btnAddStepResult x=20 y=10 label=New
click=addStepResult()/
mx:Button id=btnSaveStepResult x=78 y=10 label=Save/
mx:Button id=btnRemoveStepResult x=140 y=10 
label=Delete
click=removeStepResult()/

mx:DataGrid id=dataGridResult x=20 y=40 width=428
height=110 sortableColumns=false 
dataProvider={arrayStepResChild} editable=true
draggableColumns=false
mx:columns
mx:DataGridColumn headerText=Result 
dataField=colResult/
mx:DataGridColumn headerText=Go to 
dataField=colGoTo
itemEditor={goToEditor}/
mx:DataGridColumn headerText=Time 
dataField=colTime
itemEditor={timeEditor}/
mx:DataGridColumn headerText=Assigned to 
dataField=colRole
itemEditor={roleEditor}/
/mx:columns
/mx:DataGrid
/mx:Canvas

/mx:HBox


Flex said, Error #1009: Cannot access a property or method of a null
object reference. I've tried to fill the arrayStep with initial
value, but it also throws the same error message. Please give me a
clue on this.

TIA,
Freska



[flexcoders] Re: How to add a toolTip for each node of tree

2007-09-04 Thread Baljeet singh
Hi Adam,
   Thanks for suggestion. I have already tried with dataTipField 
property as mx:Tree dataTipField =@name/. but this didn't show any 
toolTip for tree nodes.

Thanks  Regards,
Baljeet Singh

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

 On 9/4/07, Baljeet singh [EMAIL PROTECTED] wrote:
   I am creating a tree with XmlListCollection as data provider to 
tree.
   I want show tooltip for each node of the tree based on name
   attribute of XML node in XML file. Below is my sample code:--
 
 Have you tried using the dataTipFunction or dataTipField properties 
of
 the Tree class?
 
 Adam





Re: [flexcoders] how to embed buttons into datagrid

2007-09-04 Thread Sherif Abdou
create an itemRenderer for that column and do wahtever u want

- Original Message 
From: aasif_onnet [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, September 3, 2007 3:45:30 AM
Subject: [flexcoders] how to embed buttons into datagrid









  



i am trying to embed buttons or perhaps just button into each row 
of 

the datagrid.i want the button to be generated in the last column of 

the datagrid.i am not able to find a solution.Please help me in this 

both dynamically and statically.. .






  







!--

#ygrp-mkp{
border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;}
#ygrp-mkp hr{
border:1px solid #d8d8d8;}
#ygrp-mkp #hd{
color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;}
#ygrp-mkp #ads{
margin-bottom:10px;}
#ygrp-mkp .ad{
padding:0 0;}
#ygrp-mkp .ad a{
color:#ff;text-decoration:none;}
--



!--

#ygrp-sponsor #ygrp-lc{
font-family:Arial;}
#ygrp-sponsor #ygrp-lc #hd{
margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;}
#ygrp-sponsor #ygrp-lc .ad{
margin-bottom:10px;padding:0 0;}
--



!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, 
sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{
background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
#ygrp-vital #vithd{
font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
#ygrp-vital ul{
padding:0;margin:2px 0;}
#ygrp-vital ul li{
list-style-type:none;clear:both;border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
#ygrp-vital ul li .cat{
font-weight:bold;}
#ygrp-vital a{
text-decoration:none;}

#ygrp-vital a:hover{
text-decoration:underline;}

#ygrp-sponsor #hd{
color:#999;font-size:77%;}
#ygrp-sponsor #ov{
padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;margin:0;}
#ygrp-sponsor #ov li{
list-style-type:square;padding:6px 0;font-size:77%;}
#ygrp-sponsor #ov li a{
text-decoration:none;font-size:130%;}
#ygrp-sponsor #nc{
background-color:#eee;margin-bottom:20px;padding:0 8px;}
#ygrp-sponsor .ad{
padding:8px 0;}
#ygrp-sponsor .ad #hd1{
font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
#ygrp-sponsor .ad a{
text-decoration:none;}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;}
#ygrp-sponsor .ad p{
margin:0;}
o{font-size:0;}
.MsoNormal{
margin:0 0 0 0;}
#ygrp-text tt{
font-size:120%;}
blockquote{margin:0 0 0 4px;}
.replbq{margin:4;}
--








   

Be a better Heartthrob. Get better relationship answers from someone who knows. 
Yahoo! Answers - Check it out. 
http://answers.yahoo.com/dir/?link=listsid=396545433

[flexcoders] Re: Strange black line on drop-enabled datagrids when using preventDefault?

2007-09-04 Thread darenbell
Strange behaviour in post -  Final comments were omitted...

Better formed link to example image:  
http://myskitch.com/darenbell/https__piteamweb01__inventoriumsystema_test_inve
ntorium.html-20070904-072126.jpg

has anyone had any issues with this or know what might be the cause?

Thanks!


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

 I'm getting a strange black line that appears above any item rendered in
 a datagrid when using preventDefault in my drophandler.  As I add
 subsequent item, the line moves to appear just above the newly entered
 item.
 img
 src=http://myskitch.com/darenbell/https__piteamweb01__inventoriumsy\
 stema_test_inventorium.html-20070904-072126.jpg height=220
 width=433/






Re: [flexcoders] Re: How to add a toolTip for each node of tree

2007-09-04 Thread Adam Dorritie
On 9/4/07, Baljeet singh [EMAIL PROTECTED] wrote:
 Thanks for suggestion. I have already tried with dataTipField
  property as mx:Tree dataTipField =@name/. but this didn't show any
  toolTip for tree nodes.

Baljeet,

I used the following arrangement to display tooltips:

mx:Tree ...dataTipFunction=getItemTip.../

private function getItemTip(item:Object):String {
  var node:XML = XML(item);
  return [EMAIL PROTECTED];
}

Perhaps this will be of some help.

Adam


[flexcoders] Re: How to add a toolTip for each node of tree

2007-09-04 Thread Baljeet singh
Hi Adam,
   Thanks very much. whatever you suggested worked fine. Thanks a 
lot.

Thanks  Regards,
Baljeet Singh
  
 



[flexcoders] Re: need Flash Player Standalone 9r28 Win/Mac NON-debug, cant find on adobegoog

2007-09-04 Thread tctommm
THX but i already found that website. It would be what i am looking
for if it had the standalone NON-debug version of 9r28 but it only has
the browser plugins and the debug standalone version.

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

 On 9/3/07, tctommm [EMAIL PROTECTED] wrote:
  can someone please provide me the Flash Player Standalone 9r28 Win/Mac
   NON-debug version.
 
 Is this what you're looking for?
 

http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14266sliceId=1





[flexcoders] Customize part, but not all, of a drag and drop operation?

2007-09-04 Thread David Ham
I've been doing work with drag and drop lately. I know how to set it
up for default controls (just set dragEnabled and dropEnabled on the
appropriate controls), and I know how to create a completely custom
DragManager.doDrag, with custom dragSource and dragproxy objects.

Is there a way to just customize _part_ of this? Like, can I have the
default dragSource, but have my own drag proxy? Or vice versa? How do
I override or customize just one part of the operation, without having
to customize the whole thing?

Many thanks for any help you can offer,

OK
DAH



RE: [flexcoders] newbie - adapting flexstore

2007-09-04 Thread Tracy Spratt
Typically, a data-driven control, like DataGrid is bound to a
dataProvider.  When the dataProvider changes, the control automatically
updates.  

 

In mxml, this means the DG dataProvider is bound to the instance level
ArrayCollection variable _acMyData: mx:DataGrid ...
dataProvider={_acMyData}

 

When _acMyData changes, the data grid will automatically update.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of g07m5064
Sent: Monday, September 03, 2007 4:36 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] newbie - adapting flexstore

 

Hi,
I am new to flex. I would like to adapt the flexstore example such
that the filtered results are displayed in a grid (this is definitely
inspired by home locator). Anyway, after the filtering, I don't quite
comprehend how the datagrid will be updated. Any ideas?

 



RE: [flexcoders] DataGrid ItemRenderes - How to use AS to select the state

2007-09-04 Thread Tracy Spratt
Have you tried something like:

enabled={(data.pagecount != 0)? true:false}

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of oneproofdk
Sent: Tuesday, September 04, 2007 7:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid ItemRenderes - How to use AS to select
the state

 

I'ce created a MXML ItemRenderer used in a dg - the cell contains a
Button that spawns a new window - works fine.

In my dataset I have an item called pagecount containing a integer.
What I'd like to do, is to have the buttons enabled=false when that
value == 0 !!

I just cant make it work - can someone please help or provide
links/examples for this ??

mx:DataGrid x=0 y=0 id=dgProjects width=100% height=100%
backgroundColor=#FF rowHeight=22
mx:columns

mx:DataGridColumn width=30 textAlign=center headerText=PDF
itemRenderer=dg_pdficon/

mx:DataGridColumn headerText=Orderid dataField=orderid width=80/

mx:DataGridColumn headerText=Jobnavn dataField=jobnavn
width=250/

mx:DataGridColumn headerText=Kunde dataField=kundenavn
width=200/

mx:DataGridColumn headerText=/
/mx:columns
/mx:DataGrid

Itemrenderer : dg_pdficon
?xml version=1.0 encoding=utf-8?
mx:HBox clipContent=false xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
xmlns:flexlib=http://code.google.com/p/flexlib/
http://code.google.com/p/flexlib/ 

flexlib:CanvasButton enabled=true buttonMode=true
useHandCursor=true verticalCenter=1 horizontalCenter=1
width=25 height=20 click=parentDocument.showAlert(data.orderid)
mx:HBox id=hb height=100% width=100% verticalGap=0
verticalAlign=middle horizontalAlign=center
mx:Image id=btn source=@Embed(source='assets/pdf_16.png')
mouseOver=parentDocument.showThumb(data.orderid, data.pagecount);
mouseOut=parentDocument.removeThumb();/
/mx:HBox
/flexlib:CanvasButton
/mx:HBox

Thanks for any help!

Mark

 



[flexcoders] weird warnings...

2007-09-04 Thread grimmwerks
I'm getting stuff like this:


The type selector 'ComboBox' was not processed, because the type was  
not used in the application.Nestle  Admin.mxml  Unknown 1188872497063   
979

I've got one for a TitleWindow too - what am I missing here?


Re: [flexcoders] weird warnings...

2007-09-04 Thread David Ham
Sounds like you might have selectors for these controls in your CSS  
file, but you're not using them in your app, or maybe their creation  
policy is such that the compiler doesn't know about them when it  
compiles your CSS. A CSS issue, at any rate.

OK
DAH


Re: [flexcoders] State Refresh

2007-09-04 Thread Ingo Reschke

dirty solution:
currentState = '';
currentState= 'wishList';

better: look at the method invalidateList.



smccran schrieb:


Hi all,

I have a page which contains a tilelist. The Tilelist is populated from
a list.

I have a button in the tilelist which triggers a function which removes
an element from a list.

My problem is that without 'refreshing' the screen it doesn't look like
the list item has been removed. Iv'e tried recalling the state
(currentState='wishList') but it doesn't work. I need it to re-draw the
state to show the item has gone.

Is there a refresh function? How can I reload the currentState?

Thanks
Shaun



__ NOD32 2502 (20070904) Information __

Diese E-Mail wurde vom NOD32 antivirus system geprüft
http://www.nod32.com


--

Mit freundlichem Gruß
Ingo Reschke




Ingo Reschke
RIA Developer

Betreibergesellschaft RegioOnline mbH
Leisewitz Str.4
30175 Hannover

T. +49 (0) 511 - 856207 17
F. +49 (0) 511 - 856207 11

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
www.regioonline.de http://www.regioonline.de

begin:vcard
fn:Ingo Reschke
n:Reschke;Ingo
org:Betreibergesellschaft Regioonline mbH;Programmierung, Projektmanagement
adr:;;Leisewitz Str. 4;Hannover;Niedersachsen;30165;Deutschland
email;internet:[EMAIL PROTECTED]
title:RIA Developer
tel;work:+49 (0) 511 856207 17
x-mozilla-html:TRUE
url:http://www.regioonline.de
version:2.1
end:vcard



[flexcoders] Interface as result of remoting service

2007-09-04 Thread Leen Toelen
Hi,

I have a fluorine service running, and a Flex 3 client talking to it.
The service defines a method that returns an Object (MyContainer) that
has a property Items, which is an Array of interfaces (let's say
IMyObject). On the server there are multiple  classes implementing
this interface, and the array will contain objects of a different type
but they all implement IMyObject.
If I leave the result of my call dynamic (event.result as Object),
all properties show up, but their type is ObjectProxy. I see that the
array Items is filled in with multiple objects.

The moment I say event.result as MyContainer, the Items property is
set to null.

Does Flex have problems with interfaces being returned from a server?
Has anyone seen this as well, or found a workaround?

Regards,
Leen


[flexcoders] textbox setfocus method

2007-09-04 Thread Appan Parige
I am using login page as a state in my main application and I set it as
start state.And  i set username textbox's setfocus in enterstate event of
login state. But during execution, username textbox is highlighted but mouse
cursor is not there. I have to explicitly click the textbox for entering
data.
During logout button,  i  simply callled the login state and setfocus method
for textbox which works fine(selection and mouse cursor both r there)
Please clarify on this issue.

Thanks in advance,
Appan Parige.


Re: [flexcoders] useCapture(event)

2007-09-04 Thread Sherif Abdou
Thanks, i looked but i still can't get it to work. is it only used for mouse 
and focus events
or say can i dispatch an event in the main application and have a sub 
componenet of that application capture that event

Main Application-Dispatch capturePhaseTest;
-- Component
--- SubComponent--Listen for the capturePhaseTest that was 
dispatched by the application

- Original Message 
From: Alex Harui [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, September 3, 2007 10:37:28 PM
Subject: RE: [flexcoders] useCapture(event)









  







Look in our source code for stage.addEventListe ner, or in 
the FocusManager.




From: [EMAIL PROTECTED] ups.com 
[mailto:flexcoders@ yahoogroups. com] On Behalf Of Sherif 
Abdou
Sent: Sunday, September 02, 2007 4:44 PM
To: 
[EMAIL PROTECTED] ups.com
Subject: [flexcoders] 
useCapture(event)









I am pretty puzzled to how the useCapture works in the addEventListner, i 
tried reading and i think i understand what it does but i never found an 
example 
of it in action or what it could be used for. so can anyone enlighten 
me





Fussy? Opinionated? Impossible to please? Perfect. Join 
Yahoo!'s user panel and lay it on us. 





  







!--

#ygrp-mkp{
border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;}
#ygrp-mkp hr{
border:1px solid #d8d8d8;}
#ygrp-mkp #hd{
color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;}
#ygrp-mkp #ads{
margin-bottom:10px;}
#ygrp-mkp .ad{
padding:0 0;}
#ygrp-mkp .ad a{
color:#ff;text-decoration:none;}
--



!--

#ygrp-sponsor #ygrp-lc{
font-family:Arial;}
#ygrp-sponsor #ygrp-lc #hd{
margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;}
#ygrp-sponsor #ygrp-lc .ad{
margin-bottom:10px;padding:0 0;}
--



!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, 
sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{
background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
#ygrp-vital #vithd{
font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
#ygrp-vital ul{
padding:0;margin:2px 0;}
#ygrp-vital ul li{
list-style-type:none;clear:both;border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
#ygrp-vital ul li .cat{
font-weight:bold;}
#ygrp-vital a{
text-decoration:none;}

#ygrp-vital a:hover{
text-decoration:underline;}

#ygrp-sponsor #hd{
color:#999;font-size:77%;}
#ygrp-sponsor #ov{
padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;margin:0;}
#ygrp-sponsor #ov li{
list-style-type:square;padding:6px 0;font-size:77%;}
#ygrp-sponsor #ov li a{
text-decoration:none;font-size:130%;}
#ygrp-sponsor #nc{
background-color:#eee;margin-bottom:20px;padding:0 8px;}
#ygrp-sponsor .ad{
padding:8px 0;}
#ygrp-sponsor .ad #hd1{
font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
#ygrp-sponsor .ad a{
text-decoration:none;}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;}
#ygrp-sponsor .ad p{
margin:0;}
o{font-size:0;}
.MsoNormal{
margin:0 0 0 0;}
#ygrp-text tt{
font-size:120%;}
blockquote{margin:0 0 0 4px;}
.replbq{margin:4;}
--








   

Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos  more. 
http://mobile.yahoo.com/go?refer=1GNXIC

Re: [flexcoders] newbie - adapting flexstore

2007-09-04 Thread Sherif Abdou
i actually redid the flex store and i wrote alot of comments and explantaion on 
how it works for my practice but i have no idea if i would be allowed to 
release it. does anyone know who i can contact to get permission? 

- Original Message 
From: Tracy Spratt [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, September 4, 2007 10:16:18 AM
Subject: RE: [flexcoders] newbie - adapting flexstore









  












Typically, a data-driven control, like DataGrid
is “bound” to a dataProvider.  When the dataProvider changes, the
control automatically updates.  
 

  
 

In mxml, this means the DG dataProvider is
bound to the instance level ArrayCollection variable _acMyData: mx:DataGrid
… dataProvider=”{_acMyData}”
 

  
 

When _acMyData changes, the data grid will
automatically update.
 

  
 

Tracy
 

  
 










From:
[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of 
g07m5064

Sent: Monday, September 03, 2007
4:36 PM

To: [EMAIL PROTECTED] ups.com

Subject: [flexcoders] newbie -
adapting flexstore
 




  
 







Hi,

I am new to flex. I would like to adapt the flexstore example such

that the filtered results are displayed in a grid (this is definitely

inspired by home locator). Anyway, after the filtering, I don't quite

comprehend how the datagrid will be updated. Any ideas?
 
















  







!--

#ygrp-mkp{
border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;}
#ygrp-mkp hr{
border:1px solid #d8d8d8;}
#ygrp-mkp #hd{
color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;}
#ygrp-mkp #ads{
margin-bottom:10px;}
#ygrp-mkp .ad{
padding:0 0;}
#ygrp-mkp .ad a{
color:#ff;text-decoration:none;}
--



!--

#ygrp-sponsor #ygrp-lc{
font-family:Arial;}
#ygrp-sponsor #ygrp-lc #hd{
margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;}
#ygrp-sponsor #ygrp-lc .ad{
margin-bottom:10px;padding:0 0;}
--



!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, 
sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{
background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
#ygrp-vital #vithd{
font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
#ygrp-vital ul{
padding:0;margin:2px 0;}
#ygrp-vital ul li{
list-style-type:none;clear:both;border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
#ygrp-vital ul li .cat{
font-weight:bold;}
#ygrp-vital a{
text-decoration:none;}

#ygrp-vital a:hover{
text-decoration:underline;}

#ygrp-sponsor #hd{
color:#999;font-size:77%;}
#ygrp-sponsor #ov{
padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;margin:0;}
#ygrp-sponsor #ov li{
list-style-type:square;padding:6px 0;font-size:77%;}
#ygrp-sponsor #ov li a{
text-decoration:none;font-size:130%;}
#ygrp-sponsor #nc{
background-color:#eee;margin-bottom:20px;padding:0 8px;}
#ygrp-sponsor .ad{
padding:8px 0;}
#ygrp-sponsor .ad #hd1{
font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
#ygrp-sponsor .ad a{
text-decoration:none;}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;}
#ygrp-sponsor .ad p{
margin:0;}
o{font-size:0;}
.MsoNormal{
margin:0 0 0 0;}
#ygrp-text tt{
font-size:120%;}
blockquote{margin:0 0 0 4px;}
.replbq{margin:4;}
--








   

Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mailp=summer+activities+for+kidscs=bz
 

RE: [flexcoders] useCapture(event)

2007-09-04 Thread Alex Harui
yes, but why do it in capture phase, why not just listen to the app?
 
Show us how you're doing it.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sherif Abdou
Sent: Tuesday, September 04, 2007 8:20 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] useCapture(event)



Thanks, i looked but i still can't get it to work. is it only used for
mouse and focus events
or say can i dispatch an event in the main application and have a sub
componenet of that application capture that event

Main Application-Dispatch capturePhaseTest;
   -- Component
  --- SubComponent--Listen for the capturePhaseTest that was
dispatched by the application


- Original Message 
From: Alex Harui [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, September 3, 2007 10:37:28 PM
Subject: RE: [flexcoders] useCapture(event)



Look in our source code for stage.addEventListe ner, or in the
FocusManager.



From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com]
On Behalf Of Sherif Abdou
Sent: Sunday, September 02, 2007 4:44 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] useCapture(event)



I am pretty puzzled to how the useCapture works in the addEventListner,
i tried reading and i think i understand what it does but i never found
an example of it in action or what it could be used for. so can anyone
enlighten me




Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user
panel
http://us.rd.yahoo.com/evt=48516/*http://surveylink.yahoo.com/gmrs/yaho
o_panel_invite.asp?a=7%20  and lay it on us. 





Choose the right car based on your needs. Check out Yahoo! Autos new Car
Finder tool.
http://us.rd.yahoo.com/evt=48518/*http://autos.yahoo.com/carfinder/;_yl
c=X3oDMTE3NWsyMDd2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDY2FyLWZpbmRlcg
--  

 


RE: [flexcoders] Customize part, but not all, of a drag and drop operation?

2007-09-04 Thread Alex Harui
You can customize the dragImage displayed by the DragProxy.
 
You can customize what is in the DragSource



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Ham
Sent: Tuesday, September 04, 2007 7:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Customize part, but not all, of a drag and drop
operation?



I've been doing work with drag and drop lately. I know how to set it
up for default controls (just set dragEnabled and dropEnabled on the
appropriate controls), and I know how to create a completely custom
DragManager.doDrag, with custom dragSource and dragproxy objects.

Is there a way to just customize _part_ of this? Like, can I have the
default dragSource, but have my own drag proxy? Or vice versa? How do
I override or customize just one part of the operation, without having
to customize the whole thing?

Many thanks for any help you can offer,

OK
DAH



 


RE: [flexcoders] Re: Strange black line on drop-enabled datagrids when using preventDefault?

2007-09-04 Thread Alex Harui
You sure you're calling preventDefault correctly?  See if
showDropFeedback is being called in the drop target.  It shouldn't if
you called preventDefault().



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of darenbell
Sent: Tuesday, September 04, 2007 5:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Strange black line on drop-enabled datagrids
when using preventDefault?



Strange behaviour in post - Final comments were omitted...

Better formed link to example image: 
http://myskitch.com/darenbell/https__piteamweb01__inventoriumsystema
_test_inve
http://myskitch.com/darenbell/https__piteamweb01__inventoriumsystem
a_test_inve 
ntorium.html-20070904-072126.jpg

has anyone had any issues with this or know what might be the cause?

Thanks!

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

 I'm getting a strange black line that appears above any item rendered
in
 a datagrid when using preventDefault in my drophandler.  As I add
 subsequent item, the line moves to appear just above the newly entered
 item.
 img

src=http://myskitch.com/darenbell/https__piteamweb01__inventoriumsy
\
http://myskitch.com/darenbell/https__piteamweb01__inventoriumsy 
stema_test_inventorium.html-20070904-072126.jpg height=220
 width=433/




 


RE: [flexcoders] textbox setfocus method

2007-09-04 Thread Tracy Spratt
The problem is that the Flash Player itself does not have the focus in
the browser.

 

Solutions involve using javascript in the html wrapper to set the focus
to the Player in onLoad().

 

Search the archives or google for more details.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Appan Parige
Sent: Tuesday, September 04, 2007 3:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] textbox setfocus method

 

I am using login page as a state in my main application and I set it as
start state.And  i set username textbox's setfocus in enterstate event
of login state. But during execution, username textbox is highlighted
but mouse cursor is not there. I have to explicitly click the textbox
for entering data. 
During logout button,  i  simply callled the login state and setfocus
method for textbox which works fine(selection and mouse cursor both r
there)
Please clarify on this issue.

Thanks in advance,
Appan Parige. 

 



RE: [flexcoders] textbox setfocus method

2007-09-04 Thread Alex Harui
This is a known issue with Browsers.   They do not like to give focus to
plug ins
 
You can solve this in IE.  Someone will jump in with an example.  I
don't have it handy.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Appan Parige
Sent: Tuesday, September 04, 2007 12:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] textbox setfocus method



I am using login page as a state in my main application and I set it as
start state.And  i set username textbox's setfocus in enterstate event
of login state. But during execution, username textbox is highlighted
but mouse cursor is not there. I have to explicitly click the textbox
for entering data. 
During logout button,  i  simply callled the login state and setfocus
method for textbox which works fine(selection and mouse cursor both r
there)
Please clarify on this issue.

Thanks in advance,
Appan Parige. 


 


RE: [flexcoders] DoubleClick together with Mouse_Down and Mouse_Up

2007-09-04 Thread Alex Harui
Maybe with flags.  Not sure what problem you actually ran into.
 
In a list control, the up finishes selection.  double-click does
something else entirely, so there's no conflict.  It depends on your
scenario.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Hastings
Sent: Monday, September 03, 2007 11:30 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] DoubleClick together with Mouse_Down and
Mouse_Up



Alex Harui wrote:
 You might get two MOUSE_UPs, but not continuous. Are you sure you're 
 not redispatching the event?

i had the same sort of problem, listening for pretty much all mouse
events  we 
found it impossible to capture *just* the double click, the app would
react to 
the mouse down/up instead of the double click. had to resort to using 
control-key+mouse click.

how should we have done this?


 


RE: [flexcoders] Re: DoubleClick together with Mouse_Down and Mouse_Up

2007-09-04 Thread Alex Harui
I would think that would cause you not to see doubleclick.
 
Maybe I don't understand the problem, but I would have a flag like
inDrag in the mouseUp event so I know if there's a drag in progress.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flashcrow2000
Sent: Tuesday, September 04, 2007 12:15 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: DoubleClick together with Mouse_Down and
Mouse_Up



Another thing (sorry for the double post). On the mouse_down event,
I'm creating a copy of the thumbnail's picture under the mouse
pointer, so I guess the mouse up isn't caught at all by the thumbnail,
but rather by the thumbnail's copy.

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

 Alex Harui wrote:
  You might get two MOUSE_UPs, but not continuous. Are you sure you're

  not redispatching the event?
 
 i had the same sort of problem, listening for pretty much all mouse
events  we 
 found it impossible to capture *just* the double click, the app
would react to 
 the mouse down/up instead of the double click. had to resort to
using 
 control-key+mouse click.
 
 how should we have done this?




 


[flexcoders] playing a wmv file

2007-09-04 Thread Ramsey, Robert L
Am I reading the manual right that I can't play a wmv file in flex app?
I want to reference an mms://server/file.wmv url and have it play within
the flash app.

Alternatively, is there a way to embed an html frame in a flex app?

Thanks,

Bob


Re: [flexcoders] Customize part, but not all, of a drag and drop operation?

2007-09-04 Thread David Ham
 You can customize the dragImage displayed by the DragProxy.

 You can customize what is in the DragSource

Yes, I know, but how can I do one and not the other? How would I  
customize _just_ the dragProxy, for example, but have everything else 
(dragsource, x, y, etc) be the default? Or conversely, how would I  
just customize the dragSource, but have everything else (proxy, x, y,  
etc) be the default?

OK
DAH


RE: [flexcoders] Customize part, but not all, of a drag and drop operation?

2007-09-04 Thread Alex Harui
In a List drag/drop scenario you would get the DRAG_START event and call
doDrag yourself



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Ham
Sent: Tuesday, September 04, 2007 9:19 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Customize part, but not all, of a drag and
drop operation?



 You can customize the dragImage displayed by the DragProxy.

 You can customize what is in the DragSource

Yes, I know, but how can I do one and not the other? How would I 
customize _just_ the dragProxy, for example, but have everything else 
(dragsource, x, y, etc) be the default? Or conversely, how would I 
just customize the dragSource, but have everything else (proxy, x, y, 
etc) be the default?

OK
DAH


 


[flexcoders] HTTPService.method = PUT sends a GET

2007-09-04 Thread ronnlixx
Is this some kind of bug? 
When trying to send a put request with HTTPService, it sends out a get
request instead.


var service:HTTPService = new HTTPService();
service.url = my/service/2.xml;
service.useProxy = false;
service.resultFormat = text;
service.method = PUT;
service.send(params);



Re: [flexcoders] Working with dates from MS SQL database

2007-09-04 Thread Sherif Abdou
u need to reconvert it back to that date, since it is being returned in 
milliseconds

- Original Message 
From: candysmate [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, September 3, 2007 1:26:29 PM
Subject: [flexcoders] Working with dates from MS SQL database









  



I'm returning a date from a MS SQL database.

The date held in the database (datetime field) is: 26/03/2007 00:00:00



However my function (below) returns: 117486720



private function dateTest():void

{

 connectServer( );

 var headerRetrieveResul t:ArrayCollectio n = new

ArrayCollection( mySQLServer. executeQuery( SELECT  week_starting,

CONVERT(char( 10), week_starting, 103) AS formatteddatefield FROM

flexing_advice_ header WHERE  (supplier_account = '1234') AND

(advice_no = '188557'))) ;



 var headerObject: Object = headerRetrieveResul t.getItemAt( 0);



 dateField.text = headerObject. week_starting;

 disconnectServer( );

}



I've tried a select query with the formatteddatefield  stuff, but get

the same result.  I was hoping it would return the date as a string

link  '26/03/2007 00:00:00'.



Any ideas guys?






  







!--

#ygrp-mkp{
border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;}
#ygrp-mkp hr{
border:1px solid #d8d8d8;}
#ygrp-mkp #hd{
color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;}
#ygrp-mkp #ads{
margin-bottom:10px;}
#ygrp-mkp .ad{
padding:0 0;}
#ygrp-mkp .ad a{
color:#ff;text-decoration:none;}
--



!--

#ygrp-sponsor #ygrp-lc{
font-family:Arial;}
#ygrp-sponsor #ygrp-lc #hd{
margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;}
#ygrp-sponsor #ygrp-lc .ad{
margin-bottom:10px;padding:0 0;}
--



!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, 
sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{
background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
#ygrp-vital #vithd{
font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
#ygrp-vital ul{
padding:0;margin:2px 0;}
#ygrp-vital ul li{
list-style-type:none;clear:both;border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
#ygrp-vital ul li .cat{
font-weight:bold;}
#ygrp-vital a{
text-decoration:none;}

#ygrp-vital a:hover{
text-decoration:underline;}

#ygrp-sponsor #hd{
color:#999;font-size:77%;}
#ygrp-sponsor #ov{
padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;margin:0;}
#ygrp-sponsor #ov li{
list-style-type:square;padding:6px 0;font-size:77%;}
#ygrp-sponsor #ov li a{
text-decoration:none;font-size:130%;}
#ygrp-sponsor #nc{
background-color:#eee;margin-bottom:20px;padding:0 8px;}
#ygrp-sponsor .ad{
padding:8px 0;}
#ygrp-sponsor .ad #hd1{
font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
#ygrp-sponsor .ad a{
text-decoration:none;}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;}
#ygrp-sponsor .ad p{
margin:0;}
o{font-size:0;}
.MsoNormal{
margin:0 0 0 0;}
#ygrp-text tt{
font-size:120%;}
blockquote{margin:0 0 0 4px;}
.replbq{margin:4;}
--








   

Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for 
today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  

RE: [flexcoders] need Flash Player Standalone 9r28 Win/Mac NON-debug, cant find on adobegoogle

2007-09-04 Thread Matt Chotin
Hi,

 

Have you tried the bundle from here:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14266?

 

Also can you please make sure to file a bug on the crash?

 

Matt

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tctommm
Sent: Monday, September 03, 2007 6:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] need Flash Player Standalone 9r28 Win/Mac
NON-debug, cant find on adobegoogle

 

can someone please provide me the Flash Player Standalone 9r28 Win/Mac
NON-debug version.

already tried the adobe customer support Since newer versions than
9r29 of the Flash Player make our Flex DVD product crash when executed
as a projector (created directly though the standalone player) when
accessing a shared object, we would like to know a download source for
Flash Player standalone 9r28 Win/Mac NON-debug. I found the debug
version as well as newer versions and browser plugins on your website,
but I can't find the standalone release version. Could you please
provide this version to us as a link or attached to an email, since we
need it for a beta release on Wednesday this week.

i would really appreciate if someone could send me the Win
saflashplayer.exe (right click and properties to confirm its 9.0.28.0
and debug=0) and the according mac standalone player.

Alternativly you could tell me if i do something wrong or it is a bug
in the flash player, what i belive. The projector crashes when our
flex application is trying to access the local shared object. It only
happens when running it as a projector with a flash version newer than
9.0.28.0 (it was working in 9.0.28.0 debug as a projector but i dont
have the non debug version, which is my misery). Again the error does
not occur when running in a browser or standalone player (without
creating a projector).

sorry for the long discription, just wanted to be clear with the
problem :-)

thanks Thomas

 



[flexcoders] Selecting multiple gridItems in a Grid?

2007-09-04 Thread darenbell
I have a very simple Grid that I've created, and my users would like the 
capability to drag the 
mouse over the Grid and copy the contents (much like you can do with an HTML 
table).  Is 
there any way to do this?

As of right now, I can only select a single gridItem at a time.

If it makes a difference, the items are parents to Text objects, so the whole 
Grid/table is 
simply text.

Thanks!



RE: [flexcoders] HTTPService.method = PUT sends a GET

2007-09-04 Thread Tracy Spratt
From the archives:

Hi Brian,

The Flash player only currently supports GET and POST requests (and
converts any POST request with a zero length body or any unrecognized
request method to a GET). PUT and DELETE are not supported.

For HTTPService you can get around this limitation if your HTTPService
has useProxy=true. In this case a request to build and send a proxied
PUT/DELETE/OPTIONS/etc. request is sent to FDS and the server builds and
sends the actual HTTP request and returns the response to the player.
The proxy also handles fault responses in the 500 range and returns them
to the player in a form that HTTPService can process usefully (the
player doesn't handle responses in the 500 range). We have Pete Farland
to thank for all that :)

I'll log a doc bug to clarify that the extended set of methods are only
supported when using the proxy.

If you're not using the proxy, HTTPService uses a flash.net.URLLoader to
make the request directly so you're limited to what the player supports.

HTH,
Seth

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ronnlixx
Sent: Tuesday, September 04, 2007 12:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HTTPService.method = PUT sends a GET

 

Is this some kind of bug? 
When trying to send a put request with HTTPService, it sends out a get
request instead.

var service:HTTPService = new HTTPService();
service.url = my/service/2.xml;
service.useProxy = false;
service.resultFormat = text;
service.method = PUT;
service.send(params);

 



[flexcoders] How do I addEventListener to a repeated component.

2007-09-04 Thread Mark

My code is below.  I'm trying to put an eventListener on the CheckBoxes
(repSL) that are being created with the Repeater.  I get this error:

TypeError: Error #1006: addEventListener is not a function

this works fine with everything but for the repeated checkboxes.  Is
there a differnt way to assign this?

Thanks



?xml version=1.0?
!-- repeater\myComponents\CustButton.mxml --
mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  initialize=createListener()
paddingLeft=5 paddingTop=5 paddingRight=5 paddingBottom=5

   mx:Script
 ![CDATA[
   import mx.events.ListEvent;
   import mx.core.Application;
   import mx.events.ListEvent;
   import flash.events.Event;

   [Bindable]
   public var dpSL:Array=[All,AABS,CBS,TAS,TAX];
   [Bindable]
   public var dpDI:Array=[Desktop Impact,Network Impact,Local
Help Desk Impact,Other];
   [Bindable]
   public var dpDO:Array=[All,Global IT,Americas,Central
Europe,Continental Western Europe,NEMIA,Far
East,Oceania,Japan];
   //
   [Bindable]
   public var dpApp:Array=[{label:Select One,data:All},
  {label:App Infrastructure,data:Application
Infrastructure},
  {label:Client Conn,data:Client Connectivity},
  {label:Doc Mgmt,data:Document Management},
  {label:Finance,data:Finance},
  {label:People,data:People},
  {label:QRM,data:QRM},
  {label:SL App Services,data:Service Line Application
Services}
  ];
   [Bindable]
   public var dpInfra:Array=[{label:Select One,data:All},
  {label:Content Mgmt,data:Content Management},
  {label:Data Networking,data:Data Networking},
  {label:Desktop,data:Desktop},
  {label:Identity  Access Mgmt,data:Identity and Access
Management},
  {label:Info Security,data:Information Security},
  {label:Msg and Collab,data:Messaging and
Collaboration},
  {label:Mobility and Comm,data:Mobility and
Communications}];
   //
   //
   private function createListener():void {
repSL.addEventListener(MouseEvent.CLICK, myClickHandler, false,
0);
infraRB.addEventListener(MouseEvent.CLICK, myClickHandler,false,
0);
appCB.addEventListener(ListEvent.CHANGE,setFilter,false,0);
infraCB.addEventListener(ListEvent.CHANGE,setFilter,false,0);
   }
   private function myClickHandler(e:MouseEvent):void {
trace(e.target.label);
var myTarget:String = e.target.label;
if (myTarget == Application) {
 appCB.enabled = true;
 infraCB.enabled = false;
 infraCB.selectedIndex = 0;
} else {
 infraCB.enabled = true;
 appCB.enabled = false;
 appCB.selectedIndex = 0;
}
   }

...

mx:Tile direction=horizontal borderStyle=none width=100%
horizontalGap=5 verticalGap=5
   paddingTop=5 paddingBottom=5
   mx:Repeater id=rSL dataProvider={myACSL}
 mx:CheckBox id=repSL label={rSL.currentItem} selected=true
 
change=Application.application.getRegions(event);Application.applicatio\
n.refresh(); /
   /mx:Repeater
/mx:Tile



RE: [flexcoders] need Flash Player Standalone 9r28 Win/Mac NON-debug, cant find on adobegoogle

2007-09-04 Thread Matt Chotin
Oops, standalone player might not be in there.  We're looking into
making that available.  Stay tuned.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt Chotin
Sent: Tuesday, September 04, 2007 10:09 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] need Flash Player Standalone 9r28 Win/Mac
NON-debug, cant find on adobegoogle

 

Hi,

 

Have you tried the bundle from here:
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14266?

 

Also can you please make sure to file a bug on the crash?

 

Matt

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tctommm
Sent: Monday, September 03, 2007 6:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] need Flash Player Standalone 9r28 Win/Mac
NON-debug, cant find on adobegoogle

 

can someone please provide me the Flash Player Standalone 9r28 Win/Mac
NON-debug version.

already tried the adobe customer support Since newer versions than
9r29 of the Flash Player make our Flex DVD product crash when executed
as a projector (created directly though the standalone player) when
accessing a shared object, we would like to know a download source for
Flash Player standalone 9r28 Win/Mac NON-debug. I found the debug
version as well as newer versions and browser plugins on your website,
but I can't find the standalone release version. Could you please
provide this version to us as a link or attached to an email, since we
need it for a beta release on Wednesday this week.

i would really appreciate if someone could send me the Win
saflashplayer.exe (right click and properties to confirm its 9.0.28.0
and debug=0) and the according mac standalone player.

Alternativly you could tell me if i do something wrong or it is a bug
in the flash player, what i belive. The projector crashes when our
flex application is trying to access the local shared object. It only
happens when running it as a projector with a flash version newer than
9.0.28.0 (it was working in 9.0.28.0 debug as a projector but i dont
have the non debug version, which is my misery). Again the error does
not occur when running in a browser or standalone player (without
creating a projector).

sorry for the long discription, just wanted to be clear with the
problem :-)

thanks Thomas

 



[flexcoders] Re: HTTPService.method = PUT sends a GET

2007-09-04 Thread ronnlixx
thanks, i found that shortly after posting



Re: [flexcoders] useCapture(event)

2007-09-04 Thread Sherif Abdou
cause wouldn't that be tightly coupling it if i do
this.Application.application.addEventListener(..). i thought this was bad 
but i am still new to flex

i figured if i but a web service in the main application then when it is 
loaded, the subcomponent could capture that the service is ready and use that 
data from it

---Main Application(webService here)
--Component
-SubComponent(need info from the web service to populate its own),
---Component
-subcomponent
---sub subcomponent(this also needs to get the webservice 
stuff);

I hope i made sense

- Original Message 
From: Alex Harui [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, September 4, 2007 10:59:41 AM
Subject: RE: [flexcoders] useCapture(event)









  







yes, but why do it in capture phase, why not just listen to 
the app?

 

Show us how you're doing it.




From: [EMAIL PROTECTED] ups.com 
[mailto:flexcoders@ yahoogroups. com] On Behalf Of Sherif 
Abdou
Sent: Tuesday, September 04, 2007 8:20 AM
To: 
[EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] 
useCapture(event)









Thanks, 
i looked but i still can't get it to work. is it only used for mouse and focus 
events
or say can i dispatch an event in the main application and have a sub 
componenet of that application capture that event

Main 
Application- Dispatch capturePhaseTest ;

   -- Component
  --- 
SubComponent- -Listen for the capturePhaseTest that was dispatched by the 
application


- 
Original Message 
From: Alex Harui [EMAIL PROTECTED] com
To: 
[EMAIL PROTECTED] ups.com
Sent: Monday, September 3, 2007 10:37:28 
PM
Subject: RE: [flexcoders] useCapture(event)





Look in our source code for stage.addEventListe ner, or in 
the FocusManager.




From: [EMAIL PROTECTED] ups.com 
[mailto:flexcoders@ yahoogroups. com] On Behalf Of Sherif 
Abdou
Sent: Sunday, September 02, 2007 4:44 PM
To: 
[EMAIL PROTECTED] ups.com
Subject: [flexcoders] 
useCapture(event)









I am pretty puzzled to how the useCapture works in the addEventListner, i 
tried reading and i think i understand what it does but i never found an 
example 
of it in action or what it could be used for. so can anyone enlighten 
me





Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and 
lay it on us. 










Choose the right car based on your needs. Check out Yahoo! 
Autos new Car Finder tool. 





  







!--

#ygrp-mkp{
border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;}
#ygrp-mkp hr{
border:1px solid #d8d8d8;}
#ygrp-mkp #hd{
color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;}
#ygrp-mkp #ads{
margin-bottom:10px;}
#ygrp-mkp .ad{
padding:0 0;}
#ygrp-mkp .ad a{
color:#ff;text-decoration:none;}
--



!--

#ygrp-sponsor #ygrp-lc{
font-family:Arial;}
#ygrp-sponsor #ygrp-lc #hd{
margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;}
#ygrp-sponsor #ygrp-lc .ad{
margin-bottom:10px;padding:0 0;}
--



!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, 
sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{
background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
#ygrp-vital #vithd{
font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
#ygrp-vital ul{
padding:0;margin:2px 0;}
#ygrp-vital ul li{
list-style-type:none;clear:both;border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
#ygrp-vital ul li .cat{
font-weight:bold;}
#ygrp-vital a{
text-decoration:none;}

#ygrp-vital a:hover{
text-decoration:underline;}

#ygrp-sponsor #hd{
color:#999;font-size:77%;}
#ygrp-sponsor #ov{
padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;margin:0;}
#ygrp-sponsor #ov li{
list-style-type:square;padding:6px 0;font-size:77%;}
#ygrp-sponsor #ov li a{
text-decoration:none;font-size:130%;}
#ygrp-sponsor #nc{
background-color:#eee;margin-bottom:20px;padding:0 8px;}
#ygrp-sponsor .ad{
padding:8px 0;}
#ygrp-sponsor .ad #hd1{

[flexcoders] Looking for a very good Flex-coder

2007-09-04 Thread christophneymeyr
Hello,

I´d like to get in touch with good Flex- and PHP5-coders for quite a
big project. How should I establish these contacts?



[flexcoders] Re: need Flash Player Standalone 9r28 Win/Mac NON-debug, cant find on adobegoog

2007-09-04 Thread tctommm
Hi Matt,

THX but i already found that website. It would be what i am looking
for if it had the standalone NON-debug version of 9r28. But it only
has the browser plugins and the debug standalone version.

I already filed a bug on that. Besides that i just tried the new beta
version 9.0.60.120 and the bug seems to be gone. But again i can only
find the standalone debug version in the flex 3 SDK but not the
non-debug standalone version. Also i cant publish something based on a
beta version flash player.

Do you know when there is going to be an official release of the
9.0.60 version.

thanks, regards Thomas



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

 Hi,
 
  
 
 Have you tried the bundle from here:
 http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14266?
 
  
 
 Also can you please make sure to file a bug on the crash?
 
  
 
 Matt
 
  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of tctommm
 Sent: Monday, September 03, 2007 6:43 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] need Flash Player Standalone 9r28 Win/Mac
 NON-debug, cant find on adobegoogle
 
  
 
 can someone please provide me the Flash Player Standalone 9r28 Win/Mac
 NON-debug version.
 
 already tried the adobe customer support Since newer versions than
 9r29 of the Flash Player make our Flex DVD product crash when executed
 as a projector (created directly though the standalone player) when
 accessing a shared object, we would like to know a download source for
 Flash Player standalone 9r28 Win/Mac NON-debug. I found the debug
 version as well as newer versions and browser plugins on your website,
 but I can't find the standalone release version. Could you please
 provide this version to us as a link or attached to an email, since we
 need it for a beta release on Wednesday this week.
 
 i would really appreciate if someone could send me the Win
 saflashplayer.exe (right click and properties to confirm its 9.0.28.0
 and debug=0) and the according mac standalone player.
 
 Alternativly you could tell me if i do something wrong or it is a bug
 in the flash player, what i belive. The projector crashes when our
 flex application is trying to access the local shared object. It only
 happens when running it as a projector with a flash version newer than
 9.0.28.0 (it was working in 9.0.28.0 debug as a projector but i dont
 have the non debug version, which is my misery). Again the error does
 not occur when running in a browser or standalone player (without
 creating a projector).
 
 sorry for the long discription, just wanted to be clear with the
 problem :-)
 
 thanks Thomas





[flexcoders] Re: Can't see app in html

2007-09-04 Thread Mike Morearty
Are you running the 64-bit version of XP?

I don't know a lot about 64-bit Windows, so please take this with a
grain of salt, but my understanding is that the Flash player does not
currently work in the 64-bit version of Internet Explorer.  On 64-bit
Vista, the 64-bit IE is in the traditional IE location, C:\Program
Files\Internet Explorer\iexplore.exe, and the 32-bit version of IE is
in C:\Program Files (x86)\Internet Explorer\iexplore.exe.  Is that
also true on 64-bit XP?

On 64-bit Vista, and perhaps also on 64-bit XP, if you go to the
Eclipse/FlexBuilder preferences, General  Web Browser, and check the
Internet Explorer box, then the version of IE that is listed there
is the 64-bit version; you can verify this by double-clicking on the
Internet Explorer line and looking at the path that is displayed.
But if you check the Default system web browser box, then it seems
that for some reason Windows runs the 32-bit version (perhaps because
the launching process, Eclipse, is a 32-bit process, or something like
that -- I'm not sure.)

So, there are two ways to work around this problem:

(1) In the preferences, check the Default system web browser box. Or,
(2) Edit the path for Internet Explorer (or add a new browser called
IE 32-bit) to point to C:\Program Files (x86)\Internet
Explorer\iexplore.exe.

Let me know if this works!

- Mike Morearty
  Adobe Flex Builder team


--- In flexcoders@yahoogroups.com, Guillermo Villasana Cardoza
[EMAIL PROTECTED] wrote:

 I am having problems viewing my flex app in IE7. I am running
Windows XP 
 and I have installed the latest version of  the flash player (also I 
 have all my windows updates) but still I get the following:
 
 Alternate HTML content should be placed here. This content requires the 
 Adobe Flash Player. Get Flash
 
 Has anyone found a solution to this... is this a settings problem or 
 something else?





RE: [flexcoders] Re: need Flash Player Standalone 9r28 Win/Mac NON-debug, cant find on adobegoog

2007-09-04 Thread Matt Chotin
Ok, r60 won't release for a little while so that won't work for you.
We're going to work to get the standalone players included in that
bundle but I will help you get r28 in the meantime offlist.

 

Matt

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tctommm
Sent: Tuesday, September 04, 2007 10:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: need Flash Player Standalone 9r28 Win/Mac
NON-debug, cant find on adobegoog

 

Hi Matt,

THX but i already found that website. It would be what i am looking
for if it had the standalone NON-debug version of 9r28. But it only
has the browser plugins and the debug standalone version.

I already filed a bug on that. Besides that i just tried the new beta
version 9.0.60.120 and the bug seems to be gone. But again i can only
find the standalone debug version in the flex 3 SDK but not the
non-debug standalone version. Also i cant publish something based on a
beta version flash player.

Do you know when there is going to be an official release of the
9.0.60 version.

thanks, regards Thomas

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

 Hi,
 
 
 
 Have you tried the bundle from here:
 http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14266?
 
 
 
 Also can you please make sure to file a bug on the crash?
 
 
 
 Matt
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of tctommm
 Sent: Monday, September 03, 2007 6:43 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] need Flash Player Standalone 9r28 Win/Mac
 NON-debug, cant find on adobegoogle
 
 
 
 can someone please provide me the Flash Player Standalone 9r28 Win/Mac
 NON-debug version.
 
 already tried the adobe customer support Since newer versions than
 9r29 of the Flash Player make our Flex DVD product crash when executed
 as a projector (created directly though the standalone player) when
 accessing a shared object, we would like to know a download source for
 Flash Player standalone 9r28 Win/Mac NON-debug. I found the debug
 version as well as newer versions and browser plugins on your website,
 but I can't find the standalone release version. Could you please
 provide this version to us as a link or attached to an email, since we
 need it for a beta release on Wednesday this week.
 
 i would really appreciate if someone could send me the Win
 saflashplayer.exe (right click and properties to confirm its 9.0.28.0
 and debug=0) and the according mac standalone player.
 
 Alternativly you could tell me if i do something wrong or it is a bug
 in the flash player, what i belive. The projector crashes when our
 flex application is trying to access the local shared object. It only
 happens when running it as a projector with a flash version newer than
 9.0.28.0 (it was working in 9.0.28.0 debug as a projector but i dont
 have the non debug version, which is my misery). Again the error does
 not occur when running in a browser or standalone player (without
 creating a projector).
 
 sorry for the long discription, just wanted to be clear with the
 problem :-)
 
 thanks Thomas


 



[flexcoders] TextInput control and long text

2007-09-04 Thread Michael Ritchie
If you have text in a TextInput control that is longer than the
control you get a undesirable behavior.  When take the the cursor to
the end of the TextInput control and leave it, only the last part of
the file name is displayed when the control loses focus. 

I tried a few different ways to force the text to show the beginning
of the text again, but nothing seems to stick.  Any ideas?

- Michael



Re: [flexcoders] newbie - adapting flexstore

2007-09-04 Thread Mathe Maema
Thanks guys. I tried binding my data to the dataprovider. That didn't work. I 
suppose I have some logical problems with my code. 
  This is essentially what I want to happen. I click on the checkbox for 
triband and use a slider to adjust the price and relevant data is displayed.  I 
have retained much of the flexstore code but perhaps fail to understand how the 
data is retained after filtering. I will review my code again.
   
  Thanks

Sherif Abdou [EMAIL PROTECTED] wrote:
  i actually redid the flex store and i wrote alot of comments and 
explantaion on how it works for my practice but i have no idea if i would be 
allowed to release it. does anyone know who i can contact to get permission? 

  - Original Message 
From: Tracy Spratt [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, September 4, 2007 10:16:18 AM
Subject: RE: [flexcoders] newbie - adapting flexstore


Typically, a data-driven control, like DataGrid is “bound” to a 
dataProvider.  When the dataProvider changes, the control automatically 
updates.  
   
  In mxml, this means the DG dataProvider is bound to the instance level 
ArrayCollection variable _acMyData: mx:DataGrid … dataProvider=”{_acMyData}”
   
  When _acMyData changes, the data grid will automatically update.
   
  Tracy
   
  
-
  
  From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of g07m5064
Sent: Monday, September 03, 2007 4:36 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] newbie - adapting flexstore

   
Hi,
I am new to flex. I would like to adapt the flexstore example such
that the filtered results are displayed in a grid (this is definitely
inspired by home locator). Anyway, after the filtering, I don't quite
comprehend how the datagrid will be updated. Any ideas?

  









  
-
  Yahoo! oneSearch: Finally, mobile search that gives answers, not web links.   

 

   
-
 Yahoo! Answers - Get better answers from someone who knows. Tryit now.

[flexcoders] Error #1014: Class flash.filesystem::FileStream could not be found.

2007-09-04 Thread jp andino
I get the flowing error when i load my SWF, the AIR version works fine, 
i got a line to import flash.filesystem.*;

VerifyError: Error #1014: Class flash.filesystem::FileStream could not 
be found.

at [verify]

at global$init()

at _Wizardv2WatcherSetupUtil$/init()

at mx.managers::SystemManager/private::docFrameHandler()

at [execute-queued]




RE: [flexcoders] TextInput control and long text

2007-09-04 Thread Alex Harui
Did you try:
 
focusOut=myTI.horizontalScrollPosition = 0



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Ritchie
Sent: Tuesday, September 04, 2007 11:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TextInput control and long text



If you have text in a TextInput control that is longer than the
control you get a undesirable behavior. When take the the cursor to
the end of the TextInput control and leave it, only the last part of
the file name is displayed when the control loses focus. 

I tried a few different ways to force the text to show the beginning
of the text again, but nothing seems to stick. Any ideas?

- Michael



 


RE: [flexcoders] Selecting multiple gridItems in a Grid?

2007-09-04 Thread Alex Harui
The Grid container does not support selection.
 
The DataGrid does, but not in the HTMLTable sense.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of darenbell
Sent: Tuesday, September 04, 2007 10:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Selecting multiple gridItems in a Grid?



I have a very simple Grid that I've created, and my users would like the
capability to drag the 
mouse over the Grid and copy the contents (much like you can do with an
HTML table). Is 
there any way to do this?

As of right now, I can only select a single gridItem at a time.

If it makes a difference, the items are parents to Text objects, so the
whole Grid/table is 
simply text.

Thanks!



 


[flexcoders] Issues running RTMPS through firewall

2007-09-04 Thread Ash Weaver
Hi all,

Has anyone out there tried enabling RTMPS connections from a Flex
client to LCDS running behind a firewall?

Now if we test the app internally (i.e. inside the firewall),
everything works just fine.  It seems like things break down once we
start going through a firewall.

Here are the symptoms:
A few RTMPS connections will go through and the app works fine for a
short while.  After that point, no RTMPS connections will work at all.

Here's some info on the application:
Client:
- Flex 2
- has several assembler and topic message subscriptions
- makes a number of RPC service calls to the backend

Server:
- jboss 4.05, embedded tomcat 55, LCDS 2.5

We've tried several different firewalls and even opened up all traffic
through the firewall.  The issue seems to have something to do with
the fact that the firewall is forwarding traffic intended for an
external IP address to an internal, different IP address.

Has anyone run into this situation before?  Does anyone know if, as an
added layer of authentication, LCDS keeps track of the requested IP
for RTMPS connections and chokes while comparing the external vs.
internal IP?

Thanks!
Ash 



[flexcoders] datagrid dataProvider xml result -- date formatting?

2007-09-04 Thread grimmwerks
Ok, I'm sure it's going to be something like a labelfunction - but  
I've got an httpservice's result as a dataprovider for a datagrid:


video
bucket/
content-typeapplication/octet-stream/content-type
created-at type=datetime2007-09-04T00:23:00-04:00/created-at
description/
filename/
id type=integer1/id
original-filenameasfi acoustic.aif/original-filename
raw-filename/
titleasfi acoustic.aif/title
user-id type=integer/
/video


Would it be a labelfunction that would convert this to a nicer format?


[flexcoders] Nested item renderers and scrolling

2007-09-04 Thread Richard Rodseth
I'm having a bit of scrolling trouble with a rather complex layout
that involves nested item renderers. Imagine a list (of books, say),
where each item is itself a list (of page thumbnails). I only want
scrolling of the entire book list. I've implemented this with a book
item renderer that contains a page list (which in turn has a thumbnail
item renderer). The thumbnail list has its rowCount set to the number
of pages (done in a binding function). I'm also attempting to
virtualize the thumbnail list by providing a custom IList that returns
proxies.

I believe I have scrollbar policies and variable row heights set
appropriately at all levels.
The behavior I'm seeing is that the top level list does not get a
scroll bar when it should. If I replace the list-based book item
renderer with a simple label, I do get the scroll bar if there are
enough books.

I realize it may be difficult to help me without code, but if anyone
has tried something similar, or knows of any known measuring bugs in
this type of scenario, please let me know. Thanks.


[flexcoders] How to add click to a Image when using AS / AddChild

2007-09-04 Thread oneproofdk
Hi

I'm adding images to a vbox using as and addchild.
Only thing is, that I cant figure out how to make the image accept a
click - see below:

private function updatePageList(data:ArrayCollection):void {
for (var i:int=0; idata.length; i++) {
var newVB:VBox = new VBox();
newVB.id = i.toString();
var newImage:Image = new Image;
newImage.source = data[i].fn;
newImage.buttonMode = true;
newImage.useHandCursor = true;
//newImage.click = doStuff(data.fn); -- 
Doesnt work
newVB.addChild( newImage );
pagelist.addChild( newVB );
var newLbl:Label = new Label();
newLbl.text = data[i].pageno;
pagelist.addChild( newLbl );
}
}

Anyone that can help - please step up :-)

Thanks,
Mark



[flexcoders] Scrollbar Skins

2007-09-04 Thread gary_mangum
I have skinned a scrollbar and it looks pretty good, but it is not
perfect yet.

My up and down arrows have transparent corners.  For some reason the
track can be seen in the transparent areas of my up and down arrows.
 I have tried setting all the styles I can find, but have been unable
to shorten the track so that it is not visible underneath the buttons.

Does anyone know what I am doing wrong?  I wish I could post a picture
to get along with this post.

Thanks,

Gary



Re: [flexcoders] How to add click to a Image when using AS / AddChild

2007-09-04 Thread Michael Schmalle
Hi,

try
newImage.data = //set here and you can access it in the click handler
newImage.addEventListener(MouseEvent.CLICK, doStuff);

Peace, Mike

On 9/4/07, oneproofdk [EMAIL PROTECTED] wrote:

   Hi

 I'm adding images to a vbox using as and addchild.
 Only thing is, that I cant figure out how to make the image accept a
 click - see below:

 private function updatePageList(data:ArrayCollection):void {
 for (var i:int=0; idata.length; i++) {
 var newVB:VBox = new VBox();
 newVB.id = i.toString();
 var newImage:Image = new Image;
 newImage.source = data[i].fn;
 newImage.buttonMode = true;
 newImage.useHandCursor = true;
 //newImage.click = doStuff(data.fn); -- Doesnt work
 newVB.addChild( newImage );
 pagelist.addChild( newVB );
 var newLbl:Label = new Label();
 newLbl.text = data[i].pageno;
 pagelist.addChild( newLbl );
 }
 }

 Anyone that can help - please step up :-)

 Thanks,
 Mark

  




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

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

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


Re: [flexcoders] useCapture(event)

2007-09-04 Thread Sherif Abdou
thanks for keeping up, sorry for all these stupid questions. ok how come this 
doesn't work,
Thanks


  creationComplete=initApp()
  mx:Metadata
  [Event(name=Capture)]
  /mx:Metadata
mx:Script
![CDATA[
import mx.events.FlexEvent;
private function initApp():void{
this.dispatchEvent(new Event(Capture,true));

}
]]
/mx:Script
 
-MXML for my other component--
   local:Test/

 
/mx:Application


---Here is the test
?xml version=1.0 encoding=utf-8?

  creationComplete=initApp()
mx:Script
![CDATA[
 import mx.core.Application;
private function initApp():void{
//setting the useCapture here to true
 this.addEventListener(Capture,ok,true);

}
private function ok(event:Event):void{
trace('here');
}

]]
/mx:Script
/mx:Canvas

- Original Message 
From: Alex Harui [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, September 4, 2007 2:05:51 PM
Subject: RE: [flexcoders] useCapture(event)









  







You have to listen to the app or higher up in order to 
capture so you'll have clean up issues regardless.  You can use weak 
reference listeners if you can't clean up synchronously.




From: [EMAIL PROTECTED] ups.com 
[mailto:flexcoders@ yahoogroups. com] On Behalf Of Sherif 
Abdou
Sent: Tuesday, September 04, 2007 10:01 AM
To: 
[EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] 
useCapture(event)









cause 
wouldn't that be tightly coupling it if i 
do
this.Application. application. addEventListener (..). i 
thought this was bad but i am still new to flex

i figured if i but a web 
service in the main application then when it is loaded, the subcomponent could 
capture that the service is ready and use that data from it

---Main 
Application( webService here)

--Component
  
-SubComponent( need info from the web service to populate its 
own),
   ---Component

 -subcomponent

---sub 
subcomponent( this also needs to get the webservice stuff);

I hope i 
made sense


- 
Original Message 
From: Alex Harui [EMAIL PROTECTED] com
To: 
[EMAIL PROTECTED] ups.com
Sent: Tuesday, September 4, 2007 10:59:41 
AM
Subject: RE: [flexcoders] useCapture(event)





yes, but why do it in capture phase, why not just listen to 
the app?

 

Show us how you're doing it.




From: [EMAIL PROTECTED] ups.com 
[mailto:flexcoders@ yahoogroups. com] On Behalf Of Sherif 
Abdou
Sent: Tuesday, September 04, 2007 8:20 AM
To: 
[EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] 
useCapture(event)









Thanks, 
i looked but i still can't get it to work. is it only used for mouse and focus 
events
or say can i dispatch an event in the main application and have a sub 
componenet of that application capture that event

Main Application- 
Dispatch capturePhaseTest ;
   -- 
Component
  --- SubComponent- 
-Listen for the capturePhaseTest that was dispatched by the 
application


- 
Original Message 
From: Alex Harui [EMAIL PROTECTED] com
To: 
[EMAIL PROTECTED] ups.com
Sent: Monday, September 3, 2007 10:37:28 
PM
Subject: RE: [flexcoders] useCapture(event)





Look in our source code for stage.addEventListe ner, or in 
the FocusManager.




From: [EMAIL PROTECTED] ups.com 
[mailto:flexcoders@ yahoogroups. com] On Behalf Of Sherif 
Abdou
Sent: Sunday, September 02, 2007 4:44 PM
To: 
[EMAIL PROTECTED] ups.com
Subject: [flexcoders] 
useCapture(event)









I am pretty puzzled to how the useCapture works in the addEventListner, i 
tried reading and i think i understand what it does but i never found an 
example 
of it in action or what it could be used for. so can anyone enlighten 
me





Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and 
lay it on us. 










Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder 
tool. 










Building a website is a piece of cake. 
Yahoo! Small Business gives you all 
the tools to get online.





  







!--

#ygrp-mkp{
border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;}
#ygrp-mkp hr{
border:1px solid #d8d8d8;}
#ygrp-mkp #hd{
color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;}
#ygrp-mkp #ads{
margin-bottom:10px;}
#ygrp-mkp .ad{
padding:0 0;}
#ygrp-mkp .ad a{
color:#ff;text-decoration:none;}
--



!--

#ygrp-sponsor #ygrp-lc{
font-family:Arial;}
#ygrp-sponsor #ygrp-lc #hd{
margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;}
#ygrp-sponsor #ygrp-lc .ad{
margin-bottom:10px;padding:0 0;}
--



!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg 

[flexcoders] How to log Application Closed implicitly

2007-09-04 Thread M@ Sheppard
In an effort to record session time that a user spends in my flex
application I'm trying to capture the application closing event and
log information before the user leaves.  

Currently I can make a webservice call from a function called from the
ExternalInterface if I return some text to show in the Are you sure
you want to navigate away from this page dialog box that the browser
displays.

The real problem is, if I don't return any text, the browser calls
before my webservice call is made, as if the browser will not allow
any additional requests once the user has begun the page closing function.

Details:
I have a unload function in actionscript that I register with the
External Interface call.  It makes a webservice call first, and then
returns a string with text or an empty string.

In my index.template.html file, I set the window.onbeforeunload to a
function that calls my actionscript function.  

If my actionscript function returns an a string everything works, the
webservice call logs the user logged out and the browser displays the
dialog.

If my actionscript function returns an empty string then no webservice
call is recorded, the browser closes and my server is oblivious to the
fact that the user is gone.



RE: [flexcoders] useCapture(event)

2007-09-04 Thread Alex Harui
Because your canvas is listening to itself and not the application.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sherif Abdou
Sent: Tuesday, September 04, 2007 12:49 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] useCapture(event)



thanks for keeping up, sorry for all these stupid questions. ok how come
this doesn't work,
Thanks


  creationComplete=initApp()
  mx:Metadata
  [Event(name=Capture)]
  /mx:Metadata
mx:Script
![CDATA[
import mx.events.FlexEvent;
private function initApp():void{
this.dispatchEvent(new Event(Capture,true));

}
]]
/mx:Script
 
-MXML for my other component--
   local:Test/

 
/mx:Application


---Here is the test
?xml version=1.0 encoding=utf-8?

  creationComplete=initApp()
mx:Script
![CDATA[
 import mx.core.Application;
private function initApp():void{
//setting the useCapture here to true
 this.addEventListener(Capture,ok,true);

}
private function ok(event:Event):void{
trace('here');
 nbs! p;  }

]]
/mx:Script
/mx:Canvas


- Original Message 
From: Alex Harui [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, September 4, 2007 2:05:51 PM
Subject: RE: [flexcoders] useCapture(event)



You have to listen to the app or higher up in order to capture so you'll
have clean up issues regardless.  You can use weak reference listeners
if you can't clean up synchronously.



From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com]
On Behalf Of Sherif Abdou
Sent: Tuesday, September 04, 2007 10:01 AM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] useCapture(event)



cause wouldn't that be tightly coupling it if i do
this.Application. application. addEventListener (..). i thought this
was bad but i am still new to flex

i figured if i but a web service in the main application then when it is
loaded, the subcomponent could capture that the service is ready and use
that data from it

---Main Application( webService here)
--Component
  -SubComponent( need info from the web service to populate its
own),
   ---Component
 -subcomponent
---sub subcomponent( this also needs to get the
webservice stuff);

I hope i made sense


- Original Message 
From: Alex Harui [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, September 4, 2007 10:59:41 AM
Subject: RE: [flexcoders] useCapture(event)



yes, but why do it in capture phase, why not just listen to the app?
 
Show us how you're doing it.



From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com]
On Behalf Of Sherif Abdou
Sent: Tuesday, September 04, 2007 8:20 AM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] useCapture(event)



Thanks, i looked but i still can't get it to work. is it only used for
mouse and focus events
or say can i dispatch an event in the main application and have a sub
componenet of that application capture that event

Main Application- Dispatch capturePhaseTest ;
   -- Component
  --- SubComponent- -Listen for the capturePhaseTest that was
dispatched by the application


- Original Message 
From: Alex Harui [EMAIL PROTECTED] com
To: [EMAIL PROTECTED] ups.com
Sent: Monday, September 3, 2007 10:37:28 PM
Subject: RE: [flexcoders] useCapture(event)



Look in our source code for stage.addEventListe ner, or in the
FocusManager.



From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com]
On Behalf Of Sherif Abdou
Sent: Sunday, September 02, 2007 4:44 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] useCapture(event)



I am pretty puzzled to how the useCapture works in the addEventListner,
i tried reading and i think i understand what it does but i never found
an example of it in action or what it could be used for. so can anyone
enlighten me




Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user
panel
http://us.rd.yahoo.com/evt=48516/*http://surveylink.yahoo.com/gmrs/yaho
o_panel_invite.asp?a=7%20  and lay it on us. 





Choose the right car based on your needs. Check out Yahoo! Autos new Car
Finder tool.
http://us.rd.yahoo.com/evt=48518/*http://autos.yahoo.com/carfinder/;_yl
c=X3oDMTE3NWsyMDd2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDY2FyLWZpbmRlcg
--%20  





Building a website is a piece of cake. 
Yahoo! Small Business gives you all the tools to get online.
http://us.rd.yahoo.com/evt=48251/*http://smallbusiness.yahoo.com/webhos
ting/?p=PASSPORTPLUS  




RE: [flexcoders] Issues running RTMPS through firewall

2007-09-04 Thread Jeff Vroom
I don't know of any problems that would cause this.  RTMP and RTMPS are
really just using the socket layer to make the connections so I don't
know why a firewall would interfere as long as the ports are open.

 

You could turn on the debug logging for the Endpoint.* and Protocol.*
targets and that might give some clues on the server side why the
connection is failing.  It might also be worth using the
mx:TraceTarget/ on the client to see what errors the client is
getting.  

 

You might check the file descriptor usage on the server as that is a
commonly encountered problem with RTMP.  You can run the lsof command
on some systems to display the open files by a process and then check
your limits to be sure you have enough of them available.

 

Jeff

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ash Weaver
Sent: Tuesday, September 04, 2007 12:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Issues running RTMPS through firewall

 

Hi all,

Has anyone out there tried enabling RTMPS connections from a Flex
client to LCDS running behind a firewall?

Now if we test the app internally (i.e. inside the firewall),
everything works just fine. It seems like things break down once we
start going through a firewall.

Here are the symptoms:
A few RTMPS connections will go through and the app works fine for a
short while. After that point, no RTMPS connections will work at all.

Here's some info on the application:
Client:
- Flex 2
- has several assembler and topic message subscriptions
- makes a number of RPC service calls to the backend

Server:
- jboss 4.05, embedded tomcat 55, LCDS 2.5

We've tried several different firewalls and even opened up all traffic
through the firewall. The issue seems to have something to do with
the fact that the firewall is forwarding traffic intended for an
external IP address to an internal, different IP address.

Has anyone run into this situation before? Does anyone know if, as an
added layer of authentication, LCDS keeps track of the requested IP
for RTMPS connections and chokes while comparing the external vs.
internal IP?

Thanks!
Ash 

 



RE: [flexcoders] passing reference?

2007-09-04 Thread Alex Harui
I'm not sure I see where arrayStep is defined in parentDocument.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of freska
Sent: Monday, September 03, 2007 10:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] passing reference?



Hi list,
Please review my code. I have no better words to explain my problem.

In the main file, I have this variable.

[Bindable]
public var arrayStep:ArrayCollection = new ArrayCollection();

In my component file, I define a DataGrid component using three
ComboBox as item editor. I need to pass that variable to one of them.
Here is the code. I mark the part with a comment.

?xml version=1.0 encoding=utf-8?
mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  width=480
height=336
mx:Script
![CDATA[
import mx.collections.ArrayCollection;

// array untuk menyimpan data result (tabel)
[Bindable]
public var arrayStepResChild:ArrayCollection = new ArrayCollection();

/* This is not correct. */
[Bindable]
public var myArrayStep:ArrayCollection =
parentDocument.arrayStep;

]]
/mx:Script

mx:Component id=goToEditor
mx:ComboBox dataProvider={outerDocument.myArrayStep}
labelField=colLabel/
/mx:Component

mx:Component id=timeEditor
mx:ComboBox dataProvider={arrayTime} labelField=time
mx:Script
![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var arrayTime:ArrayCollection = new
ArrayCollection([{time:immediately}, {time:1 hour}, {time:1
day}, {time:1 week}]);
]]
/mx:Script 
/mx:ComboBox
/mx:Component

mx:Component id=roleEditor
mx:ComboBox dataProvider={arrayRole} labelField=role
mx:Script
![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var arrayRole:ArrayCollection = new
ArrayCollection([{role:Employee}, {role:Manager}, {role:HR
Admin}, {role:Finance}]);
]]
/mx:Script 
/mx:ComboBox
/mx:Component

mx:Canvas width=100% height=100% minHeight=256
mx:Button id=btnAddStepResult x=20 y=10 label=New
click=addStepResult()/
mx:Button id=btnSaveStepResult x=78 y=10 label=Save/
mx:Button id=btnRemoveStepResult x=140 y=10 label=Delete
click=removeStepResult()/

mx:DataGrid id=dataGridResult x=20 y=40 width=428
height=110 sortableColumns=false 
dataProvider={arrayStepResChild} editable=true
draggableColumns=false
mx:columns
mx:DataGridColumn headerText=Result dataField=colResult/
mx:DataGridColumn headerText=Go to dataField=colGoTo
itemEditor={goToEditor}/
mx:DataGridColumn headerText=Time dataField=colTime
itemEditor={timeEditor}/
mx:DataGridColumn headerText=Assigned to dataField=colRole
itemEditor={roleEditor}/
/mx:columns
/mx:DataGrid
/mx:Canvas

/mx:HBox

Flex said, Error #1009: Cannot access a property or method of a null
object reference. I've tried to fill the arrayStep with initial
value, but it also throws the same error message. Please give me a
clue on this.

TIA,
Freska



 


RE: [flexcoders] Combobox selectable text

2007-09-04 Thread Alex Harui
There's a bug when you change the .enabled property that selectable gets
set.  Fixed in Moxie.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Giles Roadnight
Sent: Tuesday, September 04, 2007 3:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Combobox selectable text



Hi All

The text on my comboboxes has inexplicably become selctable which is
quite annoying. When I move the mouse over the combobox it turns into
an I bar which again is annoying.

Is there any way of tunring this off? I tried adding
selectable=false but that gave a compiler error.

This might have started when I installed Hot Fix 2.

Any ideas?

Thanks

Giles



 


RE: [flexcoders] ResourceBundle with ActionScript code - Problem in Flex 2 Flex 3

2007-09-04 Thread Matt Horn
Just to be sure, you are using metadata like this:
 
[ResourceBundle(German)]

and not this:
 
[ResourcBundle(German)]

 
The e was missing in your example. 

-matt 

 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of mayurrami
Sent: Tuesday, September 04, 2007 1:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ResourceBundle with ActionScript code -
Problem in Flex 2  Flex 3



Hi everybody...

I am having few problems for ResourceBundle.

The code is as below

--
mxml code : RB_3.mxml
--
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
layout=absolute 
xmlns:local=*
pageTitle= Resoruce Bundle 
!--mx:Label text=@Resource(key='txName',bundle='German') /
--
!-- The above commented line works very well, but when I try to
achieve the same through Actionscript it gives an Error --
local:RB_B_AS width=200 height=200 borderStyle=solid
paddingLeft=10 paddingTop=10 /
/mx:Application
--
Actionscript code : RB_ActionScript.as
--
package
{
import mx.resources.ResourceBundle;
import mx.containers.VBox;
import mx.controls.Label;
import mx.controls.Alert;

[ResourcBundle(German)]
public class RB_B_AS extends VBox
{
private static var rb:ResourceBundle = new ResourceBundle();

public var l:Label;

function RB_B_AS()
{
this.width = 300;
this.height = 300;
this.setStyle(borderStyle,solid);
this.setStyle(paddingLeft,10);
this.setStyle(paddingTop,10);

l = new Label();
l.width = 100;
l.height = 30;

/* Error come on Line : 34 
[
Error: Key txName was not found in resource bundle null
at mx.resources::ResourceBundle/::_getObject()
at mx.resources::ResourceBundle/getString()
at RB_B_AS$iinit()
] */
l.text = rb.getString(txName);

this.addChild(l);

var child2:Label = new Label();
child2.name = Lable2;
child2.text = Two;
this.addChild(child2);
}
}
}
--
Res.Bundle : German.properties
--
txName=What is your Name ?
--

If you can provide me any link for ResourceBundle example purely
in
AS-3, that will be helpful, also.

Thanking you in advance.

- Mayur



 



RE: [flexcoders] How do I addEventListener to a repeated component.

2007-09-04 Thread Tracy Spratt
I don't think you can add a listener to Repeater.  That does not really make 
sense anyway, as repeater has no UI of its own, it only adds children to a 
container.  The listeners need to be on the repeated components (checkBoxes).  
You can do this in mxml fairly easily, but you have to use getRepeaterItem() to 
get a reference to the item.  currentItem will not work in an event handler 
declaration.

When working with Repeater, I suggest using a custom component.  It simplifies 
many things.  Below are some snippets.
Tracy

Goal: Display a list of items using a complex display for each item, and have 
each of those items behave like a menu element and respond to a click anywhere 
on the item by running a handler function.

One solution is to use a Repeater with a custom component

In the main app or component, declare the Repeater, and the click handler 
function.
mx:Application ...
mx:Script![CDATA[
  import MyRepeaterItem;
  ...
  
private function onRPItemClick(oEvent:Event):void
{
var xmlItem:XML = XML(oEvent.target);

}//onRPItemClick
]]/mx:Script
  mx:VBox ...
mx:Repeater id=rp dataProvider={_xmlData} ...
  !-- Note we pass in the entire currentItem, and define a click handler  
--
  MyRepeaterItem xmlItem={rp.currentItem} 
itemClick=onRPItemClick(event) .../
/mx:Repeater
  /mx:VBox
/mx:Application

And in the component, MyRepeaterItem.mxml:
?xml version=1.0 encoding=utf-8?
mx:HBox mouseChildren=false buttonMode=true click=onClick(event)  
  !-- The metadata tag below allows us to define an itemClick handler in mxml, 
as in the code above --
  mx:Metadata
 [Event(name=itemClick, type=flash.events.Event)]
  /mx:Metadata
mx:Script![CDATA[
  [Bindable]private var _xmlItem:XML;
  
  /** Setter function */
  public function set xmlItem(xml:XML):void  
  {
_xmlItem = xml;
//do any special, non-bound ui stuff you want
  }//set xmlItem

  /** Getter function */  
  public function get xmlItem():XML  
  {
return _xmlItem;
  }//get xmlItem


  /** Outer VBox Click handler function */  
  private function onClick():void 
  {
dispatchEvent(new Event(itemClick,false); //we do not need/want this 
event to bubble
  }//onClick

]]/mx:Script
  !-- Now declare the Item UI --
  mx:Text id=lbDescription text=[EMAIL PROTECTED] width=100% 
height=100% /
/mx:HBox



  


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark
Sent: Tuesday, September 04, 2007 1:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do I addEventListener to a repeated component.

My code is below.  I'm trying to put an eventListener on the CheckBoxes (repSL) 
that are being created with the Repeater.  I get this error:
TypeError: Error #1006: addEventListener is not a function
this works fine with everything but for the repeated checkboxes.  Is there a 
differnt way to assign this?
Thanks
 
?xml version=1.0?
!-- repeater\myComponents\CustButton.mxml --
mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; 
initialize=createListener() paddingLeft=5 paddingTop=5 paddingRight=5 
paddingBottom=5
  mx:Script
    ![CDATA[
  import mx.events.ListEvent;
  import mx.core.Application;
  import mx.events.ListEvent;
  import flash.events.Event;
  
  [Bindable]
  public var dpSL:Array=[All,AABS,CBS,TAS,TAX];
  [Bindable]
  public var dpDI:Array=[Desktop Impact,Network Impact,Local Help Desk 
Impact,Other];
  [Bindable]
  public var dpDO:Array=[All,Global IT,Americas,Central 
Europe,Continental Western Europe,NEMIA,Far East,Oceania,Japan];
  //
  [Bindable]
  public var dpApp:Array=[{label:Select One,data:All},
     {label:App Infrastructure,data:Application Infrastructure},
     {label:Client Conn,data:Client Connectivity},
     {label:Doc Mgmt,data:Document Management},
     {label:Finance,data:Finance},
     {label:People,data:People},
     {label:QRM,data:QRM},
     {label:SL App Services,data:Service Line Application Services}
     ];
  [Bindable]
  public var dpInfra:Array=[{label:Select One,data:All},
     {label:Content Mgmt,data:Content Management},
     {label:Data Networking,data:Data Networking},
     {label:Desktop,data:Desktop},
     {label:Identity  Access Mgmt,data:Identity and Access 
Management},
     {label:Info Security,data:Information Security},
     {label:Msg and Collab,data:Messaging and Collaboration},
     {label:Mobility and Comm,data:Mobility and Communications}];
  //
  //
  private function createListener():void {
   repSL.addEventListener(MouseEvent.CLICK, myClickHandler, false, 0);
   infraRB.addEventListener(MouseEvent.CLICK, myClickHandler,false, 0);
   appCB.addEventListener(ListEvent.CHANGE,setFilter,false,0);
   infraCB.addEventListener(ListEvent.CHANGE,setFilter,false,0);
  }
  private function 

Re: [flexcoders] useCapture(event)

2007-09-04 Thread Sherif Abdou
All right, so i got it to work 
   added this in
Application.application.addEventListener(Capture,ok);

so that works fine, but when i do useCapture to true, then nothing 
works so what i am trying to get to is when would 
  i actually set the useCapture to true. I just want to understand in 
what kind of scenario would i capture that event.
if anyone could just do a quick example that would help me alot. 
Thanks


- Original Message 
From: Alex Harui [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, September 4, 2007 3:16:14 PM
Subject: RE: [flexcoders] useCapture(event)









  







Because your canvas is listening to itself and not the 
application.




From: [EMAIL PROTECTED] ups.com 
[mailto:flexcoders@ yahoogroups. com] On Behalf Of Sherif 
Abdou
Sent: Tuesday, September 04, 2007 12:49 PM
To: 
[EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] 
useCapture(event)









thanks 
for keeping up, sorry for all these stupid questions. ok how come this doesn't 
work,
Thanks


  
creationComplete= initApp( )
  
mx:Metadata
  
[Event(name= Capture )]
  
/mx:Metadata

mx:Script

![CDATA[
import 
mx.events.FlexEvent ;

private function initApp():void{


this.dispatchEvent( new Event(Capture ,true));



}

]]
/mx:Script
 
-MXML for my 
other component--
   local:Test/



 
/mx:Application


 - - - Here 
is the test
?xml version=1.0 
encoding=utf- 8?


  creationComplete= initApp( )

mx:Script

![CDATA[

 import 
mx.core.Application ;

private function initApp():void{

//setting the useCapture 
here to true

 
this.addEventListen er(Capture ,ok,true) ;



}

private function 
ok(event:Event) :void{

trace('here' );

 nbs! p;  }



]]
/mx:Script
/mx:Canvas


- 
Original Message 
From: Alex Harui [EMAIL PROTECTED] com
To: 
[EMAIL PROTECTED] ups.com
Sent: Tuesday, September 4, 2007 2:05:51 
PM
Subject: RE: [flexcoders] useCapture(event)





You have to listen to the app or higher up in order to 
capture so you'll have clean up issues regardless.  You can use weak 
reference listeners if you can't clean up synchronously.




From: [EMAIL PROTECTED] ups.com 
[mailto:flexcoders@ yahoogroups. com] On Behalf Of Sherif 
Abdou
Sent: Tuesday, September 04, 2007 10:01 AM
To: 
[EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] 
useCapture(event)









cause 
wouldn't that be tightly coupling it if i do
this.Application. application. 
addEventListener (..). i thought this was bad but i am still new to 
flex

i figured if i but a web service in the main application then when 
it is loaded, the subcomponent could capture that the service is ready and use 
that data from it

---Main Application( webService 
here)
--Component
   
   -SubComponent( need info from the web service to populate its 
own),
   ---Component

 -subcomponent

---sub subcomponent( this 
also needs to get the webservice stuff);

I hope i made sense


- 
Original Message 
From: Alex Harui [EMAIL PROTECTED] com
To: 
[EMAIL PROTECTED] ups.com
Sent: Tuesday, September 4, 2007 10:59:41 
AM
Subject: RE: [flexcoders] useCapture(event)





yes, but why do it in capture phase, why not just listen to 
the app?

 

Show us how you're doing it.




From: [EMAIL PROTECTED] ups.com 
[mailto:flexcoders@ yahoogroups. com] On Behalf Of Sherif 
Abdou
Sent: Tuesday, September 04, 2007 8:20 AM
To: 
[EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] 
useCapture(event)









Thanks, 
i looked but i still can't get it to work. is it only used for mouse and focus 
events
or say can i dispatch an event in the main application and have a sub 
componenet of that application capture that event

Main Application- 
Dispatch capturePhaseTest ;
   -- 
Component
  --- SubComponent- 
-Listen for the capturePhaseTest that was dispatched by the 
application


- 
Original Message 
From: Alex Harui [EMAIL PROTECTED] com
To: 
[EMAIL PROTECTED] ups.com
Sent: Monday, September 3, 2007 10:37:28 
PM
Subject: RE: [flexcoders] useCapture(event)





Look in our source code for stage.addEventListe ner, or in 
the FocusManager.




From: [EMAIL PROTECTED] ups.com 
[mailto:flexcoders@ yahoogroups. com] On Behalf Of Sherif 
Abdou
Sent: Sunday, September 02, 2007 4:44 PM
To: 
[EMAIL PROTECTED] ups.com
Subject: [flexcoders] 
useCapture(event)









I am pretty puzzled to how the useCapture works in the addEventListner, i 
tried reading and i think i understand what it does but i never found an 
example 
of it in action or what it could be used for. so can anyone enlighten 
me





Fussy? Opinionated? 

RE: [flexcoders] FDS and Paging

2007-09-04 Thread Jeff Vroom
Hi João,

 

So I think that you can do this today where you just pass the sort fields as 
additional fill parameters.  Is there a reason you want the sort fields broken 
out explicitly in the api?   

 

Jeff

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of João 
Fernandes
Sent: Thursday, August 30, 2007 4:05 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FDS and Paging

 

Jeff,

I would like to see the custom paging method to be enhanced so it would also 
pass the sort fields and their order.
I say fields because we could sort by multiples columns the paged collection. 
Once the client sort by n fields, those would be passed to the custom fill 
method with their corresponding order and it would allow to retrieve any page 
with any order without having to retrieve all the collection to the client.

João Fernandes

Jeff Vroom wrote: 

By default, DS will just page from the client to the server, not from 
the server to the database.  I'd expect it to call fill once, but then the 
client fetches the data in pages.

 

Starting in LC DS 2.5, we added a mechanism to page directly to the 
database.  Currently it is limited in that you must set autoSyncEnabled=false 
for it to work before you call fill (though we hope to fix that limitation in 
the next release).

 

To use this you implement the variant of the fill method which takes 
the start and count methods:

 

Collection fill(List fillParameters, int startIndex, int 
numberOfRows);

 

You also must override the useFillPage method and have it return 
true for that set of fill parameters.  

 

There are two options for determining the size of the collection that 
the client sees.  It will call your assembler's count method with the same fill 
parameters.  If that returns -1, it goes into a dynamic sizing mode where it 
makes the size of the collection on the client pageSize+1 items, then when that 
one missing item is fetched it ups the size to pageSize+pageSize+1, etc. until 
it hits the end.  

 

By default when you sort in the data grid (or apply any filters) it 
will page in all items automatically since the default behavior is to sort on 
the client.   This can be inefficient so you might want to add the sort 
criteria to the fill parameters.  You can then override the sort behavior in 
the data grid to call fill again rather than paging all of the items.

 

Jeff

 





From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Alban Soupper
Sent: Wednesday, August 29, 2007 7:27 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FDS and Paging

 

Hi All,

 

I need some help with FDS and the paging feature.

 

Here is the situation: 

I have a DataGrid that display a list of managed objects - using DFS 
and the Assembler strategy.

The number of objects is very large and is time consuming to load.

I would want to use the paging feature to deal with this situation.

I enabled the paging option in the destination descriptor, but the 
behavior does not change.

The client just calls my assembler fill method always in the same way.

 

Did I miss some point?

What happens with the paging feature and the sort feature of the 
Datagrid?

 

Any help is welcomed.

 

Alban.

 




This email and any attachments transmitted with it are confidential and 
intended solely for the use of the individual or entity to whom they are 
addressed. If you are not the intended recipient, any disclosure, copying, use, 
or distribution of the information included in this message and any attachments 
is strictly prohibited.

If you have received this email in error please notify the system 
manager at [EMAIL PROTECTED] or by reply e-mail and immediately and permanently 
delete this message and any attachments. Thank you.

 




 

 



[flexcoders] Re: Nested item renderers and scrolling

2007-09-04 Thread Richard Rodseth
I believe my problem is due to the absence of fractional scrolling in
list controls. I ran up against the same wall in another part of the
application.

 Am I correct that this is addressed in Moxie Beta 2?

On 9/4/07, Richard Rodseth [EMAIL PROTECTED] wrote:
 I'm having a bit of scrolling trouble with a rather complex layout
 that involves nested item renderers. Imagine a list (of books, say),
 where each item is itself a list (of page thumbnails). I only want
 scrolling of the entire book list. I've implemented this with a book
 item renderer that contains a page list (which in turn has a thumbnail
 item renderer). The thumbnail list has its rowCount set to the number
 of pages (done in a binding function). I'm also attempting to
 virtualize the thumbnail list by providing a custom IList that returns
 proxies.

 I believe I have scrollbar policies and variable row heights set
 appropriately at all levels.
 The behavior I'm seeing is that the top level list does not get a
 scroll bar when it should. If I replace the list-based book item
 renderer with a simple label, I do get the scroll bar if there are
 enough books.

 I realize it may be difficult to help me without code, but if anyone
 has tried something similar, or knows of any known measuring bugs in
 this type of scenario, please let me know. Thanks.



[flexcoders] Stopping refered projects from recompiling if no code change

2007-09-04 Thread Sebastian Feher
I have setup a shell app referring the modules I want compiled before 
running it. However, the modules are recompiled every single time even 
there's no change to the source code at all. Even successive runs of 
the shell are forcing a recompile. The referring scheme seems to 
confuse Flex into thinking a new build is required. Any way around it?

Any help here would be greatly appreciated.

Best Regards,
Sebastian




[flexcoders] Re: Stopping refered projects from recompiling if no code change

2007-09-04 Thread Sebastian Feher
On a second look this has nothing to do with having setup reference 
projects..

Recompiling the modules themselves over and over - will most of the 
times force a recompilation. 

Anyone knows what is the rule for recompilation?


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

 I have setup a shell app referring the modules I want compiled before 
 running it. However, the modules are recompiled every single time 



RE: [flexcoders] ResourceBundle with ActionScript code - Problem in Flex 2 Flex 3

2007-09-04 Thread Gordon Smith
In Flex 3, you should not be accessing resources from a ResurceBundle.
Access them through the ResourceManager.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt Horn
Sent: Tuesday, September 04, 2007 1:42 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ResourceBundle with ActionScript code -
Problem in Flex 2  Flex 3



Just to be sure, you are using metadata like this:
 
[ResourceBundle(German)]

and not this:
 
[ResourcBundle(German)]

 
The e was missing in your example. 

-matt 

 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of mayurrami
Sent: Tuesday, September 04, 2007 1:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ResourceBundle with ActionScript code -
Problem in Flex 2  Flex 3



Hi everybody...

I am having few problems for ResourceBundle.

The code is as below

--
mxml code : RB_3.mxml
--
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
layout=absolute 
xmlns:local=*
pageTitle= Resoruce Bundle 
!--mx:Label text=@Resource(key='txName',bundle='German') /
--
!-- The above commented line works very well, but when I try to
achieve the same through Actionscript it gives an Error --
local:RB_B_AS width=200 height=200 borderStyle=solid
paddingLeft=10 paddingTop=10 /
/mx:Application
--
Actionscript code : RB_ActionScript.as
--
package
{
import mx.resources.ResourceBundle;
import mx.containers.VBox;
import mx.controls.Label;
import mx.controls.Alert;

[ResourcBundle(German)]
public class RB_B_AS extends VBox
{
private static var rb:ResourceBundle = new ResourceBundle();

public var l:Label;

function RB_B_AS()
{
this.width = 300;
this.height = 300;
this.setStyle(borderStyle,solid);
this.setStyle(paddingLeft,10);
this.setStyle(paddingTop,10);

l = new Label();
l.width = 100;
l.height = 30;

/* Error come on Line : 34 
[
Error: Key txName was not found in resource bundle null
at mx.resources::ResourceBundle/::_getObject()
at mx.resources::ResourceBundle/getString()
at RB_B_AS$iinit()
] */
l.text = rb.getString(txName);

this.addChild(l);

var child2:Label = new Label();
child2.name = Lable2;
child2.text = Two;
this.addChild(child2);
}
}
}
--
Res.Bundle : German.properties
--
txName=What is your Name ?
--

If you can provide me any link for ResourceBundle example purely
in
AS-3, that will be helpful, also.

Thanking you in advance.

- Mayur



 


[flexcoders] Editor config question.

2007-09-04 Thread generalxxaxx
Forgive this question. It has little to do with Flex coding but
everything to do with not getting strung up by my SVN-mates.

When I edit an mxml file I end up inserting tab character in the
source. For some reason they do not. 

What is the best practice for indent? How do folks manage to indent
without inserting a bunch of tab characters?

I have looked for an option to substitute 4 spaces for tab. But have
not found that option in the preferences -- yet. 

Or, is there a different key I should be pressing to bring about the
indent structure in the Flex editor (using 2.0.1)

Regards,




RE: [flexcoders] How do I addEventListener to a repeated component.

2007-09-04 Thread Gordon Smith
 I don't think you can add a listener to Repeater. 
 
Yes you can; a Repeater dispatches 'repeatStart', 'repeat', and
'repeatEnd' events. But that's different from listening to events
disaptched by the repeated components.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Tuesday, September 04, 2007 1:53 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How do I addEventListener to a repeated
component.



I don't think you can add a listener to Repeater. That does not really
make sense anyway, as repeater has no UI of its own, it only adds
children to a container. The listeners need to be on the repeated
components (checkBoxes). You can do this in mxml fairly easily, but you
have to use getRepeaterItem() to get a reference to the item.
currentItem will not work in an event handler declaration.

When working with Repeater, I suggest using a custom component. It
simplifies many things. Below are some snippets.
Tracy

Goal: Display a list of items using a complex display for each item, and
have each of those items behave like a menu element and respond to a
click anywhere on the item by running a handler function.

One solution is to use a Repeater with a custom component

In the main app or component, declare the Repeater, and the click
handler function.
mx:Application ...
mx:Script![CDATA[
import MyRepeaterItem;
...

private function onRPItemClick(oEvent:Event):void
{
var xmlItem:XML = XML(oEvent.target);

}//onRPItemClick
]]/mx:Script
mx:VBox ...
mx:Repeater id=rp dataProvider={_xmlData} ...
!-- Note we pass in the entire currentItem, and define a click handler
--
MyRepeaterItem xmlItem={rp.currentItem}
itemClick=onRPItemClick(event) .../
/mx:Repeater
/mx:VBox
/mx:Application

And in the component, MyRepeaterItem.mxml:
?xml version=1.0 encoding=utf-8?
mx:HBox mouseChildren=false buttonMode=true click=onClick(event)
 
!-- The metadata tag below allows us to define an itemClick handler in
mxml, as in the code above --
mx:Metadata
[Event(name=itemClick, type=flash.events.Event)]
/mx:Metadata
mx:Script![CDATA[
[Bindable]private var _xmlItem:XML;

/** Setter function */
public function set xmlItem(xml:XML):void 
{
_xmlItem = xml;
//do any special, non-bound ui stuff you want
}//set xmlItem

/** Getter function */ 
public function get xmlItem():XML 
{
return _xmlItem;
}//get xmlItem

/** Outer VBox Click handler function */ 
private function onClick():void 
{
dispatchEvent(new Event(itemClick,false); //we do not need/want this
event to bubble
}//onClick

]]/mx:Script
!-- Now declare the Item UI --
mx:Text id=lbDescription text=[EMAIL PROTECTED] width=100%
height=100% /
/mx:HBox


From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On Behalf Of Mark
Sent: Tuesday, September 04, 2007 1:20 PM
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
Subject: [flexcoders] How do I addEventListener to a repeated component.

My code is below.  I'm trying to put an eventListener on the CheckBoxes
(repSL) that are being created with the Repeater.  I get this error:
TypeError: Error #1006: addEventListener is not a function
this works fine with everything but for the repeated checkboxes.  Is
there a differnt way to assign this?
Thanks
 
?xml version=1.0?
!-- repeater\myComponents\CustButton.mxml --
mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  initialize=createListener()
paddingLeft=5 paddingTop=5 paddingRight=5 paddingBottom=5
  mx:Script
![CDATA[
  import mx.events.ListEvent;
  import mx.core.Application;
  import mx.events.ListEvent;
  import flash.events.Event;
  
  [Bindable]
  public var dpSL:Array=[All,AABS,CBS,TAS,TAX];
  [Bindable]
  public var dpDI:Array=[Desktop Impact,Network Impact,Local
Help Desk Impact,Other];
  [Bindable]
  public var dpDO:Array=[All,Global IT,Americas,Central
Europe,Continental Western Europe,NEMIA,Far
East,Oceania,Japan];
  //
  [Bindable]
  public var dpApp:Array=[{label:Select One,data:All},
 {label:App Infrastructure,data:Application
Infrastructure},
 {label:Client Conn,data:Client Connectivity},
 {label:Doc Mgmt,data:Document Management},
 {label:Finance,data:Finance},
 {label:People,data:People},
 {label:QRM,data:QRM},
 {label:SL App Services,data:Service Line Application
Services}
 ];
  [Bindable]
  public var dpInfra:Array=[{label:Select One,data:All},
 {label:Content Mgmt,data:Content Management},
 {label:Data Networking,data:Data Networking},
 {label:Desktop,data:Desktop},
 {label:Identity  Access Mgmt,data:Identity and Access
Management},
 {label:Info Security,data:Information Security},
 

RE: [flexcoders] Error #1014: Class flash.filesystem::FileStream could not be found.

2007-09-04 Thread Gordon Smith
You must be trying to run an AIR app in the web player rather than in
the AIR runtime.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jp andino
Sent: Tuesday, September 04, 2007 12:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Error #1014: Class flash.filesystem::FileStream
could not be found.



I get the flowing error when i load my SWF, the AIR version works fine, 
i got a line to import flash.filesystem.*;

VerifyError: Error #1014: Class flash.filesystem::FileStream could not 
be found.

at [verify]

at global$init()

at _Wizardv2WatcherSetupUtil$/init()

at mx.managers::SystemManager/private::docFrameHandler()

at [execute-queued]



 


  1   2   >