[DIRECT-L] V4MD: question: Xtra which create another Xtra ?
Ruslan Zasukhin
sunshine at public.kherson.ua
Fri Jul 16 22:10:18 CDT 2004
On 7/16/04 9:53 PM, "Mathew Ray" <mathew at iqtv.com> wrote:
> I know NOTHING about MOA or Xtra development, but in other languages you
> can generally create wrapper functionality that could emulate this
> behavior. Why not create a 'wrapper' xtra that would handle the creation
> of additional classes within the Valentina Xtra, so that one xtra
> manages the creation of all the needed database objects?
>
> This should definitely be possible:
>
> db = new (Xtra "Vdatabase") --create a new db ref
> table = db.createTable("myTable")
Mathew, this is exactly what I want!!!
So you think this is possible?
okay, we will try again check all XDK docs and examples.
> but table isn't neccessarily an instance of the xtra, but an instance to
> an object created within the xtra.
What difference?
> I agree with Troy totally in that all classes and functionality should
> be part of one 'package' which is the xtra.
I think you already have read my answer that YES,
Macromedia XDK allow us to have several logical Xtras
inside of single file Xtra which we all install into Director
> Just because the xtra is
> designed in an OO fashion doesn't mean the inner workings need to be
> exposed to the person scripting the director app. If this was Java, I
> might be more inclined to agree, but most Director developers enjoy the
> 'plug-n-chug' concept where they drop one xtra into the folder and that
> enables the functionality.
Right.
In REALbasic, developers drop into folder "plugins" just one file "V4RB".
Inside of this plugin are hidden many classes.
I think we confuse here
Xtra -> file that is installed into Director
Xtra -> some ala-class which we can instantiate in Lingo
and call its handlers
> In fact, I found myself having to write a Valentina parent script
> wrapper myself when I used 1.0 about a year or two ago. That way I could
> use my own methods to access the database without worrying about how to
> phrase the parameters and such for the xtra, and make my own functions
> for dealing with the data.
I also think...may be use scripts as wrappers.
Something similar we have made in Valentina PHP.
--
Best regards,
Ruslan Zasukhin [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com
To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------
More information about the Valentina-beta
mailing list