[flexcoders] Re: How to enable ardware acceleation for AIR Player ?
Any idea if the new Nvidia / Intel deal that Adobe has signed will fix this ? --- In flexcoders@yahoogroups.com, helihobby heliho...@... wrote: That sucks the big one... We need it BIG time, look why: http://www.MediaSignage.com Regards, Sean - MediaSignage.com --- In flexcoders@yahoogroups.com, arno.manders arnomanders@ wrote: No it doesn't support hardware acceleration. I don't know why you need it for but Unity3D is a good alternative if you are planning to do something with 3D. --- In flexcoders@yahoogroups.com, helihobby helihobby@ wrote: Hello, I am trying to find out how can I enable ardware acceleation for AIR Player. It does not have the HTML wrapper so the wmode won't help. And, is there a list of compatible hardware ? Any information or links will help and I do appreciate it. Googling does reveal much which leads me to believe AIR Player may not support it, which would suck. Thanks, Sean.
[flexcoders] How to enable ardware acceleation for AIR Player ?
Hello, I am trying to find out how can I enable ardware acceleation for AIR Player. It does not have the HTML wrapper so the wmode won't help. And, is there a list of compatible hardware ? Any information or links will help and I do appreciate it. Googling does reveal much which leads me to believe AIR Player may not support it, which would suck. Thanks, Sean.
[flexcoders] Re: How to enable ardware acceleation for AIR Player ?
That sucks the big one... We need it BIG time, look why: http://www.MediaSignage.com Regards, Sean - MediaSignage.com --- In flexcoders@yahoogroups.com, arno.manders arnomand...@... wrote: No it doesn't support hardware acceleration. I don't know why you need it for but Unity3D is a good alternative if you are planning to do something with 3D. --- In flexcoders@yahoogroups.com, helihobby helihobby@ wrote: Hello, I am trying to find out how can I enable ardware acceleation for AIR Player. It does not have the HTML wrapper so the wmode won't help. And, is there a list of compatible hardware ? Any information or links will help and I do appreciate it. Googling does reveal much which leads me to believe AIR Player may not support it, which would suck. Thanks, Sean.
[flexcoders] A must see new Application in Flex - Free Digital Signage powered Adobe's Flex
I am happy to announce that after 2 years of intense development we have finally released our Free Digital Signage Flex beta web application. You can check it out at: http://www.MediaSignage.com The application is powered by over 50 SWF modules and we have put extensive planning and design into the overall architecture of this web application. We had to re-write some of Adobe's code to fix bugs they have in order to make sure that AIR Player is completely memory leak free and can run for long periods. We have also used many class services such as a state manager, event manager, db manager and more. Digital Signage are Monitors which are installed in public areas. With our software you can use the Signage Studio backend powered by Flex to configure your Signage presentation. You can view your presentation using the Signage WEB Player. For dedicated Signage Players we recommend that you use our desktop installed AIR Player which includes Caching engine, tuner card support and remote management. We will also have a reseller program soon that you can sell Digital Signage and get 50% from the account's total recurring charge. Please give us some feedback and if you know someone that can benefit from Digital Signage ( retail store, dentist office etc ... ) please let them know ( its free for the first AIR Player license ) Regards, Sean - MediaSignage.com
[flexcoders] Need Help !!! Security box error loading SWF Animation due to new Flash Security
Please anyone... I am pulling my hair our for 3 days and REALLY could use some help ... We have a flex application which loads Flash CS3 animation. We can load the animation and view the animation problem. However if we try to talk to the loaded swf ( loader.content ) which is by the way is downloading from a different domain than our main application, we get the famous Security Box error. We have tried putting the crossdomain files in both locations ( where our main swf is download as well as where we are downloading the animation swf from ) ... with no help ... I have read the new security updates at: http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.htm l My question is this.. In order for us to talk to a loaded swf ( Flash CS3 swf ) that downloaded from a different domain than our application, do we need to use a XML Socket Server ( the new server the link is talking about ) or loading the crossdomains.xml should be enough ( which is not working for the life of me ) ? Thanks for the time, Sean.
[flexcoders] Re: Need Help !!! Security box error loading SWF Animation due to new Flash Security
Link for articale: www.adobe.com/devnet/flashplayer/articles/fplayer9_security.htm --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: Please anyone... I am pulling my hair our for 3 days and REALLY could use some help ... We have a flex application which loads Flash CS3 animation. We can load the animation and view the animation problem. However if we try to talk to the loaded swf ( loader.content ) which is by the way is downloading from a different domain than our main application, we get the famous Security Box error. We have tried putting the crossdomain files in both locations ( where our main swf is download as well as where we are downloading the animation swf from ) ... with no help ... I have read the new security updates at: http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.htm l My question is this.. In order for us to talk to a loaded swf ( Flash CS3 swf ) that downloaded from a different domain than our application, do we need to use a XML Socket Server ( the new server the link is talking about ) or loading the crossdomains.xml should be enough ( which is not working for the life of me ) ? Thanks for the time, Sean.
[flexcoders] Re: Need Help !!! Security box error loading SWF Animation due to new Flash Security
Link for article: www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: Please anyone... I am pulling my hair our for 3 days and REALLY could use some help ... We have a flex application which loads Flash CS3 animation. We can load the animation and view the animation problem. However if we try to talk to the loaded swf ( loader.content ) which is by the way is downloading from a different domain than our main application, we get the famous Security Box error. We have tried putting the crossdomain files in both locations ( where our main swf is download as well as where we are downloading the animation swf from ) ... with no help ... I have read the new security updates at: http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.htm l My question is this.. In order for us to talk to a loaded swf ( Flash CS3 swf ) that downloaded from a different domain than our application, do we need to use a XML Socket Server ( the new server the link is talking about ) or loading the crossdomains.xml should be enough ( which is not working for the life of me ) ? Thanks for the time, Sean.
[flexcoders] PLEASE Help. Why some Flash CS3 swf can be unloaded in Flex and why some can't ?
Hi Guys, I am having a BIG problem with loading and unloading Flash CS3 animation ? You can download the two swf animations... Good.swf is good and can be unload while Bad.swf can not be unloaded http://www.helihobby.com/html/TestSWFs.zip Is there something I am missing ? Is this a Flex / AIR bug ? Do I need to implement something in Flash CS3 animation swf for this to work ? Thanks alot for the time, Sean. Here is a sample code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=onInit() mx:Script ![CDATA[ import mx.modules.ModuleLoader; import mx.core.UIComponent; import mx.controls.SWFLoader; private var m_ui:UIComponent private var m_loader:Loader; private var m_timer:Timer = new Timer(1 * 60 * 1000); private function onInit():void { m_ui = new UIComponent(); m_ui.width=400; m_ui.height=400; addChild(m_ui); m_timer.addEventListener (TimerEvent.TIMER, onTimer); m_timer.start(); onTimer(null); } private function onTimer (event:TimerEvent):void { if (m_loader!=null) { m_ui.visible = false; return; m_loader.unload(); m_ui.removeChild(m_loader); m_ui.validateNow(); m_loader = null; } m_loader = new Loader(); var request:URLRequest = new URLRequest(Good.swf); m_loader.load(request); m_ui.addChild(m_loader); m_ui.validateNow(); System.gc(); } ]] /mx:Script /mx:Application
[flexcoders] Re: PLEASE Help. Why some Flash CS3 swf can be unloaded in Flex and why some can't ?
Just wanted to add the Unload button x= is very high so change to x=0 so you can see it ... Also, when you click unload it WILL seem that the swf unloaded but if you turn on your speakers you will still hear the sound playing AND if you check memory you will see that the swf never released. Thanks again, Sean. --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: Hi Guys, I am having a BIG problem with loading and unloading Flash CS3 animation ? You can download the two swf animations... Good.swf is good and can be unload while Bad.swf can not be unloaded http://www.helihobby.com/html/TestSWFs.zip Is there something I am missing ? Is this a Flex / AIR bug ? Do I need to implement something in Flash CS3 animation swf for this to work ? Thanks alot for the time, Sean. Here is a sample code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=onInit() mx:Script ![CDATA[ import mx.modules.ModuleLoader; import mx.core.UIComponent; import mx.controls.SWFLoader; private var m_ui:UIComponent private var m_loader:Loader; private var m_timer:Timer = new Timer(1 * 60 * 1000); private function onInit():void { m_ui = new UIComponent(); m_ui.width=400; m_ui.height=400; addChild(m_ui); m_timer.addEventListener (TimerEvent.TIMER, onTimer); m_timer.start(); onTimer(null); } private function onTimer (event:TimerEvent):void { if (m_loader!=null) { m_ui.visible = false; return; m_loader.unload(); m_ui.removeChild(m_loader); m_ui.validateNow(); m_loader = null; } m_loader = new Loader(); var request:URLRequest = new URLRequest(Good.swf); m_loader.load(request); m_ui.addChild(m_loader); m_ui.validateNow(); System.gc(); } ]] /mx:Script /mx:Application
[flexcoders] How can I stop/kill a running SWF which was loaded with SWFLoader ?
Hi All, I have a swf which I loaded via SWFLoader. It runs fine however how can I kill it. I dont have the source FLA so I cant add actionscript inside the SWF. I must kill it from the outside. when I set the swfLoad.load(null) or swfLoad = null or even swfLoad.source = null after it has been running for a few seconds I can still hear the SWF sound playing in the backgound ... It just won't die :( Is there anyway to terminate the running loaded swf ? Regards, Sean.
[flexcoders] Re: How can I stop/kill a running SWF which was loaded with SWFLoader ?
Thx. I will try it. Regards, Sean - HeliHobby.com --- In flexcoders@yahoogroups.com, mickaelairial [EMAIL PROTECTED] wrote: May be you can use the Loader class instead the SWFLoader. The Loader class have an unload() method... May be this can really unload your movie ? --- In flexcoders@yahoogroups.com, helihobby helihobby@ wrote: Hi All, I have a swf which I loaded via SWFLoader. It runs fine however how can I kill it. I dont have the source FLA so I cant add actionscript inside the SWF. I must kill it from the outside. when I set the swfLoad.load(null) or swfLoad = null or even swfLoad.source = null after it has been running for a few seconds I can still hear the SWF sound playing in the backgound ... It just won't die :( Is there anyway to terminate the running loaded swf ? Regards, Sean.
[flexcoders] Please Help. Pulling hair with TileList and FilterFunction
Hello and thanks for reading this !!! I am using a TileList with a FilterFunction on the dataprovider which is an XMLListCollection. mx:TileList id=productTiles dragEnabled=true dragMoveEnabled=false height=100% width=100% useRollOver=false fontStyle=normal columnCount={m_columCount} rowCount={m_rowCount} selectionColor=WHITE direction=horizontal borderThickness=0 itemRenderer=ProductRenderer dataProvider={m_products} allowMultipleSelection=false / And my Filter Function is: private function searchDemo(item:Object):Boolean{ var src:String = filterText.text; var dst:String = XML(item).toXMLString(); var isMatch:Boolean = false if(dst.toLocaleLowerCase().search(src.toLowerCase()) != -1){ isMatch = true } return isMatch; } The problem is when I type text in a Text Entry Box the TileList shrinks to show the matched string ( which is good ) HOWEVER, When I start dragging a Tile Item the faded Icon is of the wrong image as if the TileList did not fully update the XMLList collection or something. Is there something I need to do in order to tell my TileList the the data provider ( XMLListCollection ) is filtered ? I do execute the refresh() on my FilterFunction and all seem ok only that when starting to drag items from the filtered TileList does not work correctly ... Please Help... Thanks again, Sean.
[flexcoders] How can I save XML path deep inside my XML data ?
Hello, I have a very large XML. I have a function which reads the XML and finds something that I am looking for ( lets say data123 ) Once I find it I wish to save the absolute path to it ... Is that possible ? For example: I wish to save: myXml.books[0].book.covers.cover[2].items[2].data123 However I can not build the above statement since the XML is dynamic. I wish for the function to return the absolute path of the item after I find it ... Thanks in advance, Sean.
[flexcoders] Re: How can I save XML path deep inside my XML data ?
I mean, I would like to be able to get the same exact location in the XML path every time I run my for loop and stop on some condition. For example some sort of function that returns: myXml.books[0].book.covers.cover[2].items[2].data123 if data123 is the value in my For Loop that I break on ( match on ) on the XML in question. Hope this helps, Sean. --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: What do you mean by ...save the absolute path...? Save a reference? Save a string representation of the ancestor chain? What do you want to do? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of helihobby Sent: Thursday, January 31, 2008 6:42 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How can I save XML path deep inside my XML data ? Hello, I have a very large XML. I have a function which reads the XML and finds something that I am looking for ( lets say data123 ) Once I find it I wish to save the absolute path to it ... Is that possible ? For example: I wish to save: myXml.books[0].book.covers.cover[2].items[2].data123 However I can not build the above statement since the XML is dynamic. I wish for the function to return the absolute path of the item after I find it ... Thanks in advance, Sean.
[flexcoders] Is Module Debugging supported in Adobe Air ?
Hello, I am trying to debug a Module in Adobe Air and the debugger just skips over the breakpoints ( in the loaded module that is ) ... Does anyone know if this is supported or will be supported and if so ... when ? Regards, Sean - HeliHobby.com
[flexcoders] Re: FW: How can I tell length or size of object ( not array ) but object ..
Ok thx. Sean. --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: It is probably MUCH faster to use a for-in loop to count the fields. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas Sent: Friday, January 04, 2008 1:10 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] FW: How can I tell length or size of object ( not array ) but object .. forwarding Dimitrios Gianninas RIA Developer and Team Lead Optimal Payments Inc. -Original Message- From: [EMAIL PROTECTED] mailto:flexcoders-owner%40yahoogroups.com [mailto:[EMAIL PROTECTED] mailto:flexcoders-owner%40yahoogroups.com ] On Behalf Of Jethro Grassie Sent: Friday, January 04, 2008 4:08 PM To: [EMAIL PROTECTED] mailto:flexcoders-owner%40yahoogroups.com Subject: Re: How can I tell length or size of object ( not array ) but object .. ObjectUtil.getClassInfo(myobj).properties.length; --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , helihobby helihobby@ wrote: Is there a way to know a size of an object ( hash table ) without doing a for loop ? as in: var o:Object = new Object(); o.a = aa; o.b = bb; o.length or o.size does not work ? So how can I know size without doing a loop every time ? Regards, Sean. -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
[flexcoders] Re: Adobe Air Error on new install - Unable to locate specified base class
Anyone ? --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: Any one has an idea why I get the following error when I try to start a new AIR Desktop Project in Flex Beta Builder 3 ? Unable to locate specified base class 'mx.core.WindowedApplication' for component class 'MyAir'. Air/src MyAir.mxml Unknown 1199416949109 6226 I think I need to point the app to the SDK I download but tried different things and can't seem to point it to the SDK... Any help ? Thanks, Sean.
[flexcoders] How can I tell length or size of object ( not array ) but object ..
Is there a way to know a size of an object ( hash table ) without doing a for loop ? as in: var o:Object = new Object(); o.a = aa; o.b = bb; o.length or o.size does not work ? So how can I know size without doing a loop every time ? Regards, Sean.
[flexcoders] Adobe Air Error on new install - Unable to locate specified base class
Any one has an idea why I get the following error when I try to start a new AIR Desktop Project in Flex Beta Builder 3 ? Unable to locate specified base class 'mx.core.WindowedApplication' for component class 'MyAir'.Air/src MyAir.mxml Unknown 1199416949109 6226 I think I need to point the app to the SDK I download but tried different things and can't seem to point it to the SDK... Any help ? Thanks, Sean.
[flexcoders] What;s the method you set to run when property is undefined - default set/get ?
I remember I read once that you can set a default setter getter method to run when a setter or getter is executed that is not available in the class ... anyone knows the name of that method ? Thanks, Sean.
[flexcoders] Can anyone help me get this amazing fire effect work ...
I got this Effect from a friend and its written in Flash but all in Actionscript 3 so it should work for Flex as well ... right ? The code is posted... Can anyone help get this to work. Its an amazing fire effect. Here is the code. ( PS in Flash CS3 it works great !!! ) ?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 flash.display.BitmapData; import flash.geom.Rectangle; import flash.geom.Point; import flash.geom.Matrix; import flash.filters.ColorMatrixFilter; import flash.filters.GlowFilter; import flash.filters.DisplacementMapFilter; private function setFire(mc:MovieClip):MovieClip { // hide the original MC mc.visible =false; // calculate the bounds and apply aa padding offset to accomodate the FX var bounds:Object = mc.getBounds(mc); var offset_y:Number =30 var offset_x:Number =10 var w:Number = bounds.width +offset_x var h:Number = bounds.height +offset_y bounds.x=bounds.x-offset_x/2 bounds.y=bounds.y-offset_y/2 // creat our FX copy var clip=new MovieClip(); //create a 'holder' so we can math the original clips registration point exactly var holder:MovieClip=new MovieClip() //add 'clip' to the main display object and add 'holder' as a child of 'clip'. this.addChild(clip); clip.addChild(holder); holder.name=fire_holder+clip.getChildIndex(holder); // set up our bitmap data var fireMC:Bitmap=new Bitmap(); var shad:Bitmap=new Bitmap() var grad:Sprite=new Sprite();; // set up the flame colouring var fillType:String = GradientType.LINEAR; var colors:Array var glow:GlowFilter // try some different colour flames out here: colors = [0xFF, 0xFF6600, 0xFFCC00, 0xFF] //colors = [0x33, 0x3399FF, 0x33, 0xFF] //colors = [0x006600, 0x009900, 0x00CC00, 0xFF] //colors = [0xCC0099, 0xFF66FF, 0xFFCCFF, 0xFF] //colors = [0x9900FF, 0xCC99FF,0xFF, 0xFF] var alphas:Array = [100, 100, 100, 100]; var ratios:Array = [90, 110,130, 255]; var interpolationMethod:String= InterpolationMethod.LINEAR_RGB var matr:Matrix = new Matrix(); matr.createGradientBox( w, h, -(270/180)*Math.PI,0, h); var spreadMethod:String = SpreadMethod.REFLECT; // draw the flame colouring grad.graphics.beginGradientFill(fillType, colors, alphas, ratios, matr, spreadMethod, interpolationMethod); grad.graphics.moveTo(0, 0); grad.graphics.lineTo(w, 0); grad.graphics.lineTo(w, h); grad.graphics.lineTo(0, h); grad.graphics.lineTo(0, 0); grad.graphics.endFill(); //holder.addChild(grad);//uncomment this to see that your gradient is working properly // create a glow filter glow = new GlowFilter(colors[1], 1, 13, 13, 2, 1, false, false); // set up our bitmap data var gradBmp:BitmapData = new BitmapData(w, h, true, 0x); gradBmp.draw(grad); var bitmap:BitmapData = new BitmapData(w, h, true, 0x); var fireBitmap:BitmapData = new BitmapData(w, h, true, 0x); // copy the original MC bitmap.draw(mc, new Matrix(1,0,0,1,bounds.x*-1,bounds.y*-1)); // set x and y positions holder.x=bounds.x holder.y=bounds.y clip.x=mc.x; clip.y=mc.y; // combine the gradient colours with the non alpha'd area of the MC bitmap.copyPixels(gradBmp, gradBmp.rect, new Point(0,0), bitmap, new Point(0, 0), true); // create a silhouette to sit on top
[flexcoders] Re: Can anyone help me get this amazing fire effect work ...
Please Please Please Please Please Please Please post the working example ... That will help me so much THANKS A MILLION, Sean. --- In flexcoders@yahoogroups.com, simonjpalmer [EMAIL PROTECTED] wrote: I got it working... couple of things: 1) Buttons are not movie clips, they are sprites and don't have a timeline, so you have to create a movie clip and add your text to it. 2) You have to add the clips to the application's stage, not the application itself. if you hack around a little you should be able to get it to work. If you are really stuck I'll post my mods. The effect is a bit underwhelming... --- In flexcoders@yahoogroups.com, Corey Smaller corey_smaller@ wrote: - http://flexlib.googlecode.com/svn/trunk/docs/flexlib/controls/Fire.html is this the same code? should work -- In flexcoders@yahoogroups.com, helihobby helihobby@ wrote: I got this Effect from a friend and its written in Flash but all in Actionscript 3 so it should work for Flex as well ... right ? The code is posted... Can anyone help get this to work. Its an amazing fire effect. Here is the code. ( PS in Flash CS3 it works great !!! ) ?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 flash.display.BitmapData; import flash.geom.Rectangle; import flash.geom.Point; import flash.geom.Matrix; import flash.filters.ColorMatrixFilter; import flash.filters.GlowFilter; import flash.filters.DisplacementMapFilter; private function setFire(mc:MovieClip):MovieClip { // hide the original MC mc.visible =false; // calculate the bounds and apply aa padding offset to accomodate the FX var bounds:Object = mc.getBounds(mc); var offset_y:Number =30 var offset_x:Number =10 var w:Number = bounds.width +offset_x var h:Number = bounds.height +offset_y bounds.x=bounds.x-offset_x/2 bounds.y=bounds.y-offset_y/2 // creat our FX copy var clip=new MovieClip(); //create a 'holder' so we can math the original clips registration point exactly var holder:MovieClip=new MovieClip() //add 'clip' to the main display object and add 'holder' as a child of 'clip'. this.addChild(clip); clip.addChild(holder); holder.name=fire_holder+clip.getChildIndex(holder); // set up our bitmap data var fireMC:Bitmap=new Bitmap(); var shad:Bitmap=new Bitmap() var grad:Sprite=new Sprite();; // set up the flame colouring var fillType:String = GradientType.LINEAR; var colors:Array var glow:GlowFilter // try some different colour flames out here: colors = [0xFF, 0xFF6600, 0xFFCC00, 0xFF] //colors = [0x33, 0x3399FF, 0x33, 0xFF] //colors = [0x006600, 0x009900, 0x00CC00, 0xFF] //colors = [0xCC0099, 0xFF66FF, 0xFFCCFF, 0xFF] //colors = [0x9900FF, 0xCC99FF,0xFF, 0xFF] var alphas:Array = [100, 100, 100, 100]; var ratios:Array = [90, 110,130, 255]; var interpolationMethod:String= InterpolationMethod.LINEAR_RGB var matr:Matrix = new Matrix(); matr.createGradientBox( w, h, -(270/180)*Math.PI,0, h); var spreadMethod:String = SpreadMethod.REFLECT; // draw the flame colouring grad.graphics.beginGradientFill(fillType, colors, alphas, ratios, matr, spreadMethod, interpolationMethod); grad.graphics.moveTo(0, 0); grad.graphics.lineTo(w, 0); grad.graphics.lineTo(w, h); grad.graphics.lineTo(0, h); grad.graphics.lineTo(0, 0); grad.graphics.endFill(); //holder.addChild(grad);//uncomment this to see that your gradient is working properly // create a glow filter glow = new GlowFilter(colors[1], 1, 13, 13, 2, 1, false, false); // set up our bitmap data var gradBmp:BitmapData = new BitmapData(w, h, true
[flexcoders] Re: Can anyone help me get this amazing fire effect work ...
No that's a different lib ... can anyone get this one working . please ... --- In flexcoders@yahoogroups.com, Corey Smaller [EMAIL PROTECTED] wrote: - http://flexlib.googlecode.com/svn/trunk/docs/flexlib/controls/Fire.html is this the same code? should work -- In flexcoders@yahoogroups.com, helihobby helihobby@ wrote: I got this Effect from a friend and its written in Flash but all in Actionscript 3 so it should work for Flex as well ... right ? The code is posted... Can anyone help get this to work. Its an amazing fire effect. Here is the code. ( PS in Flash CS3 it works great !!! ) ?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 flash.display.BitmapData; import flash.geom.Rectangle; import flash.geom.Point; import flash.geom.Matrix; import flash.filters.ColorMatrixFilter; import flash.filters.GlowFilter; import flash.filters.DisplacementMapFilter; private function setFire(mc:MovieClip):MovieClip { // hide the original MC mc.visible =false; // calculate the bounds and apply aa padding offset to accomodate the FX var bounds:Object = mc.getBounds(mc); var offset_y:Number =30 var offset_x:Number =10 var w:Number = bounds.width +offset_x var h:Number = bounds.height +offset_y bounds.x=bounds.x-offset_x/2 bounds.y=bounds.y-offset_y/2 // creat our FX copy var clip=new MovieClip(); //create a 'holder' so we can math the original clips registration point exactly var holder:MovieClip=new MovieClip() //add 'clip' to the main display object and add 'holder' as a child of 'clip'. this.addChild(clip); clip.addChild(holder); holder.name=fire_holder+clip.getChildIndex(holder); // set up our bitmap data var fireMC:Bitmap=new Bitmap(); var shad:Bitmap=new Bitmap() var grad:Sprite=new Sprite();; // set up the flame colouring var fillType:String = GradientType.LINEAR; var colors:Array var glow:GlowFilter // try some different colour flames out here: colors = [0xFF, 0xFF6600, 0xFFCC00, 0xFF] //colors = [0x33, 0x3399FF, 0x33, 0xFF] //colors = [0x006600, 0x009900, 0x00CC00, 0xFF] //colors = [0xCC0099, 0xFF66FF, 0xFFCCFF, 0xFF] //colors = [0x9900FF, 0xCC99FF,0xFF, 0xFF] var alphas:Array = [100, 100, 100, 100]; var ratios:Array = [90, 110,130, 255]; var interpolationMethod:String= InterpolationMethod.LINEAR_RGB var matr:Matrix = new Matrix(); matr.createGradientBox( w, h, -(270/180)*Math.PI,0, h); var spreadMethod:String = SpreadMethod.REFLECT; // draw the flame colouring grad.graphics.beginGradientFill(fillType, colors, alphas, ratios, matr, spreadMethod, interpolationMethod); grad.graphics.moveTo(0, 0); grad.graphics.lineTo(w, 0); grad.graphics.lineTo(w, h); grad.graphics.lineTo(0, h); grad.graphics.lineTo(0, 0); grad.graphics.endFill(); //holder.addChild(grad);//uncomment this to see that your gradient is working properly // create a glow filter glow = new GlowFilter(colors[1], 1, 13, 13, 2, 1, false, false); // set up our bitmap data var gradBmp:BitmapData = new BitmapData(w, h, true, 0x); gradBmp.draw(grad); var bitmap:BitmapData = new BitmapData(w, h, true, 0x); var fireBitmap:BitmapData = new BitmapData(w, h, true, 0x); // copy the original MC bitmap.draw(mc, new Matrix(1,0,0,1,bounds.x*-1,bounds.y*-1)); // set x and y positions holder.x=bounds.x holder.y=bounds.y clip.x=mc.x; clip.y=mc.y
[flexcoders] Re: Can anyone help me get this amazing fire effect work ...
Tried this with no luck :( private function init():void { mc = new MovieClip() var t:Text = new Text(); t.text = Doron; mc.addChild(t); stage.addChild(mc); mc.width = 100; mc.height = 100; mc.visible = true; var flamingText = setFire(mc)// } --- In flexcoders@yahoogroups.com, simonjpalmer [EMAIL PROTECTED] wrote: I got it working... couple of things: 1) Buttons are not movie clips, they are sprites and don't have a timeline, so you have to create a movie clip and add your text to it. 2) You have to add the clips to the application's stage, not the application itself. if you hack around a little you should be able to get it to work. If you are really stuck I'll post my mods. The effect is a bit underwhelming... --- In flexcoders@yahoogroups.com, Corey Smaller corey_smaller@ wrote: - http://flexlib.googlecode.com/svn/trunk/docs/flexlib/controls/Fire.html is this the same code? should work -- In flexcoders@yahoogroups.com, helihobby helihobby@ wrote: I got this Effect from a friend and its written in Flash but all in Actionscript 3 so it should work for Flex as well ... right ? The code is posted... Can anyone help get this to work. Its an amazing fire effect. Here is the code. ( PS in Flash CS3 it works great !!! ) ?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 flash.display.BitmapData; import flash.geom.Rectangle; import flash.geom.Point; import flash.geom.Matrix; import flash.filters.ColorMatrixFilter; import flash.filters.GlowFilter; import flash.filters.DisplacementMapFilter; private function setFire(mc:MovieClip):MovieClip { // hide the original MC mc.visible =false; // calculate the bounds and apply aa padding offset to accomodate the FX var bounds:Object = mc.getBounds(mc); var offset_y:Number =30 var offset_x:Number =10 var w:Number = bounds.width +offset_x var h:Number = bounds.height +offset_y bounds.x=bounds.x-offset_x/2 bounds.y=bounds.y-offset_y/2 // creat our FX copy var clip=new MovieClip(); //create a 'holder' so we can math the original clips registration point exactly var holder:MovieClip=new MovieClip() //add 'clip' to the main display object and add 'holder' as a child of 'clip'. this.addChild(clip); clip.addChild(holder); holder.name=fire_holder+clip.getChildIndex(holder); // set up our bitmap data var fireMC:Bitmap=new Bitmap(); var shad:Bitmap=new Bitmap() var grad:Sprite=new Sprite();; // set up the flame colouring var fillType:String = GradientType.LINEAR; var colors:Array var glow:GlowFilter // try some different colour flames out here: colors = [0xFF, 0xFF6600, 0xFFCC00, 0xFF] //colors = [0x33, 0x3399FF, 0x33, 0xFF] //colors = [0x006600, 0x009900, 0x00CC00, 0xFF] //colors = [0xCC0099, 0xFF66FF, 0xFFCCFF, 0xFF] //colors = [0x9900FF, 0xCC99FF,0xFF, 0xFF] var alphas:Array = [100, 100, 100, 100]; var ratios:Array = [90, 110,130, 255]; var interpolationMethod:String= InterpolationMethod.LINEAR_RGB var matr:Matrix = new Matrix(); matr.createGradientBox( w, h, -(270/180)*Math.PI,0, h); var spreadMethod:String = SpreadMethod.REFLECT; // draw the flame colouring grad.graphics.beginGradientFill(fillType, colors, alphas, ratios, matr, spreadMethod, interpolationMethod); grad.graphics.moveTo(0, 0); grad.graphics.lineTo(w, 0); grad.graphics.lineTo(w, h); grad.graphics.lineTo(0, h); grad.graphics.lineTo(0, 0); grad.graphics.endFill
[flexcoders] How can I add Sprite / MovieClip to stage without error of not UIComponent
How can I add Sprite / MovieClip to stage without error of not UIComponent ? Everytine I add a Sprite or MC I get the error ... even if I try to cast to a DisplayObject ... Any help is greatly appreciated ... Sean.
[flexcoders] Re: How can I add Sprite / MovieClip to stage without error of not UIComponent
This is the exact error I get: Main Thread (Suspended: TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::[EMAIL PROTECTED] to mx.core.IUIComponent.) mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::addingChild mx.core::Container/addChildAt mx.core::Container/addChild TestAS12344/setFire TestAS12344/onClick TestAS12344/__bb_click --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: How can I add Sprite / MovieClip to stage without error of not UIComponent ? Everytine I add a Sprite or MC I get the error ... even if I try to cast to a DisplayObject ... Any help is greatly appreciated ... Sean.
[flexcoders] Re: How can I add Sprite / MovieClip to stage without error of not UIComponent
Can you post an example please ? --- In flexcoders@yahoogroups.com, Jonathan Lee [EMAIL PROTECTED] wrote: What I did is just add a UIComponent under the container as a child. The add everything meaningful stuff as child of that UIComponent. helihobby [EMAIL PROTECTED] wrote: This is the exact error I get: Main Thread (Suspended: TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::[EMAIL PROTECTED] to mx.core.IUIComponent.) mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::addingChild mx.core::Container/addChildAt mx.core::Container/addChild TestAS12344/setFire TestAS12344/onClick TestAS12344/__bb_click --- In flexcoders@yahoogroups.com, helihobby helihobby@ wrote: How can I add Sprite / MovieClip to stage without error of not UIComponent ? Everytine I add a Sprite or MC I get the error ... even if I try to cast to a DisplayObject ... Any help is greatly appreciated ... Sean. - Looking for last minute shopping deals? Find them fast with Yahoo! Search.
[flexcoders] Re: Why does my Tree Control Vertically scrolls on its own ?
Got it !!! Thanks again for the help and time... Sean. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: If the tree is a droptarget, the dragscroll will kick in to allow you a chance to scroll before dropping. If you don't ever want to drop on that tree, set dropEnabled=false From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of helihobby Sent: Wednesday, December 19, 2007 6:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Why does my Tree Control Vertically scrolls on its own ? I was doing ... DragManager.acceptDragDrop(target); But why would this screw it up ? Regards, Sean. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , helihobby helihobby@ wrote: It sure was ... I did: override protected function dragScroll():void {} Which solved the problem ... Thanks. Any idea what it was being called ? My dropTarget was set on another canvas ... Can you explain ? Thank you for all the help, sean. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: That's probably the dragScroll kicking in. Is dropTarget=true? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of helihobby Sent: Wednesday, December 19, 2007 1:26 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Why does my Tree Control Vertically scrolls on its own ? Hi All, I have my mx:tree set to liveScrolling false and yet when I drag items out of the Tree the vertical scroll bar / tree scrolls down as if I am scrolling down ... I wish for the tree to remain on its current scroll position ... Is this a bug in Flex SDK 2.01 ? Regards, Sean.
[flexcoders] Re: Why does my Tree Control Vertically scrolls on its own ?
Got it !!! Thanks again for the help and time... Regards, Sean. Click below to view my ALON Design Pattern: http://www.helihobby.com/html/alon_desingpattern.html --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: If the tree is a droptarget, the dragscroll will kick in to allow you a chance to scroll before dropping. If you don't ever want to drop on that tree, set dropEnabled=false From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of helihobby Sent: Wednesday, December 19, 2007 6:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Why does my Tree Control Vertically scrolls on its own ? I was doing ... DragManager.acceptDragDrop(target); But why would this screw it up ? Regards, Sean. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , helihobby helihobby@ wrote: It sure was ... I did: override protected function dragScroll():void {} Which solved the problem ... Thanks. Any idea what it was being called ? My dropTarget was set on another canvas ... Can you explain ? Thank you for all the help, sean. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: That's probably the dragScroll kicking in. Is dropTarget=true? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of helihobby Sent: Wednesday, December 19, 2007 1:26 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Why does my Tree Control Vertically scrolls on its own ? Hi All, I have my mx:tree set to liveScrolling false and yet when I drag items out of the Tree the vertical scroll bar / tree scrolls down as if I am scrolling down ... I wish for the tree to remain on its current scroll position ... Is this a bug in Flex SDK 2.01 ? Regards, Sean.
[flexcoders] Why does my Tree Control Vertically scrolls on its own ?
Hi All, I have my mx:tree set to liveScrolling false and yet when I drag items out of the Tree the vertical scroll bar / tree scrolls down as if I am scrolling down ... I wish for the tree to remain on its current scroll position ... Is this a bug in Flex SDK 2.01 ? Regards, Sean.
[flexcoders] Re: Why does my Tree Control Vertically scrolls on its own ?
It sure was ... I did: override protected function dragScroll():void {} Which solved the problem ... Thanks. Any idea what it was being called ? My dropTarget was set on another canvas ... Can you explain ? Thank you for all the help, sean. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: That's probably the dragScroll kicking in. Is dropTarget=true? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of helihobby Sent: Wednesday, December 19, 2007 1:26 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Why does my Tree Control Vertically scrolls on its own ? Hi All, I have my mx:tree set to liveScrolling false and yet when I drag items out of the Tree the vertical scroll bar / tree scrolls down as if I am scrolling down ... I wish for the tree to remain on its current scroll position ... Is this a bug in Flex SDK 2.01 ? Regards, Sean.
[flexcoders] Re: Why does my Tree Control Vertically scrolls on its own ?
I was doing ... DragManager.acceptDragDrop(target); But why would this screw it up ? Regards, Sean. --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: It sure was ... I did: override protected function dragScroll():void {} Which solved the problem ... Thanks. Any idea what it was being called ? My dropTarget was set on another canvas ... Can you explain ? Thank you for all the help, sean. --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: That's probably the dragScroll kicking in. Is dropTarget=true? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of helihobby Sent: Wednesday, December 19, 2007 1:26 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Why does my Tree Control Vertically scrolls on its own ? Hi All, I have my mx:tree set to liveScrolling false and yet when I drag items out of the Tree the vertical scroll bar / tree scrolls down as if I am scrolling down ... I wish for the tree to remain on its current scroll position ... Is this a bug in Flex SDK 2.01 ? Regards, Sean.
[flexcoders] Re: How come setStyle(width,100%) does not change container back to 100% ?
Thank you all and thank s much Johnny for the answer ... Regards, Sean. --- In flexcoders@yahoogroups.com, Jhonny Everson [EMAIL PROTECTED] wrote: You can use the property percentWidth; you code could be: this.percentWidth = 100; -- Jhonny Everson
[flexcoders] How come setStyle(width,100%) does not change container back to 100% ?
Hello, This is something that has been beugging me for a long time ( ever since Flex Beta 2 Beta ). When I set a container ( lets say VBox ) to 100% width using MXML inline than all is great. mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% creationComplete=init() If you set it using the setStyle(width,100%) in ActionScript 3 however: this.setStyle(width,100%); its as if the set style does not take effect... My VBox remains the fixed width as it was when I original created it ... :( Is this a BUG ? Am I missing something here ? Do we need to use StyleManager to refresh or something ... Tried to google this with no luck !!! Thanks in advance, Sean.
[flexcoders] Re: this,border exists in debug but not in my class ? How do I access my prog sk
anyone can help ? --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: Subject: this,border exists in debug but not in my class ? How do I access my prog skin ? Hello, I need to get the instance of my programmatic skin. I see my instance in the debugger when I break point and it lives in: this.border However when I try to access it via ActionScript I get an error that this property / instance does not exist. How come the debugger can see it and I can't access it. I know that this.border is in fact pointing to the memory location of my instance ,,, but how do I get a reference to it ? If the debugger showes it .. should'nt I have access to it as well via this.border ? So.. How do I get access to my programmatic skin ? Thank you all, Sean.
[flexcoders] Re: this,border exists in debug but not in my class ? How do I access my prog sk
Sure. I have a programmable skin which I enable using actionscript as in: this.setStyle(borderSkin,com.classes.TileBackground); Later on I want to access the instance of my newly created skin getStyle does not do the trick as it return null. this.border in the same class I executed the above line does point to the correct instance of TileBackground ( when I view it in debugger ) but I can't access it in the instance it lives in ... So I can access it ? Hope this helps ... Regards, Sean. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Can you post some code? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of helihobby Sent: Tuesday, December 11, 2007 11:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] this,border exists in debug but not in my class ? How do I access my prog skin ? Subject: this,border exists in debug but not in my class ? How do I access my prog skin ? Hello, I need to get the instance of my programmatic skin. I see my instance in the debugger when I break point and it lives in: this.border However when I try to access it via ActionScript I get an error that this property / instance does not exist. How come the debugger can see it and I can't access it. I know that this.border is in fact pointing to the memory location of my instance ,,, but how do I get a reference to it ? If the debugger showes it .. should'nt I have access to it as well via this.border ? So.. How do I get access to my programmatic skin ? Thank you all, Sean.
[flexcoders] this,border exists in debug but not in my class ? How do I access my prog skin ?
Subject: this,border exists in debug but not in my class ? How do I access my prog skin ? Hello, I need to get the instance of my programmatic skin. I see my instance in the debugger when I break point and it lives in: this.border However when I try to access it via ActionScript I get an error that this property / instance does not exist. How come the debugger can see it and I can't access it. I know that this.border is in fact pointing to the memory location of my instance ,,, but how do I get a reference to it ? If the debugger showes it .. should'nt I have access to it as well via this.border ? So.. How do I get access to my programmatic skin ? Thank you all, Sean.
[flexcoders] Re: How can we use TransitionManager in Flex ... It is an ActionScript 3.0 Class
Anyone ? Regards, Sean. --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: Its even documented in Adobe Air: http://livedocs.adobe.com/labs/air/1/aslr/fl/transitions/TransitionManager.html So why can't we use it in Flex 2/3 ? :( The Pixelate and Blinds are real cool ... Sean. --- In flexcoders@yahoogroups.com, helihobby helihobby@ wrote: Hello all, TransitionManager is in ActionScript 3.0 so how can we access it. It has lots of cool transitions such as Pixilate , Blinds and more .. You can see an example here ... http://www.adobe.com/devnet/flash/articles/creating_animation_as3_02.html So how can we access it ... Regards, Sean - HeliHobby.com
[flexcoders] Help ... Why isn't my localToGlobal working on a draggable sprite ?
Hello all, I've been playing with this all day and can't figure it out .. I have a dragable sprite. I am trying to convert its X Y coords to global coords. My Sprite is _box; I do: var boxPoint:Point = new Point(_box.x,_box.y); var boxPointLocToGlob:Point = _box.localToGlobal(boxPoint); But when I trace _boxPointLocToGlob I get strange negative values... How can I be getting negatives when I am asking for Global coords and I am working at the center of the stage ? Regards, Sean.
[flexcoders] Re: Why is my Rich Text Editor limits me to font size of 172 ?
Ok thanks ... will look into that. Regards, Sean - HeliHobby.com --- In flexcoders@yahoogroups.com, Aaron Miller [EMAIL PROTECTED] wrote: Hi Sean, I've had to extend/rewrite the default rich text editor for various reasons. Just create a custom component that extends the default, or just copy and paste the code directly from the source. You would then just need to modify to taste. In your case, add more options to the drop down combo. Best Regards, ...aaron On 11/23/07, helihobby [EMAIL PROTECTED] wrote: Hello all, I am using different fonts and in all of them the Rich Editor drop down memu limits me to 72 in size. I can manually enter 172 but the component will not let me resize anything larger than that ... Any idea how to fix this ... Regards, Sean. -- Aaron Miller Chief Technology Officer Splash Labs, LLC. [EMAIL PROTECTED] | 206-328-5485 http://www.splashlabs.com
[flexcoders] Re: Is it possible to save an FLV to a Shared Local Object and open it later ?
:( Thank you for all the help, Sean - HeliHobby.com --- In flexcoders@yahoogroups.com, Derek Vadneau [EMAIL PROTECTED] wrote: You can save SWFs for sure, and while it might be possible to pull down an FLV into a ByteArray you would have no way of viewing it, afaik. Loader has a method called loadBytes, which expects a ByteArray, to display SWFs or images. NetStream and any other video/audio-related classes do not have such a method, again, afaik. This would be great, but Adobe might have avoided that for a number of reasons, including having tight control over methods for getting video/audio into Flash. On Nov 4, 2007 12:34 PM, helihobby [EMAIL PROTECTED] wrote: I guess the answer is that you can't save an FLV or SWF to a Shared Local Object ? :( Regards, Sean. --- In flexcoders@yahoogroups.com, helihobby helihobby@ wrote: Does anyone know how ( if possible ) to save an FLV or Image to the shared local object ( SOL ) and than open it later on for use by the Video Class ? I am trying to build my own Cache system and since Flash can not access the file system my only option is to use the SOL. ( can't use Appolo for this project ). I would imagine one would need to use the ByteArray class but I have no idea where to begin ... If someone has an example that would be GREAT !!! Thank you, Sean. -- Derek Vadneau
[flexcoders] How can we use TransitionManager in Flex ... It is an ActionScript 3.0 Class...
Hello all, TransitionManager is in ActionScript 3.0 so how can we access it. It has lots of cool transitions such as Pixilate , Blinds and more .. You can see an example here ... http://www.adobe.com/devnet/flash/articles/creating_animation_as3_02.html So how can we access it ... Regards, Sean - HeliHobby.com
[flexcoders] Re: How can we use TransitionManager in Flex ... It is an ActionScript 3.0 Class
Its even documented in Adobe Air: http://livedocs.adobe.com/labs/air/1/aslr/fl/transitions/TransitionManager.html So why can't we use it in Flex 2/3 ? :( The Pixelate and Blinds are real cool ... Sean. --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: Hello all, TransitionManager is in ActionScript 3.0 so how can we access it. It has lots of cool transitions such as Pixilate , Blinds and more .. You can see an example here ... http://www.adobe.com/devnet/flash/articles/creating_animation_as3_02.html So how can we access it ... Regards, Sean - HeliHobby.com
[flexcoders] Why is my Rich Text Editor limits me to font size of 172 ?
Hello all, I am using different fonts and in all of them the Rich Editor drop down memu limits me to 72 in size. I can manually enter 172 but the component will not let me resize anything larger than that ... Any idea how to fix this ... Regards, Sean.
[flexcoders] How can I compare two XMLs by reference and not by value ?
Hello All, I have the following code: public function timelineDurationOfAction(itemInTree:Object):int { for each ( var xmlValue:XML in _actionProviderTree) { if ( xmlValue == itemInTree) trace(Found); } } and I need to be able to compare the xmlValue and itemInTree. However, I need to compare it by refrenece ( i.e.: memory address ) and not by content as I have many XML's which repeat in value and look the same but are not by actual memory address ... I need to trace the Found only when the two XML objects are the same by memory location. Is it possible ? Thank you for all the help, Sean - HeliHobby.com
[flexcoders] Re: How can I compare two XMLs by reference and not by value ?
U R THE MAN Gordon. You saved me LOTS of work ... Regards, Sean - HeliHobby.com --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: Try using === instead of ==. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of helihobby Sent: Tuesday, November 20, 2007 1:10 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How can I compare two XMLs by reference and not by value ? Hello All, I have the following code: public function timelineDurationOfAction(itemInTree:Object):int { for each ( var xmlValue:XML in _actionProviderTree) { if ( xmlValue == itemInTree) trace(Found); } } and I need to be able to compare the xmlValue and itemInTree. However, I need to compare it by refrenece ( i.e.: memory address ) and not by content as I have many XML's which repeat in value and look the same but are not by actual memory address ... I need to trace the Found only when the two XML objects are the same by memory location. Is it possible ? Thank you for all the help, Sean - HeliHobby.com
[flexcoders] Re: How can I compare two XMLs by reference and not by value ?
In my case its a client only type of an XML and used to play a series of actions so having exact copies of XMLList inside my XMLListCollection is valid. Regards, Sean - HeliHobby.com --- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote: Glad you have a solution, but doesn't this really mean you have an attribute missing from your schema, that would enable you to differentiate between different XML instances? If you had some kind of mixed model with server processing and multiple client interaction, wouldn't you still have a problem because the address would be meaningless outside of the context of a single client? Paul - Original Message - From: helihobby [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, November 20, 2007 11:21 PM Subject: [flexcoders] Re: How can I compare two XMLs by reference and not by value ? U R THE MAN Gordon. You saved me LOTS of work ... Regards, Sean - HeliHobby.com --- In flexcoders@yahoogroups.com, Gordon Smith gosmith@ wrote: Try using === instead of ==. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of helihobby Sent: Tuesday, November 20, 2007 1:10 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] How can I compare two XMLs by reference and not by value ? Hello All, I have the following code: public function timelineDurationOfAction(itemInTree:Object):int { for each ( var xmlValue:XML in _actionProviderTree) { if ( xmlValue == itemInTree) trace(Found); } } and I need to be able to compare the xmlValue and itemInTree. However, I need to compare it by refrenece ( i.e.: memory address ) and not by content as I have many XML's which repeat in value and look the same but are not by actual memory address ... I need to trace the Found only when the two XML objects are the same by memory location. Is it possible ? Thank you for all the help, Sean - HeliHobby.com -- 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
[flexcoders] Re: Anyone know how to scroll Tree back to position after dataprovider swap ?
Thanks so much ... That did the trick. Sean. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Call validateNow and set verticalScrollPOsition after From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of helihobby Sent: Wednesday, November 14, 2007 6:51 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Anyone know how to scroll Tree back to position after dataprovider swap ? Hello all, I have a Tree which I need to swap the data provider on. However when I do, the tree scrolls back to the top and I am trying to hide the refresh from the end user. Anyone has an idea ? As always, Thanks for the support, Sean.
[flexcoders] Re: Is it possible to save an FLV to a Shared Local Object and open it later ?
I guess the answer is that you can't save an FLV or SWF to a Shared Local Object ? :( Regards, Sean. --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: Does anyone know how ( if possible ) to save an FLV or Image to the shared local object ( SOL ) and than open it later on for use by the Video Class ? I am trying to build my own Cache system and since Flash can not access the file system my only option is to use the SOL. ( can't use Appolo for this project ). I would imagine one would need to use the ByteArray class but I have no idea where to begin ... If someone has an example that would be GREAT !!! Thank you, Sean.
[flexcoders] Re: Is it possible to save an FLV to a Shared Local Object and open it later ?
Anyone ? --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: Thanks for the reply. Lets see if someone else might have some more input. Thanks, Sean. --- In flexcoders@yahoogroups.com, Abdul Qabiz abdul.qabiz@ wrote: I can image that i can be saved by using URLStream (to read) and ByteArray to store. But how you would play it again? Not sure, if Video class can take ByteArray to play video... Can Video class consider FLV as embedded video (which in my opinion is different)? -abdul On 10/30/07, helihobby helihobby@ wrote: Does anyone know how ( if possible ) to save an FLV or Image to the shared local object ( SOL ) and than open it later on for use by the Video Class ? I am trying to build my own Cache system and since Flash can not access the file system my only option is to use the SOL. ( can't use Appolo for this project ). I would imagine one would need to use the ByteArray class but I have no idea where to begin ... If someone has an example that would be GREAT !!! Thank you, Sean. -- -abdul --- http://abdulqabiz.com/blog/ ---
[flexcoders] Re: Is it possible to save an FLV to a Shared Local Object and open it later ?
Thanks for the reply. Lets see if someone else might have some more input. Thanks, Sean. --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: I can image that i can be saved by using URLStream (to read) and ByteArray to store. But how you would play it again? Not sure, if Video class can take ByteArray to play video... Can Video class consider FLV as embedded video (which in my opinion is different)? -abdul On 10/30/07, helihobby [EMAIL PROTECTED] wrote: Does anyone know how ( if possible ) to save an FLV or Image to the shared local object ( SOL ) and than open it later on for use by the Video Class ? I am trying to build my own Cache system and since Flash can not access the file system my only option is to use the SOL. ( can't use Appolo for this project ). I would imagine one would need to use the ByteArray class but I have no idea where to begin ... If someone has an example that would be GREAT !!! Thank you, Sean. -- -abdul --- http://abdulqabiz.com/blog/ ---
[flexcoders] Is it possible to save an FLV to a Shared Local Object and open it later ?
Does anyone know how ( if possible ) to save an FLV or Image to the shared local object ( SOL ) and than open it later on for use by the Video Class ? I am trying to build my own Cache system and since Flash can not access the file system my only option is to use the SOL. ( can't use Appolo for this project ). I would imagine one would need to use the ByteArray class but I have no idea where to begin ... If someone has an example that would be GREAT !!! Thank you, Sean.
[flexcoders] Can anyone help ? need to convert FLV to ByteArray ?
Hello, I managed to save and load ByteArray of an image to a shared local object. However, I need to be able to do it with an FLV. Can anyone PLEASE PLEASE PLEASE point me on how to convert a loaded FLV into a ByteArray and how to Convert a ByteArray so a VideoDisplay may play it ? Thank in advance, Sean.
[flexcoders] Re: How do you add more fonts to the drop down selection of a RichTextEditor ?
I tried the code and I do see in the drop down combo list the complete Fonts which are available but when I select them the RichTextEditor does not render the Font. Here is my code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=init() mx:RichTextEditor id=re x=184 y=78 title=Title/ mx:Style source=style/main.css/ mx:Script ![CDATA[ private function init():void { re.fontFamilyArray =re.fontFamilyArray =[M Regular,Machinegun,MailBomb,Mandingo]; } ]] /mx:Script mx:TabNavigator/ mx:Tree/ /mx:Application === AND HERE IS MY CSS: === * // // Global styles // */ .global { highlightAlphas:.5, .25; borderColor:#939A9D; headerColors: #A65904, #E68701; themeColor: #75B1CE; rollOverColor: #D6E6EE; selectionColor: #B8D5E4; } @font-face { src:url('./fonts/tahoma.ttf'); src:url('./fonts/M Regular.ttf'); src:url('./fonts/Machinegun.ttf'); src:url('./fonts/MailBomb.ttf'); src:url('./fonts/Mandingo.ttf'); src:url('./fonts/Manual SSi Italic.ttf'); src:url('./fonts/Marker Board Display SSi.ttf'); src:url('./fonts/MarkerFeltThin-Plain Regular.ttf'); src:url('./fonts/MarkerFeltThin.ttf'); src:url('./fonts/Market Regular.ttf'); src:url('./fonts/Marquee Moon.ttf'); src:url('./fonts/Masterforce Solid.ttf'); src:url('./fonts/Mattbats.ttf'); src:url('./fonts/Menta Display SSi.ttf'); src:url('./fonts/Mercat Display SSi Italic.ttf'); src:url('./fonts/Mexacali.ttf'); src:url('./fonts/micross.ttf'); src:url('./fonts/Microstyle ATT Bold.ttf'); src:url('./fonts/Mikey Jax.ttf'); src:url('./fonts/Milkfresh.ttf'); src:url('./fonts/milky well.ttf'); src:url('./fonts/Misconstrued.ttf'); src:url('./fonts/Miserable.ttf'); src:url('./fonts/MisterBig Regular.ttf'); src:url('./fonts/Mistwetter.ttf'); src:url('./fonts/Mixed up.ttf'); src:url('./fonts/ModernTypewriterCond-Bold.ttf'); src:url('./fonts/MOLTOR3.ttf'); src:url('./fonts/MONKEY-F.ttf'); src:url('./fonts/Monotone Regular.ttf'); src:url('./fonts/Monsters Attack!.ttf'); src:url('./fonts/moonie.ttf'); src:url('./fonts/MotterFemD.ttf'); src:url('./fonts/Munsterm.ttf'); src:url('./fonts/Muse Display SSi.ttf'); src:url('./fonts/MVSans Bold.ttf'); src:url('./fonts/Myopia.ttf'); fontFamily: MyFonts; } Please Help this thing is driving me nuts :( Thank you for all the help, Sean.
[flexcoders] Re: How do you add more fonts to the drop down selection of a RichTextEditor ?
I Tried that too with no luck: :( ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=init() mx:Style @font-face { src:url('./style/fonts/micross.ttf'); fontFamily: micross; fontWeight: normal; fontStyle: normal; } @font-face { src:url('./style/fonts/mattbats.ttf'); fontFamily: mattbats; fontWeight: normal; fontStyle: normal; } @font-face { src:url('./style/fonts/mexacali.ttf'); fontFamily: mexacali; fontWeight: normal; fontStyle: normal; } /mx:Style mx:RichTextEditor id=rte title=RichTextEditor width=500 text=Enter text into the RichTextEditor control, then click a button to display your text as plain text, or as HTML- formatted text./ mx:Script ![CDATA[ private function init():void { rte.fontFamilyArray = [moonie,mattbats,mexacali]; } ]] /mx:Script /mx:Application Help .
[flexcoders] How do you add more fonts to the drop down selection of a RichTextEditor ?
Does anyone know how to add more fonts to the drop down selection of a RichTextEditor ? Thank you for your interest in HeliHobby, Sean.
[flexcoders] Re: Is it possible to get a list of Shared Local Objects from my domain ?
So I guess no way to do it within AS3 ... Ok. Thank you for all the help, Sean - HeliHobby.com --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: Assuming you can read directories on the local client system, then sure. Take a look at how Darron Schall's SolVE program does it: http://solve.sourceforge.net/ --- In flexcoders@yahoogroups.com, helihobby helihobby@ wrote: Hello, Is it possible to somehow get a list of all the available Shared Local Objects that are saved on disk that belong to my domain ? Regards, Sean. Click below to view my ALON Design Pattern: http://www.helihobby.com/html/alon_desingpattern.html
[flexcoders] Re: Is it possible to query a Flash SWF for its images / symbol list ?
The issue I am trying to solve is this ... If a user loads a compiled SWF to my site ... How can I dynamically from within Actionscript get a list of the embeded images ( Symbols ) ? Is it possible ? Regards and thanks again, Sean. --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: Hello all, I have a SWF that has some Symbols / images !!! ( Created using Flash Editor CS3 ) How can I retrieve the Symbols list it holds using ActionScript from the loaded Flash swf ? ( I Used SWFLoader to load it ... ) Regards, Sean. Click below to view my ALON Design Pattern: http://www.helihobby.com/html/alon_desingpattern.html
[flexcoders] Re: Is it possible to query a Flash SWF for its images / symbol list ?
Anyone ??? :( --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: Hello all, I have a SWF that has some Symbols / images !!! ( Created using Flash Editor CS3 ) How can I retrieve the Symbols list it holds using ActionScript from the loaded Flash swf ? ( I Used SWFLoader to load it ... ) Regards, Sean. Click below to view my ALON Design Pattern: http://www.helihobby.com/html/alon_desingpattern.html
[flexcoders] Re: Is it possible to query a Flash SWF for its images / symbol list ?
Thanks for that ... That I can do ... But I was hoping someone can shed light on how to get a list of all available Symbols from a loaded SWF. I know it is possible since that's what all these SWF Decompilers do. But how do you do it in actionscript ? Will see, maybe someone knows. Regards, Sean. --- In flexcoders@yahoogroups.com, shaun [EMAIL PROTECTED] wrote: I just saw this on the MXNA flex feed, not sure if it helps in your situation or not. http://wildwinter.blogspot.com/2007/09/how-to-load-external-assets- from-as3.html helihobby wrote: Anyone ??? :( --- In flexcoders@yahoogroups.com, helihobby helihobby@ wrote: Hello all, I have a SWF that has some Symbols / images !!! ( Created using Flash Editor CS3 ) How can I retrieve the Symbols list it holds using ActionScript from the loaded Flash swf ? ( I Used SWFLoader to load it ... ) Regards, Sean. Click below to view my ALON Design Pattern: http://www.helihobby.com/html/alon_desingpattern.html
[flexcoders] Is there a way to load Image/Symbol from a SWF lib without embedding it ?
Hi All, All of the examples I see use: [Embed(source='../assets/resources.swf', symbol='SunFlower')] [Bindable] public var SunFlower:Class; Which is great if you want to embed the swf and than load the Symbol into Flex as a Class ( SunFlower ). However, how can one Load a swf dynamically during runtime using the SWFLoader or URLLoader and than load a symbol ... All in run time and none embeded ... Anyone ? Thank you for all the help, Sean - HeliHobby.com
[flexcoders] Re: Is there a way to load Image/Symbol from a SWF lib without embedding it ?
Found Answer: private function loadFont(url:String):void { var loader:Loader = new Loader(); loader.contentLoaderInfo.addEventListener (Event.COMPLETE, completeHandler); loader.load(new URLRequest(url)); } private function completeHandler(event:Event):void { var SunFlower:Class = event.target.applicationDomain.getDefinition(SunFlower) as Class; // mx:Image id=image1 width=100% height=100% source=@Embed(source='../assets/resources.swf', symbol='Eye')/ img.source = SunFlower; } Regards, Sean. Click below to view my ALON Design Pattern: http://www.helihobby.com/html/alon_desingpattern.html --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: Hi All, All of the examples I see use: [Embed(source='../assets/resources.swf', symbol='SunFlower')] [Bindable] public var SunFlower:Class; Which is great if you want to embed the swf and than load the Symbol into Flex as a Class ( SunFlower ). However, how can one Load a swf dynamically during runtime using the SWFLoader or URLLoader and than load a symbol ... All in run time and none embeded ... Anyone ? Thank you for all the help, Sean - HeliHobby.com
[flexcoders] Is it possible to load a an intro.swf ( CS3 ) into ( without using swc ) ?
Hello all, I have a a Intro.swf ( made in Flash CS3 ) which is compiled and ready to go ( has a preloader and everything ). Converting it into a swc is a pain in b... since I have to use the new Flash/Flex integration tool which requires me to convert my flash into a single MovieClip so I will be forced to move all the layers around. Not to mention that if I the Intro.swf ( Flash CS3 file ) has an embeded MP3 it crashes Flex. So Is there a way just to load @ runtime when user click on preview intro the pre compiled Intro.swf ( Flash CS3 Intro.swf ) inside of the Flex App. I don't need any interactions between Flex and Flash so swc will be an overkill for me. Just need to be able to load it when user clicks it ( and stop it from with the Intro.swf ). As always, Thank you for all the help and support. Regards, Sean - http://www.HeliHobby.com P.S. You can read my solution for Flex Component communication here: http://www.helihobby.com/html/alon_desingpattern.html
[flexcoders] Is it possible for Flex Builder to echo the mxmlc.exe command it uses ?
How can I see ( if any ) the mxmlc.exe args that Flex Builder is using when I tell it to compile using the GUI ( Right Click - Compile ). I wanna right a mxmlc script but need to see first what Flex Builder is using. Thanks for the help, Sean.
[flexcoders] Posted a Free Progress / Loader Component
Just a quicky loader for you Flex Lovers: http://www.adobe.com/cfusion/exchange/index.cfm? view=sn101yourExID=uploads#loc=en_usview=sn611viewName=% 20authorid=0page=0scrollPos=0subcatid=0snid=sn611itemnumber=- 1extid=1183518catid=0yourExID=uploads As always, Thank you for all the help and support. Regards, Sean - http://www.HeliHobby.com P.S. You can read my solution for Flex Component communication here: http://www.helihobby.com/html/alon_desingpattern.html
[flexcoders] How to scroll DataGrid to bottom ?
Anyone can post a quick tip on how to always keep datagrid scrolled to bottom ? As always, Thank you for all the help and support. Regards, Sean - http://www.HeliHobby.com P.S. You can read my solution for Flex Component communication here: http://www.helihobby.com/html/alon_desingpattern.html
[flexcoders] Re: Where can we download the new Flex / Flash Integration?
Thank you for all the help, Sean - HeliHobby.com --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: http://labs.adobe.com/wiki/index.php/Flex_Component_Kit From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of helihobby Sent: Friday, May 04, 2007 6:14 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Where can we download the new Flex / Flash Integration? Where can we download the new Flex / Flash Integration? Any good links to read more about it ? As always, Thank you for all the help and support. Regards, Sean - http://www.HeliHobby.com http://www.HeliHobby.com P.S. You can read my solution for Flex Component communication here: http://www.helihobby.com/html/alon_desingpattern.html http://www.helihobby.com/html/alon_desingpattern.html
[flexcoders] Flash Component *.swc not working in Flex ... help ...
I have installed the Extension for Flash CS3 and updated Flex to latest 2.01 that supports the Flash Components. I made a simple Flash CS3 a symbol and clicked the Commands - Make Flex Components and got: Command made the following changes to the FLA: Turned on Permit Debugging Turned on Export SWC Set frame rate to 24 Imported UIMovieClip component to library Component FlashComp is ready to be used in Flex. So far so good... I continued by clicking on the symbol and selected export to SWC and saved to a folder. Continued to go to Flex Builder and added swc under my project's library path. All seems ok. when I do: var a:FlashComp = new FlashComp(); Flex Builder finishes the word FlashComp for me so it does see the component. However, I do get an error of: 1046: Type was not found or was not a compile-time constant: 1180: Call to a possibly undefined method FlashComp I also tried saving the FlashComp.swc in the root dir of the project and did: local:FlashComp id=ABC/ with no luck. Any Help would be great ... Regards, Sean - HeliHobby.com
[flexcoders] Re: Is there a way to get a function name using actionscript command ?
As always, Thank you for all the help and support. Regards, Sean - http://www.HeliHobby.com P.S. You can read my solution for Flex Component communication here: http://www.helihobby.com/html/alon_desingpattern.html --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: For debugging on debug players you can do: var e:Error = new Error(); trace (e.getStackTrace()); From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of helihobby Sent: Thursday, May 03, 2007 10:00 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Is there a way to get a function name using actionscript command ? Is there a command like: getFunctionName() or something like this that will print the function name this was called within ? Thank you for all the help, Sean - HeliHobby.com
[flexcoders] Where can we download the new Flex / Flash Integration?
Where can we download the new Flex / Flash Integration? Any good links to read more about it ? As always, Thank you for all the help and support. Regards, Sean - http://www.HeliHobby.com P.S. You can read my solution for Flex Component communication here: http://www.helihobby.com/html/alon_desingpattern.html
[flexcoders] How can I tell the swf file name within my application ?
Hello, Can anyone tell me how can one know the name of the compiled swf file name ? Is there a property which holds it ? Thanks, Sean.
[flexcoders] Is there a way to get a function name using actionscript command ?
Is there a command like: getFunctionName() or something like this that will print the function name this was called within ? Thank you for all the help, Sean - HeliHobby.com
[flexcoders] Why does my Flex applet never gets cached ?
My Flex Apps allways get download from server and never get cached by the browser. Is there something ( like a javascript flag or something ) that one can turn on to have Flex load .swf from local cache as long as the .swf did not get modified ? Thanks all, Sean.
[flexcoders] How to prevent Flex Apps from always loading from server. They never get cached
Hi All, How can one direct Flex to load from Cache and not from the server if both files are the same. Seems like Flex Apps always load from server even if both local cached swf and server swf are the same. As always, Thank you for all the help and support. Regards, Sean - http://www.HeliHobby.com P.S. You can read my solution for Flex Component communication here: http://www.helihobby.com/html/alon_desingpattern.html
[flexcoders] Will Microsoft's new Silverlight Player Kill our beloved Flex ?
Please comment after you ready and see this: http://blogs.msdn.com/tims/archive/2007/04/15/introducing-microsoft- silverlight.aspx http://www.microsoft.com/silverlight/default_01.aspx Sean - [URL=http://www.HeliHobby.com]HeliHobby.com[/URL]
[flexcoders] Re: Cairngorm FrontController
I think this may help. http://www.helihobby.com/html/alon_desingpattern.html --- In flexcoders@yahoogroups.com, Shannon [EMAIL PROTECTED] wrote: I am new to Cairngorm and Flex (I'm All About Flash) so bear with me. I am creating a component and I want it to use Cairngorm. I also want to be sure that some events fired from the component are only heard by the Cairngorm of the single component instance. Component namespaces won't help because I use multiple instances of the same event, I could probably filter by instance, but I am trying not to hack (you'll probably see the irony after the next sentence... If I use Cairngorm as is... ...and I utilize the Singleton CairngormEventDispatcher, as soon as I put two instances of a component on stage, the events from one instance cause the front controller on the second instance to fire those events Sadly this is probably operator error. Though I am guessing that someone has had this problem before and surely there is a best practice solution to this already, I thought I would spend a little time to explore the issue further and find my own solution. I decided to try to handle this by using separate instances of the CairngormEventDispatcher (MyViewHelper.dispatcher) for each instance of my component. Then I could inject that dispatcher into MyFrontController when it is instantiated so that it knows which dispatcher to call. Just when I think I am on to something, I had to override addCommand so that it would add an event listener to that instance instead of the Singleton CairngormEventDispatcher. This is great but it required two modifications (minor, yet still modifications) to the Cairngorm FrontController class in order to compile my creation. (see snippets below) Basically I took two private things and made them protected. Of course this might effect other pieces I have yet to build, but my level of mastery coerces me into believing I have found a solid answer. snicker/ If those iteration two guys were really geniuses they would have made these protected in the first place. Ha, ha, ha, just kidding, (I crack myself up) So I can either use my own FrontController impl or I can ask the question: Is this a bug in Cairngorm? Or am I correct in beleiving I must be doing something wrong... Some code samples: // // myViewHelper Snippet: // public function MyViewHelper(view:Object) { dispatcher = new CairngormEventDispatcher(); controller = new MyFrontController(dispatcher); ... } // // myFrontController Snippet: // public class MyFrontController extends FrontController { private var dispatcher:CairngormEventDispatcher; public function MyFrontController (dispatcher:CairngormEventDispatcher) { super(); this.dispatcher = dispatcher ... } public override function addCommand( commandName : String, commandRef : Class ) : void { if( commands[ commandName ] != null ) { throw new Error( Command already registered for + commandName ); } commands[ commandName ] = commandRef; dispatcher.addEventListener( commandName, executeCommand ); } } // // Cairngorm FrontController Mods // public class FrontController { // ST - 03/15/2007 : private var commands : Dictionary = new Dictionary(); protected var commands : Dictionary = new Dictionary(); // ST - 03/15/2007 : private function executeCommand( event : CairngormEvent ) : void protected function executeCommand( event : CairngormEvent ) : void ... }
[flexcoders] Re: Can not load Module using ModuleManager ...
Well you were both right. It was a crossdomain.xml issue and the error does not reflect that. I think this is a low level bug as the SWF error is wrong and does not pertain to anything about a sec domain issue. However, this was a security issue. Thank you for all the help, Sean - HeliHobby.com --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: I have a very simple module: ?xml version=1.0 encoding=utf-8? mx:Module xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Label x=272 y=269 text=Label width=234 height=112/ /mx:Module Trying to load via ModuleManager using: trace(Loading module); var info:IModuleInfo = ModuleManager.getModule (https://some_domain.com/ClockStandard.swf;); info.addEventListener(ModuleEvent.READY,onLoadComplete); info.addEventListener(ModuleEvent.ERROR,onLoaderError); info.load(); private function onLoadComplete(event:ModuleEvent):void { trace(Completed and ready); } private function onLoaderError(event:ModuleEvent):void { trace(Problem + event.errorText); } And yet I get an error every time of: Problem SWF is not a loadable module [SWF] /html/swf/timeClock/ClockStandard.swf - 254,974 bytes after decompression Any idea whay ? As always, Thank you for all the help and support. Regards, Sean - http://www.HeliHobby.com P.S. You can read my solution for Flex Component communication here: http://www.helihobby.com/html/alon_desingpattern.html
[flexcoders] Re: The complete component communication solution for Flex. ALON DP.
Will soon upload sample code as I was emailed and asked for that. As always, Thank you for all the help and support. Regards, Sean - http://www.HeliHobby.com P.S. You can read my solution for Flex Component communication here: http://www.helihobby.com/html/alon_desingpattern.html --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: The Flex Framework is a powerful and rich environment. However due to its complex and elaborate event driven architecture it is easy to loose control and it is hard to maintain a clear communication among all components and objects. To solve this, I came up with the ALON Design Pattern and I wish to get some feedback. It is a the Magic Bullet for all communications in Flex :) Read here: http://www.helihobby.com/html/alon_desingpattern.html Please post here any comments you may have. Thank you for your support. Sean - HeliHobby.com
[flexcoders] Can not load Module using ModuleManager ...
I have a very simple module: ?xml version=1.0 encoding=utf-8? mx:Module xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Label x=272 y=269 text=Label width=234 height=112/ /mx:Module Trying to load via ModuleManager using: trace(Loading module); var info:IModuleInfo = ModuleManager.getModule (https://some_domain.com/ClockStandard.swf;); info.addEventListener(ModuleEvent.READY,onLoadComplete); info.addEventListener(ModuleEvent.ERROR,onLoaderError); info.load(); private function onLoadComplete(event:ModuleEvent):void { trace(Completed and ready); } private function onLoaderError(event:ModuleEvent):void { trace(Problem + event.errorText); } And yet I get an error every time of: Problem SWF is not a loadable module [SWF] /html/swf/timeClock/ClockStandard.swf - 254,974 bytes after decompression Any idea whay ? As always, Thank you for all the help and support. Regards, Sean - http://www.HeliHobby.com P.S. You can read my solution for Flex Component communication here: http://www.helihobby.com/html/alon_desingpattern.html
[flexcoders] Re: Trouble passing data between components
I think this may help. http://www.helihobby.com/html/alon_desingpattern.html Sean. --- In flexcoders@yahoogroups.com, Jack OMelia [EMAIL PROTECTED] wrote: Hi All, I'm more of a designer than a developer, and as such my coding skills are not outstanding, so bear with me. I have an application with custom components inside a viewstack. In one component I have a datagrid and I would like to have data from the selected row of the datagrid populate text fields in a separate viewstack child, and I can't seem to get this to work. Here is the viewstack (edited to show just the relevant sections): mx:ViewStack x=0 y=71 id=viewstackMain width=100% height=100% mx:Canvas label=ViewAssurance width=100% height=100% id=ViewAssurance mx:Image x=0 y=0 source=images/banner.gif width=1003/ mx:Label x=10 y=0 text=Assurance Tests fontFamily=Verdana fontWeight=bold fontSize=11 color=#ff/ mx:Label x=235 y=0 text=Summary fontFamily=Verdana fontWeight=bold fontSize=11 color=#ff/ at:assuranceQueryForm x=0 y=19 / at:assuranceTestResults x=225 y=20 / /mx:Canvas mx:Canvas label=ViewAssuranceTest width=100% height=100% id=ViewAssuranceTest buttonMode=true mx:Canvas x=192 y=38 width=774 height=100 backgroundColor=#dd borderStyle=solid borderColor=#bb cornerRadius=8 id=cvsATGeneral mx:Label x=10 y=10 text=Name:/ mx:Text x=82 y=37 text= id=txtATDetailsName/ mx:Label x=10 y=37 text=Description:/ mx:Text x=82 y=10 text= id=txtATDetailsDesc/ /mx:Canvas mx:Label x=207 y=29 text=General fontFamily=Arial fontWeight=bold fontSize=11 color=#99/ at:assurenceTestDetails x=192 y=150 id=assurenceTestDetails/ /mx:Canvas /mx:ViewStack The datagrid is in the component instantiated in the ViewAssurance viewstack child at at:assuranceTestResults x=225 y=20 /, and the datagrid code is here: mx:DataGrid x=10 y=35 width=765 height=258 rowHeight=18 headerColors=[#ed8e5f, #ed8e5f] headerHeight=20 borderColor=#66 id=dgAssuranceResults selectedIndex=0 wordWrap=false alternatingItemColors=[#dd,#cc] textAlign=left dataProvider={assuranceTestsXML.item} mx:columns mx:DataGridColumn headerText=Task Name dataField=taskName width=250 headerRenderer=comps.cmpHeaderRenderer/ mx:DataGridColumn headerText=Enabled sortable=false width=70 editable=true rendererIsEditor=true headerRenderer=comps.cmpHeaderRenderer itemRenderer=comps.ckbxAssurRenderer/ mx:DataGridColumn headerText=Frequency dataField=frequency headerRenderer=comps.cmpHeaderRenderer/ mx:DataGridColumn headerText=Last Run dataField=lastRun headerRenderer=comps.cmpHeaderRenderer/ mx:DataGridColumn headerText=Next Run dataField=nextRun headerRenderer=comps.cmpHeaderRenderer/ mx:DataGridColumn headerText=Task Running sortable=false width=100 editable=true rendererIsEditor=true headerRenderer=comps.cmpHeaderRenderer itemRenderer=comps.checkboxRenderer/ /mx:columns /mx:DataGrid If they were part of the same file I would use something like: mx:Text x=82 y=37 text={dgAssuranceResults.selectedItem.taskName} id=txtATDetailsName/ but I need a more explicit path between the two. I've tried Application.application.viewstackMain..etc,etc, but whatever combinations I try don't work. What am I missing here? Thanks, Jack
[flexcoders] Re: How can I access public members of custom MXML component using inline statemen ?
Pefect. This solved the problem. private var _prog:String; public function set somPro(prog:String):void{ this._prog=prog; } public function get somPro():String{ return this._prog; } As always, Thank you for all the help and support. Regards, Sean - http://www.HeliHobby.com P.S. You can read my solution for Flex Component communication here: http://www.helihobby.com/html/alon_desingpattern.html --- In flexcoders@yahoogroups.com, feiy [EMAIL PROTECTED] wrote: the public property must defined : private _prog; public function set somPro(String:prog):void{ this._prog=prog; } public function get somPro():String{ return this._prog; } usage within mxml component somPro=value / 2007/2/28, helihobby [EMAIL PROTECTED]: Hello all, How can I access public members of custom MXML component using inline statemen ? For example, I have my own MXML component name myComp which has public members. How can I access these public member from inling mxml. In other words, of couse I can do myComp.myMember = ABC; But I wish to do it not in ActionScript but in MXML ( inline ). In other words, I wish to do: myview:MyComp x=100 y=100 myMember=ABC / In other words, in line MXML ( not in AS ). I tried using the setter function in myComp, but no luck. As always, Thank you for all the help and support. Regards, Sean - http://www.HeliHobby.com P.S. You can read my solution for Flex Component communication here: http://www.helihobby.com/html/alon_desingpattern.html public function doThis():void { } Now I want ns1 leDisplay id=viewerContainer x=263 y=85 /ns1 leDisplay -- ÏÐÔÆ¹Âº× - ÇåÀäÏãÖб§Ï¥Ò÷
[flexcoders] Does anyone know of ActionScript for Linux ? Just the basic AS3 will be fine ...
Does anyone know of ActionScript for Linux ? Just the basic AS3 will be fine ... Don't need the full UI and Libs of Flex. Just basic AS3 Core Libs would be fine if they can run on Linux. As always, Thank you for all the help and support. Regards, Sean - http://www.HeliHobby.com P.S. You can read my solution for Flex Component communication here: http://www.helihobby.com/html/alon_desingpattern.html
[flexcoders] Re: The complete component communication solution for Flex. ALON DP.
It is similair. But in this Design Pattern you also have the direct com using getService and setService. Regards, Sean - HeliHobby.com --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 27 Feb 2007, helihobby wrote: To solve this, I came up with the ALON Design Pattern and I wish to get some feedback. How does this strategy compare to Cairngorm's ? It looks fairly similar - things fire abstract events to a central controller. -- Tom Chiverton Helping to confidentially e-enable end-to-end market-growth at http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: The complete component communication solution for Flex. ALON DP.
Yes, thank for catching that ... I will fix it. Regards, Sean - HeliHobby.com --- In flexcoders@yahoogroups.com, tddclare [EMAIL PROTECTED] wrote: Hey Sean, This is cool. Thanks for putting it out there. A question: In this part of the writeup: For example, the following line of code will show ( trace ) the instance name of the dispatching orangeBall object from within the scope of the whiteBall listening component. public method showSomething(event:EventsGlobals):void { trace(event.instance) } you type event as EventsGlobals, which is just the class that holds the constants. Shouldn't the type be ObjectDataEvent, which is the class that IS the event that gets passed? Seems that way from the rest of the following text, but I wanted to make sure (and it might confuse someone (me)) -- TC
[flexcoders] How can I access public members of custom MXML component using inline statemen ?
Hello all, How can I access public members of custom MXML component using inline statemen ? For example, I have my own MXML component name myComp which has public members. How can I access these public member from inling mxml. In other words, of couse I can do myComp.myMember = ABC; But I wish to do it not in ActionScript but in MXML ( inline ). In other words, I wish to do: myview:MyComp x=100 y=100 myMember=ABC / In other words, in line MXML ( not in AS ). I tried using the setter function in myComp, but no luck. As always, Thank you for all the help and support. Regards, Sean - http://www.HeliHobby.com P.S. You can read my solution for Flex Component communication here: http://www.helihobby.com/html/alon_desingpattern.html public function doThis():void { } Now I want ns1 leDisplay id=viewerContainer x=263 y=85 /ns1 leDisplay
[flexcoders] Re: Can anyone help on getting data from a grid cell .. I know the row/column index
Thank you all for the answers ... The problem is that I need to know which cell he clicked on. Or in other words, what is the text that displayed on that cell... Getting the complete ArrayCollection object which the user clicked on is easy as I can ( as u guys mentioned ) simply grab the event and do event.selectedItem.SOME_PROP_HERE However, I need to know which prop he clicked on as during runtime I do not know the name of SOME_PROP_HERE. In my case I have over 40 columns per row and each carries the name of Open1 Open2 Open3 Open4 . etc ... So of course doing event.selectedItem.Open1 will work. But how do I know if clicked on the column Open1 or Open2 or Open3 etc ... I need to figure out which OpenN ( N = number ) he clicked on ... Thanks again, Sean. --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: Hello, Can anyone help out ... I know the Data Grid Cell's Row and Colum Index. How can I retrieve the data in that cell if I know these two values ? Thank you, Sean.
[flexcoders] The complete component communication solution for Flex. ALON DP.
The Flex Framework is a powerful and rich environment. However due to its complex and elaborate event driven architecture it is easy to loose control and it is hard to maintain a clear communication among all components and objects. To solve this, I came up with the ALON Design Pattern and I wish to get some feedback. It is a the Magic Bullet for all communications in Flex :) Read here: http://www.helihobby.com/html/alon_desingpattern.html Please post here any comments you may have. Thank you for your support. Sean - HeliHobby.com
[flexcoders] Re: Can anyone help on getting data from a grid cell .. I know the row/column index
Found the solution from a guy who emailed me ... thx This is what worked for me: yourDataGrid.addEventListener(ListEvent.ITEM_CLICK, setColumnCopy); function setColumnCopy(){ _selectedCol = yourDataGrid.columns[event.columnIndex].dataField; Alert.show(yourDataGrid.selectedItem[_selectedCol]); } As always, Thank you for all the help and support. BRA HREF=http://www.helihobby.com/html/alon_desingpattern.html;FONT SIZE=-1 FACE=Verdana,Tahoma,Arial,Helvetica,Sans-serifRead my solution for Flex Component communication here.../FONT/A BRSean - A HREF=http://www.helihobby.com;FONT SIZE=-1 FACE=Verdana,Tahoma,Arial,Helvetica,Sans-serifHeliHobby.com/FONT
[flexcoders] Re: Can anyone help on getting data from a grid cell .. I know the row/column index
As always, Thank you for all the help and support. Regards, Sean - http://www.HeliHobby.com P.S. You can read my solution for Flex Component communication here: http://www.helihobby.com/html/alon_desingpattern.html --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: Found the solution from a guy who emailed me ... thx This is what worked for me: yourDataGrid.addEventListener(ListEvent.ITEM_CLICK, setColumnCopy); function setColumnCopy(){ _selectedCol = yourDataGrid.columns[event.columnIndex].dataField; Alert.show(yourDataGrid.selectedItem[_selectedCol]); } As always, Thank you for all the help and support. BRA HREF=http://www.helihobby.com/html/alon_desingpattern.html;FONT SIZE=-1 FACE=Verdana,Tahoma,Arial,Helvetica,Sans-serifRead my solution for Flex Component communication here.../FONT/A BRSean - A HREF=http://www.helihobby.com;FONT SIZE=-1 FACE=Verdana,Tahoma,Arial,Helvetica,Sans- serifHeliHobby.com/FONT
[flexcoders] Re: Can anyone help on getting data from a grid cell .. I know the row/column index
Is it possible ? Sean. --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: Hello, Can anyone help out ... I know the Data Grid Cell's Row and Colum Index. How can I retrieve the data in that cell if I know these two values ? Thank you, Sean.
[flexcoders] Can anyone help on getting data from a grid cell .. I know the row/column index
Hello, Can anyone help out ... I know the Data Grid Cell's Row and Colum Index. How can I retrieve the data in that cell if I know these two values ? Thank you, Sean.
[flexcoders] Please Help with CandleStick Chart
Hello, I have a problem which I am sure is easy to solve but I am missing a piece of the pazzle. I have a CandleStickChart. In my candle stick chart I have an underline array collection. My array collection looks like this: [Bindable] private var expensesAC:ArrayCollection = new ArrayCollection( [ { Date: 25-Jul, Open1: 40, High1: 40, Low1: 20, Close1:20 , Open2: 42, High2: 42, Low2: 48, Close2:48 , Open3: 60, High3: 60, Low3: 50, Close3:50} ]); As you can see, I have a single column which is broken into multiple Open/Close High/Low + an index number ( 1 - 10 ) I have an event so whenever an item is clicked on the chart I grab it such as: private function selectBox(event:ChartItemEvent):void { trace(A TimeClockID: + event.hitData.item.Open1); trace(B TimeClockID: + event.hitData.chartItem.index); trace(C TimeClockID: + event.hitData.chartItem.itemRenderer.name); trace(D TimeClockID: + event.hitSet.valueOf ()); trace(D TimeClockID: + event.hitSet); } The problem is that I can not find away to figure out which specific column in the candle stick chart the user clicked on. In other words, if you look at: trace(A TimeClockID: + event.hitData.item.Open1); I get the valid data which Open1 holds. However, I do not know if the user clicked on Open1 or Open2 or Open3. I just know which object in the chart he clicked on, but I DO NOT KNOW which object he clicked on within the object ( i.e.: did he click on Open1 or 2 ... 3 ... ) . How can I figure this out ... Help Regards, Sean.
[flexcoders] Re: Please Help with CandleStick Chart
For everyone's reference: The solution found. I did: var ci:Object = event.hitData.chartItem.itemRenderer; var openData:Number = ci.data.open; var closeData:Number = ci.data.close; var openTime:String = ci.data.openValue; var closeTime:String = ci.data.closeValue; var startDate:String = event.hitData.item.startDate; Thank you for all the help, Sean - HeliHobby.com --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: Hello, I have a problem which I am sure is easy to solve but I am missing a piece of the pazzle. I have a CandleStickChart. In my candle stick chart I have an underline array collection. My array collection looks like this: [Bindable] private var expensesAC:ArrayCollection = new ArrayCollection( [ { Date: 25-Jul, Open1: 40, High1: 40, Low1: 20, Close1:20 , Open2: 42, High2: 42, Low2: 48, Close2:48 , Open3: 60, High3: 60, Low3: 50, Close3:50} ]); As you can see, I have a single column which is broken into multiple Open/Close High/Low + an index number ( 1 - 10 ) I have an event so whenever an item is clicked on the chart I grab it such as: private function selectBox(event:ChartItemEvent):void { trace(A TimeClockID: + event.hitData.item.Open1); trace(B TimeClockID: + event.hitData.chartItem.index); trace(C TimeClockID: + event.hitData.chartItem.itemRenderer.name); trace(D TimeClockID: + event.hitSet.valueOf ()); trace(D TimeClockID: + event.hitSet); } The problem is that I can not find away to figure out which specific column in the candle stick chart the user clicked on. In other words, if you look at: trace(A TimeClockID: + event.hitData.item.Open1); I get the valid data which Open1 holds. However, I do not know if the user clicked on Open1 or Open2 or Open3. I just know which object in the chart he clicked on, but I DO NOT KNOW which object he clicked on within the object ( i.e.: did he click on Open1 or 2 ... 3 ... ) . How can I figure this out ... Help Regards, Sean.
[flexcoders] How can google index a Flex / SWF site ?
Hello all, How can google and other search engines index a fully Flexed page ? It seems like Adobe must have a solution for SEO ( Search Engine Optimzation ) solutions for Flex as this can be a problem for this technology if no such Flex to HTML real time translation exists !!! Regards, Sean - HeliHobby.com
[flexcoders] A cool TimeSelector component for you guys to downlod ...
I posted a cool easy to extend time selector as a thank you for the support this group has given me. You may download here: http://www.adobe.com/cfusion/exchange/index.cfm? view=sn101yourExID=uploads#loc=en_usview=sn611viewName=% 20authorid=77552239page=0scrollPos=0subcatid=0snid=sn611itemnumber =0extid=1144469catid=0yourExID=uploads Regards, Sean - HeliHobby.com
[flexcoders] Re: A cool TimeSelector component for you guys to downlod ...
a href=http://www.adobe.com/cfusion/exchange/index.cfm? view=sn610#loc=en_usview=sn611viewName=% 20authorid=0page=0scrollPos=0subcatid=0snid=sn611itemnumber=- 1extid=1144469catid=0Click here to download/a/b --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: I posted a cool easy to extend time selector as a thank you for the support this group has given me. You may download here: http://www.adobe.com/cfusion/exchange/index.cfm? view=sn101yourExID=uploads#loc=en_usview=sn611viewName=% 20authorid=77552239page=0scrollPos=0subcatid=0snid=sn611itemnumber =0extid=1144469catid=0yourExID=uploads Regards, Sean - HeliHobby.com
[flexcoders] Re: HELP! Flex Builder hangs on Design View
I had so many issues... Flex used to crash every 30 min. I got a new PC ( Dual Core ) and Clean windows and Flex has not crashed once in 3 weeks ... Sean. --- In flexcoders@yahoogroups.com, Nick Collins [EMAIL PROTECTED] wrote: I have 25 GB free, and have rebooted the system, which would free the RAM of any memory consumption. On 2/15/07, Agent RR-007 [EMAIL PROTECTED] wrote: That was also happening to me. Make sure that you free up some space in your HD. And if you leave it on for a long time idling it can consume lots of memory. Good luck. Always trust your Agent, RR-007 On Thu, February 15, 2007 11:08 am, Nick Collins said: Has anyone else experienced this and found a solution? I have an app I've been working on that just yesterday started giving me problems whenever I try going to the design view. The app hits 50% CPU utilization, and just hangs there. The design view starts to draw, then goes all gray, and freezes the entire IDE. I'm running FlexBuilder 2.0.1 as an eclipse plugin with Eclipse 3.2.1. I've been working on the app for two weeks with no problems, then it just started yesterday. I tried uninstalling FlexBuilder then reinstalling it, and still the problem persists. Anyone have any ideas?
[flexcoders] Re: Silly question? : Why do I have to create objects inside class functions?
I think you forgot to add var unless you define a private var at the top. --- In flexcoders@yahoogroups.com, rumpleminzeflickr [EMAIL PROTECTED] wrote: Hi, This maybe a really dumb question, but why I can't I create new objects or even assign a null object a value in the class itself? It works fine if I do it in a function. Just trying to understand i'm sure there is a good reason. Many thanks, public class MyClass { // doesn't work here pageRO = new RemoteObject(); pageService = PageService.getInstance(); public function Foo():void{ // works here pageRO = new RemoteObject(); pageService = PageService.getInstance(); } }
[flexcoders] Re: Silly question? : Why do I have to create objects inside class functions?
I re-read your question and the answer is no you can not. The reason is becuase Flex is event driven. What you can do is add to the Application tag flag of: creationComplete=init() and use inside the class: public function init():void{ pageRO = new RemoteObject(); pageService = PageService.getInstance(); } --- In flexcoders@yahoogroups.com, rumpleminzeflickr [EMAIL PROTECTED] wrote: They are declared in the format public var pageService:PageService; --- In flexcoders@yahoogroups.com, helihobby helihobby@ wrote: I think you forgot to add var unless you define a private var at the top. --- In flexcoders@yahoogroups.com, rumpleminzeflickr rumpleminze@ wrote: Hi, This maybe a really dumb question, but why I can't I create new objects or even assign a null object a value in the class itself? It works fine if I do it in a function. Just trying to understand i'm sure there is a good reason. Many thanks, public class MyClass { // doesn't work here pageRO = new RemoteObject(); pageService = PageService.getInstance(); public function Foo():void{ // works here pageRO = new RemoteObject(); pageService = PageService.getInstance(); } }
[flexcoders] Re: Any tips on how to do enable only vertical Sprite Drag and Drop ?
Perfect ... THANKS S MUCH... This is what I used ... _startingLocation = new Point( ); _startingLocation.x = _boxHandleTop.x; _startingLocation.y = _boxHandleTop.y; _boxHandleTop.startDrag(true,new Rectangle(0,0,0,-400)); Thank you for all the help, Sean - HeliHobby.com --- In flexcoders@yahoogroups.com, slangeberg [EMAIL PROTECTED] wrote: This example is Canvas, but... dragRule is vertical bar beneath the 'dragger' handle. mx:VRule id=dragRule x=182 y=64 height=315/ mx:Canvas id=dragger width=10 height=20 x={ dragRule.x-dragger.width/2 } y=62 mouseDown={ dragger.startDrag( false, new Rectangle( dragRule.x-dragger.width/2, dragRule.y, dragRule.width, dragRule.height-dragger.height ) ); } mouseUp=dragger.stopDrag() - Scott On 2/10/07, helihobby [EMAIL PROTECTED] wrote: Hello, Can anyone post a top on how to to enable only vertical Sprite Drag and Drop ? In other words, when the user drags a sprite, he can only drag it vertically accross the stage and not in any other direction ... !!! Thanks for the help, Sean. -- : : ) Scott