I am having trouble with the two module solution because subscribers are also registered users. So, both modules show up and thus both movies display for subscribers. The non-premium movie should not display for subscribers.
This is why I thought I could use a bit of javascript in a txt/html module. Currently within a txt/html module I am passing some variables to my flash movie.embed src="https://www.dnncreative.com/Portals/0/movie.swf?var1=ch01&var2=2&var3=[User:FirstName]I would like to be able to send the flash movie a tag that indicated if the user is a subscriber from an txt/html module. This is where I am a bit stuck.
var4= [subscriber or not??]
ok... at first I was a bit intimidated by the prospect of making a module! Geez... it is "SuperSimple" to do that. Thank you for the files to look at... I was able to do what you suggested and here is the code:
public string title{ get{ return this.ModuleConfiguration.ModuleTitle; }}public string status{ get { return UserInfo.IsInRole("Subscribers").ToString(); }}I needed input from the module so I just grabbed it from the title which will be hidden anyway. Then in the control:
<embed width="660" height="600" type="application/x-shockwave-flash" quality="1" wmode="transparent" menu="true" loop="true" play="true" scale="ShowAll" src="Portals/0/Algebra/movie.swf?var1=<%=title%>&var2=<%=status%>">embed>
Now my movie has the title and subscriber status... I can redirect with the actionscript. Issue is resolved... thank you very much John