hide publisher object from flash
May 17, 2007 12:00 AM
Hello, I am actually using Saba publisher, but its very similar to Lectora and most of the back-end stuff is the same anyway I think.My problem is this: I have a flash movie with 6 scenes in it, one static scene with clickable boxes, clicking each box navigates to a different scene.Each box on the static screen represents a module in the learning course i am building. I have progress ticks displaying over each box on the static screen (which are in publisher not flash) which are only visible if the user has visited the last page of that module (which sets a variable to module1completed=true etc.) this works fine, the ticks only appear when the user has visited the last page of the module (which modifies the variable) then they return to the flash page (where the progress tick that corresponds to the module(s) they have completed is visible. The problem I have is that because of the nature of my flash (i.e. it is 1 file on 1 publisher page with 6 scenes), there is no action to hide the completion ticks when a user clicks on a box (and the flash plays a different scene where the ticks should be hidden) I have added an additional condition to the visibility of the progress ticks -only show if the publisher variable "showticks=1" so for a tick to appear 2 conditions need to be satisfied:- 1- the module completed variable is set to true and 2, showticks is set to 1, ok again this all works fine, but I need to be able to hide the ticks when I click one of the boxes in the flash (and it plays a different scene where the ticks should be hidden) I tried doing this by making a call in flash to getURL("javascript:VarShowticks.set('0')"); when I clicked each of the boxes in the flash before it played the new scene, so theoretically the ticks would hide (because show ticks is set to 0, not 1) so the new scene would display properly (i.e. without the ticks showing over the top of it) but it doesn’t work! I presume the problem lies with the fact that getURL() requires a page refresh to actually pass the data to the publisher page? if so then I have hit a brick wall! my flash is pretty complicated (and if I were to design it again, I would design it differently to take this problem into account)Is there a method that I can call when I click a box in flash to hide a publisher object WITHOUT a page refresh etc.? – I hope there is, but I haven’t been able to find one so far. If such a method exists it would solve my problem!Thanks,Mike
Discussions have been disabled for this post