[flexcoders] Strange Issue with in htmlText of TextField

2010-04-29 Thread xmwang1982
Hi gurus,

I use the following code to display a text field with  tag inside. The 
image source is OK(the Image object works), but no picture was displayed in the 
text field. And one more issue is, if no chars before the  tag in 
htmlText, even the data of image was not loaded.

Anybody experienced similar issue? Thanks a lot.

=see my code below==


http://www.adobe.com/2006/mxml"; 
creationComplete="onCreation(event)" layout="vertical">








[flexcoders] Re: Can't move titlewindow in an Application

2010-03-05 Thread xmwang1982
if I set isPopUp to true and remove all the listners, I can't even drag and 
move the window.

with the old code, I can drag and move the window but can't drop it to the last 
position in dragging.

what's wrong with that? thanks.

--- In flexcoders@yahoogroups.com, claudiu ursica  wrote:
>
> in creation complete add this.isPopUp = true;
> Make sure u get rid of all the listeners ...
> C
> 
> 
> 
> 
> ____
> From: xmwang1982 
> To: flexcoders@yahoogroups.com
> Sent: Fri, March 5, 2010 4:30:30 PM
> Subject: [flexcoders] Can't move titlewindow in an Application
> 
>
> Hi experts,
> 
> I have a class inheriting TitleWindow, and I add the following code to enable 
> drag/drop of the title window by press on the title bar:
> 
> private function onCreationComplete( evt:Event) :void
> {
> this.titleBar. addEventListener (MouseEvent. MOUSE_DOWN, startDragWin) ;
> this.titleBar. addEventListener (MouseEvent. MOUSE_UP, stopDragWin) ;
> this.titleBar. addEventListener (MouseEvent. MOUSE_OUT, stopDragWin) ; 
> this.addEventListen er(DragEvent. DRAG_DROP, moveSelf);
> }
> 
> private function moveSelf(evt: DragEvent) :void
> {
> this.x = evt.stageX;
> this.y = evt.stageY; 
> }
> 
> private function startDragWin( evt:MouseEvent) :void
> {
> 
> 
> this.startDrag( );
> }
> 
> 
> 
> private function stopDragWin( evt:MouseEvent) :void
> {
> 
> this.stopDrag( );
> }
> 
> I added the object as the top level child of an application. However the 
> settings of x and y are not working. The window is not moved.
> 
> I have been confused for long. Any possible reason?
> 
> Layout of application is: layout="absolute"
> 
> The following attributes were set for the title window in the MXML of the 
> application 
> 
>  height="300" ...>
> 
> I guess these initial settings don't matter at all.
> 
> Please suggest. Thanks in advance.
>




[flexcoders] Can't move titlewindow in an Application

2010-03-05 Thread xmwang1982
Hi experts,

I have a class inheriting TitleWindow, and I add the following code to enable 
drag/drop of the title window by press on the title bar:

private function onCreationComplete(evt:Event):void
{

this.titleBar.addEventListener(MouseEvent.MOUSE_DOWN, startDragWin);

this.titleBar.addEventListener(MouseEvent.MOUSE_UP, stopDragWin);

this.titleBar.addEventListener(MouseEvent.MOUSE_OUT, stopDragWin);  

this.addEventListener(DragEvent.DRAG_DROP, 
moveSelf);
}

private function moveSelf(evt:DragEvent):void
{
this.x = evt.stageX;
this.y = evt.stageY;
}

private function startDragWin(evt:MouseEvent):void
{


this.startDrag();
}



private function stopDragWin(evt:MouseEvent):void
{

this.stopDrag();
}


I added the object as the top level child of an application. However the 
settings of x and y are not working. The window is not moved.

I have been confused for long. Any possible reason?

Layout of application is: layout="absolute"

The following attributes were set for the title window in the MXML of the 
application 



I guess these initial settings don't matter at all.

Please suggest. Thanks in advance.



[flexcoders] Re: Remote Object and Session ???????

2008-09-15 Thread xmwang1982
Sounds interesting... does anybody have sample of processing
credentials in tomcat? Thanks a lot.

