[flexcoders] System Capabilities
I'm doing some processor intensive flash stuff and I wonder if anything in the flash system capabilities class will allow me to get the actual CPU Speed or something comparable? It would be nice if I could turn off some of the effects if the clients machine sucks etc. Thanks, Patrick
[flexcoders] Simple Question about HTTP service - local and remot files pleaase
Hi, I am doing local development and I wonder if i can just leave the url the filename (just checking before i post to the live server) mx:HTTPService id=ht1 resultFormat=text result=output(); fault=Alert.show('Could not load url');/ ht1.url = _url; ht1.send(); or does it have to be full path like http:// etc... Thanks, Patrick
[flexcoders] Initialize does not work for embedded swf's in Flex
neither does creationComplete or complete I was trying to access a swf's methods from an embedded swf to no success? If i load it in then it works... any ideas? Why can't i access the methods and properties of an embedded swf in a flash? Thanks, Patrick
[flexcoders] Flex Component kit
Code hinting does not work: my example code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical ng:NewGlobe xmlns:ng=* / /mx:Application Thanks, Patrick
[flexcoders] UIMovieClip
So i am digging into the UIMovieClip. . am i am a little bummed, i tried to apply a zoom effect and I got an error that says effectStarted property not found on my object? How do i work around this... I thought UIMovieClip had the same functionality as UIComponent - more or less. How do i zoom my component? Any help out there? Thanks, Patrick
Re: [flexcoders] Flex Component kit 4 flash - I wish it did...
Yeah, flexbuilder has a bug, because I retyped the exact line and then it worked fine. Also, the refresh issue is a quirk too - but at least I know about it. I have some issues with how flex integrates UIMovieClip. OK SWFLoader is a UIComponent, so you can apply effects to it like any other UIComponent. But you can't use that to call methods etc...(I never messed with local Connection class yet ;) However, UIMovieClip does support calling methods and events... but it can't have effects applied to it because it's not a UIComponent in the flex sort of of way. So, Now I realize after a day of messing around that I can't do what I want to do with Flex in this fashion, maybe I could use the localConnection class to call methods, I guess i expect a component called UIMagic that does everything. Any suggestions on how to do both, ok now to read up localconnection class. Thanks, Patrick leds usop wrote: no. it can be placed in the mxml declaration of the component itself. --- Ronald Kinion [EMAIL PROTECTED] mailto:ronald.kinion%40zones.com wrote: isn't the namespace suposed to be in the root tag? like: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml xmlns:ng=* layout=vertical ng:NewGlobe/ /mx:Application -- Ronald Kinion Phone: 253-205-3494 [EMAIL PROTECTED] mailto:Ronald.Kinion%40zones.com mailto:[EMAIL PROTECTED] mailto:Ronald.Kinion%40zones.com www.zones.com http://www.zones.com/ http://www.zones.com/ From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of {reduxdj} Sent: Saturday, June 09, 2007 5:07 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Flex Component kit Code hinting does not work: my example code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=vertical ng:NewGlobe xmlns:ng=* / /mx:Application Thanks, Patrick __ Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545469 http://answers.yahoo.com/dir/?link=listsid=396545469
Re: [flexcoders] OK,
Alex: I have been out of the loop. I guess I expected this to be hooked together already (especially since we had to wait for flash so long ;) Downloading my kit right now. Thanks for your time, Patrick Alex Harui wrote: http://labs.adobe.com/wiki/index.php/Flex_Component_Kit http://labs.adobe.com/wiki/index.php/Flex_Component_Kit The swfloader.content should be a MovieClip. Or it might have one child that is the MovieClip for the main timeline *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *patricklemiuex *Sent:* Thursday, June 07, 2007 2:16 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] OK, Alex thanks. Couple questions? Where is this flash integration kit? Is there a simple external shell class to start with this? What about accessing simple timeline controls? All I want to do is be able to tell my timeline in my loaded SWF to play. Thanks, Patrick
RE: [flexcoders] quick object question
Yes thanks, Tracy. I notice you on the list offering help a lot. Appreciated always! I should have known this, d'oh! Thanks, Patrick _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Wednesday, May 30, 2007 10:46 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] quick object question Do you mean: var sPanelId:String = myPanelId; var pnl:Panel = this[sPanelId]; //bracket notation evaluates to Panel reference. pnl.title = MyPanelTitle; Tracy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of patricklemiuex Sent: Wednesday, May 30, 2007 12:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] quick object question I have string, which is the id of my object. How do I convert my string name into the id property of my object?\ Why am I doing this you ask, because it's flashvars default that I want to access a certain panel when my app loads. Thanks, Patrick
RE: {Disarmed} [flexcoders] Just getting started, hitting walls...
Well if you are going to make a big application, pick up Actionscript 3 design patterns. That will give you some ideas how to construct a big application. _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave @ VitalPodcasts.com Sent: Wednesday, May 30, 2007 11:57 AM To: flexcoders@yahoogroups.com Subject: Re: {Disarmed} [flexcoders] Just getting started, hitting walls... From every example I see, its small apps, realesate finder, resturant finders... Is it possible, and when I mena possible, is it realistc to make something like a CMS in Flex? if anyone has a good tutorial on how to make modular code, and make a nice seperated program design, I would love to see it... everything google is turning up doesnt even come close to addressing entreprise level application needs.
RE: {Disarmed} [flexcoders] SWF Size gets bigger (and bigger... but why??)
Jurgen: I've only been using flex for about 9 months now and eclipse only for about 2 months before that. I know a lot of you more experienced developers know a lot of hidden features that were ported over from eclipse, like how to skip to certain methods while editing a file, the clean project command - I am sure there's a lot more. Is there a known list of handy shortcuts, especially for finding stuff in a long application. Control-F is tiresome. Thanks for the tip, Patrick _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jurgen Beck Sent: Wednesday, May 30, 2007 11:39 AM To: flexcoders@yahoogroups.com Subject: Re: {Disarmed} [flexcoders] SWF Size gets bigger (and bigger... but why??) Can't tell you why it is growing, other than agreeing with you that at times the compiled app is growing beyond what it should be. You can use the Project-Clean... command in Flex Builder to clean your project and reduce the SWF size to what it normally is. Hope this helps, Jurgen patricklemiuex wrote: I noticed i changed about 4 lines of code in my app and then compiled - it went from 420K to 634K... So, I copied my MXML file into a new MXML File and then my compile size is back to normal? Does anyone know why this happens? Kinda sucks, yes? Thanks, Patrick
[flexcoders] PopUpManager - how to pass an object to a IFlexDisplayObject
I am trying to pass an array collection to my pop up manager, is there a way to do this? Or, can I bind an arrayCollection to my main Application and cand the binding drilldown? Thanks. Patrick
Re: [flexcoders] Re: OMFG, i am about to go crazy - SOLVED - uh I think
Mark The issue seem to be related to IE7 and 9.016 of flashplayer. This did make the issue a lot less apparent. However, to see the issue, you have to take a moment to visit a page and see for yourself. me.com/patrickdj you'll see a slideshow about 1 quarter the way down on the left hover of the me.com logo click on get the code click on ok (this will erase and set your system clipboard) Repeat the above - 1 out of 10 attempts or so, the 'OK' does not seem to receive a click event? Ever heard of something this strange? Thanks, Patrick mark_j_ellul wrote: Hi Patrick, I understand your frustration. However I am quite interested in the solution? Was a flash player upgrade enough to solve the issue? Was there any other potential work around? What was the code exactly that was not working? I am sure pretty much all the developers on this list would like to be aware of any browser incompatibilities. Thanks and Keep your head up... Mark --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, {reduxdj} [EMAIL PROTECTED] wrote: Tracy: We did, however, it never fails, one of our developers had Flashplayer 9.016 with IE7 (which seemed to be the issue). I personally am resisting ie7 indefinitely Especially since you can't run both ie6 and 7 on one computer. I got a little worked up today, but doesn't this stuff drive developers crazy? Lately, all my time is spent figuring out why embedding flash in ie7 fails to give me back a non-defined id error in ie and other cross browser compatibility issues of the sort. My hack was actually embedding a swf on the page in another place with a a duplicate id to fool the browser. But my point is...we shouldn't have to do that - that takes us away from actually getting things done quickly. I mean, flash development is already complex enough and for dynamic pages like the ones that I am making it's a real magic trick. Does anyone have any suggestions or advice? I am a little lower on the developer food chain than a lot of people on this list. Unfortunately, for me, we don't develop from flex/flash 100% top down... I basically do AS3 for flash and flex and deploy in a page with a lot of html... So, having components that talk to the page is essential. I wish firefox had a better adoption rate because it's so much easier to develop in because it just works and with plug-ins like firebug and web developer and flash tracer... it's a joy to use as my main browser. Why can't the general public be convinced of better 'free' alternatives that work better than the one that comes with their computer. The firefox adoption rate is analagous to the same amount of people who buy a new car and stick with the same stock shitty radio that came with it which is like 80%. Thanks for reading this far, Patrick redux.me.com Tracy Spratt wrote: Unless you can specify the browser environment, you should include IE in your development and testing. Tracy -- *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] *On Behalf Of *patricklemiuex *Sent:* Monday, May 14, 2007 3:59 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* [flexcoders] OMFG, i am about to go crazy So, I just launched this slide show today... And, I don't use the f*king crappy IE7. And one of the other developers is asking me why my buttons don't work... button clicks events seem to navigate the user to a url?? I am so frustrated because this makes me look like I am some kind of shitty developer. What the hell to do? I think adobe should sue Microshit!
Re: [flexcoders] OMFG, i am about to go crazy - SOLVED - uh I think
Tom: I do use Adobe's flash detection. I wasn't using the var minVersion so, that's my bad. Actually, I have issues with swfObject and logging people out of our php session so i never use it. Adobe's solution is good, except it's very exacting, the way it's implemented on a page. For instance, don't try to use Adobe's detection kit in one long set of js code in the middle of the page... It doesn't seem to work that way for IE. Also, I even tried to have php echo javascript, which I thought was excellent but did not work around the click to activate garbage. The issue for this situation is that there's a bunch of php files and I am inserting flash into one part of a page, in this case I couldn't edit the file with the head tag because there's several pages that had different head tags that my or may not include the script with my flash embed tag. I assume for flash detection to be perfect from adobe, you need to include the AC_OETag.js file in the head. Alternatively, I had just just before the flash and that was my issue. I am not sure why of the reason for this? Maybe someone can shed some light on this topic as I am not Mr. Javascript Thanks, Patrick Tom Chiverton wrote: On Tuesday 15 May 2007, {reduxdj} wrote: I got a little worked up today, but doesn't this stuff drive developers crazy? Lately, all my time is spent figuring out why embedding flash in ie7 fails to give me back a non-defined id error in ie and other cross browser compatibility issues of the sort. My hack was Is something wrong with the Adobe Flash Detection Kit / SWFObject ? -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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/
Re: [flexcoders] OMFG, i am about to go crazy - SOLVED - uh I think
Tracy: We did, however, it never fails, one of our developers had Flashplayer 9.016 with IE7 (which seemed to be the issue). I personally am resisting ie7 indefinitely Especially since you can't run both ie6 and 7 on one computer. I got a little worked up today, but doesn't this stuff drive developers crazy? Lately, all my time is spent figuring out why embedding flash in ie7 fails to give me back a non-defined id error in ie and other cross browser compatibility issues of the sort. My hack was actually embedding a swf on the page in another place with a a duplicate id to fool the browser. But my point is...we shouldn't have to do that - that takes us away from actually getting things done quickly. I mean, flash development is already complex enough and for dynamic pages like the ones that I am making it's a real magic trick. Does anyone have any suggestions or advice? I am a little lower on the developer food chain than a lot of people on this list. Unfortunately, for me, we don't develop from flex/flash 100% top down... I basically do AS3 for flash and flex and deploy in a page with a lot of html... So, having components that talk to the page is essential. I wish firefox had a better adoption rate because it's so much easier to develop in because it just works and with plug-ins like firebug and web developer and flash tracer... it's a joy to use as my main browser. Why can't the general public be convinced of better 'free' alternatives that work better than the one that comes with their computer. The firefox adoption rate is analagous to the same amount of people who buy a new car and stick with the same stock shitty radio that came with it which is like 80%. Thanks for reading this far, Patrick redux.me.com Tracy Spratt wrote: Unless you can specify the browser environment, you should include IE in your development and testing. Tracy *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *patricklemiuex *Sent:* Monday, May 14, 2007 3:59 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] OMFG, i am about to go crazy So, I just launched this slide show today... And, I don't use the f*king crappy IE7. And one of the other developers is asking me why my buttons don't work... button clicks events seem to navigate the user to a url?? I am so frustrated because this makes me look like I am some kind of shitty developer. What the hell to do? I think adobe should sue Microshit!
Re: [flexcoders] Solved. OT: out of my mind with IE javascript (movie not defined error)
Well the fix was a hack, i document wrote a 1.1 pixel of a flash movie to the browser and gave it the same id as my other movie... and it works now. My methods from my flex app are calling the page. Has anybody else had this problem? id undefined in ie on complex pages (php?) with flash components trying to access javascript methods? I know i am on a rant but, this kind of stuff sucks for developers. Thanks, Patrick we should call it die-e my example of how i did, it - i wrote to an invisble div layer with a tiny swf. document.write('object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354 codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0; width=600 height=130 id=xmlReader align=middle\n'); document.write('param name=allowScriptAccess value=always /\n'); document.write('param name=movie value=embed.swf /param name=quality value=high /param name=bgcolor value=#ff /\n'); document.write('embed src=embed.swf quality=high bgcolor=#ff width=1 height=1 name=xmlReader align=middle allowScriptAccess=always type=application/x-shockwave-flash pluginspage=http://www.macromedia.com/go/getflashplayer; /\n'); document.write('/object\n'); //and then i used the adobe method on the page as well and it seems to bypass the undefined issue. Patrick Lemiuex wrote: I have done this before on many pages and it's worked before. This page however is throwing me off. I tried adobe's AE_OEtags.js, and swfobject and a few other embed tag helpers out there to get around of the click to activate issue... The issue with this page is a javascript error - It always says mymovie is not defined (while it works in firefox, the better browser). I can't begin to describe how frustrated I am and I I'd like to take microsoft to small claims court so they can pay me for my wasted half day. has anybody solved this with out issue. I googled and found other developers with the same issues an no solutions.. please help Patrick
Re: [flexcoders] Getting Index of Array Collection from current Mouse Position in areaChart
Sweet, i'll give it a shot. thanks Michael Wills wrote: Hi Patrick, I'm not sure if this will help, but you can listen for an itemRollOver event on your area chart. That will trigger an ChartItemEvent which in it has hitData and hitSet which info on the items that triggered the event. Perhaps you can get the actual data from that. Michael patricklemiuex wrote: Forgive if you see this post, I haven't seen my post, post and I haven't seen a reply. Is it possible to get an index of an array collection from a mouseover on an area chart. Thanks, Patrick
[flexcoders] X axis of Area Chart how to make labels always vertical
Thanks, Patrick
[flexcoders] Adding a button to the title area of a panel
How do you do this? Thanks, Patrick
[flexcoders] Resize Effect Limits in an app - are there any??
Hi, I have a bunch of panels that I am resizing where they are set to decreases to a minimum height, 40 pixels. I have one panel that increases in size to a maximum height of 400 - at the same time the decreasing happens, all of these sit inside a vbox. I have a total of 10 panels, often in a while my panel doesn't increase in size that i want to though the property comes back as being full height or 400 pixels. Which makes me wonder if there's a limit to the number of resize effects you can have in flex? Thanks and Cheers, Patrick
[flexcoders] Zooming in on the x-axis of the AreaChart
Is this possible to do? any examples of this anywhere, thanks? Patrick
[flexcoders] Zoom instance
I started an AS3.0 zoomEffect, how do I add Exponential easing? I need a little more clear example please. (Here is my code, how do i do the easing method) private function zoomOut(e:MouseEvent):void{ var ret = new Zoom(); ret.duration = 1000; ret.zoomWidthFrom=2; ret.zoomWidthTo=1; ret.zoomHeightFrom=2; ret.zoomHeightTo=1; ret.target=this; ret.start(); } Thanks, Patrick
[flexcoders] Randomizing Array (from actionscript cookbook3 and other places)
I am getting an error with the following code TypeError: Error #1006: value is not a function. at com.me.data::PictureProviderXML/::handleComplete() function randomSort(a, b) { return Math.random().5 ? -1 : 1; } var numbers:Array = new Array(); for (var n:int=0;nphotos.length;n++){ numbers[n] = n; } numbers.sort(randomSort); any ideas, it looks like I am using this properly any ideas? Thanks, Patrick
RE: [flexcoders] SWFLoader query string?
Chad: I don't know why that traces out undefined for you, this is what I am doing in my mxml to pass variables in a query string and it works. Thanks, Patrick private function createTextEffects(s:String):void{ var swf:SWFLoader = new SWFLoader(); panelMain.addChild(swf); swf.load(components/someswf.swf?somevar=+s); } _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chad Callahan Sent: Thursday, March 15, 2007 11:19 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] SWFLoader query string? When programming in AS2 for Flash, I was always able to have an AS2 swf load into it another AS2 swf and pass that swf variables using query string as such: swfToLoad.swf?var1=1var2=2 When the swfToLoad ran, it automatically had the var1 and var2 variables declared and assigned the same values that were added onto the query string. I now need to use the same idea but have Flex load an AS2 swf and pass the swf a query string. mx:SWFLoader source=swfToLoad.swf?var1=1var2=2/ However, when the swfToLoad (which is a flash 8 as2 swf) loads, those var1 and var2 variables trace out as undefined. I've also tried using the SWFLoader's load command rather than source, but the same problem. I've also tried using an mx:Image instead of SWFLoader, same problem. Is there a way to pass variables into the swf OTHER than using a local connection? (I say other than using a local connection because that is the whole purpose of me doing this. I'm trying to pass a random connection id from Flex into the Flash swf so they use the same (random) connection id) CHAD CALLAHAN PROGRAMMER T8DESIGN.COM | P 319.266.7574 - x195 | 877.T8IDEAS | F 888.290.4675 This e-mail, including attachments, is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, and then please delete it. Thank you. _ attachment: image001.jpg
Re: [flexcoders] Mac Flashplayer bug discovered (behaves differently than the PC)
Troy: I don't know if that's good news or bad news? ;) I checked the girlfriends mac and both have the same issue, which player are you using btw? I have 9.028 Thanks, Patrick Troy Gilbert wrote: Hmm... I don't get a fade out at all on my Mac (Intel MacBookPro) Player (latest Flash 9). Troy. On 13 Mar 2007 21:57:22 -0700, *{reduxdj}* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi There, I was working on a project and didn't even take the time to check it out in the yet mac until I needed to a little work on it on my macbook and I discovered a bug in the mac flashplayer. I made a (yass) yet another slide show... and this time I used Alex Uhlman's API for AS3.0. I don't know why a flash movie would behave differently on the mac from a pc. On the pc, it plays perfectly while on the mac it fades to black right after it loads. http://photos.me.com/_testSlide/_testSlide/mebucket.html http://photos.me.com/_testSlide/_testSlide/mebucket.html I can't isolate the issue... I posted a bug on the Adobe wesbite but something tells me that this might be a faster way to get a little insight faster. Has anybody else had any issues with mac flashplayer working differently? Thanks, Patrick
RE: [flexcoders] Mac Flashplayer bug discovered (behaves differently than the PC)
Troy: I'm accounting for image errors, and there's a little preloading action, so that might cause a bit of delay, this the animation won't begin until xx number of images are loaded (should make a simple preloader), to prevent tweening running ahead of the images. If I stop the animation all together from starting the fade out to black on the mac doesn't happen. I'm going to comment out all of the methods and try to back track. My Logical deductions are: 1. Maybe flashplayer on the mac is buggy 2. My code is buggy 3. The animation package is buggy 4. A combination of all or some of the above Quite a list to go through, heh? Thanks, Patrick _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Troy Gilbert Sent: Wednesday, March 14, 2007 9:04 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Mac Flashplayer bug discovered (behaves differently than the PC) Ah, okay... I tried it out under Windows and it did do different stuff. But its get weirder... The first time I ran it on the Mac, it loaded up the first image (Twirly Face), and started dropping the leaves down the screen, but no text was displayed (just the PAUSE, ME and EDIT buttons), and it just sat there. The second time I loaded it up on the Mac, it displayed the behavior you were talking about (it faded to black), but continued to swap through the different names of the photos. The first time I ran it on the PC (Windows), it did the same thing as the Mac: it loaded up the first image and just sat there. As soon as I refreshed the page, though, it started running the slideshow correctly (I assume) with fades/slides, etc., and different pictures. So, not only is the behavior inconsistent between Mac and PC, its inconsistent between first and second run... perhaps its an image loading error or similar? Troy. On 3/14/07, {reduxdj} [EMAIL PROTECTED] wrote: Troy: I don't know if that's good news or bad news? ;) I checked the girlfriends mac and both have the same issue, which player are you using btw? I have 9.028 Thanks, Patrick Troy Gilbert wrote: Hmm... I don't get a fade out at all on my Mac (Intel MacBookPro) Player (latest Flash 9). Troy. On 13 Mar 2007 21:57:22 -0700, *{reduxdj}* [EMAIL PROTECTED] mailto:dj%40reduxdj.org mailto:[EMAIL PROTECTED] mailto:dj%40reduxdj.org wrote: Hi There, I was working on a project and didn't even take the time to check it out in the yet mac until I needed to a little work on it on my macbook and I discovered a bug in the mac flashplayer. I made a (yass) yet another slide show... and this time I used Alex Uhlman's API for AS3.0. I don't know why a flash movie would behave differently on the mac from a pc. On the pc, it plays perfectly while on the mac it fades to black right after it loads. http://photos. http://photos.me.com/_testSlide/_testSlide/mebucket.html me.com/_testSlide/_testSlide/mebucket.html http://photos. http://photos.me.com/_testSlide/_testSlide/mebucket.html me.com/_testSlide/_testSlide/mebucket.html I can't isolate the issue... I posted a bug on the Adobe wesbite but something tells me that this might be a faster way to get a little insight faster. Has anybody else had any issues with mac flashplayer working differently? Thanks, Patrick
RE: [flexcoders] Mac Flashplayer bug discovered (behaves differently than the PC)
Kevin: Here's the source (I didn't add it to the context menu for some reason) http://photos.me.com/_testSlide/srcview/index.html If I comment out the move instance it doesn't fade to black. By why the different results in the mac than the pc. OK, I tried to use an mx effect to replace the animation package and it produced this result.. http://photos.me.com/me.swf Nice effect! But not what I was going for! Thanks for your time, -Patrick _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Sent: Wednesday, March 14, 2007 9:55 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Mac Flashplayer bug discovered (behaves differently than the PC) is there a way you can published the source? That might help in group debugging. Regardless I think the problem lies somewhere once the animation begins. - Kevin On Mar 14, 2007, at 1:18 PM, {reduxDJ} wrote: Troy: I'm accounting for image errors, and there's a little preloading action, so that might cause a bit of delay, this the animation won't begin until xx number of images are loaded (should make a simple preloader), to prevent tweening running ahead of the images. If I stop the animation all together from starting the fade out to black on the mac doesn't happen. I'm going to comment out all of the methods and try to back track. My Logical deductions are: 1. Maybe flashplayer on the mac is buggy 2. My code is buggy 3. The animation package is buggy 4. A combination of all or some of the above Quite a list to go through, heh? Thanks, Patrick _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Troy Gilbert Sent: Wednesday, March 14, 2007 9:04 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Mac Flashplayer bug discovered (behaves differently than the PC) Ah, okay... I tried it out under Windows and it did do different stuff. But its get weirder... The first time I ran it on the Mac, it loaded up the first image (Twirly Face), and started dropping the leaves down the screen, but no text was displayed (just the PAUSE, ME and EDIT buttons), and it just sat there. The second time I loaded it up on the Mac, it displayed the behavior you were talking about (it faded to black), but continued to swap through the different names of the photos. The first time I ran it on the PC (Windows), it did the same thing as the Mac: it loaded up the first image and just sat there. As soon as I refreshed the page, though, it started running the slideshow correctly (I assume) with fades/slides, etc., and different pictures. So, not only is the behavior inconsistent between Mac and PC, its inconsistent between first and second run... perhaps its an image loading error or similar? Troy. On 3/14/07, {reduxdj} mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Troy: I don't know if that's good news or bad news? ;) I checked the girlfriends mac and both have the same issue, which player are you using btw? I have 9.028 Thanks, Patrick Troy Gilbert wrote: Hmm... I don't get a fade out at all on my Mac (Intel MacBookPro) Player (latest Flash 9). Troy. On 13 Mar 2007 21:57:22 -0700, *{reduxdj}* mailto:dj%40reduxdj.org [EMAIL PROTECTED] mailto: mailto:dj%40reduxdj.org [EMAIL PROTECTED] wrote: Hi There, I was working on a project and didn't even take the time to check it out in the yet mac until I needed to a little work on it on my macbook and I discovered a bug in the mac flashplayer. I made a (yass) yet another slide show... and this time I used Alex Uhlman's API for AS3.0. I don't know why a flash movie would behave differently on the mac from a pc. On the pc, it plays perfectly while on the mac it fades to black right after it loads. http://photos.me.com/_testSlide/_testSlide/mebucket.html http://photos.me.com/_testSlide/_testSlide/mebucket.html http://photos.me.com/_testSlide/_testSlide/mebucket.html http://photos.me.com/_testSlide/_testSlide/mebucket.html I can't isolate the issue... I posted a bug on the Adobe wesbite but something tells me that this might be a faster way to get a little insight faster. Has anybody else had any issues with mac flashplayer working differently? Thanks, Patrick
[flexcoders] Mac Flashplayer bug discovered (behaves differently than the PC)
Hi There, I was working on a project and didn't even take the time to check it out in the yet mac until I needed to a little work on it on my macbook and I discovered a bug in the mac flashplayer. I made a (yass) yet another slide show... and this time I used Alex Uhlman's API for AS3.0. I don't know why a flash movie would behave differently on the mac from a pc. On the pc, it plays perfectly while on the mac it fades to black right after it loads. http://photos.me.com/_testSlide/_testSlide/mebucket.html I can't isolate the issue... I posted a bug on the Adobe wesbite but something tells me that this might be a faster way to get a little insight faster. Has anybody else had any issues with mac flashplayer working differently? Thanks, Patrick
Re: [flexcoders] (not so) simple stageHeight question
Alex: actually this is a simple as3.0 project compiling with the cmd line compiler. Is the stage defined at the same time the the root object is available? I am sure there are reasons but not having stageHeight as a global property makes me confused as to why? should any sprite (whether it is nothing) as long as it's added to the display list be able to access the stage property? Sorry, for the lame questions but I've been passing in the stageHeight, where I can get, it to all my sub classes in their constructor... not ideal but I can only seem to get the stageHeight properly from one sprite. I just can't figure out the rules of the stage why some sprites can access the stage.stageHeight and others can not. the dreaded NULL OBJECT REFERENCE reminds me of our president. By the way, do people mind pure AS3.0 questions on this list or is it better on flashcoders? There's still a lot of as2.0centric questions over there and it seems like flexcoders are a great source of information 3.0centric. OK, good night, thanks for the help. Patrick Alex Harui wrote: If you’re doing that in a Flex app during its startup phase, there is no stage until after applicationComplete is dispatched. It is an evil trick we do to optimize startup time where the application and all of its children are not on the stage until the children are measured and layed out. IUIComponents have a systemManager property that has a valid stage during startup and afterwards. -Alex *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *{reduxdj} *Sent:* Wednesday, March 07, 2007 8:17 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] simple stageHeight question I've been having issues with trying to get stageHeight from sprites. var _sprite:Sprite = new Sprite(); addChild(_sprite) trace (_sprite.stage.stageHeight) give me null object reference... after it's been added to the display. And also why can't I just access it from any class that extends Sprite like this: this.stage.stageHeight or like super.stage.stageHeight; What's confusing is I am doing this with no problem in another place. I just want every sprite i make to be able to access this property. I guess I'm left creating a global variable. What's the trick with this? THanks, patrick Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/0It09A/bOaOAA/yQLSAA/nhFolB/TM ~- -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] simple stageHeight question
I've been having issues with trying to get stageHeight from sprites. var _sprite:Sprite = new Sprite(); addChild(_sprite) trace (_sprite.stage.stageHeight) give me null object reference... after it's been added to the display. And also why can't I just access it from any class that extends Sprite like this: this.stage.stageHeight or like super.stage.stageHeight; What's confusing is I am doing this with no problem in another place. I just want every sprite i make to be able to access this property. I guess I'm left creating a global variable. What's the trick with this? THanks, patrick
[flexcoders] Customizing error messages
Is there a way to customize error messages: SeverityDescriptionResourceIn FolderLocationCreation TimeId 21013: The private attribute may be used only on class property definitions.CaptionMaker.asmeBucket/com/me/views/typesline 125February 28, 2007 8:03:34 AM105684 To say something like this: Yo forgot a close bracket after a function dummy Just curious. Patrick
[flexcoders] falshvars SDK Actionscript 3.0 non-flex app - SOLVED
I didn't realize two things trying to get at flashvars in a non-timeline swf compiling with SDK. 1. To get the LoaderInfo apparently you have to extend Sprite (er, i think) 2. The root is not defined right away... so I am doing a cheesy timer event because you can't add a listener to the loaderInfo there's probably a better way... this seems quite hackish, i guess I could make it loop the timer object till it's defined etc. P package com.me.views { import flash.display.Sprite; import flash.display.*; import com.me.data.PictureProvider; import flash.events.Event; import flash.display.LoaderInfo; import flash.events.TimerEvent; import flash.utils.Timer; public class AbstractSlideView extends Sprite { protected var _data:PictureProvider; public function AbstractSlideView() { var timer:Timer = new Timer(1000,1); timer.addEventListener(TimerEvent.TIMER, installVars); timer.start(); } public function installVars(e:TimerEvent){ var keyStr:String; var valueStr:String; trace (this.root); try { var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters; trace (paramObj.toString()); for (keyStr in paramObj) { valueStr = String(paramObj[keyStr]); trace (folderid=+String(paramObj[folderid])) trace(\t + keyStr + :\t + valueStr + \n); trace (folderid=+paramObj.folderid); } _data = new PictureProvider(paramObj); _data.addEventListener(Event.CHANGE,draw); }catch (error:Error){ trace (error); } } protected function draw(event:Event):void{ } } }
[flexcoders] HeaderRenderer re-initializing when Array Collection changed?
Don't know why, but changing my dataset in my array collection makes my custom header renderer re-initialize. I have a combobox on it too an it's resetting again also. Is there a way to prevent this from happening. My headerRenderer implements mx.core.IFactory... Just a little confused to why this happening? And How do I avoid this? Thanks, Patrick
[flexcoders] Preloader for dataGrid
I want to use a preloader, very similar to the datagrid components that are used on Adobe's site. Is there a default loader for a datagrid like the one with the little spinning circle? Thanks, Patrick
[flexcoders] dataGrid Help, populating - newbie array question (consider it a an xmas gift)
Good morning, Sorry, to post this again, but I'm goin in circles and confused how to populate a datagrid properly with an array collection as a dataProvider. I'm able to use an mx:ArrayCollection or a single array in an array collection, but how do I populate it automatically with an array collection holding 3 arrays, like this? mx:DataGrid id=dgFeatured1 width=250 height=150 styleName=mainText top=208 left=46 itemClick=itemClickEvent(event); mx:ArrayCollection mx:source mx:Object Poll=Do You Like Law And Order Number=53 owner=batanga/jumpman type=1/ mx:Object Poll=When Do You Do Most Of Your Christmas... Number=49 owner=batanga/jumpman type=1/ mx:Object Poll=Can I Date Your Daughter Number=54 owner=batanga/DonaldRumsfeld type=1/ /mx:source /mx:ArrayCollection mx:columns This works, but I want to do the same thing as above with my arrays in an array collection, this probably something really basic I don't grasp how to use. This works, but only with one array in my array collection... var _data_fastest:Object = RemotingProvider.getInstance().getPolls(); fastestAC = new ArrayCollection(_data_fastest.fastest); I want to the following, why does this not work the same way, what am I not grasping: fastestAC = new ArrayCollection(_data_fastest.fastest,_data_.id,_data.type); then I want to use the dataProvider so I can populate it just like the first example and then get my selected item. Thanks flex genius!
Re: [flexcoders] Pop Up Panels, what to use/how to make them?
Samual, thanks, got it. I made a custom component and loaded with a pop up manager. works just fine. Thanks, Patrick Samuel Reuben wrote: Try a TitleWindow popped up. -sam On 11/27/06, *{reduxdj}* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: How do you make pop up boxes like the alert box? I'd like to make a panel with a textarea component pop up on top of my application in the center, not below it or inside it. I tried to use an alert box and and some stuff to it with undesirable results. Thanks, Patrick
Re: [flexcoders] customising preloader
Stephen: I've been messing around with the same thing, it's always nice when other people have the same challenges, which means more help. I've got a lot to learn and the following solution might be considered a bad hack, but sometimes what works, works. Keeping preloader on the screen after intial load means you should look at this example how to make a custom one is made first. i think you said you did http://www.onflex.org/ted/2006/07/flex-2-preloaders-swf-png-gif-examples.php http://www.onflex.org/ted/2006/07/flex-2-preloaders-swf-png-gif-examples.php Of course you can't tell how long your data query is going to take so the progress bar is just for the application. I don't know what you want to do with the progress bar after the intitial load, but ok... I was able to do this from this example and use my custom swf preloader with our logo in a swf from this example, thanks ted patrick! I hope this provides you insight. if you extend the loader class you can do the same thing basically. Let me know your results. good luck http://www.onflex.org/ted/2006/07/flex-2-preloaders-swf-png-gif-examples.php I took Ted's example and hacked it to hell like this: from the customPreLoaderFile: private function FlexInitComplete( event:Event ):void { wcs.ready = true; dispatchEvent( new Event( Event.COMPLETE ) ); Application.application.createWCS(wcs); } private function dispatchMeEvent(wcs:WelcomeScreen):void{ Application.application.createWCS(wcs); //this gives me access to this the WelcomeScreen from my main application, not //the best way but it works fine for me , using my custom dispatcher, actually sending // the object to my application so then i can fade it and wait for my query to come back // before so. } from the WelcomeScreen.as i added a flag for the fadeIn and commented out the fadeOut because i want to fade it on my own from my main application, if you don't do this, the loader will be active and fade in out whenever something is loaded. I don't want to removeChild, i want to keep it there, it's small and at the top of the application and it sits nicely in front of everything and can be used for loading images or anything public function updateView( event:TimerEvent ):void { if (_started == false){ if( this.alpha 1)this.alpha = this.alpha + this.fadeInRate; this.stage.addChild(this) this.visible=true; if( this.ready timer.currentCount this.timeAutoClose ) closeScreen() _started = true; } } public function closeScreenFade( event:TimerEvent ):void { /* if( this.alpha 0){ this.alpha = this.alpha - fadeOutRate; } else { timer.stop(); //this.parent.removeChild(this); } */ } Stephen Gilson wrote: There is an example in the doc starting here: http://livedocs.macromedia.com/flex/2/docs/0647.html http://livedocs.macromedia.com/flex/2/docs/0647.html Stephen *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Giles Roadnight *Sent:* Thursday, December 14, 2006 11:25 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] customising preloader Hi All I've been trying to create a custom preloader for my flex app. I want to keep the DownloadProgressBar object on the screen when the app has finished loading and initialising and then load my own xml configuration file. I've been trying to extend the DownloadProgressBar class and had a look at extending the prelaoder class but didn't get very far. Can anyone point me in the right direction? I did find one example that replaced the prelaoder with an image but I couldn't alter this to what I want. I also tried to create my own DownloadProgressBar object and use it to display progress of a load after the app has finished initialising but this didn't work either. Unless I can get it to work I'll have to just create my own popup and load the xml once hte app has initialised but I'd rather it all happens with the 1 popup. Many Thanks. Giles Roadnight
[flexcoders] Customizing Preloader
I'm doing the same task, making a custom preloader that extends the loader class - stays up till my remoting object is returned, since i only want one loader class available... i can't reinstantiate a new class, and since i'm extending a class, i can't force it to be a singleton class because I can not change any of the parameters in the methods, I'm stuck. So here's my idea, i just want to have it receive events. I guess what I'm getting at is that I want to receive all events.. I've extended the Event class but how do I dispatch events globally to all interested parties? Thanks s much for your help..
SOLVED: Re: [flexcoders] non-wordwrapping text... has me cuckoo for cocoa puffs
I just removed all the 100% height and widths and now textboxes are the correct size. [EMAIL PROTECTED] wrote: I have this component, and inside i have some nested stuff... I'm trying to get my textHolder to wordwrap... i don't know what's throwing it off... but my tileHolder is a second component, 30 pixels tall right below it might be throwing this off, but I'm drawing it with the draw api... Please, help, what am I not understanding about how this lays out? thanks, Patrick mx:Fade id=fadeIn alphaFrom=0 alphaTo=1 / mx:VBox id=panelHolder width=346 verticalScrollPolicy=off horizontalScrollPolicy=off verticalAlign=middle paddingBottom=0 paddingTop=0 minHeight=50 horizontalAlign=Left verticalGap=0 creationCompleteEffect=fadeIn mx:HBox id=horizontalHolder width=100% horizontalAlign=Left horizontalGap=10 verticalAlign=middle paddingLeft=15 paddingRight=15 height=100% horizontalScrollPolicy=off paddingBottom=2 paddingTop=2 mx:Image id=imageHolder width=100 scaleContent=true autoLoad=true completeEffect={fadeIn}/ mx:VBox verticalAlign=middle paddingTop=0 paddingBottom=0 height=100% mx:Text id=textHolder styleName=subHeadingText selectable=false / mx:HBox id=tileHolder height=30/ /mx:VBox /mx:HBox /mx:VBox /mx:Canvas I'm using this custom wordwrap function, which was cheesy as all get-out, but working, until i discovered the mac has different size text... if (myRadioPanel.textHolder.htmlText.length40) myRadioPanel.textHolder.height = 15; if ((myRadioPanel.textHolder.htmlText.length40)(myRadioPanel.textHolde r.htmlText.length80)) myRadioPanel.textHolder.height = 30; if ((myRadioPanel.textHolder.htmlText.length80)(myRadioPanel.textHolde r.htmlText.length120))myRadioPanel.textHolder.height= 45;
Re: [flexcoders] URLRequest - Want to make a request but not navigateToURL
I use service capture and nothing is being sent but the method is being called and nothing further. Thanks, Patrick Tracy Spratt wrote: That is all that is required, if your url and back-end are correct. That is a relative url. Are you sure it is available just like that from the client? How do you know whether it is working? Does that url respond with anything? Hit it directly from a browser, exactly as you show it here, to make sure it returns what you expect. Then define a listener for the result event of the http service, so you can handle that result data. Tracy *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of [EMAIL PROTECTED] *Sent:* Monday, December 11, 2006 8:35 PM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] URLRequest - Want to make a request but not navigateToURL Easy, eh, nothing easy is for me: var myHTTPService:HTTPService = new HTTPService(); myHTTPService.url = /_poll/takeit.php?pollid=+_pollid; myHTTPService.method = GET myHTTPService.send(); What am I doing wrong, not be a luddite, but i need examples of everything. Thanks, Patrick Original Message From: [EMAIL PROTECTED] mailto:tspratt%40lariatinc.com To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] URLRequest - Want to make a request but not navigateToURL Date: Mon, 11 Dec 2006 19:49:05 -0500 Why are you using URLRequest? HTTPService will do what you want very simply. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of [EMAIL PROTECTED] mailto:dj%40reduxdj.org Sent: Monday, December 11, 2006 6:56 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] URLRequest - Want to make a request but not navigateToURL Hi, I want to run a script on page like: var userURLRequest:URLRequest = new URLRequest(/_poll/takeit.php?pollid=+_pollid); I don't want to navigate to the page just execute the script, how to this please? Thanks, Patrick
Re: [flexcoders] URLRequest - Want to make a request but not navigateToURL
ok, I got this to work, just the way i had it, i had to remember i was testing locally. ouch! OK, i'm going to stick my head in the sand... I really do appreciate your help. This mailing is a god-send. {reduxdj} wrote: I use service capture and nothing is being sent but the method is being called and nothing further. Thanks, Patrick Tracy Spratt wrote: That is all that is required, if your url and back-end are correct. That is a relative url. Are you sure it is available just like that from the client? How do you know whether it is working? Does that url respond with anything? Hit it directly from a browser, exactly as you show it here, to make sure it returns what you expect. Then define a listener for the result event of the http service, so you can handle that result data. Tracy -- *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] *On Behalf Of [EMAIL PROTECTED] mailto:%2Adj%40reduxdj.org *Sent:* Monday, December 11, 2006 8:35 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* RE: [flexcoders] URLRequest - Want to make a request but not navigateToURL Easy, eh, nothing easy is for me: var myHTTPService:HTTPService = new HTTPService(); myHTTPService.url = /_poll/takeit.php?pollid=+_pollid; myHTTPService.method = GET myHTTPService.send(); What am I doing wrong, not be a luddite, but i need examples of everything. Thanks, Patrick Original Message From: [EMAIL PROTECTED] mailto:tspratt%40lariatinc.com mailto:tspratt%40lariatinc.com To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: RE: [flexcoders] URLRequest - Want to make a request but not navigateToURL Date: Mon, 11 Dec 2006 19:49:05 -0500 Why are you using URLRequest? HTTPService will do what you want very simply. Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of [EMAIL PROTECTED] mailto:dj%40reduxdj.org mailto:dj%40reduxdj.org Sent: Monday, December 11, 2006 6:56 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] URLRequest - Want to make a request but not navigateToURL Hi, I want to run a script on page like: var userURLRequest:URLRequest = new URLRequest(/_poll/takeit.php?pollid=+_pollid); I don't want to navigate to the page just execute the script, how to this please? Thanks, Patrick
[flexcoders] Automatic selection - copy and paste to clipboard, possible? with a mouse click event
Hey, these guys are asking me if it's possible to automatically make a selection of a textarea in flex and then copy that to the cliboard? Is that even possible, doesn't seem so? I tried setSelection without much success. Er, where's that example? btw, i know this can be done in js... but it seems a little invasive for flex to have? Am i Off? Thanks, Patrick
[flexcoders] fading htmlText - doesn't fade with my other stuff in my VBox, why how to fix?
I don' know why this does this, but seems ol flash 8 was plagued by this issue. I'm fading a VBox with htmlText, problem is that my textfields don't fade too... any ideas how to work around this one? thanks, Patrick
Re: [flexcoders] eval() function removed in AS 3.0 ??
from an earlier post about this topic: You need to roll it on your own. You could split the given path into its parts and try to evaluate one piece after the other until you come to the end. public function eval( scope : Object, path : String ) : Object { if( path == null ) return null; var result : Object = scope; var parts : Array = path.split('.'); while( result != null parts.length 0 ) { var part : String = parts.shift(); result = result[ part ]; } return result; } Untested code, but hopefully you get the point. Maybe you need to add some exception handling, when you try to access non existing properties. Cheers, Ralf, pdflibpilot wrote: According to the documentation eval() has been removed as function - is there an alternative ? I really would like to use this function. -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] styleSheets, loading from run-time from a .css file and not fom a swf
I read that flex supports stylesheets embedded into swf files that can be loaded at run time. Is it possible to load a stylesheet, and with the styleManager apply my styles at run time. I basically want to recolor everything in my app with one button click thanks. What's the best practice for this, it looks like there's almost a plethora of different solutions. Thanks, Patrick
Re: [flexcoders] Re: Automatic selection - copy and paste to clipboard, possible? with a mouse cl
ben: Thanks, you rock, works beautifully, added it to the fade effect event and very nice! ben.clinkinbeard wrote: Can be done but for some reason you can't have all the code in the same block. Didn't spend much time investigating why. ta.text = Hey, these guys are asking me if it's possible?; ta.setFocus(); ta.setSelection(5, 25); // this code has to be called on a timer or in a click handler or something // can't directly follow the above code var str:String = ta.text.substring(ta.selectionBeginIndex, ta.selectionEndIndex); System.setClipboard(str); HTH, Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, {reduxdj} [EMAIL PROTECTED] wrote: Hey, these guys are asking me if it's possible to automatically make a selection of a textarea in flex and then copy that to the cliboard? Is that even possible, doesn't seem so? I tried setSelection without much success. Er, where's that example? btw, i know this can be done in js... but it seems a little invasive for flex to have? Am i Off? Thanks, Patrick
Re: [flexcoders] what trace panel do you use?
I use sephiroth's flash tracer .xpi plug in for firefox... it is a very nice app written in python. www.sephiroth.it - he's a very good developer - he's got some nice examples too. side note: read the forum on his site to make flashtracer work with the new adobe flash 9.028 - flash made some changes to where the flash log trace file is kept to make compatible with vista. I wonder when apollo comes out if it we'll be able to make our own plug-in tools for firefox in flex with apollo? Cheers! shemeshkale wrote: what is the recommended trace panel? i want one that is not part of eclipse i would like to know what Adobe people using for trace.
[flexcoders] Re: TextFormat Class - need help, embedding fonts in AS -- :(
By the way my code had a typo in my e-mail, it doesn't work when that was changed, in case somebody catches that. I have my font string correct in both places in my mxml file. Thanks,
[flexcoders] TextFormat Class - need help, embedding fonts in AS -- :(
Why does the following give me back times roman... I'm using a UITextField or I was just use a stylesheet setting. Please help.. I need to find out why these details don't work for me. Thanks [Embed(source='../assets/trebuc.ttf', fontName='tres', mimeType='application/x-font' )] private var font1:Class; [Embed(source='../assets/trebucbd.ttf', fontWeight='bold', fontName='tresbold', mimeType='application/x-font', flashType='true' )] private var font2:Class; var formatter:TextFormat = new TextFormat(); formatter.bold = true; formatter.color = 0xFF; // formatter.font = arial; formatter.font = tres_bold; formatter.size = 20; percent.setTextFormat(formatter); percent.filters = [new DropShadowFilter(2,45,0x00,1,4,2,.3)]; myUIComponent.addChild(_sprite); _sprite.addChild(percent);
[flexcoders] copy and paste - automatic selections possible
I know how to do this in JS, how do you, if even possible, make an automatic selection to copy and paste to the clipboard with a click of a button. Thanks, Patrick
[flexcoders] UITextField - width anti-alias type - FEATURE REQUEST: more examples in documentation
Flexmasters: I've tried this a dozen ways, what's the best way to get the width of a UITextField and I've brought it up a few times. I won't stop asking till somebody can help me then these results then they will be search friendly! I know you have better things to do than help me, so it's appreciated greatly. I made my own graphical bar chart and want the number planted evenly in the middle of my bar and I can't do that without the width of my my UITextField. My application looks terrible without this aligning in the center. Right now, I have a bunch of if statements to try to size my textfields and that's totally dumb...etc. I've tried: validateNow(); inValidateNow() updateDisplayList(); yourGuessIsBetterThanMine(); I always get back 100 I just need an example -- please- also measureWidth requires anti-alias not set to null, how does one set that correctly?I wish Adobe would add more examples in the documentation about textfields, i mean look at the posts about textfields, wordwrap etc. a lot of people have questions about these new tools and not everybody migrated from flex 1.5, like me. There's a bunch of stuff that should have simple examples. Actually shouldn't every class have examples, in a perfect application development world? UITextField has no examples. Will there be more actionscript examples in flash because i notice that most examples in flex documentation are reserved for mxml than AS. I really miss the old days of mytextfield._width...I'm done venting for tonight. ;) Thanks, Patrick
Re: [flexcoders] ...amfphp remoting...singleton solved
AMFPHP remoting singleton approach solved... thanks to that design patterns book by joey lott and danny patterson... i've found a way to make a data listener for all my mxml components... this is kind of rework from their xml example. Also, the helper class that does the amf0 encoding for amfphp remoting is required available from mr. mike potter's blog: http://blogs.adobe.com/mikepotter/2006/02/flex_and_php_us.html I hope this approach helps you if you've been having a difficult time with this. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=init(); mx:Script ![CDATA[ import com.me.DataProvider; import com.me.remoting.RemotingConnection; import com.me.RemotingProvider; public var _type:String = ; public var _pollid:String = public var _owner:String =XXX public var _language:String=XXX; public var _li:String = 1; private function init():void{ //callBack Version //RemotingProvider.getInstance().doSomething(onRemotingInit); RemotingProvider.getInstance().loadData(_pollid,_owner,_type,_language,_li); RemotingProvider.getInstance().addEventListener(RemotingProvider.INIT,onRemotingInit); } public function onRemotingInit(o:Object):void{ var _data = RemotingProvider.getInstance().getData(); trace (_data[0].heading); } ]] /mx:Script /mx:Application package com.me { import flash.events.Event; import flash.events.EventDispatcher; import flash.events.IEventDispatcher; import mx.core.Singleton; import com.me.remoting.RemotingConnection; import flash.net.Responder; import mx.rpc.events.AbstractEvent; dynamic public class RemotingProvider implements IEventDispatcher { { private var _callback:Function; private static var _instance:RemotingProvider; public const gatewayURL:String = gateway.php; private const gateway:RemotingConnection = new RemotingConnection(gatewayURL); private var _data:Object; private var _isLoaded:Boolean; private var _eventDispatcher:EventDispatcher; static public const INIT:String = init; public function RemotingProvider(enforcer:SingletonEnforcer){ _eventDispatcher = new EventDispatcher(); _isLoaded=false; } public static function getInstance():RemotingProvider{ if (RemotingProvider._instance == null){ RemotingProvider._instance = new RemotingProvider(new SingletonEnforcer()); } return RemotingProvider._instance; } //call back method i'll use for individual data results for specific requestss /* public function dataCallBack(callback:Function):void{ _callback=callback gateway.call(get_polls.call_poll, new Responder(onPollResult, onFault),_owner, _pollid,_type,_language); } */ private function onPollResult(o:Object):void{ _callback(o); } public function getData():Object{ return _data; } public function loadData(_pollid:String,_owner:String,_type:String,_language:String,_li:String):void{ gateway.call(get_polls.call_poll, new Responder(onData, onFault),_owner, _pollid,_type,_language); } private function onData(o:Object):void{ _data = o; dispatchEvent(new Event(RemotingProvider.INIT,true,true)); } private function onFault(o:Object):void{ //to do a nice bad ass error goes here } public function removeEventListener(type:String,listener:Function,useCapture:Boolean=false):void{ _eventDispatcher.removeEventListener(type,listener,useCapture); } public function addEventListener(type:String,listener:Function,useCapture:Boolean=false,priority:int=0,weakRef:Boolean=true):void{ _eventDispatcher.addEventListener(type,listener,useCapture); } public function dispatchEvent(e:Event):Boolean{ return _eventDispatcher.dispatchEvent(e) } public function hasEventListener(type:String):Boolean{ return _eventDispatcher.hasEventListener(type); } public function willTrigger(type:String):Boolean{ return _eventDispatcher.willTrigger(type); } } } } class SingletonEnforcer{}
Re: [flexcoders] Problem with code in Flex 2: Training from the Source book. Help!
I just picked up these books, i guess since there is an open-market on flex 2 books they are cranking 'em out and with the new nature of flex it's unavoidable. Like i've noticed in the AS 3.0 cookbook, the flash.utils is flash.util Errata sure Sucka! Patrick John C. Bland II wrote: Starting before the first panel, wrap the rest (down to the last /mx:VBox) in an HBox (see below). Keep in mind they wrote a lot of this book during alpha/beta days of Flex 2. There may be some code inconsistencies here/there. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute mx:ApplicationControlBar dock=true mx:LinkButton label=All/ mx:LinkButton label=Sales/ mx:LinkButton label=Categories/ mx:LinkButton label=Comparison/ /mx:ApplicationControlBar mx:HBox mx:Panel id=sales width=100% height=100% title=Sales Chart mx:ControlBar /mx:ControlBar /mx:Panel mx:VBox id=rightCharts width=100% height=100% mx:Panel id=type width=100% height=100% title=Category Chart mx:ControlBar /mx:ControlBar /mx:Panel mx:Panel id=comp width=100% height=100% title=Comparison Chart mx:ControlBar /mx:ControlBar /mx:Panel /mx:VBox /mx:HBox /mx:Application On 12/1/06, *Abe Burnett* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi there, I've recently purchased the book, Flex 2: Training from the Source. I've hit on a problem with the code in one of the lessons. Basically, given the following code (which I've triple checked is correct--per the book, anyway), I end up with Sales Chart superimposed (it appears) over both Category Chart and Comparison Chart (which share a VBox). This is in contrast to the image in the book which depicts the Sales Chart on the left, and Category Chart above Comparison Chart to the Right. I can somewhat fix the problem by wrapping Sales Chart and the VBox enclosing Category Chart and Comparison Chart into an HBox, but it still doesn't look as aesthetically pleasing as the image on page 58 of the book. Has anyone else had the same problem with this book, and how is it resolved? The code: I've recently purchased your excellent book, Flex 2: Training from the Source. I'm plowing through Lesson 3 and run into a case where my results don't match what the book suggests I should have. Opening the code provided on the CD indicates that whatever error I have exists in the code on CD too (so it's not just me--user/learner operator). The problem is that the code for Dashboard.mxml as instructed ends up with views laying on top of one another. My VBox rightCharts laying under (I believe) my Panel sales. I'm very new to Flex, so I thought I'd seek your assistance while I continue to try and figure out what's wrong. I did find one partial solution to the layout problem--a solution that at least puts the VBox for Category Chart and Comparison Chart on the right side of the screen and out of the way of the Panel Sales Chart. That solution involves wrapping both the Panel Sales Chart and the VBox enclosing Category Chart and Comparison Chart in an HBox. The problem with this solution is that it doesn't nicely offset the Sales Chart/Category Chart/Comparison Chart as depicted on page 58 of the book. Instead it has them all laid out correctly, but the borders of each run from the very bottom of the screen to the very top of the screen, underneath the ApplicationControlBar. And from one side of the screen to the other. Layed out correctly, but not aesthetically pleasing as the book depicts. I'll keep playing with it, but in the meantime, this code doesn't render the desired results that the book indicates it should: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute mx:ApplicationControlBar dock=true mx:LinkButton label=All/ mx:LinkButton label=Sales/ mx:LinkButton label=Categories/ mx:LinkButton label=Comparison/ /mx:ApplicationControlBar mx:Panel id=sales width=100% height=100% title=Sales Chart mx:ControlBar /mx:ControlBar /mx:Panel mx:VBox id=rightCharts width=100% height=100% mx:Panel id=type width=100% height=100% title=Category Chart mx:ControlBar /mx:ControlBar /mx:Panel mx:Panel id=comp width=100% height=100% title=Comparison Chart mx:ControlBar /mx:ControlBar /mx:Panel /mx:VBox /mx:Application -- John C. Bland II Chief Geek Katapult Media, Inc. - www.katapultmedia.com http://www.katapultmedia.com --- Biz Blog - http://blogs.katapultmedia.com/jb2 http://blogs.katapultmedia.com/jb2 Personal Blog -
Re: [flexcoders] Spanish language charcaters on button labels
Igor, the the values are already encoded for amfphp remoting, sending the strings directly back from php makes them say [UTF String] with no value. so I encode them in the html safe way and it works... Is there a string function to change htmlText to normal text and vica versa, i guess i need to fish on this one. At least I know that I can just type them temporarily. By the way, do you do any work with remoting and spanish text with amfphp? We have our stuff that has translation tables for spanish, so all of the data, button labels are loaded at run time for whichever language we are going to display. thanks, At least i can type them as strings in the mean time. P Igor Costa wrote: Patrick just type the text and it works, remember that in the MXML you have the utf-8 in the definition of xml It's the same happens for us brazilians that has a lot of special characters. regards On 11/30/06, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I know how to render spanish language characters in htmlText but how do I put them into button labels? What's the best practice for this... these are the kind of utf-codes my Remoting methods are returning: #191; Thanks, Patrick -- Igor Costa www.igorcosta.com http://www.igorcosta.com
Re: [flexcoders] ...UITextField - Setting styleName property doesn't work, or i don't know how use it.
I tried this approach, but using styleName does not give me the expected results... You can use styleName on Text's they work fine but not on UITextField, although it says it's a property of the UITextfield... who knows I'm relatively new at flex and swimming up stream all the time? This is the only way I know how to style the UITextField, with the TextFormatter class... However the edges look pixelated... (I'm sure there's a solution for this too) var formatter:TextFormat = new TextFormat(); formatter.bold = true; formatter.color = 0xff; formatter.font = arial; formatter.size = 20; percent.setTextFormat(formatter); I have had no other issues with Text or TextArea, with using styleName property with a stytlesheet declaration before. Patrick camlinaeizerous wrote: I haven't tested this but for 4 I would assume something similar to the following should work. var sometext:UITextField; sometext.styleName = UITextField in your style sheet you should be able to now set styles and the font, UITextField{ fontFamily: ...; } if you call it UITextField you may not have to assign the styleName. I probably don't have all of this right but it should at least help you get in the right direction. 4. How do I set the font of UITextField with stylesheet, or embedded font
Re: [flexcoders] Igor: override a resize event or lock a VBox container... no idea how
how do i override a resize event or lock a VBox container not to get smaller as children are removed just uses the override method, please take a look at the help. Igor: I searched through help, there's nothing specific mentioning overriding a method to stop a resize event. You have to figure that I'm learning so I need examples to see these work. Thanks, Patrick Regards. On 11/30/06, * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: These little things take me forever to find and i simply can't find these solutions easily, if you have a moment. Answer one or two of them. I appreciate it, i'd gladly paypal you a few bucks for a peet's coffee, i'm going to get one myself and maybe i'll have my answer when i return, yum. Thanks, Patrick 1. How do I get the length of my UITextField, not 100% - that's just plain silly 2. What if i don't want a broken image skin, no image i want nothing 3. how do i override a resize event or lock a VBox container not to get smaller as children are removed 4. How do I set the font of UITextField with stylesheet, or embedded font 5. How do I make the UITextfield's font not to be so pixelated. -- Igor Costa www.igorcosta.com http://www.igorcosta.com
Re: [flexcoders] Matt: Event Propogation - how to bubble up through components??
Matt: Am I doing something wrong because my event listeners aren't triggering anything... the code is all the way at the bottom. If you have a moment. Thanks Patrick Matt Chotin wrote: If you're using UIComponents then it should work, the events should bubble. -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of {reduxdj} Sent: Monday, November 27, 2006 8:36 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Event Propogation - how to bubble up through components?? Matt: I'm adding UIComponents to the display list - I guess that wouldn't work this way. What's the best way to propagate a method to UIComponents? Can I just create new UIObjects and add them as children to my display list or do I have to create class files and extend my classes that way? As you see I'm relatively new to flex and I thank you for your time. patrick Matt Chotin wrote: Is the whole parent hierarchy DisplayObjects? Bubbling will only go through UI objects, if you had something that didn't extend DisplayObject in there it won't bubble up (all of the Flex visual components are DisplayObjects) -- *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] *On Behalf Of [EMAIL PROTECTED] mailto:%2Adj%40reduxdj.org *Sent:* Monday, November 27, 2006 5:39 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* [flexcoders] Event Propogation - how to bubble up through components?? I'm using bubbling, or at least i think i am to capture an event... I've extended the event class to make my own event mechanism. the events are being dispatched, however the problem is, that I'm adding an event listener to my custom mxml component to receive the events and nothing happens. I've probably got something backwards... Isn't there a way to listen to events from the parent document? Doesn't bubbling set to true allow the event to be captured by any component in the order that they are created? my code is as follows: var evt:MeEvent = new MeEvent(MeEvent.REMOTE,true); dispatchEvent(evt); --- package com.me { import flash.events.Event; public class MeEvent extends Event { public static const REMOTE:String = remote; public var realTarget:*; public function MeEvent(type:String, bubbles:Boolean=true, cancelable:Boolean=false) { super(type, bubbles, cancelable); } } } -- And inside my custom component this is the event listener. private function init():void{ this.addEventListener(MeEvent.REMOTE, handleEvent); } Thanks for your time, Patrick -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] Caingorm model1...amfphp remoting
I hear that model 1 is a great solution for simple data structures where all components can register with a dataprovider class... Does anyone have the link handy on this specific model info over on the labs? Is caingorm named after a mountain by the way? Thanks, Patrick
[flexcoders] Re: Changing relative to absolute in the middle of an app??
I have a resize effect that expands my vbox, i also have some other tween effects that use distortion effects... What I noticed is, and this is the manual, flex plays only one tween at a time, which when my distortion effects panel moves into view, my component is resized, of course that resize animation effect is canceled by my current distortion effect. Is there a way to change my vbox to lock it's size after it expands one time with it's resize effect? Then i would be all good. Thanks for your time, patrick
[flexcoders] Using a resize event 1 time only
I have a VBox with a resize effect, how do I stop the resize events after my component resizes the first time. Thanks, patrick
[flexcoders] Pop Up Panels, what to use/how to make them?
How do you make pop up boxes like the alert box? I'd like to make a panel with a textarea component pop up on top of my application in the center, not below it or inside it. I tried to use an alert box and and some stuff to it with undesirable results. Thanks, Patrick
Re: [flexcoders] Event Propogation - how to bubble up through components??
Matt: I'm adding UIComponents to the display list - I guess that wouldn't work this way. What's the best way to propagate a method to UIComponents? Can I just create new UIObjects and add them as children to my display list or do I have to create class files and extend my classes that way? As you see I'm relatively new to flex and I thank you for your time. patrick Matt Chotin wrote: Is the whole parent hierarchy DisplayObjects? Bubbling will only go through UI objects, if you had something that didn’t extend DisplayObject in there it won’t bubble up (all of the Flex visual components are DisplayObjects) *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of [EMAIL PROTECTED] *Sent:* Monday, November 27, 2006 5:39 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Event Propogation - how to bubble up through components?? I'm using bubbling, or at least i think i am to capture an event... I've extended the event class to make my own event mechanism. the events are being dispatched, however the problem is, that I'm adding an event listener to my custom mxml component to receive the events and nothing happens. I've probably got something backwards... Isn't there a way to listen to events from the parent document? Doesn't bubbling set to true allow the event to be captured by any component in the order that they are created? my code is as follows: var evt:MeEvent = new MeEvent(MeEvent.REMOTE,true); dispatchEvent(evt); --- package com.me { import flash.events.Event; public class MeEvent extends Event { public static const REMOTE:String = remote; public var realTarget:*; public function MeEvent(type:String, bubbles:Boolean=true, cancelable:Boolean=false) { super(type, bubbles, cancelable); } } } -- And inside my custom component this is the event listener. private function init():void{ this.addEventListener(MeEvent.REMOTE, handleEvent); } Thanks for your time, Patrick -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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/
Re: [flexcoders] Loader to Image
Sebastian: Why don't you create your own component like the following then you can bind your component source to your variable then you can control size and effects etc. I prefer SWFLoader to loader and i don't know why but everyone says to use that instead var box:Thumb = new Thumb(); box.pSource = myURLtoMyImage; And this way you have complete flexablilty. ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=60 height=45 styleName=thumbUp creationComplete=init() mx:Script ![CDATA[ import mx.controls.Label; [Bindable] public var tLabel:String; [Bindable] public var pSource:String; private function init():void { this.addEventListener(MouseEvent.ROLL_OVER, overEvent); this.addEventListener(MouseEvent.ROLL_OUT, outEvent); } private function overEvent(e:MouseEvent):void { this.filters = [new GlowFilter(0xFF,1,6,6,1,1)] } private function outEvent(e:MouseEvent):void { this.filters = [] } ]] /mx:Script mx:SWFLoader x=0 y=0 maintainAspectRatio=false scaleContent=false autoLoad=true id=swfLoader width=100% height=100% source={pSource} completeEffect={fadeIn}/ mx:Label textAlign=right right=0 bottom=0 color=#ff fontSize=16 fontWeight=bold fontFamily=Arial text={tLabel}/ mx:Fade id=fadeIn alphaFrom=0 alphaTo=1 / /mx:Canvas Sebastian Zarzycki wrote: I'm using Loader class to dynamically load images from server, as it's advised in Loading content dynamically of Programming ActionScript 3.0 - Flex doc. But there's one thing I don't understand. In example there, we have : | |var pictLdr:Loader = new Loader(); pictLdr.load(new URLRequest(some_url)); this.addChild(pictLdr); - and in every example, the Loader class is automatically added to a certain container. How is that different from mx:Image? I don't have image location at compilation time, it is created in runtime. Can I point mx:Image source to computed url or not? If I have to use Loader class then, is there any way to *copy* loader content into mx:Image I have in my design? I can use mx:Image as a container and put Loader into it, but then I will loose my Image properties, like automatic scaling. What I am missing? It is important for me, to see the image container in Flex Builder, so when I show the screen mockup to my client, he will be able to see that at this and this place there will be image loaded at runtime. Should I use SWFLoader maybe? -- | Sebastian Zarzycki / rat[tkin] | [EMAIL PROTECTED] | i'm a little lost in this postmodern space | gg:#2692696 / icq:#264185739 irc :#tool #ot-oa / skype:rattkin -- 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/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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/
Re: [flexcoders] adding Bitmap to a container
Mark: Instantiate a new UIComponent then try: import mx.controls.UIComponent; ... var myComponent:UIComponent = new UIComponent(); (blah blah blah - Your code here then don't forget to add that component to the display list) addChild(myComponent); This should fix your problem, hope this helps, Patrick Mark Piller wrote: I am experiencing a difficulting adding a Bitmap to a container using the addChild() method. The error i get is: TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::[EMAIL PROTECTED] to mx.core.IUIComponent. The error actually makes sense since flash.display.Bitmap does not implement IUIComponent, which aparently is required, since the doc for mx.core.Container.addChild says: Note: While the child argument to the method is specified as of type DisplayObject, the argument must implement the IUIComponent interface to be added as a child of a container. All Flex components implement this interface. However, the documentation for the Bitmap class states the following: The Bitmap() constructor allows you to create a Bitmap object that contains a reference to a BitmapData object. After you create a Bitmap object, use the addChild() or addChildAt() method of the parent DisplayObjectContainer instance to place the bitmap on the display list. Anyone has any idea what's going on with this? Is the documentation incorrect? Has anyone been able to add Bitmap to the display list? Thanks, Mark
[flexcoders] VBox Size Listener?
I have a vBox in my main application and when I add content to the vBox, the size changes. Is there a way that I can add a listener to the size of this box, and when it changes size, make it animate? I am sure there is, but I am not sure how to go about this effect. Any ideas, thanks, Patrick
[flexcoders] CSS stylesheets and Textfields
I have a stylesheet with my embedded font links that work fine, how do i use my stylesheet with a textformatter for a new text object? var formatter:TextFormat = new TextFormat(); formatter.bold = true; formatter.color = 0xFF; formatter.font = arial; formatter.size = 32; question.setTextFormat(formatter); I've tried a couple different examples and the stylesheet stuff is a little hard for me wrap my head around. I'm placing text over a rectangle that i draw, so the text class works better for me than the textfield class in this example. Thanks, Patrick
[flexcoders] SetStyle fonts in Actionscript - CSS
Hi, why can't i embed a font this way? I know this looks silly, did i miss something? Thanks, Patrick /* CSS file */ @font-face { src:url(/assets/trebucbd.ttf); fontWeight: bold; fontFamily: tres; } .myRadioText { font-family: tres; color: #0080ff; font-size:14; } var myRadioText:Text = new Text(); myRadioText.id = myRadioText; myRadioText.setStyle(color,#0080ff); myRadioText.setStyle(fontFamily,tres); myRadioText.setStyle(fontSize,14); myRadioText.styleName = myRadioText; myRadioText.text = This test; this.addChild(myRadioText);