[flexcoders] google adwords in my flex app
Enterprise RIA Development with Macromedia FlexHas anyone figured out a decent way to load google adwords (preferably google image ads) into a flex app? Thanks, Jamie
[flexcoders] can i store a dynamically loaded image?
I am grabbing images from an http service at runtime and displaying them in flex: myPic.load(url); Works great, the picture loads in. But after I load it in once, I'd like to store it so I don't need to query the http again if I need the image. (I'm making a buddy list type component that shows the buddys picture, the pic has to be loaded at runtime but ideally I'd like to only grab it once and then store it in flex) I'd like to be able to do something like this: BuddyObject.pic = pic(url); and then whenever I needed it: myPic.load(BuddyObject.pic); as opposed to myPic.load(url); Any ideas? Thanks!
[flexcoders] tightening between multiple lines in a mx:text object
I'm using an embedded font in an mx:text object. When the text goes into multiple lines, there's a large amount of space between each line. Almost looks like it's double or triple spaced. Anyway I can tighten this up? Or is it a function of my embedded font? Please help! Thanks! -Jamie
[flexcoders] Error Handling on Computers with No Sound Hardware
When I have flex play a sound effect on a computer with no sound hardware I get this actionscript error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.effects.effectClasses::SoundEffectInstance/play() at mx.effects::EffectInstance/startEffect() at mx.effects::Effect/play() at MethodInfo-3348() at Function/http://adobe.com/AS3/2006/builtin::apply() at () at flash.utils::SetIntervalTimer/flash.utils:SetIntervalTimer::onTimer() at flash.utils::Timer/flash.utils:Timer::_timerDispatch() at flash.utils::Timer/flash.utils:Timer::tick() How can I handle this error for computers without sound hardware so it doesn't halt their flex app? Thanks! -Jamie
[flexcoders] can you unload an swf file from an mx:image control?
I've been loading flash movies into an mx:image control for display just fine. Problem comes when the user quits during playback. He heads out to a new state but the flash swf file and it's sound keep on playing until they're done. I've tried removeChild, .enabled = false, and other stuff, but I can't get the movie to quit midway. Will I have to load into an swfLoader instead of an mx:image control in order to kill it midway through playing? Thanks, Jamie __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] reconnecting an mx:producer component
With a mx:consumer component, I can unsubscribe() when I don't need it anymore, and subscribe() when I want it turned back on. With a mx:producer component it looks like I can use disconnect() when I don't need it anymore, but I don't see any sort of connect() function to turn it back on like I can with a consumer. Any help? Thanks. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Re: overriding Button's style sheet
Hey Jester, So I came across your blog entry at http://www.jessewarden.com/archives/2006/07/flex_chronicles_22.html about buttons being defaulted to Bold and how that messes up embedded fonts and I'm having that exact problem. Thanks so much for bloggin about it, but I'm not sure where I can access the Button's style attributes so I can overwrite them. When I put the Button{ embedFonts: true; fontWeight: normal; fontFamily: oldSkool;} in the mx:Style section of my component I get a compiler warning that says, "CSS type selectors are not supported in components." and it still doesn't work. So my question is where can I find the Button's style attributes in a file so I can overwrite them. Thanks so much, I really appreciate all you do for the flex community. Jamie __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] background discoloration when using embedded fonts
When I create a text field and use an embedded font I get a discoloration in the text field. Instead of being transparent outside of the text, it's discolored and looks bad. Often I can click on it in the Flash Player and it will go away, often times it won't. Any advice? It really looks bad. Thanks! Jamie __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] getting the height of a text object
I have my mx:Text component, myText. It has a fixed width and the height varies depending on the length of the string i load it up with. I'm trying to capture myText.height right after I load a string into it, in order to add "\n" characters to the front of shorter strings so they are centered top to bottom. Problem is the myText.height property doesn't seem to update for a while after loading in a new string. Everytime I capture it I end up getting the height of the previous string loaded in instead of the current one. I've tried validatenow() and all the other validate functions to update that .height value immediately, with no luck. Any ideas how I can capture that value? or better ways to go about centering a string of random length top to bottom? Thanks so much, Jamie __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] idiotic flex fires 2 event handlers for buttons of a substate !!!
Say I have Button 1 in my base state with click handler = "doJob1()" If I make a new state "state 2" based on the base state, and change Button 1's click handler property to "doJob2()"... all is well. Now I make a new state, "state 3" based on "state 2". I change Button 1's click handler property to "doJob3()". Now when I click the button, both doJob3() AND doJob2() get fired off!! Obviously this causes a mess that in a particular instance tonight was very difficult to debug especially considering I'd changed the click handler between states from base state to state 2 with no problems. What the heck is that crap? Thanks for wasting 3 hours of my time Flex!! __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Firefox incompatible with ExternalInterface?
I want to load a website from within my Flex application to a new browser window. When I use: var request:URLRequest = new URLRequest(url); navigateToURL(request,_blank); It works perfectly in both IE and Firefox. Problem is I need the window to pop up behind the flex app, so the flex user isn't disturbed by it. So now I'm using an ExternalInterface class to call some javascript I have in my html wrapper. In my flex: --- var f:String = goNewWin; ExternalInterface.call(f,url); In my Javascript: -- SCRIPT LANGUAGE=JavaScript function goNewWin(url) { var TheNewWin=window.open(url,'TheNewpop','toolbar=1,location=1,directories=1,st atus=1,menubar=1,scrollbars=1,resizable=1'); TheNewWin.blur(); //this function sends the new window to the background } /SCRIPT --- This works perfectly in IE for all links. Unfortunately, in Firefox there are problems. Some webpages pop up and stay in the background, others pop up in front. All of them cause my Flex App to pseudo-crash, my backend can still hear messages from it, but the client-side loses all ability to receive messages back, as well as most intra-component event listening. In short, the externalInterface call crashes my App when its running in Firefox. Any ideas? Thanks so much. Jamie Clouser -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] how can i display a background image in Eclipse Flex Builder?
I embedded an swf file to be used as my background image. It works just fine. But it doesn't show up when I'm designing in Eclipse Flex Builder. A solid blue background shows up instead This is making things difficult. It used to show up, but since I changed the image it won't anymore. I really need to see it while designing. Any suggestions? It'd be nice if I could see other embedded images in the Eclipse design software as well. Thanks a lot. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Very few sound files import properly
Title: Enterprise RIA Development with Macromedia Flex Has anyone had an issue with very few sound files importing properly into flex/flash player? 20kbps, 11khz wav files (though they say they are mp3s under properties) seem to work. A few higher quality mp3s seem to work. But 95% of other files either cut off, distort, or in most cases don't play at all. I can't find any settings in Windows Sound Recorder that work for re-encoding them. I'm importing them in this fashion: mx:SoundEffect id="loudtickSound" target="{this}" complete="handleSoundLoaded()" source=http://myurl.com/honk_x.wav autoLoad="true" useDuration="false"/ and then playing them: loudtickSound.play(); Thanks for any help. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: Very few sound files import properly
Ok so I'm first using Windows Sound Recorder to convert all files to a high quality PCM (something AudioCatalyst can handle) and then using AudioCatalyst to convert into mp3s of various quality rates that Flex seems to be able to handle. Acceptable... but I'm still confused why flex can't handle native PCM wav files. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] has anyone ever disabled selectability for a textArea??
I'm sorry to be a bother but this seems like it should be so easy but its driving me nuts. I want to get rid of selectability/i-beam mouseover cursor on a textArea field. With a Text component, you just set. myText.selectability = false. How do I do it for a textArea field? Can it be done? I want to use textArea instead of text becauseI need a background. Please help!!! Thanks so much. Jamie MKCNSC, inc. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] disable I-beam in textArea, this should be an EASY ONE!
I have textAreas that I don't want to be selectable/display an I-beam on mouseOver. For the life of me I can't figure out how to get rid of the i-beam on the mouseover over a textArea. textArea doesn't have a 'selectable' attribute the way text does. Any quick help? Thanks so much. Jamie MKCNSC, inc. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] beta3 embedded font issue.... No FontManager provided error
I've been trying to embed a font with Beta 3 so I can do fade effects on it. I searched the archives and saw I needed to change my flex-config file to flash.fonts rather than macromedia.fonts for the FontManager. I made the changes to the config file but the error with "No FontManager provided" remains. My code for embedding in the AS... -- Embed(systemFont='Arial', fontName='arial', mimeType='application/x-font')]private var arial:Class; and then in the mxml... mx:TextArea id="seat0txt" fontFamily="arial" fontSize="10" wordWrap="true" editable="false" backgroundColor="#c0c0c0" backgroundAlpha="0.36" cornerRadius="11" textAlign="center" x="399" y="187" dropShadowEnabled="true" height="57" width="118" hideEffect="{fadeOut}"/ My 3 compiler problems --- exception during transcoding: No FontManager provided. Cannot build font. unable to build font 'arial' Unable to transcode {mimeType=application/x-font, exportSymbol=components.ChatPanel_arial, systemFont=Arial, _file=components/ChatPanel-generated.as, fontName=arial, _column=5, _line=340}.ChatPanel.mxml The relevant part of my flex config file --- managersmanager-classflash.fonts.JREFontManager/manager-class manager-classflash.fonts.BatikFontManager/manager-class/managers -- Any hints??? Thanks so much!! Jamie MKCNSC, inc. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___