On 13/01/07, Steve Clason <[EMAIL PROTECTED]> wrote:


Thanks for the suggestion, Stephen. It turns out that wasn't what I
needed (or was but I didn't realize it.)

I found my solution at Trond Ulselth's blog:
http://trond.ulseth.no/index.cfm/FarCry

I just needed to add a piece of code in the display method for dmFact.
I'm including the entire file in case someone else can use it:


Ah ok - what Trond has done is bypass the dmImage component and used the
fourQ method to get the data for an ObjectID no matter what the data type
is. This the same as doing :

stImage = createobject("component","farcry.farcry_core.package.types.dmImage
").getData(stObj.ImageID);

This works well - however - if you don't have your images stored in /images/
or if you upgrade to Gonzales (FC4 beta) you'll need to change this code.
Using the getURLImagePath method in the dmImage component will ensure that
you get the correct path when you move your images to another folder, change
the farcry config or upgrade to FC4.

Regards

Stephen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to