High Definition eLearning
Welcome guest, is this your first visit? Create Account now to join.
  • Login:

Welcome to the Lectora and CourseMill Forums

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

+ Reply to Thread
Page 3 of 3 FirstFirst 123
Results 21 to 26 of 26
  1. #21
    Flash Dev
    Join Date
    Jul 2009
    Location
    Fairfax, VA
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by xithis View Post

    You already posted in the this thread, but this is good reference for anyone reading this thread.


    http://lectoralounge.trivantis.com/forums/2/topics/6872

    Any chance you could update that link for the new forums so we know where you're trying to send us?

  2. #22
    Member
    Join Date
    Dec 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'm stuck. . . I'm trying to get my "Next" button to appear after the .mpr is finished, but the file is too complicated to use an action when done playing; instead, the .mpr file requires javascript. I'm using using a Media Semantics Character and, per their instructions, added to the script a URL command with javascript. It tries to open a page in preview mode, so have been publishing each test with no more than an error on the page when the URL command plays.

    Here's the javascript. . . "javascript:NextGreen.actionShow()" The second field is blank per their instructions too.

    NextGreen is the name of the button, but the image is Next001.gif. . . . do I need to use that instead? If so, with the".gif?" I've tried copying it from the inherent list to the page itself, publishing to html, with no better results. I tried "javascript:trivNextPage() and it works, so I know the actionShow should work in thoery.

    I'm not a programmer, so I rely on copy & paste. . . any help would be much appreciated.

    Thanks,
    Tim

  3. #23
    www.intea.lv
    Join Date
    Aug 2010
    Posts
    352
    Thanks
    9
    Thanked 55 Times in 53 Posts

    Default

    Quote Originally Posted by timbotim2 View Post
    Here's the javascript. . . "javascript:NextGreen.actionShow()" .... I tried "javascript:trivNextPage() and it works, so I know the actionShow should work in thoery.
    You cannot refer to Lectora objects such as buttons (texts, actions, object groups etc.) by the names you give them. Instead, you should refer to Lectora objects by their supersecret names that Lectora assigns automatically. So not "NextGreen.actionShow()" but rather "button7923.actionShow()".

    To find the secret name, hit Preview in Browser, choose View Source, dig through the JS part of the file. Look for e.g. "NextGreen.gif", it will be connected to the button.

    If anyone knows a shorter way, please please let me know.

    Cheers,
    Sergey

  4. #24
    www.intea.lv
    Join Date
    Aug 2010
    Posts
    352
    Thanks
    9
    Thanked 55 Times in 53 Posts

    Default

    Quote Originally Posted by ssneg View Post
    If anyone knows a shorter way, please please let me know.
    A colleague of mine just enlightened me (quote Lectora help file)
    Code:
    1. To show HTML published object names in the Properties window:
    Select Preferences from the File menu. The Preferences window opens. Click the General tab if the Preferences window is not already opened to this tab.
    
    2. Check the Show HTML published object names in object properties box.
    
    3. Click OK.
    Silly me

  5. #25
    Member
    Join Date
    Feb 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Thanks!

    This was very very helpful

  6. #26
    Member
    Join Date
    Sep 2010
    Posts
    27
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by hem99004 View Post
    Awesome list Greg! Just a note for everyone. Flash player 10 has some added security "features" and for some reason if you try to grab a lectora variable and assign it to a variable in flash it will come back as undefined. So this call will fail:var tempVariable = ExternalInterface.call("Varvariablename.getValue()"); Even though it works great in flash players 8 and 9, as soon as someone upgrades to 10 that call will no longer work. Unless Adobe come out with an update for it.For now I've been working around it by adding an external HTML object to the page with a javascript function to set my flash variables. For example if in flash I had a variable called "setFromLectora" and I wanted to set it equal to a Lectora variable called "lectoraVariable" I would need external html that looked like:
    Code:
    <script>function setVars(){    var lectoraVariable = VarlectoraVariable.getValue();      window.document.swfanim2153.Se tVariable("setFromLectora",lectoraVariable); </script>
    What this does is creates a javascript variable called lectoraVariable and sets it to the Lectora variable of the same name. Then it uses javascript to set that variable in the flash movie. swfanim2153 is the Lectora generated name of your flash movie. So inside of flash you would have something like:
    Code:
    var setFromLectora;ExternalInterface.call("setVars");
    Anyhow, hopefully this will save a few headaches when your clients call and want to know why things stopped working when they upgraded to flash player 10.




    hem99004,

    how about the counterpart of your process.....lets just say we want your flash variable setFromLectora to be equal to a lectora variable (perhaps we will change the value of a lectora variable "AICC_Score" to the value of your flash variable "setFromLectora").

    thanks anyway....


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Lectora and CourseMill are registered trademarks of Trivantis Corporation, Camtasia and Snagit are registered trademarks of TechSmith Corporation and
Flypaper is a trademark of Flypaper Studio. Camtasia and Snagit are used with the permission of TechSmith Corporation.
Copyright © 1999-2012 Trivantis Corporation Inc. All rights reserved.