Macromedia Flash Server - Custom FCS Component Binding Issues

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > April 2005 > Custom FCS Component Binding Issues





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Custom FCS Component Binding Issues
Harper, Chris

2005-04-07, 5:57 pm

Hi all,

I've built a V2 component that connects to FCS and creates a shared
object inside of itself to store a users list. It extends the MovieClip
class (not UIObject or UIComponent). I've also built a component that
extends MovieClip that displays the users connected. How do I bind
these two so when the connection gets an update to the Shared Object it
updates all the other components that need that users list? I've tried
everything in the code for the components and in the component inspector
but there just isn't enough documentation on this.

=20

Here are links to the classes for both components if somebody would like
to take a look:

=20

The Connection Component

http://www.chris-harper.com/compone...S_Connection.as

=20

The User List Component

http://www.chris-harper.com/component_code/UserList.as

=20

=20


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Jim Cheng

2005-04-07, 5:57 pm

Harper, Chris wrote:

> I've built a V2 component that connects to FCS and creates a shared
> object inside of itself to store a users list. It extends the MovieClip
> class (not UIObject or UIComponent). I've also built a component that
> extends MovieClip that displays the users connected. How do I bind
> these two so when the connection gets an update to the Shared Object it
> updates all the other components that need that users list? I've tried
> everything in the code for the components and in the component inspector
> but there just isn't enough documentation on this.


Perfect case for using the EventDispatcher API.

Mix in the EventDispatcher API into FCS_Connection (an easy way to do
this is to simply extend UIComponent rather than MovieClip). Now, in
your onSync handler for the shared object, dispatch a custom event via
the dispatchEvent method, say "userListChange".

In all other interested components, have them add listeners to the
FCS_Connection component for this event and act accordingly when its
fired.

Jim

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brian Lesser

2005-04-07, 5:57 pm

....another method is to make the shared object itself a broadcaster so
that multiple components can respond to onSync messages. This is similar
to MVC and having multiple views respond to changes in a single model.
If you have programming Flash Communication Server have a look at the
"Listenable Shared Objects" section on page 485. You'll also find the
source for the SharedObjectFactory in either the PeopleList.zip or
PeopleGrid.zip files here:
http://flash-communications.net/sourceCode/index.html

Yours truly,
-Brian

Jim Cheng wrote:

> Harper, Chris wrote:
>
>
>
> Perfect case for using the EventDispatcher API.
>
> Mix in the EventDispatcher API into FCS_Connection (an easy way to do
> this is to simply extend UIComponent rather than MovieClip). Now, in
> your onSync handler for the shared object, dispatch a custom event via
> the dispatchEvent method, say "userListChange".
>
> In all other interested components, have them add listeners to the
> FCS_Connection component for this event and act accordingly when its
> fired.
>
> Jim
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm




--
________________________________________
______________________________
Brian Lesser
Assistant Director, Teaching and Technology Support
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario Phone: (416) 979-5000 ext. 6835
M5B 2K3 Fax: (416) 979-5220
Office: AB48D E-mail: blesser-6s6ziW1YCwCw5LPnMra/2Q@public.gmane.org
(Enter through LB66) Web: http://www.ryerson.ca/~blesser
________________________________________
______________________________


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Harper, Chris

2005-04-07, 5:57 pm

Thanks you guys. Brain, I still need to buy the book

So is there a way to use the [Bindable] meta tag in the FCS_Connection
and the UserList components instead of using listeners? =20

I'm trying to let the people in creative just drop the FCS_Connection
component into their flash pieces and then use the binding tab in the
Component Inspector to sync it to whatever other component they want.

Thanks!

Chris

-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Brian
Lesser
Sent: Thursday, April 07, 2005 12:09 PM
To: FlashComm Mailing List
Subject: Re: [FlashComm] Custom FCS Component Binding Issues

....another method is to make the shared object itself a broadcaster so=20
that multiple components can respond to onSync messages. This is similar

to MVC and having multiple views respond to changes in a single model.=20
If you have programming Flash Communication Server have a look at the=20
"Listenable Shared Objects" section on page 485. You'll also find the=20
source for the SharedObjectFactory in either the PeopleList.zip or=20
PeopleGrid.zip files here:
http://flash-communications.net/sourceCode/index.html

Yours truly,
-Brian

Jim Cheng wrote:

> Harper, Chris wrote:
>
MovieClip[vbcol=seagreen]
that[vbcol=seagreen]
it[vbcol=seagreen]
tried[vbcol=seagreen]
inspector[vbcol=seagreen]
>
>
> Perfect case for using the EventDispatcher API.
>
> Mix in the EventDispatcher API into FCS_Connection (an easy way to do=20
> this is to simply extend UIComponent rather than MovieClip). Now, in=20
> your onSync handler for the shared object, dispatch a custom event via


> the dispatchEvent method, say "userListChange".
>
> In all other interested components, have them add listeners to the
> FCS_Connection component for this event and act accordingly when its
> fired.
>
> Jim
>
> =3D-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =3D-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm




