Skip to main content
January 3, 2012
Answered

Display question widget in front of other objects on the slide

  • January 3, 2012
  • 1 reply
  • 1816 views

I have created a question widget using the Widget Factory library but am running into a difficulty when I add other objects to the question slide they always display in front of the widget, when I want the widget to display in front. I can work around by merging the objects with the background, but this obviously make the obejcts uneditable.

Can anybody suggest anything else?

Andrew

This topic has been closed for replies.
Correct answer Widget King

Yes, it does seem strange. If you do find out why it happens I'd be interested to know too. I produced the widget myself using the Widget Factory library by the Widget King. The objects in the widget are generated at runtime by the action script but I can't see that causing the bug because they are added to the stage of the widget, which itself should be in front of the sldie objects.


Hi Andrew,

Try adding these lines of code to the runtime part of your widget and see if it brings it up to the top.

var widget:DisplayObjectContainer = getSlideObjectByName("TWidgetQuestion1");

widgetSlide.setChildIndex(widget, widgetSlide.numChildren - 1);

1 reply

RodWard
Community Expert
Community Expert
January 4, 2012

Any element native to a quiz question slide (e.g. Question Title and Question Text or Answer captions, navigation and submit buttons) will always appear on top of any objects you add to it as part of your interaction.

If you need something to look like it is on a higher level, you might be able to achieve this using Master Slides.  Just tick the option to have Master Slide Objects On Top.

January 4, 2012

Hi Rod,

Thanks for the reply.

I'm actually having the opposite problem to what you are sugegsting a solution to. I'm not using a default Captivate quiz slide, but rather a quiz slide generated by inserting a question widget. In this scenario, the widget is a native element to the quiz slide (i.e. it does not appear on the timeline) but it displays behind rather than in front of objects such as text boxes which I add to my interaction.

That said, your Master slide idea will still work, I just need to make sure I keep Master Slide Objects On Top unticked! Its not a perfectly clean solution because it means having single use master slides and negates the benefit of having an updatable master slide which updates all slides, but I think the benefits outweigh the cost, and its certainly a better workaround that what I was doing.

Thanks again,

Andrew

Lilybiri
Legend
January 4, 2012

Hi Andrew,

I was puzzled about your question, because expected as well to have the Question widget on top of everything like for normal question slides. This seems very strange, and wanted to check it out with the Question widget coming with CP, but didn't find time yet. The workaround with the Master slide seems weird, bug OK if it works for you. Would like to understand why this would function (I'm a control freak).

Lilybiri