Monday, December 26, 2005

How to Present an Object

An Object has many facets. It has a type that tells you what kind of object it is:
myObj.constructor.name;
For example, select a text frame in an InDesign document and run:
myObj = app.selection[0];
alert(myObj.constructor.name);
and you'll get an alert like this:



Notice both the absence of a space and the capitalization. A text frame object in JavaScript is a TextFrame kind of object, and yet, to refer to one, we use the spelling: textFrame. Which seems like a simple enough transformation until you run into objects like XML elements where the spelling transformation is less obvious.

2 Comments:

At 11:31 PM, Blogger walterhuron6848040067 said...

Do you want free porn? Contact my AIM SN 'p1nkn3ss' just say 'give me some pics now!'.

No age verification required, totally free! Just send an instant message to AIM screen name "p1nkn3ss".

Any message you send is fine!

AIM abuse can be reported here.

 
At 3:43 PM, Blogger matttheo59020677 said...

Get any Desired College Degree, In less then 2 weeks.

Call this number now 24 hours a day 7 days a week (413) 208-3069

Get these Degrees NOW!!!

"BA", "BSc", "MA", "MSc", "MBA", "PHD",

Get everything within 2 weeks.
100% verifiable, this is a real deal

Act now you owe it to your future.

(413) 208-3069 call now 24 hours a day, 7 days a week.

 

Post a Comment

<< Home