Applying the class library item

Hello

I have a table cell containing two library items.  I managed to apply a class to the first item without problem.  However, I have problems with the second element of the library.  When in the Dreamweaver design page that the style is applied to the second element of the library... However, when I've put it in the style browser disappears?

Here's the code.

< td width = "38%" valign = "bottom" class = "contact_bg" > < class p = "contact_title" > <!-#BeginLibraryItem "/ Library/contact_title.lbi"-> Contact Barry on... <!-#EndLibraryItem--> < /p >
< class p = "contact_details" > <!-#BeginLibraryItem "/ Library/contact_details.lbi"-->
< p > Mobile: 077 444 444 44 < /p >
< p > fixed: 0122 222 222 < /p >
< p > e-mail: [email protected] < /p >
<!-#EndLibraryItem->
< /p >
< table >

The class 'contact_details' is not applied to the second element of the library.  It applies only to the paragraph tag preceding the second element of the library!


             

Mobile: 077 444 444 44


             

Fixed telephone: 0122 222 222


             

E-mail: [email protected]


             
             

First, library items are not elements of presentation, they are DW Fireworks.  If you cannot apply CSS to them.  You can have them in a container with CSS is applied (as for the first item in the library), but try to apply CSS to a library item would be like trying to apply CSS to a HTML comment.

Second, you can not put a

tag in a

Tag, so the first

by force, tag (to which the class is applied) ends when the second

