RE: [Flashcoders] PLEASE help with advanced dataset issues
Sorry Don, typo in address... www.radiantmedia.biz/FlashSamples/DatasetFilter.zip Andrew - Don: There are a couple things to check for. Rather than list them all I have a sample of exactly what you're trying to do. Feel free to download the ZIP below and take a look. It's written in MX04 and it's a bare-bones example, but works well. www.radiantmedia.biz/FalshSamples/DatasetFilter.zip HTH, Andrew -Original Message- From: Gaia-Tek [mailto:[EMAIL PROTECTED] Sent: Friday, April 20, 2007 6:49 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] PLEASE help with advanced dataset issues Hi Group, I have an XMLconnector, bound to a dataset, bound to a datagrid. Connector connects, fills the dataset, dataset is sorted and filtered, and the datagrid is populated - lovely! Except for the looong freeze while the XMLconnector does it's thing... So I tried to fill the dataset manually, by populating it with an array... This works fine, better in fact because it's faster and there's no freeze, and I can use a progressbar component to show progress. I can sort the datagset, and the results are shown in the datagrid. BUT, as soon as I try and filter the dataset, everything goes pear-shaped!!! As soon as I apply any filter to the dataset, the datagrid goes blank, and if I trace the first record of the dataset, it's undefined... I've been fighting this for 2 days, please help! Thanks Don -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 269.5.5/769 - Release Date: 2007/04/19 05:56 PM ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] PLEASE help with advanced dataset issues
Don: There are a couple things to check for. Rather than list them all I have a sample of exactly what you're trying to do. Feel free to download the ZIP below and take a look. It's written in MX04 and it's a bare-bones example, but works well. www.radiantmedia.biz/FalshSamples/DatasetFilter.zip HTH, Andrew -Original Message- From: Gaia-Tek [mailto:[EMAIL PROTECTED] Sent: Friday, April 20, 2007 6:49 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] PLEASE help with advanced dataset issues Hi Group, I have an XMLconnector, bound to a dataset, bound to a datagrid. Connector connects, fills the dataset, dataset is sorted and filtered, and the datagrid is populated - lovely! Except for the looong freeze while the XMLconnector does it's thing... So I tried to fill the dataset manually, by populating it with an array... This works fine, better in fact because it's faster and there's no freeze, and I can use a progressbar component to show progress. I can sort the datagset, and the results are shown in the datagrid. BUT, as soon as I try and filter the dataset, everything goes pear-shaped!!! As soon as I apply any filter to the dataset, the datagrid goes blank, and if I trace the first record of the dataset, it's undefined... I've been fighting this for 2 days, please help! Thanks Don -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 269.5.5/769 - Release Date: 2007/04/19 05:56 PM ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] attaching an event to a movie clip
newMC.rollOver Should be: newMC.onRollOver HTH -Original Message- From: Gustavo Duenas [mailto:[EMAIL PROTECTED] Sent: Friday, April 06, 2007 12:43 PM To: Flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] attaching an event to a movie clip Hi , Ok it doesn't sound as simple, I've created a series of empty movieclips which loads pics from an array, so far it loads perfectly but I can attach to the newly created movie clip any kind of events. I'm using this. stop(); var models = new Array(); models = [ "model1", "model2", "model3", "model4"]; trace(models.length); for (i=0; ihttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Entities are Hell!
Play with nodeValue. As a test add the entity code into the XML file and use nodeValue: // XML Akbar & Jeff's ActionScript Hut // // AS theClip.txt.text = xmlNode.firstChild.firstChild.nodeValue; // instead of: // XML Akbar & Jeff's ActionScript Hut // // AS theClip.txt.text = xmlNode.firstChild.firstChild; // HTH - Andrew -Original Message- From: Steven Loe [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 04, 2007 10:24 AM To: Flashcoders mailing list Subject: [Flashcoders] Entities are Hell! I'm loading xml with special characters. These display as their entity codes i.e. "&" as "&". If I put enitity codes in the xml, I still get entity codes displaying on screen. What am I doing wrong? Any thoughts? Thanks!!! Screen Output: Akbar & Jeff's ActionScript Hut my_xml.xml: Akbar & Jeff's ActionScript Hut class: class LoadXml { private static var xmlUrl:String = "my_xml.xml"; private var rootRef; private var theClip:MovieClip; function LoadXml(rootRef) { this.rootRef = rootRef; var xmlDoc:XML = new XML(); xmlDoc.ignoreWhite = true; xmlDoc.onLoad = function(success:Boolean) { if (success) { this.owner.displayData(this); } else { trace("error loading xml"); } }; Object(xmlDoc).owner = this; xmlDoc.load(xmlUrl); } private function displayData(xmlDoc:XML) { var xmlNode:XMLNode = xmlDoc.firstChild; if (xmlNode.nodeName.toString() == "hut_data") { theClip = this.rootRef.createEmptyMovieClip("theClip", 1); theClip.createTextField("txt", 10, 10, 10, 250, 20); theClip.txt.html = true; theClip.txt.text = xmlNode.firstChild.firstChild; } } } Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Problem extending inherited function
The way you had your code, the Child class will never receive the killingFocus call. Add a Delegate within the Mother Class to put the onKillFocus event into scope with Child... import mx.utils.Delegate; class Mother extends MovieClip { public var txt:TextField; public function Mother() { //this.onPress = killingFocus; this.txt.onKillFocus = Delegate.create(this, killingFocus); } public function killingFocus():Void { trace("testFunc in mother"); } } HTH - Andrew Rost -Original Message- From: Johan Nyberg [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 21, 2007 3:10 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Problem extending inherited function Hi, I have a problem extending an inherited function. I put all the files described here in a zip if you want to test it yourselves: http://www.webguidepartner.com/~johan/super-problem.zip I have this mother-class: class Mother extends MovieClip { public var txt:TextField; public function Mother() { this.onPress = killingFocus; //this.txt.onKillFocus = killingFocus; } public function killingFocus():Void { trace("testFunc in mother"); } } ...and this child-class that inherits from Mother: class Child extends Mother { public function Child() { super(); } public function killingFocus():Void { super.killingFocus(); trace("testFunc in child"); } } Now, I have a test.fla that contains a movie clip that is linked to Child. Everything works as expected, both lines of trace running on the onPress. But now: comment out the onPress-event in the constructor in Mother, and uncomment the second line: this.txt.onKillFocus = killingFocus; Now, there is a text field inside the movie clip. When this text field loses focus, you wold expect the code to run the same way, but no. The killingFocus-function in Mother is overwritten and only the trace in Child runs. I have some clue that the problem must have something to do with that it is the text field that triggers the event, and not the movie clip. But you would expect the super.killingFocus(); to work anyway, regardless of what calls the function?! Regards, /Johan -- Johan Nyberg Web Guide Partner Sergels Torg 12, 8 tr 111 57 Stockholm 070 - 407 83 00 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] xml parse question
You might be aware of this, but just an FYI, if you're concerned about attributes being order specific. When you loop through the attributes with a for statement, you'll get the attributes in the reverse order. I personally loop through the attributes and push the attribute name to an array and then reverse order, when the for is done. Andrew -Original Message- From: Carl Welch [mailto:[EMAIL PROTECTED] Sent: Thursday, March 15, 2007 3:04 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] xml parse question Nevermind. I found this in one of my many flash books: myAttributes = this.firstChild.childNodes[0].childNodes[0].attributes; for(attributes in myAttributes){ trace(attributes+" : "+myAttributes[attributes]); } On 3/14/07, Carl Welch <[EMAIL PROTECTED]> wrote: > What if I don't know what the names are going to be? How can I check > how many attributes are in a node? is there anything like > .attributes.length (I know that's wrong...) so I can loop > through and find out their names? > > -- > Carl Welch > http://www.carlwelch.com > [EMAIL PROTECTED] > > On 3/14/07, Andrew Wright <[EMAIL PROTECTED]> wrote: > > .attributes.imageID > > .attributes.img > > .attributes.text > > > > etc > > > Hi coders, > > > > > > I just started working on a new project that is requiring me to handle > > > an xml format that I haven't had to deal with yet. > > > > > > Here is an example of what it looks like: > > > > > > > > Font="Black,8,Regular,AlignLeft" onPanel="true" xPos="0.25" > > > yPos="0.112" /> > > > > > > I'm used to parsing xml that looks like this: > > > > > > > > > "foo" > > > > > > > > > How do I parse xml that looks like the first example with multiple > > > values inside of a single node? > > > > > > Thanks. > > > > ___ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > > -- Carl Welch http://www.carlwelch.com [EMAIL PROTECTED] 805.403.4819 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Site Check
Stuck at 33% XP Pro SP2 2.2 Ghz 2 GB Ram IE7 FP 9,0,28,0 -Original Message- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 14, 2007 10:37 AM To: Flashcoders Subject: [Flashcoders] Site Check Could I get some of you to check this site: http://www.simon-mills.co.uk/test/ Some people are saying that it gets stuck at 1% or 2%. Can anyone confirm this? Cheers. Adrian Lynch ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Help with updating a nodeValue in an XML file
Sorry miss understood the question. You won't be able to write back to the XML file located on the server directly. You'll have to add a logic layer (ASP, PHP, C#, etc...) that you can send the new XML data and have that layer update your XML file (XMLConnector, WebServiceConnector, etc...) Andrew -Original Message- From: Teresa Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, March 08, 2007 4:12 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Help with updating a nodeValue in an XML file This definitely loads the Flash object...I get that part. But it doesn't write to my file called setup.xml. I am in the OReilly ActionScript book now and this is the first time it has ever failed me. I tried parseXML and sendAndLoad but I can't seem to write into the file. Thanks for helping me. Teresa On 3/8/07, Rost, Andrew <[EMAIL PROTECTED]> wrote: > > All you need to do is set the nodeValue rather than access it. > > var trial_xml:XML = new XML("This is a > category"); > trace(trial_xml.firstChild.firstChild.firstChild.nodeValue); > trial_xml.firstChild.firstChild.firstChild.nodeValue = "This is a NEW > category"; > trace(trial_xml.firstChild.firstChild.firstChild.nodeValue); > trace(trial_xml); > stop(); > > trace output: > > This is a category > This is a NEW category > This is a NEW category > > Hope that helps, > Andrew > -Original Message- > From: Teresa Hardy [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 08, 2007 2:49 PM > To: flashcoders@chattyfig.figleaf.com > Subject: Re: [Flashcoders] Help with updating a nodeValue in an XML file > > I have been through more manuals than I can list, have also been through > the > complete www.lynda.com tutorial. All the examples create new nodes. I have > not seen any example that writes to an existing node. > Teresa > > On 3/8/07, dr.ache <[EMAIL PROTECTED]> wrote: > > > > Maybe i get you wrong, but maybe |nodeValue:String is, what you are > > looking for. > > Give the manual a chance - search for XMLNode > > > > greez, > > dr.ache > > > > > > > > |Teresa Hardy schrieb: > > > I thought this was really basic and easy but I just can't find the > > > syntax to > > > do it. All I am trying to do is update one nodeValue from the swf to > > > the xml > > > based on which button is selected. I don't want to make a new node, > just > > > update the that exists. The reading part listed below works > > > fine. I > > > just can't figure out how to write TO a specified child node and all > the > > > documentation has me totally confused. I am starting to wonder if I > > > have to > > > .removeNode and recreate itI still don't have the syntax. > > > > > > Thanks in advance. I have been learning a huge amount from listening > > > to all > > > the conversations here as I teach myself ActionScript! > > > > > > Teresa > > > > > > my_xml = new XML(); > > > my_xml.ignoreWhite = true; > > > my_xml.load("setup.xml"); > > > my_xml.onLoad = function(success) { > > >if (success) { > > >sessionInfo_xml = my_xml.firstChild; > > >children = sessionInfo_xml.childNodes; > > >folderName = children[0].firstChild.nodeValue; > > >maxImages = children[1].firstChild.nodeValue; > > >domainName = children[2].firstChild.nodeValue; > > >searchSubject = children[3].firstChild.nodeValue; > > >theme = children[4].firstChild.nodeValue; > > >} else { > > >trace("XML error"); > > >} > > > }; > > > ___ > > > Flashcoders@chattyfig.figleaf.com > > > To change your subscription options or search the archive: > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > Brought to you by Fig Leaf Software > > > Premier Authorized Adobe Consulting and Training > > > http://www.figleaf.com > > > http://training.figleaf.com > > > > > > > ___ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.fi
RE: [Flashcoders] Help with updating a nodeValue in an XML file
All you need to do is set the nodeValue rather than access it. var trial_xml:XML = new XML("This is a category"); trace(trial_xml.firstChild.firstChild.firstChild.nodeValue); trial_xml.firstChild.firstChild.firstChild.nodeValue = "This is a NEW category"; trace(trial_xml.firstChild.firstChild.firstChild.nodeValue); trace(trial_xml); stop(); trace output: This is a category This is a NEW category This is a NEW category Hope that helps, Andrew -Original Message- From: Teresa Hardy [mailto:[EMAIL PROTECTED] Sent: Thursday, March 08, 2007 2:49 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Help with updating a nodeValue in an XML file I have been through more manuals than I can list, have also been through the complete www.lynda.com tutorial. All the examples create new nodes. I have not seen any example that writes to an existing node. Teresa On 3/8/07, dr.ache <[EMAIL PROTECTED]> wrote: > > Maybe i get you wrong, but maybe |nodeValue:String is, what you are > looking for. > Give the manual a chance - search for XMLNode > > greez, > dr.ache > > > > |Teresa Hardy schrieb: > > I thought this was really basic and easy but I just can't find the > > syntax to > > do it. All I am trying to do is update one nodeValue from the swf to > > the xml > > based on which button is selected. I don't want to make a new node, just > > update the that exists. The reading part listed below works > > fine. I > > just can't figure out how to write TO a specified child node and all the > > documentation has me totally confused. I am starting to wonder if I > > have to > > .removeNode and recreate itI still don't have the syntax. > > > > Thanks in advance. I have been learning a huge amount from listening > > to all > > the conversations here as I teach myself ActionScript! > > > > Teresa > > > > my_xml = new XML(); > > my_xml.ignoreWhite = true; > > my_xml.load("setup.xml"); > > my_xml.onLoad = function(success) { > >if (success) { > >sessionInfo_xml = my_xml.firstChild; > >children = sessionInfo_xml.childNodes; > >folderName = children[0].firstChild.nodeValue; > >maxImages = children[1].firstChild.nodeValue; > >domainName = children[2].firstChild.nodeValue; > >searchSubject = children[3].firstChild.nodeValue; > >theme = children[4].firstChild.nodeValue; > >} else { > >trace("XML error"); > >} > > }; > > ___ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the archive: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] OT: Pirated Books
Naive little man... you don't have to sell it for it to be pirated. Piracy: The unauthorized reproduction or use of a copyrighted book, recording, television program, patented invention, trademarked product, etc. I wouldn't think you emailed your original. -Original Message- From: Omar Fouad [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 1:39 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] OT: Pirated Books this is not called piracy my little brave boy... as in i am not selling it. I was just considering you my lil brother, and than i decided to give you this book as any one gives something to his girlfriend.. Before acting this way, know your right and respect your older bro. Cheers On 3/1/07, Ian Thomas <[EMAIL PROTECTED]> wrote: > > Hi all, > I just wanted to register my strong disapproval of an email that > Omar Fouad ([EMAIL PROTECTED] on this list) sent to me this > morning. > > I had asked on this list for recommendations for a simple book on > AS2.0 to give to a designer (and have said, elsewhere, that I have > Moock's Essential Actionscript 2.0 and think it's too complex for the > person in question). > > Unsolicited, Omar sent me the complete text of Colin Moock's book as > a .chm file. > > I'm unhappy with piracy at the best of times. In this instance I > find it even worse, as the book is written by someone I respect. > > Needless to say, I've let Colin know. > > A lot of time, effort and creativity goes into creating a reference > book to make your life easier. The least you can do it pay for it. > > Sorry for the noise! > Ian > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > -- Omar Fouad - Digital Emotions... Love is always patient and kind. It is never jealous. Love is never boastful nor conceited It is never rude or selfish. It does not take offense and is not resentful. Love takes no pleasure in other people's sins...but delights in the truth. It is always ready to excuse, to trust, to hope... and to endure... whatever comes. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] ADMIN: DO NOT SEND UNSUBSCRIBE REQUESTS TO THE LIST
Whoraw! Spite and Revenge, best served cold! Thanks Dave -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Thursday, March 01, 2007 1:35 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] ADMIN: DO NOT SEND UNSUBSCRIBE REQUESTS TO THE LIST Any future unsubscribe requests sent to the list, as opposed to the list owner, will be ignored. In fact, I may subscribe you to other lists out of spite. And not just any lists, either. I'm thinking furries. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Dave Watts > Sent: Wednesday, February 28, 2007 19:38 > To: flashcoders@chattyfig.figleaf.com > Cc: [EMAIL PROTECTED] > Subject: RE: [Flashcoders] Flash 9 AS3 Resource Management > > > I have tried several times to remove myself from this email > > list to no avail. Can someone please remove me? > > In the future, if you need help on a list, PLEASE CONTACT THE > LIST OWNER DIRECTLY. It is a mistake to assume that the list > owner will read every message sent to the list, because the > list owner has a day job. To contact the list owner, you > click on the link at the bottom of the list information > page: > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Fortunately, in this case, your message subject, "RE: > [Flashcoders] Flash 9 > AS3 Resource Management", let me see in an instant that you > needed help from the list owner. Per your request, you have > been unsubscribed. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Events for custom classes?
Can you please email your class to me as well [offlist]. I'm working on almost the same thing as Jason. Thanks much, Andrew Rost IDEXX Computer Systems -Original Message- From: Merrill, Jason [mailto:[EMAIL PROTECTED] Sent: Friday, February 16, 2007 2:41 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Events for custom classes? Sure, yes - please send offlist . Thanks! Jason Merrill Bank of America Learning & Organizational Effectiveness >>-Original Message- >>From: [EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] On Behalf >>Of Karina Steffens >>Sent: Friday, February 16, 2007 3:30 PM >>To: 'Flashcoders mailing list' >>Subject: RE: [Flashcoders] Events for custom classes? >> >>Hi Jason, >> >>I have my own implementation of AsBroadcaster/EventDispatcher >>(bundling both in one class), which is very flexible and can >>be used with inheritance or composition (But unlike the >>standard implementations, it's not a mix-in class). If you'd >>like me to send you the class, just let me know. >> >>Karina >> >> >>> -Original Message- >>> From: Merrill, Jason [mailto:[EMAIL PROTECTED] >>> Sent: 16 February 2007 20:16 >>> To: Flashcoders mailing list >>> Subject: RE: [Flashcoders] Events for custom classes? >>> >>> Thanks Alain, will revist it that way instead. >>> >>> Jason Merrill >>> Bank of America >>> Learning & Organizational Effectiveness >>> >>> >>> >>> >>> >>> >>> >>> >>-Original Message- >>> >>From: [EMAIL PROTECTED] >>> >>[mailto:[EMAIL PROTECTED] On >>> Behalf Of Alain >>> >>Rousseau >>> >>Sent: Friday, February 16, 2007 3:01 PM >>> >>To: 'Flashcoders mailing list' >>> >>Subject: RE: [Flashcoders] Events for custom classes? >>> >> >>> >>Jason, >>> >> >>> >>So if I understand clearly what you want to do is : >>> >> >>> >>>From Class A : (pseudo code following) >>> >> >>> >>class ClassA { >>> >> private var instClassB:ClassB; >>> >> make comboBox >>> >> make datagrid >>> >> function ClassA() { >>> >> instClassB = new ClassB(); >>> >> comboBox.onChange = Delegate.create(this, >>> cbChangeHandler); >>> >> instClassB.addEventListener("webServiceResult", this); >>> >> } >>> >> >>> >> function cbChangeHandler(e){ >>> >> instClassB.getWSdata(e.value); >>> >> } >>> >> >>> >> function webServiceResult(evtObj:Object) { >>> >> update datagrid with evtObj.newData >>> >> } >>> >> >>> >>} >>> >> >>> >>class ClassB { >>> >> Decorate with EventDispatcher methods >>> >> dispatchEvent, addEventListener, removeEventListener >>> >> >>> >> function ClassB() { >>> >> EventDispatcher.initialize(this); >>> >> } >>> >> >>> >> function getWSdata(val) { >>> >> get data from web service >>> >> wsInstance.onResult = Delegate.create(this, >>> wsResulthandler); >>> >> } >>> >> >>> >> function wsResulthandler(data) { >>> >> this.dispatchEvent({type:"webServiceResult", >>> >>newData:data}) // add anything you want to pass in the object >>> >> } >>> >>} >>> >> >>> >>Now you have them both communication the way you want >>> >> >>> >>Have fun ! >>> >> >>> >>Alain >>> >> >>> >>-Original Message- >>> >>From: [EMAIL PROTECTED] >>> >>[mailto:[EMAIL PROTECTED] On Behalf Of >>> >>Merrill, Jason >>> >>Sent: 16 février 2007 14:36 >>> >>To: Flashcoders mailing list >>> >>Subject: RE: [Flashcoders] Events for custom classes? >>> >> >>> >>Daniel, try as I may, I can't get your code to work. I have one >>> >>class, which has a combobox. I can get the event to fire >>when the >>> >>combobox changes just fine, but I can't get it to "hear" >>> the firing of >>> >>the data capture from the webservice in the other class. >>> >> >>> >>So basically, in pseudocode, I need to do this: >>> >> >>> >>class A{ >>> >> make comboBox >>> >> make datagrid >>> >> when comboBox changes, use Class B >>> >> to get data from webservice >>> >> when webservice result received, >>> >> update datagrid with new data >>> >> >>> >>} >>> >> >>> >>class B{ >>> >> connect to webservice >>> >> when requested, return data to requesting class } >>> >> >>> >>Reason I want these two classes to be separate is because I >>> want other >>> >>classes to call Class B to get data as well. So, I can do all of >>> >>those things just fine, they are all working, except for the last >>> >>part, "when requested, return data to requesting class" - >>I figure >>> >>since the webservice is asynchronous, I need to capture the >>> received >>> >>event, which is fine, I can do, that works. But I need to >>> tell Class >>> >>A to update the datagrid with the new data when it gets it >>> from Class >>> >>B - so an event model is required. >>> >> >>> >>in your code, you have a var r in both the "Class A" and >>> "Class B" - >>> >>I'm confused about that. Thanks for any help. >>> >> >>> >> >>> >>Jason Merrill >>> >>Bank of America >>> >>Learning & Organizational Effectiveness
RE: [Flashcoders] to get last browsed web page before current
I'm not a huge JavaScript person, but we use: getURL("javascript:history.back();"); Andrew -Original Message- From: Jim Berkey [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 07, 2007 2:43 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] to get last browsed web page before current I've used this on a flash button embedded in an html page with success: on (release) { getURL("javascript:window.history.go(-1)"); } jimbo *** REPLY SEPARATOR *** On 2/7/2007 at 9:11 PM mac wrote: >Hello, >Do you know how to get last browsed web page before current ? Is it >possible to request it from web browser or it should be used any trick. Do >you have any idea ? > >best regards >Maciek > >___ >Flashcoders@chattyfig.figleaf.com >To change your subscription options or search the archive: >http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > >Brought to you by Fig Leaf Software >Premier Authorized Adobe Consulting and Training >http://www.figleaf.com >http://training.figleaf.com 7 ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] - dynamic content for flash paper?
The answer is no. We recently tried going down this path, but the FP API does not support data integration. Andrew Rost -Original Message- From: nelson ramirez [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 30, 2007 4:00 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] - dynamic content for flash paper? Yeah I normally do the same. but sometimes there are issues with the safari browser on macs. Plus , i really like flash paper, I guess i'm more wondering wether it can be done or if there are any better methods than the standard way. thanks On 1/30/07, Joseph McHeffey <[EMAIL PROTECTED]> wrote: > > I normally just create a new movieclip and set it up > with the questions/answers the way that it should > print. > > Then I just use print("my_mc"); > > > --- nelson ramirez <[EMAIL PROTECTED]> wrote: > > > So I have this quiz app that at the end allows the > > user to print out their > > answers with results plus some static content. > > We normally use Flash paper for printing the static > > assets. I was wondering > > if there's a way to incorporate the dynamic user > > answers into the static > > flash paper print content. > > > > Does anyone have any experience with this or perhaps > > a better approach? > > > > thanks in advance, > > > > -NR > > ___ > > Flashcoders@chattyfig.figleaf.com > > To change your subscription options or search the > > archive: > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > Brought to you by Fig Leaf Software > > Premier Authorized Adobe Consulting and Training > > http://www.figleaf.com > > http://training.figleaf.com > > > > > > > > > Be a PS3 game guru. > Get your game face on with the latest PS3 news and previews at Yahoo! > Games. > http://videogames.yahoo.com/platform?platform=120121 > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] movement question
this.onEnterFrame=function():Void { if(myClip._rotation != -90){myClip._rotation--}; } Quick and simple... Andrew -Original Message- From: Gustavo Duenas [mailto:[EMAIL PROTECTED] Sent: Friday, January 19, 2007 1:58 PM To: Flashcoders mailing list Subject: [Flashcoders] movement question Hi, I'm not a much a programmer guy. I'm trying to do something, I have a movie clip which is rotating --, this is supposed to stop when the rotation is -90, but it seems hard for me to write this. Anyone of you guys knows a way to write when this movie clip has rotated to -90, and the start a command... I'll appreciate any help Gustavo Duenas ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] IE6 CTRL key problem.
// first frame of main timeline this.onEnterFrame = function():Void { //Ctrl-X if(Key.isDown(Key.CONTROL) && Key.isDown(88)){trace("Edit called")}; //Ctrl-C if(Key.isDown(Key.CONTROL) && Key.isDown(67)){trace("Copy called")}; //Ctrl-V if(Key.isDown(Key.CONTROL) && Key.isDown(86)){trace("Paste called")}; //Delete if(Key.isDown(Key.DELETEKEY)){trace("Delete called")}; } Tested with (and works): * IE 5.5, 6 and 7 * FF 1.5 * NS 8.1 Hope that helps, Andrew Rost -Original Message- From: Brandon Barkley [mailto:[EMAIL PROTECTED] Sent: Friday, January 19, 2007 10:28 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] IE6 CTRL key problem. Hey everyone, I am having some problem with the following code in Internet Explorer 6.0 on Windows 2000 with Flash Player 9. I am trying to write code for a hotkey to recognize when both the CTRL key and either X,C, or V is pressed in order to do copying and pasting. I will attach a sample of the code below. This code works in Firefox with Flash Player 9 just fine and I have been told it works in Internet Explorer 7.0 I have a keyListener object set up which contains the following code. var temp = this; this.keyListener = new Object(); this.keyListener.onKeyDown = function() { temp.checkHotKeys() } Key.addListener(this.keyListener); In the temp object, I have the function checkHotKeys which is as follows: function checkHotKeys() { //Ctrl-X if(Key.isDown(Key.CONTROL) && Key.isDown(88)) this.editCut(); //Ctrl-C if(Key.isDown(Key.CONTROL) && Key.isDown(67)) this.editCopy(); //Ctrl-V if(Key.isDown(Key.CONTROL) && Key.isDown(86)) this.editPaste(); //Delete if(Key.isDown(Key.DELETEKEY)) this.editDelete(); } I added some traces for Key.getCode() in the above function and found that when I was holding down the CTRL key and then pressed another key, Key.getCode() would still return 17, effectively not recognizning that the second key was pressed. Alternatively, if I held down X/C/V first and then pressed the CTRL key, it would update correctly. Also, I replaced all instances of Key.CONTROL with Key.SPACE and it worked correctly with space bar. Does anyone have any idea why this would not work in IE6 and if there are any workarounds? Has anyone even seen this error before? ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] >> combobox
Also, when you load a clip using loadMovieNum, you're loading the SWF directly into the timeline. When you use loadMovie, you're loading the SWF into a target clip. When you load a SWF into a target clip that utilizes components, you'll need to set _lockroot = true; on the target clip. var link:MovieClip = this.myClip; loadMovie("combo.swf", link); link._lockroot = true; Hope that helps, Andrew -Original Message- From: Hans Wichman [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 17, 2007 5:17 AM To: Flashcoders mailing list Subject: Re: [Flashcoders] >> combobox try this on frame 1 of your main movie: Object.registerClass("ComboDownArrowDisabled", MovieClip); greetz JC On 1/17/07, Laurent CUCHET <[EMAIL PROTECTED]> wrote: > > No the bar can not be open , very strange > > > Le 17/01/07 10:06, «Hans Wichman» <[EMAIL PROTECTED]> a > écrit: > > > Hi, > > what do you mean with blocked? > > Strange layout, small weird icon etc? > > > > greetz > > JC > > > > > > On 1/17/07, Laurent CUCHET <[EMAIL PROTECTED]> wrote: > >> > >> I use an mc with a combobox loaded at level 40 for ex. it works ok : > >> loadMovieNum(³combo.swf²,40); > >> I load this movie in a link : loadmovie(³combo.swf², link); and the > >> combobox > >> is blocked. Impossible to open i. > >> Have you got an idea ? > >> > >> Thank you > > > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] Problem capturing the ALT key
Vipin: My initial thought is to trap for the alt key in director. If the projector detects the key is pressed, send a call to a function in your SWF. -- prepareMovie is called before first frame is loaded on prepareMovie -- keyDownScript assigns a function for capturing and handling -- all keys pressed. keyDownScript = "checkKeys" end prepareMovie on checkKeys -- Check to see if the keys are pressed. If they are call to SWF -- -- _key.key uses the (ANSI) value that is assigned to the key, not the -- numerical value. _key.keyCode uses the numerical value, not the -- American National Standards Institute (ANSI) value. if (_key.optionDown and _key.key = "j") then -- If the AS function is in the _root timeline call with this syntax sprite(flashSprite).altPressed() -- If the AS function is in a clip timeline call with this syntax sprite(flashSprite).myClip.altPressed() else put "Key pressed ="&&_key.key end if end checkKeys Hope this helps... Andrew Rost Electronic Learning Specialist IDEXX Computer Systems www.idexx.com -Original Message- From: vipin chandran [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 6:24 AM To: Open Source Flash Mailing List Subject: [Flashcoders] Problem capturing the ALT key Hello All, I am doing a project where we are embedding a flash swf in director and making projector. My problem hers is when i am in the projector, the ALT key is not getting captured. And i really need this for giving one short-cut key. (The client is mad about it). Please help me if you have any solution for this. Thanks' Vipin ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com