--- In flexcoders@yahoogroups.com, "Battershall, Jeff"
<[EMAIL PROTECTED]> wrote:
>
> If you set the credentials for the remote object, post
authentication, those will be passed with each request.  All you need
to do is look for those credentials on the server side and log the
user in and assign roles on the server in question.  Doing this in CF
is trivial, it would depend on what middleware platform you're on. 
>  
> Jeff
> 
>   -Original Message-
>   From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas
>   Sent: Thursday, September 11, 2008 9:21 AM
>   To: flexcoders@yahoogroups.com
>   Subject: RE: [flexcoders] Re: Remote Object and Session ???
>   
>   
>   ok so you mean your Flex client beeds to communicate with
http://abc.com and http://xyz.com? Both servers belong to you?
>
>   Seems like you are going to have to keep info on who is logged in
at the DB level so that both servers can access that same info and
know that someone is logged in. Not sure if something like this
already exists or not.
>
>   Dimitrios Gianninas
>   RIA Developer Team Lead
>   Optimal Payments Inc.
>
> 
> ____
> 
>   From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of xmwang1982
>   Sent: Wednesday, September 10, 2008 9:18 PM
>   To: flexcoders@yahoogroups.com
>   Subject: [flexcoders] Re: Remote Object and Session ???
>   
>   
> 
>   My case is not similar with you. Something I need is SSO in server
side.
>   
>   I have a flex client, it may call remoting objects in different
>   servers. These remoting services need the same authentication. So the
>   SSO check is performed in server side.
>   
>   Becasue even the server, http request of remoting are different,
>   normal cookie doesn't work here.
>   
>   If there is a way to set session variants before remoting call, the
>   problem could be solved. But no idea so far...
>   
>   thanks.
>   
>   --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> , "Nate Beck"  wrote:
>   >
>   > We're using Oracle Access Management to do our single-sign on
over here.
>   > Using cookies as well, we set a domain cookie to ".domain.com", that
>   way any
>   > sub-domain will pass the cookie along to the server as well.
>   > 
>   > Cheers,
>   > Nate
>   > 
>   > 2008/9/10 Dimitrios Gianninas 
>   > 
>   > > Why do you want to add things to your server-side session?
>   > >
>   > > You dont need to do that for single sign-on. We have been using
>   single-sign
>   > > on with our Flex apps on WebLogic 8.1SP3 for years now and it
>   works like a
>   > > charm. The only thing we have to do in WebLogic, is make sure that
>   every web
>   > > application is using the same cookie name on the weblogic.xml and
>   it works.
>   > > Don't know what app server you are using, but you should
lookout for
>   > > something similar.
>   > >
>   > > *Dimitrios Gianninas*
>   > > *RIA Developer Team Lead*
>   > > *Optimal Payments Inc.*
>   > >
>   > >
>   > > --
>   > > *From:* flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> 
>   [mailto:flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> ] *On
>   > > Behalf Of *xmwang1982
>   > > *Sent:* Wednesday, September 10, 2008 6:07 AM
>   > > *To:* flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> 
>   > > *Subject:* [flexcoders] Remote Object and Session ???
>   > >
>   > > Hi experts,
>   > >
>   > > How to add variables into the session of a remote object?
Because, we
>   > > can set channels to other servers in code. In order to do something
>   > > like single sign on, I want to store something like session
UUID into
>   > > the session of HTTP connection of the remote object.
>   > >
>   > > Any idea? Thanks a lot.
>   > >
>   > > *AVIS IMPORTANT*
>   > >
>   > > *WARNING*
>   > >
>   > > Ce message élec

[flexcoders] Re: Remote Object and Session ???????

2008-09-10 Thread xmwang1982
My case is not similar with you. Something I need is SSO in server side.

I have a flex client, it may call remoting objects in different
servers. These remoting services need the same authentication. So the
SSO check is performed in server side.

Becasue even the server, http request of remoting are different,
normal cookie doesn't work here.

If there is a way to set session variants before remoting call, the
problem could be solved. But no idea so far...

thanks.

