Flex :: Run Program With A Package?
Dec 2, 2010If 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 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 RepliesThis 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 have the following code ]
[Code]...
but no connection established what is the reason behind not know help required and one more thing XAMPP is installed in D: drive.
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.
Im trying to add an exit button onto my program so when its clicked it exits the program completely.. I've tried some of the suggestions on the forums but they arnt working. what I have been using and its not working..
// CLICK to Exit
exit_Btn.addEventListener("mouseUp", goExit);
function goExit(evt:MouseEvent) {
fscommand("quit");
};
Is there a way to start an unrelated program (such as Window's media player) from inside of a flash program?
View 2 RepliesI want to send a html webpage with my application in installation package,is it possible?
View 1 RepliesI need to program a timer for a typing tutorial program. It needs to go to 5 minutes. When the timer gets to 5 minutes the movie has to go to frame 13 which displays the results of the typing test.
View 1 RepliesI 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 RepliesI 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?
Despite if it is good practice or not, I read here that you can have package variables (or constants), so I tried this:
[Code]...
I need to create a installer package which application i developed using flex air. Now how can i create a installer package of this application?
View 1 RepliesMy code is:
[Code]....
Taking the package name out lets it compile, but when it is in it tells me it the package structure isn't right, but I'm not sure what I'm doing wrong. Is it an error I made? Or possibly my version of mxmlc is corrupt? I compile it with
How do I say an MXML component is inside some package? Well, it's in a different folder... I know how to do it ActionScript... But when I do in MXML I don't declare the package explicitly because I don't know how, and when I call it to my application, it states that The prefix "package" for element "package:Component" is not bound.
View 2 RepliesI need to use DataProvider class and i cannot find the package that contains it. In all examples I saw they use fl.data, but I'm using flex builder sdk 3.4 beta and it doesn't have such a package.
View 1 Replieswhatever you wan't to call it. Nevertheless, curious to know if Air can write inside it's own installed package. I'm referring to the OSX '.app' files found in great numbers in the applications folder. Since every one of these can be opened as a regular folder, i'm guessing that's what they are.
What other fancy filewriting tricks am i missing out on?
I've got a problem how to organise files and packages in AS3/Flex project. A short intro to the problem:
The files structure in the project is (and should stay) like this:
libs/Class1/src/<files>
libs/Class2/src/<files>
libs/Class3/src/<files>
The amxmlc compiler source-path variable points to:
libs/
I need it because I have to subclass Class1 in Class3. That pushes me to put all the classes into packages that look as weird as this:
package ClassX.src { /* ... */ }
So in practice it looks like that:
package Class3.src
{
import Class1.src.Class1; // I prefer direct imports
public class Class3 extends Class1 { /* ... */ }
}
Is there a way to keep the files/folders structure and get rid of src in the package name. Changing the files structure or direct pointing compiler into base-class directory in not an option.
I'm developing an AIR application, where i need to access WindowedApplication's function from the package class. This is the Main application (Partial code)
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute" creationComplete="initApplication()">
<mx:Script>[code].............
I am trying to do something like this:
package com.clicker{
import flash.display.*;
import flash.events.MouseEvent;
public class Stager extends MovieClip {
[code]....
When I do this:
import com.clicker.*;
var test:Stager = new Stager();
test.clicker();
addChild(test);
I'am trying to import an actionscript file in a internal package in my project. From Java and am used to this to like this import Services.myClass. But the IDE doesn't suggest any classes when I type import Services. So how can I import my AbstractIdManager.as file? Inside this actionscript file, there is a public class named AbstractIdManager which extends EventDispatcher My project structure looks like this: I want to use the AbstactIdManager class in my View videochat.mxml
View 1 RepliesI am building a Flex and PHP application in which I am providing users a Save results option, which will invoke the php service that generates the results file. I then have the FileReference.download (url) function with the url of the file generated. Problem here is the popup to save comes before the file is even generated in the server. So user will get the incomplete file as the file generation will take atleast 10-15 seconds.
printToFile.token = customerTyped.printToFile(customerArray,displayno);
var filepath:String= "[URL]"+displayno+".txt";
var request:URLRequest = new URLRequest(filepath);
var fileRef:FileReference = new FileReference();
fileRef.download(request);**
I think the function(service) call to PHP function
customerTyped.printToFile(customerArray,displayno);
does not wait for it to return and continues to execute the next statements asynchronously. How do I make the download dialog to wait from popping up until the printToFile php function is completed?
How do I configure an ActionScript Project in Flex Builder 3 Pro so that I can compile an ActionScript class that is part of a package into a swf. For example, the class that I want to compile to swf is:
package utils {
import flash.display.Sprite;
public class Tool extends Sprite {[code]....
RootASProject is being produced by one developer, subASProject1 and subSubASProject1a by another developer, utils.Tool by yet another person.This directory structure enables each person to independently build modules and other resources, and quickly test the entire product.It is also important to note that these resources are loaded at runtime.So, class definitions must be fully qualified. For example, Tool.swf contains/defines "utils.Tool" not "Tool".
Developing with just the Flash IDE, this directory structure is not a problem. We create a Tool.fla and assign utils.Tool as it's Document Class then in the Flash IDE's Publish Setting, we set the class path to be NOT the current directory (.), but instead the RootASProject directory. If it were set to the current directory, the error would be: A file found in a source-path must have the same package structure '', as the definition's package, 'utils'. ToolTool.as. We're familiar with this error message and so I recognize that the Flex IDE is by default looking in the current directory for a subfolder, utils, to match the packaged class.
In the Flex IDE, I can add the utils parent, RootASProject, as an additional source path, but I do not know how to stop flex from looking in the current directory first.Using an ant build file, I can set the source path to RootASProject and the mxmlc is able to build utils/Tool.swf just fine. Apparently, it uses just the source paths passed to it, and does not automatically look for utils in the current directory.
the equivalent of osflex:TreeGridCellRenderer for the flexlib package?
View 1 RepliesI am using Flash Builder 4 and need a VideoDisplay component that works with Cue Points. The newer version of theOSMF classes that Flex's VideoDisplay are based on handles this already. The idea is to roll my own VideoDisplay component rather than monkey patch the existing one. To do this, I have created a project with the newer version of the OSMF classes, and another project with which I would build the new VideoDisplay, in a separate package name.
The issue is that since the Flex 4.1 SDK contains the majority of the OSMF classes with their original package names, a statement such as import org.osmf.media.MediaPlayer; references the class located at
[Code]...
In as/flex, Is it possible to find all Classes in a package that implement a certain interface?
View 3 Replieswhat the onLoad() or similar Event is in Flex? I'm trying initialize, but no joy.
[Code]....
Determine, whether a defined program is running (for example firefox.exe) If its running, then get the current dimensions of its window - i want to make a screenshot of the window, so i'd need other parameters too i guess: Is it minimized? is it behind some other window?
Is this possible to accomplish in AIR? Im using the latest version (2.6)
I have an Air Application which uses mx:HTML to show a html Page. This html page is located in my bin-debug and as long as i start my application out of FB it works fine.
In Project -> Properties -> Flex Build Packaging -> Package Content the test.html is selected
When I build the project by Project-> Export Release Build the HTML file is not included in the Air Package and so cannot be shown.
I would like to get some feedback on the project I made in Flex. It is a project scheduling program, providing something similar to what MS Project or Vico Control provide. App is found on [URL]
There is also a quick introduction of the program features in this blog post [URL]
it shows a little what Flex is capable of..