Get Object By Its `id` In An AIR WindowedApplication?

Mar 23, 2011

I've got some javascript that calls an AIR function. This AIR functions creates a new HTML element and adds it to the "Stage" like so[code]...

View 1 Replies


Similar Posts:


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 :: 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

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 :: 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

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

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

Dec 15, 2010

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

View 1 Replies

Actionscript 2.0 :: Group To Object When One Object Is Drag Across The Screen The Other Object Sticks With It

Mar 26, 2009

is there a way in action to group to object so when one object is drag across the screen the other object sticks with it, im using flash btw

View 6 Replies

ActionScript 3.0 :: Way To Connect Loader Object Of Photo Object With EventRatio Object?

Mar 25, 2010

So I have this Photo class than handles loading a pic, and dispatches an event when the loading is done with:[code]which is simple and works, but now I'd like to make something more advanced. I'd like to dispatch the load ratio.So far I have extended the Event class, with my own EventRatio class, and I can put properties on that class. Which is cool, but I need something more dynamic than just sending a fixed value.So, what is the best way to connect the Loader object of the Photo object, with the EventRatio object?

View 5 Replies

Flash :: Flex Dynamic Object Name And Add Object To Object?

Jun 16, 2011

I have this situation where i'm trying to save "chat logs" while people switch around views in my flex mobile application..so, my plan is i'm starting out with a main object that I plan to re-use as the main chat log object..I call it textObjso, when someone new wants to chat my plan is to make a new object with the persons username.so how if i were to get the username from something like data.username how could I translate that into the var name of the object I want to make? So in the end i end up with.[code]

View 2 Replies

ActionScript 3.0 :: Stop The Movement Of One Object When One Other Object Is Over One Third Object?

Jan 8, 2011

how i can stop the movement of one object when one other object is over one third object

View 1 Replies

ActionScript 3.0 :: [object Class] Instead Of [object MovieClip] - Delete The Targets ENTER_FRAME Event?

Mar 15, 2009

When I use MouseEvent.MOUSE_OUT the target is [object MovieClip], but when I use MouseEvent.ROLL_OUT I get [object Bildspel] - and Bildspel is my class. The thing is that when I use ROLL_OUT I'm not able to delete the targets ENTER_FRAME event.

[Code]...

View 2 Replies

ActionScript 2.0 :: Disable Clicking Through An Object So It Doesn't Effect Anything Under-neath The Object When Pressed?

Feb 5, 2012

how I can disable clicking through an object so it doesn't effect anything under-neath the object when pressed.

View 9 Replies

ActionScript 3.0 :: Does Cached A Bitmatp Improve Speed Of Vector Object Or Bitmap Object

Aug 5, 2009

does cached a bitmatp improve speed of vector object or bitmap object?

View 1 Replies

Arrays :: Declaring A Null Property Within An Object, Or Running A Function Within An Object Declaration

Feb 22, 2011

I have an object which is assigned a number of properties:

