Actionscript 3 :: Keep Getting A "Package Is Unexpected" Error In Flash CS5

Oct 6, 2010

I'm trying to use one of Adobe's examples to put a video player in my Flash application using ActionScript 3 in Flash CS5. It's the one at the bottom of the page here:

[URL]

I'm putting the ActionScript into the frame I want to play the video in. When I try to test it, I keep getting the following error message:

"1083: Syntax error: package is unexpected"

So I try taking the "package { }" code out and running it again. Then this error pops up:

"The public attribute can only be used inside a package"

I tried removing all the code inside the package and I still get the first error.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: As3 Syntax Error / Package Is Unexpected

Dec 10, 2009

I'm new to AS3, I am trying to convert my as2 to as3 for my movie and I am getting this error:Line 1: 1083: syntax error: package is unexpected.[code]

View 1 Replies

ActionScript 3.0 :: 1083 Syntax Error: Package Is Unexpected

Dec 10, 2009

So I'm new to AS3, I am trying to convert my as2 to as3 for my movie and I am getting this error: Line 1: 1083: syntax error: package is unexpected

[Code].....

View 2 Replies

Actionscript 3 :: Keep Getting A "Package Is Unexpected" Error In Flash CS5?

Mar 24, 2005

I'm trying to use one of Adobe's examples to put a video player in my Flash application using ActionScript 3 in Flash CS5. It's the one at the bottom of the page here:I'm putting the ActionScript into the frame I want to play the video in. When I try to test it, I keep getting the following error message:"1083: Syntax error: package is unexpected"So I try taking the "package { }" code out and running it again. Then this error pops up:"The public attribute can only be used inside a package"I tried removing all the code inside the package and I still get the first error

View 3 Replies

ActionScript 3.0 :: What Means "package Is Unexpected" ?

Jun 14, 2009

What means "package is unexpected" in AS 3?

View 2 Replies

ActionScript 3.0 :: Compile Package File - Error: A File Found In A Source-path Must Have The Same Package Structure?

Dec 19, 2011

I have an actionscript file,it has a package name,it locate C:demo directory,like follows:

