Flex :: Access WindowedApplication From Package Class?

May 20, 2010

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].............

View 2 Replies


Similar Posts:


Actionscript :: Flex - Access The "WindowedApplication" Class?

Dec 15, 2010

How do I access the "WindowedApplication" class in Actionscript?

View 1 Replies

Flex :: Reference WindowedApplication From Inside A Class?

Nov 12, 2011

I'm using Flex 4.5, and I have imported a custom class I wrote into the main MXML file.

Inside the class file, I want to be able to create a TitleWindow using the PopUpManager like this:

package classes {
import components.*; // My custom components
import mx.managers.PopUpManager;

[Code]....

This is because this isn't pointing at WindowedApplication. How do I make the first parameter in .createPopUp() point to the WindowedApplication?

View 2 Replies

ActionScript 3.0 :: Access A Class In A Package A Few Directories Up?

Nov 2, 2010

I inherited a project and this thing is a real Frankenstein.  It is a combination of external classes, flex xmls  and action script on timelines of objects in various swf files. I have a situation where I need to access a class in a package a few directories up.  For example my direcoty structure is similar to the following:

[Code]...

View 1 Replies

ActionScript 2.0 :: Load One Class From That Package In Another Class In The Same Package

Dec 14, 2004

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]...

View 2 Replies

Flex :: What Package Should Import To Use DataProvider Class

Jan 28, 2010

I 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 Replies

Flex :: Compile An ActionScript Class That Is In A Package To A Swf Using Builder 3?

Jul 11, 2009

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.

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

Flex :: Setting Bounds For WindowedApplication

Jul 9, 2010

for some reason this flex 4 code gives me an error but I can't figure out why. In my WindowedApplication I have:[code]That seems like a bogus error since I can assign pref.bounds to rect without an error. I don't know why this isn't working. It works under flex 3 compatibility mode but that also breaks a lot of my spark components so I can't use it.

View 1 Replies

Flex :: Skin For WindowedApplication Drawing Over Components?

Jan 14, 2011

In order to set a background image for my Desktop Flex application, I created a custom skin class, setting the skinClass property to my custom MXML skin. The host component is SkinnableContainer. I use a bitmap image for the custom MXML skin. Everything works fine, except that it's drawing over all my components. How do I get the skin to draw in the background? Should I move the Bitmap markup to somewhere else in my skin file?

View 1 Replies

Flex :: Remove TitleBar From Spark WindowedApplication?

Mar 25, 2011

How do I remove TitleBar from Spark WindowedApplication?

View 1 Replies

Flex :: Move Chromeless Windowedapplication On Drag?

Sep 1, 2011

I have implemented a chromeless windowedapplication in flex 4. But doing so i noticed that all the maximize, minimize and even the ability to drag the window around is gone. I need the ability to drag the window around. I have done a lot of googling and have been unable to come up with anything.

View 1 Replies

Flex :: Maximizing AIR WindowedApplication And Resizing Containing Component

Sep 3, 2011

I am trying to create an AIR app that you can maximize and when you maximize all the components contained in the windowedApplication are scaled with the containing windowedApplication.

At the moment when you maximize the window all the components just stay the same size.

<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:ATE="http://ns.adobe.com/ate/2009"
xmlns:ai="http://ns.adobe.com/ai/2009"

[Code].....

View 1 Replies

Flex :: Make The Rounded Corners Of The Client App In WindowedApplication?

Apr 2, 2010

In my application,showFlexChrome is set as true in WindowedApplication,and the *-app.xml is setted as follows

<systemChrome>none</systemChrome>
<transparent>true</transparent>
<visible>true</visible>

I know how to make the top border rounded corners with follow codes:

borderStyle="solid" cornerRadius="8"

But I cannot find a method to make the bottom border of my app window rounded-corner.

View 1 Replies

Actionscript 3 :: Flex/AIR: Resize All Components Inside A WindowedApplication?

May 14, 2011

It's interesting. If you set stage.scaleMode = StageScaleMode.EXACT_FIT; all components are resized when you resize the window, BUT there is a grey stripe at the bottom of the window that is not.By the way, is it possible to take that grey line/stripe off from the window?Try to resize this window and you'll see what happens:

<?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"
xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:local="*"

[code]....

There is also a timer just for checking if the Stage's size is the same as the application window's one.

View 2 Replies

Flex :: S:WindowedApplication Is Empty And Does Not Initialize / Show Child Components

Jul 5, 2011

I have quite some experience with Flex and I am just starting to write my first AIR application and would like to use as much Spark as possible here. So I started withe a simple Hello World application:

[Code].....

Unfortunately this simple example shows no child components and even none of the initialize handlers is triggered. However as soon as I change the root tag to mx:WindowedApplication everything behaves as expected: The label and the button are shown and the console shows the output of the two trace statements.

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 :: Flash Import A Class That's In A Package Into Another Class?

