Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 10:51 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: March 24th, 2010, 2:19 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Dan,

Glad you got it working. I found the EventHandler stuff a bit mind-bending first time, and revisiting it reminded me of that experience.

Good if you can add your Help File corrections over in existing post in the Lounge. Eventually hope those get picked up. And time saved as a result.

Mack wrote
Quote:
Would still wish for dynamic creation of objects though
In some of our previous discussions on OOP and the Spaceship code, I thought there was 'creation' of objects there... ?? What would make this different/better? (in short)

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject:
PostPosted: March 25th, 2010, 1:46 am 
Offline

Joined: July 12th, 2009, 10:33 am
Posts: 124
I had an issue with this. The hotspots were all so close together that the mouseover - mouseouts didn't trigger correctly. It seemed that the mouseout from one spot often triggered after the mouseover of the next. The solution I used here was to get rid of the mouseout functions and place extra hotspots around that act to cancel the effect of the mouseovers. I might run into probs with this later though.

Mack - not heard of OPP. OOP is something to do with objects and POP something to do with fizzy drinks and crap music. The help doesn't find it and the inet suggests its something telco. Any further pointers?

Lar - I had a go at passing a variable to the function in the event handler, but this got really silly. I had evals all over the place, to no avail.

Thanks
Dan

_________________
V9.6. Windows 10. Testing on PC, Mac, iPad.


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 25th, 2010, 2:48 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Dan1 wrote
Quote:
Mack - not heard of OPP. OOP is something to do with objects and POP something to do with fizzy drinks and crap music. The help doesn't find it and the inet suggests its something telco. Any further pointers?

Mack prior:
Quote:
Though, I'd opt for OPP, then cloning and eval is generally last on my list.

'OPP' stands for "Old People's Programming"
It is characterized by the word 'objects' being a verb rather than a noun.
Also, wait(seconds) is replaced by nap(often).
Any entity in OPP that has a 'property' -- causes the programmer to worry about property.taxes


Just a few of the Forum discussions related to OOP within OpusScript:
viewtopic.php?t=3083
viewtopic.php?t=3001
viewtopic.php?t=3521

Other related posts can be found via searching some/all of:
object + property/-ties
array + objects
...and maybe clones + array



Quote:
Lar - I had a go at passing a variable to the function in the event handler, but this got really silly. I had evals all over the place, to no avail.
'Yes', just absolutely true. 'eval()' can be a challenge generally -- but when mixed with the RegisterEventHandler, I've been stumped too.

One point of learning: if you are testing or developing a script with 'R-E-H' as I'll call it, the function you reference must exist first (preferably, but not necessarily in the same Script Object) so Opus can find it when it processes the R-E-H. Also it is best if that function is proven to work and not have gross errors.

Another observation: how the strings plus operators plus variables are grouped/bounded by single-quotes and double-quotes matters. Usually can use one type or the other, but sometimes there is need/benefit of weaving both to write the expression. ?. Still learning here.
viewtopic.php?t=3047&highlight=eval

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject:
PostPosted: March 25th, 2010, 9:26 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Cheers Lar,

Are you suggesting I'm old :-). To answer your previous question, I meant the creation of host objects whereas in previous topics we were discussing the creation of user objects.

I should also point out, having mentioned a competing product (well maybe in Adobe's mind anyway) that Opus' method of 'drawing' the host objects with a GUI is one of the reasons that it's such a great product and much more accessible. However, there comes a point, a bit like making a curry, that rather than just buy the sauce, it better to buy the raw ingredients and start from scratch.

Although, it might be a wish for me to have access to such a facility, it's not something that I'd add to the list, simply because it not really, in my opinion, part of the Opus paradigm and I doubt that it would be beneficial to enough to present users to make it viable. I grew up on languages that did not have the 'visual' prefix and everything was built from code. Nowadays, we have amazing drag-n-drop languages, with the whole OPP (yes I know) thing and with the internet and other interactive services - the traditional languages are not necessarily required to produce a computer programme. The world of languages is changing , look at Ruby, Ajax and even the rewrite of AS3.

@Dan, yes sorry meant OOP. Opus Script is early ECMA script and thus a relative of JavaScript. Unfortunately, many sources of information on this language fail to deal with the subject correctly which is odd, because Opus and the browser both use all three objects families and their supporting scripts are very powerful at interacting with the objects. It's actually no big mystery, and despite a posh name and yet another acronym - anybody using Opus is an OOPer (can I say that?).

Draw a text box on screen and you've created an object. Change the colour and you've altered a property and add a action to hide with mouse over and you've triggered a method.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 25th, 2010, 11:44 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Quote:
Are you suggesting I'm old Smile. To answer your previous question, I meant the creation of host objects
'Yes' I think so, or maybe I'm reflecting on some earlier post where you've confessed same.

Thx for clarifying 'dynamically created objects' -- host objects.

Given the 'lay of the landscape' you've just painted, I'd simple wish for a compendium of OOP/OPP/OPO constructions -- for user objects. Some tutorial that explains when to use 'new Object()' and when it is okay/preferable to write: variable002 = create_an_object_function() ; //where that is a function that "returns" an object.

Nuf said here.

Now on to Method Chaining in opusscript.

ps. liked the 'curry' analogy (5 minutes after I first read it). I'm not OLD, I'm dense.

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group