--- In flexcoders@yahoogroups.com, "Nate Beck" <[EMAIL PROTECTED]> wrote:
>
> We're using Oracle Access Management to do our single-sign on over here.
> Using cookies as well, we set a domain cookie to ".domain.com", that
way any
> sub-domain will pass the cookie along to the server as well.
> 
> Cheers,
> Nate
> 
> 2008/9/10 Dimitrios Gianninas <[EMAIL PROTECTED]>
> 
> >Why do you want to add things to your server-side session?
> >
> > You dont need to do that for single sign-on. We have been using
single-sign
> > on with our Flex apps on WebLogic 8.1SP3 for years now and it
works like a
> > charm. The only thing we have to do in WebLogic, is make sure that
every web
> > application is using the same cookie name on the weblogic.xml and
it works.
> > Don't know what app server you are using, but you should lookout for
> > something similar.
> >
> > *Dimitrios Gianninas*
> > *RIA Developer Team Lead*
> > *Optimal Payments Inc.*
> >
> >
> >  --
> > *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] *On
> > Behalf Of *xmwang1982
> > *Sent:* Wednesday, September 10, 2008 6:07 AM
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* [flexcoders] Remote Object and Session ???
> >
> >  Hi experts,
> >
> > How to add variables into the session of a remote object? Because, we
> > can set channels to other servers in code. In order to do something
> > like single sign on, I want to store something like session UUID into
> > the session of HTTP connection of the remote object.
> >
> > Any idea? Thanks a lot.
> >
> >  *AVIS IMPORTANT*
> >
> > *WARNING*
> >
> > Ce message électronique et ses pièces jointes peuvent contenir des
> > renseignements confidentiels, exclusifs ou légalement privilégiés
destinés
> > au seul usage du destinataire vis. L'expéditeur original ne
renonce  aucun
> > privilège ou  aucun autre droit si le présent message a ét transmis
> > involontairement ou s'il est retransmis sans son autorisation. Si vous
> > n'êtes pas le destinataire vis du présent message ou si vous
l'avez reçu
> > par erreur, veuillez cesser immédiatement de le lire et le
supprimer, ainsi
> > que toutes ses pièces jointes, de votre système. La lecture, la
> > distribution, la copie ou tout autre usage du présent message ou
de ses
> > pièces jointes par des personnes autres que le destinataire vis
ne sont pas
> > autorisés et pourraient être illégaux. Si vous avez reçu ce courrier
> > électronique par erreur, veuillez en aviser l'expéditeur.
> >
> > This electronic message and its attachments may contain confidential,
> > proprietary or legally privileged information, which is solely for
the use
> > of the intended recipient. No privilege or other rights are waived
by any
> > unintended transmission or unauthorized retransmission of this
message. If
> > you are not the intended recipient of this message, or if you have
received
> > it in error, you should immediately stop reading this message and
delete it
> > and all attachments from your system. The reading, distribution,
copying or
> > other use of this message or its attachments by unintended
recipients is
> > unauthorized and may be unlawful. If you have received this e-mail
in error,
> > please notify the sender.
> >   
> >
>




[flexcoders] Remote Object and Session ???????

2008-09-10 Thread xmwang1982
Hi experts,

How to add variables into the session of a remote object? Because, we
can set channels to other servers in code. In order to do something
like single sign on, I want to store something like session UUID into
the session of HTTP connection of the remote object.

Any idea? Thanks a lot.



[flexcoders] Re: Dynamic destination of remote object?

2008-09-09 Thread xmwang1982
In my sample, I have to define the following in remoting_config.xml:


 com.test.demo.DemoService
session
   


So, whenver you want to add new destination, you have to change this
file and re-deploy the whole project.

I don't want to change the config file in runtime, but some new
service destinations need to be added.

Can we set this destination properties for remote object by code?

Thanks.


