Can't find: '{' expected and Syntax error

I did a hover caption tutorial at ultrashock.com. Scripts
work for others. When I try to publish, I get this output:
**Error** /dailyBackup/html/caption/Library.as: Line 1: '{'
expected
class
Library
{
           
static function delegate(object:Object,
methodName:String):Function
           
var method =
object[methodName];
           
delete
methodName;
           
var parameters = arguments.slice(2);
**Error** /dailyBackup/html/caption/Caption.as: Line 1:
Syntax error.
import Library;
import Tween;
import
easing.*;
import DropShadowFilter;
I copied all the imported AS files from the Macromedia
directories and put them in the same folder with Caption.as and
Library.as and hotspot.fla.

Depending if you are writing a "class" or just wanting to
insert common code will determine if you need the .as files at
runtime or not.
For example, when writing a class, you have to write it in an
external .as file and you only need the .as file during authoring
and publishing. Once the file has been published you do not need
the .as file any more. Classes are always referenced with the
"import" keyword.
If want to include common code in your Flash file that is NOT
a class, then you would use the "include" keyword. When you
"include" a .as file you will have to also keep it with the
published SWF file. So you would need it during authoring and at
runtime.
Tim

Similar Messages

  • I had to get a new ipod....they said I just needed to plug it in and sync to my itunes.. I get an error 1413 when I try to follow the instructions to restore.  I can't find any information on error 1413, what does this mean?

    I had to get a new ipod....they said I just needed to plug it in and sync to my itunes.. I get an error 1413 when I try to follow the instructions to restore.  I can't find any information on error 1413, what does this mean?

    Now it keeps saying that it is restored but there is still no music or video on it. And a new error is coming up that says "We could not complete your iTunes store request.The iTunes Store is temporarily unavailable. Please try again later."

  • How do I get past "can't find valid dvd player" error?

    This is regarding a G4 powermac running Tiger 10.4.3
    My Sony dual layer DRX-720UL/T seems to work fine with DVD-ROM content. My kids use it for DVD-ROM games and I had no problem installing Tiger. Problem comes in when I open "DVD player" and get a "Can't find valid dvd player," error. They're connected via Firewire 400, and I've tried the USB link, just to see, but the same error comes up. I'm fairly certain that I viewed a DVD before upgrading to Tiger. The Sony is supposed to be fully mac compatiable, and even comes with Toast light 6. Again all seems to be well except for the fact that DVD player won't allow me to view a NTSC DVD. No matter how many I try.

    What drive was in this G4 prior?
    If you did not have a DVD drive, you need to use Pacifist to extract & install DVD Player.app; downloading or drag&drop won't work.
    Also, Sony drives are probably the worst when it comes to compatability; one specific model may work fine, and others not. This should be less of an issue in Tiger, but only if the problem is other than the optical drive firmware, about which you can do nothing (on a Mac), unlike Pioneer & NEC drives that have mac-based flashers available.
    If DVD Player was installed previously, based on having a DVD drive prior to Tiger install, you may want to try running the 10.4.3 Combo updater over your existing install.

  • Where can I find a Java Syntax Highlighting TextArea?

    Where can I find a Java Syntax Highlighting TextArea?
    I'm currently only aware of JEdit and Netbeans being open source projects containing textarea components.
    BTW can code from the above projects be used in a project of my own?

    I have a syntax highlighting package (open source, GPL):
    http://ostermiller.org/syntax/
    It comes with a demonstration editor a tutorial:
    http://ostermiller.org/syntax/editor.html

  • Updated to 7.0.2 and now some of my music has been removed and I can't find it, and music I deleted years ago has reappeared, and I can't delete it from icloud. My phone will also no longer sync with my computer.

    I updated to 7.0.2 and now some of my music has been removed and I can't find it, and music I deleted years ago has reappeared, and I can't delete it from icloud. My phone will also no longer sync with my computer. My phone has also been freezing regularly since I updated.

    The reason, I included the annotation that I'd upgraded my Itunes, (On my Computer) is B/C in many forums - the very first question, *HELPERS* ask, is. "Do you have the latest version of Itunes downloaded on your computer." I wanted to knock out any obvious replies.
    Now-  "DO YOU have any idea,"... how your UNHELPFUL remarks, do absolutely nothing but hurt others that might not have the EXPERIENCE you have? How do you expect people to know things without asking questions? Whew! RUDE!!
    Message was edited by: Apple I0S Help Team

  • How do you use "find my phone"?  I can't find it and I'm not sure I installed that app.

    How do you use "find my phone"?  I can't find it and I'm not sure I installed that app.

    The app is not necessary; that only for tracking from another iOS device. If you set up Find My iPhone, you can track the iPhone from the iCloud web site:
    icloud.com/find
    If you didn't configure Find My iPhone on the device before you lost it, then you're out of luck.
    Regards.

  • ICal reports that it can't find server, and lots of data from several years ago is trying to get attention.  Cannot bring up calendar in any view to use. also keeps loading unused calendar websites from long ago.  I can' remove them. what to do?

    iCal reports that it can't find server, and lots of data from several years ago is trying to get attention.  Cannot bring up calendar in any view to use. also keeps loading unused calendar websites from long ago.  I can' remove them. what to do?

    UPDATE: I had 36 Safari windows open and minimized on the dock from my last session; 20 of those windows failed to open b/c Safari "couldn't find the server"; I just went to the URL bar of all 20 pages and clicked return, and all 20 pages loaded perfectly, without dropping any images or losing formatting. This is a puzzle!!!

  • HT201210 restoring ipod and it say's can't find software and use a cd-rom if necessary. what am i supposed to do? my ipod is stuck on the connect to itunes screen and wont do anything.

    Restoring ipod and it say's can't find software and use a cd-rom if necessary. My ipod is stuck on the connect to itunes screen and wont do anything. What am i supposed to do?
    Please help, i will be very grateful

    you can do is go to ijailbreak.com then select downloads section.......scroll down and see the latest version of ipod touch second generation is available for download.....when it gets downloaded connect your iPod to itunes or keep it connected then hold option and click restore (mac) search the software by writing in search "iPod" a thing with white cube will show up if it is the file you just downloaded click it and wait for itunes to do its work......you can ask more if you are on windows

  • I upgraded my iphone to 5.0.1 and can not find carrier and can not make a call freezed.

    I upgraded my iphone 4 to ios 5.0.1 yesterday. Today the device can not find carrier and if finds than it freezes when I tap call. I swictched on and off but no change.

    No.  There is no legit way to go back at all.
    It seems that you had a hacked iphone that was locked back to the rightful carrier when you updated as it should.

  • Having moved my Itunes folder to external hardrive and resetting where it is in preferences Itunes can't find them and I have to direct it to every song - I have a months worth of songs on there so this will take avery long time  - any ideas on what;s up?

    Having moved my Itunes folder to a new external hardrive and resetting where it is in preferences Itunes can't find them and I have to direct it to every song- a little ! pops up next to the song and a dialogue box says Itunes can't find it so thn i have to manually search for it - I have a months worth of songs on there so this will take avery long time  - any ideas on what's up?

    nellydee wrote:
    Having moved my Itunes folder to a new external hardrive and resetting where it is in preferences
    That's not how to do it. You don't move stuff then set the iTunes prefs > Advanced.
    Once you move the /iTunes/ folder, hold Option, launch iTunes and select Choose library... and select the ITunes folder on the external.
    This will use the iTunes library file in the iTunes folder you moved.
    Don't change iTunes prefs > Advanced.

  • I accidentally deleted QuickTime from my computer. Then I did a system restore and retrieved it. Now Itunes can't find QuickTime and will not open. Is there a fix for this without my Ipod?

    I accidently deleted QuickTime from my computer. Then I did a system restore and retrieved the program. Now Itunes can't find QuickTime and will not open.Is there a eazy fix for this without using my Ipod? Ihave 6K songs in Itunes that I can't get to.
    Thank You
    T-BILL

    Hmmm. There's a couple of things that might be going on with that one.
    Let's try an uninstall and reinstall of QuickTime first.
    If you're using XP, head into your Add or Remove Programs control panel. Select "QuickTime", click "Change" and then click "Remove".
    If you're using & or Vista, head into your Uninstall a program control panel, select QuickTime, and then click "Uninstall".
    You can get QuickTime back either via Apple Software Update (in your Start menu go "All Programs > Apple Software Update" ... QuickTime should appear in the "New Programs" section), or by downloading a QuickTimeInstaller.exe from the following location:
    http://support.apple.com/kb/DL837
    Does your iTunes launch properly now?

  • I pre-ordered justin biebers new acoustic album and i presesed "pre-order" and now i can't find it and it is not on my ipod. How can i find it and download it to my ipod?

    I pre-order justin bieber's new album <justin bieber acoustic album> and i can't find it on my itunes or on my ipod. How can i find it and make it appear on my ipod and on my itunes on my laptop? please help! thanks

    I reset my iphone, and pandora was installed in the same folder I had it on my iphone 4.  Problem solved!

  • In Acrobat pro 9, I can't find staple and fold options for booklets and no matter what options I choose in the print dialogue my booklet ends up with pages upside down and out of order?

    In Acrobat pro 9, I can't find staple and fold options for booklets and no matter what options I choose in the print dialogue my booklet ends up with pages upside down and out of order? I am working on a Macbook pro running OS X 10.9.4.  Our printers are fully capable for booklets with staples and folds. Would love some help. Thank you!

    To: ~graffiti
    (This email is not intended to go on public forum -- but I wanted to respond
    to you)
    Thanks for your reply....FYI...I was trying to download from www.adobe.com on
    the specific page that has downloads of your products.    As far as the
    alternate source is concerned I am not totally sure what the capabilities it has as
    I am recovering from a hospital stay and had to send my wife to retailer to
    pick this up because I am accessing email from home until I return to work and
    need something to work now.  I don't yet have the SW.  (I would have had her
    buy the actual Adobe Pro 9.0 -- but it is a wapping $499 and change).
    Regards,
    Staurt Rednor ("Stu") - [email protected]
    ===========================================================
    Subj:   New message: "No matter what I try can't download
    Adobe Pro 9.0 or free Adobe Reader"   
    Date:   4/5/2009 7:38:17 PM Eastern Daylight Time  
    From:   [email protected]   
    Reply-to:   [email protected] 
    To: [email protected]  
    Sent from the Internet (Details)   
    SGuitar43,
    A new message was posted in the thread "No matter what I try can't download
    Adobe Pro 9.0 or free Adobe Reader":
    http://forums.adobe.com/message/1867664#1867664
    Author  : ~graffiti
    Profile : http://forums.adobe.com/people/~graffiti
    Message:

  • Where can I find Installer and uninstaller log files in JSE 6?

    Where can I find Installer and uninstaller log files in JSE 6?

    For the installer log file, search for Sun_Java_Studio_Enterprise_6_2004Q1_install, or some portion of that.
    To find Java ES component product log files, search on Sun_ONE.
    You can also search for the timestamp that is part of each log file name. It is of the format MMddhhmm (Month/day/hour/minute)
    Refer also to the Troubleshooting chapter of the Installation Guide for additional details on reports and log files used by Java SE

  • How can I find .plist and .kext files?

    How can I find .plist and .kext files which are corrupt and need to be deleted before restarting and reloading applications)? Where are they hidden? How do I make them visible?
    /hezet

    Thank you Eric and Lanny for your answers!
    I was confused as the files could neither be found by Spotlight nor by the search field in the upper right corner of the Finder windows (why??), but I have located them now. The files were:
    AppleUSBEthernetHost.kext  The name appeared in i a warning window now and then.
    The .plist files were reported red (failed) by EtreCheck:
    com.apple.CSConfigDotMacCert-***@me.com-SharedServices.Agent.plist
    com.adobe.SwitchBoard.
    com.apple.netauth.sysagent.plist
    I have deleted all four files and restarted the computer. Now there are no items in red in EtreCheck, but none of the deleted files has been replaced after restart.
    So far the computer seems to work well. What action do you consider appropriate now?
    /hezet

Maybe you are looking for

  • Building an AppCloud App for use within your organization only.

    I am re-posting this from, Register your App because, it was a good point this should have been a separate discussion. Scott   Scott Kent Jul 14, 2014 4:56 PM I am trying to get more details on how to Build/Register "Private" AppCloud Apps and confir

  • I can't find the add-on icon

    I had a virus and when the tech department finished clearing it some of my FF add-ons were missing and I can't find the one that grouped my tabs; using an icon at the right end of my URL bar. I found one with a similar icon; called "Tab view" and ins

  • SMSY Error : Unable to delete Instance Components

    On SMSY transactions...how to remove / unselect the J2EE Adapter Engine(PI/XI) and J2SE Adapter Engine(PI/XI. Is there any table associate  with Extended Assignment off to remove?

  • New laptop windows 7, itunes store does not open

    I have newly installed itunes to my new laptop with windows 7 on it. The library opens I uploaded songs, I have synced with my iphone but when I try to open the store it won't load it attempts to open but it stays white screen with itunes store writt

  • Camera Opens Photos for Mac

    The new Photos ap opens automatically when I connect my iphone or ipad. I find this annoying since I make those connections often in order recharge my device or work in iTunes. I do not want to work with photos. How can I change that setting?