--=20
________________________________________
______________________________
Brian Lesser
Assistant Director, Teaching and Technology Support
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario Phone: (416) 979-5000 ext. 6835
M5B 2K3 Fax: (416) 979-5220
Office: AB48D E-mail: blesser-6s6ziW1YCwCw5LPnMra/2Q@public.gmane.org
(Enter through LB66) Web: http://www.ryerson.ca/~blesser
________________________________________
______________________________


=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brian Lesser

2005-04-07, 5:57 pm

Hi Chris,
I don't bother with the component inspector but I think you can. If you
look in the PeopleGrid.zip file's fla you'll see something like this in
the Room frame of the timeline:

peopleGrid.nc = application.nc;
status.nc = application.nc;
videoConference.people_so = peopleGrid.people_so;

In other words the peopleGrid has a getter named people_so that returns
a reference to the shared object it manages. The videoConference
component has a setter named people_so that it uses to set itself up as
a listener on the peopleGrid's shared object. Since the shared object
was created using the SharedObject factory it is already an event
broadcaster.

To simplify things a bit, the videoConference component does this:

__people_so = people_so;
__people_so.addEventListener("onSync", this);
if (__people_so.isConnected){
var list = [];
for (var p in __people_so.data){
list.push({code:"change", name: p});
}
onSync({target:__people_so, list:list});

The videoConference has its own onSync method that will be called
whenever the people_so shared object is synchronized. The
videoConference component never updates the people_so. That is the job
of the PeopleGrid.

Does that help?
Yours truly,
-B

Harper, Chris wrote:

>Thanks you guys. Brain, I still need to buy the book
>
>So is there a way to use the [Bindable] meta tag in the FCS_Connection
>and the UserList components instead of using listeners?
>
>I'm trying to let the people in creative just drop the FCS_Connection
>component into their flash pieces and then use the binding tab in the
>Component Inspector to sync it to whatever other component they want.
>
>Thanks!
>
>Chris
>
>-----Original Message-----
>From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Brian
>Lesser
>Sent: Thursday, April 07, 2005 12:09 PM
>To: FlashComm Mailing List
>Subject: Re: [FlashComm] Custom FCS Component Binding Issues
>
>...another method is to make the shared object itself a broadcaster so
>that multiple components can respond to onSync messages. This is similar
>
>to MVC and having multiple views respond to changes in a single model.
>If you have programming Flash Communication Server have a look at the
>"Listenable Shared Objects" section on page 485. You'll also find the
>source for the SharedObjectFactory in either the PeopleList.zip or
>PeopleGrid.zip files here:
>http://flash-communications.net/sourceCode/index.html
>
>Yours truly,
>-Brian
>
>Jim Cheng wrote:
>
>
>
>MovieClip
>
>
>that
>
>
>it
>
>
>tried
>
>
>inspector
>
>
>
>
>
>
>
>
>
>



--
________________________________________
______________________________
Brian Lesser
Assistant Director, Teaching and Technology Support
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario Phone: (416) 979-5000 ext. 6835
M5B 2K3 Fax: (416) 979-5220
Office: AB48D E-mail: blesser-6s6ziW1YCwCw5LPnMra/2Q@public.gmane.org
(Enter through LB66) Web: http://www.ryerson.ca/~blesser
________________________________________
______________________________


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Harper, Chris

2005-04-07, 5:57 pm

Thanks brian, I'll try to wrap my head around that

Mostly though, I was wanting to use the [Bindable] meta tag like I would
if I where building any other component. So it would look like this:

//------------------------------------------//
//Code in the FCS_Connection component class//
//------------------------------------------//

/////This is outside of the class (not sure if its needed//

[Event("change")]

/////Getter setter for BindData//
=09
[ChangeEvent("change")]
[Bindable ("readonly")]
public function set BindData (argValue : Object) : Void {
=09
__BindData =3D argValue;
=09
}
=09
public function get BindData() : Object {
=09
return __BindData;
=09
}

////The shared object code//

function initLobbyResources(nc){=09
=09
var tempOwner : FCS_Connection =3D this;

globalUserList_so =3D
SharedObject.getRemote("globalUserList_so", nc.uri, false);=09
globalUserList_so.ready =3D false; =20
globalUserList_so.onSync =3D function(list){


for (var p in this.data){

tempOwner.BindData =3D this.data[p];

}
=09
}
=09
globalUserList_so.connect(nc);
=09
}



//------------------------------------//
//Code in the UserList component class//
//------------------------------------//

////Getter setter in the UserList//

[Bindable("writeonly")]
public function set users(argValue:Object) { =09
__users =3D argValue;
trace ("SET users called");
draw(); =09
}

public function get users():Object{ =09
trace ("GET users called");
return __users; =09
}


//-----------//
//End of Code//
//-----------//

Granted, I'm new to building v2 components :D

Chris


-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Brian
Lesser
Sent: Thursday, April 07, 2005 1:14 PM
To: FlashComm Mailing List
Subject: Re: [FlashComm] Custom FCS Component Binding Issues

Hi Chris,
I don't bother with the component inspector but I think you can. If you=20
look in the PeopleGrid.zip file's fla you'll see something like this in=20
the Room frame of the timeline:

peopleGrid.nc =3D application.nc;
status.nc =3D application.nc;
videoConference.people_so =3D peopleGrid.people_so;

In other words the peopleGrid has a getter named people_so that returns=20
a reference to the shared object it manages. The videoConference=20
component has a setter named people_so that it uses to set itself up as

a listener on the peopleGrid's shared object. Since the shared object=20
was created using the SharedObject factory it is already an event=20
broadcaster.

To simplify things a bit, the videoConference component does this:

__people_so =3D people_so;
__people_so.addEventListener("onSync", this);
if (__people_so.isConnected){
var list =3D [];
for (var p in __people_so.data){
list.push({code:"change", name: p});
}
onSync({target:__people_so, list:list});

The videoConference has its own onSync method that will be called=20
whenever the people_so shared object is synchronized. The=20
videoConference component never updates the people_so. That is the job=20
of the PeopleGrid.

Does that help?
Yours truly,
-B

Harper, Chris wrote:

>Thanks you guys. Brain, I still need to buy the book
>
>So is there a way to use the [Bindable] meta tag in the FCS_Connection
>and the UserList components instead of using listeners? =20
>
>I'm trying to let the people in creative just drop the FCS_Connection
>component into their flash pieces and then use the binding tab in the
>Component Inspector to sync it to whatever other component they want.
>
>Thanks!
>
>Chris
>
>-----Original Message-----
>From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Brian
>Lesser
>Sent: Thursday, April 07, 2005 12:09 PM
>To: FlashComm Mailing List
>Subject: Re: [FlashComm] Custom FCS Component Binding Issues
>
>...another method is to make the shared object itself a broadcaster so=20
>that multiple components can respond to onSync messages. This is

similar
>
>to MVC and having multiple views respond to changes in a single model.=20
>If you have programming Flash Communication Server have a look at the=20
>"Listenable Shared Objects" section on page 485. You'll also find the=20
>source for the SharedObjectFactory in either the PeopleList.zip or=20
>PeopleGrid.zip files here:
>http://flash-communications.net/sourceCode/index.html
>
>Yours truly,
>-Brian
>
>Jim Cheng wrote:
>
> =20
>
>MovieClip
> =20
>
>that
> =20
>
>it
> =20
>
>tried
> =20
>
>inspector
> =20
>
>
> =20
>
>
>
>
> =20
>



--=20
________________________________________
______________________________
Brian Lesser
Assistant Director, Teaching and Technology Support
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario Phone: (416) 979-5000 ext. 6835
M5B 2K3 Fax: (416) 979-5220
Office: AB48D E-mail: blesser-6s6ziW1YCwCw5LPnMra/2Q@public.gmane.org
(Enter through LB66) Web: http://www.ryerson.ca/~blesser
________________________________________
______________________________


=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brian Lesser

2005-04-07, 5:57 pm

Hi Chris,
I "think" you should be able to do a bindable setter like

public function set people_so (people_so:SharedObject){
__people_so = people_so;

__people_so.addEventListener("onSync", this);

if (__people_so.isConnected){

var list = [];

for (var p in __people_so.data){

list.push({code:"change", name: p});

}

onSync({target:__people_so, list:list});

}

Otherwise you could have the owner of the shared object do exacty what
Jim was suggesting.
Yours truly,
-Brian

Harper, Chris wrote:

>Thanks brian, I'll try to wrap my head around that
>
>Mostly though, I was wanting to use the [Bindable] meta tag like I would
>if I where building any other component. So it would look like this:
>
>//------------------------------------------//
>//Code in the FCS_Connection component class//
>//------------------------------------------//
>
>/////This is outside of the class (not sure if its needed//
>
> [Event("change")]
>
>/////Getter setter for BindData//
>
> [ChangeEvent("change")]
> [Bindable ("readonly")]
> public function set BindData (argValue : Object) : Void {
>
> __BindData = argValue;
>
> }
>
> public function get BindData() : Object {
>
> return __BindData;
>
> }
>
>////The shared object code//
>
> function initLobbyResources(nc){
>
> var tempOwner : FCS_Connection = this;
>
> globalUserList_so =
>SharedObject.getRemote("globalUserList_so", nc.uri, false);
> globalUserList_so.ready = false;
> globalUserList_so.onSync = function(list){
>
>
> for (var p in this.data){
>
> tempOwner.BindData = this.data[p];
>
> }
>
> }
>
> globalUserList_so.connect(nc);
>
> }
>
>
>
>//------------------------------------//
>//Code in the UserList component class//
>//------------------------------------//
>
>////Getter setter in the UserList//
>
> [Bindable("writeonly")]
> public function set users(argValue:Object) {
> __users = argValue;
> trace ("SET users called");
> draw();
> }
>
> public function get users():Object{
> trace ("GET users called");
> return __users;
> }
>
>
>//-----------//
>//End of Code//
>//-----------//
>
>Granted, I'm new to building v2 components :D
>
>Chris
>
>
>-----Original Message-----
>From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Brian
>Lesser
>Sent: Thursday, April 07, 2005 1:14 PM
>To: FlashComm Mailing List
>Subject: Re: [FlashComm] Custom FCS Component Binding Issues
>
>Hi Chris,
>I don't bother with the component inspector but I think you can. If you
>look in the PeopleGrid.zip file's fla you'll see something like this in
>the Room frame of the timeline:
>
> peopleGrid.nc = application.nc;
> status.nc = application.nc;
> videoConference.people_so = peopleGrid.people_so;
>
>In other words the peopleGrid has a getter named people_so that returns
>a reference to the shared object it manages. The videoConference
>component has a setter named people_so that it uses to set itself up as
>
>a listener on the peopleGrid's shared object. Since the shared object
>was created using the SharedObject factory it is already an event
>broadcaster.
>
>To simplify things a bit, the videoConference component does this:
>
>__people_so = people_so;
>__people_so.addEventListener("onSync", this);
>if (__people_so.isConnected){
> var list = [];
> for (var p in __people_so.data){
> list.push({code:"change", name: p});
> }
>onSync({target:__people_so, list:list});
>
>The videoConference has its own onSync method that will be called
>whenever the people_so shared object is synchronized. The
>videoConference component never updates the people_so. That is the job
>of the PeopleGrid.
>
>Does that help?
>Yours truly,
>-B
>
>Harper, Chris wrote:
>
>
>
>similar
>
>
>
>
>
>



--
________________________________________
______________________________
Brian Lesser
Assistant Director, Teaching and Technology Support
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario Phone: (416) 979-5000 ext. 6835
M5B 2K3 Fax: (416) 979-5220
Office: AB48D E-mail: blesser-6s6ziW1YCwCw5LPnMra/2Q@public.gmane.org
(Enter through LB66) Web: http://www.ryerson.ca/~blesser
________________________________________
______________________________


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Harper, Chris

2005-04-07, 5:58 pm

Huh, so is there no way to do a regular data binding like you would do
with the XMLConnector data component?

-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Brian
Lesser
Sent: Thursday, April 07, 2005 2:04 PM
To: FlashComm Mailing List
Subject: Re: [FlashComm] Custom FCS Component Binding Issues

Hi Chris,
I "think" you should be able to do a bindable setter like

public function set people_so (people_so:SharedObject){
__people_so =3D people_so;

__people_so.addEventListener("onSync", this);

if (__people_so.isConnected){

var list =3D [];

for (var p in __people_so.data){

list.push({code:"change", name: p});

}

onSync({target:__people_so, list:list});

}

Otherwise you could have the owner of the shared object do exacty what=20
Jim was suggesting.
Yours truly,
-Brian

Harper, Chris wrote:

>Thanks brian, I'll try to wrap my head around that
>
>Mostly though, I was wanting to use the [Bindable] meta tag like I

would
>if I where building any other component. So it would look like this:
>
>//------------------------------------------//
>//Code in the FCS_Connection component class//
>//------------------------------------------//
>
>/////This is outside of the class (not sure if its needed//
>
> [Event("change")]
>
>/////Getter setter for BindData//
>=09
> [ChangeEvent("change")]
> [Bindable ("readonly")]
> public function set BindData (argValue : Object) : Void {
> =09
> __BindData =3D argValue;
> =09
> }
>=09
> public function get BindData() : Object {
> =09
> return __BindData;
> =09
> }
>
>////The shared object code//
>
> function initLobbyResources(nc){=09
>=09
> var tempOwner : FCS_Connection =3D this;
>
> globalUserList_so =3D
>SharedObject.getRemote("globalUserList_so", nc.uri, false);=09
> globalUserList_so.ready =3D false; =20
> globalUserList_so.onSync =3D function(list){
>
>
> for (var p in this.data){
>
> tempOwner.BindData =3D this.data[p];
>
> }
> =09
> }
> =09
> globalUserList_so.connect(nc);
>=09
> }
>
>
>
>//------------------------------------//
>//Code in the UserList component class//
>//------------------------------------//
>
>////Getter setter in the UserList//
>
> [Bindable("writeonly")]
> public function set users(argValue:Object) { =09
> __users =3D argValue;
> trace ("SET users called");
> draw(); =09
> }
>
> public function get users():Object{ =09
> trace ("GET users called");
> return __users; =09
> }
>
>
>//-----------//
>//End of Code//
>//-----------//
>
>Granted, I'm new to building v2 components :D
>
>Chris
>
>
>-----Original Message-----
>From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Brian
>Lesser
>Sent: Thursday, April 07, 2005 1:14 PM
>To: FlashComm Mailing List
>Subject: Re: [FlashComm] Custom FCS Component Binding Issues
>
>Hi Chris,
>I don't bother with the component inspector but I think you can. If you


>look in the PeopleGrid.zip file's fla you'll see something like this in


>the Room frame of the timeline:
>
> peopleGrid.nc =3D application.nc;
> status.nc =3D application.nc;
> videoConference.people_so =3D peopleGrid.people_so;
>
>In other words the peopleGrid has a getter named people_so that returns


>a reference to the shared object it manages. The videoConference=20
>component has a setter named people_so that it uses to set itself up

as
>
>a listener on the peopleGrid's shared object. Since the shared object=20
>was created using the SharedObject factory it is already an event=20
>broadcaster.
>
>To simplify things a bit, the videoConference component does this:
>
>__people_so =3D people_so;
>__people_so.addEventListener("onSync", this);
>if (__people_so.isConnected){
> var list =3D [];
> for (var p in __people_so.data){
> list.push({code:"change", name: p});
> }
>onSync({target:__people_so, list:list});
>
>The videoConference has its own onSync method that will be called=20
>whenever the people_so shared object is synchronized. The=20
>videoConference component never updates the people_so. That is the job=20
>of the PeopleGrid.
>
>Does that help?
>Yours truly,
>-B
>
>Harper, Chris wrote:
>
> =20
>
[vbcol=seagreen]
>similar
> =20
>
[vbcol=seagreen]
[vbcol=seagreen]
[vbcol=seagreen]
via[vbcol=seagreen]
>
>
> =20
>



--=20
________________________________________
______________________________
Brian Lesser
Assistant Director, Teaching and Technology Support
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario Phone: (416) 979-5000 ext. 6835
M5B 2K3 Fax: (416) 979-5220
Office: AB48D E-mail: blesser-6s6ziW1YCwCw5LPnMra/2Q@public.gmane.org
(Enter through LB66) Web: http://www.ryerson.ca/~blesser
________________________________________
______________________________


=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Harper, Chris

2005-04-07, 5:58 pm

Hey Jim, could you give me an example of this?

Chris

-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Jim Cheng
Sent: Thursday, April 07, 2005 11:43 AM
To: FlashComm Mailing List
Subject: Re: [FlashComm] Custom FCS Component Binding Issues

Harper, Chris wrote:

> I've built a V2 component that connects to FCS and creates a shared
> object inside of itself to store a users list. It extends the

MovieClip
> class (not UIObject or UIComponent). I've also built a component that
> extends MovieClip that displays the users connected. How do I bind
> these two so when the connection gets an update to the Shared Object

it
> updates all the other components that need that users list? I've

tried
> everything in the code for the components and in the component

inspector
> but there just isn't enough documentation on this.


Perfect case for using the EventDispatcher API.

Mix in the EventDispatcher API into FCS_Connection (an easy way to do=20
this is to simply extend UIComponent rather than MovieClip). Now, in=20
your onSync handler for the shared object, dispatch a custom event via=20
the dispatchEvent method, say "userListChange".

In all other interested components, have them add listeners to the
FCS_Connection component for this event and act accordingly when its
fired.

Jim

=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Jim Cheng

2005-04-07, 5:58 pm

Harper, Chris wrote:

> Hey Jim, could you give me an example of this?


Sure. I'm not sure whether it'll compile (haven't tried it and I don't
have the rest of your source code anyhow), but here's how I'd do it
using your classes. Look for the comments prefixed with JMC for my
changes to add in event dispatching of the user list change:

http://dev.psalterego.com/FCS_Connection.as

http://dev.psalterego.com/UserList.as

For cases like this, the EventDispatcher API really rocks. It basically
provides a means for class instances to register to be notified of an
interesting event in another class instance (they don't have to even be
related). Unlike the old-school callbacks, the EventDispatcher API
supports essentially an unlimited number of registered listeners.

You can read more about it in the Components documentation included with
Flash MX 2004.

Jim

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brian Lesser

2005-04-07, 5:58 pm

Hi Chris,
I meant the opposite. I think you can - its just that I have never
bothered. What I was thinking was:

1. Inside one component use SharedObjectFactory.getRemote() to get an SO
that is already an event broadcaster.
2. create a getter to get the shared object from that component and a
setter within another component
3. declare the getters/setters bindable (or whatever you have to do to
make the component inspector see the getter and setter).
4. bind the components in the inspector on the shared object property.
For example on people_so

Now both components will have a reference to the shared object and both
will receive onSync events. I don't know if that's really what you're
looking for but if it sounds right I'll try to find a few minutes to
check that it all works that way. If Jim's suggestion looks like an
easier path that's cool too.
Yours truly,
-Brian

Harper, Chris wrote:

>Huh, so is there no way to do a regular data binding like you would do
>with the XMLConnector data component?
>
>-----Original Message-----
>From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Brian
>Lesser
>Sent: Thursday, April 07, 2005 2:04 PM
>To: FlashComm Mailing List
>Subject: Re: [FlashComm] Custom FCS Component Binding Issues
>
>Hi Chris,
>I "think" you should be able to do a bindable setter like
>
>public function set people_so (people_so:SharedObject){
>__people_so = people_so;
>
>__people_so.addEventListener("onSync", this);
>
>if (__people_so.isConnected){
>
> var list = [];
>
> for (var p in __people_so.data){
>
> list.push({code:"change", name: p});
>
> }
>
>onSync({target:__people_so, list:list});
>
>}
>
>Otherwise you could have the owner of the shared object do exacty what
>Jim was suggesting.
>Yours truly,
>-Brian
>
>Harper, Chris wrote:
>
>
>
>would
>
>
>
>
>
>
>
>
>
>
>
>as
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>via
>
>
>
>
>
>



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Harper, Chris

2005-04-07, 5:58 pm

I'm about to check out Jim's method. Simpler questions would be:

1. How do you make a v2 component that extends the MovieClip class (not
UIComponent or UIObject) that can send bindable data with the [Bindable]
tag from its own SO?

2. How do you make a component that can receive this bindable data
using the [Bindable] tag?

3. How do you bind both together and are there any pitfalls like load
order?

Thanks!

Chris

-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Brian
Lesser
Sent: Thursday, April 07, 2005 3:53 PM
To: FlashComm Mailing List
Subject: Re: [FlashComm] Custom FCS Component Binding Issues

Hi Chris,
I meant the opposite. I think you can - its just that I have never=20
bothered. What I was thinking was:

1. Inside one component use SharedObjectFactory.getRemote() to get an SO

that is already an event broadcaster.
2. create a getter to get the shared object from that component and a=20
setter within another component
3. declare the getters/setters bindable (or whatever you have to do to=20
make the component inspector see the getter and setter).
4. bind the components in the inspector on the shared object property.=20
For example on people_so

Now both components will have a reference to the shared object and both=20
will receive onSync events. I don't know if that's really what you're=20
looking for but if it sounds right I'll try to find a few minutes to=20
check that it all works that way. If Jim's suggestion looks like an=20
easier path that's cool too.
Yours truly,
-Brian

Harper, Chris wrote:

>Huh, so is there no way to do a regular data binding like you would do
>with the XMLConnector data component?
>
>-----Original Message-----
>From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Brian
>Lesser
>Sent: Thursday, April 07, 2005 2:04 PM
>To: FlashComm Mailing List
>Subject: Re: [FlashComm] Custom FCS Component Binding Issues
>
>Hi Chris,
>I "think" you should be able to do a bindable setter like
>
>public function set people_so (people_so:SharedObject){
>__people_so =3D people_so;
>
>__people_so.addEventListener("onSync", this);
>
>if (__people_so.isConnected){
>
> var list =3D [];
>
> for (var p in __people_so.data){
>
> list.push({code:"change", name: p});
>
> }
>
>onSync({target:__people_so, list:list});
>
>}
>
>Otherwise you could have the owner of the shared object do exacty what=20
>Jim was suggesting.
>Yours truly,
>-Brian
>
>Harper, Chris wrote:
>
> =20
>
>would
> =20
>
you[vbcol=seagreen]
>
> =20
>
in[vbcol=seagreen]
>
> =20
>
returns[vbcol=seagreen]
>
> =20
>
>as
> =20
>
[vbcol=seagreen]
FCS_Connection[vbcol=seagreen]
so[vbcol=seagreen]
>
> =20
>
model.[vbcol=seagreen]
>
> =20
>
[vbcol=seagreen]
[vbcol=seagreen]
Object[vbcol=seagreen]
do[vbcol=seagreen]
>
> =20
>
in[vbcol=seagreen]
>
> =20
>
>via
> =20
>
>
>
> =20
>



=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brian Lesser

2005-04-07, 5:58 pm

Hi Chris,
I'm still struggling with why you would want to propagate shared object
updates via a bindable property but you can make a movie clip into an
event broadcaster by doing this in it's constructor or onLoad method:

<>mx.events.EventDispatcher.initialize(this);

I don't know if that is all you need to answer question 1 though.

Cheers,<>
-Brian


Harper, Chris wrote:
[vbcol=seagreen]
>I'm about to check out Jim's method. Simpler questions would be:
>
>1. How do you make a v2 component that extends the MovieClip class (not
>UIComponent or UIObject) that can send bindable data with the [Bindable]
>tag from its own SO?
>
>2. How do you make a component that can receive this bindable data
>using the [Bindable] tag?
>
>3. How do you bind both together and are there any pitfalls like load
>order?
>
>Thanks!
>
>Chris
>
>-----Original Message-----
>From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Brian
>Lesser
>Sent: Thursday, April 07, 2005 3:53 PM
>To: FlashComm Mailing List
>Subject: Re: [FlashComm] Custom FCS Component Binding Issues
>
>Hi Chris,
>I meant the opposite. I think you can - its just that I have never
>bothered. What I was thinking was:
>
>1. Inside one component use SharedObjectFactory.getRemote() to get an SO
>
>that is already an event broadcaster.
>2. create a getter to get the shared object from that component and a
>setter within another component
>3. declare the getters/setters bindable (or whatever you have to do to
>make the component inspector see the getter and setter).
>4. bind the components in the inspector on the shared object property.
>For example on people_so
>
>Now both components will have a reference to the shared object and both
>will receive onSync events. I don't know if that's really what you're
>looking for but if it sounds right I'll try to find a few minutes to
>check that it all works that way. If Jim's suggestion looks like an
>easier path that's cool too.
>Yours truly,
>-Brian
>
>Harper, Chris wrote:
>
>
>
>you
>
>
>in
>
>
>returns
>
>
>
>
>
>FCS_Connection
>
>
>so
>
>
>model.
>
>
>
>
>
>
>
>
>Object
>
>
>do
>
>
>in
>
>


=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Harper, Chris

2005-04-07, 5:58 pm

I wanted to propagate shared object updates through the bindable
property mostly for packaging. =20

I wanted to create a custom FCS connection component that people could
drop into their flash apps and then bind things like my custom user list
component via the Component Inspector (similar to the current simple
connect).

I wanted to make it as easy to use, without any coding, so people in
creative, and possibly marketing, can re-use this beast

Chris

-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Brian
Lesser
Sent: Thursday, April 07, 2005 4:39 PM
To: FlashComm Mailing List
Subject: Re: [FlashComm] Custom FCS Component Binding Issues

Hi Chris,
I'm still struggling with why you would want to propagate shared object=20
updates via a bindable property but you can make a movie clip into an=20
event broadcaster by doing this in it's constructor or onLoad method:

<>mx.events.EventDispatcher.initialize(this);

I don't know if that is all you need to answer question 1 though.

Cheers,<>
-Brian


Harper, Chris wrote:

>I'm about to check out Jim's method. Simpler questions would be:
>
>1. How do you make a v2 component that extends the MovieClip class

(not
>UIComponent or UIObject) that can send bindable data with the

[Bindable]
>tag from its own SO?
>
>2. How do you make a component that can receive this bindable data
>using the [Bindable] tag?
>
>3. How do you bind both together and are there any pitfalls like load
>order?
>
>Thanks!
>
>Chris
>
>-----Original Message-----
>From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
>[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Brian
>Lesser
>Sent: Thursday, April 07, 2005 3:53 PM
>To: FlashComm Mailing List
>Subject: Re: [FlashComm] Custom FCS Component Binding Issues
>
>Hi Chris,
>I meant the opposite. I think you can - its just that I have never=20
>bothered. What I was thinking was:
>
>1. Inside one component use SharedObjectFactory.getRemote() to get an

SO
>
>that is already an event broadcaster.
>2. create a getter to get the shared object from that component and a=20
>setter within another component
>3. declare the getters/setters bindable (or whatever you have to do to=20
>make the component inspector see the getter and setter).
>4. bind the components in the inspector on the shared object property.=20
>For example on people_so
>
>Now both components will have a reference to the shared object and both

[vbcol=seagreen]
>will receive onSync events. I don't know if that's really what you're=20
>looking for but if it sounds right I'll try to find a few minutes to=20
>check that it all works that way. If Jim's suggestion looks like an=20
>easier path that's cool too.
>Yours truly,
>-Brian
>
>Harper, Chris wrote:
>
> =20
>
[vbcol=seagreen]
>you
> =20
>
>in
> =20
>
>returns
> =20
>
[vbcol=seagreen]
job[vbcol=seagreen]
>
> =20
>
>FCS_Connection
> =20
>
FCS_Connection[vbcol=seagreen]
the[vbcol=seagreen]
want.[vbcol=seagreen]
>so
> =20
>
>model.
> =20
>
the[vbcol=seagreen]
>
> =20
>
the[vbcol=seagreen]
>
> =20
>
shared[vbcol=seagreen]
bind[vbcol=seagreen]
>Object
> =20
>
>do
> =20
>
>in
> =20
>
its[vbcol=seagreen]


=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Jim Cheng

2005-04-07, 8:45 pm

Harper, Chris wrote:
> I wanted to propagate shared object updates through the bindable
> property mostly for packaging.
>
> I wanted to create a custom FCS connection component that people could
> drop into their flash apps and then bind things like my custom user list
> component via the Component Inspector (similar to the current simple
> connect).
>
> I wanted to make it as easy to use, without any coding, so people in
> creative, and possibly marketing, can re-use this beast


Hmm, I can't really help you there.

As nice as they are for non-developers, I know virtually nothing about
data binding, having taken the oath against data binding the day I
started to learn Actionscript from the alien overlords (just kidding!).

From a development perspective, the Event Dispatcher API is much more
flexible, as well as simpler, than the rarely-used Data Binding API.

While data binding is typically taught to allow designers and other
non-developers to quickly have access to XML and RDBMS content from
Flash, I personally know very little about the API and aside from the
connectors that shipped with Flash MX 2004, haven't seen data binding
used very much at all by the Flash development community as a whole.

Looking through the MM documentation, there is some discussion of the
API in the Components Dictionary under "Data binding classes," though
I'm not sure where to send you for more information aside from that.

Jim

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brian Lesser

2005-04-07, 8:45 pm

Hi Chris,
I don't know if I'll have time to play with shared objects but I have a
bindable netconnection now. I could not get it to work when subclassing
a movie clip. I had to subclass a UIComponent. The magic seems to happen
in super.init().
Yours truly,
-Brian

Harper, Chris wrote:

>I wanted to propagate shared object updates through the bindable
>property mostly for packaging.
>
>I wanted to create a custom FCS connection component that people could
>drop into their flash apps and then bind things like my custom user list
>component via the Component Inspector (similar to the current simple
>connect).
>
>I wanted to make it as easy to use, without any coding, so people in
>creative, and possibly marketing, can re-use this beast
>
>Chris
>
>



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Brian Lesser

2005-04-08, 2:45 am

Hi Chris,
Here is a demo that does something like what you want:

http://www.flash-communications.net...le/bindable.zip

It binds a NetConnection that is updated when the connection is
established and broken and binds a shared object info object containing
a reference to the shared object and the last infoList passed into
onSync whenever there is an onSync call.

I don't think I like this approach but I have it working and so it may
be of some use to you. I think a better approach would be to bind the so
itself and make it an onSync broadcaster. But maybe I'll try that some
other day...
Cheers,
-Brian

Harper, Chris wrote:

>I wanted to propagate shared object updates through the bindable
>property mostly for packaging.
>
>I wanted to create a custom FCS connection component that people could
>drop into their flash apps and then bind things like my custom user list
>component via the Component Inspector (similar to the current simple
>connect).
>
>I wanted to make it as easy to use, without any coding, so people in
>creative, and possibly marketing, can re-use this beast
>
>Chris
>
>
>



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Stefan Richter

2005-04-08, 7:45 am

Chris,
Is there a particular reason why you don't want to extend UI Component?

Stefan



> -----Original Message-----
> From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> [mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of
> Harper, Chris
> Sent: 07 April 2005 23:49
> To: FlashComm Mailing List
> Subject: RE: [FlashComm] Custom FCS Component Binding Issues
>
> I wanted to propagate shared object updates through the
> bindable property mostly for packaging.
>
> I wanted to create a custom FCS connection component that
> people could drop into their flash apps and then bind things
> like my custom user list component via the Component
> Inspector (similar to the current simple connect).
>
> I wanted to make it as easy to use, without any coding, so
> people in creative, and possibly marketing, can re-use this beast
>
> Chris
>
> -----Original Message-----
> From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> [mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of
> Brian Lesser
> Sent: Thursday, April 07, 2005 4:39 PM
> To: FlashComm Mailing List
> Subject: Re: [FlashComm] Custom FCS Component Binding Issues
>
> Hi Chris,
> I'm still struggling with why you would want to propagate
> shared object updates via a bindable property but you can
> make a movie clip into an event broadcaster by doing this in
> it's constructor or onLoad method:
>
> <>mx.events.EventDispatcher.initialize(this);
>
> I don't know if that is all you need to answer question 1 though.
>
> Cheers,<>
> -Brian
>
>
> Harper, Chris wrote:
>
> (not
> [Bindable]
> like load
> SO
> component and a
> getters/setters bindable
> property.
> object and both
>
> what you're
> you would do
> __people_so =
> exacty what
>
> like this:
> Of Brian
> like this
> set itself up
> shared object
>
> job
> FCS_Connection
> the
> want.
> Behalf Of Brian
> broadcaster
> the
> the
> PeopleList.zip or
> shared
> component
> bind
> list? I've
> easy way to
> MovieClip). Now,
> custom event
> listeners to the
> its
>
>
> =-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =-----------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>
> =---------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =---------------------------------------------------------
>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Harper, Chris

2005-04-08, 5:45 pm

Thanks you guys for all your help. I'm taking a look at your stuff now
brian. =20

Stefan, I just don't want to include anything I don't need. Also, by
not extending the UIObject or UIComponent just makes me build everything
from scratch and understand how components work a little better I
guess it's more for my education than anything else.

Chris

-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of Stefan
Richter
Sent: Friday, April 08, 2005 2:42 AM
To: 'FlashComm Mailing List'
Subject: RE: [FlashComm] Custom FCS Component Binding Issues

Chris,
Is there a particular reason why you don't want to extend UI Component?

Stefan

=20

> -----Original Message-----
> From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org=20
> [mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of=20
> Harper, Chris
> Sent: 07 April 2005 23:49
> To: FlashComm Mailing List
> Subject: RE: [FlashComm] Custom FCS Component Binding Issues
>=20
> I wanted to propagate shared object updates through the=20
> bindable property mostly for packaging. =20
>=20
> I wanted to create a custom FCS connection component that=20
> people could drop into their flash apps and then bind things=20
> like my custom user list component via the Component=20
> Inspector (similar to the current simple connect).
>=20
> I wanted to make it as easy to use, without any coding, so=20
> people in creative, and possibly marketing, can re-use this beast
>=20
> Chris
>=20
> -----Original Message-----
> From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
> [mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org] On Behalf Of=20
> Brian Lesser
> Sent: Thursday, April 07, 2005 4:39 PM
> To: FlashComm Mailing List
> Subject: Re: [FlashComm] Custom FCS Component Binding Issues
>=20
> Hi Chris,
> I'm still struggling with why you would want to propagate=20
> shared object updates via a bindable property but you can=20
> make a movie clip into an event broadcaster by doing this in=20
> it's constructor or onLoad method:
>=20
> <>mx.events.EventDispatcher.initialize(this);
>=20
> I don't know if that is all you need to answer question 1 though.
>=20
> Cheers,<>
> -Brian
>=20
>=20
> Harper, Chris wrote:
>=20
> (not
> [Bindable]
> like load=20
> SO
> component and a=20
> getters/setters bindable=20
> property.=20
> object and both
>=20
> what you're=20
> you would do=20
> __people_so =3D=20
> exacty what
>=20
> like this:
> Of Brian=20
> like this
> set itself up
> shared object
>=20
> job
> FCS_Connection
> the
> want.
> Behalf Of Brian=20
> broadcaster
> the
> the
> PeopleList.zip or=20
> shared
> component
> bind
> list? I've
> easy way to
> MovieClip). Now,
> custom event
> listeners to the=20
> its
>=20
>=20
> =3D-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =3D-----------------------------------------------------------
>=20
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>=20
> =3D---------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =3D---------------------------------------------------------
>=20
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
>=20



=3D-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=3D-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com