Re: [Flashcoders] CDATA Html Text not working
Great! That works! Thanks so much!! I'll look into that XPath... Maybe not for this project since it's on a tight deadline, but for the future! Thanks! Chris --- Alan MacDougall <[EMAIL PROTECTED]> wrote: > Chris W. Paterson wrote: > > this.firstChild.childNodes[i].firstChild.childNodes[j].childNodes;--- this > > is how I am trying > to > > access the content of that node. > > > > First off, I'm guessing I should use .nodeValue? Will that give me the > > entire node with > > ""? Is it even possible to read the html value for html text? > > > > Yep, there's the problem. The content of an XML node is a node in itself > -- it's just a text node. It looks like this: > > my text > > --> part of node A > my text --> node B > --> part of node A > > > So to get the text inside that tag, let's say we have: > > var fooNode:XMLNode; > var textNode:XMLNode = fooNode.firstChild; > var myText:String = textNode.nodeValue; > myTextField.htmlText = myText; // now it should look right > > As you can see, the child node of is an XMLNode which contains the > text -- it's not the string itself. I've used CDATA in XML plenty of > times, and your HTML text fields will interpret the HTML as long as > you're getting the string value of the text node. > > As for all that confusing child.firstChild.childNodes[n].child business, > may I suggest XFactorStudios' excellent XPath implementation? > www.xfactorstudio.com -- and then you can specify your XML with simple > syntax like this: > > // gets an Array of XMLNodes; specifically, all inside a , > starting from rootNode > var nodes:Array = XPath.selectNodes(rootNode, "foo/bar"); > > It's a less confusing than manually walking the XML tree, and allows > some pretty complex searches once you really get into it. ( > http://www.w3.org/TR/xpath is very dense, but section 2 may give you an > example of XPath's power.) > > ___ > 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 > Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz ___ 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] CDATA Html Text not working
here is the snipit of code: local.obCredits[this.firstChild.childNodes[i].firstChild.childNodes[j].nodeName] = this.firstChild.childNodes[i].firstChild.childNodes[j].childNodes; local.obCredits --- This is passed as an object later to a Class. [this.firstChild.childNodes[i].firstChild.childNodes[j].nodeName] --- this loops the node names and places them as properties of the local.obCredits object, one of them being the "content" this.firstChild.childNodes[i].firstChild.childNodes[j].childNodes;--- this is how I am trying to access the content of that node. First off, I'm guessing I should use .nodeValue? Will that give me the entire node with ""? Is it even possible to read the html value for html text? Thanks so much! -Chris --- Danny Kodicek <[EMAIL PROTECTED]> wrote: > > XML: > > > > > > The problem is the XML Node is not reading as a string and > > the html text field reads the node as a literal string > > instead of html text. I mean it prints something like "Blah > > blah someLink some bold text > > " in my text field. > > > > AS: > > var tt:TextField = > > m.createTextField("txt",m.getNextHighestDepth(),0,0,0,0); > > tt.autoSize = true; > > tt.selectable = false; > > tt.embedFonts = true; > > tt.antiAliasType = "advanced"; > > tt.html = true; > > tt.htmlText = local.ob.content; // myXml value > > How are you getting this local.ob.content? That's the key issue, really. > Have you tried a trace() of this value? > > My guess is that you're including the [CDATA bit of the field, which means > you're telling the field to render the text literally, which is exactly what > it's doing. > > Danny > > ___ > 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 > Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. http://farechase.yahoo.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] CDATA Html Text not working
So I'm working on a project... I'm reading xml nodes and placing each node into dynamic text fields... XML: The problem is the XML Node is not reading as a string and the html text field reads the node as a literal string instead of html text. I mean it prints something like "Blah blah someLink some bold text " in my text field. AS: var tt:TextField = m.createTextField("txt",m.getNextHighestDepth(),0,0,0,0); tt.autoSize = true; tt.selectable = false; tt.embedFonts = true; tt.antiAliasType = "advanced"; tt.html = true; tt.htmlText = local.ob.content; // myXml value tt.setTextFormat(local.tTextFormat); Does anyone have a solution for this? I think it's because the text is not reading as a String... I've tried toString() and it doesn't work... If I try and perform any other simple String function like substr() or anything it doesn't work either! I'm sorta new at XML and Flash, I've been doing Flash for a while but I usually don't use XML. Any help would be very much appreciated Thanks! Chris Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=list&sid=396545433 ___ 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] Fonts on a Mac not working in Flash
So, I copied them to the system library and even enable them in font book but the font will now show up in my font drop down... It works fine in photoshop. I tried restarting the flash IDE over and over and even rebooting my Mac like 6 times! it's an open type font (.otf). Has anyone ever had this problem? Thanks in advance! Chris Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/ ___ 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 please: swfobject issues
FF - Original Message From: Count Schemula <[EMAIL PROTECTED]> To: Flashcoders mailing list Sent: Wednesday, December 13, 2006 10:47:44 AM Subject: Re: [Flashcoders] site check please: swfobject issues Thanks. Safari? FF? On 12/13/06, Chris W. Paterson <[EMAIL PROTECTED]> wrote: > I'm on a Mac and it works fine for me (no upgrade prompt). -- count_schemula ___ 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 Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.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 please: swfobject issues
I'm on a Mac and it works fine for me (no upgrade prompt). - Original Message From: Count Schemula <[EMAIL PROTECTED]> To: flashcoders@chattyfig.figleaf.com Sent: Wednesday, December 13, 2006 10:18:20 AM Subject: [Flashcoders] site check please: swfobject issues Hey, could y'all visit a site I just did. Client is say "her whole family" had issues accessing the site and she says it makes her upgrade the flash player every time. She's on a Mac. I asked her for more information, but for now, I'm just assuming that there is something wrong. http://www.ash-designs.com I'm using swfobject with express install. It was fine for me on Windows XP and FF2 and IE7. Thanks, any feedback on access issues welcome. -- count_schemula ___ 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 Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.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] Good External Actionscript Editor for Mac?
I'm looking for a good Actionscript editor for the Mac. I've tried Sepy but it seems like its really buggy on a Mac. Does anyone have any other recomendations? Thanks! Chris Have a burning question? Go to www.Answers.yahoo.com and get answers from real people who know. ___ 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] JSFL Saving a created document
Using Flash 8... on a Mac. - Original Message From: Steven Sacks | BLITZ <[EMAIL PROTECTED]> To: Flashcoders mailing list Sent: Monday, December 11, 2006 12:25:16 PM Subject: RE: [Flashcoders] JSFL Saving a created document Hm. That's odd because my script saves as many files as I need it to with whatever path and filenames I want without prompting me. I wonder what's different. Are you using Flash 7 or Flash 8? ___ 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 Yahoo! Music Unlimited Access over 1 million songs. http://music.yahoo.com/unlimited ___ 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] JSFL Saving a created document
Wow thanks! Your blog on how to create a publish profile is also very helpful to me! The save commands: document.save(); document.saveAndCompact(); fl.saveDocument(); fl.saveDocumentAs(); They all assume that the file is already saved if not then it prompts a "Save As" dialog with the file browser... The problem is I want to save the document in a specific place with a specific name and not let the user pick the name and where to save it. Am I missing something? Again Thanks! Chris - Original Message From: Steven Sacks | BLITZ <[EMAIL PROTECTED]> To: Flashcoders mailing list Sent: Friday, December 8, 2006 6:32:19 PM Subject: RE: [Flashcoders] JSFL Saving a created document You should download the JSFL documentation file. fl8_extending.pdf Not sure what the URL is but search Adobe's site and you'll find it like I did. Here's a taste of the functions that handle it. Check my blog for the entire script where I am creating templates. http://www.stevensacks.net/ var doc = fl.getDocumentDOM(); function saveFile(s) { var fPath = getRelativePath() + s + ".fla"; fl.saveDocument(doc, fPath); } function getRelativePath() { var pathArr = doc.path.split("\\"); pathArr.length--; return("file:///" + pathArr.join("/") + "/"); } ___ 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 Yahoo! Music Unlimited Access over 1 million songs. http://music.yahoo.com/unlimited ___ 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] JSFL Saving a created document
Hi all, I've been lurking for a long time and decided to join up! I'm working on a little project with JSFL. I want to create a JSFL script that automates setting up a project for me, including creating the directory structure and project file and a starter FLA file that has some actions on it. I got all the way to fl.createDocument(); and I realized that I can't figure out any way to automate saving the document under a specific name... Is this possible? Thanks! Chris Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.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