(one that contains 'Mobile' is encountered.  However, the influence of the class 'contact_details' is also stopped.

Change your code to this topic-


             

Mobile: 077 444 444 44


             

Fixed telephone: 0122 222 222


             

E-mail: [email protected]


             
             

and see what happens.

Tags: Dreamweaver

Similar Questions

  • Unable to apply the class style to the line of the table?

    created a class style with pad of 10px on only right & vertical alignment at the top.

    I want to apply this class to a table row - but when I do - I get the correct vertical alignment - but none touch.

    If I apply the same class style to each td cell - then the alignment and buffer work.

    I have a stupid mistake? There are 40 cells of td in the rank - so it would be more quickly just to apply the class to the whole line. any ideas what I am doing wrong? much thanks in advance.

    And by the way, the best way to proceed would be next, using a
    descendant selector-

    .padThis td {vertical-align: top; padding: 10px ;}}

    ...


    Now, all thetags thatwill be filling and alignment
    you want.

    --
    Murray - ICQ 71997575
    Adobe Community Expert
    (If you * MUST * write me, don't don't LAUGH when you do!)
    ==================
    http://www.projectseven.com/go - DW FAQs, tutorials & resources
    http://www.dwfaq.com - DW FAQs, tutorials & resources
    ==================

    "dextre manika" wrote in message
    News:gnauf0$NKT$1@forums. Macromedia.com...
    > created a class style with pad of 10px side right only & vertical
    > alignment to
    > top.
    >
    > I want to apply this class to a table row - but when I do - I get correct
    > vertical alignment - but no key.
    >
    > If I apply the same style of class to each td cell - then the two alignment and
    > pad
    > work.
    >
    > I have a stupid mistake? There are 40 cells of td in the row - so he
    > would be more quickly just to apply the class to the whole line. any ideas what I am
    > making
    > evil? much thanks in advance.
    >

  • Replace the library with another library item

    I created a new footer which is used as a component of the library throughout my site and I would like to replace the old library with the new item. I know that I could copy the code of the new element of the library in the former, but I would have preferred to keep the old file even. This kind of thing was easy in GoLive, is there a way to do this in DreamWeaver?

    more-simple
    the library folder of the files, right-click on the old .lbi Panel dw and
    Rename it to something like filename_old12 - 08.lbi
    Click on no to any update
    Then rename the exact file that former name did the new library item.
    -> Then dw menu edit-> library-> pages of updated items

    --
    Alan
    Adobe Community Expert, dreamweaver

    http://www.Adobe.com/communities/experts/

  • A copy of the class LVOOP


    Use the file > save as on the class library itself. Click on "save a copy".

    If you need to duplicate the entire hierarchy, create a specification to Build for "Source Distribution".

  • Why Flash does not generate the names of class not valid for library items?

    I imported a bunch of bitmaps (png).  Library symbol names included the full name of the file and its extension.  When I check "export for actionscript" he generates a class name based on the name of the symbol, and it includes the ".png", even if it is not valid in a class name.

    When I select several bitmaps and choose Properties and export for actionscript, this is a note saying that classnames will be automatically generated for all elements, but it does the same thing... including the ".png" in all class names.  Is this a problem?  It wouldn't save time if Flash would automatically deprive the the name of the instance of bitmap library symbol file extension when generating names of classes?

    Hi James,

    It's how he used to work in Flash CS 6 in which the name of the class generated automatically for any library item used to be the same as the element. Then, you will need to manually fix the name if necessary.

    This behavior has been changed in Flash CC. The names of classes are now generated correctly (special characters are removed, the names of symbols from wit a number get preceded by an underscore and for all bitmaps the extension line getting undress the class name). You can always change the classnames manually based on your naming convention.

    I hope this helps.

    Thank you!

    Mabrouk

  • Where can I add a tag in the code of a library item?

    Hello

    508 compliance purposes, I need to add a label to a menu from the list that I created as a library item in Dreamweaver. Can someone tell me where in the code following the label code add and how it should appear. The site is http://www.graphicmechanic.com/DEKALBCOUNTY/index.html. My auditor 508 tells me that I need to add a label to the form.

    The code is:

    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 ">"
    "" < link href = "... / cssfiles/lbistyles.css" rel = "stylesheet" type = "text/css" / >
    < do action = "" method = "post" name = "form1" class = "style52" id = "form1" > "
    < span class = "style26" > < strong > I WANT TO: < facilities > < br / >
    "" < img src = "... / pictures/5x5.gif" alt = "updated chart on page" width = "5" height = "5" / > < br / >
    </span > < span class = "style26" >
    < select name = "iwantto" class = "style55" onchange = "MM_jumpMenu ('window.open()', this, 0)" >
    "< option value ="http://web.co.dekalb.ga.us/voter/# "> SAVE to CREDIT < / option >"
    "< option value ="https://govaffiliate.ezgov.com/ezutility/index.jsp?agency=3411 "> PAY MY water BILL < / option >"
    "" < option value = "... /humanserv/HS-OSA-facilities.html" > FIND A SENIOR CENTER < / option >
    "" < option value = "... /humanserv/HS-Lou-Walker.html" > GET INFO ABOUT LOU WALKER CENTER < / option >
    "< option value ="http://www.dekalbstatecourt.net/ "> FILE a DECREE PROHIBITING to < / option >"
    "< option value ="http://www.dekalbcountyanimalservices.com/ "> REPORT A DOG LOOSE < / option >"
    "< option value ="http://web.co.dekalb.ga.us/courts/recorders/payment.asp "> GET INFO REFERENCE TRAFFIC < / option >"
    "< option value ="http://web.co.dekalb.ga.us/courts/probate/pistol.htm "> APPLY in a GUN LICENSE < / option >"
    "< option value ="http://web.co.dekalb.ga.us/courts/probate/marriage.htm "> GET MARRIAGE LICENSE has < / option >"
    "< option value ="http://www.co.dekalb.ga.us/dekalbflic/Centers.htm#service "> FILE FOR A DIVORCE < / option >"
    "< option value ="http://www.co.dekalb.ga.us/superior/index.htm "> GET INFORMATION ABOUT JUROR < / option >"
    "< option value ="http://web.co.dekalb.ga.us/taxcommissioner/search.asp "> PAY MY TAXES < / option >"
    < / select >
    </span > < / label >
    < / make >

    Any help would be appreciated.

    I also forgot to say, as an aside, in response to this:

    "It's just to take a little time to load (a lot of pages that was the update

    (appliquée à via le.lbi) ".

    It's a very good reason to use includes instead of the elements of Lib.  With contains, you can just edit and update a file only on your server and it will appear on all of your pages without having to also download all these pages themselves!  If you ever want to convert the instructions Include library hours (just a small part of the conversion total strive so!) I offer a free called DW Extension, suitably enough divaFreeTools:

    http://divaHTML.com/products/divaFreeTools/free_dreamweaver_tools.php

    --

    E. Michael Brandt
    
    www.divahtml.comwww.divahtml.com/products/scripts_dreamweaver_extensions.phpStandards-compliant scripts and Dreamweaver Extensions
    
    www.valleywebdesigns.com/vwd_Vdw.aspJustSo PictureWindowJustSo PhotoAlbum, et alia
    
    --
    
  • Maven configuration cannot be applied: cannot find 'basicAuthScope' in the class org.sonatype.maven.wagon.AhcWagon$ __sisu1

    Using Maven 3.2.5

    on Mac OS 10.10

    with mvn--version

    akmac2:enpit-sample-hr-maven ak$ mvn -version
    Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-14T18:29:23+01:00)
    Maven home: /Applications/Developer/apache-maven-3.2.5
    Java version: 1.7.0_25, vendor: Oracle Corporation
    Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/jre
    Default locale: de_DE, platform encoding: UTF-8
    OS name: "mac os x", version: "10.10.1", arch: "x86_64", family: "mac"
    


    Following the documentation to configure repository maven.oracle.com on http://docs.Oracle.com/middleware/1213/core/Maven/config_maven_repo.htm#MAVEN9010

    my settings.xml

    <servers>
    ..
     <server>
        <id>maven.oracle.com</id>
        <username>myOTNMailadress</username>
        <password>bla</password>
        <configuration>
          <basicAuthScope>
            <host>ANY</host>
            <port>ANY</port>
            <realm>OAM 11g</realm>
          </basicAuthScope>
          <httpConfiguration>
            <all>
              <params>
                <property>
                  <name>http.protocol.allow-circular-redirects</name>
                  <value>%b,true</value>
                </property>
              </params>
            </all>
          </httpConfiguration>
        </configuration>
      </server>
      </servers>
    
    <profiles>
     <profile>
          <id>oracleProfile</id>
          <activation>
            <activeByDefault>true</activeByDefault>
          </activation>
          <repositories>
            <repository>
              <id>maven.oracle.com</id>
              <url>https://maven.oracle.com</url>
              <layout>default</layout>
              <releases>
                <enabled>true</enabled>
              </releases>
            </repository>
          </repositories>
        </profile>
      </profiles>
    
    
      <!-- activeProfiles
     <activeProfiles>
        <activeProfile>oracleProfile</activeProfile>
      </activeProfiles>
    
    </settings>
    | List of profiles that are active for all builds.
    
    
    

    Get the following Exception all build a simple ADF 12.1.3 project. with mvn compile

    ....

    [DEBUG] use connector BasicRepositoryConnector with priority 0.0 to https://Maven.Oracle.com with username = myOTNEmail, password = *

    Download: https://Maven.Oracle.com/com/Oracle/ADF/library/BC4J-runtime/12.1.3-0-0/BC4J-runtime-12.1.3-0-0.Pom

    [WARNING] Could not apply that configuration for maven.oracle.com to the car org.sonatype.maven.wagon.AhcWagon$ __sisu1:could not find 'basicAuthScope' in the class org.sonatype.maven.wagon.AhcWagon$ __sisu1

    org.codehaus.plexus.component.configurator.ComponentConfigurationException: cannot find 'basicAuthScope' in the class org.sonatype.maven.wagon.AhcWagon$ __sisu1

    at org.eclipse.sisu.plexus.CompositeBeanHelper.setProperty(CompositeBeanHelper.java:252)

    at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:101)

    to org.eclipse.aether.internal.transport.wagon.PlexusWagonConfigurator$ WagonComponentConfigurator.configureComponent (PlexusWagonConfigurator.java:102)

    at org.codehaus.plexus.component.configurator.AbstractComponentConfigurator.configureComponent(AbstractComponentConfigurator.java:43)


    See also

    https://JIRA.codehaus.org/browse/wagon-422

    What is interesting in this issue of CAR-422 is: affected Version 2.8 / Versions of difficulty: 2.8


    Any ideas? Very disappointing up here the 'Oracle Maven Experience '.


    BR

    Andreas

    Hello

    It sounds like a question that we should already have set by which the parent pom com.oracle.maven:oracle - common: 12.1.3 - 0 - artifact 0:pom has the extension of car-ahc Sonatype configured (we did our test in early retirement with this car).  I just looked at the https://www.oracle.com/content/secure/maven/content/com/oracle/maven/oracle-common/12.1.3-0-0/oracle-common-12.1.3-0-0.pom

    and have verified that the extension pulling in the wagon-ahc is not there.  I am very interested to understand what is pulling in an extension of the wagon-ahc and remove for you get the appropriate wagon-http wagon.  Feel free to contact me privately so that I can get more information from you.  My email address is robert patrick at oracle dot com dot

    Please note that FMW 12.1.3 out initially using Maven 3.0.5.  While most of the plugins works without using Maven 3.2.5, changes you might encounter problems with a few plugins because of the disruptive changes made in Maven 3.1.0 when they passed their implementation of Ether starting from Sonatype to eclipse (which broke a lot of existing Maven plugins).

    Thank you

    Robert

  • link to an interactive report AND apply the filter for 2 items.

    Hi can you help me out here on how to create a link to an interactive report AND apply the filter for 2 items.

    Here is my code

    I have a list of table, clicking the selected item should link to interactive report and create the filter. Below the code does not work for a filter. can you help me what to do with 2 filters.

    A filter = > works very well

    sys. HTP.p ("< ul class =" uChartList"> ');

    sys. HTP.p ("< class li =" uNumber uGrid col_2 col_sart"> ');

    sys. HTP.p ("< a href =" "|") sys. HTF.escape_sc ('f? p ='|: APP_ID |': 0 0 :'||: APP_SESSION |':00:P00_XXX:000, RIR:IREQ_XXX:Test :') |) » » >') ;

    sys. HTP.p ("< class =" uValue"> ' | l_tester |) ("< / big >");

    sys. HTP.p ("< small class =" uLabel"> < /small > Tester ');

    sys. HTP.p ("< /a > '");

    sys. HTP.p ("< /li >" ");

    Scenario 2:

    Two filters = > does not

    sys. HTP.p ("< ul class =" uChartList"> ');

    sys. HTP.p ("< class li =" uNumber uGrid col_2 col_sart"> ');

    sys. HTP.p ("< a href =" "|") sys. HTF.escape_sc ('f? p ='|: APP_ID |': 0 0 :'||: APP_SESSION |':00:P00_XXX:000, RIR:IREQ_XXX:Test:P00_YYY:001:IRC_YYY:test2 :') |) » » >') ;

    sys. HTP.p ("< class =" uValue"> ' | l_tester |) ("< / big >");

    sys. HTP.p ("< small class =" uLabel"> < /small > Tester ');

    sys. HTP.p ("< /a > '");

    sys. HTP.p ("< /li >" ");

    Thanks in advance

    actually the syntax wrong values in the syntax of the passes to several elements.

    is

    f? p = 6000:6004: & APP_SESSION. : NO:6003:MY_ITEM1, MY_ITEM2, MY_ITEM3:1234, 5678

    Use above scenario and verification.

    Go

  • Can you do the "Apply CSS Class" part of the greatest Editor?

    Hello...

    I was wondering - is it possible to enlarge the window of the editor "apply CSS Class '... It's TINY. (on the site of 200px)

    So I don't see a lot of classes...

    Screen Shot 2012-09-01 at 11.01.09 AM.png

    Cheers, Dave

    Hey Dave

    You could paste the lines for these CSS elements you have in the CSS but also how your loading the css.

    IF you have several CSS or CSS class items are in a @import (a file css etc) it will not work.

    Also before that, try to clear the cache, log out, clear the cookies from domain for the site and reconnect. That sort? If this isn't the case, then do the foregoing.

  • Problem with the library item

    I edited the library main menu item, remove a section dealing with the "Pub food", which is now obsolete and needs new data.

    When it I spotted in a browser, it seemed strange.  So I removed the <!---->, to return to the previous version.  When I clicked the "Update" option, it updated the site, and 'fact' was shown.

    But ONLY the Index and the pages accessed directly from the top menu page have been updated.

    The old version is shown on every other page is shown here:

    What corrective measures to take, please?

    I have not downloaded the new version, but you can see the original at www.portobelloroad.org.uk

    <!-#BeginLibraryItem "/ Library/new_menu.lbi"-->
    < div id = "p7PMM_1" class = "p7PMMh04" >
    < ul class = "p7PMM" >
    "< li > < a href ="... /... /.. / index.htm "> home < /a > < /li >"
    < li > < a href = "#" > sites < /a >
    < div >
    < ul >
    "< li > < a href ="... /... /.. / gallery/venues/Carneval_2010/carneval_2010_detail.html "> Carnival in Notting Hill < /a > < /li >"
    "< li > < a href ="... /... /.. / events/PFF_2010/PFF_2010_detail.html "> < /a > < /li > Film Festival"
    < li > < a href = "#" > stores < /a > < /li >
    < li > < a href = "pubs_summary.htm" > Pubs & amp; "" Bar < /a > < /li >
    <!-< li > < a href = "#" > in the < /a > road food
    < div >
    < ul >
    < li > < a href = "#" > Restaurants < /a > < /li >
    < li > < a href = "#" > cafes < /a > < /li >
    "< li > < a href ="... / venues/food/pub_food_detail.html "> Pub Food < /a > < /li >"
    < li > < a href = "#" >-> other < /a > < /li >
    < /ul >
    < / div >
    < /li >
    < li > < a href = "#" > < /a > stalls
    < div >
    < ul >
    "< li > < a href ="... /... / stalls_south/south_stalls_detail.html "> stands - South < /a > < /li >"
    "< li > < a href ="... /... / stalls_central/central_stalls_detail.html "> wedge - Center < /a > < /li >"
    "< li > < a href ="... /... / stalls_green/green_stalls_detail.html "> wedge - green < /a > < /li >"
    "< li > < a href ="... /... / stalls_north/north_stalls_detail.html "> stands - North < /a > < /li >"
    < /ul >
    < / div >
    < /li >
    "< li > < a href ="... /... / banks/banks_detail.html "> banks & amp;" ATMs < /a > < /li >
    "< li > < a href ="... /... /.. / gardens/gardens_summary.htm "> Public < /a > < /li > Garden"
    "< li > < a href ="... /... / electric_cinema/electric_cinema_detail.html "> movie < /a > < /li >"
    "<!-< li > < a href ="... / events/all_music_detail.html "> Live < /a > < /li > - > music"
    "< li > < a href ="... /... / hotels / accommodation_summary.htm "> accommodations < /a > < /li >"
    < /ul >
    < / div >
    < /li >
    < li > < a href = "#" > Gallery < /a >
    < div >
    < ul >
    "< li > < a href ="... /... /.. / gallery/old_gallery.html "> story < /a > < /li >"
    "< li > < a href ="... /... /.. / gallery/venues/Carneval_2010/carneval_2010_gallery.html "> Carnival in Notting Hill < /a > < /li >"
    "< li > < a href ="... /... /.. / gallery/stalls_gallery.html "> stalls < /a > < /li >"
    < li > < a href = "#" > Portobello Green < /a > < /li >
    "< li > < a href ="... /... /.. / gallery/pubs_gallery.html "> Pubs & amp;" Bar < /a > < /li >
    "< li > < a href ="... /... /.. / gallery/views_gallery.html "> views General < /a > < /li >"
    < li > < a href = "#" > < /a > gardens
    < div >
    < ul >
    "< li > < a href ="... /... /.. / gallery/local_gardens_gallery.html "> Local Public Gardens < /a > < /li >"
    "< li > < a href ="... /... /.. / gallery/japanese_garden_gallery.html "> < /a > < /li > Japanese garden"
    "< li > < a href ="... /... /.. / gallery/ken_palace_gallery.html "> Kensington Palace Garden < /a > < /li >"
    < /ul >
    < / div >
    < /li >
    < /ul >
    < / div >
    < /li >
    "< li > < a href ="... /... /.. / articles/articles_summary.htm "> items < /a > < /li >"

    < /li >
    < li > < a href = "#" > other < /a >
    < div >
    < ul >
    "< li > < a href ="... /... /.. / about.htm "> on < /a > < /li >"
    "< li > < a href ="... /... /.. / books/books_summary.html "> books of interest < /a > < /li >"
    "< li > < a href ="... /... /.. / credits.htm "> credits < /a > < /li >"
    "< li > < a href ="... /... /.. / campaign/campaign_summary.htm "> save us campaign < /a > < /li >"
    "< li > < a href ="http://www.youtube.com/watch?v=4wvkEPmfJMU "> visitor videos on Youtube < /a > < /li >"
    "< li > < a href ="... /... /.. / terms.htm "> terms < /a > < /li >"
    < /ul >
    < / div >
    < /li >
    "< li > < a href ="... /... /.. / contact_us.htm "> Contact < /a > < /li >"
    < /ul >
    < div class = "p7pmmclearfloat" > < / div >
    <!-[if lte IE 6] >
    < style > .p7PMMh04 ul ul li {float: left; clear: both; width: 100%;}. p7PMMh04 {text-align: left;}. p7PMMh04, .p7PMMh04 ul ul a {zoom: 1 ;} < / style >}
    <! [endif]-->
    <!-[if IE 5] >
    < style > .p7PMMh04, .p7PMMh04 ul ul a {height: 1%; overflow: visible! important ;} .p7PMMh04 {width: 100% ;} < / style >}}
    <! [endif]-->
    <!-[if IE 7] >
    < style > .p7PMMh04, .p7PMMh04 a {zoom: 1;}. p7PMMh04 ul ul li {float: left; clear: both; width: 100% ;} < / style >}
    <! [endif]-->
    < script type = "text/javascript" >
    <!--
    P7_PMMop ('p7PMM_1', 1,2, - 5, - 5, 0, 1, 0, 1, 0, 3, 1, 1, 0, 0);
    ->
    < /script >
    < / div > <!-#EndLibraryItem--> < / div >

    You need to update pages that use the library item as per

    Then, you need to download all the relevant pages.

    GRAMPS

  • How to hide the classes in the library

    I'm developing a new project of library flex with the following design requirements:

    * api design using logical packages for clarity, etc.

    * api does not expose private/internal classes

    Using the modifier class "internal" prevents me to organize the api in packs of logics.

    I believe you can "hide" the classes through the use of namespaces, but I have not found all the samples that apply to classes, only functions.

    Can someone help me out here?

    Thank you

    Jeff

    Namespaces don't hide classes (as I know).  I know not NDA you could put a class in a custom namespace (ala mx_internal).

    But, you can use the excludeClass metadata to prevent a class to appear in the code hinting.  There are many examples of this in the Flex Framework.  I think it is a bound the DateChooser CalendarLayout class you can dig up for example.

  • To access external subclass library items? -NO of Document class

    Note: Please read before responding.

    Hello world

    I was work with/around and dodging a situation where I am trying to access Active FLA library movieclip, but NOT from the document class. I take advantage of this because it's my 4th forum announcement. I know the answer to this one:

    instanceName:ClassName = new ClassName();

    So please, stay with me...

    The easiest way to access the items in the library of a subclass appears to be this:

    // at top
    import TestLocalMC;

    // in constructor
    var box:TestLocalMC = new TestLocalMC();
    addChild(box);

    However, it does not appear. I tried a fake nonexistent class. It gave me an error so I know it refers to a class in the library that I provided. If I trace the object, it will appear. If I trace the value of X, it says 0. So logically, it should be right in front of me... but he's not here!  LOL so... I'm on the right track? Is - this familiar to all, anyone? Is there something that I am missing?

    You would be a great help if I could reference the elements of the library FLA with a bit of freedom to the document class. Go to the top of the class hierarchy tree each time to retrieve a movieclip becomes quite painful.

    Thanks in advance for your suggestions.

    If I add a subclass of the scene then I cannot add MovieClips from the library without having to refer to the Document class right?

    That is right.

    Although I am not following your example.  Suppose you have a movieClip in your library called Train and there is a graph of a train.  Let us also assume that I went through the steps to make loans to export (binding dialog box properties export for ActionScript checked.  Readings of the class field: Train) I want to create a new Train at my stage of in a subclass.

    Your main class:

    package

    {

    import of the subclass;

    SerializableAttribute public class Main extends MovieClip

    {

    public var mySubClass:SubClass = new subclass;

    this.addChild (mySubClass);

    } //class

    } //package

    Then, the subclass

    package

    {

    import of Train;

    SerializableAttribute public class subclass extends MovieClip

    {

    public void subclass (): void

    {

    train: Train from var = new Train;

    this.addChild (train);

    } Function constructor //SubClass

    } //class

    } //package

    I hope this helps.

  • Error 5000: The class 'Particle' must subclass 'flash.display.MovieClip' because it is linked to a symbol in the library of this type.

    Running Flash CS3, I looked at the tutorial from lynda.com on strengthening the systems of particles in ActionScript 3.0 to create a few sparks shooting in an animation.  I'm stuck to what I think is a point really basic, but I can't seem to cross it.  Basically, all I'm doing at this point is to create a class called particle (that I'll learn to do things that the particles to make a little later) bind it to a MovieClip on the stage in my .fla file and use the function to update the particle to move it around the stage in a way defined in the instance (so I can later give properties of different movement to) each as an instance generated the MC).  I know there are easier ways to accomplish my basic task without loading an external module, but this seems to makes it so I have to hurt something very simple, that I can't see so I thought I'd post the code here and see what I'm missing.

    I start with a file called Particle.as in the same folder as my file Test.fla Spark.

    In Particle.as, I have the following code:

    package
    {
    import flash.display. *;

    Particles/public class extends MovieClip
    {
    public xVelocity:Number;
    public yVelocity:Number;

    public void Particle()
    {
    xVelocity = 0;
    yVelocity = 0;
    }

    public void update (): void
    {
    This.x += xVelocity;
    This.y += yVelocity.

    }
    }
    }

    So, I declare that all the particles are built with no movement, but if they are explicitly granted an x or y velocity, they will pass by there a lot when updating the instance function is called in the timeline panel.

    Then in my file Test.fla spark, I have a small shape in a MovieClip called Spark.  In the properties of binding of spark, I chose to export for ActionScript and export in first frame.  The class is called Spark and the Base class is the particle.  For testing purposes, I dropped an instance on the stage and called spark.  Then in the layer actions in the first image (the timeline is just the spark layer and the layer actions, a long frame each with no "stop();" so it should run forever), I have included the following code:

    spark.xVelocity = 5;
    spark.yVelocity = - 1;

    function updateSpark(event:Event):void
    {
    Spark.Update ();
    }

    addEventListener (Event.ENTER_FRAME, updateSpark);

    Is what it seems that this should be on every Flash ENTER_FRAME should call updateSpark, which is a function that handles the event update() for the instance of the spark which is a movieclip instance that has an update event that moves x and y of the position of their relative velocity variables.  It seems simple enough to me, but when I ctrl-enter to test the movie, I get the following compiler 3 errors:

    Particle.As line 1: 5000: the class 'Particle' must subclass 'flash.display.MovieClip' because it is linked to a symbol in the library of this type.

    Particle.As line 7:1071: syntax error: expected a keyword (for example function definition) after the public attribute, not xVelocity.

    Particle.As line 7:1084: Syntax error: expecting rightbrace before the semicolon.

    Since I imported flash.display. * and declares the class public particle so it extends MovieClip I have no idea why I get this error of 5000.  I see this issue come up a lot when searching Google and forums, but none of the resolutions that I could find have suggested an approach that applies to me or solve the problem.

    Any help to fix this would be appreciated.  I enclose a zip of the FLA a files as described above in case there is something in the settings of publication that I messed up inadvertently.  In addition, if you can get this to compile without error, then the problem may be due to my Flash CS3 Pro install which will result in the problem isn't with my code and start looking at me in a different direction.

    Thank you

    Scott

    Yes, 'var '.

  • blanks around the library items

    Hello
    I have a problem annoying with DW 8.0.2 for Mac OS X. whenever I update a library item that is framed by spaces in my code, white around it will fade, whenever I have apply the changes to all the pages containing the library item. For example, the code looks like this before the update:

    ... "Please <!-#BeginLibraryItem" / Library/register_here.lbi "--> < a href ="... /... / cgi-bin/UMapps/register.pl "> here < /a > <!-#EndLibraryItem > - to get..."

    and as this then:

    ... "Please <!-#BeginLibraryItem" / Library/register_here.lbi "--> < a href ="... /... / cgi-bin/UMapps/register.pl "> here < /a > <!-#EndLibraryItem > - to get..."

    Now the spaces around the library item disappeared...

    I could include spaces in the library item, but that would prevent me from using it in a context like this:

    ... "All other customers please <!-#BeginLibraryItem" / Library/register_here.lbi "--> < a href ="... /.. / cgi-bin/UMapps/register.pl "> register < /a > <!-#EndLibraryItem > - here."

    Is this a bug, or y at - it means to DW to keep spaces?
    Thanks in advance!

    Korbinian

    I would, if Server Side Includes were not considered a security problem by our (admittedly a bit paranoid) sysop...
    Apart from this, the possibility of using library items is one of the reasons why I use Dreamweaver and I could be
    wrong, but I don't remember having this problem using version 6 (which had other bugs, that's why I've updated...)

    Regarding design flaws: put several library items like these on a line in a paragraph with an alignment justified, and you will get the lines that contain a word at the beginning of the line, a comma and a single word ending in line, according to the
    width of the browser window, which may not be a big deal, but can be easily avoided by not using not s...

    Oh well, thanks for your suggestions anyway! I think I'll have to go with the s for now...

    Quote:
    Posted by: newsgroup user
    A much better work around would be to not use all the elements of library - replace
    their side includes server and then you won't have to worry about this.

    > Apart from the obvious flaws, that everywhere where a * break
    > space *.
    > should be?

    Who would those be?

  • Message: "some items in the iTunes library... no were not copied to iPod... because they cannot be played on iPod.

    I get the message "Some of the items in the iTunes library were not copied to the iPod because they cannot be played on iPod."  The listed songs have always copied, sync would and played on my iPod. My iPod is old, but I've never had this message before. Go listen to songs on my Mac.

    This looks like what happened a few weeks ago.  I quit iTunes, then he revived.  The problem disappeared and has not returned.

Maybe you are looking for

  • Addition of 1 GB of RAM

    My Pressario 2000 has 1 GB of RAM now, but it is slow. I add 1 GB of RAM to increase speed? Thank you

  • Devices 6210 USB in a virtual machine using

    Hello I have a NI 6210 usb device which I want to use in a virtual machine running in Sun's VirtualBox. The host operating system is Vista, the operating system in the virtual XP machine. It seems as if between the two OS USB device sharing does not

  • Contrast and brightness adjustment

    I am pleased to be with you. I hope you can give me the help I'm looking for cold Chicago. I have an Aspire 5600U all-in-one computer running 64-bit Windows 8 and I would like to adjust contrast and brightness. I found the buttons on the side right t

  • YouTube does not play videos in google chrome, I see only black white screen with nothing happening.

    * Original title: youtube Hello YouTube is not playing videos in google chrome, I see only black white screen with nothing happens YouTube works fine under IE WATS the problem please say n give solution This problem has something to do with Dell Data

  • packet loss on the ipsec tunnel

    I currently have 2 routers (one at each site). The two are running 12.3 (9th). A router is a 2621 and the other is a 2611XM. This is the relevant config: Router crypto ISAKMP policy 10 BA 3des preshared authentication isakmp encryption key * address