--- In flexcoders@yahoogroups.com, "Cato Paus" <[EMAIL PROTECTED]> wrote:
>
> channel = new AMFChannel('my-amf', 'http://{server.name}:
> {server.port}/flex/messagebroker/amf'); in your as file.
> 
> 
> --- In flexcoders@yahoogroups.com, "xmwang1982"  wrote:
> >
> > Hi,
> > 
> > So far as I know all destinations of remote object must be defined 
> in
> > remote-cofig.xml. 
> > 
> > Can we do it by programming? If we could set destination properties 
> in
> > code, it is much more flexible. 
> > 
> > Anybody knows how to do that?
> > 
> > Here is my code for dynamic channel setting:
> > 
> > var ro:RemoteObject = new RemoteObject();
> > 
> > var cs:ChannelSet = new ChannelSet();
> > var wfc:Channel = new AMFChannel("workflow-
> secure-channel",
> > "https://localhost:8443/Granite/messagebroker/amfsecure";);
> > cs.addChannel(wfc);
> > 
> > ro.channelSet = cs;
> > ro.destination = "WorkFlowServiceDemo";
> > 
> > ro.addEventListener(ResultEvent.RESULT, 
> onResult);
> > ro.addEventListener(FaultEvent.FAULT, 
> onFault);
> > 
> > ro.add(v1.text, v2.text);
> >
>




[flexcoders] Dynamic destination of remote object?

2008-09-08 Thread xmwang1982
Hi,

So far as I know all destinations of remote object must be defined in
remote-cofig.xml. 

Can we do it by programming? If we could set destination properties in
code, it is much more flexible. 

Anybody knows how to do that?

Here is my code for dynamic channel setting:

var ro:RemoteObject = new RemoteObject();

var cs:ChannelSet = new ChannelSet();
var wfc:Channel = new 
AMFChannel("workflow-secure-channel",
"https://localhost:8443/Granite/messagebroker/amfsecure";);
cs.addChannel(wfc);

ro.channelSet = cs;
ro.destination = "WorkFlowServiceDemo";

ro.addEventListener(ResultEvent.RESULT, onResult);
ro.addEventListener(FaultEvent.FAULT, onFault);

ro.add(v1.text, v2.text);



[flexcoders] The same CSS skin looks different after local compiling

2008-06-14 Thread xmwang1982
hi gurus,

I downloaded the vista blue skin sample from scale nine. The skin look
quite good in  the sample. However, it looks quite different in my
machine.

The sample on scale nine's site:

http://www.scalenine.com/themes/vistaBlue/VistaBlue.html

However, in my machine, the title of this window overlaps with window
contents. It looks like:

http://farm4.static.flickr.com/3144/2577701380_21658e0b5f.jpg?v=0

However, it I use the default style of flex, the 

I am using flex builder 3, is it a version problem?

Anybody knows why? How to solve it?

Thanks a lot.



[flexcoders] Re: How to get all itemrenderer instances of a tree?

2008-02-26 Thread xmwang1982
thanks. I need more help from you guys. Let me explain a little more
about my question.

The requirement is, all mouseDown events on leaf nodes have to be
processed, and the event on branch nodes are not needed to be
processed. So I wanted to add event listeners for all leaf nodes in
the "creationComplete" event of the tree's parent control.

Thanks in advance.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Renderers are "virtual"  Only as many instances exist as you can see on
> screen.  They are recycled and used to display other dataprovider items
> as you scroll or expand/contract.  That's why there is no such method.
> You can get to the on-screen renderers via indexToItemRenderer(), but
> you'll be better off working from within the renderers do handle the
> mouse.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of xmwang1982
> Sent: Tuesday, February 26, 2008 6:24 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] How to get all itemrenderer instances of a tree?
> 
>  
> 
> Hi experts,
> 
> I want to listen to the MouseDown event of some of the tree nodes. So
> maybe I need to get their itemrenderer instances then add event
> listeners to them. However, I have no idea to get a list of item
> renderers... seems no such a method exists.
> 
> Could you please give some hints?
> 
> Thanks a lot.
>




[flexcoders] How to get all itemrenderer instances of a tree?

2008-02-26 Thread xmwang1982
Hi experts,

I want to listen to the MouseDown event of some of the tree nodes. So
maybe I need to get their itemrenderer instances then add event
listeners to them. However, I have no idea to get a list of item
renderers... seems  no such a method exists.

Could you please give some hints?

Thanks a lot.



[flexcoders] problem with XMLListCollection addItem()

2008-02-23 Thread xmwang1982
Hi experts,

that's strange if you append a XMLList object into a XMLListCollection
object using addItem() method. It automatically add the following XML
into the XMLList object:

http://www.w3.org/2001/XMLSchema-instance";>
  B93F361A-9266-CE11-76D1-467B259373F8


It causes some mistakes. For example, if you are using this
XMLListCollection object as data provider of a tree, there would be a
new node for this "mx_internal_uid".

Any idea to avoid this problem? Thanks a lot.



[flexcoders] Re: Tree Branch???

2008-02-21 Thread xmwang1982
great idea! thank you.

