Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 8:42 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Clone frame with image; image does not show
PostPosted: January 5th, 2009, 11:00 am 
Offline

Joined: January 19th, 2005, 5:15 pm
Posts: 83
Location: Netherlands
Happy new year to all!

I am struggling with a publication which needs some cloning. I need some frames, which contains a image. The cloned frames will contain all the needed variables, and the text and image objects will use these for their content using this.GetParent().name and this.GetParent().GetParent().image.

For text this works, but not for images. If I use a variable as imagepath, and this variable is a publication or page variable, this method works.
Also, the image path is correct (using FileExists())

Maybe somebody can see the problem, or maybe opus can't handle this method correctly. Thanks!


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject:
PostPosted: January 5th, 2009, 1:14 pm 
Offline
Godlike
Godlike
User avatar

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

Had a look, and no you can't use prototypes for image paths.

Regards,

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: January 5th, 2009, 1:51 pm 
Offline

Joined: January 19th, 2005, 5:15 pm
Posts: 83
Location: Netherlands
Hi mackavi,

What do you mean with 'prototypes'? The functions like 'GetParent()' ?
I've solved this another way now:

Used an onload trigger with the next script on the image:
Code:
wait(0)
this.SetImage(this.GetParent().GetParent().image))


works fine.


Top
 Profile  
 
 Post subject:
PostPosted: January 5th, 2009, 2:12 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Glad you solved it.

You can also add to the script using GetChild()

cloneArr [j].GetChild(0).GetChild(0).SetImage(cloneArr [j].image)

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  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 24 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group