Pointing a Class script to a library item dynamically

Hey all,
So it's straight forward to:
create a library item
point it at a class script
addChild(new Class())
Bosh,  and then it does on the canvas whatever the script associated says it should do!
I would love to be able to:
create library items with AS Linkage
create a class script extending Sprite
addChild(new Class())  pointing to any of the library items I want by simply passing a string reference to the AS Linkage

use:
function createClassF(s:String):*{
    var ClassRef:Class = Class(getDefinitionByName(s));
    var cr:* = new ClassRef();
    return cr;

Similar Messages

  • Placing library item into page

    This script for placing library item into page and applying object style to the item. In line 16, script shows that "assets" property does not support. Please resolve this.
    if (app.documents.length==0){
        alert("Please open the Document");
        exit();
    if (app.libraries.length==0){
        alert("Please open the Library");
        exit();
    app.findTextPreferences=app.changeTextPreferences=null;
    app.findTextPreferences.appliedParagraphStyle="MN";
    var myfound=app.activeDocument.findText();
    alert(myfound.length);
    for(i=0; i<myfound.length; i++){
    var mylib=app.libraries.assets.itemByName("Box").placeAsset(myfound[i].insertionPoints[0]);
    var mymove=myfound[i].move(LocationOptions.atBeginning, mylib.insertionPoints[0])
    mylib.appliedObjectStyle="MN_Obj";

    To make that work, you have to address an open library (line 16).
    app.libraries describes the collection of all open libraries, not a distinct one.
    If only one library is open you could address the one with its index:
    app.libraries[0]
    If you already know the name of the library or better, the exact path of the library, you can:
    1. Make sure to open it
    2. Call it by its name
    Let's assume you know the name and you know that the asset you want to place is stored inside, you could do it this way:
    app.libraries.itemByName("TheNameOfTheLibrary").assets.itemByName("Box").placeAsset(
    /*Wherever you want*/
    Now, what will this line return?
    A library object? Hardly. So be cautious with using a variable name like "mylib".
    According to documentation it is returning an Array, and we can assume, that in this array is the object that is placed out of the library. Your asset stored in the library which goes by the name of "Box". Whatever that is.
    If you want to find out, you can use the following, more descriptive variable: "myPlacedAsset". That sounds more neutral.
    var myPlacedAsset = app.libraries.itemByName("TheNameOfTheLibrary").assets.itemByName("Box").placeAsset(
    /*Wherever you want*/
    Using the ESTK (ExtendScript Toolkit) together with $.writeln() can write the true nature of the placed asset to your JavaScript Console:
    $.writeln(myPlacedAsset.constructor.name);
    is informing you what kind of object "myPlacedAsset" really is. If indeed it is an Array, you could look for its length. If its length is "1", you get to the "heart" of your placed object by:
    $.writeln(myPlacedAsset[0].constructor.name);
    Or by that more inquisitory question:
    $.writeln(myPlacedAsset[0].getElements()[0].constructor.name);
    If your array is of a greater length, you have to loop through this array and question every single object!
    Before testing, exchange my comment "/*Wherever you want*/" with the code you like to use: Obviously the first insertion point of your found text. Hold on! This will backfire to you, because every time you place one instance of the asset you will add a character to your found text and shift the original insertionPoint. Better loop from back to forth or do the search from back to forth.
    Adobe InDesign CS6 (8.0) Object Model JS: Text
    Please, try that and report back…
    (Isn't noone reading the documentation these days?)
    Indesign JavaScript Help
    Adobe InDesign CS6 (8.0) Object Model JS: Table of Contents, Libraries Suite
    Adobe InDesign CS6 (8.0) Object Model JS: Library
    Adobe InDesign CS6 (8.0) Object Model JS: Asset
    Adobe InDesign CS6 (8.0) Object Model JS: Asset
    Uwe

  • Again Library Item

    Hi All,
    I have coding to place Library Item into the Page Layout, my Script placing the library Item into that parent Page,
    But my Problem is I can not place XMLElement Into that Library Element Box.
    Here is my Script:
    myDoc.select(myElement);          
                var mySideBarXML = app.selection[0];
                try  {
                                    myAsset = myCurrentLib.assets.item("Box");   // Name of the library item is "bx1"
                    myLibraryItem = myAsset.placeAsset(myElement.insertionPoints[-1]);
      catch (err)   {
                    alert ("There is no library element with the name Box");
                    exit();
                // TO PLACE TEXT IN LIBRARY ITEM
              try {
                    myLibraryItem[0].textFrames[0].placeXML(mySideBarXML);   // if the library element is group of frames.
                catch (ee)  {
                    try {
                        myLibraryItem[0].placeXML(mySideBarXML);   // if the library element is a single frame.
                    catch (ee) { }
    can any one help on this.
    Regards
    Hurix

    Hi hurix,
    Are you try the above requirement in manually, You can't do even manually, because you already placed the library item into the XML text in between, again you drag the you respective box element xml text into the box, definitely its shown the error in InDesign like this...("Elements cannot be placed into an inline").
    Now, what you have to do it for your requirement to meet. First you placed the library item into the respective page, then placed the box xml element content into the library item text frame.
    try{
        var mySideBarXML = myElement;
        var myLibraryItem = app.libraries[0].assets.item("Box").placeAsset(myDoc)[0];// here you give the page, i.e., you selection element text parent page;
        myLibraryItem.move(mySideBarXML.xmlContent.parentTextFrames[0].parentPage);
         try {
             myLibraryItem.textFrames[0].placeXML(myElement);   // if the library element is group of text frame.
         catch (ee) {
             myLibraryItem.placeXML(myElement);// single text frame no group.
    thx,
    csm_phil,

  • Dreamweaver Teamplate with Library Item for Navigation/Sidebar not updating editable classes

    I have a Dreamweaver Template that contains two Library items. One Library item is my navigation bar, the other is a sidebar that shows different content depending on what page you are on. I'm assigning an editable class "active" to the navigation bar to show you are on a particular page, and also assigning the editable class "active" to the sidebar to reveal a portion of the sidebar with links pertaining to that specific page. The default value for the class is "hidden". So what is happening is when I open a page I have created and "edit" the Library Items in it to edit these classes, it resets resets all the other pages on the site to the default class values. How am I able to use editable classes and Library Items to achieve this kind of functionality? The idea is to only have ONE navigaton bar to update on the site and to only have ONE sidebar item to update. Here is an example of the sidebar and navigation in action so you can see what I'm going for. Notice the green button in the navigation bar (that is a list item with the class "active" which is an editable class in the Library Item, also notice the tan links in the sidebar, that is an unordered list that has an editable class of "active" in the Library Items --- these editable classes reset to their defaults when updating the Library Item on the website).
    http://www.brumleve.org/joe/temp/CAP/mission.html

    In my understanding, whenever you edit the contents of a library item, it will update all other occurances of this library item on the rest of the site. That's "working as designed" as far as I know, unless you break the link by telling it to not update - which kinda defeats the purpose I think.
    But theres another way to do this using template properties, i#ve been using this approach myself a couple of times:
    Write your navigation bar in the template (.dwt) file itself, then select the class= of your first menu item and choose .. (names might be off, I am using a non-English copy of DW): "modify > template > make attribute editable" from the main menu. Do so for all your menu items and name these new template properties something like "item_x_class"
    You'll end up with something like this in your template source:
    <div class="@@(item_1_class)@@">
    and a matching
    <!-- TemplateParam name="item_1_class" type="text" value="active" --> in the header
    Now, on each page, you can set the class within the template properties dialog ("modify > template properties"). If your main menu changes, it won't overwrite your template properties, but still update all pages when you do make a change to the menu.
    If you're using multiple templates for your site, consider nesting templates, so the master template already includes your navbar and all subsequent templates will "inherit" changes to the navbar code (sans the editable class property).
    Hope this helps.. or at least gives you an idea for further experiments..
    Stephan

  • Adding Java Script RSS Feed to Library Item

    Can anybody help me I have been trying to add a java script
    for a rss feed to a library item page. That way a rss feed shows in
    the library page field. I have 3 sites from 1000 to 10000 pages.
    They all use a library item. I want the current news to show in
    this section of the web page. But it doesn's seem to work when I
    call the page up. I can insert the java script to the web page and
    it works correct.
    Can anybody give me some advice I would appriciate it.
    Thanks.

    > They all use a library item
    I think it's a huge mistake. Why would you use a Library item
    on sites this
    large, and commit yourself to uploading every changed file,
    when you could
    use a server-side include instead?
    > Can anybody give me some advice I would appriciate it.
    I would need to see your Library item's markup to advise you.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "ace1mc" <[email protected]> wrote in
    message
    news:ecsbiu$f67$[email protected]..
    > Can anybody help me I have been trying to add a java
    script for a rss feed
    > to a
    > library item page. That way a rss feed shows in the
    library page field. I
    > have
    > 3 sites from 1000 to 10000 pages. They all use a library
    item. I want the
    > current news to show in this section of the web page.
    But it doesn's seem
    > to
    > work when I call the page up. I can insert the java
    script to the web page
    > and
    > it works correct.
    >
    > Can anybody give me some advice I would appriciate it.
    >
    > Thanks.
    >

  • Deleting Library Items with Action Script

    Is it possible to delete the library items at runtime?
    I am loading b.swf in a.swf. After some time b.swf unloads and c.swf is loaded inside a.swf. Though the b.swf unloads but the library items of b.swf remain there and conflict with the library items of c.swf. c.swf has some items with the same name as in b.swf. c.swf shows the movieclips from the library of b.swf with similar name.
    I think the best way would have been to load these assets externally instead of keeping them in the library if we want to destroy them at runtime. But, we have a large number of already constructed files. Ability to destroy the library items at runtime will also help maintain memory usage in limits.

    If you have swf files in your library, that is not a good way to implement a design.  You should load all swf content dynamically at run time.  You cannot delete anything compiled into the file, such as library objects, as far as I know.

  • Spry widget menu bar as a library item - problems

    I created a spry vertical menu bar and made it a library item.  The original works great, however when I insert the library item into its own div tag on another page, the submenus will not pop out, either in DW or the browser view. The div tag is the correct size and I made the z index high enough. Here is the code of the page that works properly:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>DM Consulting Dry Dock Training</title>
    <link href="css styles/drydock2.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    body {
    background-image: url(images/vertborderblue2.jpg);
    background-repeat: repeat-x;
    -->
    </style>
    </head>
    <body>
    <div id="container">
      <div id="header"><img src="images/header_title_white.png" width="645" height="116" alt="header" /></div>
      <div id="logo"><img src="images/drydock_logo_blktxt.png" width="154" height="119" alt="logo" /></div>
      <div id="mainContent">
        <div id="content">
          <p><span class="bolder1">D</span><span class="bolder1">M Consulting </span><span class="lineheight">provides Dry Dock Training, Dry Dock Conferences,<br />
            Dry Dock Software and Dry Dock Consulting      for:</span></p>
          <ul>
            <li class="lineheight"> Dock Masters</li>
            <li class="lineheight">Docking Officers</li>
            <li class="lineheight">Dry Dock Crews</li>
            <li class="lineheight">Engineers</li>
            <li class="lineheight">Naval Architects </li>
            <li class="lineheight"> Port Engineers</li>
            <li class="lineheight">Program/Project Managers</li>
            <li class="lineheight">Marine Surveyors</li>
            <li class="lineheight">Owners' Representatives</li>
            <li class="lineheight">On-site Representatives</li>
            <li class="lineheight">Consultants</li>
            <li class="lineheight">Others Involved or Interested in
              the <br />
              Dry Docking of Ships and Vessels</li>
          </ul>
          <div id="testimonials">&quot;The course was excellent, straight forward and comprehensive. Instruction was great, expected <br />
            &quot;death-by-power point&quot; but was pleasantly surprised.
            I am better acquainted w/dry dock basics after the
            course and can trust the accuracy of the training
            based on the extensive experience of the instructors. Thank you!
            Very informative, very thorough.&quot;
              - David, Australia<br />
          </div>
          <div id="movie">
            <object width="560" height="340">
              <param name="movie" value="http://www.youtube.com/v/qLGUZEkbAwA?fs=1&hl=en_US&rel=0" />
              <param name="allowFullScreen" value="true" />
              <param name="allowscriptaccess" value="always" />
              <embed src="http://www.youtube.com/v/qLGUZEkbAwA?fs=1&hl=en_US&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed>
            </object>
          </div>
          <div id="moreTestimonials">&raquo;&raquo;&raquo; click here for more testimonials &laquo;&laquo;&laquo;</div>
          <div id="footer"><!-- #BeginLibraryItem "/Library/copyright.lbi" -->&copy; COPYRIGHT 2010 DM CONSULTING<!-- #EndLibraryItem --></div>
        </div>
        <div id="navbar">
          <!-- #BeginLibraryItem "/Library/nav.lbi" -->
          <ul id="MenuBar1" class="MenuBarVertical">
            <li><a href="#index.html" title="DM Consulting home page">HOME</a></li>
            <li><a href="#" class="MenuBarItemSubmenu">TRAINING</a>
              <ul>
                <li><a href="#outline.html" title="Outline of our Training Course">General Information &amp; Outline</a></li>
                <li><a href="#train_sched.html" title="Locations &amp; dates of our Training Courses">Training Course Schedule</a></li>
                <li><a href="#drawings.html" title="Dry dock course drawings">Course Drawings</a></li>
                <li><a href="#testimonials.html" title="Read what our clients have to say">Testimonials</a></li>
              </ul>
            </li>
            <li><a href="#conference.html" title="Dry Dock Conference information">CONFERENCE</a></li>
            <li><a href="#software.html" title="Shop our software">DOCKMASTER SOFTWARE</a></li>
            <li><a href="#consulting.html" title="Dry Dock Consulting">CONSULTING</a></li>
            <li><a href="#clients.html" title="List of current and past clients">CLIENTS</a></li>
            <li><a href="#about.html" title="Learn about our company">ABOUT</a></li>
            <li><a href="#contact.html" title="Contact us">CONTACT US</a></li>
          </ul>
        <!-- #EndLibraryItem --></div>
      </div>
    </div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>
    Here is the code for the page that DOESN'T work:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Training Course Schedule</title>
    <link href="../css styles/drydock2.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="../SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    body {
    background-image: url(images/vertborderblue2.jpg);
    background-repeat: repeat-x;
    -->
    </style>
    </head>
    <body>
    <div id="container">
      <div id="header"><img src="../images/header_title_white.png" width="645" height="116" alt="header" /></div>
      <div id="logo"><img src="../images/drydock_logo_blktxt.png" width="154" height="119" alt="logo" /></div>
      <div id="mainContent">
        <div id="content">
          <h2><span class="bolder1">Training Course Schedule</span><span class="bolder1"></span></h2>
          <p><br />
          Class sizes are limited so please register early. Early registration and payment provides the best value.<br />
      <br />
          </p>
    <p class="underline"><strong>4-7 October 2010  •   Honolulu, HI, USA </strong></p>
          <div id="schedulephoto"><img src="../images/conference-rm_train_s.jpg" width="250" height="123" alt="image" /></div>
          <p>The training will be held in Pearl Harbor, Hawaii, USA. <br />
            <a href="Registration_Hawaii.html">Registration form</a><br />
            <br />
          </p>
          <p class="underline"><strong>15-18 November 2010   •   Virginia Beach VA, USA</strong></p>
          <p>The training will be held in Virginia Beach, Virginia, USA. <br />
            <a href="Registration_Virginia.html">Registration form</a><br />
            <br />
          </p>
          <p class="underline"><strong>11-14 May 2011  •   London, United Kingdom</strong></p>
            The training is held in conjunction with the Royal Institution of Naval Architects (RINA). Registration and payment will be made directly to RINA. <br />
            Visit RINA's <a href="http://www.RINA.org.uk" target="_blank">website</a> and go to &quot;Events&quot; or call +44 (0) 20 7201 2401.<br />
      <br />
          </p>
          <p><strong>Your Location</strong></p>
          <p>Training tailored to your organization's needs, including training at your facilities, <br />
            is also available.    </p>
        </div>
        <div id="nav3"><!-- #BeginLibraryItem "/Library/nav.lbi" -->
        <ul id="MenuBar1" class="MenuBarVertical">
          <li><a href="#index.html" title="DM Consulting home page">HOME</a></li>
          <li><a href="#" class="MenuBarItemSubmenu">TRAINING</a>
            <ul>
              <li><a href="#outline.html" title="Outline of our Training Course">General Information &amp; Outline</a></li>
              <li><a href="#train_sched.html" title="Locations &amp; dates of our Training Courses">Training Course Schedule</a></li>
              <li><a href="#drawings.html" title="Dry dock course drawings">Course Drawings</a></li>
              <li><a href="#testimonials.html" title="Read what our clients have to say">Testimonials</a></li>
            </ul>
          </li>
          <li><a href="#conference.html" title="Dry Dock Conference information">CONFERENCE</a></li>
          <li><a href="#software.html" title="Shop our software">DOCKMASTER SOFTWARE</a></li>
          <li><a href="#consulting.html" title="Dry Dock Consulting">CONSULTING</a></li>
          <li><a href="#clients.html" title="List of current and past clients">CLIENTS</a></li>
          <li><a href="#about.html" title="Learn about our company">ABOUT</a></li>
          <li><a href="#contact.html" title="Contact us">CONTACT US</a></li>
        </ul>
        <!-- #EndLibraryItem --></div>
      </div>
    </div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>
    I understand about having the script and  link element that connect my page to the dependent files in the SpryAssets folder in the header and the JavaScript function cal at the bottom on each page. I don't know what else to do - HELP!

    Welcome to the Dreamweaver world!
    Well, having your index.html page at the top/root level is important, as that is the default page by which people will enter your site.
    Having other pages in folders is fine...I do it all the time in order to keep departments or categories of information sorted.
    One characteristic of having pages in folders is that the hierarchy of files in folders (perforce) puts them at different depths in the site.
    This is not inherently a bad thing! Just one to remain aware of. When you look at your site files in the Files Panel, you can see a graphical representation of those different levels.
    But the nature of a library item is that it is identical in all its instances, which is what makes it useful...change it in the library, and it changes site-wide. The down-side of that identity is that when your files are at different depths in the hierarchy, their links back to, say, home (or any other same file) will change depending on the depth. You can see this if you make a link on a page, then drag the page (in the Files Panel) to a different depth...say, into a folder when it started at root level, or vice versa. Check the link, and you will see that it automatically adapted to the new path.
    Library items do not do that; they do not change, so some of your links will be 'wrong' when you refer to pages that have different paths than the ones originally set up in the library item... because of the change in hierarchy.
    All this is, of course, reliant on your creation of the site in the first place, as defining the root folder's location on your computer gives Dreamweaver a starting point for handling (juggling?) all the location-information for your site's files.
    Beth

  • Dreamweaver CC Library Item with rollover link produces two body tags. Why?

    I have a library item which is used in two pages and works correctly if it does not contain a rollover arrow with a link taking you to the top of the library item. This produces the following near the top of each of the containing pages:
    </head>
    <body class="indexpage">
    <!-- #BeginLibraryItem "/Library/homemenu.lbi" -->
    <p><a id="top"></a></p>
    Note that the Library Item does not itself have a <body> tag in this original, working version.
    The problem arises when I insert an image rollover with a link up to #top (which is defined as above).
    First, the Library Item has the following near its top:
    <script ...>
    ... various functions to handle the rollover
    </script>
    <body onLoad="MM_preloadImages('../images/uparrowred2.gif')">
    <p><a id="top"></a></p>
    Secondly, the containing pages now have the following near the top:
    </head>
    <body class="indexpage" onLoad="MM_preloadImages('images/uparrowred2.gif)">
    <!--#BeginLibraryItem "Library/homemenu.lbi" -->
    <script ...>
    ... various functions to handle the rollover
    </script>
    <body onLoad="MM_preloadImages('../images/uparrowred2.gif')">
    <p><a id="top"></a></p>
    It can be seen (shown in red) that the Library Item has correctly transferred the onLoad instruction to the containing page's <body> tag and at the same time altered the address of the GIF image from '../images/xxx.gif' to 'images/xxx.gif'. [The root folder with the various html pages has a number of subfolders including 'images' and 'Library']. But now, unfortunately, the containing pages have two <body> tags with the second one pointing to the wrong location for the GIF image.
    Would someone please explain what is going on. I can think of three possibilities: (1) I may be doing something really stupid, (2) there may be a bug in Dreamweaver CC or (3) Library Items may not be allowed to contain anything "complicated" like a rollover. I did see a very old (2007) discussion in this forum suggesting that Library Items were rather limited in what they could contain, but over the intervening six years I would have expected things to have improved.

    Thank you, but in that case I'm not sure I understand the purpose of Library Items. Before I added the Library Item, there was nothing to preload. When I add a rollover to the Library Item, Dreamweaver creates the preloader instruction within the Library Item. Then when I include the Library Item in an html page, Dreamweaver controls where the preloader is put.
    Do I then need to manually edit what Dreamweaver has done? In this instance it would have been almost as quick to have ignored the use of a Library Item and copied and pasted the relevant code into the two pages and manually created the revised <body> tag with a preloader. In my relative inexperience with Dreamweaver, I just thought that using a Library Item in multiple pages would save me some effort when I wanted to change the content of the Library Item. As I said, the Library Item worked OK until I added a rollover within it.

  • Using CSS instead of or with library item

    I built my site using Dreamweaver 8. I used the design view
    exclusively. I made a navigation bar as a library item. Utilizing
    rollovers, etc. Now I have learned I should build my site utilizing
    CSS and as was pointed out on this forum to me, to learn CSS and
    HTML.
    I am having a brain freeze. The logic escapes me as to how I
    would build a navigation bar and put it on each page as I did
    utilizing the library function before.
    I am sure for all you pro's this is a really dumb and obvious
    thing but I just don't seem to figure out the logic how to do it. I
    am not talking about the CSS for the behaviors such as hover,
    visited, active. This I know how to do. It is just the ability to
    have a properly designed navbar and be able to put it on every page
    I make.
    Murry "ACE" told me not to use AP and the dreaded mm_menus so
    I am trying to figure this out and build a better more code
    efficient site. Mine works but is quite trashy in the code.

    It can be a bit daunting.
    Try going through this tutorial completely. It's a bit out of
    date (using
    an older version of DW), and still covers the use of tables,
    but it's worth
    reinforcing your basic understandings -
    http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1.html
    Then I would suggest you do this tutorial -
    Taking a Fireworks comp to a CSS-based layout in Dreamweaver
    http://www.adobe.com/devnet/fireworks/articles/web_standards_layouts_pt1.html
    http://www.adobe.com/devnet/fireworks/articles/web_standards_layouts_pt2.html
    Finally, to get a grip on how to manage menus across an
    entire site, use
    DW's F1 help about how to use Templates, and server-side
    includes.
    Templates do make your life much easier. I use the following
    scheme....
    First, I mentally separate the page layout into three
    sections:
    1. Stuff that will not change for the life of the site (i.e.,
    the basic
    structural elements)
    2. Stuff that *could* change from time to time (e.g.,
    navigation elements,
    burst advertisements, section-specific navigation, etc.)
    3. Stuff that *will* change from one page to the next
    Then I create a template containing all class1 elements. Next
    I create
    server-side include files containing all class 2 elements and
    place them on
    the template as needed. Note - some of the class 2 elements
    may be
    "section-specific elements", and their placement on the
    template will be
    subject to the next item. Finally, I insert editable regions
    to cover the
    class 3 items, INCLUDING the section-specific navigation.
    This allows me to just cookie-cut the rest of the site. I
    estimate that
    even for fairly large sites, about 80% of my work goes into
    planning and
    creating this template file.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "craigmini" <[email protected]> wrote in
    message
    news:[email protected]...
    >I built my site using Dreamweaver 8. I used the design
    view exclusively. I
    > made a navigation bar as a library item. Utilizing
    rollovers, etc. Now I
    > have
    > learned I should build my site utilizing CSS and as was
    pointed out on
    > this
    > forum to me, to learn CSS and HTML.
    >
    > I am having a brain freeze. The logic escapes me as to
    how I would build a
    > navigation bar and put it on each page as I did
    utilizing the library
    > function
    > before.
    >
    > I am sure for all you pro's this is a really dumb and
    obvious thing but I
    > just
    > don't seem to figure out the logic how to do it. I am
    not talking about
    > the CSS
    > for the behaviors such as hover, visited, active. This I
    know how to do.
    > It is
    > just the ability to have a properly designed navbar and
    be able to put it
    > on
    > every page I make.
    >
    > Murry "ACE" told me not to use AP and the dreaded
    mm_menus so I am trying
    > to
    > figure this out and build a better more code efficient
    site. Mine works
    > but is
    > quite trashy in the code.
    >

  • Template Expressions in Library Items?

    Hi All,
    The quick question is this: can template expressions be made
    to work inside library items?
    Here’s the situation…
    The page:
    http://www.fretbank.com/basics/intervals/index.html
    I have a 3-tier template structure in place – 1-Root,
    2-General Page Structure, 3-Topic Categories.
    If you look at the page, I have buttons below the header that
    point to different topics. Each topic has several pages. All of the
    pages from each topic are child-pages from a specific Tier-3
    template.
    The buttons use template parameters/expressions on the Tier 3
    temp. to determine the state of the button.
    I currently have to copy the code for the button nav into
    each topics template and any changes have to be made in each
    template. I am going to be adding many more topics and want to find
    a shortcut. I guess I could make a 4th template tier and have each
    of the category templates be children of that, but I’m hoping
    to avoid this. It would be easiest to be able to make a library
    item and paste it where I need.
    I thought about using SSI’s but that wouldn’t
    work with the expressions. Any other suggestions?
    Thanks,
    Troy
    here's the code if it helps:

    > Is having the link outside the div a problem in older
    browsers?
    It's invalid HTML. That's enough for me. And I suspect it
    would be a
    problem somewhere, as you are trying to make the entire
    <div> tag a link.
    > This allows me to only have to change each of these nav.
    elements on one
    > page.
    I would opt for a single template structured so that changes
    to CSS could
    'specify' the particular section layout. Then I would choose
    server-side
    includes for the navigation elements, and place them into
    strategically
    placed editable regions of the single template, depending on
    which section
    you are needing to navigate.
    Having only a single template is not only possible, it's MUCH
    simpler than
    nesting them.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Fret Man" <[email protected]> wrote in
    message
    news:[email protected]...
    > Thanks for the reply Murray.
    >
    > A couple clarifications and questions. Sorry for the
    length, but I felt it
    > was
    > better to be clear than concise.
    >
    > I am using nested templates.
    >
    > Since I posted the topic, I have changed my structure a
    bit, trying to
    > find a
    > balance between flexibility and work load.
    >
    > I have a root template with has headers and common
    includes.
    >
    > From the root template I nest multiple MAIN CATEGORY
    templates for primary
    > areas of the site. These templates contain the nav
    buttons just below the
    > header.
    >
    > From the MAIN CATEGORY temps I nest several SUB CATEGORY
    templates for
    > each
    > topic in the category, which contain the code for the
    "Quick Nav" box at
    > the
    > bottom of the page.
    >
    > The individual pages of the site are then built from the
    sub category
    > pages.
    > The reason for all of the nesting is this: The MAIN
    CATEGORY temps contain
    > the
    > code for the nav buttons and are built using temp.
    expressions that look
    > to a
    > main category param on each of the sub category pages.
    Depending on the
    > param., the button that corresonds to which Main
    Category you are in will
    > be
    > black (via CSS class)
    >
    > One the sub cat. temps the Quick nav link relative to
    which page you are
    > on
    > will be black (also via CSS class)
    >
    > This allows me to only have to change each of these nav.
    elements on one
    > page.
    > All of the different MAIN CAT. temps allow me to focus
    advertising based
    > on
    > the subject. Maybe there is a better way to populate the
    ads to different
    > categories that I am not aware of? Is there a way to
    have the button/links
    > reflect the category/page you are on using only CSS? I
    don't want to have
    > to
    > copy and paste changes to multiple pages when the
    nav/topics change.
    >
    > ****
    > I put the <a> tags inside the <div> tags,
    based on multiple people telling
    > me
    > that I shouldn't do it the other way around. I hadn't
    encountered any
    > problems
    > and liked that the whole button became a link. Is having
    the link outside
    > the
    > div a problem in older browsers? I tested it this way in
    IE7, Firefox2.0,
    > Safari, and Opera, and it worked.
    >
    >

  • Flash Pro CC to CS6 fla issue - Bad library items and new library items with unicode names

    I've noticed a strange issue when opening fla files in Flash Pro CS6 that have been edited in Flash Pro CC. If there are library items in the fla with names that include symbols such as ">" or ".", unicode named symbols are created and the original symobls are unuseable. There are many symbols that cause the issue and the symbols just have to be a part of the name.
    Steps to reproduce:
    1) Create an fla file in Flash Pro CC.
    2) Add a single movieclip to the library with a symbol name of ">".
    3) Save the file.
    4) Open the file in Flash Pro CS6.
    Results:
    Library contains 2 symbols, one named ">" and one named "&#062".
    Expected:
    There's one library symbol named ">".
    After that double clicking the symbol named ">" will do nothing and instances of the symbol will have all their content removed.
    This issue is breaking a JSFL script I wrote that loops the library items. When the script attempts to access item.layerCount the script errors out. My team is blocked from using Flash Pro CC in combination with Flash Pro CS6 because of this issue. The only good solution I can think of is to all switch to CC at the same time to avoid converting our fla files to CS6 from CC.
    Any info on a fix for this issue would be appreciated.

    The dialog you get when you open the FLA in CS6 is that new features may not be available in CS6 so you should save it to a new file to avoid corruption. There's no "save down" from CC to CS6 (yet). So opening the file in CS6 isn't advisable in the first place.
    That said, library items are supported between them both so to your point, yes, I get the same exact behavior. A single symbol named ">" in CC produces 2 library items in CS6 named ">" and "&#062", and the original item is lost. Although I'm not sure where I'd classify this issue being you shouldn't be opening a newer version file from an older version of the application. I did also try XFL, same issue. If they decide to create a save-down to CS6 and this still exists, I'd consider it a bug.
    As for a fix, I think about the only thing that comes to mind is identify the characters causing issues and run a JSFL in CC to rename the library item temporarily to something you know will work fine. Then once back in CS6, run the JSFL opposite to convert them back to what you want. e.g. "this > that" to "this XYZ that" in CC, then "this XYZ that" to "this > that" in CS6. Shouldn't be too hard to map as long as the replacement is unique.

  • Library Item updating a section I don't want.

    Here's another question I have about library items.  I do like them a lot, saves hours of keyboarding.
    I built a library item that controls and places "Sponsors" in my 3rd column sidebar.  Sponsors contains relevant links and graphics to sponsors of this cycling team.  It works fine except...
    If I modify the library item, when I go Modify > Library > Update Pages, this thing for some reason, goes and also modifies the <div>menu </div>.   This is part of the reason why a couple of days ago I was getting all turned around with my "\"s and my "/"s.  I've looked at the code details of the sponsors.lbi file in DW 5.5.  I can see nowhere that the .lbi refers to any part of the "menu" div.  Yet when I update pages, the updating goes into the div and messes up (replaces) all my correctly formed menu lnks so that those no longer work.
    I need to find out why this happens because now I am having to spend a lot of time at the keyboard fixing menu links!  Of course this propagates to every page too.  It's obviously not right - I can't keep operating this way.
    What do I need to do?
    H

    Once again, Murray to my rescue!  How are you doing?
    Here's my G2_sponsors.lbi:
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="style.css" rel="stylesheet" type="text/css">
    <div class="box-title2 box-indent2">
    <div class="left">
    <div class="right">
    <div align="center"><span class="style1">Sponsors</span><br />
    <br />
    </div>
    </div>
    </div>
    </div>
    <div align="center"><br />
    <a target="_blank" href="http://www.yacht-transport.com/"><img alt="" width="182" height="42" src="images\sponsors\team_dyt.jpg" /></a><br /><br />
    <a target="_blank" href="http://www.helenmckenzie.com/"><img alt="" width="85" height="85" src="images\sponsors\hm_graphic.jpg" /></a><br /><br />
    <a target="_blank" href="http://www.spatopiamassage.com/"><img alt="" width="182" height="42" src="images\sponsors\header2.jpg" /></a><br /><br />
    <a target="_blank" href="http://www.jaxsonsicecream.com/"><img alt="" width="182" height="120" src="images\sponsors\jaxson_web.jpg" /></a><br /><br /><!-- HS 3-1-11 -->
    <!-- added 4 more plus to without websites 7-20-11
    On 8/5/11 Willy corrected the bike shops are not sponsors but give discounts with VIP cards-->
    <br /><p class="font-1"> These businesses will honor our <strong> G2 VIP Discount cards</strong>.  Please patronize them! </p> <br />
    <a target="_blank" href="http://bandjbicycle.com/ "><img alt="" width="190" height="70" src="images\sponsors\B&JBicycleBox_Resized_203x70.jpg" /></a><br /><br />
    <a target="_blank" href="http://www.bicyclegeneration.com/"><img alt="" width="193" height="80" src="images\sponsors\BicycleGenBox.jpg" /></a><br /><br />
    <a target="_blank" href="http://downtownbicycles.com/"><img alt="" width="200" height="90" src="images\sponsors\DowntownBicycleBox.jpg" /></a><br /><br />
    <a target="_blank" href="http://lauderdalecyclery.com/"><img alt="" width="152" height="134" src="images\sponsors\LauderdaleCycleryBox.png" /></a><br /><br />
    <a target="_blank" href="http://www.elmariachimexican.com/"><img alt="" width="200" height="102" src="images\sponsors\MariachiBox.jpg" /></a><br /><br />
    <a target="_blank" href="http://www.angieslist.com/companylist/us/fl/oakland-park/docs-plumbing-reviews-250951.aspx "><img alt="Our G2 Cycling Sponsors" width="200" height="103" src="images\sponsors\Doc's logo phone date Modified.jpg" /></a><br /><br />
    </div>
    <div class="box-title2 box-indent2">
    <div class="left">
    <div class="right">
    <div align="center"><a target="_blank" href="http://local.yahoo.com/info-14328340-big-wheel-cycles-fort-lauderdale?tab=photos/" ><span class="style1">Big Wheel Cycles</span>
    </a>
    </div></div></div></div>
    <br />
    <div class="box-title2 box-indent2">
    <div class="left">
    <div class="right">
    <div align="center"><a target="_blank" href="http://local.yahoo.com/info-14359733-bicycle-spot-oakland-park?tab=photos"><span class="style1">The Bicycle Spot</span></a>
    </div></div></div></div>
    I can't see anywhere in here where it's "touching" my menu div.  But DW sure does.  This has me baffled but you know there's an answer...
    Let me show you index.html too so you get a better picture of how this is structured.  Please don't laugh at my markup/coding!  I know it's gawd-awful and needs more improvement!!!  When I first inherited this it was filled with table based layouts, inconsistent imbedded styles from one page to another, a mess.  I'm trying to learn and fix it at the same time...
    OK>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
    <title>Welcome to G2cycling.com - South Florida Cycling Club</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <link rel="stylesheet" type="text/css" href="style.css" />
    <link rel="stylesheet" type="text/css" href="layout.css" />
    <script src="rollover.js" type="text/javascript"></script>
    <style type="text/css">
    .style1 {
    font-size: 1.6875em;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    .style2 {
    font-size: 2em
    .style3 {
    color: #00FFFF;
    text-decoration: underline;
    .style4 {
    color: #0099CC;
    text-decoration: underline;
    .style5 {color: #ECE9D8}
    .style6 {
    font-size: small
    .style7 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    </style>
    <meta name="GENERATOR" content="MSHTML 8.00.6001.19019" />
    </head>
    <body id="page1" onload="MM_preloadImages('images/m1_act.jpg','images/m2_act.jpg','images/m3_act.jpg','ima ges/m4_act.jpg','images/m5_act.jpg','images/m7_act.jpg','images/m8_act.jpg',,'images\m1_ac t.jpg','images\m2_act.jpg','images\m3_act.jpg','images\m4_act.jpg','images\m5_act.jpg','im ages\m7_act.jpg','images\m8_act.jpg')">
    <div class="top-bg">
    <div id="main">
      <div id="header"><!-- header -->
       <div class="menu">
    <a href="index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','images//m1_act.jpg',1)"><a href="index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','images//m1_act.jpg',1)"></a><a href="index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','images//m1_act.jpg',1)"></a><a href="index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','images//m1_act.jpg',1)"><img id="Image3" alt="" width="78" height="60" src="images/m1_act.jpg" /></a><a href="index-1.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image4','','images//m2_act.jpg',1)"><img id="Image4" alt="" width="143" height="60" src="images/m2.jpg" /></a><a href="index-2.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','images//m3_act.jpg',1)"><img id="Image5" alt="" width="145" height="60" src="images/m3.jpg" /></a><a href="index-3.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image6','','images//m4_act.jpg',1)"><img id="Image6" alt="" width="138" height="60" src="images/m4.jpg" /></a><a href="index-4.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image7','','images//m5_act.jpg',1)"><img id="Image7" alt="" width="132" height="60" src="images/m5.jpg" /><!--</a><a href="index-5.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','images\\m6_act.jpg',1)"><img id="Image8" alt="" width="87" height="60" src="images\m6.jpg" /></a>--><a href="index-6.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image9','','images//m7_act.jpg',1)"><img id="Image9" alt="" width="75" height="60" src="images/m7.jpg" /></a><a href="index-7.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image10','','images//m8_act.jpg',1)"><img id="Image10" alt="" width="102" height="60" src="images/m8.jpg" /></a>
       </div>
      </div>
    <div id="content"><!-- content -->
    <div class="container">
         <div class="style7"> A quick note to our Members:  August 2011 - Our website has undergone some recent changes and yes, there may be more to follow.  You will find links to the G2 Blog and the G2 Google Group pages under the "About G2" tab.  The ever popular Mileage Log will stay anchored right below.  Thanks! <br />
         </div>
    <div class="col-1">
            <div class="box-title2">
       <div class="left">
        <div class="right"><span class="style1">Upcoming Events</span><br /><br />
                    </div>
       </div>
      </div>
    <div class="indent-1">
      <dl class="list-2">
    <dt>Login To Log Your Miles</dt></dl>
    <p class="style3"><span class="style4">Join the new G2 mileage log. win prizes and have fun keeping track of your mileage and show your G2 spirit. click <strong>&gt;&gt;</strong><a target="_blank" href="https://spreadsheets.google.com/ccc?key=0Ar3vf7oGk_VbdGtHdElFam1wMUtRTENwMFNIZ1NjZWc&hl=en &authkey=CK-70u4P">HERE</a><strong></strong></span>.</p>
    <div class="line line-indent"></div>
    <dl class="list-2">
    <dt>Group Rides on Saturday</dt></dl>
    <p class="style5"><span class="style4">Meeting at the parking lot on Commercial Blvd.. and the Beach at 7:00am for fast and fun G2 Team Group ride</span>.</p>
    <div class="line line-indent"></div>
    <dl class="list-2">
    <dt>Group Ride On Sunday</dt></dl>
    <p class="style5"><span class="style4">Meet that the parking lot on Atlantic Blvd. and the beach at 7:30AM for a G2 Group ride at a pace of 19 to 21 miles per hour.</span></a></p>
    <div class="line line-indent"></div>
    <p><dl class="list-2">
    <dt>Interested in Racing for G2</dt></dl>
    <dd class="style4">Contact Willy at [email protected] for more information and training schedule.</dd></p>
    <div class="line line-indent"></div>
    <p><dl class="list-2">
    <dt>Want to be Time Trialer?</dt></dl>
    <dd class="style4">G2 is looking for men and women to form a Time Trial Team for individual and team racing so contact Willy at [email protected] for more information</p>
      <div class="line line-indent"></div>
    <p><dl class="list-2">
    <dt>Got pain? Something not feeling right? </dt></dl>
    <dd><a target="_blank" href="documents/fit.pdf">Click here for information on professional video fit analysis</a></p>
    <div class="line line-indent"></div>
    </div>
    </div>
    <div class="col-2">
    <div align="center"><img alt="" width="400" height="301" src="images\2011_jrsy.jpg" /><br />
    <br /></div>
    <h4 class="bg">Welcome to the G2Cycling Website!</h4>
    <p class="bg">Thank you for visiting G2 Cycling. We are continually improving our web site so please check back again for the most current updates on G2 rides, races and seasonal events.</p>
    <dl class="list-2"> </dl>
    <!--  Moved to About 7/28/11 hs <h4 class="bg">Check out the new G2 blog!</h4>
    <dd><a target="_blank" href="http://g2cycling.blogspot.com/">Click here to stay updated on the rides and happenings within G2</a></dd></dl>-->
    <h4 class="bg">New G2 Uniforms!</h4>
    <p class="bg">The new 2011 uniforms are designed and a preview should be available shortly!</p>
    <p class="bg"><img alt="g2 2011 uniforms" width="224" src="images\2011lizard.jpg" /></p>
    <p>Picture below is of 2009 uniforms. Limited sizes are still available - contact Willy if you're interested. Face it, you can never have too many!</p>
    <p><img alt="" width="224" height="168" src="images\g2Outfit.jpg" /></p>
    </div>
    <div class="col-3">
      <!-- #BeginLibraryItem "/G2_Sponsors.lbi" -->
      <link href="style.css" rel="stylesheet" type="text/css">
      <div class="box-title2 box-indent2">
        <div class="left">
          <div class="right">
            <div align="center"><span class="style1">Sponsors</span><br />
              <br />
            </div>
          </div>
        </div>
      </div>
      <div align="center"><br />
        <a target="_blank" href="http://www.yacht-transport.com/"><img alt="" width="182" height="42" src="images/sponsors/team_dyt.jpg" /></a><br />
        <br />
        <a target="_blank" href="http://www.helenmckenzie.com/"><img alt="" width="85" height="85" src="images/sponsors/hm_graphic.jpg" /></a><br />
        <br />
        <a target="_blank" href="http://www.spatopiamassage.com/"><img alt="" width="182" height="42" src="images/sponsors/header2.jpg" /></a><br />
        <br />
        <a target="_blank" href="http://www.jaxsonsicecream.com/"><img alt="" width="182" height="120" src="images/sponsors/jaxson_web.jpg" /></a><br />
        <br />
        <!-- HS 3-1-11 -->
        <!-- added 4 more plus to without websites 7-20-11
    On 8/5/11 Willy corrected the bike shops are not sponsors but give discounts with VIP cards-->
        <br />
        <p class="font-1"> These businesses will honor our <strong> G2 VIP Discount cards</strong>.  Please patronize them! </p>
        <br />
        <a target="_blank" href="http://bandjbicycle.com/ "><img alt="" width="190" height="70" src="images/sponsors/B&JBicycleBox_Resized_203x70.jpg" /></a><br />
        <br />
        <a target="_blank" href="http://www.bicyclegeneration.com/"><img alt="" width="193" height="80" src="images/sponsors/BicycleGenBox.jpg" /></a><br />
        <br />
        <a target="_blank" href="http://downtownbicycles.com/"><img alt="" width="200" height="90" src="images/sponsors/DowntownBicycleBox.jpg" /></a><br />
        <br />
        <a target="_blank" href="http://lauderdalecyclery.com/"><img alt="" width="152" height="134" src="images/sponsors/LauderdaleCycleryBox.png" /></a><br />
        <br />
        <a target="_blank" href="http://www.elmariachimexican.com/"><img alt="" width="200" height="102" src="images/sponsors/MariachiBox.jpg" /></a><br />
        <br />
        <a target="_blank" href="http://www.angieslist.com/companylist/us/fl/oakland-park/docs-plumbing-reviews-250951.aspx "><img alt="Our G2 Cycling Sponsors" width="200" height="103" src="images/sponsors/Doc's logo phone date Modified.jpg" /></a><br />
        <br />
      </div>
      <div class="box-title2 box-indent2">
        <div class="left">
          <div class="right">
            <div align="center"><a target="_blank" href="http://local.yahoo.com/info-14328340-big-wheel-cycles-fort-lauderdale?tab=photos/" ><span class="style1">Big Wheel Cycles</span> </a> </div>
          </div>
        </div>
      </div>
      <div class="box-title2 box-indent2">
        <div class="left">
          <div class="right">
            <div align="center"><a target="_blank" href="http://local.yahoo.com/info-14359733-bicycle-spot-oakland-park?tab=photos"><span class="style1">The Bicycle Spot</span></a> </div>
          </div>
        </div>
      </div>
      <!-- #EndLibraryItem --></div>
    </div>
    </div>
    </div>
    </div>
    <!-- #BeginLibraryItem "/Footer.lbi" -->
    <div id="footer">
    <div id="footer-main">
    <div class="indent"><strong>G2 Cycling </strong> © 2011 | Ride Clean Stay Lean, Inc DBA G2 Cycling | <a href="index-8.html">Privacy Policy</a></div></div></div><!-- #EndLibraryItem -->
    </body>
    </html>
    Again, if I make a change in G2_sponsors.lbi, I know to go to Modify > Library > Update Pages.  You taught me that, thank you.
    Now I just do not understand DW's behavior.  I thought I understood it but...
    H

  • Adding a JS script to the Library from disk causes Edge Animate to crash

    Hi
    I am experiencing a major problem with Edge Animate. I need to add a JS script to the Library from disk, but every-time I try to do this from the Library panel, the program crashes immediately.
    I did wonder if this was due to Finder, but I have tried the same operation from the Library panel to add video, audio etc and the Finder window opens and allows me to select a file without any issues.
    This is the system I am using
    Is there a way I can upload the crash report or attach it to a comment?
    Thanks
    Marco

    I have managed to fix this after googling the crash error and reading through some other posts.
    It appears that SCFinderPlugin was causing the issue. Other applications install it to the OSX without users realising - I don't recall ever installing it
    In order to remove this plugin you need to remove these files:
    /Library/Contextual Menu Items/SCFinderPlugin.plugin
    /Library/Receipts/SCPlugin.pkg 
    Hope this helps someone else at some point in the future.
    Marco 

  • How to use a Spry Menu as a Library item?

    Okay, this is my second post; but, with a different title.
    I made a Spry menu for my Home Page. I saved it and a logo
    together as a library item and placed the library item on a second
    page. The links in the menu work when there is no style sheet
    attached for the Spry meny and the menu appears just as text; but,
    as soon as the .css style sheet for the menu is attached to the
    second page, the menu appears correct except the drop down menus do
    not work. I tried adding a link to the Spry Java Script file as it
    is on the home page; still no luck.
    I tried the same with a test file, which I have since
    removed, stored at the same folder as the home page; same problem.
    How are we suposed to make a workable library item with a
    Spry Menu? Surely this is possible, no?
    Here are the two pages I am referring to:
    Good Page:
    http://iculver.com/
    Bad Page:
    http://iculver.com/pages/AboutUs/Personal_info.html

    Apologies - my mistake. You are correct, and my instructions
    were
    incomplete. That other bit is required too.
    > Now, I thought (probably in error) that items after !--
    were comments, but
    > it
    > seems to be required, too. I tried eliminating taht part
    and the menus did
    > not
    > work. I need all of this last part.
    The comments 'hide' the scripting from validators and older
    browsers, but
    it's still recognized as javascript, since the comments occur
    INSIDE a
    <script> tag.
    > these Spry Menus in Libraries easier to use...)
    It's not so hard once you get all the pieces together.
    1. Create the library item as described.
    2. Make sure that each page that is to carry this library
    item has the
    required links in the head (to the CSS and the js files), AND
    in the body.
    Why not use a template instead? That way, all of these links
    are managed
    for you.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "JustBob" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hummm...
    >
    > Now, don't yell at me, okay? I'm a goLive switcher and
    really a graphic
    > designer, not a coder...
    >
    > So, It seems from the above message that I am to
    establish the links to
    > the
    > script and the css file before inserting the library
    item. But, either
    > way,
    > that didn;t do the trick for me. I did find a bit of
    code in one of the
    > pages
    > that seems to be required.
    >
    > It seems I also need to insert this just before the
    close of the body tag:
    >
    > <script type="text/javascript">
    > <!--
    > var MenuBar1 = new Spry.Widget.MenuBar("MenuBar",
    > {imgDown:"SpryAssets/SpryMenuBarDownHover.gif",
    > imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    > //-->
    > </script>
    >
    > Now, I thought (probably in error) that items after !--
    were comments, but
    > it
    > seems to be required, too. I tried eliminating taht part
    and the menus did
    > not
    > work. I need all of this last part.
    >
    > I'm sorry I'm such a dope. I probably did something
    funny when I was
    > styling
    > the menu. (I do hope Adobe can accommodate dopes lime
    me, though, and make
    > these Spry Menus in Libraries easier to use...)
    >
    > Thanks for all of your help! Really!
    >

  • Library Items won't Update!!

    Argh, I've broken my menu for my website, which is a library item. I was getting an error when I validated one of the pages, and found it was an issue with my list not being properly nested within the library item's html. I thought I'd be smart and add a doctype to the library item, so that I could validate it on it's own and pinpoint the problem.
    Apparently, the doctype addition was added into all of my pages that contain the library item. Now I can't seem to easily get rid of it! I changed my menu's html to get rid of the doctype, but this change is not reflected when I update all pages. I go to Modify>Library>Update Pages... and choose to update the entire site. Nothing happens! The doctype is still in all of my pages that contain the menu, and it breaks the page (nothing shows in the Design view window.)
    Please help! I really don't want to have to delete and reinsert the menu on every page of my website. : (
    Here's an example, with the doctype error in the library item "menu-multilevel.lbi":
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="description" content="Best prices on black &amp; white copies! Located in Beavercreek, Ohio, we offer printing services including color copies, business cards, flyers, graphic design, large format printing, coil binding, and more."/>
    <title>World Digital Imaging - Contact Us</title>
    <link href="../css/wdi-basic.css" rel="stylesheet" type="text/css" />
    <!--[if IE]>
    <style type="text/css">
    /* place css fixes for all versions of IE in this conditional comment */
    .twoColHybLtHdr #mainContent { zoom: 1; padding-top: 15px; }
    /* the above proprietary zoom property gives IE the hasLayout it may need to avoid several bugs */
    </style>
    <![endif]-->
    </head>
    <body class="twoColHybLtHdr">
    <div id="container"> <a name="top" id="top"></a>
      <div id="header">
        <div><img src="../images/page-elements/black-bar-title.gif" width="649" height="135" alt="World Digital Imaging" /></div>
        <!-- end #header -->
      </div>
      <div id="sidebar1"><!-- #BeginLibraryItem "/Library/menu-multilevel.lbi" --><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <body>
    <div id="nav">
      <div id="navbody">
        <ul id="navlist">
          <li><a href="/index.html">Home</a></li>
          <li><a href="/pages/about/about-us.html">About Us</a>
            <ul>
              <li><a href="about/facilities.html">Our Facilities</a></li>
              <li><a href="about/people.html">Our People</a></li>
              <li><a href="pricing.html">Our Pricing Structure</a></li>
            </ul>
          </li>
          <li><a href="/pages/productsandservices.html">Products &amp; Services</a>
            <ul>
              <li><a href="productsandservices.html#standard">Standard Copies</a>
                <ul>
                  <li><a href="products/standard-copies.html">Black &amp; White Copies</a></li>
                  <li><a href="products/standard-copies.html#color">Color Copies</a></li>
                </ul>
              </li>
              <li><a href="products/lgformat.html">Large Format Printing</a></li>
              <li><a href="productsandservices.html#bizproducts">Business Products</a>
                <ul>
                  <li><a href="products/business/bizcards.html">Business Cards</a></li>
                  <li><a href="products/business/forms.html">Carbonless Forms</a></li>
                  <li><a href="products/business/emp-manuals.html">Employee Manuals</a></li>
                  <li><a href="products/business/envelopes.html">Envelopes</a></li>
                  <li><a href="products/business/flyers.html">Flyers/Brochures</a></li>
                  <li><a href="products/business/labels.html">Labels &amp; Stickers</a></li>
                  <li><a href="products/business/letterhead.html">Letterhead</a></li>
                  <li><a href="products/business/marketing.html">Marketing Info</a></li>
                  <li><a href="products/business/postcards.html">Postcards</a></li>
                </ul>
              </li>
              <li><a href="productsandservices.html#promotional">Promotional Products</a>
                <ul>
                  <li><a href="products/promotional/calendars.html">Calendars</a></li>
                  <li><a href="products/promotional/magnets.html">Magnets</a></li>
                  <li><a href="products/promotional/notepads.html">Notepads</a></li>
                </ul>
              </li>
              <li><a href="productsandservices.html#event">Special Event Products</a>
                <ul>
                  <li><a href="products/events/graduation/graduation.html">Graduation
                    Party </a>
                    <ul>
                      <li><a href="products/events/graduation/gradpackages.html">Graduation Packages</a></li>
                      <li><a href="products/events/graduation/gradguestbook.html">Guest Books</a></li>
                      <li><a href="products/events/graduation/invites/gradinvites.html">Invitations</a></li>
                      <li><a href="products/events/graduation/gradcollage.html">Photo Collages</a></li>
                      <li>Photo Products</li>
                      <li><a href="products/events/graduation/gradlabels.html">Return Address Labels</a></li>
                      <li><a href="products/events/graduation/gradthankyous.html">Thank You Cards</a></li>
                      <li><a href="products/events/graduation/gradyardsign.html">Yard Signs </a></li>
                    </ul>
                  </li>
                  <li><a href="products/events/greetingcards.html">Greeting Cards</a></li>
                  <li><a href="products/events/invitations.html">Invitations</a></li>
                  <li><a href="products/events/programs.html">Programs</a></li>
                  <li><a href="products/events/tickets.html">Tickets</a></li>
                </ul>
              </li>
              <li><a href="productsandservices.html#wedding">Wedding Products</a>
                <ul>
                  <li><a href="productsandservices.html#wedding">Wedding Invitations</a>
                    <ul>
                      <li><a href="products/wedding/wedinvitations-custom.html">Custom Designed</a></li>
                      <li><a href="products/wedding/wedinvitations.html">Traditional</a></li>
                    </ul>
                  </li>
                  <li><a href="productsandservices.html#otherwedding">Other Wedding Products</a>
                    <ul>
                      <li><a href="products/wedding/wedcollages.html">Collages</a></li>
                      <li><a href="products/wedding/wedprograms.html">Programs</a></li>
                      <li><a href="products/wedding/wedsavethedate.html">Save the Date Cards</a></li>
                    </ul>
                  </li>
                </ul>
              </li>
              <li><a href="products/customphoto/keychains.html">Custom Photo Products</a>
                <ul>
                  <li><a href="products/customphoto/coasters.html">Coasters</a></li>
                  <li><a href="products/customphoto/keychains.html">Keychains</a></li>
                  <li><a href="products/customphoto/mousepads.html">Mouse Pads</a></li>
                  <li><a href="products/customphoto/mugs.html"> Mugs</a></li>
                  <li><a href="products/customphoto/cushions.html">Stadium Cushions</a></li>
                </ul>
              </li>
              <li><a href="productsandservices.html#design">Design Services</a>
                <ul>
                  <li><a href="services/graphicdesign.html">Custom Graphic Design</a></li>
                  <li><a href="services/email.html">Email Newsletters</a></li>
                </ul>
              </li>
              <li><a href="productsandservices.html#finishing">Bindery &amp; Finishing</a>
                <ul>
                  <li><a href="services/binderbuild.html">Binder Building</a></li>
                  <li><a href="services/coiling.html">Coil &amp; GBC Binding</a></li>
                  <li><a href="services/laminating-mounting.html#mount">Foamboard Mounting</a></li>
                  <li><a href="services/folding.html">Folding</a></li>
                  <li><a href="services/drilling.html">Hole Punching/Drilling</a></li>
                  <li><a href="services/laminating-mounting.html#laminating">Laminating</a></li>
                  <li><a href="services/perfectbind.html">Perfect Binding</a></li>
                  <li><a href="services/saddling.html">Saddle-Stitching</a></li>
                  <li><a href="services/tabs.html">Tabs</a></li>
                </ul>
              </li>
              <li><a href="productsandservices.html#otherservices">Other Services</a>
                <ul>
                  <li><a href="services/cd-dvdcopying.html">CD/DVD Duplication</a></li>
                  <li><a href="services/faxing.html">Faxing</a></li>
                  <li><a href="services/scanning.html">Scan to File</a></li>
                </ul>
              </li>
            </ul>
          </li>
          <li><a href="/pages/portfolio.html">Portfolio</a></li>
          <li><a href="/pages/order.html">Place Online Order</a></li>
          <li><a href="/pages/newsletter.html">Newsletter Sign Up</a></li>
          <li><a href="copier-sales-service.html">Copier Sales/Service</a></li>
          <li><a href="franchising.html">Franchising</a></li>
          <li><a href="/pages/help.html">Help &amp; FAQ's</a>
            <ul>
              <li><a href="privacy.html">Privacy Policy</a></li>
            </ul>
          </li>
          <li><a href="/pages/contact.html">Contact Us</a></li>
          <li><a href="/pages/sitemap.html">Sitemap</a></li>
        </ul>
      </div>
      <div id="navbottom"> </div>
    </div>
    </body><!-- #EndLibraryItem --><!-- end #sidebar1 -->
      </div>
      <div id="mainContent">
        <h1>Contact Us</h1>
        <p>You may contact World Digital Imaging via email, phone, fax or mail. Our office hours are as follows:</p>
        <div style="text-indent:40px; line-height:1.25em; font-weight:bold;">
          <p>Monday - Thursday: 7:30am - 5:00pm</p>
          <p>Friday: 7:30am - 4:00pm</p>
          <p>Saturday: 8:00am - 12:00pm</p>
          <p>Sunday: CLOSED</p>
          <br/>
        </div>
        <h2>Email:</h2>
        <ul class="gen">
          <li>General Inquiry - <a href="mailto:[email protected]">[email protected]</a></li>
          <li>Place an Order - <a href="mailto:[email protected]">[email protected]</a></li>
          <li>Copier Sales/Service - <a href="mailto:[email protected]">[email protected]</a></li>
          <li>Craig (President) - <a href="mailto:[email protected]">[email protected]</a></li>
          <li>Angie (Adminstration) - <a href="mailto:[email protected]">[email protected]</a></li>
          <li>Ashley (Administration) - <a href="mailto:[email protected]">[email protected]</a></li>
          <li>Natalie (Graphic Designer) - <a href="mailto:[email protected]">[email protected]</a></li>
          <li>Danielle (Graphic Designer) - <a href="mailto:[email protected]">[email protected]</a></li>
          <li>Kathy (Production) - <a href="mailto:[email protected]">[email protected]</a></li>
          <li>Tim (Copier Repairs &amp; Maintenance) - <a href="mailto:[email protected]">[email protected]</a></li>
        </ul>
        <p> </p>
        <h2>Phone:</h2>
        <p>937-431-1982</p>
        <br/>
        <h2>Fax:</h2>
        <p>937-431-1985</p>
        <br/>
        <h2>Mail:</h2>
        <div style="line-height:1.5em;">
          <p>World Digital Imaging<br/>
            1138 Richfield Center<br/>
            Beavercreek, OH 45430</p>
        </div>
        <div id="map" class="ctr">
          <iframe style="width: 550px; height: 425px" src="http://www.mapquest.com/embed#b/maps/m:map:12:39.72919:-84.078493::::::1:1:::::::::/l:Worl d+Digital+Imaging:1138+Richfield+Ctr:Beavercreek:OH:45430:US:39.724894:-84.083313:address: :1:::26792578/e" frameborder="0" scrolling="No" marginheight="0" marginwidth="0"></iframe>
        </div>
    <!-- end #mainContent -->
      </div>
      <!-- end #container -->
    </div>
    <div id="footer"><!-- #BeginLibraryItem "/Library/footer-menu.lbi" --><div id="footer-menu">
    <ul style="list-style-type: none;">
      <li><a href="http://www.wdi-whq.com">HOME</a></li>
      <li><a href="#top">BACK TO TOP</a></li>
      <li><a href="privacy.html">PRIVACY POLICY</a></li>
      <li><a href="http://www.wdi-whq.com/pages/help.html">HELP/SUPPORT</a></li>
      <li><a href="http://www.wdi-whq.com/pages/contact.html">CONTACT US</a></li>
      <li><a href="http://www.wdi-whq.com/pages/sitemap.html">SITEMAP</a></li>
    </ul>
    <p class="clrflt"> </p>
    <br/>
    <p class="web-disclaimer">Website content and design copyright World Digital Imaging, 2009-2010.<br/>
    No part of this website may be reproduced in any form without the express written consent of World Digital Imaging.<br/>
    For questions or comments about the website, please contact the <a href="emailto:[email protected]">Webmistress</a>. </p>
    <br/>
    <br/>
    </div>
    <!-- #EndLibraryItem --><!-- end #footer -->
    </div>
    <br/>
    </body>
    </html>

    I've never used Library Items.  IMO Server-Side Includes are better for this.
    Can you do a Find & Replace in the Source Code (Ctrl+F) for this line?
    <!-- #BeginLibraryItem "/Library/menu-multilevel.lbi" --><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    And replace it with this:
    <!-- #BeginLibraryItem "/Library/menu-multilevel.lbi"
    -->
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

Maybe you are looking for