Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
SEJ-69 #1
Declaring methods
I'm an old school C++ programmer that switched to CF development years back.
Now with AS3 I've decided to branch out and learn Flex3 and AS3.
I've been working with the sample code in a few books and all have been having
similar issues. It looks like a method needs to be declared before calling it
which makes total sense to my C++ days. Take the sample code as an example.
If I try to run it I get an error in the flexbuilder stating: "Call to a
possibly undefined method Play through a reference with a static type of
mx.effects:Move." on the line "<mx:Button label="Button"
click="transMoveTestIn.Play()"/>"
Can anyone shed light on why this is happening? I can't seem to find anything
on declaring methods. I see that I can declare functions in AS3 scripts...
TIA!
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Move id="transMoveTestIn"
target="{frmTest}"
xFrom="502"
xTo="600"
duration="1500"/>
<mx:Form x="502" y="104" width="261" height="361" id="frmTest">
<mx:Text text="Test Form" width="157" fontWeight="bold"/>
<mx:Text text="Test text" />
</mx:Form>
<mx:Form x="163" y="104" width="261" height="361">
<mx:Text text="Move Form"/>
<mx:Button label="Button" click="transMoveTestIn.Play()"/>
</mx:Form>
</mx:Application>
SEJ-69 Guest
-
Declaring Web Services in AS
Hi, I know I can declare/initiate new WS using <mx:WebService> im my MXML code. I was wondering if it's possible to declare these services using... -
Declaring the name of a grid
How can I declare the name of a grid, then use it to bind it to the datasource? I have 3 grids, each with different id's. dgOne, dgTwo, dgThree.... -
Declaring a Variable
When I "test movie" a long Flash movie whose first three lines are //--- Number of Questions-- var my_totalquestions:Number = 20... -
#26350 [NEW]: Inherited methods can't access private methods
From: forseti at oak dot rpg dot pl Operating system: Windows 98 SE PHP version: 5.0.0b2 (beta2) PHP Bug Type: Zend Engine 2... -
Aliased setter methods behave differently than other methods?
Here's another question... I am aliasing and redefining certain methods, determined at runtime. Normal methods work fine, but methods ending in '='... -
-
-
VarioPegged #4
Re: Declaring methods
AS is case sensitive, so
.... click="transMoveTestIn.play()...
and not
.... click="transMoveTestIn.Play()
TS
VarioPegged Guest
-
SEJ-69 #5
Re: Declaring methods
Hmm... It already is a 'P'... I verified the case is identical and it is...
SEJ-69 Guest
-
SEJ-69 #6
Re: Declaring methods
Oh, nevermind! It should be a lower case 'p'.. DOH. Thanks!!!
SEJ-69 Guest



Reply With Quote