Jun 18, 2010

So basically i have my root folder with my fla and my document class in it, then I have a folder called 'main' with another class in it (Control)

But I can't seem to import my main.Control into my document class... (I would like to create an instance)

Code:
package{
import flash.display.*
import main.Control//is this wrong?

[Code]....

View 3 Replies

ActionScript 3.0 :: Can't Access Variable From Package

Mar 2, 2010

I have an xml parser that i tried to code into an external class/package.I have no experience with packages so its been difficult but i got most of the way there.The code works, the problem is that i dont know how to access the output variable from the package in my fla file.How can i use the variable allText in my fla?

package

Code:

package {
import flash.events.*;
import flash.display.Sprite;
import flash.net.URLRequest;

[code]...

View 4 Replies

ActionScript 2.0 :: Access To Static Properties After Using Package?

Jan 1, 2010

ActionScript Code:
//such is a simply version of the hierachy of my project
// in DrawingTool.as[code]........

it's settled, why? must I give the explicit and full referrence to access the static property.

View 5 Replies

ActionScript 3.0 :: Get A Package Being Able To Access Library Symbols?

Nov 5, 2011

I have a package that extends my sound class that I want to also control the alpha of an existing symbol on my stage. I have read that this would be ideally done through some sort of event listener but I can't find a way to do it. Basically, my package generates a wavelength that I want to control the alpha of an existing library symbol. I have gotten examples to work the way I wish but can't seem to get my package to access the main .swf's library.

Here's the code:

package {import flash.events.SampleDataEvent;
import flash.media.Sound;
/**
* A dynamically generated binaural beat carrier wave Sound with frequency easing.
*/

[Code].....

View 4 Replies

ActionScript 3.0 :: Loader Class + As A Package

Jan 9, 2011

I wanted to design a [relatively] all purpose class to load images and SWF's with a preloader MC and error handler. I made this BUT, when I load the MC I cannot control it. i.e. I load an SWF containing an animated GIF, but I cannot say mc.gotoAndStop();

[Code]...

View 1 Replies

Actionscript 3 :: Package Name For A Loop Class?

Dec 22, 2009

I wrote a class that performs an asynchronous loop. It needs a package name. I already have a util package, but feel resistant to put half of my classes in that package. If it really belongs there, I'll put it there, but I'd feel much better if I can find a more appropriate/specific package.

View 3 Replies

ActionScript :: Import Class Into A Package?

Jun 27, 2010

I'm having a bit of trouble getting a class to import.[code]...

View 1 Replies

ActionScript 2.0 :: Cannot Load Class From Package In Another One

Dec 14, 2004

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".

View 2 Replies

Flex :: Access A Component Within <fx:Declarations> In A MXML Class?

Dec 20, 2011

Is it possible to access a declared component as an IFactory within an MXML class? I've used this style of declaring factories many times for Skin Parts, but I've never figured out how to access those factories from within the MXML.

Here's an example of what I would expect to work:

<fx:Declarations>
<fx:Component id="labelDisplay">
<s:Label fontSize="12" fontWeight="bold"/>

[Code].....

View 2 Replies

ActionScript 3.0 :: Get Flashvars Value From A Package As Class Not From Timeline?

May 27, 2010

I need to assign dynamically a path to a xml file through Flashvars. How I can make it work?

I was able to get Flashvar from html page into swf with actionscript code on timeline[code]...

View 21 Replies

ActionScript 3.0 :: Can Get Flashvars Value From A Package As Class Not From The Timeline

Dec 23, 2010

I need to assign dynamically a path to a xml file through Flashvars. How I can make it work? I was able to get Flashvar from html page into swf with actionscript code on timeline:

1. HTML � assigning Flashvars with swfObject:

Code:

<script type="text/javascript">
var flashvars = {};
flashvars.xmlfile = "xml/data.xml";

[code]....

View 4 Replies

ActionScript 3.0 :: Applying Two Class Files From A Package

Oct 28, 2008

I have a photo gallery, with a thumbnail panel (a photo viewer page) that I made, coding the AS3 from the key frame. It just so happens that I saw some class files online that have some good stuff in the tutorial.I've never really worked with .as files and I am intimidated by them.Would it be easier to modify my photo gallery, with a thumbnail panel, from key frame to .as AS3 code or to go from .as to key frame code? I personally feel more comfortable with key frame AS3, but I am not scared to dabble.How can I practice adding a couple of class files to my key frame AS3 code- I'm using regular variables, but the interesting idea I saw uses private variables and public functions, and it imports some stuff?

View 1 Replies

ActionScript 3.0 :: Resources For Package / Class Design?

Dec 17, 2009

I am somewhat new to OOP and am attempting to learn how to design and execute custom classes. My goal is to create a package that extracts data from an XML document. Do any of you have links, books or other resources you would recommend? So far, I've got the following:

[Code]...

View 8 Replies







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