package demo{
import flash.display.*;
public class ABC extends Sprite{[code]............

Then I compile above code like following command,but it raise following error:

C:>mxmlc demoABC.as
Loading configuration file C:sdkframeworksflex-config.xml

C:demoABC.as: Error: A file found in a source-path must have the same package structure '', as the definition's package, 'demo'.Where is wrong above command?

View 1 Replies

Eclipse :: Flex Compiler Error: "put Definition In A Package" For Classes That ARE In A Package

Oct 13, 2009

This is with Flexbuilder 3.2, Eclipse 3.3.2.I am moving my development environment to a new machine. Actionscript classes that compiled in the old environment now get a compile error:

A file found in a source-path must have an externally visible definition. If a definition in the file is meant to be externally visible, please put the definition in a package.I do declare the package in these classes - I think failure to declare the package is the usual reason for this error.To add to the mystery, many classes in this project compile without errors.

View 1 Replies

ActionScript 3.0 :: Conditional Error "Scene 1, Layer 'Layer 3', Frame 1, Line 291083: Syntax Error: Else Is Unexpected?

Dec 12, 2011

Why this code doesn`t work?

tip_052.addEventListener(MouseEvent.MOUSE_OVER,ove rSub);function overSub(evtObj:MouseEvent) {
tip_052.visible = true;
else[code]....

appear this error "Scene 1, Layer 'Layer 3', Frame 1, Line 291083: Syntax error: else is unexpected.

View 5 Replies

ActionScript 3.0 :: Error 1083: Else Is Unexpected?

Nov 12, 2008

I have a problem with a few lines of conditional coding:

[Code]...

I keep getting the syntax Error 1083: else is unexpected.

View 5 Replies

Professional :: Unexpected File Format Error

Jul 23, 2011

I was recently working on a project in Flash CS5.5 for school, last thing i did was save the project and close the program. Next time I try to open it I get an error saying "Unexpected File Format", and the application closes itself out. I can open Flash by itself and work on anything else, but when I try to open my class project it repeats the same thing "Unexpected File Format" and closes. The file was originally started IN Flash CS5.5, and has not moved to any other program since then.

View 11 Replies

Flash Error 5001n: Name Of Package Does Not Reflect Location?

Aug 29, 2010

I'm getting an error on Flash that I've never run in to before.

5001: The name of package 'Document'does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:Work2009-2010FlashTestsDocument.as

The fla is called TestEvents1... and that's all the info I think is related.What's happening here?

View 1 Replies

AS2 :: Flash - Error "There Is No Class Or Package With The Name 'com.es3.ProgressBar'

Feb 15, 2011

I am using Flash CS5 and am getting a very odd error when I compile. All my classes are in the package com.es3.as2. In the first frame of my movie, I have the following code:

import com.es3.as2.Shell;

I have my classpath set correctly. When I compile, I get this error:

, Line 1 There is no class or package
with the name 'com.es3.ProgressBar'
found in package 'com.es3'.

This is odd because nowhere do I refer to a "com.es3" package. It's always "com.es3.as2".If I remove the import line, the movie compiles with no errors (but without the initialization code, it doesn't run correctly).

View 1 Replies

Flash :: IDE - Cs3 Compile Error 1017 - Package Namespace?

Sep 27, 2007

Word to the Flash Genies-- Heres my wish that hopefully someone else is struggling with an enormously mind-boggling bug in flash cs3-- when I try to create a public class that extends any of the native flash display objects, and I put this in its own package, even after specifically importing the specific class OR the package wildcard .* the fla that I'm compiling returns error 1017-- Base Class Definition not found. The fla is set to the correct classpath. This situation slipped from 'minor annoyance' to 'mind boggling' after I moved the directory to a different pc with cs3, reset the local classpath and it compiled perfectly. So then I moved the directory to a mac, running flex builder, and made a tester file to use the class, which compiled perfectly.

For some wierd reason, this particular computer cannot compile, even though nothing had changed in the actual class. Maybe it is important to note that this machine is running Vista (and perhaps should not be!)? Maybe it is important to note that the package is part of an SVN directory? Maybe it is important to note that after re-saving the same class file, changing only the class name (from BitmapSprite to BSprite) enabled it to compile on this machine, even though both the mac and other pc (running windows XP) could compile the class as BitmapSprite. I'm not sure if the name change or just re-saving allowed it to compile--but maybe it's significant that the new named instance was not committed to svn.

View 3 Replies

Media Server :: Application Unexpected Unloaded With Error?

Jun 11, 2010

We are using a Origin/Edge configuration for massive video delivery, and we are experiencing problems with huge audiences. Basically, when the edge server reaches thousands of users watching (6000) a live video in a single application, this instance is unloaded by the server with the following error:

==> edge.00.log <==2010-06-1115:51:1018614(i)2701054Virtual host Disconnecting unresponsive core live/stream (28860) after 30 seconds is not available.-==> core.00.log <==2010-06-1115:51:1028860(i)2581233Core (28860) disconnecting from admin: 200.-==> master.00.log <==2010-06-1115:51:1018593(w)2581257Core (28860) _defaultRoot_:_defaultVHost_:::_0 is not responding and is being restarted!-2010-06-[code]......

In this situation, the CPU usage is something around 30%, the memory is almost unused, and the load average is very low. We are using FMIS 3.5.3 854a running in the CentOS.

View 2 Replies

Compile Error - Myasfile.as, Line 1 Unexpected '@' Encountered

Oct 21, 2010

I'm using Flash Pro CS5. My FLA file's code says

#include "myasfile.as"

myasfile.as holds my code, and starts with "@estr = function ()" When I go to export movie, I get "myasfile.as, Line 1 unexpected '@' encountered" Why do I get this message?

View 1 Replies

Professional :: Error 103: Application.version Is An Unexpected Element/attribute

Jul 28, 2011

while i'm publishing iOS app from Flash, i get that thing
 
Unexpected or unknown element or attribute in the application descriptor file.
 
/Users/stockingem/Documents/DWP/1-app.xml(44): error 103: application.version is an unexpected element/attribute
 
application.version is an unexpected element/attribute

View 17 Replies

ActionScript 3.0 :: Error: Application.icon Is An Unexpected Element/attribute

Nov 8, 2011

I'm trying to publish my AIR app from Flash CS5.  Publishing has been fine, until I tried to use my own icon.
 
In the Adobe AIR 2.5 settings, under the ICON tab, I select my icon.
 
Now when I publish, I get the error: application.icon is an unexpected element/attribute
 
Now even if I don't include the icon, I can't publish.
 
I've found a ton of articles on fixing the same problem re application.version is an unexpected element/attribute - but nothing on this icon prob.

View 5 Replies

Professional :: Get "Unexpected File Format" Error

Jun 17, 2011

I was working with a FLA file when Flash suddently crashed. Then i tried opening the FLA again and i get "Unexpected File Format" error. Are my FLA file contents now forever lost? No way to recover it?

View 1 Replies

ActionScript 3.0 :: Getting An ERROR 5006 In The Package

Dec 14, 2009

THE ERROR 5006: An ActionScript file can not have more than one externally visible definition: FunButton, grow

View 1 Replies

ActionScript 3.0 :: Calling Package Name Error?

Mar 23, 2010

How can I call class.functio  from timeline?? with package name

package game {internal class carnode {
public function carnode() { function printtrace():void{ trace("Tesitng package

[code]....

View 2 Replies

Flex :: StackOverflowError While Refactoring - Error "An Unexpected Exception Occurred While Creating A Change Object"

Sep 30, 2010

I'm trying to refactor a package name (pretty near the root of the project hierarchy), and I'm getting the following error (flash builder 4): A fatal error occurred while performing the refactoring An unexpected exception occurred while creating a change object. See the error log for more details. The log file looks like this.... !ENTRY org.eclipse.ltk.ui.refactoring 4 10000 2010-09-30 10:57:25.134

[Code]....

View 2 Replies

ActionScript 3.0 :: Error With Fl.controls Package When Try To Import

Jul 4, 2009

I am getting very strange error with fl.controls package. When I try to import the package it says the package couldn't be found.

[Code]...

I don't know what to do with these errors. The code seems fine to me, I've checked it again and again, but still can't compile it with errors.

View 3 Replies

ActionScript 3.0 :: Error #5001: The Name Of Package Does Not Reflect

Nov 5, 2011

I don't use so often package and I don't understand why flash send a 5001 error on this
ActionScript Error #5001: The name of package does not reflect the location of this fileI have à fla located in the "test" folder :
  
import flash.display.Loader;
import com.MyLoader;
var photourls:Array = ["http://www4.pictures.zimbio.com/mp/6v5wRot-Ry9l.jpg"];
var ldr: MyLoader;
var id:uint = 0;

[Code]...

View 4 Replies

ActionScript 3.0 :: Error #1009 (class And Package)

Jul 28, 2011

This is my code

ActionScript Code:
package test{
class Main{
public function Main(){
}
}
}

View 6 Replies

ActionScript 3.0 :: Error 5001 Does Not Reflect Location Of Package

Feb 29, 2012

So I have a shell.fla file, on the same level as that there is a core_classes folder. Inside of the core classes folder is a core_initialize.as and a xml, buttons, and loaders folders. Inside of the loaders folder is swf_loaders.as
Inside of the buttons folder is menu_buttons.as

The package name for menu_buttons.as is core_classes.buttons The package name for swf_loaders.as is core_classes.loaders

When I run my Shell.fla I get the 5001 error Package name 'core_classes.loaders' does not reflect the location of this package. Please move this to the file. 'core_classes/loaders/swf_loaders.as'.

But where it lists the location of the error in the compile errors box it lists 'core_classes/loaders/swf_loaders.as'

I've checked the spelling everything is spelled right, I made sure I didn't mix up the two package names..

View 1 Replies

ActionScript 3.0 :: Getting Error 5001: The Name Of Package 'VectorModelStudy12511' Does Not Reflect The Location?

Jan 26, 2011

i'm trying to start organizing projects i have this folder structure: working>flash>as3Study>VectorModelStudy12511>src

my document is in VectorModelStudy12511 i have class paths to VectorModelStudy12511 and src the top of my document looks like:

[code]...

and i'm getting this error:

5001: The name of package 'VectorModelStudy12511' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:Users obDesktopProjectsWorkingFlashAS3Stu dyVectorModelStudy12511VectorModelStudy12511Docu ment.as

what am i doing wrong????

View 4 Replies

ActionScript 1/2 :: Error: "Scene=Scene 1, Layer=Nav Bar, Frame=1: Line 12: Unexpected '}' Encountered }"

Aug 7, 2009

The following script is giving me a syntax error... 
 
Error:  "Scene=Scene 1, Layer=Nav Bar, Frame=1: Line 12: Unexpected '}' encountered }"
on(release){     if(_root.textVar != 1)     {          for(int i = 0; i < 5; i++)          {               unloadMovieNum(i);          }          _root.textVar = 1;          loadMovieNum("mc_TextBox.swf", 0);
}
}

View 6 Replies

ActionScript 3.0 :: Passing X And Y Values Into A Package From Main Package

Dec 18, 2009

I am having troubles passing an x and y argument into a package function that creates a projectile on stage at the tank.gun's x and y.I have attached a zip of the code I am working on.[code]

View 6 Replies

ActionScript 3.0 :: ASDoc Only Documents 1 Package Function Per Package?

Jan 27, 2010

I'm running into this weird thing with ASDoc. It will only document one package function per package.For example.I have these two functions:

gs.util.printf
gs.util.ftrace

In these files:

gs/util/printf.as
gs/util/ftrace.as

The only function that get's documented in ASDocs is "printf". But I know it can do more than one. As an example, in the livedocs [URL] There are more than one functions documented.

View 2 Replies

Actionscript 3 :: Flex Syntax Error 1202 (Access Of Undefined Property Connection In Package Model)

Aug 9, 2011

I am getting Syntax Error 1202 (Access of undefined property connection in package model) in the following code while trying to access the model.connection property. I don't see any reason why this would appear, can anyone see something I may be overlooking?

[Code]....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved