Trying to put moving text on a stage

Hi This code complains thatI need to import  flash.display.MovieClip, but I have and it dosn't understand addChild.
Very simple code
package code
public class WebPresentation1
  import flash.display.Sprite;
  import flash.text.TextField;
  import flash.text.TextFieldType;
  import flash.text.TextFieldAutoSize;
  import flash.text.TextFormat;
  import flash.display.MovieClip;
  var label:TextField;
  public function WebPresentation1()
   configureLabel();
  function configureLabel():void
   label = new TextField();
   label.autoSize = TextFieldAutoSize.LEFT;
   label.background = true;
   label.border = true;
   addChild(label);
   // I:\presentation2\code\WebPresentation1.as, Line 26 1180: Call to a possibly undefined method addChild.
   // I:\presentation2\code\WebPresentation1.as, Line 1 5000: The class 'code.WebPresentation1' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type.
  function setLabel(str:String):void
   label.text = str;
Please help
Desmond.

Should be like this:
package
    import flash.display.MovieClip;
public class WebPresentation1 extends MovieClip
  import flash.display.Sprite;
  import flash.text.TextField;
  import flash.text.TextFieldType;
  import flash.text.TextFieldAutoSize;
  import flash.text.TextFormat;
  import flash.display.MovieClip;
  var label:TextField;
  public function WebPresentation1()
   configureLabel();
  function configureLabel():void
   label = new TextField();
   label.autoSize = TextFieldAutoSize.LEFT;
   label.background = true;
   label.border = true;
   label.text="test";
   addChild(label);
   // I:\presentation2\code\WebPresentation1.as, Line 26 1180: Call to a possibly undefined method addChild.
   // I:\presentation2\code\WebPresentation1.as, Line 1 5000: The class 'code.WebPresentation1' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type.
  function setLabel(str:String):void
   label.text = str;

