Re: [flexcoders] unable to use debug mode
did you try changing your debugger? e.g. ie to ffox or vice versa windsail05 wrote: For the past couple of months I have not been able to use debug mode for one of my workspaces. I am able to be in debug mode and run things from debug mode, but none of my breakpoints get triggered and none of my traces show up. I am not sure why this is happening. This workspace use to work in debug mode. Does anyone know of any settings that could have been changed or reasons for this happening?
Re: [flexcoders] Can an event know when it is dispatched?
I think gordon's point was not e.target = this; you will implement your own Event class which will extend original Event class . I hope the underlying variable which keeps the reference to the target is protected, not private; so you can edit that value from your subclass. yigit Josh McDonald wrote: Nope :( I get 1059: Property is read-only when compiling this: var e : Event = new Event(); e.target = this; -Josh On Fri, Aug 22, 2008 at 11:16 AM, Gordon Smith [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: You should be able to override the setter for 'target' in a subclass of Event. There should be nothing special about it; it's just a public getter/setter. Gordon Smith Adobe Flex SDK Team *From:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com] *On Behalf Of *Josh McDonald *Sent:* Thursday, August 21, 2008 5:44 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com *Subject:* [flexcoders] Can an event know when it is dispatched? Hey guys, I want to know if there's a (nice, probably secret) way to for an event to know when it's dispatched? I could hook into a timer or ENTER_FRAME and have it check for a valid target, but that's not very nice :) I haven't overloaded function set target, but I imagine that'll give me either a compile-time error or a verifier error since Event is Player-native, and I don't know what namespace to put it in to begin with. I know about the mx_internal static hook in UIComponent, but I want to catch certain events being dispatched from non-visual components and complain about it (just to make life easier for developers using my framework). Cheers, -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Re: [flexcoders] Can an event know when it is dispatched?
But u can public a super's protected. and that is the thing i mentioned in my post I hope the underlying variable which keeps the reference to the target is protected, not private; sorry, dont have the sdk to check now, so if the underlying variable (e.g. _target) is private, sorry for you. yigit Josh McDonald wrote: That was just an example. You can't public a super's private variable, nor can you read-write a super's read-only variable. -Josh On Fri, Aug 22, 2008 at 12:21 PM, yigit [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I think gordon's point was not e.target = this; you will implement your own Event class which will extend original Event class . I hope the underlying variable which keeps the reference to the target is protected, not private; so you can edit that value from your subclass. yigit Josh McDonald wrote: Nope :( I get 1059: Property is read-only when compiling this: var e : Event = new Event(); e.target = this; -Josh On Fri, Aug 22, 2008 at 11:16 AM, Gordon Smith [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: You should be able to override the setter for 'target' in a subclass of Event. There should be nothing special about it; it's just a public getter/setter. Gordon Smith Adobe Flex SDK Team *From:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com] *On Behalf Of *Josh McDonald *Sent:* Thursday, August 21, 2008 5:44 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com *Subject:* [flexcoders] Can an event know when it is dispatched? Hey guys, I want to know if there's a (nice, probably secret) way to for an event to know when it's dispatched? I could hook into a timer or ENTER_FRAME and have it check for a valid target, but that's not very nice :) I haven't overloaded function set target, but I imagine that'll give me either a compile-time error or a verifier error since Event is Player-native, and I don't know what namespace to put it in to begin with. I know about the mx_internal static hook in UIComponent, but I want to catch certain events being dispatched from non-visual components and complain about it (just to make life easier for developers using my framework). Cheers, -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links (Yahoo! ID required) mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Re: [flexcoders] Question about binding via AS
When u create a binding from object A to B, a reference is added to A. (A keeps a reference to B). It will not be garbage collected until you unwatch the changeWatcher it or delete A. So if your concern is whether u need to keep a reference to ChangeWatcher object returned by mx.binding.utils http://livedocs.adobe.com/flex/2/langref/mx/binding/utils/package-detail.html. bindSetter http://livedocs.adobe.com/flex/2/langref/mx/binding/utils/BindingUtils.html#bindSetter%28%29 , the answer is no, you dont need to keep a reference to CW. yigit Alex Harui wrote: I think you have to call unwatch otherwise the CW may not get GC’d *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Josh McDonald *Sent:* Tuesday, August 19, 2008 10:57 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Question about binding via AS Hey guys, If you create a binding via AS, will the binding stop when the returned ChangeWatcher instance is garbage collected? If not, is ChangeWatcher sort of a pointer to some player-internal stuff, or is there a strong reference to the ChangeWatcher via the event binding to PropertyChange on the host? -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for thee. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Force updateDisplayList
did u try callLater ? Make your code that sets the selectedIndex a function and call it using calllater. http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1438.html yigit markgoldin_2000 wrote: I am doing it here: override public function set dataProvider(value:Object):void { super.dataProvider = value; if (dataProvider.length != 0) { var cursor:IViewCursor = (dataProvider as ICollectionView).createCursor(); var recNum:int = 0; while (!cursor.afterLast) { var obj:Object = cursor.current; if (obj[plan + columnCount] == 1) // Show plan { selectedIndex = recNum; recNum++; } cursor.moveNext(); } } } While I see that selectedIndex = recNum; is executed the highlighting effect is not taking a place. What is a right place to set selectedIndex? Thanks
Re: [flexcoders] Execute click programmatically
use: //dg is the id of the datagrid object dg.dispatchEvent(new MouseEvent()); I'm not sure for the code, just written here. But the logic is dispatching the event on behalf of the datagrid. I remember using the same approach before, so it should work. yigit Daniel Gold wrote: are you using the MouseEvent in the event handler? If not, default that parameter and just call the function directly private function clickHandler(event:MouseEvent=null):void { } private function otherFunction():void { clickHandler(); } On Tue, Jul 29, 2008 at 8:30 PM, markgoldin_2000 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: If I have a click listener on DG's cell can I execute cell's click programmatically, something like: cellObject.click() or somehow else to excute listener? Thanks
Re: [flexcoders] Flex Inspiration and ideas
thinking is good, here are the implementations of the ideas you mentioned. interactive calendar: adobe has a component for this http://labs.adobe.com/wiki/index.php/Flex_Scheduling_Framework audio/video player: richflv (actually focused on flv, but pretty good) RSS feed reader: so many on the web. searchcoders has the same consept, with advanced features. forum/bulletin: about 1.5 year ago, I was planning to implement one, actually as an extension to widely used open source forms (e.g. phpbb). Than I could not start.a matter of time and the reason that search engines 'were' not able to index. But now adobe shared some information with google, google started to index flex pages, so can be done! (maybe someone did, i dunno) yigit brucewhealton wrote: Hello all, I was going through some tutorials on Flex 3 just recently, that I found on Flex that were available on the Flex start screen when you start the application. The tutorial on creating a Flickr application was pretty interesting and rather simple to do. That is described here: http://learn.adobe.com/wiki/display/Flex/Part+I.+Creating+a+Simple+RIA http://learn.adobe.com/wiki/display/Flex/Part+I.+Creating+a+Simple+RIA I think there is a mp3 player that is described on the pages on adobe to which one is taken when from Flex when you click on the tutorial link. So, I thought I'd see if anyone could recommend some places where I could find examples, and presentations of things created with Flex... something to inspire one with ideas as to what can be done with Flex? In particular, I had a few ideas in mind... some things that I would bet some people have done with Flex and this could serve as a starting point for custom apps that I might be able to use. Some ideas of things that I'd like to find, an interactive calendar application, audio/video player, RSS feed reader, A Forum/Bulletin board application. I suppose the example Flickr application described here: http://learn.adobe.com/wiki/display/Flex/Part+I.+Creating+a+Simple+RIA http://learn.adobe.com/wiki/display/Flex/Part+I.+Creating+a+Simple+RIA could be modified to display only specific images from a specific account on Flickr. Thanks, Bruce
Re: [flexcoders] mxml components
it depends on references, not whether you use or not. so for example, if the code is like this: MainClass.mxml foo:MainClass foo:SubClass id=bl/ /foo:MainClass SubClass.mxml foo:SubClass foo:SubClass2a id='bla'/ /foo:SubClass they will live forever. But if you load them dynamically, it depends on where you keep the reference. If the reference is lost, it 'may' get removed by garbage collector. (can never be sure because by the nature you cannot control garbage collector). So it depends what you mean by call (calling a function or creating) and also the creation policy of the container class. One more thing to pay attention on memory manager is be careful with the event listener. For example When you write: A.addEventListener(fooEvent,B.onFooEvent); a reference from A to B is created, so there is nothing to keep A in the memory. If you pay attention on creation policy and addEventListener, you'll be fine. yigit Scott wrote: Ok, I’m trying to get a firm grasp on AS3 components/classes. I’m trying to figure out how to structure code so I can optimize code re-use. What is the life of a component/class in a flex application? In other words… If I have a main.mxml that calls another class like logins.mxml, is that class in existence only while it’s called? Once the event hits to call it back is the class still alive? It looks like it kills it from memory but I’m not 100% sure. Take the following examples… MainClass.mxml | |subclass1.mxml | |subclass2.mxml | |subclass2a.mxml If MailClass.mxml calls subclass1.mxml, completes and then calls subclass2.mxml which calls subclass2a.mxml, what are the lives of these classes? Also, do I need to be worrying about cleanup or is that handled automatically? I hope I’m explaining this well…. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] html component, different profile (means of firefox)
hi all, I'm trying to create test clients for my website using adobe AIR. Since the HTML instances in the application share the data, I cannot login with two users. I tried giving distinct userAgent values but it did not work. In firefox, by giving commandline option -no-remote, I can login to my website using different (firefox)profiles. How can I achieve this using AIR ? thanks.
[flexcoders] testing JS using AIR
hi all, i work for a web2.0 company. We have a system composed of flex ajax. Flex and javascript talks using the FAbridge and external interface. We want to make a mass stress testing for the system but there is no way to test JSFlex using many firefox windows, and what we want to test JS clients under stress. (basically we use flex for FMS and XMPP+jingle connection gateway, we need to see whether clients are robust when they start to talk many other) One thing came to my mind, since AIR can run JS code, we may try pushing all system inside an AIR application and run there (create the test clients as AIR applications). But since I've never coded JS in AIR, I'm not comfortable whether moving the browser codes will be ok or not. (we also use prototype.js library). Has anyone tried running browser js codes inside AIR's browser ? So may I get some comments about this approach? Is that worth to try? any ideas or help is appreciate. thanks, yigit
[flexcoders] SLL with socket connection
hi all; we have a flex application that opens a socket connection to the server (java application). everything is fine, no problem but now we urgently need to go to public release; and our java team decided to use SSL. Now I also need to use SSL in my flex application but how? I could not find any example using SLL with socket connection; can anyone please help me? I remember seeing flex encoding-decoding libraries but I just could not find them(will they be enough?). Any help, best practice, experience sharing is welcome... yigit
Re: [flexcoders] SLL with socket connection
thanks Anirudh! so fast, so good; i was just losing my hopes and putting my hands on coding encryption... Anirudh Sasikumar wrote On 02/29/2008 02:04 PM: Hi, Check out AS3 Cryptography library at http://crypto.hurlant.com/ http://crypto.hurlant.com/ Cheers, -- Anirudh Sasikumar http://anirudhs.chaosnet.org/ http://anirudhs.chaosnet.org/
[flexcoders] basic IDE developement, need ideas best practices
hi all; I need to develop a small text editor inside a big flex application. call it expression editor. the user can write javascript, xpath and should be able to add variables (variables are taken from Model,so the user does not define variable, just add reference). the code should be colored(or shaped) well and must be easy as possible as it can be because the users are not coders. For example, when the users wants to call a function, he should select from a drop down list, then select the inputs again from comboboxes if possible(but the input can itself also be an expression :S). Or when he needs to write an XPath, i need to show a tree according to the xsd which will be loaded according to the selected function. to good news is expressions are like function based language codes, so no sequential coding; the bad news is there are too many expressions in the application in many places; so this GUI must work as a pop-up one (so need to be litefast) before starting development, i wanted to ask for design ideas and best practices. any help is welcome. thnks -- yigit
Re: [flexcoders] Re: passing variables between two consecutive flex applications
here is my implemented solution, may be useful for some others; i have written an top page which include an iframe (width height 100%) the first view calls javascript via external interface and it calls it's parent, saves the xml data; then the parent navigates iframe to the other page, then the new page requests the xml via javascript. i work fineefficientno server side scripting. i anyone request, i can send the codes. thanks to helpers. Ralf Bokelberg wrote On 02/18/2008 05:28 PM: Those are your only options. Beside SharedObjects, which is the easiest option i guess. -- Ralf Bokelberg [EMAIL PROTECTED] mailto:ralf.bokelberg%40gmail.com Flex Flash Consultant based in Cologne/Germany
Re: [flexcoders] Basic Air App
i'm having a similar problem while debugging flex on linux (pardus) sometimes the debugger lose connection, sometimes it can not connect; but actually it is not deterministic ;( Dan Vega wrote On 02/20/2008 04:19 PM: I am trying to build a basic air app using Flex 3. I have been writing some Flex applications with no problem but when I goto debug my AIR app I am having some issues. First off here is the basic code to create the app. ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute title=Hello AIR mx:Label text=Hello AIR horizontalCenter=0 verticalCenter=0/ /mx:WindowedApplication When I try and debug Flash Player 9 opens and Flex Builder stays on Launching... for about 1 minute after which I see the following error. Failed to connect, session timed out. Ensure that. 1.) You compiled your flash application with debugging on 2.) You are running the debugger version of Flash Player. I am not sure why I get this message? If I am debbugging flex applications with no problem I should be running the debugger version of Flash player right?
[flexcoders] passing variables between two consecutive flex applications
hi all, i have 2 sperate flex applications (say A B), the user first uses A, then B; and A has to pass an XML file to B. i just could not find a way to pass the xml. it is long so i can not use GET method (so Application.application.parameters) and i do not want to use a server side script to pass xml using flashvars. (i do not want to code any server side! ) i tried SharedObject.getLocal method, but although i serve them from the same domain, they can not reach each others data. (in the help it says they can, but i could not make it work) so, any other solutions ?
Re: [flexcoders] Re: passing variables between two consecutive flex applications
sorry, i need to be more clear; the user navigates from application A to application B. so all js object are cleared, and two applications can not talk via localconnection because they are not running at the same time. by the way, an idea came to my mind right now, i can use external interface, set cookies via javascript then navigate to the other page and read values again with external interface; but actually i did not like it (wish it works) but any other solution? by the way, aduston, thanks. aduston1976 wrote On 02/15/2008 04:22 PM: 1. Use LocalConnection -- see the API doc at http://livedocs.adobe.com/flex/2/langref/flash/net/LocalConnection.html http://livedocs.adobe.com/flex/2/langref/flash/net/LocalConnection.html 2. Use ExternalInterface to write your xml string to a variable attached to javascript window -- see http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=19_External_Interface_178_3.html http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=19_External_Interface_178_3.html and http://developer.mozilla.org/en/docs/DOM:window http://developer.mozilla.org/en/docs/DOM:window , or read a book about javascript. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, yigit [EMAIL PROTECTED] wrote: hi all, i have 2 sperate flex applications (say A B), the user first uses A, then B; and A has to pass an XML file to B. i just could not find a way to pass the xml. it is long so i can not use GET method (so Application.application.parameters) and i do not want to use a server side script to pass xml using flashvars. (i do not want to code any server side! ) i tried SharedObject.getLocal method, but although i serve them from the same domain, they can not reach each others data. (in the help it says they can, but i could not make it work) so, any other solutions ?
Re: [flexcoders] Happy Valentines Day!
Tom Chiverton wrote On 02/14/2008 11:25 AM: On Wednesday 13 Feb 2008, Ed Capistrano wrote: Ahh I wonder if any of the tech guys here and @ adobe do celebrate Valentines Day? Hehe... I'm forced to :-) yes; exactly forced to :s -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] dynamic variable naming in as3
slm deniz ;) you can not create variables referencing from this, but the good news is you dont have to . so instead of using var this[customer + i]:Loader = new Loader(); just use this[customer + i] = new Loader(); then you can reach it this[customer1] e.g. for efficiency, dont forget to case it back. (this['customer2'] as Loader).bla bla... Deniz Davutoglu wrote On 02/12/2008 11:00 AM: Hello folks, I have to create dynamicly couple of movieclips with for loop. in past I could use for (i=0;i10;i++){ createEmptyMovieClip(movie+i, getNextHighestDepth) } but when I try to use for (var i:int=0;i10;i++){ var this[customer + i]:Loader = new Loader(); url =xml.children()[EMAIL PROTECTED](); customer[i].x=xml.children()[EMAIL PROTECTED]() customer[i].y=xml.children()[EMAIL PROTECTED]() var urlReq:URLRequest = new URLRequest(url); customer[i].load(urlReq); addChild(customer[i]); } it cast 1084: Syntax error: expecting identifier before leftbracket. error how can I solve this
Re: [flexcoders] Re: How to deep copy an ArrayCollection?
this will work for just one level of depth. i mean, if your item has a reference to another object in the model, you will just clone the item not the object so you will have two items referencing the same object. i had this issue and developed a system for this. All my object can be serialized to xml and deserialized from xml. by the way xml generation process is recursive.(when an item's toXML method is called it also calls it's children' toXML methods) this give 100% copy. it may be seemed a bit hard, you may start with learning XSD (xml schema definition) by the way, i just realized that the same recursive approach can be applied using byteArrays. Stephen Allison wrote On 02/04/2008 01:38 PM: In my application I am using ArrayCollections to store data for series on a line chart. I need to be able to make a deep copy of these ArrayCollections so that I can make changes to the data in the copies without affecting the original data. IIRC you can write the whole lot into a ByteArray, which serialises it as AMF in memory, and then read it back out again. Classes in your array need [RemoteClass] in order to get correctly typed objects back. ie. var ba:ByteArray = new ByteArray(); ba.writeObject(yourData); var newCopy = ba.readObject(); Stephen
Re: [flexcoders] Flex 3 Beta 2 expired today!! Is the a workaround?
i also have the same problem. currently downloading beta 3 , i could not find any other solution; i wish beta 3 works for me. eric_mahe wrote On 01/31/2008 11:34 AM: Hi, I am using Flex 3 beta 2 (with the Flex 2 serial numbers). But today i can not build a project anymore. I have always the error beta expired. It seems that expiration is forced on January 31. I can not upgrade to Flex 3 beta 3, as one of my library does not work (I prefer to wait for the general release to make the corrections). Has someone the same problem? Is there a workarount to use Flex 3 beta2 until the FB3 General release. Any help appreciated, as i am really blocked! Thx, Eric
Re: [flexcoders] How do I test if a variable is defined?
to test whether a variable exists or not if(varName) trace('exists'); else trace('does not exist'); Clinton D. Judy wrote On 01/31/2008 05:34 PM: No other explanation needed, really. How do I see if an object/variable exists before I test other conditions of it? Unnecessary explanation: I use two completely separate mxml interfaces that both use one as script file. One program is just missing some information that the other one has. I’d like to keep using the same script file, but it references a variable that exists in one file that doesn’t exist in the other file, and I need to make sure it exists before I use it. Clinton Judy Web Developer Glenn O. Hawbaker, Inc. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] How do I test if a variable is defined?
ok then try this; try{ varName; trace('variable exists'); }catch(e:Error){ trace('variable does not exist'); } Clinton D. Judy wrote On 01/31/2008 05:53 PM: I tried that, and it tells me the variable is undefined and cannot test it. Which doesn't seem to make a whole lot of sense. I tried your method first, and don't understand why it's not working. -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of yigit Sent: Thursday, January 31, 2008 10:45 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] How do I test if a variable is defined? to test whether a variable exists or not if(varName) trace('exists'); else trace('does not exist'); Clinton D. Judy wrote On 01/31/2008 05:34 PM: No other explanation needed, really. How do I see if an object/variable exists before I test other conditions of it? Unnecessary explanation: I use two completely separate mxml interfaces that both use one as script file. One program is just missing some information that the other one has. I'd like to keep using the same script file, but it references a variable that exists in one file that doesn't exist in the other file, and I need to make sure it exists before I use it. Clinton Judy Web Developer Glenn O. Hawbaker, Inc. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
Re: [flexcoders] Maximum Image Size to Upload
it depends on the server side. e.g. @ php default value is 2 mb im many servers but you can configure php.ini file to edit it. Romeo Obane wrote On 01/29/2008 10:13 AM: Greeting! I would like to ask of what is the maximum size limit of one image to upload through File Reference? Thanks' a lot for your response, Romeo
Re: [flexcoders] other way of opening a new browser?
use : navigatetoURL(URL); Lee wrote On 01/29/2008 11:24 AM: Hi =) Is there any other way of opening/creating/launching a new browser window from flex aside from using javascript with ExternalInterface? Thanks! :) Lee Never miss a thing. Make Yahoo your homepage. http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs
Re: [flexcoders] ViewStack + ButtonBar combo layout problem
an extension to quick solution : if you can handle the cost of setting creationPolicy all in veiwStack ; use: mx:ViewStack width={vbox.selectedItem.dataProvider.length * 30} / bjorn - wrote On 01/29/2008 03:32 PM: Thanks for that - but each buttonbar contains dynamic data, so it's not given that the first should be smaller than the second etc. I guess I could count the data, and then do some calculation on the height -- but it seems a bit hackish On 29/01/2008, *yigit* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: a quick solution : mx:ViewStack width={vbox.selectedIndex == 0 ? 200 : 500} id=vbox / bjorn - wrote On 01/29/2008 02:56 PM: I've got three ButtonBars in a ViewStack, but this doesn't seem to work too well. The problem is that if I don't specify a height on the ViewStack all the ButtonBar's take the height of the first one. If the first one only has two elements while the next ones have ten, that's a problem. If I do specify a height the first one doesn't look good since it will add spacing between the two buttons to make it fill the whole height. I also tried calling .invalidateSize() on the selected ButtonBar to make it resize itself but to no avail .. Can I tell it to align at top or something with less spacing between each button? (verticalAlign=top didn't do much ..) -- http://www.juicability.com http://www.juicability.com/ http://www.juicability.com http://www.juicability.com/ - flex blog http://www.43min.com http://www.43min.com/ http://www.43min.com http://www.43min.com/ - funny movies -- http://www.juicability.com http://www.juicability.com - flex blog http://www.43min.com http://www.43min.com - funny movies
Re: [flexcoders] Update viewstack view on each button click
creating the view again and again is not a good solution; instead you better use data binding and keepdata valid in a singleton model class... another (bad) solution is that, if your component do their business job themselves (connect to server, retrieve data); implement them an init function which you will call when you select that component. the function will free the data arrays first then retreive data from server... but as i said before; you better use a singleton Model class. Berkay Unal wrote On 01/29/2008 12:14 PM: Hi Coders I have 2 buttons and when clicked i am changing the viewstack's selectedChild. My problem is i have some dynamic content on the peopleView. When i click on the UserList button the stack change and data is loaded. But when i click it again it does not refresh. What i need to know is every time i click on the a button although the current view is the same as the clicked one i want it to be recreated? Anyone know how to achieve this? mx:Button label=Add Person click=mainView.selectedChild = personView icon={__AddPersonIcon} / mx:Button label=User List click=mainView.selectedChild = peopleView icon={__PeopleIcon} / mx:ViewStack id=mainView width=100% height=100% paddingTop={myMenuBar.height} views:person id=personView dbConnection={conn} / views:people id=peopleView dbConnection={conn} / /mx:ViewStack
Re: [flexcoders] ViewStack + ButtonBar combo layout problem
a quick solution : mx:ViewStack width={vbox.selectedIndex == 0 ? 200 : 500} id=vbox / bjorn - wrote On 01/29/2008 02:56 PM: I've got three ButtonBars in a ViewStack, but this doesn't seem to work too well. The problem is that if I don't specify a height on the ViewStack all the ButtonBar's take the height of the first one. If the first one only has two elements while the next ones have ten, that's a problem. If I do specify a height the first one doesn't look good since it will add spacing between the two buttons to make it fill the whole height. I also tried calling .invalidateSize() on the selected ButtonBar to make it resize itself but to no avail .. Can I tell it to align at top or something with less spacing between each button? (verticalAlign=top didn't do much ..) -- http://www.juicability.com http://www.juicability.com - flex blog http://www.43min.com http://www.43min.com - funny movies
Re: [flexcoders] Editable DataGrid and keyboard navigation
write your own item editor; (possibliy extend text) in it; listen key events;and when the user presses up or down keys; dispatch parent.key event... i'm not sure but it should work... (i hope) markgoldin_2000 wrote On 01/22/2008 04:27 PM: If a DataGrid is editable then when I click on a cell I cannot navigate out of the cell using up and down keys. Is that correct? Is there a way to have navigation working in the editable grid just like it works in a readonly one? Thanks
Re: [flexcoders] Simple sprite creation not working
the reason is that your main.as does not have a valid view. try passing the mxml view as an argument to it and call it's addChild function; e.g. public function createSprite2():void{ var main:Main = new Main(); main.createSprite(this); } and in main.as public function createSprite(con:UIComponent) : void{ var visual:Visual = new Visual(); var ref:UIComponent = new UIComponent(); con.addChild(ref); ref.addChild(visual); trace('called from Main.as'); } and it should work... jrag0n wrote On 01/21/2008 08:30 AM: Hello, When I try to draw a circle on the screen by calling a script that's in the mxml, it works fine: mx:Button label=Button click=createSprite1(); right=10 top=10/ and public function createSprite1():void { var visual:Visual = new Visual(); var ref:UIComponent = new UIComponent(); addChild(ref); ref.addChild(visual); trace('called from mxml'); } But if I try to call it from a class, it is called (I can tell because of the trace output) but it doesn't draw the circle on the screen. Here's my rough code that doesn't work so far: mx:Button label=Button click=createSprite2(); right=10 top=40/ public function createSprite2():void { var main:Main = new Main(); main.createSprite(); } And then my Main.as file just has the same code: public function createSprite() : void { var visual:Visual = new Visual(); var ref:UIComponent = new UIComponent(); addChild(ref); ref.addChild(visual); trace('called from Main.as'); } As I said, I know this class is being called because I can see the trace output. Any suggestions why this isn't working for me? Thanks for any help, Jon
Re: [flexcoders] Using Popup menu
use PopUpManager. create an mxml component which is responsible for password changing (say Pass.mxml) in your login mxml , in the onClick event of the change password button, use popUpManager to create a Pass.mxml var a:Pass = new Pass(); PopUpManager.addPopUp(a as IFlexDisplayObject , this); then in the close function of Pass.mxml PopUpManager.removePopUp(this); Tom Preet wrote On 01/16/2008 09:26 AM: Hi All, Iam working using login page in my app am using username, password to give username and password, when I click on submit button it will validate the user name and password upto here working fine. I am using another button for change password when I click on change password button a new popup menu or window is tobe displayed. can anyone suggest mw how to use popups for such buttons. Thanks in Advance.. --Tomt
Re: [flexcoders] adding and refering the childs of a container
just keep a userVO - window dictionary (which maps users to their windows) then when a message comes, you can find the corresponding window looking at the dictionary. through the window, you can reach it's components. to make this easy,give id's to inner components (text input etc) shrikant.patil wrote On 01/14/2008 08:10 AM: hi, here i am with a problem, i m creating a chat based flex application in which when ever i click on an name of the user it opens a new window, which contains a text area, input text etc... this happens each time what i want to chat with a person. ( think like yahoo messanger). So for creating seprate window i used FLEDMDI framework in flex 2.0.1 which works well.. when i double click on a user name it opens a new window, inside this new window i created a MXML component which is added as as a child to this window container.. this addition is also works fine , but the problem is how can i refer these components text box etc... bcoz when a new message comes form a user then i need to populate it in his window only so it is neccssary for me to hold dynamically created component child reference. how may i achive this.?? and in action script 3 we cannot create controls as in AS2 where we can assign a String+variable name as a control name.. so what might b the solution?? thanks in advance shri -- View this message in context: http://www.nabble.com/adding-and-refering-the-childs-of-a-container-tp14795865p14795865.html http://www.nabble.com/adding-and-refering-the-childs-of-a-container-tp14795865p14795865.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] function binding toString !! Additional information
http://127.0.0.1:49661/help/index.jsp?topic=/com.adobe.flexbuilder.help/html/databinding_4.html here; in the first example, there is a bindable function and it is not a setter or getter. so functions other then setters and getters can be binded! so my question should have an answer... by the way, i'm dont have to use function biding, i can make thinks work without it, but when i saw it i decided to use, cuz it is cool :) , and good in terms of code readiblity... so , check out te following example, an event triggers the binding of the function and the function(is Enabled) is neither a getter or a setter: ?xml version=1.0? !-- binding/ASFunction.mxml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import flash.events.Event; // Define a function that gets invoked // in response to the myFlagChanged event. [Bindable(event=myFlagChanged)] private function isEnabled():String { if (myFlag) return 'true'; else return 'false'; } private var _myFlag:Boolean = false; // Define a setter method that dispatches the // myFlagChanged event to trigger the data binding. public function set myFlag(value:Boolean):void { _myFlag = value; dispatchEvent(new Event(myFlagChanged)); } public function get myFlag():Boolean { return _myFlag; } ]] /mx:Script !-- Use the function as the source of a data binding expression. -- mx:TextArea id=myTA text={isEnabled()}/ !-- Modify the property, causing the setter method to dispatch the myFlagChanged event to trigger data binding. -- mx:Button label=Clear MyFlag click=myFlag=false;/ mx:Button label=Set MyFlag click=myFlag=true;/ /mx:Application Frederico Garcia wrote On 12/27/2007 02:57 PM: yigit escreveu: i think i'm misunderstood; because your solution suggestions does not fit my problem. first of all, functions can be binded. (with an event driven architecture that triggers the function to be executed and all bindable references be updated) to see how it is done, take a look at the article in flex api : http://127.0.0.1:64744/help/index.jsp?topic=/com.adobe.flexbuilder.help/html/databinding_4.html http://127.0.0.1:64744/help/index.jsp?topic=/com.adobe.flexbuilder.help/html/databinding_4.html (or search for [Bindable] function then click the second result) after this quick information, i want to refigure my problem. assume: myInstance:MyClass; //MyClass implements a bindable toString method my problem has two parts: 1st; when i use function biding (textInput text={myInstance.toString()}/) , function binding works fine except the itemRenderer (textInput text={data.toString()}/) why? what is the problem? can't the VM detect the binding mechanism? (by the way there isn't any compile time warnings about the binding will not be able to run properly) 2nd: if i do not write toString (textInput text={myINstance}/), although it calls toString method to find the text value, function binding does never work (neither in itemRenderers nor normal usage). why? why cant the compiler detect the binding? thnks in advance. Frederico Garcia wrote On 12/26/2007 05:38 PM: Jhonny Everson escreveu: I guess that your solution has a problem, the circular reference to toString. it could be something like: [Bindable] public var stringValue:String = ; public function toString():String { ... ( some processing that results in a string var 'string1') stringValue= string1; return stringValue; } On 12/26/07, * Frederico Garcia* [EMAIL PROTECTED] mailto:fmotagarcia%40kemelyon.com mailto:fmotagarcia%40kemelyon.com mailto:[EMAIL PROTECTED] mailto:fmotagarcia%40kemelyon.com mailto:fmotagarcia%40kemelyon.com wrote: yigit escreveu: hi all; i have a custom class which has a toString method; so i can directly use it as a source to textInput's text field. i want to make binding work, i mean when the result of the toString changes, i want the view to update itself automatically. nameID field of roleRef is an instance of my class that implements toString with function biding. when i use this way: mx:Label id=lbl text={roleRef.nameID}/ function binding on toString does not work when i use this way: mx:Label id=lbl text={roleRef.nameID.toString()}/ function biding on toString works, but inside an item renderer, it does not work. mx:Label id=lbl text={data.nameID.toString()}/ is this a compiler bug or is this the normal behavior? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com
[flexcoders] function binding toString
hi all; i have a custom class which has a toString method; so i can directly use it as a source to textInput's text field. i want to make binding work, i mean when the result of the toString changes, i want the view to update itself automatically. nameID field of roleRef is an instance of my class that implements toString with function biding. when i use this way: mx:Label id=lbl text={roleRef.nameID}/ function binding on toString does not work when i use this way: mx:Label id=lbl text={roleRef.nameID.toString()}/ function biding on toString works, but inside an item renderer, it does not work. mx:Label id=lbl text={data.nameID.toString()}/ is this a compiler bug or is this the normal behavior?
Re: [flexcoders] function binding toString !! Additional information
i think i'm misunderstood; because your solution suggestions does not fit my problem. first of all, functions can be binded. (with an event driven architecture that triggers the function to be executed and all bindable references be updated) to see how it is done, take a look at the article in flex api : http://127.0.0.1:64744/help/index.jsp?topic=/com.adobe.flexbuilder.help/html/databinding_4.html (or search for [Bindable] function then click the second result) after this quick information, i want to refigure my problem. assume: myInstance:MyClass; //MyClass implements a bindable toString method my problem has two parts: 1st; when i use function biding (textInput text={myInstance.toString()}/) , function binding works fine except the itemRenderer (textInput text={data.toString()}/) why? what is the problem? can't the VM detect the binding mechanism? (by the way there isn't any compile time warnings about the binding will not be able to run properly) 2nd: if i do not write toString (textInput text={myINstance}/), although it calls toString method to find the text value, function binding does never work (neither in itemRenderers nor normal usage). why? why cant the compiler detect the binding? thnks in advance. Frederico Garcia wrote On 12/26/2007 05:38 PM: Jhonny Everson escreveu: I guess that your solution has a problem, the circular reference to toString. it could be something like: [Bindable] public var stringValue:String = ; public function toString():String { ... ( some processing that results in a string var 'string1') stringValue= string1; return stringValue; } On 12/26/07, * Frederico Garcia* [EMAIL PROTECTED] mailto:fmotagarcia%40kemelyon.com mailto:[EMAIL PROTECTED] mailto:fmotagarcia%40kemelyon.com wrote: yigit escreveu: hi all; i have a custom class which has a toString method; so i can directly use it as a source to textInput's text field. i want to make binding work, i mean when the result of the toString changes, i want the view to update itself automatically. nameID field of roleRef is an instance of my class that implements toString with function biding. when i use this way: mx:Label id=lbl text={roleRef.nameID}/ function binding on toString does not work when i use this way: mx:Label id=lbl text={roleRef.nameID.toString()}/ function biding on toString works, but inside an item renderer, it does not work. mx:Label id=lbl text={data.nameID.toString()}/ is this a compiler bug or is this the normal behavior? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links __ NOD32 2747 (20071225) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com http://www.eset.com I believe you can only bind vars and setters. By binding a function i think it will only execute the function once. An easy workaround is to have a var containg the result of the toString function and bind the property to that var. Something like: [Bindable] public var stringValue:String = ; public function toString():String { stringValue= this.toString(); return stringValue; } mx:Label id=lbl text={data.nameID.stringValue}/ Regards Frederico Garcia -- Jhonny Everson __ NOD32 2747 (20071225) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com http://www.eset.com Yes, indeed there was a circular reference to toString. Thanks for the correction. The general concept is the same though, and I think it's the best way to solve the bind to function problem. Regards Frederico Garcia
Re: [flexcoders] Which architecture to follow
you should first provide what kind of an application you want to develop. in other case, comments will be too general and useless.. so , what kind of an application you want to develop? Anzer wrote On 12/05/2007 07:34 AM: Cairngorm or PureMVC? I have read some where PureMVC is the best choice. Please give your inputs. Thanks Anz
Re: [flexcoders] How to pass salesforce connection object to another mxml component
singleton class should be fine; you better recheck your implementation... here is an alternative way (not preferable w.r.t. singleton) --- keep login parameters in the main component(e.g. application) as bindanble; then pass these values to each component (where you need login). -- if you want to share data; just do the same approach, keep data as an object in the main application and pass it as an argument to other components... you can edit data in any of your components... wish it helps... Girish wrote On 12/05/2007 05:49 AM: Hi All I am using Salesforce as Database. In each mxml component i have written login method to login to salesforce to retrieve data. I want to use single login in main application and want to use that in other mxml components. how can i achieve it.. I tried using singleTon but in Sample project it is working fine when i actually implemented in realtime project then it giving problem. Is there any other way that i can implement Thanks in advance Regards Girish Chat on a cool, new interface. No download required. Click here. http://in.rd.yahoo.com/tagline_webmessenger_10/*http://in.messenger.yahoo.com/webmessengerpromo.php
[flexcoders] how does import statement,work? a possible fb bug
hi all; in my cairngrom application, i have many classes and some of them has the same name but of course diffrent packages. i autogenerate code, so to not to let ambiguity, i alway use classes with their packages. e.g. instead of writing var foo:Foo; i write var foo:tr.com.sth.vo.Foo; the compiler give and interesting error, saying that con not recognize tr (my initial package name); but when i go to the end of tr.com.sth.vo.Foo and press ctrl+space after waiting seconds, and rebuilt; the error goes! (without any change in the source). i'm using beta2 on eclipse. i think the compiler gets confused, but what can be the reason for this, are there tips to overcome?? thanks...
Re: [flexcoders] Loading combobox problem...
i just can not give a solution to your first question cuz i couldn't understand it. (sth must be going wrong in your code) anyway; here is a better way to handle shared data; a MODEL . model is a singleton class that generally keeps shared data of your applicaiton. it should look like ; and you MUST alway call getInstance() to reach it... like , Model.getInstance().arrayCollection public class Model{ private static var instance:Model ; public var arrayCollection:ArrayCollection(); public var foo:Foo; //etc etc ... public static function getInstance(){ if(instance == null ) instance = new Model(); return instance; } public function Model(){ if(instance != null); //ERROR!!! } } by the way; i wrote it here; there may be a syntax error ... wish it helps... aceoohay wrote On 11/24/2007 06:58 PM: The following is in flexbuilder 2, AS 3. I have an application that I am building with modules using NetConnection to access the server. I want to centralize the routines that get data from the DB for Combo Boxes and the like because I want to reuse the data returned. In the parentApplication, I created my function to query and handle the result, storing the data in a public arrayCollection. In the module, I access the data by setting the dataprovider to parentApplication.myArrayCollection. Due to the asynchronous nature of Flex the data does not appear the first time the module displays but does if I redisplay the module. My solution which does not work was to do; parentApplication.myArrayCollection.addEventListener (CollectionEvent.COLLECTION_CHANGE,LoadLists); where LoadLists is a function that sets the dataprovider for the combobox. LoadLists never gets executed. Being the resourceful individual I decided to try to force the event by inserting the following line in my result handler in the parentApplication; myArrayCollection.dispatchEvent(new CollectionEvent (mx.events.CollectionEvent.COLLECTION_CHANGE)); This still does not force the event to occur. Is this a bug, or what am I doing wrong? A secondary question is; What is the best way to handle static (mostly) data for combo boxes so that; a) It is queried only when needed and b) Stored at the client for the current session to reduce DB hits? Paul
[flexcoders] cairngorm design question, need suggestions
hi all; i work in a project which includes the implementation of a RIA application in which the user will generate an XML based on an XSD defined language using dragdrops and etc. (user never sees the xml). at first, we developed a code generator using AIR that takes the XSD and generates vo's, commaders, events,model controller. so we just hand coded the views. and the demo was very successful. now the second phase of the project came and there are huge differences in the XSD, so we had to handcode additional things into commanders, which violated the auto-generation approach and resulted in some bugs inefficiency. then we decided to upgrade the code generator to create more clever commanders and more specific events. we have an important debate here for which we need suggestions, so i'm presenting you our question. when an event is being handled, there may be need to do some more things which is done by another commander and has a specific event. in such a situation, -- should the commander call the other commander just creating the event and sending it to the other's execute method or --should the commander create the event and just dispatch. the second is the normal way for the cairngorm specs but the first is much more efficient. so which one do you suggest? thnks. p.s. commanders are specific to VO's a a commander just edit's it's VO's data on the model.
[flexcoders] cairngorm design question , need suggestions
hi all; we have a GUI built with flex using cairngorm microarchitechture. the GUI is quite complex, and there is an xml schema (xsd) that represents the VO structure. We prepared a code generator(using AIR) which parses the xsd and creates vo's,commanders,events,modelfrontcontroller, so we just handcode the view. (Vo's are serializable to XML and deserializable from XML , all auto generated -sth like jaxb of java- ) the GUI was good for version1 but the XSD had to change a lot and we had to insert hand written code into commaders and we started to have performance issues. now there is a new XSD, GUI will be recreated and we want to upgrade our code generator to support the changes (more clever commanders more specific events!); so here comes my design question : every class has it's own commander. and sometimes, when an event is being executed, another commander should also work(sth more must be done), and there is a specific event for that operation too. (e.g. deletion of an instance of class A requires the update of the instances of class B ) in this situation, 1 should commanderA dispatch an event to update class B instance or 2 should commanderA call commanderB's execute function with the needed event as argument or 3 should commarderA edit B vo's . (we don't prefer this cuz it violates the generic style of our code cairngorm) the second option is more efficient since it does not need to dispatch the event and wait for it to be caught; but we wonder whether it violates the cairngorm design pattern rules. this is a really important project, so we'll be very pleased by taking your comments.
Re: [flexcoders] Full Screen Mode
yeah; it is sth that annoyed me; like years ago the removal of file access at flash. (i guess it was flash 4 to 5) anyway; security comes first of course, but there must be a way to enable these options, like a certificate or sth else.. adobe? Charlie Skinner wrote: Could anyone shed any light on what exactly the security issues are with Full Screen Mode? I was really excited about this functionality when I first read about it. But on further exploration I discover that: /Users cannot enter text in text input fields while in full-screen mode. All keyboard input and key-related ActionScript is disabled while in full-screen mode, with the exception of the keyboard shortcuts that take the viewer out of full-screen mode./ / / I'm working on a large CMS in Flex and not being able to use the keyboard or text input boxes makes the application pretty pointless.
Re: [flexcoders] How to draw a line on mouse over change it's color style
example code for panel: graphics.lineStyle(3,0,1); graphics.moveTo(0x, y0); graphics.lineTo(x1, y1); we once needed line for an application and implemented a Line class extending canvas. most possibly, there is a better way for it; and i advice you to try flash cs3 flex integration for drawing components... Baljeet singh wrote On 09/11/2007 11:59 AM: Hi all, need u'r kind help How can i draw a line between two points on a panel how can i changes it's color and style on mouse over. thanks regards, Bali