Syntax Error: Expected end of line but found end of script.
display dialog "Are you awesome" buttons {"Yes", "No"} default button 1
if the button returned of the result is "Yes" then
tell application "Finder"
display dialog "You Passed the Test" buttons {"YAY", "Poop nugets"} default button 1
end tell
display dialog "Cool" buttons {"Ok", "More Info"} default button 1
if the button returned of the result is "More Info" then
tell application "Finder"
display dialog "You are obviously are awesome,
100% Cool" buttons {"Ok"} default button 1
end tell
Then it says:
Syntax error: Expected end of line but found end of script.
can somebody fix this scrip becasue i am having the exact same problems
tell application "SpeechRecognitionServer"
set theResponse to listen for {"yes", "no"} with prompt "Hello Michael, Would you like the internet?"
if theResponse is "yes" then
launch application "Google Chrome"
tell application "SpeechRecognitionServer"
set theResponse to listen for {"yes", "no"} with prompt "What about a Calander?"
if theResponse is "yes" then
launch application "ical"
tell application "SpeechRecognitionServer"
set theResponse to listen for {"yes", "no"} with prompt "How about some iTunes Music?"
if theResponse is "yes" then
launch application "itunes"
tell application "SpeechRecognitionServer"
set theResponse to listen for {"yes","no"} with prompt "Would you like me to stop?"
if theResponse is "no" then
say "ok"
else
if theResponse is "no" then
exit repeat
else
exit repeat
end
end if
end
end if
end
end if
end tell
Similar Messages
-
Apple Script Editor, "Expected end of line but found identifier" Error
Hello, I'm trying to automate an Application I have, called Self Control, since I have ADD and easily get distracted, and what I want to do is for my computer to automatically set the application up, but to do this, I need a script, which I have already done, but get this error, can someone help me fix this script?
(the error happens once I click on "run", it tells me as follows: "Syntax Error", followed by, "Expected end of line but found identifier".
on run argv
set defaultTime to 1440
try
set myTime to item 1 of argv as number
on error
set myTime to defaultTime
end try
tell application "Usable Keychain Scripting"
tell current keychain
set myPass to (password of first generic item ¬
whose name contains "SelfControl")
-- eliminate invisible characters, or "gremlins," from password
set x to quoted form of myPass
set myPass to do shell script "echo " & x & " | perl -pe 's/[^[:print:]]//g'"
end tell
end tell
tell application "SelfControl" to activate
tell application "System Events"
tell process "SelfControl"
tell slider of window "SelfControl" to set value to myTime
click button "Start" of window "SelfControl"
end tell
tell window 1 of process "SecurityAgent"
with timeout of 15 seconds
repeat
set tryAgain to false
try
set value of text field 2 of scroll area 1 of group 1 to myPass
on error
delay 1
set tryAgain to true
end try
if not tryAgain then exit repeat
end repeat
click button 2 of group 2
end timeout
end tell
end tell
end run
I'm no coding expert, but your help would be greatly appreciated. I know that once the script is done I can automate it with Calendar, or even Quicksilver, I just need help with the script.
Thanks in advance!This is a pain with Applescript.
Could be a missing " or ' . I didn't notice this problem.
Use (* and *) to comment out lines to find where the problem lays. Start big then go smaller and smaller until you find the problem line. Search internet for examples of the line in question. -
Error "expected end of line but found identifier"?
I downloaded the project files for Apple's iDVD Companion http://www.apple.com/applescript/idvd/companion.html because I wanted to make some changes to it and rebuild it using Xcode.
However, even it its original state the build fails under 10.4.10 and the current version of Applescript. Error is "expected end of line but found identifier" in one of the scripts. See screenshot:
I don't understand why this Applescript is not compiling - has there been syntax changes in Applescript which stop this compiling? What is the correct syntax?
Appreciate any pointers... thanks...
G5 Desktop PPC 1.6 GHz Mac OS X (10.4.8)Perform a 'Find, Find in Project...' menu item ('Command <shift> F') search for 'Abstract object', and replace such with 'item'.
However, once this resolves the compiling problem, you will experience a slew of AppleScript errors, when utilizing the compiled application.
Note: Even the downloadable (pre-complied) 'iDVD Companion' application file has its share of incompatibilities.
A lot has changed (with MacOS X and AppleScript) since 27.11.2001 - the creation date of the 'iDVD Companion' project.
Mac OS X (10.4.6) -
AppleScript Error: "Expected end of line but found identifier."
Hi everyone,
I'm new to applescript and can't seem to figure out the error here.
Info: Using Hazel and iFlicks 2 Applications for this process.
tell application "iFlicks 2" to launch
delay 7
tell application "iFlicks 2"
update theFile dbID without gui
end tell
I get the error "Expected end of line but found identifier." for the red text.
theFile reffers to the file that the actions are to be preformed on. This is a Hazel thing.
Thank you!You need to look in the "iFlicks 2" dictionary. This line isn't matching the syntax found in the dictionary. I find reading a dictionary nearly impossible.
update theFile dbID without gui -
Expected end of line but found identifier.
Hi
I have a very basic understanding of applescript, but managed to get this working in Mountain Lion. It now does work in Mavericks. It fails with the above error in the compile when it gets to the underlined section (to tell sheet sName).
Please can someone help me fix my code. Please don't ask me to go read Cocoa, as I hardly knew what I was doing here.
Thanks.
set dName to "Accounts"
set sName to "Invoice"
set tName to "Table 1"
set theResult to display dialog "Would you like to attach some files to this message?" buttons {"Yes", "No"} default button 1
set wantsAttachment to button returned of theResult
if wantsAttachment is equal to "Yes" then
set theAttachment to choose file
end if
tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
set numRecords to value of cell 2 of column 3
end tell
tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
set i to 1
repeat while (i ≤ numRecords)
set value of cell 1 of column 3 to i
set studentName to value of cell 3 of column 2
set balanceBF to value of cell 4 of column 2
set fees to value of cell 5 of column 2
set paid to value of cell 6 of column 2
set balanceCF to value of cell 7 of column 2
set emailAddress to value of cell 8 of column 2
--set emailAddress to value of cell 9 of column 2
set invoiceDate to value of cell 2 of column 2
set theSubject to "Invoice for " & invoiceDate
--set theSubject to "Exam Results 2013"
set theBody to "Account for " & studentName & return & "Balance b/f = " & balanceBF & return & "Fees for " & invoiceDate & " = " & fees & return & "Paid in " & invoiceDate & " = " & paid & return & "Balance due = " & balanceCF & return
--set theBody to ""
tell application "Mail"
--set newMessage to make new outgoing message with properties {subject:theSubject, content:theBody, visible:true}
set newMessage to make new outgoing message with properties {subject:theSubject, content:theBody}
tell newMessage to make new to recipient with properties {address:emailAddress}
tell application "Numbers" to activate
tell application "System Events"
tell application process "Numbers"
click menu item "Copy" of menu "Edit" of menu bar item "Edit" of menu bar 1
end tell
end tell
tell application "Mail" to activate
tell application "System Events"
tell application process "Mail"
click menu item "Paste" of menu "Edit" of menu bar item "Edit" of menu bar 1
end tell
end tell
if (wantsAttachment is equal to "Yes") then
tell newMessage to make new attachment with properties {file name:theAttachment} at after the last paragraph
end if
send newMessage
end tell
set i to (i + 1)
end repeat
end tellHi Joao888,
Nice script!
Unfortunately, Numbers 3.0 does not support AppleScript, other than the basic "GUI scripting" you can do with any application on your Mac (activate it, have it open documents, click on menu items, etc.). You can't "tell" sheets or tables the way you could in Numbers 2.3.
Let's hope Apple brings back some support for AppleScript in upgrades to version 3. You can add your voice by requesting it here:
Meanwhile, if you need to use your AppleScript you still have your Numbers 2.3 in a folder within your Applications folder, probably named iWork '09.
SG -
I am making an applescript for my modding tool for Minecraft. It used to use multiple apps and I am now trying to make one app for all the tasks.
Here is the code:
say "You are running iCraft version one point one for minecraft version 1.2.5"
display dialog "Which tool do you want to use?" buttons {"Mod Installer", "Backup", "Restore"} default button 3
set the button_pressed to the button returned of the result
if the button_pressed is "Mod Installer" then
do shell script "~/desktop/iCraft/iCraft.app/contents/re…
display dialog "Insert all mod files into the Mods folder."
display dialog "Have you inserted all Mod files into the Mods folder?" buttons {"Yes", "No"} default button 2
if the button_pressed is "Yes" then
do shell script "~/desktop/iCraft/iCraft.app/contents/re…
display dialog "Finished"
else
display dialog "Insert mod files into the Mods folder and restart iCraft.app."
end if
if the button_pressed is "Backup" then
display dialog "Are you sure you want to backup your Minecraft.jar in it's current state?" buttons {"Yes", "No"} default button 2
if the button_pressed is "Yes" then
do shell script "~/desktop/iCraft/iCraft.app/contents/re…
display dialog "Finished, find it in your Backups directory in the iCraft folder"
else
display dialog "Backup aborted"
end if
if the button_pressed is "Restore" then
display dialog "Are you sure you want to restore your Minecraft.jar with your backup?" buttons {"Yes", "No"} default button 2
if the button_pressed is "Yes" then
do shell script "~/desktop/iCraft/iCraft.app/resources/s…
else
display dialog "Restore aborted"
end if
end
When I try to compile/run it gives me Syntax Error: Expected end of line, etc. but found end of script.Your script got mangled when pasting it into your message, but the main problem looks like you are missing a bunch of end if statements. Unless your if statements are contained on one line, you need to terminate them with a matching end if statement - for example, the following are equivalent:
if someString is "whatever" then display dialog "foo"
if someString is "whatever" then
display dialog "foo"
end if -
AppleScript - Syntax Error: Expected end of line found """.
The following AppleScript code works on Tiger and Snow Leopard but not on Leopard (10.5 > 10.5.8).
tell application "FileMaker Pro"
tell database "SomeDB.fp5"
-- some code to execute
end tell
end tell
In Leopard, the code won't compile and is complaining of a Syntax Error: Expected end of line found """. I click OK and then the quote symbol ( " ) to the left of SomeDB.fp5 is highlighted.
Has anyone else experienced this and have resolved this in Leopard?
ThanksIf you copy/pasted the script from somewhere, the line endings in the source may not be translating. Try replacing the line endings (the return) on the lines around the one that is being highlighted.
-
Workaround for "Expected expression but found end of line" error
I have the following code
tell application "Mail"
set mymailList to {"[email protected]", "[email protected]", "[email protected]"}
set myattachmentList to {"Macintosh HD:Users:SAM:Desktop:A1.xls", "Macintosh HD:Users:SAM:Desktop:A2.xls", "Macintosh HD:Users:SAM:Desktop:A3.xls"}
set n to count items in mymailList
set i to 0
repeat n times
set i to i + 1
set var1 to item i of mymailList
set var2 to item i of myattachmentList as alias
set newmessage to make new outgoing message with properties {visible:true, subject:"Report", content:"Blah Blah Blah"}
tell newmessage
set sender to "Sam <[email protected]>"
set visible to true
make new to recipient at end of to recipients with properties {address:var1}
tell content to make new attachment with properties {file name:var2} at after last paragraph
end tell
activate
send newmessage
end repeat
end tell
I would like to be able to paste the MailList and MailAttatchmentList values from a spreadsheet so that it would look something like this:
tell application "Mail"
set mymailList to {
"[email protected]",
"[email protected]",
"[email protected]"
set myattachmentList to {
"Macintosh HD:Users:SAM:Desktop:A1.xls",
"Macintosh HD:Users:SAM:Desktop:A2.xls",
"Macintosh HD:Users:SAM:Desktop:A3.xls"
set n to count items in mymailList
set i to 0
repeat n times
set i to i + 1
set var1 to item i of mymailList
set var2 to item i of myattachmentList as alias
set newmessage to make new outgoing message with properties {visible:true, subject:"Report", content:"Blah Blah Blah"}
tell newmessage
set sender to "Sam <[email protected]>"
set visible to true
make new to recipient at end of to recipients with properties {address:var1}
tell content to make new attachment with properties {file name:var2} at after last paragraph
end tell
activate
send newmessage
end repeat
end tell
Is there something that I can put at the end of each value so that I avoid the "Expected expression but found end of line" error?
Thanks!
SamYou didn't need to post the entire script - just an example of the list format would have done
Anyway, AppleScript uses option-return as a 'soft' return/line continuation character, so:
set mymailList to {¬
"[email protected]",¬
"[email protected]",¬
"[email protected]"¬
(where ¬ indicates an option-return) will work. I'm just not sure off hand how you'd automatically insert option-return characters coming out of Excel... -
"Expected end of line, etc. but found end of script." HELP!!
When I try to run my script, it say "(null.)" When I try to compile it or save it as an application, it says "Expected end of line, etc. but found end of script." HELP!!!
Here is my script:
display dialog "WARNING! a virus has been detected and the system is crashing" buttons {"shut down computor to preserve contents", "burn virus file"} default button 2
if the button returned of the result is "burn virus file" then
say "warning the virus has reacted to its deletion and has activated itself"
say "virus is now in control of the users computor"
say "if you try to stop the virus it will delete all user data"
tell application "Safari"
activate
open location "http://www.facebook.com"
open location "http://www.yahoo.com"
open location "http://www.gmail.com"
open location "http://www.youtube.com"
end tell
tell application "iTunes"
activate
play
end tell
tell application "iCal"
activate
end tell
tell application "Terminal"
activate
end tell
tell application "Finder"
quit
end tell
if the button returned of the result is "shut down computor to preserve contents" then
say "your computor will shut to protect your files."
say "shut down in t-3"
say "2."
say "1."
say "goodbye"
say "it appears that there is a problem"
say "the virus is starting to take over your system"
beep 17
display dialog "how DARE you try to delete me. I am now going to take over your computer." buttons {"**** YOU GET OUTTA MY COMPUTER", "OK, have fun!!"} default button "OK, have fun!!"
if the button returned of the result is "OK, have fun!!" then
say "thank you!!"
say "watch this!"
Tell application "iChat"
quit
end tell
Tell application "Finder"
quit
end tell
if the button returned of the result is "**** YOU GET OUTTA MY COMPUTER" then
say "That attitude will not be tollerated."
say "Dum dum dum dum dum dum dum he he he ho ho ho fa lah lah lah lah lah lah fa lah full hoo hoo hoo" using "Cellos"
display dialog "A virus has been detected going through your files. Would you like to try to stop this?" buttons {"OK"} default button "OK"
if the button returned of the result is "OK" then
beep 5
display dialog "there has been an error. Do you want to try to force quit?" buttons "Yes" default button "Yes"
if the button returned of the result is "Yes" then
say "Well, thats just too bad!"
beep 2
say "Sorry about that."
say "The virus has been purged from your system."
say "Your computer will now restart to make sure that all traces of the virus have been removed."
say "shut down in t-3"
say "2"
say "1"
say "goodbye"
tell application "Finder"
restart
end tell
end ifYou need to complete compound if statements with an end if - see the AppleScript Language Guide for a description of the various kinds of if statements.
Although I don't think it is going to do what you expect, your script would look something like:
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
font-weight: normal;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px; height: 340px;
color: #000000;
background-color: #DAFFB6;
overflow: auto;"
title="this text can be pasted into the AppleScript Editor">
display dialog "WARNING! a virus has been detected and the system is crashing" buttons {"shut down computor to preserve contents", "burn virus file"} default button 2
if the button returned of the result is "burn virus file" then
say "warning the virus has reacted to its deletion and has activated itself"
say "virus is now in control of the users computor"
say "if you try to stop the virus it will delete all user data"
tell application "Safari"
activate
open location "http://www.facebook.com"
open location "http://www.yahoo.com"
open location "http://www.gmail.com"
open location "http://www.youtube.com"
end tell
tell application "iTunes"
activate
play
end tell
tell application "iCal"
activate
end tell
tell application "Terminal"
activate
end tell
tell application "Finder"
quit
end tell
else if the button returned of the result is "shut down computor to preserve contents" then
say "your computor will shut to protect your files."
say "shut down in t-3"
say "2."
say "1."
say "goodbye"
say "it appears that there is a problem"
say "the virus is starting to take over your system"
beep 17
end if
display dialog "how DARE you try to delete me. I am now going to take over your computer." buttons {"**** YOU GET OUTTA MY COMPUTER", "OK, have fun!!"} default button "OK, have fun!!"
if the button returned of the result is "OK, have fun!!" then
say "thank you!!"
say "watch this!"
tell application "iChat"
quit
end tell
tell application "Finder"
quit
end tell
else if the button returned of the result is "**** YOU GET OUTTA MY COMPUTER" then
say "That attitude will not be tollerated."
say "Dum dum dum dum dum dum dum he he he ho ho ho fa lah lah lah lah lah lah fa lah full hoo hoo hoo" using "Cellos"
end if
display dialog "A virus has been detected going through your files. Would you like to try to stop this?" buttons {"OK"} default button "OK"
if the button returned of the result is "OK" then
beep 5
display dialog "there has been an error. Do you want to try to force quit?" buttons "Yes" default button "Yes"
else if the button returned of the result is "Yes" then
say "Well, thats just too bad!"
beep 2
say "Sorry about that."
say "The virus has been purged from your system."
say "Your computer will now restart to make sure that all traces of the virus have been removed."
say "shut down in t-3"
say "2"
say "1"
say "goodbye"
tell application "Finder"
restart
end tell
end if
</pre> -
Line 26 1084: Syntax Error: expecting rightbrace before end of program
Im trying to do an animation, how do I solve Line 26 1084: Syntax Error: expecting rightbrace before end of program?
package
import flash.display.MovieClip;
import flash.utils.Timer;
import flash.events.TimerEvent;
public class AvoiderGame extends MovieClip
public var enemy:Enemy;
public var gameTimer:Timer;
public function AvoiderGame()
enemy = new Enemy();
addChild( enemy );
gameTimer = new Timer( 25 );
gameTimer.addEventListener( TimerEvent.TIMER, moveEnemy );
gameTimer.start();
public function moveEnemy( timerEvent:TimerEvent ):void
enemy.moveDownABit();I have taken your advice but now 2 errors have popped up. Line 16 1137: Incorrect number of arguments . Expected no more than 0. Line 18 1120 : Access of undefined property enemy.
package
import flash.display.MovieClip;
import flash.utils.Timer;
import flash.events.TimerEvent;
public class AvoiderGame extends MovieClip
public var army:Array;
public var avatar:Avatar;
public var gameTimer:Timer;
public function AvoiderGame()
army = new Array();
var newEnemy = new Enemy( 100, -15 );
army.push( newEnemy );
addChild( enemy );
avatar = new Avatar();
addChild( avatar );
avatar.x = mouseX;
avatar.y = mouseY;
gameTimer = new Timer( 25 );
gameTimer.addEventListener( TimerEvent.TIMER, onTick );
gameTimer.start();
public function onTick( timerEvent:TimerEvent ):void
avatar.x = mouseX;
avatar.y = mouseY;
for each ( var enemy:Enemy in army )
enemy.moveDownABit();
if ( avatar.hitTestObject( enemy ) )
gameTimer.stop(); -
Help with error message: Expected end of line but got identifier
The following is a calculated applescript step in a Filemaker script. It tells iCal to go to the date of an iCal event that the script has previously created from Filemaker. The code below keeps generating an error message: "Expected end of line but got identifier." Note: "ACTIVITY::Date" below is Filemaker's way of indicating the file name (ACTIVITY) and the field in question (date). Help appreciated.
"tell application \" iCal\" ¶
activate ¶
switch view to month view ¶
set theDate to date \"" & ACTIVITY::Date & "\" ¶
view calendar at theDate ¶
end tell"It's not clear exactly what you're aiming for here, so it's not easy to tell you how to fix it.
At first glance I'd say you're missing a quote symbol or two, but even then it doesn't make a lot of sense without more context - for example, 'ACTIVITY::Date' isn't valid as an AppleScript variable name (you can't have a : in a variable name), and your code isn't within a Filemaker block, so it doesn't appear to relate to Filemaker, either.
In either case the only thing that looks remotely valid to me would be:
set theDate to date "\"" & ACTIVITY::date & "\""
but without knowing the context of ACTIVITY::Date it's impossible to tell if this is valid, or how it differs from:
set theDate to date ACTIVITY::Date
(i.e., why the quotes are needed at all) -
1084: Syntax error: expecting rightbrace before end of program.
So I'm doing this basic coding thing to make an object "shoot" bullets. It's from a tutorial video. My code matches his exactly unless I'm missing a tiny detail. Basically the code looks like this:
package {
import flash.display.Sprite;
import flash.events.Event;
public class bullet extends Sprite {
private var sw:Number;
private var sh:Number;
private const _SPEED:int=-10;
private const _OFFSTAGE:int=-10;
public function bullet():void {
addEventListener(Event.ADDED_TO_STAGE,onadd);
private function onadd(e:Event):void {
sw=stage.stageWidth;
sh=stage.stageHeight;
addEventListener(Event.ENTER_FRAME,loop);
private function loop(e:Event):void {
if (y<_OFFSTAGE) {
removeEventListener(Event.ENTER_FRAME,loop);
parent.removeChild(this);
y-=_SPEED;
}public function removeListeners():void {
removeEventListener(Event.ENTER_FRAME,loop);
And the compiler error I'm getting says this:
Location:bullet.as line 31 1084: Syntax error: expecting rightbrace before end of program. Source: }
Location:bullet.as line 31 1084: Syntax error: expecting rightbrace before end of program. Source: }
And yes it does say it twice. What's going on?
The vid I'm learning from is this: http://autocad.spinelink.com/adobe-flash-cs4-game-tutorial-shooting.htmlYou are missing two closing curly braces at the bottom of the package declaration. You need to close the package itself and the class declaration inside.
package {
import flash.display.Sprite;
import flash.events.Event;
public class bullet extends Sprite {
private var sw:Number;
private var sh:Number;
private const _SPEED:int=-10;
private const _OFFSTAGE:int=-10;
public function bullet():void {
addEventListener(Event.ADDED_TO_STAGE,onadd);
private function onadd(e:Event):void {
sw=stage.stageWidth;
sh=stage.stageHeight;
addEventListener(Event.ENTER_FRAME,loop);
private function loop(e:Event):void {
if (y<_OFFSTAGE) {
removeEventListener(Event.ENTER_FRAME,loop);
parent.removeChild(this);
y-=_SPEED;
public function removeListeners():void {
removeEventListener(Event.ENTER_FRAME,loop); -
Hey! First time posting here, I am a student taking classes on flash. I use Flash CC and obviously AS3. I've got a project I am working on, and have encountered a very frustrating problem. I have emailed my teacher but I thought I would ask around the web as well.
I get a compiler error saying:
tempInit, Line 2, Column 14
1086: Syntax error: expecting semicolon before minus.
I have tried commenting out the entire script, and I still get the same error. The weird thing is there is nothing on line 2, column 14. Line two simply reads:
stop();
I've also considered that I had some symbols named after keywords or with illegal characters that could somehow be causing this issue. It turns out I did, so I changed all suspected items to more appropriate names. Yet even after I did this, the error persists. I cannot find any other explanation as to why this error occurs at this point, hence why I am turning to the internet.
A notable factor here is that I have imported items from illustrator cs5, some of which had illustrator symbols included. These were the culprits with the first issue of illegal and keyword names; examples: "Mountain1-2" and "New Symbol"
Many thanks,
Lee
I'll paste my code here:
import flash.events.MouseEvent;
stop();
var Htraesea_mc:Htraesea = new Htraesea();
/*Aisa*/
var TheEverlands_btn:TheEverlands = new TheEverlands();
var everlandsdesc_mc:everlandsdesc = new everlandsdesc();
var TheClaruslands_btn:TheClaruslands = new TheClaruslands();
var claurslandsdesc_mc:claurslandsdesc = new claurslandsdesc();
var TheDwarvallisLands_btn:TheDwarvallisLands = new TheDwarvallisLands();
var dwarvallisdesc_mc:dwarvallisdesc = new dwarvallisdesc();
var TheGreyLands_btn:TheGreyLands = new TheGreyLands();
var greylandsdesc_mc:greylandsdesc = new greylandsdesc();
var TheLandsofGineder_btn:TheLandsofGineder = new TheLandsofGineder();
var TheLandsofHumara_btn:TheLandsofHumara = new TheLandsofHumara();
var humaradesc_mc:humaradesc = new humaradesc();
var TheLandsofJurgious_btn:TheLandsofJurgious = new TheLandsofJurgious();
var TheLandsofMiddterrus_btn:TheLandsofMiddterrus = new TheLandsofMiddterrus();
var TheLandsofOtrannas_btn:TheLandsofOtrannas = new TheLandsofOtrannas();
var TheLandsofWeshan_btn:TheLandsofWeshan = new TheLandsofWeshan();
var TheLowerAltiorlands_btn:TheLowerAltiorlands = new TheLowerAltiorlands();
var TheMiddaltiorlands_btn:TheMiddaltiorlands = new TheMiddaltiorlands();
var TheStarkLands_btn:TheStarkLands = new TheStarkLands();
var starklandsdesc_mc:starklandsdesc = new starklandsdesc();
var TheUnderlands_btn:TheUnderlands = new TheUnderlands();
var TheUpperAltiorlands_btn:TheUpperAltiorlands = new TheUpperAltiorlands();
var TheViridilands_btn:TheViridilands = new TheViridilands();
var TheWestlands_btn:TheWestlands = new TheWestlands();
var westlandsdesc_mc:westlandsdesc = new westlandsdesc();
var TheBroadlands_btn:TheBroadlands = new TheBroadlands();
/*Acierma*/
var TheBleaklands_btn:TheBleaklands = new TheBleaklands();
var bleaklandsdesc_mc:bleaklandsdesc = new bleaklandsdesc();
var TheConvullands_btn:TheConvullands = new TheConvullands();
var TheInfractlands_btn:TheInfractlands = new TheInfractlands();
var infractdesc_mc:infractdesc = new infractdesc();
var TheLandsofFragmenus_btn:TheLandsofFragmenus = new TheLandsofFragmenus();
var fragmenusdesc_mc:fragmenusdesc = new fragmenusdesc();
var TheLandsofJunosto_btn:TheLandsofJunosto = new TheLandsofJunosto();
var junostodesc_mc:junostodesc = new junostodesc();
var TheLandsofMusttrupis_btn:TheLandsofMusttrupis = new TheLandsofMusttrupis();
var TheLandsofRelinas_btn:TheLandsofRelinas = new TheLandsofRelinas();
var TheLandsofSundara_btn:TheLandsofSundara = new TheLandsofSundara();
var sundaradesc_mc:sundaradesc = new sundaradesc();
var TheLaniatosLands_btn:TheLaniatosLands = new TheLaniatosLands();
var TheRiftLands_btn:TheRiftLands = new TheRiftLands();
var riftlandsdesc_mc:riftlandsdesc = new riftlandsdesc();
var TheSardustLands_btn:TheSardustLands = new TheSardustLands();
var TheSypelands_btn:TheSypelands = new TheSypelands();
var sypelandsdesc_mc:sypelandsdesc = new sypelandsdesc();
var TheTruntusLands_btn:TheTruntusLands = new TheTruntusLands();
var TheUmorousLands_btn:TheUmorousLands = new TheUmorousLands();
var TheVulnerosLands_btn:TheVulnerosLands = new TheVulnerosLands();
/*Oceania*/
var Unusra_btn:Unusra = new Unusra();
var unusradesc_mc:unusradesc = new unusradesc();
var Risura_btn:Risura = new Risura();
var Jusurua_btn:Jusurua = new Jusurua();
var Desura_btn:Desura = new Desura();
var FrostPeakIsland_btn:FrostPeakIsland = new FrostPeakIsland();
var frostpeakislanddesc_mc:frostpeakislanddesc = new frostpeakislanddesc();
var Cornuia_btn:Cornuia = new Cornuia();
var cornuiadesc_mc:cornuiadesc = new cornuiadesc();
var Caligan_btn:Caligan = new Caligan();
var Acitra_btn:Acitra = new Acitra();
var acitradesc_mc:acitradesc = new acitradesc();
Htraesea_mc.x = 0;
Htraesea_mc.y = 0;
/*Aisa*/
TheEverlands_btn.x = 1088.60;
TheEverlands_btn.y = 405.80;
TheClaruslands_btn.x = 926.40;
TheClaruslands_btn.y = 395.75;
TheDwarvallisLands_btn.x = 593.05;
TheDwarvallisLands_btn.y = 468.00;
TheGreyLands_btn.x = 895.15;
TheGreyLands_btn.y = 448.95;
TheLandsofGineder_btn.x = 593.05;
TheLandsofGineder_btn.y = 369.7;
TheLandsofHumara_btn.x = 808.25;
TheLandsofHumara_btn.y = 570.70;
TheLandsofJurgious_btn.x = 542.30;
TheLandsofJurgious_btn.y = 577.25;
TheLandsofMiddterrus_btn.x = 686.95;
TheLandsofMiddterrus_btn.y = 367.20;
TheLandsofOtrannas_btn.x = 829.30;
TheLandsofOtrannas_btn.y = 330.05;
TheLandsofWeshan_btn.x = 739.75;
TheLandsofWeshan_btn.y = 264.15;
TheLowerAltiorlands_btn.x = 839.05;
TheLowerAltiorlands_btn.y = 251.95;
TheMiddaltiorlands_btn.x = 815.65;
TheMiddaltiorlands_btn.y = 114.65;
TheStarkLands_btn.x = 1055.25;
TheStarkLands_btn.y = 501.05;
TheUnderlands_btn.x = 593.05;
TheUnderlands_btn.y = 699.80;
TheUpperAltiorlands_btn.x = 950.10;
TheUpperAltiorlands_btn.y = 114.65;
TheViridilands_btn.x = 855.55;
TheViridilands_btn.y = 652.30;
TheWestlands_btn.x = 665.65;
TheWestlands_btn.y = 227.35;
TheBroadlands_btn.x = 795.3;
TheBroadlands_btn.y = 414.5;
/*Acierma*/
TheBleaklands_btn.x = 297.95;
TheBleaklands_btn.y = 429.45;
TheConvullands_btn.x = 307.65;
TheConvullands_btn.y = 209.6;
TheInfractlands_btn.x = 178.4;
TheInfractlands_btn.y = 218.05;
TheLandsofFragmenus_btn. x = 162.40;
TheLandsofFragmenus_btn.y = 376.45;
TheLandsofJunosto_btn. x = 232.4;
TheLandsofJunosto_btn.y = 762.20;
TheLandsofMusttrupis_btn. x = 138.05;
TheLandsofMusttrupis_btn.y = 524.45;
TheLandsofRelinas_btn. x = 134.4;
TheLandsofRelinas_btn.y = 472.45;
TheLandsofSundara_btn.x = 178.4;
TheLandsofSundara_btn.y = 588.50;
TheLaniatosLands_btn.x = 284.15;
TheLaniatosLands_btn.y = 316.80;
TheRiftLands_btn.x = 272.1;
TheRiftLands_btn.y = 536.15;
TheSardustLands_btn.x=168.05;
TheSardustLands_btn.y = 670.50;
TheSypelands_btn.x = 261.4;
TheSypelands_btn.y = 387.25;
TheTruntusLands_btn.x = 380.1;
TheTruntusLands_btn.y = 578.50;
TheUmorousLands_btn.x = 316.45;
TheUmorousLands_btn.y = 650.15;
TheVulnerosLands_btn.x = 140.05;
TheVulnerosLands_btn.y = 298.05;
/*Oceania*/
Acitra_btn.x = 422.60;
Acitra_btn.y = 1.10;
Caligan_btn.x = 18.15;
Caligan_btn.y = 829.80;
Cornuia_btn.x = 450.45;
Cornuia_btn.y =832.20;
FrostPeakIsland_btn.x = 898.45;
FrostPeakIsland_btn.y = 79.50;
Desura_btn.x = 959.35;
Desura_btn.y = 835.55;
Jusurua_btn.x = 966.60;
Jusurua_btn.y = 822.15;
Risura_btn.x = 1041.85;
Risura_btn.y = 843.05;
Unusra_btn.x = 715.95;
Unusra_btn.y = 794.95;
mainscroll_btn.x = 572.10;
mainscroll_btn.y = 1012.25;
addChild(Htraesea_mc);
/*Aisa*/
addChild(TheLandsofJurgious_btn);
addChild(TheUnderlands_btn);
addChild(TheLandsofMiddterrus_btn);
addChild(TheDwarvallisLands_btn);
addChild(TheLandsofGineder_btn);
addChild(TheLandsofHumara_btn);
addChild(TheViridilands_btn);
addChild(TheBroadlands_btn);
addChild(TheGreyLands_btn);
addChild(TheClaruslands_btn);
addChild(TheWestlands_btn);
addChild(TheLandsofOtrannas_btn);
addChild(TheStarkLands_btn);
addChild(TheEverlands_btn);
addChild(TheMiddaltiorlands_btn);
addChild(TheUpperAltiorlands_btn);
addChild(TheLowerAltiorlands_btn);
addChild(TheLandsofWeshan_btn);
/*Acierma*/
addChild(TheInfractlands_btn);
addChild(TheVulnerosLands_btn);
addChild(TheLandsofFragmenus_btn);
addChild(TheLandsofRelinas_btn);
addChild(TheLandsofMusttrupis_btn);
addChild(TheConvullands_btn);
addChild(TheLaniatosLands_btn);
addChild(TheSypelands_btn);
addChild(TheBleaklands_btn);
addChild(TheRiftLands_btn);
addChild(TheLandsofSundara_btn);
addChild(TheTruntusLands_btn);
addChild(TheUmorousLands_btn);
addChild(TheSardustLands_btn);
addChild(TheLandsofJunosto_btn);
/*Oceania*/
addChild(Acitra_btn);
addChild(Caligan_btn);
addChild(Cornuia_btn);
addChild(FrostPeakIsland_btn);
addChild(Desura_btn);
addChild(Jusurua_btn);
addChild(Risura_btn);
addChild(Unusra_btn);
TheEverlands_btn.addEventListener(MouseEvent.CLICK,goeverlands);
function goeverlands(evt:MouseEvent):void {
everlandsdesc_mc.x = 309.9;
everlandsdesc_mc.y = 554.95;
addChild(everlandsdesc_mc);
everlandsdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme);
function closeme(evt:MouseEvent):void {
removeChild(everlandsdesc_mc);
TheBleaklands_btn.addEventListener(MouseEvent.CLICK,gobleaklands);
function gobleaklands(evt:MouseEvent):void {
bleaklandsdesc_mc.x = 309.9;
bleaklandsdesc_mc.y = 554.95;
addChild(bleaklandsdesc_mc);
bleaklandsdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme1);
function closeme1(evt:MouseEvent):void {
removeChild(bleaklandsdesc_mc);
Acitra_btn.addEventListener(MouseEvent.CLICK,goacitra);
function goacitra(evt:MouseEvent):void {
acitradesc_mc.x = 309.9;
acitradesc_mc.y = 554.95;
addChild(acitradesc_mc);
acitradesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme2);
function closeme2(evt:MouseEvent):void {
removeChild(acitradesc_mc);
TheClaruslands_btn.addEventListener(MouseEvent.CLICK, goclaruslands);
function goclaruslands(evt:MouseEvent):void {
claurslandsdesc_mc.x = 309.9;
claurslandsdesc_mc.y = 554.95;
addChild(claurslandsdesc_mc);
claurslandsdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme3);
function closeme3(evt:MouseEvent):void {
removeChild(claurslandsdesc_mc);
Cornuia_btn.addEventListener(MouseEvent.CLICK,gocornuia);
function gocornuia(evt:MouseEvent):void {
cornuiadesc_mc.x = 309.9;
cornuiadesc_mc.y = 554.95;
addChild(cornuiadesc_mc);
cornuiadesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme4);
function closeme4(evt:MouseEvent):void {
removeChild(cornuiadesc_mc);
TheDwarvallisLands_btn.addEventListener(MouseEvent.CLICK,godwarvallis);
function godwarvallis(evt:MouseEvent):void {
dwarvallisdesc_mc.x = 309.9;
dwarvallisdesc_mc.y = 554.95;
addChild(dwarvallisdesc_mc);
dwarvallisdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme5);
function closeme5(evt:MouseEvent):void {
removeChild(dwarvallisdesc_mc);
TheLandsofFragmenus_btn.addEventListener(MouseEvent.CLICK,gofragmenus);
function gofragmenus(evt:MouseEvent):void {
fragmenusdesc_mc.x = 309.9;
fragmenusdesc_mc.y = 554.95;
addChild(fragmenusdesc_mc);
fragmenusdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme6);
function closeme6(evt:MouseEvent):void {
removeChild(fragmenusdesc_mc);
FrostPeakIsland_btn.addEventListener(MouseEvent.CLICK, gofrostpeakisland);
function gofrostpeakisland(evt:MouseEvent):void {
frostpeakislanddesc_mc.x = 309.9;
frostpeakislanddesc_mc.y = 554.95;
addChild(frostpeakislanddesc_mc);
frostpeakislanddesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme7);
function closeme7(evt:MouseEvent):void {
removeChild(frostpeakislanddesc_mc);
TheLandsofHumara_btn.addEventListener(MouseEvent.CLICK,gohumara);
function gohumara(evt:MouseEvent):void {
humaradesc_mc.x = 309.9;
humaradesc_mc.y = 554.95;
addChild(humaradesc_mc);
humaradesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme8);
function closeme8(evt:MouseEvent):void {
removeChild(humaradesc_mc);
TheInfractlands_btn.addEventListener(MouseEvent.CLICK,goinfract);
function goinfract(evt:MouseEvent):void {
infractdesc_mc.x = 309.9;
infractdesc_mc.y = 554.95;
addChild(infractdesc_mc);
infractdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme9);
function closeme9(evt:MouseEvent):void {
removeChild(infractdesc_mc);
TheLandsofJunosto_btn.addEventListener(MouseEvent.CLICK,gojunosto);
function gojunosto(evt:MouseEvent):void {
junostodesc_mc.x = 309.9;
junostodesc_mc.y = 554.95;
addChild(junostodesc_mc);
junostodesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme10);
function closeme10(evt:MouseEvent):void {
removeChild(junostodesc_mc);
TheRiftLands_btn.addEventListener(MouseEvent.CLICK, goriftlands);
function goriftlands(evt:MouseEvent):void {
riftlandsdesc_mc.x = 309.9;
riftlandsdesc_mc.y = 554.95;
addChild(riftlandsdesc_mc);
riftlandsdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme11);
function closeme11(evt:MouseEvent):void {
removeChild(riftlandsdesc_mc);
TheStarkLands_btn.addEventListener(MouseEvent.CLICK,gostarklands);
function gostarklands(evt:MouseEvent):void {
starklandsdesc_mc.x = 309.9;
starklandsdesc_mc.y = 554.95;
addChild(starklandsdesc_mc);
starklandsdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme12);
function closeme12(evt:MouseEvent):void {
removeChild(starklandsdesc_mc);
TheLandsofSundara_btn.addEventListener(MouseEvent.CLICK,gosundara);
function gosundara(evt:MouseEvent):void {
sundaradesc_mc.x = 309.9;
sundaradesc_mc.y = 554.95;
addChild(sundaradesc_mc);
sundaradesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme13);
function closeme13(evt:MouseEvent):void {
removeChild(sundaradesc_mc);
TheSypelands_btn.addEventListener(MouseEvent.CLICK,gosypelands);
function gosypelands(evt:MouseEvent):void {
sypelandsdesc_mc.x = 309.9;
sypelandsdesc_mc.y = 554.95;
addChild(sypelandsdesc_mc);
sypelandsdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme14);
function closeme14(evt:MouseEvent):void {
removeChild(sypelandsdesc_mc);
Unusra_btn.addEventListener(MouseEvent.CLICK, gounusra);
function gounusra(evt:MouseEvent):void {
unusradesc_mc.x = 309.9;
unusradesc_mc.y = 554.95;
addChild(unusradesc_mc);
unusradesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme15);
function closeme15(evt:MouseEvent):void {
removeChild(unusradesc_mc);
TheWestlands_btn.addEventListener(MouseEvent.CLICK, gowestlands);
function gowestlands(evt:MouseEvent):void {
westlandsdesc_mc.x = 309.9;
westlandsdesc_mc.y = 554.95;
addChild(westlandsdesc_mc);
westlandsdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme16);
function closeme16(evt:MouseEvent):void {
removeChild(westlandsdesc_mc);
TheGreyLands_btn.addEventListener(MouseEvent.CLICK, gogreylands);
function gogreylands(evt:MouseEvent):void {
greylandsdesc_mc.x = 309.9;
greylandsdesc_mc.y = 554.95;
addChild(greylandsdesc_mc);
greylandsdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme17);
function closeme17(evt:MouseEvent):void {
removeChild(greylandsdesc_mc);it appears i may have a corrupt image as a symbol in my library. I will have to replace each one manually one by one to see if this is indeed the problem. I am prepearing to leave out of town for the weekend, but I will update this as soon as a figure it out.
Thanks again -
1086: Syntax error: expecting semicolon before rightparen. ?
Hi there i'm currently working on my year 13 ICT coursework using Adobe flash CS5.5 and while correcting an error while implementing a third party found image gallery another one appeared, which I am completely unable to fix.
At the moment I would like the image gallery to be implemented in Scene 3 of my product, but it seems when opening to view the product it just spams through all the scenes and I am confused on why this is the case?
If anyone can help with this then it would be much appreciated.
Here is the code line which has the Syntax error, if any other thing are needed please just ask.
lastBildeHL.onLoadProgress = gotoAndPlay("Scene 1")); numBytesLoaded:Number, numBytesTotal:Number):void
ThanksHi there just added that line and when doing so I then got these errors:
Scene 3, Layer 'actions', Frame 5, Line 131
1084: Syntax error: expecting rightparen before colon.
Scene 3, Layer 'actions', Frame 5, Line 131
1078: Label must be a simple identifier.
Scene 3, Layer 'actions', Frame 5, Line 132
1084: Syntax error: expecting identifier before var.
Scene 3, Layer 'actions', Frame 5, Line 132
1078: Label must be a simple identifier.
Here are the actions:
lastBildeHL.onLoadProgress = gotoAndPlay("Scene 1", numBytesLoaded:Number, numBytesTotal:Number):void
var numPercentLoaded:Number = numBytesLoaded / numBytesTotal * 100;
Any help would be good
Thanks,
Joe -
1086: Syntax Error: expecting semicolon before leftbrace?
Hi guys!
I'm new to this program. Help would be really appreciated.
I keep getting this error: ReferenceError: Error #1065: Variable TCMText is not defined.
In the Compliers Error tab, it also says: Scene 1, Layer 'actions', Frame 1, Line 1 1086: Syntax error: expecting semicolon before leftbrace.
I'm not sure if this is correct, but I used the code snippets to help me on my Actions Frame, but to no avail.
on(release){
_root.gotoAndPlay("2");
/* Click to Go to Next Frame and Stop
Clicking on the specified symbol instance moves the playhead to the next frame and stops the movie.
start_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToNextFrame_3);
function fl_ClickToGoToNextFrame_3(event:MouseEvent):void
nextFrame();
I don't have a moving animation, but I want my Flash to work similar to a Power Point, so that the person can read the screen, then just click the button symbol to see the next scene. This is for an assignment, and it's due pretty soon. Haven't been able to figure out what's wrong since I'm a noob, thanks.The first bit of code, "onRelease..." is Actionscript 2 and the second bit, "start_btn.addEvent..." is Actionscript 3. You can't mix and match versions of Actionscript in the same file. With nothing selected in the Stage window, look at the Properties window. In the Script section at the top, it will tell you which version of Actionscript you selected for this movie. Try just using the one version that your movie expects to see.
Maybe you are looking for
-
Playlists not synching to iphone 6 plus
I'm using iTunes v. 12.1 I create a playlist in itunes, connect my iphone, but the new created playlist does not show up in the music section of my phone. I've deleted the playlist and recreated it but still doesn't show up as a selection when trying
-
Making an explanatory video for users of Azure
I went to MSDN to post a question to a forum on Azure, but when I click 'ask a question' it takes me here to "machine learning" instead of to "features", "pricing" etc.. Anyway, the question is this. I had a trial version of Azure, and I put up ma
-
my ipad has gone in lost mode by mistake and now i have it and i enter the password and i cant enter my ipad how can i enter or restart the ipad and start back over new
-
Oracle JMS AQ connection using Weblogic 10.3.3
Hi All, I am a newbie with SOA 11g and I am trying to do a simple test case for a use case of connecting Oracle AQ JMS with Weblogic and using it in my SOA 11g process. I am trying to publish something to my queue that I created but I am getting this
-
Limited transitions in Premiere Pro Cs5.5 on Mac
Hi, I have just purchased and installed the Adobe premiere pro cs5.5 on a Mac and noticed that there are very few transitions available compared to the PC version. Can any one help me out please or guide me through? Thanks