Flex pops issues
Hi all.
Excuse me if this has already been discussed in length but are there any issues with pos when using flex?
I was working on two vocal tracks- the lead vocal and a doubled take. The files ran the length of the track and I had time corrected quit a few things using flex. Next I ran one of the vocals out to my hardware compressor and back into another track in Logic.
I noticed some popping here and there.
At first I figured my soundcard was playing up and started fooling around with settings, updating to latest drivers and firmware (all good things to do).
Eventually after some various experiments decided the problem lay in the computer itself.
I decided to try the 'bounce regions in place' (offline) and found the pops in the resulting audio file!
Are there limits as to how many flex points one can use or how long the file can be??
I really would like to resolve this as the flex tool could be great, but it would be useless to me if it's going to introduce artifacts into my audio WHERE THERE WAS SILENCE in the original file.
Anyone had similar issues?
Cheers
Select the Audio region and open the *Sample Editor* ..click on the *Transient Editing Mode* Button next to View .Has the Transient Detection placed the transient markers correctly?(use the Metronome)
If not you can Re- *Detect Transients* (Audio File>Detect Transients) or delete the ones that are not needed with the Eraser tool or adjust the Transients Detection Sensitivity with the +/- Buttons.
Also which Flex Mode are you using?
Is the Lead Vocal and the rest of the audio files Dry?
A
Similar Messages
-
Hello everyone. I have the following problem.
In my application I have several modules and each of them have components CollapsableTitleWindow (extends Panel). After opening the window it is added to the container which is in the main application (CollapsableTitleWindowContainer). In these windows you can open another window (and so on).
Now, what is the problem. When I change (reload) any module and I want to open a new window (sub window) with the already loaded window I get this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.containers::Panel/layoutChrome()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\containers\Panel.as:1405]
at com::CollapsableTitleWindow/layoutChrome()[D:\Flex 3 Workspace\WesobCrm\src\com\CollapsableTitleWindow.as:216]
at mx.core::Container/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Container.as:2867] (...)
Indicates that the main applications have object Panel
Please help.
P.S. I found a similar problem on http://www.nabble.com/Flex-Module-issue-with-Panel-td20168053.html
ADDED: I extendes the Panel class and do something like that:
override protected function layoutChrome(unscaledWidth:Number, unscaledHeight:Number):void
use namespace mx_internal;
if(!(mx_internal::titleBarBackground is TitleBackground)) {
mx_internal::titleBarBackground = new TitleBackground();
super.layoutChrome(unscaledWidth, unscaledHeight);
But now i had something like that: Before After
You can see that it loos style declaration.HThanks for the anserw.
I don't exacly understand all but i found a solution for my problem and it works.
Could you tell me if this is ok ?
I Add in my main app
public function getProductWindow():ProductWindow {
return new ProductWindow();
And in the module i change
From var productWindow:ProductWindow = new ProductWindow();
To var productWindow:ProductWindow = Application.application.getProductWindow(); -
Audigy SE newest update 2/16/07 made my crackling/pop issue wo
im starting to have little faith in that creative is going to be able to fix all these problems with vista and their sound cards. the new driver update that came out yesterday made the crackling/pop issue worse, guess im gonna have to install the older drivers again and just wait for the next update.. sigh
It says above 2 relevant and 1 correct answere available .............
I'm new here so could anyone direct me to these answeres? -
hi
By using an mvc architecture ,is it possible to overcome Flex performance issues...???
Thanks
Saritha SExcuse me ? If you develop a large scale application, you had better use a MVC architectural framework (with or without dependency injection) and additional design patterns like the presentation model. Otherwise, you will end up with code complexity as you try to overcome the inevitable structural problems as the application grows and THIS will end up in performance degradation.
- Run the profiler to identify bottlenecks and memory leaks: number of instances of a given class, execution time of methods, memory usage … E.g item renderers
- How much data is loaded, processed and displayed at any one time can have a big impact on performance. Reduce the amount of data: paging via parameter to the service
- Reduce the layout complexity: remove containers so nestLevel <= 4
- Remove event listeners: addEventListener () calls with corresponding removeEventListener() calls (do not use addEventListener() with weak reference as it decreases performance)
- Deferred instantiation of UIComponents (e.g Viewstack children) aka lazy instantiation
- Garbage collection: check Grant Skinner’s checklist
- Interrupted execution of complex functions (especially when looping on a large data set): the function monitors its execution time and yields (returns) when the current call exceeds a given duration (usually, that of a frame at 24 fps, which is the default Flex framerate). It is called again on the next frame and so on and so forth until processing is complete. You can use callLater() for that.
- Lazy loading of data
- Use more efficient code. Favour re-use of existing code in the Flex framework rather than re-writing what exists. Favour simple solutions over complex ones when possible.
- UID getter/setter in DTOs for improved performance in sorting / filtering of Array Collections
- Too many data bindings decrease performance. Mainly use data binding to bind views to the presentation models. Use the ChangeWatcher class or direct assignment of values when possible.
- Limit the number of calls to setStyle(). Use style declarations in CSS when possible. -
Crackle-pop issue. Seems to be due to raid control
Hi. I have the crackle/pop issue widely mentioned. However the weird thing is that it just "started" one day. I have had my onboard (sil 34) raid5 controller running the whole time I have had my X-fi yet they haven't had any conflicts until recently. This may be because my harddri'ves are being used a lot now than before (my computer is a media server and gets read/write requests 24/7). Currently I have 3 harddri'ves installed into the raid controller, I added a 4th and I got the problem where either the X-fi would work (perfectly) and the raid5 controller wouldnt show up, or they would both show up and the X-fi wouldnt play any media at all. I have tried swapping the X-fi to different pci slots but it does not help.
Currently I have only minor crackle/pops when playing music (every -2 sec or so). If I add a 4th harddri've to my raid controller then the X-fi refuses to play or just plays a constant stream of noise.
Here are screenshots of the PCI bus of each and IRQs:
http://blood-pack.org/ao/xfi.PNG
http://blood-pack.org/ao/xfi2.PNG
http://blood-pack.org/ao/xfi3.PNG
Things I've tried:
Reinstalling motherboard/xfi drivers
Swapping pci slots
Unplugging the floppy cable to the X-fi
Different PSU
I HAVENT tried flashing the bios as the current bios I am using (702-bta) is the only one that will allow my ballistix ram to run @ 250mhz (stock for my set).
Systems specs:
4800+ X2, 2xGB Ballistix z503 (250 mhz), X900 XTX, DFI NF4 SLi, 3 harddri'ves in raid5 on the silicon image raid controller, 3 harddri'ves on the nvidia sata controller (no raid)
Hope you can help, thanks.Follow up: If I stop all read/writes to the raid5 array then I do not get the pop/cracle issue. However this is not practical for me, any ideas?
-
10.4.10 Audio Popping Issues: Information Check with Internal Speakers
For people with internal speakers, or those without subwoofers: Please read all the way to the bottom to find a test that will determine whether you are also having audio problems, even if you can't hear pops.
We've had a lot of discussion about audio popping due to 10.4.10, and the evidence indicates that the audio circuitry is going to sleep to conserve power, even on AC-only computers like the iMac, Mac Mini, and (at least one) Mac Pro. Some people claim to not have this problem, but I'm wondering if they just aren't noticing it.
Having external speakers with a subwoofer, set to high amplification, are key to obvious detection of the problem. Let the sound subsystem go idle for 30+ seconds (wait a minute with no audio, just to be safe), turn up your external speakers really loud, and cause the computer to make a sound. You should hear a burst before the sound plays. If you repeat the sound, you won't hear the burst. This is the sound of the audio circuitry powering on, and the speakers are amplifying it.
About 30 seconds after the sound finishes playing, if you leave the volume of your speakers turned way up, you should hear a "pop" as the circuitry is powered off. Then, playing another sound will recreate the burst.
I haven't been able to hear these sounds with internal speakers, either on the Mini or iMac. But the problem still exists, and it is detectable... if you know what you are looking for.
The burst of the audio circuitry turning on also causes a delay in the audio. The delay is a noticeable fraction of a second, an it can easily be detected if you have a repeatable source of sound. I like Terminal.app, because I use that application all day, every day. Here is how you can check to see if you are also subject to the audio problems:
1. Start Terminal.app (in the /Applications/Utilities directory).
2. Wait one minute for the audio circuitry to shut down.
3. Without typing anything else, very quickly strike and release the Backspace key.
4. If you pressed the key all the way, the program should have caused a beep. However, if the audio circuitry goes to sleep, the beep should occur after you have moved your hand off the key. This is because the circuitry takes time to power itself on before playing the sound.
5. Now, quickly strike the Backspace key again. You should notice that the sound is produced immediately as you hit the key, without the delay you just witnessed.
6. Strike the Backspace key repeatedly, to confirm that there is no audio delay. Do this about once every second or two. If you press the key too rapidly, not all of the presses will produce sounds... this behavior is not related to the issue we are testing.
7. Wait another minute for the audio circuitry to shut down, and strike the Backspace key once more. You should again observe a delay between your strike and the sound production.
If you witness delays like this, your audio circuitry is also going to sleep, and you are having the same audio problems as the rest of us. However, either because you are using internal speakers, or because your external speakers don't have the appropriate response, you aren't hearing the same bursts and pops as the rest of us.
Please try this test, and report here. I want to build a list of people who previously couldn't hear the sounds, but still have the delay. This might give us a better picture of the scope of the problem.Re: 10.4.10 Audio Popping Issues: Information Check with Internal Speakers
Your analysis of what is happening is right on.
The problem on my Intel Mac mini with external Klipsch speakers (two mid-range/high and a subwoofer) is REAL obvious as the system emits a hum like a Spinal Tap amplifier turned up to #11 when 10.4.10 powers down the audio circuitry
Then, if I play a song in iTunes, it first pops and the hum disappears right before playing.
Quite annoying.
Here's what I sent to Apple tech support:
Guys/Gals (OS X Engineers):
Concerning the Snap, Crackle Pop Audio problem in the 10.4.10 update:
Please. Just do the right thing and fix the audio.
There is no need to power cycle the audio subsystem to save .0005 amps on your laptops.
And then to make your Mac mini/iMac/other desktop users have to put up with it when using AC power is ridiculous.
Put the audio subsystem back like it was in 10.4.9 and let the laptop battery freaks looking for mini-amp savings get a "work-a-round".
Crikey!
Mac Mini 1.83 Ghz Intel Core Duo 1GB RAM Mac OS X (10.4.9) 20 Years of Microsoft-Induced Grey Hair -
Crackle/Pop issues discussion thr
This is the continuation of the Follow-up: Crackle/Pop issues thread. If you are experiencing crackle/pop issues, feel free to post them here.Message Edited by KokChoy-CL on <span class='local-date'> 0-0-2008<span class='local-time'> 0: AM
Excalibur2008,
It occurs to me that your latest symptom might well be SOD ("Squeal of Death" that is) type 2. That's where something illegal happens on the PCI bus which confuses and consequently hangs the SBX-Fi's PCI interface. If playback is acti've, evidently there is a small buffer between the transfer engine and the playback portion which stops getting new data, which the playback portion then starts playing repeatedly. To this point I've only heard the resulting sound described as a loud squeal, and the buffer only described as "small."? The buffer size would tend to determine the frequency of the tone, so note that 2kHz is 4 samples at 48kHz or 8 samples at 96kHz, and it's likely the buffer is one of those two sizes if that's what this is. 2kHz would be hard for some people to hear, but probably quite obnoxious for those who do. Typically, the waveforms in the left and right channels are similar but not identical, and we would expect such a squeal to usually be similar but not identical in both channels, which is the case in your recording. The loudness of the squeal would be expected to depend on exactly what was being played when the hang occured, so sometimes the squeal would be expected to be louder than others. Your recording doesn't show the same 4 sample values being repeated, but there's additional variability which I'd guess is noise from the ADC being mixed in by the playback engine.
It is a characteristic of SOD type 2 that switching modes can stop it. This makes sense because it's only a portion of the SBX-Fi that has gotten hung, and it's evidently still possible to use the PCI bus to send it commands. Mode switches probably involve instructing the card to reset in a way that stops the playback portion, and may also reinitialize the transfer engine.
(SOD type is where the entire PCI bus gets hung while the card is playing, which quickly freezes the entire system, requiring a system reset to recover from.)
If your overclocking is speeding up the PCI bus clock, you're probably just pushing the SBX-Fi beyond its design limits. A soundcard design could easily be more sensiti've to this than other kinds of devices because it is designed to operate at a precise frequency.
SOD is a hardware issue. Exactly what the card is doing may well influence when/whether it gets triggered, so driver variations might have a slight effect, but they're not the reason for it. Typically it's neither the soundcard nor its software which are at fault.
-Dave
[email protected] -
X-Fi Titanium PCI-Express: Are there Cracking & Popping issues with Battlefield 2 & 214
Ok, now Creative came out with X-Fi Titanium PCI-Express, which supposedly should fix the cracking and popping issues with Battlefield 2 and Battlefield 232 since Creative technical support said the probelm with X-Fi and Battlefield series lied in PCI bus. Now the new audio card is using PCI-E bus. So does anyone with X-Fi Titanium still hearing the cracking and popping sounds when artillery fires?
RB30, Do you also have the problem with your onboard audio?
I can only give you my experience and that is that the new titanium works in my set up and I do not have any popping issues in BF242. There are lots of hassles installing the drivers as detailed in other posts. Plus they treat the drivers like they are the crown jewels and do not have them for download on the web site.
The sound seems to be better than my onboard audio. Objects closer seem close and objects far away seem far away. I had an XtremeMusic card but I took it out since a problem always seemed to develop.
I did not see any noticable increase in performance but that may be due to the fact that the performance in my system seems to be video card limited and not cpu limited.
The EAX simulated 3D sound is excellent in BF242.
Here are my system specs. I could not tell if you have Vista 64 or 32. My system is 64 and it works.
Asus Striker Extreme 680i SLI Motherboard
Intel QX6800
Mushkin XP2 8500 4x2GB
WD Raptor 50 GB SATA 0,000 RPM
Hitachi 320 GB SATA II 7200 RPM
Two nVidia 8800GTS 640 MB in sli (underclocked)
Creative X-Fi Titanium Fatalty
Thermaltake Toughpower 850W
Thermaltake V CPU Cooling Fan
Coolermaster Ammo-533 Gaming Tower
Vista Ultimate 64 SP -
Snap crackle pop issue....fixed - audigy 2 plat/
My first post, Hope the title doesn't mislead/anger anyone, but i truly believe these solutions
are uni'versal and can be applied with just about everyone.
My card is almost 5 years old now or so... I've seen the frustration on this board about this
nasty issue.... i felt SO bad for some of you guys that i just had to sign up and share my
knowledge (or lack of!) for the multiple, possible 'fixes' to this. its not entirely CREATIVE's
fault and there is ways to fix it, you just need a bit of Patience and the willingness to learn
a bit more about your hardware if you arent too savy with tweaking it. this might of all been
said before, but i really hope this helps some of you.
Lets get the blahblahblah's outta the way just to be safe, shall we? Obviously, make sure your
card isn't sharing an IRQ with a cd/dvd device, or any kind of hardware that transfers a lot of
data constantly or uses a lot of power like a hard-dri've, maybe even certain gpu's. In my case,
my bottom PCI-slot (3/3) only shares an irq with a USB port and as corny as it sounds it did
improve the issue (i disabled that USB, but that isn't necessary its overkill/fail-safe
precaution, probably doesn't even help at all, paranoia setting). download Si-Software Sandra to
see exactly what belongs to where and what irq is being shared with what. Also before i forget,
clean out your dri'ves with bleach/acid/napalm with a program such as Drivercleaner, just to be
safe, right?
If you have anything on your Motherboard that's VIA/raid related, its imperati've you upgrade the
drivers for it, it could very well be your single solution, for example the latest via_hyperion
pro_v5a.zip did it for me and my particular setup just recently after a small hardware upgrade.
this fixed the MAJORITY of the pops in several different machines with these motherboards as well
i might add. Also make sure the Cable is newer than 2 years old, dirty worn cables can
cripple/weird out any piece of hardware, that goes for HD's, CD roms, ...anything that uses
IDE/serial cables etc. lots of people toss their dvd/cd roms out thinking they've used its
life-span, when a brand new ide cable is all it really needed. but... this VIA/raid driver
problem seems to be a pretty common fix in my experiences.
Gamers who suffer from "sudden" or "random" pops here and there while gaming......... with time
will notice this occurs usually when the HD is seeking a lot of info and is under a decent amount
of stress, OBLIVION is a good example of the HD being as important as ram/cpu/gpu IMO. that's
why....... "it seems to do it more (pops/cracks) with certain games than others". ACOUSTIC
MANAGEMENT is Often to blame for this in My opinion, and some maxtor dri'ves come with this
enabled from the factory (why, why why?!! ...die die die!!!). Imagine setting the In-game HD
cache setting Tweak for obilivion enabled to , + Acoustic managementenabled....it turns
preformance into a bloody mess, and will (possibly, most likely?) crack annoyingly often whenever
a new area is being loaded and sufficient data is being called, not to mention make a less
experienced gamer think his machine is completely screwed for no reason. Acousitc Mangemtn
enabled on a hard-dri've can be suicidal for certain games and will almost guarantee preformance
issues, cracks, burns, bruises, broken bones, stab wounds.....and most likely the lovely POPS...
the nasty loud firecracker ones...it can be so bad to the point where many of us will not even
play anymore out of frustration, especially for you audiophiles... leaving us angry and desperate
for a fix. Acoustic management CRIPPLES performance and destroys seek-time, that i AM sure of,
so fix it anyway for your own good, unless you don't care for performance. Please, get rid of
this nasty, possibly/commonly built in feature that turns a 7200rpm dri've into a 5400rpm (ouch),
make SURE this is disabled for you maxtor/seagate HD owners who play games or just want better
performance period. You'll have to google those instructions, I wouldnt dare say more.
On a separate machine, "tad in" and "cd audio" had to be muted to stop a lot of it, as well as EAX
effects (i know you love eax, but its worth the sacrifice) slider turned DOWN to 0% even when disabled.
this may not be necessary for everyone, but a lot of us suffer from those soft "echoey crackles"
and its a quick fix. im sure you've all read this "solution" 5 billion times, but it doesnt hurt
to put it out there. that, or dxdiag or control panel audio properties the slider to Standard acceleration, better to lose eax IMO.
there is no support or guarantee with this patch, and it supposedly doesn't support/work properly
with XP Servicepack 2, however this worked on my dads machine and a friends' as well. GOOGLE
"down vlatency", (not "download" vlatency) and click on the "georgebreese.com" link and try his
vlatency_v020_beta2.exe. this simply overrides some BIOS settings that many of us cant access
easily or at all, and boosts IDE latency and on a lot of different PC setups and gives more
juice to the PCI bus by editing how much the CPU will control the pci bus for, or something like
that. point is, its a redbull for your PC's pci related bandwidth/juice management and it cant
hurt to try (lets hope not j/k).
i don't recommend messing with IRQ assignments in bios or pci latency utilities unless you really
know what you're doing and consider yourself a power user, just a personal opinion, 32 is fine
and a lot of people end up regretting messing with these settings.
there is also the "turbo off" setting (think there's a "patch" for that registry setting too),
but i seriously doubt it will resolve a users problem who suffers Heavily from this syndrome, but
i guess you could try it.
Last but not least, another "ghetto" fix that could improve your issue is killing your CMSS
feature. i have no idea why that setting always acts up (at least for my machine it does) and
causes rice crispies to go off.
Its 2am on a Friday, I've been writing for a while, and i really don't know if i was clear enough
with what i said, but no way im going back to read/correct cause ill be here forever. if you've all tried this before with no luck, sorry. i'm just trying to help if
i can, and if 2 single words out of this post can even spark an idea to help fix somebodies rig, its worth it, right?
Remember to never trust anyone with anything (especially advice) or put your hopes and dreams
into a randomer's advice (such as mine!), keep in mind I'm just an average guy with no
qualifications or credentials that could be wrong about EVERY single thing i just said, i could
be completely out of my mind for all we know, listening to me could very well make your PC
explode and set your house on fire....be warned!! haha that's my surgeon generals warning for ya. GOOD NIGHT and good luck!Here's the link to the download:
http://www.apple.com/support/downloads/audioupdate2007001.html
Mac Pro 3.0 Mac OS X (10.4.10) 4GB RAM -
Flex 3 Issues - case noise, heat, fan
Just got the Flex 3 15.6" (i7, 1 TB HDD + 8 GB SSD), and I am noticing a few issues: 1) When I push down with a finger on the base underneath the hard drive area, it gives in and makes a clicking noise (the case, not the hard drive). Kind of annoying, especially since I hear it sometimes when I pick up the laptop depending on where I hold it.
2) It runs rather hot. I feel the heat on my leg pretty quickly.
3) The fan is often noticeable, staying on quite a bit and loud enough to hear (but not loud).I think it is defective. You need to apply for a guarantee or to open the case and check everything. But if you do it yourself, then maybe you can lose the guarantee.
-
Flex incompatibility issue with SDK 3.5.0.12683 and IE6
Anyone have experience with issues for IE6 and Flex SDK 3.5.0.12683?
As a secondary issue, does anyone know of a way to force a browser cache refresh?
thanks
SimonAdd a random number as a parameter to the url.
Something like:
url = url + "?t=" + new Date().time; -
hI,
I need to build UI using ADobe flex that will connect BPM system. I have concurrent 500 users. Is this is feasible to develop application(UI) using Flex for such kind of application.
Thanks,
VikashHello Victor,
We are using Flex at Taleo for an application that can have much more than 1,000 concurrent users. You just need to make sure that your architecture can scale horizontally and vertically. Flex isn't the best here, we also do have performance issues. If speed is your primary target, I suggests you to go pure HTML (5) and Javascript (jQuery, Dojo, etc.)
Good luck.
Nicolas Boulet-Lavoie
Développeur logiciel
Software Developer
T. 418.524.5665 x 1454
F: 418.524.8899
C. [email protected]
Ce courriel et toute pièce jointe peuvent contenir des renseignements confidentiels, particuliers ou protégés pour l'usage exclusif du destinataire du message original. Toute révision, copie ou distribution du présent courriel (ou de toute pièce jointe) par autrui est formellement interdite. Si vous n'êtes pas le destinataire prévu, veuillez retourner immédiatement le courriel à l'expéditeur et effacer définitivement l'original, les copies et les pièces jointes.
This email and any attachments thereto may contain private, confidential, and privileged material for the sole use of the intended recipient named in the original email to which this message was attached. Any review, copying, or distribution of this email (or any attachments thereto) by others is strictly prohibited. If you are not the intended recipient, please return this email to the sender immediately and permanently delete the original and any copies of this email and any attachments thereto. -
Flex License Issue.....?
HI All
We are testing the application using qtp. When we are testing the application we are getting flex license error after recording 30 test cases..
I developed my application using sdk version 3.2.0 and i implemented license information in the pom.xml.. I Included the automated.swc related stuff also ..
Can any one tell me as early as possible solution for this issue?
Thanks
Ram..Hi,
The Flex 2 serial numbers do not unlock beta 3, however we
did make sure that beta 3 would not timeout before we release the
final version. This may be heresy from Adobe but if you purchased
FB 2 in the last few days simply because of FB 3 you might consider
returning it and waiting until the release so you don't have pay
the upgrade fee (not that it's too bad). The Beta will last you
until then. If however you did intend to use the charting
components and want those unlocked for beta 3, keep your FB 2 and
mail me offlist at mchotin AT adobe DOT com with your FB2 charting
serial and I can help you out.
Matt -
Hi,
I am using Flex Grid in my project where i am successfully able to populate xml data dynamically. what i am doing here, I am dynamically generating the xml using httpservice. This HttpService is returning an XmlList that i am using to bind the grid dynamically.
Here i am not fixing the column header text and column width as in future the number of cloumns can be increased so i can't fix the column header text and column width.
Here the issue is: how to remove " _x0020_" from the header text and how to fix column width dynamically using Action Script.
For better idea please refer the screen shot as attached along with post.
Please have a look on the code as pasted below:
<?xml version="1.0" encoding="utf-8"?><mx:Canvas
xmlns:mx="http://www.adobe.com/2006/mxml" width="862" height="580"><mx:TitleWindow
x="182" y="113" width="670" height="395" layout="vertical" title="
Top Presenters" fontSize="12"horizontalAlign="
center" verticalAlign="top" showCloseButton="true" close="CloseGridWindow()" verticalScrollPolicy="
off" borderColor="#000000"horizontalScrollPolicy="
off" borderThicknessLeft="3"borderThicknessRight="
3" borderThicknessBottom="3" creationComplete="GetTopPresentersXMLData()" backgroundColor="
#FFFFFF" cornerRadius="
0" color="#FFFFFF" >
<mx:Script><![CDATA[
import mx.controls.dataGridClasses.DataGridColumn;
import mx.collections.XMLListCollection;
import mx.managers.PopUpManager;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.http.HTTPService;
import mx.events.FlexEvent;
import mx.controls.Alert;
//funtion to get Top Presenters xml data
private function GetTopPresentersXMLData():void{
var httpService:HTTPService = new HTTPService();httpService.url =
"http://ri/CItSL/Ters.aspx?mode=all&month=march&year=2009";httpService.resultFormat =
"e4x";httpService.addEventListener(ResultEvent.RESULT, onResultHttpService);
httpService.send();
Bindable]
private var _xmlData:XMLList;
//funtion to receive Http Service Response as XML Document
private function onResultHttpService(e:ResultEvent):void{
var xmlData:XMLList = e.result.Table;myGrid.dataProvider = xmlData;
for each (var node:XML in xmlData[0].children()){
addDataGridColumn(node.name());
//function to add column dynamically
private function addDataGridColumn(dataField:String):void{
//var spacePattern:RegExp=/_x0020_/g;
//var andPattern:RegExp=/_x0026_/g;
//dataField=dataField.replace(spacePattern," ");
//dataField=dataField.replace(andPattern,"&");
var dgc:DataGridColumn=new DataGridColumn(dataField);
var cols:Array=myGrid.columns;cols.push(dgc);
myGrid.columns=cols;
myGrid.validateNow();
//funtion to remove grid window
private function CloseGridWindow():void{
PopUpManager.removePopUp(
this);}
]]>
</mx:Script>
<mx:DataGrid id="myGrid" alternatingItemColors="[#A2F4EF, #EFDE7D]" x="0" y="0" sortableColumns="false" width="658" height="352" fontSize="10" verticalAlign="middle" editable="false" enabled="true" horizontalGridLineColor="#befcc4" color="#000000">
</mx:DataGrid>
</mx:TitleWindow>
Please let me know, If anyone knows the solution.Hi,
You can follow the below mentioned code and see if this works for you.
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="onComplete();">
<mx:Script>
<![CDATA[
// imports:
import mx.events.FlexEvent;
import mx.core.UIComponent;
import mx.controls.dataGridClasses.DataGridColumn;
import mx.controls.Text;
import mx.utils.ObjectUtil;
import mx.controls.Label;
import mx.collections.ArrayCollection;
// data provider:
[Bindable] private var dp:ArrayCollection = new ArrayCollection();
private function onComplete():void {
// populate data provider here
// to avoid calcMaxLengths execution when the app is created:
dp = new ArrayCollection(
{ col1: "Short", col2: "Other column 1" },
{ col1: "Some long string", col2: "Other column 2" },
{ col1: "Short", col2: "Other column 3" },
{ col1: "Short", col2: "Other column 4" },
{ col1: "The longest value in this column", col2: "Other column 5" },
{ col1: "Short", col2: "Other column 6" },
{ col1: "Short", col2: "Other column 7" }
// this is going to be executed whenever the data provider changes:
[Bindable("dataChange")]
private function calcMaxLengths(input:ArrayCollection):ArrayCollection {
// if there are items in the DP:
if ( input.length > 0 ) {
// and no SPECIAL child exists:
if ( getChildByName("$someTempUICToRemoveAfterFinished") == null ) {
// create new SPECIAL child
// this is required to call measureText
// if you use custom data grid item renderer
// then create instance of it instead of UIComponent:
var uic:UIComponent = new UIComponent();
// do not show and do not mess with the sizes:
uic.includeInLayout = false;
uic.visible = false;
// name it to leverage get getChildByName method:
uic.name = "$someTempUICToRemoveAfterFinished";
// add event listener:
uic.addEventListener(FlexEvent.CREATION_COMPLETE, onTempUICCreated);
// add to parent:
addChild(uic);
// return an input:
return input;
// called when SPECIAL child is created:
private function onTempUICCreated(event:FlexEvent):void {
// keep the ref to the SPECIAL child:
var renderer:UIComponent = UIComponent(event.target);
// output - this will contain max size for each column:
var maxLengths:Object = {};
// temp variables:
var key:String = "";
var i:int=0;
// for each item in the DP:
for ( i=0; i<dp.length; i++ ) {
var o:Object = dp.getItemAt(i);
// for each key in the DP row:
for ( key in o ) {
// if the output doesn't have current key yet create it and set to 0:
if ( !maxLengths.hasOwnProperty(key) ) {
maxLengths[key] = 0;
// check if it's simple object (may cause unexpected issues for Boolean):
if ( ObjectUtil.isSimple(o[key]) ) {
// measure the text:
var cellMetrics:TextLineMetrics = renderer.measureText(o[key]+"");
// and if the width is greater than longest found up to now:
if ( cellMetrics.width > maxLengths[key] ) {
// set it as the longest one:
maxLengths[key] = cellMetrics.width;
// apply column sizes:
for ( key in maxLengths ) {
for ( i=0; i<dg.columnCount; i++ ) {
// if the column actually exists:
if ( DataGridColumn(dg.columns[i]).dataField == key ) {
// set size + some constant margin
DataGridColumn(dg.columns[i]).width = Number(maxLengths[key]) + 12;
// cleanup:
removeChild(getChildByName("$someTempUICToRemoveAfterFinished"));
]]>
</mx:Script>
<mx:DataGrid id="dg" horizontalScrollPolicy="on" dataProvider="{calcMaxLengths(dp)}" width="400">
<mx:columns>
<mx:DataGridColumn dataField="col1" width="40" />
<mx:DataGridColumn dataField="col2" width="100" />
</mx:columns>
</mx:DataGrid>
</mx:WindowedApplication>
Regards -
Hi All,
I am facing one issue reagrding flex automation.with the trial version of flex builder,is it possible to have all the classes related automation?
when I am trying to use mx.aumation package lots of classes are missing.Can anybody guide me as to how to achieve this?
Regards,
MarutiMay I know what you mean exactly by "Flash Builder Standard Version - 4.0 plugin" + Premium License.
Have you entered Flash builder premium license key in the screen that asks for serial number? If so, it will be Flash Builder Premium version 4.0 and not Standard version any more.
If so, automation should work without any issue.
To check whether premium features are enabled for your version of Flash Builder, please open "Network Monitor" using Window > Show View and see if it is enabled.
If it is disabled, it shows a message that premium license is required.
Please confirm.
Thanks,
Deeptika
Maybe you are looking for
-
How to restrict pdf printing on a condition
Hello, We generate the pdf and distribute it to the user immediately. I've a business requirement to allow the user to print the pdf a maximum of 3 times. I was able to add the javascript to the pdf to make a webservice call that would keep a track o
-
In system preferences, my security icon is no longer appearing! I am logged into my macbook pro and everything else works but no security icon! Anyone know how to fix this? Thanks.
-
White row numbers in rowheader when scrolling
I'm using a JTable as a row header in a JScrollPane. When i scroll the data table, header table scrolls but row numbers looks bad repainted white squares. I found some posts talking about this issue but I didn't find the answer, could anyone tell me
-
How can I remove the HDD password?
Did anyone know how I must reset the Toshiba 2.5" SATA or IDE password? Or how I can use a password protected HDD?
-
Help. Finding my Tecra laptop Model
Hello. I wanted to upgrade my laptop to 2gb Ram but i don't know what i the model i have in order to upgrade. When i look at the back of the laptop it said : Tecra A4 Model No. PTA40E-01400EFR. Serial Number 350243230. i have 512Mb of Ram and 60gb of