Articulate Community Forums



Articulate Community Forums » Articulate Product Forums » Articulate Presenter Player SDK » Slide Lock through Action Script... SOLVED

 
 
LinkBack Thread Tools Search this Thread
Old 07-20-2009, 10:25 AM   # 1
Member
 
Join Date: Apr 2009
Posts: 40
Default Slide Lock through Action Script... SOLVED


Hey all, thought this would be helpful to many. In order to lock a slide through action script in the same manner it is done through the Articulate controls in power point use the following code...

PHP Code:
slidenum _level0.ArtAPI.GetCurrentSlide();
_level44.Presentation.Slides[0].Slide[slidenum 1].navlocked[0]._value "true";
_level44.Presentation.Slides[0].Slide[slidenum 1].waitforuser[0]._value "true"
Some of you will be able to get some other ideas of uses through the code posted above... You can now effectively define Presentation data from actionscript.

For example when I insert a SWF into a presentation I don't bother with the two drop down boxes, I leave them default and set them to the proper value for an independant playing SWF file through action script with the following code...

PHP Code:
slidenum _level0.ArtAPI.GetCurrentSlide();
_level44.Presentation.Slides[0].Slide[slidenum 1].containerType[0]._value "inplayer";
_level44.Presentation.Slides[0].Slide[slidenum 1].timelinecommand[0]._value "standard";
_level44.Presentation.Slides[0].Slide[slidenum 1].waitforuser[0]._value "true"
And I'm sure there are some more interesting things we can do with this info. If you come up with a good idea please share with the group.


Last edited by sci72 : 07-21-2009 at 11:04 AM. Reason: Made a quick update to the second set of code. It needed the 'wait for user' to be true.
sci72 is offline  
Old 07-21-2009, 06:59 AM   # 2
Moderator
 
daveperso's Avatar
 
Join Date: Jul 2006
Location: France
Posts: 1,639
Default Re: Slide Lock through Action Script... SOLVED


Thanks for sharing!
__________________
Dave Moxon

*********************************
Product Specialist
Articulate - The Global Leader in Rapid E-Learning
www.articulate.com

Blogs: Daveperso's eLearning Blog - Tips and tricks on using Articulate software - daveperso.com
Daveperso - Le Blog Articulate En Français ! - daveperso.fr
daveperso is offline  
Old 08-03-2009, 01:23 PM   # 3
Member
 
this.onEnterFrame's Avatar
 
Join Date: Jun 2007
Posts: 257
Default Re: Slide Lock through Action Script... SOLVED


Nicely done!
this.onEnterFrame is offline  
Old 08-03-2009, 01:36 PM   # 4
Member
 
Join Date: Apr 2009
Posts: 40
Default Re: Slide Lock through Action Script... SOLVED


What do we need to hack next?
sci72 is offline  
Old 09-12-2009, 10:31 AM   # 5
Member
 
Join Date: Apr 2009
Posts: 40
Default Re: Slide Lock through Action Script... SOLVED


Found an issue with the second set of code there. The lock part works ok but not the second part. My location addressing is wrong. it should be...

PHP Code:
_level44.Presentation.Slides[0].Slide[slidenum 1].flashobjects[0].flashobject[0].containerType[0]._value "inplayer";
_level44.Presentation.Slides[0].Slide[slidenum 1].flashobjects[0].flashobject[0].timelinecommand[0]._value "standard"
However this actually causes problems when you call this from the slide that is running that content. I believe the containerType and timelinecommand variables need to be set prior to the slide being called. So I guess you could load a hidden SWF in a prior slide that ran the function and made that setting for all the slides with SWF's in them but it is usually just easier using the two drop down boxes while inserting the SWF into powerpoint.
sci72 is offline  
Old 01-08-2010, 02:45 PM   # 6
Member
 
Join Date: Sep 2009
Posts: 45
Default Re: Slide Lock through Action Script... SOLVED


Sci72
Thank You!!!!!!!!!!!!!!!!!
rob_v is offline  
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Search Engine Friendly URLs by vBSEO 3.1.0