Mxml to as3
I want to use AnimateProperty to animate a Shape and I want
to do it with AS3. To do this I must first learn how to use the
AnimateProperty class so I used the code below to try to recreate a
rollOverEffect on a button. It works fine for the mxml button, but
when I create a button in as3 I cannot use the rollOverEffect
property which then prohibits me from using the AnimateProperty
object I created.
Can I use AnimateProperty in as3 and can I use
AnimateProperty to animate a Shape that is created in AS3?
"SiHoop" <[email protected]> wrote in
message
news:gl7ecf$qmb$[email protected]..
>I want to use AnimateProperty to animate a Shape and I
want to do it with
>AS3.
> To do this I must first learn how to use the
AnimateProperty class so I
> used
> the code below to try to recreate a rollOverEffect on a
button. It works
> fine
> for the mxml button, but when I create a button in as3 I
cannot use the
> rollOverEffect property which then prohibits me from
using the
> AnimateProperty
> object I created.
> Can I use AnimateProperty in as3 and can I use
AnimateProperty to animate
> a
> Shape that is created in AS3?
I think that you have to use setStyle for effects, but I
believe that Shape
is too low-level to have such styles.
HTH;
Amy
Similar Messages
-
Well I'm just starting with Flex2 and AS3. I have some Flash
Experience as I created this
Flash
app entirely in AS2. All I did was put the different components
on the stage, and then initialized them in Actionscript. So now
it's time to re-write it, add a whole bunch of new features, and
generally just make it cooler.
But I'm not understanding a few things here. I'd prefer to
layout the basic structure of my app in a mxml file, but then wire
everything together using class files written in ActionScript.
How do you use anything in the mx.controls package inside of
a ActionScript file? How do you access elements from the mxml file
in an AS3 class file?
Can you create mx.controls in an AS3 file?
I'm currently using FlashDevelop 2.0.2 which has limited AS3
support while I'm waiting for a staggeringly slow FlexBuilder
download to get to me. So maybe it's lacking in some things, but
i'm using the Flex SDK to compile, so I'm sure the errors will
exist in both places.
Any insight? Or something I can read?One more question - how do I access components that may have
been placed on the stage within my AS3 code? I realize I can
probably pass them in at a later time, but I was wondering if I
could directly access them from the stage?
My current code gives what appears to be a
NullPointerException (yeah I'm a Java programmer). Any hints? or is
it even possible?
Let's say my main.mxml looks like this...
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
xmlns:ff="flex.*"
paddingTop="0" paddingLeft="0" paddingRight="0"
paddingBottom="0"
width="500" height="500"
horizontalScrollPolicy="off" verticalScrollPolicy="off"
applicationComplete="onCreationComplete(event);"
layout="absolute"
horizontalAlign="left"
verticalAlign="top"
>
<mx:DataGrid id="datagrid" name="datagrid" x="99"
y="129">
<mx:columns>
<mx:DataGridColumn headerText="Column 1"
dataField="col1"/>
<mx:DataGridColumn headerText="Column 2"
dataField="col2"/>
<mx:DataGridColumn headerText="Column 3"
dataField="col3"/>
</mx:columns>
</mx:DataGrid>
<mx:Script>
<![CDATA[
import mx.events.FlexEvent;
import mx.containers.Canvas;
import mx.core.Application;
import com.garmin.mb.player.PlayerCanvas;
* the canvas where everything is drawn.
private var mainCanvas:Canvas;
private function onCreationComplete(event:FlexEvent):void {
var main:PlayerCanvas = new PlayerCanvas();
addChild(main);
]]>
</mx:Script>
</mx:Application>
And my PlayerCanvas looks like this...
package com.mb.player {
import flash.events.MouseEvent;
import mx.containers.Canvas;
import mx.controls.Alert;
import mx.controls.DataGrid;
import mx.controls.HSlider;
import mx.controls.TextInput;
public class PlayerCanvas extends Canvas {
* TextInput for nothing of any value;
private var input:TextInput;
* Slider that controls the position of the user on the track
private var slider:HSlider;
* the data table
private var datagrid:DataGrid;
public function PlayerCanvas():void {
this.buildTextInput();
this.buildSlider();
this.datagrid =
(DataGrid)(parent.getChildByName("datagrid"));
this.datagrid.x = 20;
} -
MXML attributes accessed via AS3
Hi,
I have a Delphi background and am struggling to learn Flex.
Understand that MXML and AS3 are effectively equivalent and
that MXML is translated into AS3.
However I do not seem to be able to access the same
properties, events in AS3 as I can access in MXML.
For example a Button component in MXML - I can access
properties and events (horizontalCenter, verticalCentre, click
event) which I do not seem to be able to access in a button object
instantiated in AS3.
Could anyone confirm that this difference is real or am I
missing something OR how can I access these properties, events in
AS3?"MalcolmSkels" <[email protected]> wrote in
message
news:gm768m$jqr$[email protected]..
> Hi,
>
> Thanks for the replies ? and patience for such a basic
query ? which has
> helped clarify things. It was mainly the Style issue
that was confusing
> me. I
> think I have got it now but would appreciate if someone
could confirm that
> I am
> correct in the following:
>
> <mx:Button label=?Test It?
click=?myButtonClickHandler()?
> horizontalCenter=?0?
> VerticalCenter=?0? />
>
> 1.
> In AS3 you cannot access any events of an object other
than by adding an
> event
> listener with the addEventListener method. So although
there is a click
> event
> for a Button which you can access in MXML as in the
example above there
> is no
> direct equivalent in AS3 ? you have to add a listener.
In fact, this is
> what
> the MXML translation does - in AS3 you have to do it
yourself.
>
> As you have both said a lot of properties are Styles and
can only be
> accessed
> in AS3 via the SetStyle method which adds up to a lot of
work just to set
> a few
> properties.
> Overall I am concluding that AS3 is pretty labour
intensive and that I
> should
> use MXML if at all possible and only drop into AS3 if
absolutely
> necessary. Is
> that correct? (Not intuitive for me)
If you're setting several properties at once, create an
object with all the
properties and use setStyle to set that or just set the
styleName to a style
you've set up in advance.
MPO is that AS3 is more intuitive, because most of the real
fine tuning
you'll need to do once you get past the roughing in will only
be documented
in the API, and I find that to use it in MXML you often need
to do a lot of
translating from the API documentation into how it works in
MXML, whereas it
pretty much works in as like it's documented in the API (most
of the time). -
Company code split by using the Tool SLO
Hello All,
we are working a company code split project by using the Tool SLO(System landscape Optimization)
in the current scenario, we have one company code , one sales org and 2 plants .we wants to split 2 company codes as per the plants .alos we need to create a sales org for the 2nd company code.
i have following queastions .
1.Documents created before split for one company code and sales org .after split is it possible to change the company code and sales org for the Documents ?
2.in case of Complaints (Credit memo, Returns) when we do with refference to earlier Documents created by different company code .after split we need to create a return memo request (bu using different Company code and sales org)with refference to the earlier Document (created by Different company code and sales org) how it is possible ?
3. the same above point can be for any refference Documents like Inquiry,Quatation,Contract and sales order.
if any of you have worked for this kind of project and Tool, please help me on this .
Thanks
RadhikaThanks for the reply.
I'd never noticed that "Copy motion as ActionScript 3.0". That was pretty sharp. The only catch is...it doesn't look anything like what I'm used to.
This is what I'm used to:
myTween = new Tween(imageLoader,"alpha", Strong.easeOut, imageLoader.alpha, 1, 4, true);
And this is what I've got:
import fl.motion.Animator;
var tween_xml:XML = <Motion duration="36" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
<source>
<Source frameRate="12" x="212.5" y="141" scaleX="1" scaleY="1" rotation="0" elementType="graphic" symbolName="Tween 1">
<dimensions>
<geom:Rectangle left="-212.5" top="-141" width="425" height="282"/>
</dimensions>
<transformationPoint>
<geom:Point x="0.5" y="0.5"/>
</transformationPoint>
</Source>
</source>
<Keyframe index="0" tweenSnap="true" tweenSync="true">
<color>
<Color alphaMultiplier="0"/>
</color>
<tweens>
<SimpleEase ease="0"/>
</tweens>
</Keyframe>
<Keyframe index="35">
<color>
<Color/>
</color>
</Keyframe>
</Motion>;
var tween_animator:Animator = new Animator(tween_xml, tween);
tween_animator.play();
I guess I sort assumed that the code would be similiar, (making an '***' out of me and umption) It looks more like XML or MXML than AS3.
Why so different? -
Xml in datagrid instead of a proper result
Hi
I'm new to FDS and I have a problem to show my data in my
data grid. As you can see below I have a datagrid and a button.When
I click on the button I search for every item which contains 'BA'
but instead of giving me all the items of my search results, the
data grid gives me my search result in a xml-format:
<articles><article><number>262</number><description>BALPEN
BIC M10 BLAUW</description></article>
Has anybody have had a similar problem and found a solution?
Thanks!
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
backgroundColor="#FFFFFF" viewSourceURL="srcview/index.html">
<mx:WebService id="srv" wsdl="
http://localhost:8080/axis/ArticleService.jws?wsdl"
showBusyCursor="true"/>
<mx:DataGrid dataProvider="{srv.getArticles.lastResult}"
width="100%" height="100%">
<mx:columns>
<mx:DataGridColumn dataField="article.number"
headerText="Article Number"/>
<mx:DataGridColumn dataField="article.description"
headerText="Description"/>
</mx:columns>
</mx:DataGrid>
<mx:Button label="Get Data"
click="srv.getArticles('BA')"/>
</mx:Application>Note that this issue would be technically unrelated to FDS
(now known as
LCDS - the latest version being LCDS 2.5.1), but rather it
concerns WebServices
and the decoding SOAP into ActionScript objects. That is, FDS
is not required
to use WebServices in Flex (unless you need the proxy
service) and FDS does
not decode the SOAP responses - that is something that the
rpc.swc client
library does from the Flex SDK.
Depending on the version of Flex that you're using, it may be
a bug in the
<mx:WebService> implementation in the Flex SDK?
A new <mx:WebService> implementation was provided in
the Flex SDK which was
first made available in LCDS 2.5 which co-incided with Flex
SDK 2.0.1 Hotfix
2, and will be more widely exposed in Flex 3 (which is
currently in Beta).
The latest nightly builds for the Flex SDK 2.0.1 can be found
here:
http://labs.adobe.com/technologies/flex/sdk/flex2sdk.html
The latest nightly builds for the Flex SDK 3 Beta can be
found here:
http://labs.adobe.com/technologies/flex/sdk/flex3sdk.html
If you find a problem with WebServices, please log a bug
against the Flex
SDK at the public bug repository:
http://bugs.adobe.com/flex/
You can log the bug under the "RPC: WebService" component.
When logging a WebService bug, it's best to provide the WSDL,
any XML Schema
imports, a snippet of MXML or AS3 code that you used to call
an operation
and process the result (as you did in your post), and ideally
a capture of
the SOAP response as XML.
Regards,
Pete
> Hi
>
> I'm new to FDS and I have a problem to show my data in
my data grid.
> As you can see below I have a datagrid and a button.When
I click on
> the button I search for every item which contains 'BA'
but instead of
> giving me all the items of my search results, the data
grid gives me
> my search result in a xml-format:
>
<articles><article><number>262</number><description>BALPEN
BIC M10
> BLAUW</description></article>
>
> Has anybody have had a similar problem and found a
solution?
>
> Thanks!
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
> backgroundColor="#FFFFFF"
viewSourceURL="srcview/index.html">
> <mx:WebService id="srv"
> wsdl="
http://localhost:8080/axis/ArticleService.jws?wsdl"
> showBusyCursor="true"/>
> <mx:DataGrid
dataProvider="{srv.getArticles.lastResult}"
> width="100%"
> height="100%">
> <mx:columns>
> <mx:DataGridColumn dataField="article.number"
headerText="Article
> Number"/>
> <mx:DataGridColumn dataField="article.description"
> headerText="Description"/>
> </mx:columns>
> </mx:DataGrid>
> <mx:Button label="Get Data"
click="srv.getArticles('BA')"/>
> </mx:Application> -
HOW TO cache user clicks on links with attributes such as "_blank" ?
HOW TO cache user clicks on links with attributes such as "_blank" in Adobe AIR with JS or MXML or AS3 for creating new costume browser window (AIR) ?
>This feature is indeed new to 8.5.
Can you explain a bit more on what is possible in version 8.5? How easy it is to attach events to different sections of the 3D model? How easy it is to handle such events? I assume the events will fire even if the user rotates the 3D model via the camera control, right? Any limitations on the 3D model or what types of events are supported? If you have LV documentation describing this feature then that would be *very* helpful!
Thanks for your reply
MZ2 -
Use mx and spark components in pure ActionScript project?
I'm working on an AIR project in Flash Builder 4, but I'm not using MXML at all (pure ActionScript). Is there a way for me to instantiate and use mx and spark components without MXML? If not, what is the minimal amount of MXML I have to use? FYI, I've already tried all of the following hacks with absolutely no luck:
http://www.actionscript.org/forums/showthread.php3?t=143062
http://ersatz.tv/2009/off-topic-flex-components-without-mxml
http://stackoverflow.com/questions/141288/possible-to-use-flex-framework-components-withou t-using-mxml
I much prefer ActionScript over MXML. Why does Adobe have such a hard-on for this MXML ****?! It's like all that code and all those great components are going to waste.Me too.. . I'm a pure as3 guy and all these components go to waste. You would think they would allow people to generate components via mxml or as3...
-
What can I use if I need htmlText property in Flex Mobile project
Hello,
What control exposes an htmlText propery in Flex Mobile? MXML or AS3, doesn't matter.A strange blue-ish text? How could that possibly be of any help?
In other news:
Yeah, that's what I did after posting then resorted to using StageWebView or WebStageView, could never remember the name.
Thank you. -
Best Practice in regards to adding showing SkinnablePopUp from the Main application file of Mobile A
Hello,
I want to display a SkinnablePopUp when the user presses the back key when the current view is the first view to ask if he wants to quit.
The logic (checking if the key pressed was the back key && the current view is the first view) is in the main application file and if those two conditions are true then the exit() method is called.
I want to show the confirmation popup. Should I move all that in the first view mxml component or is it OK to instantiate the SkinnablePopUp in the main app file?
Thank you.so do I, or did, well still do but less than before
it seems best practice is to seperate mxml and AS3
have a look at this
http://tv.adobe.com/watch/max-2010-develop/flexactionscript-30-architecture-and-dependency -injection-frameworks-overview/ -
Is my code structure correct.
This is a question about OOPs structure for an AIR
application using flex 3 and actionscript3 without flex builder
(IDE is eclipse with AXDT and ant). I am new to forums so redirect
me if appropriate:
The data maintenance will occur on an infrequent basis. Is
this a good structure to using mxml and AS3?
Note: I know that I can create the data maintenance Panel and
other necessary controls in main.mxml, however I find that a large
mxml file is hard for me to work with.
Thanks in advance for your help and comments.
Dickno this isn't a good structure. Keeping everything in one
mxml is asking the code maintainer to be "punished".
Do this:
1. separate your states into "views", by creating custom
components to represent each states.
2. set up a blank "home view" state. All other states you
have can then use it as reference.
3. to manage states create a "model" (singleton) to handle
the transition from state to state
4. create as3 files specific to each "view" and reference
them in their respective mxml files.
take a look at this link:
http://beingwicked.com/2008/07/flex-initialize-and-the-hassles-of-changing-state/ -
Flex 4.6 mobile broke TextInput
I'm currently in the process of upgrading a Flex 4.5 mobile project to 4.6 and have run into issues with TextInput's.
Currently on most of my views you cannot click(tap) a TextInput and insert text. The field does not seem to take focus and no text appears when you type. I've tried this on a phone as well as on my computer. The weird thing about this is that I have two views where the TextInput's seem to be working. I have also removed all code, MXML and AS3, from a view where input's don't seem to be working and replaced it with a generic TextInput. Even after doing this the text field doesn't seem to be working.
I have tried to reproduce this outside of this project but can't seem to be able to. Anyone have any idea what would be causing this?I have the same issue but isolated in a very simple app. I havent tested it in Android, but in iOS it is VERY Buggy...
you just need to have this to reproduce:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:layout>
<s:VerticalLayout paddingLeft="15" paddingRight="15" paddingTop="15" paddingBottom="15" />
</s:layout>
<s:Scroller width="100%" height="100%">
<s:VGroup width="100%" height="100%">
<s:TextInput id="ui_firstName" prompt="First Name" />
<s:TextInput id="ui_lastName" prompt="Last Name" />
<s:TextInput id="ui_firstName2" prompt="First Name" />
<s:TextInput id="ui_lastName2" prompt="Last Name" />
<s:TextInput id="ui_firstName3" prompt="First Name" />
<s:TextInput id="ui_lastName3" prompt="Last Name" />
<s:TextInput id="ui_firstName4" prompt="First Name" />
<s:TextInput id="ui_lastName4" prompt="Last Name" />
<s:TextInput id="ui_firstName5" prompt="First Name" />
<s:TextInput id="ui_lastName5" prompt="Last Name" />
<s:TextInput id="ui_firstName6" prompt="First Name" />
<s:TextInput id="ui_lastName6" prompt="Last Name" />
<s:TextInput id="ui_firstName7" prompt="First Name" />
<s:TextInput id="ui_lastName7" prompt="Last Name" />
<s:TextInput id="ui_firstName8" prompt="First Name" />
<s:TextInput id="ui_lastName8" prompt="Last Name" />
<s:TextInput id="ui_firstName9" prompt="First Name" />
<s:TextInput id="ui_lastName9" prompt="Last Name" />
<s:Rect height="500" />
</s:VGroup>
</s:Scroller>
</s:Application> -
Slow/unpredictable response when switching between editing different TextFlows
Hi All,
Our (AIR) app requires multiple textFlow objects contained in groups over the app desktop. The user should be able to begin editing any one of these by clicking on the text, then beginning editing. I have been doing this by switching an EditManager in and out based on mouse click events, but I notice there is some delay that appears arbitrary after the mouse click, before editing is possible. The MXML and AS3 code below gives an example. You have a desktop with two text elements. When you mouse over one and click on the text, it will usually enter edit mode (with an I-bar cursor) pretty quickly. But when you click on the second text group the I-bar (and edit functionality) often doesn’t appear until you mouse out and mouse in again. On other occasions the I-bar will appear after just moving the cursor about in the group a bit. Clicking on the desktop and then on the text elements gives similar behaviour. Either way, we really need to get more responsive click to editing!
From tracking through it seems that there is some hidden sequence of events between assigning the interactionManager to the textFlow, and the events being captured and handled by the ContainerController / EditManager. Is there some way I can know this has occurred, or force it to happen immediately?
Thanks!
Darryl
<?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:ns1="*"
width="800"
height="600"
click="clickHandler(event)">
<fx:Script>
<![CDATA[
protected function clickHandler(event:MouseEvent):void
var targ:DisplayObject = DisplayObject(event.target);
while ( targ && !(targ is Group ) ) {
targ = targ.parent;
text1.canEdit = (targ == text1);
text2.canEdit = (targ == text2);
]]>
</fx:Script>
<s:Group width="800" height="600" id="baseGroup">
<ns1:TextGroup left="80" top="200" width="240" height="200" id="text1" text="This is text group 1"/>
<ns1:TextGroup left="480" top="200" width="240" height="200" id="text2" text="This is text group 2"/>
</s:Group>
</s:WindowedApplication>
package
import flash.events.MouseEvent;
import flashx.textLayout.container.ContainerController;
import flashx.textLayout.conversion.TextConverter;
import flashx.textLayout.edit.EditManager;
import flashx.textLayout.elements.TextFlow;
import flashx.undo.UndoManager;
import spark.components.Group;
import spark.core.SpriteVisualElement;
import spark.utils.TextFlowUtil;
public class TextGroup extends Group
protected var _textFlow:TextFlow=null;
protected var _editManager:EditManager=new EditManager(new UndoManager());
protected var _container:SpriteVisualElement = new SpriteVisualElement;
protected var _controller:ContainerController;
public function TextGroup()
super();
this.addElement(_container);
_container.percentHeight = 100;
_container.percentWidth = 100;
_controller = new ContainerController(_container,this.width,this.height);
this.addEventListener(MouseEvent.MOUSE_OVER,eventHandler);
this.addEventListener(MouseEvent.MOUSE_OUT,eventHandler);
public function set text(txt:String):void {
_textFlow=TextConverter.importToFlow(txt, TextConverter.PLAIN_TEXT_FORMAT);
_textFlow.flowComposer.addController(_controller);
_controller.setCompositionSize(this.width,this.height);
_textFlow.flowComposer.updateAllControllers();
public function get text():String {
return _textFlow.getText();
public function set canEdit(b:Boolean):void {
if (b && !_textFlow.interactionManager) {
_textFlow.interactionManager = _editManager;
} else if (!b && _textFlow.interactionManager ) {
_textFlow.interactionManager = null;
protected function eventHandler(event:MouseEvent):void
switch(event.type) {
case (MouseEvent.MOUSE_OVER):
this.opaqueBackground = 0xc4c4c4;
break;
case (MouseEvent.MOUSE_OUT):
this.opaqueBackground = null;
break;I put some trace() in TLF and finally found that TLF cannot get any events before the cursor firstly goes out of the TextLine (Flash.text.engine.TextLine) on your custom component. It seems a Flex bug.
-
Support for Mobile Device?
Do you foresee adding support for setting up mobile device projects (Android etc ...).
This would be great to help with any external - device specific - files required.GREAT!
Anything you can do to keep the developer writing MXML and AS3 is good.
Shield them from all the platform specific complexities.
Looking forward to it. -
? Derive a clicked button's 'level' and instance name?
I am trying to do something that I did quite often in Flash.
When a button is clicked, I need to understand it's instance name
and heirarchy as the application would identify it when looping
through the DisplayList.
For example, if a button, 'myButton', is clicked on in the
application ' myApp', I need to get its programatic name as
referenced by the application with 'myApp0.myButton'.
In Flash, with AS2, I could have the button tell me its
programatic name with:
myButton.onRelease=function(){
trace(this);
The result in Flash would be '_level0.myButton';
How can I get this type of informtion with Flex? Is it
different with MXML and AS3?
For reference, I am using a similar function to that below to
'index' the list of objects in Application.application:
function traceDisplayList(container:DisplayObjectContainer,
indentString:String = ""):void {
var child:DisplayObject;
for (var i:uint=0; i < container.numChildren; i++) {
child = container.getChildAt(i);
trace (indentString, child, child.name);
if (container.getChildAt(i) is DisplayObjectContainer) {
traceDisplayList(DisplayObjectContainer(child), indentString
+ " ")
Any information and examples would be appreciated.
Thank you.Ok, I found a partial solution, but I could still use some
help with event listeners. The solution I found is:
Within Flex, on a button click, the application can list the
click target when an event is called. So, when a user clicks a
button, in the 'click' action of the button, the following code
will return the object information I was looking for.
<mx:Button label="myButton"
click="trace(event.currentTarget)"/>
Now I am interested in seeing if I can dynamically "listen"
for clicks without adding an event command to the buttons. For
instance, on the button above, I can have the button tell me its
name, as shown above, or I could listen for the click and derive
it. For example:
<mx:Button label="myButton"
click="trace(event.currentTarget); sayName(event)"/>
Then I can have AS code listening for that event:
private function sayName(event:MouseEvent):void {
trace(event.currentTarget);
The problem with the listener solution 'sayName', is that it
requires a button to pass the event to 'sayName()'. I am really
looking for a solution which listens for ANY button click, checks
to see if it is a button, or a text link, or any object that might
act as a button (as opposed to a graphic or movie without 'semantic
events' with the application performing a resulting action).
So this is what I have tried:
In an AS Class, I added the following to the main class
function to initialize it:
addEventListener(MouseEvent.CLICK, clickHandler);
addEventListener(MouseEvent.DOUBLE_CLICK,
doubleClickHandler);
Then, within the class I added the following functions:
//possible event listeners?
private function clickHandler(event:MouseEvent):void{
var tempES:String = "type : "+event.type+" objectName :
"+event.currentTarget;
trace(tempES);
private function doubleClickHandler(event:MouseEvent):void{
var tempES:String = "type : "+event.type+" objectName :
"+event.currentTarget;
trace(tempES);
I get nothing. I suspect that I get no results because the
Application has the buttons and these listeners are not referencing
the application properly to listen for button clicks.
Am I off base? Can anyone help me understand how to listen
for click activity and get the object information even though the
listener code is in an imported class?
Thank you -
How to use TestRunnerBase in pure AS3 / no MXML
Hi,
is there a way to use the testRunnerBase GUI for a pure AS3 project, without a mxml?
Thank youHi, the testRunnerBase is a Flex application, so you can't use it in a pure AS3 environment without including all of the Flex dependencies.
Maybe you are looking for
-
Trying to sync apps in itunes after a complete computer reboot-
I recently cleaned out and rebooted my Macbook Pro from scratch and am now trying to organize my apps which exist on my iPhone 4S with my iTunes library. We have several Apple products using the same iTunes library, but we manually select which apps
-
Error while opening the web page
Hi, i am trying to start the srm login page using web. with the service BBPSTART..its not opening it shows ' Firefox can't establish a connection to the server at xxxx.xxx'. what might be the problem... kindly help me with it... thx.
-
Auto login problem with Mozilla FF 3 since I installed windows 7.
'''this just started after win 7 install. I hit remember me and it still makes me log in it saves the passwords but I still have to enter them
-
Why does iCloud calendar show up askewed on Firefox?
https://www.icloud.com/#calendar Please check out the link. Why does the calender show up incorrectly.
-
How to create customer specific fields within PC 10.0?
Hello, for previous Process Controls versions 2.5 and 3.0 it was available two how-to guides to create customer specific fields. Nevertheless so far I couldn't find those versions for PC10.0. Does anyone have them? Or know if the 3.0 version is also