Similar Messages

  • I AM TRYING TO PUT TEXT ON A PHOTO AND USE THE T ON THE BOARD BUT I GET A MESSAGE SAYING PROGRAM ERROR AND IT DOSNT LET ME PUT ANY PRINT .

    I AM TRYING TO PUT TEXT ON  A PHOTO USING THE T ON THE BOARD. I GET  A MESSAGE SAYING PROGRAM ERROR AND IT DOSNT LET ME ADD TEXT.

    There's something wrong with your Photoshop install.
    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand, such as your platform (Mac or Win), exact versions of your OS, of Photoshop and of Bridge, machine specs, what troubleshooting steps you have taken so far, what error message(s) you receive, if having issues opening raw files also the exact camera make and model that generated them, etc., someone may be able to help you.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • I am using pages '09. I have been trying to put together a report and I am using tables to help keep my data in line. My data is free text and would like to footnote certain data as to it origin, but footnoting is grey-out. How can I footnote on table mod

    I am using pages '09. I have been trying to put together a report and I am using tables to help keep my data in line. My data is free text and would like to footnote certain data as to it origin, but footnoting is grey-out. How can I footnote in table mode inpages '09?

    Footnotes can only be inserted in the main text area between the margins on a Word Processing document.
    Peter

  • Pages:  I am trying to put an image to the background of text.  When the image is selected I am unable to click on the Background option.  Help.

    Pages:  I am trying to put an image to the background of text.  When the image is selected I am unable to click on the Background option.  Help.

    Thanks for responding!!!  Please help.  In last years pages version it worked great!!!
    Pages: 5.1
    OSX: 10.9.1
    Template:  Just a Blank.  I am working on a document that I created last year.  Now just making edits.
    Ben

  • I am new to iMacs bought to do movies from dv camcorder got film down to h-drive now trying to put text before movie can't find out how help says i can but not how parick smith

    I AM NEW TO I-MACS HAVE BEEN ON WINDOWS MACHINES UP TILL NOW HAVE OLD VIDEIO CAMERAS AND NOW NO DRIVERS TO BE FOUND
    FOUND THAT MACS CAN TAKE DV CAMERAS GOT ALL THE RIGHT CABLES AND DOWN LOADED MY FILM NOW NEED TO PUT ON TEXTS  HELP SAYS I CAN FIND THEM ON SPOTLGHT SUPOSED TO SHOW ICON BUT NO ICON THERE HOW DO I FIND THIS AND GET IT TO THE FILM
    PATRICK

    Has RegisfromFr stated it is best to use iMovie, this link is for tutorials on how to use I Movie.
    http://support.apple.com/videos/#imovie
    If you are near an Apple store they have classes to help you use the software, very informal and helpful.

  • HTTP 415 Unsupported Media Type with SOAP adapter trying to put SOAP header

    Hello,
    I am trying to put data into soap header using soap receiver adapter. Seems like building the complete soap message is the right way to go. Thus I wrote a java program to build the complete soap message (soap envelop, soap header and soap body which contains the message PI received from the sender). Mapping program works well. However when I ran the scenario, I got Error "SOAP: response message contains an error XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 415 Unsupported Media Type" when calling the receiver's web service (the SOAP receiver adapter CC have the "Do Not use SOAP Envelop" checked). Anyone knows why I got this error? From google, seems like this error is because the http's content-type is set to other type, rather than "text/xml". However in soap CC there is no option to control this.
    The message sent to the receiver is (after mapping);
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header>
    <SOAP-SEC:Signature xmlns:SOAP-SEC="http://schemas.xmlsoap.org/soap/security/2000-12" MyAttr="value">My Test Value</SOAP-SEC:Signature>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <ns1:UpdateEquipment xmlns:ns1="http://mycomp.com/mywebservice">
    <ns1:EquipmentNumber>000000012345</ns1:EquipmentNumber>
    <ns1:LicensePlate>654321</ns1:LicensePlate>
    </ns1:UpdateEquipment>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    Anyone can help?
    Thanks

    When you check "Do Not use SOAP Envelop", the SOAP adapter chooses application/xml instead of text/xml.
    You can change the content type with help of the MessageTransformBean. You put the bean in the module chain of the receiver channel and add the parameter Transform.ContentType = text/xml
    See
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/57/0b2c4142aef623e10000000a155106/frameset.htm

  • How to create a moving text in APEX forms?

    Hi
    Can anyone help me with the procedure and the code for creating a moving text in APEX.
    Thanks in advance.

    marquee was introduced with IE (Internet Explorer) and certain versions of Firefox, Opera, Chrome and Safari web browsers support it.
    tell me how do you want the text to work. the easiest way will be to create an HTML region and put the marquee tag code in it
    if you fear about the compatibility of marquee with browsers or have a browser version with which marquee does not work then use JQuery
    check the following
    http://plugins.jquery.com/marquee/
    let me know if this answers your query in the current thread
    Regards,
    Vishal
    Oracle APEX 4.2 Reporting | Packt Publishing
    Vishal's blog

  • Is there way to put single text line in each response via WL configuration.

              Hello,
              Our partners are using SunOne server and
              they can easy include P3P policy file to each response via server configuration.
              Can we do it with WL?
              We have more than 3000 JSPs to modify.
              I think filter will slow down our site.
              We already put P3P policy in well known place but browser can't find it
              Is there way to put single text line in each response via WL configuration.
              Thanks,
              Oleg.
              

    SunnyKSood
    The quickest approach that comes to mind is
    a. create 3 separate titles in the Titler (Text Menu/New Text/Default Text)....
    food, goes on Video 4
    routes, goes on Video 3
    hostels, goes on Video 2
    Arrange them so that when viewed they are viewed as
    hostels
    routes
    food
    b. Move hostels (Video 2) to where you want it to start in relation to
    "Today I am going to talk about travelling in the North of Scotland and give advice on how to get by. I will talk about the best value hostels " - the word 'hostels' appears first at the top right of the screen
    Move routes (Video 3) to where you want it to start in relation to
    "I will describe the best routes to take" - the word 'routes' now appears under the the word 'hostels'
    Move food (4) to where you want it to start in relation to
    "And finally, I will describe the best places to eat traditional Scottish cuisine" - the word 'food' now appears under 'routes'.
    c. When all that is done to this stage, it might look like this...
    Now to arrange and drag out track content so that we see
    hostels
    then hostels + routes
    then hostel + routes + food
    when they are supposed to appear in conjunction with the video's dialog.
    The final workspace should look like
    Please give this a try. And, do not hesitate to let me know if you need clarification on anything described.
    We will be watching for your results.
    Thank you.
    ATR

  • Im trying to put music on my iPod, but it keeps saying "iPod cannot be synced unknown error occurred". Whats wrong?

    I tried to put music on my ipod and it keeps saying "cannot sync ipod unknown error occured" whats wrong??

    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  Connect via cable to the computer that you use for sync.  From iTunes, select the iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPod.  Again, say "yes."

  • UseCase: I have installed Flash Builder 4.5 on computer 1. On this computer we configured our licence. This was 4 years ago. Now we set up a computer 2 with Flash Buidler 4.7. We were trying to put in our license to this computer. It did not accept this s

    UseCase: I have installed Flash Builder 4.5 on computer 1. On this computer we configured our licence. This was 4 years ago. Now we set up a computer 2 with Flash Buidler 4.7. We were trying to put in our license to this computer. It did not accept this serial. Is it possible to initialize several computers with the same serial number or is this issue related to the version 4.5 or/and 4.7.

    Moving this discussion to the Installing and activating Flash Builder forum.

  • I am trying to put a transition between two clips and it's not going.

    I am working in FInal Cut Pro X and until now have had no problem putting trasitions into my timeline. Now I'm trying to put it between two video clips and it's not even moving there. Is there something I might have turned off that's not allowing me to do this

    You mean red like this
    That's the end of the media. No handles for an overlap. You can still do a full overlap transition, but it will shorten the project and shift the content.

  • I am trying to put the music from my ipod onto my new computer. After installing itunes and connecting my ipod touch a message comes up saying that my ipod is already synced with another library. What can I do to sync it with a new library?

    I recently got a new computer and got rid of my old one. I am trying to put the music from my ipod touch onto my new computer but keep getting a message saying that my ipod is already synced with a library and cannot be synced with more than one. How do I access that library on my new computer and if I can't are their other ways for me to put the music on my ipod into my new computer?

    Syncing to a new iTunes library or computer will erase your ipod. Only if you back up your iPod manually before syncing, you can restore your device from that backup again. A manual backup does not include the sync process.
    Disable autosync in iTunes, connect your iPod to your new computer and right click on it in the device list and choose backup. iTunes will backup your ipod without syncing.
    Transfer your purchases the same way, choosing "transfer purchases" this time.
    When you connect your iPod for the first time, all media content will be erased. But you can restore your settings and app data from your manual backup afterwards.
    Don't forget to set up at least one contact and event on your new computer to be able to merge calendars and contacts when you sync the ipod for the first time.
    Music is one way only, from the computer to your device, unless you bought the songs in itunes and transferred your purchases.
    There is 3rd party software out there, but not supported by Apple, see this thread:http://discussions.apple.com/thread.jspa?threadID=2013615&tstart=0
    About backups and what's saved: http://support.apple.com/kb/HT4946
    How to back up and restore:http://support.apple.com/kb/HT1414
    How to download apps for free again:http://support.apple.com/kb/HT2519
    Saving other data is also described here. How to back up your data and set up as a new device

  • Trying to create a text that is on fire or more like a hot branding iron

    Trying to create a text that is on fire or more like a hot branding iron

    Something like this?
    That was from a project I did a few months ago.  Sounds similar to what you want.  I did that in After Effects.
    Basically all I did was add a glow effect to the text and messed around with the glow parameters.  The black smoke is animated and moves on the actual video and is basically some pre keyed smoke footage that I had.  The smoke was originally gray but black looked cooler.
    I'd say it's pretty close to your hot branding iron thing.

  • I am trying to put music into my 3rd gen ipod touch and older ipod shuffle but they do not show up on Itunes when i connect them,what could be the problem?

    i am trying to put music into my 3rd gen ipod touch and older ipod shuffle but neither are popping up on itunes, what could be the problem?

    See
    iOS: Device not recognized in iTunes for Windows
    - I would start with
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or              
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    However, after your remove the Apple software components also remove the iCloud Control Panel via Windows Programs and Features app in the Window Control Panel. Then reinstall all the Apple software components
    - New cable and different USB port
    - Run this and see if the results help with determine the cause
    iTunes for Windows: Device Sync Tests
    Also see:
    iPod not recognised by windows iTunes
    Troubleshooting issues with iTunes for Windows updates
    - Try on another computer to help determine if computer or iPod problem

  • I get this message when trying to past simple text into an e-mail document. The Web-Based Email plugin has crashed. I have run out of options...please help.

    The Web-Based Email plugin has crashed. I get this message when trying to paste simple text into an email document. I have updated plugins and have run out of options. If I use another browser I have no problem. Please advise.

    UPDATE
    Compiling from command line I found out that the class definition for oracle.oats.scripting.modules.basic.api.IteratingVUserScript is missing. Do you know what .jar file contains this class?
    Thanks.
    Fede.

