|
Prev: cool flash movie
Next: Flash caches HTTP Requests?
From: margot_again on 4 May 2008 13:53 The code loading (or not loading) the text on frame 3 is definitely in frame 3--top line, actions layer. Currently the code is an old snippet I got from a tutorial at Oman3D.com... myData = new LoadVars(); myData.onLoad = function() { myText_txt.text = this.myVariable; }; myData.load ("myText1.txt"); This would not be my preferred solution, but I set the instance and variable names and gave it a go. The code works fine by itself in a simple document, but doesn't work in frame 3. There must be some code conflict or bug. No Output errors. It looks like the code isn't even being read.
From: clbeech on 4 May 2008 15:12 you'd mentioned above that they are 'html' - if that is the case then you may need to use: myText_txt.htmlText = this.myVariable; as well as making sure the field is an html field by either the selection box in the IDE or using code: myText_txt.html=true; another test would be to trace the value and see if you are getting a return and the correct assignment to: this.myVariable - so in the onLoad handler try: trace(this.myVariable);
From: margotdarby on 4 May 2008 17:22 My example above was non-html, just plain text. When my html/css snippets weren't working I went back to the simpler stuff. But thanks for the comment and code. At this point I may just bag it and use static text, or AS text (ouch). I don't really need external files here. That is probably the sort of thing best done with php, not text files imported into a Flash page.
From: ChefMo on 5 May 2008 18:26 On May 4, 5:22 pm, "margotdarby" <webforumsu...(a)macromedia.com> wrote: > My example above was non-html, just plain text. When my html/css snippets > weren't working I went back to the simpler stuff. But thanks for the comment > and code. > > At this point I may just bag it and use static text, or AS text (ouch). I > don't really need external files here. That is probably the sort of thing best > done with php, not text files imported into a Flash page. I disagree. It's probably best done with XML not PHP, as XML is easy to work with and much more flexible than plaintext. I have found PHP to be a little too complex for me right now, although I am a fluent web designer. Try xml. I am willing to post AS 2.0 solution soon, I am at the library though and don't have Flash with me. I might forget though, so please e-mail me directly or contact me through the following link: www.mosheberman.com/contact.php . I am looking forward to helping you!
From: ChefMo on 5 May 2008 18:30 On May 4, 5:22 pm, "margotdarby" <webforumsu...(a)macromedia.com> wrote: > My example above was non-html, just plain text. When my html/css snippets > weren't working I went back to the simpler stuff. But thanks for the comment > and code. > > At this point I may just bag it and use static text, or AS text (ouch). I > don't really need external files here. That is probably the sort of thing best > done with php, not text files imported into a Flash page. Oh, and by the way, external text (albeit in XML or PHP) is almost always prefered over embeded/compiled etc because it gives you more flexibility and less of a need to recompile just to update content. If you have a nice, solid, beautiful site built in Flash, say it's a blog, you would not want to recompile two, even three times a day. Even if it's a site that you only update sporadically, you would want external text because you are more likely to forget what everything is in your movie as time progresses and you will thus have a hard time fixing something that you accidentally break. Good luck! (and contact me later for help.)
|
Pages: 1 Prev: cool flash movie Next: Flash caches HTTP Requests? |