ActionScript 1/2 :: Load Package In AS2
Jan 9, 2010I have some problem loading my package in AS2.0.[code]
View 3 RepliesI have some problem loading my package in AS2.0.[code]
View 3 RepliesI have classes witch resides in this package :com.network.interface_as. When I try to load one class from that package in another class in the same package like this:
[Code]...
does anyone know how to install a swc and load the package? I have installed the two SWC as3corelib-.92.1 and xmlsyndication.swc into components, but when I call the package from an AS file nothing happens other than, 1172: Definition com.adobe:xml could not be found.
They turn up ok in flash as components, but I think I miss something.
[Code]...
I have classes witch resides in this package :com.network.interface_as. When I try to load one class from that package in another class in the same package like this:
Code:
import com.network.interface_as.SomeClass_A
class com.network.interface_as.SomeClass_B{
private var class_A:SomeClass_A;
public function(){
class_A = new SomeClass_A();
}}
I get error message that "class com.network.interface_as.SomeClass_A could not be loaded".
Okay I'm working on a pretty big project, and the last thing I need to do is get this content to display. Here's my lil problem. So I'm loading buildings, and when clicked on, I'm loading a movieclip from the library that has a slideshow movieclip on the first frame, however this slideshow is packaged externally. This slideshow has a "xmlPath" that is defaulted to a XML file. My question is... what kind of code can I use to control which xml is loaded when loading that packaged slideshow?
[Code]....
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 RepliesI'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.
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?
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.
I searched the forum, could not find questions like this so I hop this is the right forum.[code]...
how I should add this package to CS4?
I just downloaded the AIR SDK, I just don't know how to proceed. Some sites on the internet tells me to execute the
adt -package SIGNING_OPTIONS air_file app_xml [file_or_dir | -C dir file_or_dir | -e file dir ...] ...
command line, but I just don't know how to do it.
The application is already developed and ready to use, but I can't package it.
I am trying to understnd some of the things about packages, I have expand a book exercise and I am now trying to workout how to reference a return value within this package.I have put together this package
Code:
package classes
{
import flash.display.*;[code]....
What I am trying to do is use the 'return(spot1);' value where 'new smiley1(); is.My goal is to be able to create the library object name, (in this case smiley1 from a string variable and then display it on the stage with addChild.At this stage I am just trying to work out how to swap 'new smiley1' with the 'return' value.I will work on the addChild bit next.
I have a 3.5MB SWF that points to ~80 FLVs that range in size from 3MB to 10MB.
Is there a way I can package all of these files into one ~500MB file that can be run locally? My client wants sales people to take this app around with them on their laptops and not require the internet and I don't want them to have 100 files to mess with.
implementing AS3 localconnection, I sourced Adobe article that provides a send and recieve script and thought to use this get started.
[URL]
how to bring the .as package script into my sender.swf.I have a blank sender.swf and have created LocalConnectionSenderExample.as in same directory, how do import the package (classes) and also any other code?
In one of my Action Script 3 projects I need to create package names having numerics in them. For example I am writing one of the package name as com.projectname.activity101.view.*
My query is whether it is okay to have numerics in the package name as in the above example. I am asking this query as once working with Flash 7 I had used the package name ending in number that gave me some issues. When I changed the package name to have only alphabets in it the issue was resolved.
Apparently, I cannot have two public classes in a package. How else can I declare classes?
View 2 Repliesthe following file/class structrue causes problems:
[Code]...
Inside the classes, I have put them into package CSoCM and MusicBlog. Now I want to call ContentMasked inside the Blog-class. How do I have to reference this?
I am creating an app with Flex 4 using Flash Builder. When I try to use mx:XML component, I get the error Could not resolve <mx:XML> to a component implementation. Can any one tell me which package to import to resolve this error.
View 2 RepliesIf i run the program i get some errors.If we include a class in a package how should the program be run?[code]...
View 2 RepliesI've written a small sample AIR application in Flex to be deployed on iOS and Android, but I'm wondering how to go about setting up a way to publish it as Flash as well. I'm using Flash Builder 4.5. Any tips for this AIR noob?EDIT:I should add that I've tried to add a new Run Configuration, but did not see a Flash app option listed there. I'm sure I'm missing something fundamental. After all, this is FLASH Builder.UPDATE:So this partially did the trick... I went to Run Configurations again and created a new launch configuration called "Flash_configuration" and pointed it at my project like so.
However, upon hitting "Run," the app launches in Adobe Flash Player, but is completely blank. The mobile flex contains buttons and UI elements in the View, but these do not show up in Flash Player. Perhaps the Mobile Flex framework elements are not directly translated to elements understood by Flash? If so, will I have to use some actionscipt to detect the platform and replace those mobile elements with flash-friendly ones? I would sure hate to rewrite/draw.
I'm trying to make use of a package that someone else has written in my Flash AS3 programme.I can't work out how to include it however, nothing I try seems to work. The package is here:[URL]
View 1 RepliesHow to add in .as with a class extends Sprite ?? We created the Easy1 in Flash Professional to create a live streaming video viaFMS for 2 users and now we want to combine easy1 into HelloFlerry to invoke Flash-Java nativeprocess.
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
[code].....
i have a problem to get data from my package. In package i have lets say regtangle with id=5 and mouseEventListener for click. In main fla i have textField, so if i click now to regtangle id like to see that id number(5)in textField.
View 5 Repliesim newbie in flash actionscript 3.0.. so im starting learning from o'reilly cookbook. I have a problem on importing package from as file to my flash file... here is my code for my as file
[Code]....
then here is my code for my flash file import testing2; both of the files was on the same directory written in the books that this code can draw random lines,, but what i see is just a blank page.. how the actual way to import package onto flash file? im running after forum & found piece by piece solution but i still couldn't fix it.. sometime i have error where i need to change my function name..
Been looking for tutorials and examples of how to use the 3D package in Flash 10 but can't find anything. I have some experience of 3D programming (C++) so I don't need the basics, just a description of how actionscript works.
Had a example of a randomly rotating 3D box but can't find the page again...
Am a 2.0 Scripter, and am really figthing to jump to as3.0 , not easy AT ALL.
As2.0 : i used to use
_global.my_function = function(){}
wich was really really simple so u can use that function from evrywhere . how to do so in MISTER AS3.0 ?
I have a "retrieve" button in one page, and I want to click this button then retrieve imformation from database. Everything works fine util one day. I receive the imformation in xml at retrieve.as file, now I want to create a datagrid using datagrid.as file to show these imformation. The question is I do not know how to pass this xml file form retrieve.as to datagrid.as. I know about sharedObject, but it is not safe to keep this xml file at client side's local drive, even if it is temprary.
View 5 RepliesI want to get into Object-Oriented Programming, but when I even try to code even one line:
Code:
package{
//code here
}
I get an error: packages cannot be nested. I know what this means, but I have no idea why it's giving me this error.
Im trying to convert this simple external .AS flash package to a FLA (all in one) so i can have a play with the SION synth within my flash application but im having trouble doing so.Here is the code:
import flash.display.Sprite;
import org.si.sion.*;
public class TheABCSong extends Sprite {
[code]....
My code structure is
FlashTesting --> folder contains
Test.fla with one button called cmd_button
engine --> folder contains
[code]....
When I compile output says 1120: Access of undefined property cmd_button
folder structure
FlashTesting -->engine--->code
All I want to access cmd_button to add EventListener which is in code folder. Seems can't access fla components.