--- In flexcoders@yahoogroups.com, "Rafael Faria"
<[EMAIL PROTECTED]> wrote:
>
> Try to set your labelFunction to this one
> 
> labelFunction = "parseBranches"
> 
> 
> 
> 
> 
> private function parseBranches(item:XML):String
> {
>   if (item.name() == "folder") {
>   [EMAIL PROTECTED] = true;
>   }
>   return [EMAIL PROTECTED];
> }
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "xmwang1982"  wrote:
> >
> > Hi Ryan,
> > 
> > Thanks. It seems data decriptor is only for reading properties, not 
> > changing.
> > 
> > Actually I think my problem is common, for example:
> > 
> > 
> >
> >
> > 
> > 
> > In the xml above, node named "Folder" should be always displayed as a 
> > branch. However, the default of flex tree is, if the node doesn't 
> > have sub nodes, display it as leaf. 
> > 
> > So the question comes up, how to set "isBranch" property base on node 
> > names?
> > 
> > Thanks a lot.
> > 
> > --- In flexcoders@yahoogroups.com, "Ryan Frishberg"  
> > wrote:
> > >
> > > Check out dataDescriptor.  You should be able to google (or search
> > > these forums) for it and get something on how to use this feature.  
> > If
> > > not, post back.
> > > 
> > > -Ryan
> > > 
> > > --- In flexcoders@yahoogroups.com, "xmwang1982"  wrote:
> > > >
> > > > Thanks Raf,
> > > > 
> > > > However, what I need is something called "isBranchFunction", in 
> > which
> > > > we can set "isBranch" property base on e.g. node name.
> > > > 
> > > > Thanks.
> > > > 
> > > > --- In flexcoders@yahoogroups.com, "Rafael Faria"
> > > >  wrote:
> > > > >
> > > > > actually you can define a function to "labelFunction".
> > > > > 
> > > > > Check
> > > > >
> > > >
> > > http://blog.flexexamples.com/2007/10/29/defining-a-custom-label-
> > function-on-a-flex-tree-control/
> > > > > 
> > > > > 
> > > > > raf
> > > > > 
> > > > > --- In flexcoders@yahoogroups.com, "xmwang1982"  wrote:
> > > > > >
> > > > > > Hi experts,
> > > > > > 
> > > > > > Can we determine the "isBranch" property of a tree node in a
> > > > function? 
> > > > > > I need to set this property according to XML node name. It 
> > would be 
> > > > > > nice if we can define a function like "labelFunction". 
> > However it
> > > > seems 
> > > > > > not existing. 
> > > > > > 
> > > > > > I don't want to translate my XML to new XML  > > > > > isBranch=..>   How to set the property in runtime? Thanks.
> > > > > >
> > > > >
> > > >
> > >
> >
>




[flexcoders] Re: Tree Branch???

2008-02-19 Thread xmwang1982
Hi Ryan,

Thanks. It seems data decriptor is only for reading properties, not 
changing.

Actually I think my problem is common, for example:


   
   


In the xml above, node named "Folder" should be always displayed as a 
branch. However, the default of flex tree is, if the node doesn't 
have sub nodes, display it as leaf. 

So the question comes up, how to set "isBranch" property base on node 
names?

Thanks a lot.

--- In flexcoders@yahoogroups.com, "Ryan Frishberg" <[EMAIL PROTECTED]> 
wrote:
>
> Check out dataDescriptor.  You should be able to google (or search
> these forums) for it and get something on how to use this feature.  
If
> not, post back.
> 
> -Ryan
> 
> --- In flexcoders@yahoogroups.com, "xmwang1982"  wrote:
> >
> > Thanks Raf,
> > 
> > However, what I need is something called "isBranchFunction", in 
which
> > we can set "isBranch" property base on e.g. node name.
> > 
> > Thanks.
> > 
> > --- In flexcoders@yahoogroups.com, "Rafael Faria"
> >  wrote:
> > >
> > > actually you can define a function to "labelFunction".
> > > 
> > > Check
> > >
> >
> http://blog.flexexamples.com/2007/10/29/defining-a-custom-label-
function-on-a-flex-tree-control/
> > > 
> > > 
> > > raf
> > > 
> > > --- In flexcoders@yahoogroups.com, "xmwang1982"  wrote:
> > > >
> > > > Hi experts,
> > > > 
> > > > Can we determine the "isBranch" property of a tree node in a
> > function? 
> > > > I need to set this property according to XML node name. It 
would be 
> > > > nice if we can define a function like "labelFunction". 
However it
> > seems 
> > > > not existing. 
> > > > 
> > > > I don't want to translate my XML to new XML  > > > isBranch=..>   How to set the property in runtime? Thanks.
> > > >
> > >
> >
>




[flexcoders] Re: Tree Branch???

2008-02-18 Thread xmwang1982
Thanks Raf,

However, what I need is something called "isBranchFunction", in which
we can set "isBranch" property base on e.g. node name.

Thanks.

--- In flexcoders@yahoogroups.com, "Rafael Faria"
<[EMAIL PROTECTED]> wrote:
>
> actually you can define a function to "labelFunction".
> 
> Check
>
http://blog.flexexamples.com/2007/10/29/defining-a-custom-label-function-on-a-flex-tree-control/
> 
> 
> raf
> 
> --- In flexcoders@yahoogroups.com, "xmwang1982"  wrote:
> >
> > Hi experts,
> > 
> > Can we determine the "isBranch" property of a tree node in a
function? 
> > I need to set this property according to XML node name. It would be 
> > nice if we can define a function like "labelFunction". However it
seems 
> > not existing. 
> > 
> > I don't want to translate my XML to new XML  > isBranch=..>   How to set the property in runtime? Thanks.
> >
>




[flexcoders] Re: Key Down event lost after add a child component

2008-02-17 Thread xmwang1982
hi all, thank you guys so much... it works!

--- In flexcoders@yahoogroups.com, "maunger" <[EMAIL PROTECTED]> wrote:
>
> Like Dan said, you gotta get focus back!
> 
> you can do something like
> 
> stage.focus = this;
> 
> or 
> 
> stage.focus = Application.application.someobjectname;  // if you
want to point to 
> something specific that you've named.
> 
> --- In flexcoders@yahoogroups.com, "xmwang1982"  wrote:
> >
> > Hi,
> > 
> > I have an component base on Canvas. It allows adding new child 
> > component via drag-drop. the problem is, every time after a new child 
> > is added, its Key Down event is not triggerred anymore. The event
will 
> > be back after click on one of the children.
> > 
> > No code exists for the mouse events of children. So I think something 
> > happen in background
> > 
> > Any idea? Thanks.
> >
>




[flexcoders] Tree Branch???

2008-02-16 Thread xmwang1982
Hi experts,

Can we determine the "isBranch" property of a tree node in a function? 
I need to set this property according to XML node name. It would be 
nice if we can define a function like "labelFunction". However it seems 
not existing. 

I don't want to translate my XML to new XMLHow to set the property in runtime? Thanks.



[flexcoders] Key Down event lost after add a child component

2008-02-16 Thread xmwang1982
Hi,

I have an component base on Canvas. It allows adding new child 
component via drag-drop. the problem is, every time after a new child 
is added, its Key Down event is not triggerred anymore. The event will 
be back after click on one of the children.

No code exists for the mouse events of children. So I think something 
happen in background

Any idea? Thanks.



[flexcoders] Bring a component to the top layer

2008-02-15 Thread xmwang1982
Hi,

how to bring a component to the top layer dynamically? I couldn't find 
out the method in AS3 help. Please give me a hint.

Thanks.



[flexcoders] Re: Problem to re-render a "Connector" component

2008-02-15 Thread xmwang1982
Hi, I solved the re-render issue by myself. I just have added one row 
to call validateNow() method of UIComponent.

However, it is still better to know some visio-like examples for me. 
Please help. Thanks.

--- In flexcoders@yahoogroups.com, "xmwang1982" <[EMAIL PROTECTED]> wrote:
>
> Hi experts,
> 
> I am going to design component called "connector", which draws a line
> between the point at which you press your mouse and the point at which
> you release your mouse. Before release mouse, the line end point
> should follow the mouse -- like you see in MS visio when you draw a
> line to connect 2 objects.
> 
> Base on UIComponent, I wrote a component which draws a line on screen
> between 2 given points. Then in MouseMove event, I tried to change the
> end point. However, the component doesn't re-render itself. 
> 
> What's wrong with it? Do you known any open-source examples looks like
> visio?
> 
> Thanks a lot.
>




[flexcoders] Problem to re-render a "Connector" component

2008-02-15 Thread xmwang1982
Hi experts,

I am going to design component called "connector", which draws a line
between the point at which you press your mouse and the point at which
you release your mouse. Before release mouse, the line end point
should follow the mouse -- like you see in MS visio when you draw a
line to connect 2 objects.

Base on UIComponent, I wrote a component which draws a line on screen
between 2 given points. Then in MouseMove event, I tried to change the
end point. However, the component doesn't re-render itself. 

What's wrong with it? Do you known any open-source examples looks like
visio?

Thanks a lot.