Maybe you are looking for

  • How can I create a solution with Livecycle

    I work for a high school and we have about 12 pdfs that we need parents to read/scroll through, then 10 (different) pages that we want them to print, complete and return to the school.  Finally, we want them to see a "Thank you, you have done all you

  • Memory leak in ODBC Driver version 8.1.7.8?

    We have a web application connected to an 8.1.7 database on a MS Windows 2000 SP 2 server. We recently upgraded ODBC driver from 8.1.7.7 to 8.1.7.8 and found that we ran out of virtual memory. On further investigations, a simple refresh of our summar

  • Is there a way to undo a backup that overwrote a previous backup on itunes?

    I recently restored my iphone due to some complications, everything was going good. I forgot my encrypt backup password and had to restore as a new iphone. I was planning on restoring it again once i remembered my password however itunes backed the n

  • Extra DVI adapter with Mac Pro?

    Hello- I recently received a Mac Pro and it included two adapters - one was the DVI to VGA and the other looks like a DVI to DVI adapter or extension. I use a monitor with a VGA connection so I'm not familiar at all with the different DVI connections

  • Push policies on mac's

    This question is intened for IT user's who have a lot of mac's in their environment we have a small amount of mac user's within our company, less than 100 users. within outlook for mac is a preference that shows you a brief description of an email wh