This content has been marked as final. Show 6 replies
I'm trying to modify the viewer.swf in similar ways with no success. I tried implementing just the code below to set the m_elapsedBar = null with no success. I included the swf file on the first slide of my powerpoint, and then on every slide and neither option worked. Inside the flash IDE a trace statement on _root.m_sidebarView.m_elapsedBar._visible reports "undefined".
What am I missing?
Well, the code only works with a Flash movie that's being shown "on top of" the Breeze viewer, so trace will always come up negative (those properties and methods are unique to the viewer.swf file). To trace info with embedded flash modules, I use a text box instance in the module.
As far as turning off the progress bar, are you sure you're not thinking of the "scrub" bar - that thing at the bottom which shows you where you are within a particular slide's animation? The bar I'm disabling is under the tabs (in the tabbed, vice full, view), and usually says something like "2 minutes 30 seconds left". Other than that, I don't think it does much, except confuse students.
Thanks for sharing Mark
Can you please post a link to a room with you progress bar so i can see what the final outcome looks like
I'm openning the viewer.swf in the flash IDE to enable the traces. I can switch to using a textbox. And yes - I was looking at the correct bar.
My goal in all this is to check if m_miniControlBar._visible is true when the viewer initially loads, and if so force the viewer to switch back to the tabbed view using m_viewChangeBtn.onRelease(). The viewer has the annoying property of loading in "fullscreen" view if it's width is less than 793px.
I build a small module to do what you're asking - again, the key was to put the actual "check" code on the second frame. So... I made a blank Flash module with two frames. Frame one simply said:
and on frame 2 we have:
if (! _root.m_miniControlBar._visible)
Which was interesting, but only switched into full mode once. To keep the user in full mode no matter how often you resize, you could change frame 1's code to gotoAndPlay (2) , which cycles through about 30 times a second without generating an endless loop error. I dropped this little flash module into a few different PPTs, and it worked fine in all of them when compiled.
Actually just before you posted this, I figured out the problem. Somehow _lockroot was getting set in my movie. By setting this back to null, everything worked as expected.
I actually only need to load this on the first slide since the HTML template file I'm placing the flash movie in sets the size - there won't be any resizing.
Thanks for the help!