home *** CD-ROM | disk | FTP | other *** search
/ Flash MX Savvy / FlashMX Savvy.iso / pc / WIN / UltraDev / UltraDev_Trial.exe / Disk1 / data1.cab / Configuration_En / Floaters / WelcomeFloater.js < prev   
Encoding:
JavaScript  |  2000-12-11  |  2.0 KB  |  72 lines

  1. // Copyright 2000 Macromedia, Inc. All rights reserved
  2.  
  3. //---------------    API FUNCTIONS   ---------------
  4.  
  5. function isAvailableInCodeView() {
  6.     return true;
  7. }
  8.  
  9. //---------------    LOCAL FUNCTIONS   ---------------
  10.  
  11. // Set help page id used by displayHelp()
  12. var helpDoc;
  13.  
  14. // Force the initial size of this floater, just the first
  15. // time it is ever opened (have to do it in initialTabs(), 
  16. // because floaters don't currently get onLoad events).
  17. function initialTabs() {
  18.   window.resizeTo(310,480);
  19.   return ""; // don't actually tab with anything else
  20. }
  21.  
  22. // Set this floater to not be dockable (ie. don't show floater tab)
  23. function isDockable() {
  24.   return false;
  25. }
  26.  
  27. // Launch a browser window containing the tutorial.
  28. // The help id's are located in helpDocs.js in Config/Startup.
  29. function launchTutorial(which) {
  30.   // which can be "ud" (ultradev) or "dw" (dreamweaver)
  31.   if (which == "ud")
  32.     helpDoc = MM.HELP_mnuUDTutorial;
  33.   else
  34.     helpDoc = MM.HELP_mnuDWTutorial;
  35.   displayHelp();
  36. }
  37.  
  38. // Make sure we can't resize this floater
  39. function isResizable() {
  40.   return false;
  41. }
  42.  
  43.  
  44. /* THESE FUNCTIONS NO LONGER USED
  45. function getLessonFile(which) {
  46.   lessonFile = dw.getConfigurationPath() + "/Help/Movies/Lessons/Lesson " + which + ".swf";
  47.   return lessonFile;
  48. }
  49.  
  50. function printStr(str) {
  51.   alert(str);
  52. }
  53.  
  54. function getEmbedTag() {
  55.   //alert(dw.constructor.mike);
  56.  // alert(document.MIKE.src);
  57.   //joe = dreamweaver.getObjectTags("document", "EMBED");
  58.  // alert(joe);
  59.  // dom = dw.getDocumentDOM('document');
  60.  // document.MIKE.src="../../Help/Movies/Lessons/Lesson 1.swf";
  61. }
  62.  
  63. // Find a tag object given its name
  64. function MM_findObj(n, d) {
  65.   var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  66.     d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  67.   if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  68.   for(i=0;!x&&d.layers&&i>d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
  69. }
  70. */
  71.  
  72.