Newbie flex issue w/ addChild
Why am I getting an error for addChild()?
"1180: Call to a possibly undefined method addChild."
I"m completely lost, because I never had an addChild problem
in Flash... Only inside of a Flex Component.
package comps
import flash.display.*;
import mx.core.MovieClipLoaderAsset;
import mx.core.MovieClipAsset;
import mx.core.Container;
public class AudioPlayer
[Embed(source="images/audio_controls.swf", symbol =
"audioControllerFinal")]
var AControl:Class;
var aCon:*;
public function AudioPlayer():void
aCon = new AControl();
addChild(aCon);
}
Your class, AudioPlayer, doesn't extend a class which has
addChild() as a function.If your class extended HBox for example,
then it would have an addChild() function.
Similar Messages
-
PHP Type Hinting and Flex Issue
From the PHP docs, "PHP 5 introduces Type Hinting. Functions are now able to force parameters to be objects (by specifying the name of the class in the function prototype) or arrays (since PHP 5.1)." So i have a function that has a bunch of parameters setup with type hinting. When i use the connect to dataservice wizard everything works great, it even gets the objects hinted in the parameters and adds them to my flex DataObjects. Now if in flex if I create a new instance of this object, (var activeSync:DO_ActiveSyncServer= new DO_ActiveSyncServer();) and then pass it to my newly added data service i get the below error message.
Catchable fatal error: Argument 2 passed to SetupWizard::CreateSetup() must be an instance of DO_ActiveSyncServer, instance of stdClass given in SetupWizard.php on line 29
Anyone ever come across this issue before or know how to fix it? It would seem that Flex passes this stdClass type no matter what to PHP for complex objects.
ThanksFrom the PHP docs, "PHP 5 introduces Type Hinting. Functions are now able to force parameters to be objects (by specifying the name of the class in the function prototype) or arrays (since PHP 5.1)." So i have a function that has a bunch of parameters setup with type hinting. When i use the connect to dataservice wizard everything works great, it even gets the objects hinted in the parameters and adds them to my flex DataObjects. Now if in flex if I create a new instance of this object, (var activeSync:DO_ActiveSyncServer= new DO_ActiveSyncServer();) and then pass it to my newly added data service i get the below error message.
Catchable fatal error: Argument 2 passed to SetupWizard::CreateSetup() must be an instance of DO_ActiveSyncServer, instance of stdClass given in SetupWizard.php on line 29
Anyone ever come across this issue before or know how to fix it? It would seem that Flex passes this stdClass type no matter what to PHP for complex objects.
Thanks -
I am having all kinds of issues with Tour De Flex examples on OSX and Safari. Is any one else having issues? Issues are speed, lockups and functionality of the examples. I am not sure if it is just the Apple and Adobe war.
Yeah - the issue started with Safari 5. We're looking into it...but it appears to be a bug in the way iframes are handled in Safari 5.
In the meantime, you can use Firefox or better yet, download and install the desktop version of Tour de Flex (AIR app). The desktop version has additional samples, most of which are in the AIR category.
Thanks!
Greg Wilson
Adobe Systems, Inc.
http://gregsramblings.com
http://flex.org/tour -
Bizarre Sound Distortion on Export - Not Newbie Compression issue
I'm trying out the Flash CS3 demo - OSX. (Using OSX 10.4.10.)
I've got a slightly complicated timeline with about 8 layers
and some things alpha fading in and out, and a bunch of sound
samples being used as timeline sound effects (forget the term, but
attached to frames not streaming). No scripting.
The sounds are mostly too long for the amount of time
allotted to them in the timeline, and cut previous sounds off. I'm
speculating this might be a possible issue. That is, I have say a 5
second sound, which has only 3 seconds of time to play, before
another sound interrupts it in the same timeline layer.
There are two separate layers of sound playing at the same
time.
All the original sounds are imported into the movie as
44.1/16bit AIFFs. They are mono files (might be another possible
issue).
I'm trying to export with quality of 128k MP3. I've been
trying different variations:
- setting the compression for the audio files in the
Library/setting movie export settings to use Library settings
- setting audio files in the Library to use "default
compression", and specifying the correct 128k MP3 setting in the
export settings
- or both of these (set individually in library, then
overridden in export settings).
I've tried with and without the "use mono" setting (both in
Library files and export settings). (This is a question for me:
what should be the correct setting for that when the original file
already is mono?)
Sometimes everything's great. I test or export the movie and
the sound is fine.
Other times I test or export the movie -- with exactly the
same audio settings as the last time when it worked -- and now get
unbearably hideous hissing/cracking instead of the correct sound.
Most dangerously -- I think but haven't quite convinced
myself -- the same flash export file may sometimes play fine, and
sometimes play with the distortion. So I'm not sure if this is an
export issue, Flash player issue, or combination of export doing
something semi-weird that the player only sometimes chokes on. A
"bad" export is distorted both in the desktop Flash player that
comes with the Flash demo, and in a browser with Flash plugin 9 r45
(OSX).
GUH!
And this is the $800 product which is little more than a
basic text editor for scripting and an animation timeline that
hasn't gotten updated functionality since 1999.This is a peer-to-peer public forum - if you demand
individual and undivided attention to your issue
then you can use the official adobe tech support.
As for your issue...let's go step by step:
[*The sounds are mostly too long for the amount of time
allotted to them in the
timeline, and cut previous sounds off. I'm speculating this
might be a possible
issue. That is, I have say a 5 second sound, which has only 3
seconds of time
to play, before another sound interrupts it in the same
timeline layer.*]
Is this intended? You are having an issue with 5 second
sounds being cut off after 3 seconds...why
not place them on different layers to avoid this? I don't
understand the workflow here.
[*There are two separate layers of sound playing at the same
time.*]
Ok - that makes more sense, so you have 2 layers both
containing sounds that cut each other off?
[*All the original sounds are imported into the movie as
44.1/16bit AIFFs. They
are mono files (might be another possible issue).*]
Mono shouldn't matter - but the quality of the original will
matter - specifically the levels, if
the overall level is originally too high (or "hot"), then
clipping will occur once compressed from
Flash (in some cases).
[Sometimes everything's great. I test or export the movie
and the sound is fine.]
Can you provide the FLA?
[Other times I test or export the movie -- with exactly the
same audio settings
as the last time when it worked -- and now get unbearably
hideous
hissing/cracking instead of the correct sound.]
Never heard of this before - need to see the FLA.
[And this is the $800 product which is little more than a
basic text editor for
scripting and an animation timeline that hasn't gotten
updated functionality
since 1999.]
You may take exception to this but it sounds very much like
user error or something beyond Flash
(like an issue with the source audio files). Your opinion is
subjective but AS3, Flash, Flex is
hardly "little more than a text editor". True the timeline
hasn't changed much over the years but
funny that it is still the king when it comes to animation
across so many mediums - why fix what
ain't broken and works so very well for so many worldwide?
Chris Georgenes
Adobe Community Expert
www.mudbubble.com
www.keyframer.com
www.howtocheatinflash.com
Mr Distortion wrote:
> Boing.
>
> These Adobe boards are not very useful with so little
traffic (how many posts
> with 0 responses?). And having such noticeably little
traffic keeps the traffic
> low -- why waste precious time posting as I have done
with such little chance
> of assistance?
>
> Solution: get Adobe support people in masquerading as
users to actually get
> questions answered, so the boards will grow in
popularity, and eventually be
> self-supporting.
> -
I purchased a GT683 on 7/16 and had to exchange it the same day. The keyboard would flex to a large degree pressing any key left of F or on the number pad. The flex was so great that keys would get stuck.
The replacement is much better, but the number 1 key (not on the keypad) has the same plus keys X and C and D to some extent. The keyboard flexes when typing, so far the keys haven't gotten stuck, but you can hear the keyboard flex, and sometimes the 1 key doesn't register.
Has anyone else experienced anything like this?
I purchased the laptop with the anticipation of doing a large amount of typing. I spent a considerable amount of time typing on the display laptop and it did not have this issue. One of the key points was I really liked the keyboard feel on the display model.Quote from: ATOMANT on 19-July-11, 02:07:08
I just bought a GX680 and most of the keys on the LH side of the keyboard are very noisy. When typing there is an audible clang whenever you press any of those keys. I am being denied any RMA or warranty from NCIX.com because they claim its "not a known issue".
Atomant: That's the same experience I'm having. The clang is caused by the keyboard flexing. This causes friction on the board. It's a very annoying sound, made even worse by the fact it's only some keys.
I use a Dvorak keyboard layout, and the AOEUI keys are all on the home row left side, so they are the most commonly typed keys.
If I discover a method to quiet the keyboard, I'll post it here. -
Re: GT683 Keyboard Flex Issue ( vibration noise)
I have a MSI GT683 and when I listen to music my keyboard makes a noise. I think it is from the bass ( the keys are vibrating ).
Does anyone have this problem?
Edited titleQuote from: ATOMANT on 19-July-11, 02:07:08
I just bought a GX680 and most of the keys on the LH side of the keyboard are very noisy. When typing there is an audible clang whenever you press any of those keys. I am being denied any RMA or warranty from NCIX.com because they claim its "not a known issue".
Atomant: That's the same experience I'm having. The clang is caused by the keyboard flexing. This causes friction on the board. It's a very annoying sound, made even worse by the fact it's only some keys.
I use a Dvorak keyboard layout, and the AOEUI keys are all on the home row left side, so they are the most commonly typed keys.
If I discover a method to quiet the keyboard, I'll post it here. -
I am in need of some quick help using Flex2. We are running a
Flex w/Coldfusion, and I have a master page (products) that opens a
detail page (product details) when you edit or double click a
product on the master page. The issue that is hindering our entire
process is, that the data shows up inconsistenly in the detail
page. Sometimes that data will show up in the detail page and
sometimes it will be blank for the same product. I used the
coldfusion wizard to set up the entire application. The weird thing
is that it works fine on my development machine, but when I moved
it to the test machine the issue started happening there. I then
installed FLEX builder on the test machine and did a build on the
test machine so that it would mimic my dev machine, however the
issue continues. ANY HELP WOULD BE GREATLY APPRECIATED!!
Thanks in advance,
AXK"dzinr38" <[email protected]> wrote in
message
news:gif80t$59p$[email protected]..
>I hope I can explain this correctly. I have a Flex
prototype in which I am
> using viewstacks. I have some components within these
viewstacks, and
> those
> components also contain viewstacks. So, if I have a
component that has 5
> viewstacks, and you click to another component, then
back to the component
> with
> 5 viewstacks, instead of going to the 1st viewstack of
that component, it
> takes
> you back where it was the last time you went to that
screen. I want to set
> it
> up so that each time you go to a viewstack it goes to
the default rather
> than
> the last screen you were on. Does anyone know how to do
this? I hope it
> makes
> sense. Thanks!
Use an event listener to listen for a change in the ViewStack
and then set
the child ViewStack index to 0.
HTH;
Amy -
A big newbie flex question.
Where do I put it all?
I've done many of the basic tutorials, I have a pretty good
idea on how
to create simple flex projects. I am now trying to design a
real,
functioning project based on one of our most important,
internal, web
applications.
I find myself a little over my head. Any help would be
greatly appreciated.
I am building what is basically a calendar of events. I'm
currently
using flash remoting to pull the event data with ColdFusion
from a
database. I will have to main 'views' to start with. One is a
full
calendar display of all the events for a month. The second is
a drill
down that will display all the details of an individual
event, with a
panel on the left displaying other events on the same date.
I've built most of the pieces of this, but I'm having trouble
putting it
together in a manageable layout. To date, I've pretty much
put
everything into a single MXML file but this is getting quite
unwieldy.
However when I try to pull pieces out into custom controls I
start
having great difficulty dealing with the data and the various
view pieces.
So, one has managed to wade through all that exposition, what
is a good
way to do this? Where do I put the data access logic. I
presume in my
root application file. But, if I do that, how do I access it
from my
various view pieces? How do I connect all the dots?peterent wrote:
> The URL is in my signature (maybe that doesn't come
through on a news reader):
>
http://weblogs.macromedia.com/pent
>
> Sorry!
Nope, no signatures in what is sent to the RSS feeds for us
newsreader
folks.
Thanks for the link. I have added it to the others I am
trying to
digest as quick as I can to get some understanding on how all
the
RPC-Flash Remoting Flex and ColdFusion stuff works. -
The ever popular newbie EQ issue
Hi all... as an experienced musician who's been dabbling in the DAW world for about a year I thought I'd share my EQ learning experience with my fellow newbies (pros, feel free to laugh! I can take it.)
Anyway, I spent many months rendering my brilliant noodlings into absolute mud through complete lack of knowledge of what all them knobs and waves meant But now I;m now getting tracks that to my ears (and people other than my mom) sounds pretty good -- sounds the way I want it -- and getting mixes that sound fairly clear, at least not totally chaotic and muddy.
As Bee Jay pointed out earlier, there is no "right" set of EQ settings that will work for every song (unless you can afford the Awesomizer!). But there's general frequency bands in which instruments (and I'm thinking of basic rock and roll instrumentation, eg Zeppelin, Sabbath, loud English-American blues) live the best, those are the bands where to begin EQing the signal.
"The Mixing Engineer's Handbook" breaks out this info pretty well, I think. It also includes helpful interviews with a lot of well-known pros, and describes how they build their mixes. The book also describes places to cut and boost for each instrument that tend to have worked in the past -- and explains why those tried and true methods work. it helps one understand why the Logic presets are the way they are. I'll use those bands as a starting point, then tweak from there, depending on the composition.
As for doing the actual EQing, I can't praise PSP Audio's MasterQ highly enough. It's a parametric EQ with a great interface (knobs for freg/Q/gain) and a nice big graphical display. What I will do, when EQing kick/snare/bass is have each channel's MasterQ instance simultaneously on my screen to ensure they're not crowding each other out. (Also highly recommend PSP's MixPressor and Vintage Warmer, and their Neon Linear Phase EQ!)
So it's not totally mysterious... you just have to arm yourself with a bit of theory and get a EQ that functions and communicates in a way that's good for you. And futzing around, a lot.I find the best tool in this respect is the analyser, plus your ears of course.
My latest remixes on Peter Gabriel"s Real World Website:
http://www.realworldremixed.com/remixer.php?remixer_id=oqkx--xChQR1ZrHX8kI. -
NEWBIE: Flex/AIR and databses
Hi all,
I'm a Director(lingo) user and use flash with actionscript
for UI in app.
I'm now playing with Flex3 to see how it compares etc.
OK, one of the things I think i'm getting confused with and
need some clarity (in not too technical terms!), is the ability to
connect to a database online(with flex) and offline(with AIR).
For example, if I have a simple database with 'name', 'age'
and 'sex', with Director I could use a simple ADO Xtra to connect
to the database and add/ammend the records. - In this example,
Director would be running as an .exe on the users PC with the
database either local or on a network. The database could be a
simple mdb (access) or sql etc.
So, is it possible to have an AIR application connecting to a
local database? and does that database have to be a specificv type?
or can it be an mdb? If so, how is this implemented?
When it's web based with flex, am i right in thinking that
flex does not actually connect to a database, but instead uses a
'third party' such as php, asp etc to do this?
As you can see, im confused!! Can someone explain in simple
terms?
Thanks everyone,
TimThe AIR player has a built-in version of SQLList. There is a
set of SQL classes in the AIR player you can use. Check out this
article on my blog:
Using
SQL with AIR - you can download the code and check out the
database classes. -
Recording Application in Flex + Web (HTTP/HTML) in LR11.52
Facing problem while parsing AMF binary code to XML.
Uploaded flex-messaging-* jar files and application related jar files.
The warning is
"It is unable to instantiate the object com.db.lrc... ..ProductClassification as the class does not have a public specifier.
Suggestion is Add default constructor to the concerned class."
[The above mentioned com.db.lrc.... ProductClassification is available in the application jars attached in Load Runner]
The error is :
java.sql.sqlException ORA01407 Cannot update the values in table to NULL.Hi,
Go to the monitor of the load, make the technical status "Red" even if it looks red by clicking on the traffic light. Go to Info package and manually start the info package, system will ask you to repeat the delta select yes. After successfully finishing the load perform all the steps in process chain manually.
Regards,
Kams -
I am in the process of finishing the tutorial for the WEb Integrator Developer for 9is and would enjoy some feeback regarding any issues with performance and/or WIDL problems.
The product that I'm currently evalutating (not 9i) for data aggregation is having trouble with dynamic form submittals and training of web pages that contain javascript inside the body tags. It also has trouble with frame based pages.
Please forward me any and all related guidance.
Thanks - daveCurrently I am evalutating software that touts the ability to extract the content from any web page and put into a XML file. I have found that it in fact has some serious issues when it comes to extracting content 1)from pages that have javascript embedded in the body tag of a document. 2)from pages that are frame based. 3)have dynamic form submittal to retrieve data ie: stock quotes.
In short, I would like information about the abilities and/or shortcomings of WebIntegrator and Service Designer. I know what's in the documentation and what the salesguy told me, but would rather hear it from someone who has actually implemented it.
In the end, my intention is to aquire data from another source, especially web content, and repurpose it for wireless applications.
So what do you know?
-d -
Hi, guys.
I just signed up a few minutes ago and I am the proud owner of an 8320 Curve, my very first Blackberry. Being new to all this, I have run in to some technical difficulties and I hope you experts can help me.
1. I downloaded a third party application (a currency trading software called Dealbook Mobile provided by gftforex.com) and successfully installed it on to my unit. The problem is, i keep getting a login failure that says "Remote Computer Error". I had been trying to fix this with their Live Help chat and everything seems to have been installed correctly including APN settings and version upgrades. Has anyone here had any experience with this application before?
* Two weeks ago, I installed the Windows Mobile version of this same software on to my Samsung SGH-i780 and it worked perfectly. I switched to Blackberry so that I could also have Bloomberg installed (it won't work on Windows Mobile), but the Blackberry version of Dealbook doesn't seem to work for some reason.
2. Another thing I noticed is that only the phone number appears when i receive incoming calls, even if the caller's mobile phone number is already in my Blackberry address book. Is there a solution for this, or this the way it really works?
3. Is there a way to synchronize the 8320 with both the Samsung SGH-i780 and the MacBook Pro? With regard to the Samsung, it is already paired with the 8320, but I am unable to beam any contact numbers in to the Blackberry. Anyone got any tips on how to fix this?
Thank you for your time and your patience.
Best regards,
JayCurrently I am evalutating software that touts the ability to extract the content from any web page and put into a XML file. I have found that it in fact has some serious issues when it comes to extracting content 1)from pages that have javascript embedded in the body tag of a document. 2)from pages that are frame based. 3)have dynamic form submittal to retrieve data ie: stock quotes.
In short, I would like information about the abilities and/or shortcomings of WebIntegrator and Service Designer. I know what's in the documentation and what the salesguy told me, but would rather hear it from someone who has actually implemented it.
In the end, my intention is to aquire data from another source, especially web content, and repurpose it for wireless applications.
So what do you know?
-d -
This is my data structure at back-end using java,
ArrayList
HashTable(keys, values);
HashTable(keys, values);
but the problem is when push the data to flex this data structure will be coverd to a instance of ArrayCollection and the HashTable covered to a Object.
HashTable is out-of-order so the order of my data in flex is different every time . I use the ArrayCollection bind to the DataList component directly, and I don't want to indicate the order of each columns of each DataList Component.How can I fix this ?
var dataSource:ArrayCollection = from Java back-end;
<mx:DataList dataProvider="{dataSource}" />
I don't want to indicate each columns like this, because I have a lot of different structure tables in SQL.
<mx:DataList dataProvider="{dataSource}" >
<mx:DataListColumns dataField="ID" />
<mx:DataListColumns dataField="Name" />
<mx:DataListColumns dataField="Age" />
<mx:DataListColumns dataField="Address" />
</mx:DataList>Can you give more details about the way you talking about ?
I'm not familiar with Java.
Thanks very much. -
Flash button controled by flex issue
In flex I can only reference the flash button by its ID property.
Most of the time I can't know its ID. I need cover it to a super class like MovieClip Instead of that.
I created the button in flash by the following steps:
design button -> cover symbol to flex component -> use it in flex
How can I fix this ?
<mx:Script>
<![CDATA[
private function clickHandler(event:MouseEvent):void
/* not work */
MovieClip(event.target).gotoAndPlay(MovieClip(event.target).currentLabel);
/* only this way can run */
query.gotoAndPlay(query.currentLabel);
]]>
</mx:Script>
<local:intergratedQueryButton id="query" click="clickHandler(event)" x="305" y="500"/>Thanks Natasha! It works well now!
在2009-07-13,_Natasha_ <[email protected]> 写道:
>Hi,
>?
>to be able to write
>MovieClip(event.target).gotoAndPlay(MovieClip(event.target).currentLabel);
>your button should be a subclass of MovieClip.
>If not MovieClip(event.target) will be null and will not work.
>?
>So you can:
>1. Don't use types and write
>event.target.gotoAndPlay(event.target.currentLabel);
>or
>event.target.gotoAndPlay(event.target["currentLabel"]);
>2. See methods of intergratedQueryButton and if it have method gotoAndPlay use it.
>intergratedQueryButton(event.target).gotoAndPlay(intergratedQueryButton(event.ta rget).currentLabel);
>You can't set two superclasses, so intergratedQueryButton can be a only a Button or a MovieClip, not both.
>
Maybe you are looking for
-
Running RHEL6.4 T420 4180-F66 I have the Dock series 3. I'm looking to have 2 23" LCD monitors with the laptop screen working at the same time. I can't get it to work i've tried 100 different ways and can't seem to find anything online except for thi
-
Hi, Can any one send me the examples for the below said transactions, what type of accounts we can use for this F-04 Post with clearing F-06 Incoming Payment F-07 Outgoing Payment F-05 Valuate Foreign currency What is the use of the below ones, Pls e
-
HANA DB User for ABAP/ Privileges on Users- Attach Debugger
Hi SAP HANA/ ABAP experts, I was trying to create an ABAP on HANA role for on HANA DB. role TestRoles::developer_role extends catalog role "ABAP_DEV", "ABAP_ADMIN" catalog sql object "_SYS_REPO"."GRANT_SCHEMA_PRIVILEGE_ON_ACTIVATED_CONTENT","_SYS_REP
-
Is it possible to setup OCS to journal / copy all mail to an additional SMTP address?
-
Pages will not open on iPad. Icon just flashes and then nothing. Numbers works great. Pages works on iPne great.