Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 09-11-2006, 01:33 PM   #1
juworld
Registered User
 
Join Date: Mar 2005
Posts: 44
Default binding

Hi,

I am trying to convert my code from as2 to as3. I came across binding (mx.data.binding.* in as2) but I can't find anything relevant in as3.

Any suggestions are welcome.

Thanks,

Justin
juworld is offline   Reply With Quote
Old 09-11-2006, 02:32 PM   #2
flexy
Everything about me's...
 
Join Date: Aug 2006
Location: UK
Posts: 198
Default

Bindings can be executed automatically in AS3 by prefixing your variables as [Bindable]. This ensures that any changes are tracked at runtime.

Here's an example
flexy is offline   Reply With Quote
Old 09-11-2006, 02:51 PM   #3
juworld
Registered User
 
Join Date: Mar 2005
Posts: 44
Default

thanks for the quick reply!

i think if you bind with flex, binding get set automatically.

but i want to bind with flash9. in flash 8, you creating binding by:

mx.data.binding.Bind(bindObj0, bindObj1);

i have tried:

import mx.binding.utils.*;

but im getting this error:

**Error** D:\Production\PPE\New VMS\AS3\Samples\MyStage.as : Line 7, Column 26 : [Compiler] Error #1172: Definition mx.binding.utils could not be found.
import mx.binding.utils.*;

do you know where the library is stored at?

i tried looking in: C:\Program Files\Adobe\Flash 9 Public Alpha\en\First Run\Classes\mx

and

C:\Documents and Settings\<username>\Local Settings\Application Data\Adobe\Flash 9 Public Alpha\en\Configuration\Classes\mx

but i can't find binding...

please advice

Thanks again!
juworld is offline   Reply With Quote
Old 09-12-2006, 07:08 AM   #4
flexy
Everything about me's...
 
Join Date: Aug 2006
Location: UK
Posts: 198
Default

I'll have a look for you. bear with me.
flexy is offline   Reply With Quote
Old 09-12-2006, 03:39 PM   #5
juworld
Registered User
 
Join Date: Mar 2005
Posts: 44
Default

Thanks!

Seems like this package is not shipped with Flash 9 preview... might have to wait until the full release come out...

Justin
juworld is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
xml connector + binding question juworld Components 0 07-15-2005 08:02 PM
Help on Custom Format for the Binding class IceCo ActionScript 2.0 5 05-03-2005 07:13 AM
Binding comboBox to NumericStepper danthewireman Components 1 02-24-2005 12:01 PM
Binding issues in Flash MX 2004 AlbinoG ActionScript 2.0 0 07-23-2004 03:28 PM
Missing binding classes danthewireman ActionScript 2.0 1 04-02-2004 10:29 PM


All times are GMT. The time now is 03:27 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.