var project_array:Array = [];
var slideObject:Object = {
project_title : myXML.projects.project[i].title.toUpperCase(),

[Code].....

but I'm not quite sure where to place this. If I place it outside of the object constructor, I get "term is undefined", I guess because it doesn't know what project_clips_array is - but if I declare project_clips_array in the constructor, it appears to need to be defined, i.e. I can't create a blank property. But I can't place it in the constructor either, because it doesn't seem to allow me to run a function within an object constructor. What is the proper syntax or arrangement of code for executing this function to get the array within the object?

View 2 Replies

Actionscript 3 :: Create Event Listener To Execute A Function When Object A Collides With Object B?

Mar 26, 2011

Alright, I've looked online at a bunch of different collision tutorials but they don't explain what I'm looking for. I want object A to hit object B and then execute a function via to a Event listener.

View 1 Replies

ActionScript 3.0 :: Listening For Custom Event Dispatched From Parent Object In Child Object?

May 25, 2010

I want to listen for a custom event dispatched from the document class in a custom subclass. For example, let's say in the document class I have:

ActionScript Code:[code]....

So that the subclass will trace 'Event from document class received' when the 'customEvent' event from the document class is listened by the eventlistener. However, the output is only 'customEvent dispatched', meaning it wasn't heard in the subclass.

View 7 Replies

ActionScript 3.0 :: Detecting Stage Object Positions From Library Object Class File?

Sep 14, 2010

Ok. So heres what I am trying to do. I want one movie clip to follow another one that I move around with actions on the main timeline.The problem is that the follower clip is linked to a class file and I cannot find a way to find the players position.

[Code]...

View 8 Replies

ActionScript 2.0 :: [FMX] Advanced Hit Test When The Second Object Touches The Eactualy Object In The Movie Clip

Dec 15, 2002

I have a Movie Clip and Im trying to do a hit test on it but i want it to test when the second object touches th eactualy object in the movie clip, not just enters inside of the blue outline.

View 3 Replies

ActionScript 3.0 :: Deep Object Copy - BCopy Object Does Not Contain Body Property?

Mar 24, 2011

I found a really weird behavior when using deep copy for objects (ObjectUtil of Flex framework).Imagine we have a class B which extends class A. Class A has property body which is of type ByteArray.I create object b (instance of B). Then I make a deep copy object bCopy, BUT this bCopy object does not contain body property at all! All others properties (of scalar types) defined in Class A are copied properly.When I define property of type ByteArray directly in class B, then this property is copied properly..

View 2 Replies

Flex :: Access XML Object In Restlet 2.0 Thats Wrapped Inside A Representation Object?

Jan 7, 2010

I am developing an application with Flex for the GUI and Restlet for the webservices. I have a strange problem. I put my XML as a property on a generic object, and send it as part of a POST request. But in the Restlet webservice, this XML is irretrievable. How do I retrieve it? I tried initialising the received Representation object to a DomRepresentation, but thats not working. If I put the received Representation object into a Form object, then getFirstValue is returning that XML as a string! I noticed that the contentType of the HTTPService was application/www-form-encoded so I set it to application/xml and its not helping either. I use restlet 2.0m6 and here is the code snippet that I use -

[Code]...

View 1 Replies

Flash :: Handle A Time Object From Php In Flex (parse It To A Date Object)

Aug 19, 2010

I've got a php backend which delivers a time (e.g. '07:00:00'). This time is recognized as a string but I need it as a Date. So what I need is: Convert a string '07:00:00' to a Flex Date object. Is there a way to do this (without using regular expressions)?

View 2 Replies

Actionscript :: Flash - Make An Object Snap To Another Object Then Follow Its Path?

Apr 15, 2011

I am currently trying to create an app using flash AIR.I would like to find some more information on how to make an object snap to another ojbect then follow its path, eg. a person object is already on the stage, then drag an arrow to the object which snaps to it, then on play button it follows the arrow path. all in pure actionscript, no guide layers.

View 1 Replies

Flex :: Move Shape Object Across Screen- Initial Object Remains

Jun 25, 2011

I am trying to move a 'Shape' object across the screen. As the object moves, a copy is being left at the initial position. Almost as if only an instance of original object ahs been moved

This is not an issue for moving an image or MXML graphic. Is something wrong in setting to the move object?

The code is as follows

private var arrow:UIComponent;
private function resetAssets():void{
arrow = new UIComponent();

[Code].....

View 1 Replies

Actionscript 3 :: In Flash Does Extending An Object Use More Memory Even If The Object's Methods Aren't Used

Jul 20, 2011

I am creating an object pool to cache some recyclable objects in memory at the outset of my application in order to avoid (as much as possible) the performance issues caused by GC running; if possible I'd like to minimize the memory my object pool reserves, so I'm attempting to pool generic forms of the objects (with no methods) and then casting the generic variants to more specific and complex object types which extend the generic form when I actually want them on the stage.

The trouble is that to do this requires the generic variant class to import/extend MovieClip (because the more complicated objects are themselves MovieClips and make use of DisplayObject methods)-- does simply importing and/or extending a class add to the memory an object takes up when instantiated even if it never uses methods from the inherited class? It makes sense that it would, and some light profiling seems to suggest that it does, but I'm not 100% certain. About how large should an 'empty' MovieClip instance be in bytes?

View 1 Replies







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