Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Manipulating An Imported Text Document


Hi all. I am having a bit of a problem with manipulating an imported text document in flash. What I mean is I have a Dynamic Text field with the variable set to "text1" and I have imported the variable "text1" in the first frame of my movie using the "loadVariablesNum("text1.txt", 0)" actionscript command. Now if I leave the Dynamic Text field in the original movie then everything works fine, but I am unable to create a tween with that field. To create a tween I make a Graphic symbol with the text field, but then the variables won't load into the text field anymore. It won't even work if I load the variables IN the symbol. Anyways, I just want to make a VERY basic animation using the imported text but I can't get the imported text to appear if I turn the text field into a symbol...any kind of symbol. I know this sounds a bit confusing but I didn't know how else to explain it. If further details are needed I will do my best to explain. Any help on this matter would be much appreciated.


P.S. The reason why I need to have the text in an external text file is to make it easier for my client to change, as editing it in flash is a slightly more difficult process obviously.




FlashKit > Flash Help > Flash General Help
Posted on: 04-16-2004, 01:32 AM


View Complete Forum Thread with Replies

Sponsored Links:

Stylin' Imported Text From An XML Document Using CSS
Does anyone know of a tutorial or of the process to style XML content via a CSS stylesheet in Flash.

I'd rather avoid having to create a new TextField every time I need to color a header... but I will if I have to.

Thanks!

View Replies !    View Related
Help Manipulating MC In Imported Swf
Hi all. I've got an animation with a pause button in AS3. The pause button is an MC. If the MC is on frame 2 then the animation pauses. It works fine.

This animation is imported in to an AnimationContainer MC dynamically. This AnimationContainer swf is then imported in to the main swf of the webpage, so it goes...
mainswf-->
-----------AnimationContainer-->
--------------------------------AnimationMC->
--------------------------------------------Pause MC
My question is how can I control the pause button from the mainswf? i.e. I want mainswf to send AnimationMC's pause MC to frame 2. I thought coud do this by:
AnimationContainer.AnimationMC.pausebutton.gotoAnd Stop(2);
...but this doesn't work. Any help appreciated.

View Replies !    View Related
Manipulating Imported SWFs
(MX 2004)

I have a flash file that imports an external SWF.

More specifically, the main flash loads, then an image (another SWF) loads inside that file.

Is there a way to manipulate the image from within the first flash file?

For instance, the image is a movie clip with instance name "pano." Ideally, I'd like to call it like _root.panoLoader.panoGoesHere.pano and work with it that way, but this doesn't appear to be working. Am I doing something wrong?

I've right-clicked on the movie clip and said "Export for ActionScript" with the identifier "panoMainEntrance."

View Replies !    View Related
[F8] Manipulating An Imported Value Via Fscommand
Hello

In flash, Is it possible to manipulate a variable that has been set by javascript(FSCommand)??

View Replies !    View Related
Help On Manipulating Imported Movies
question no 1:

I have a list of external movies. I want to import them only once and then use them as many times as I want. I need to attach them to other clips the same way I would attach them if they were in my current library with linkage option on.


question no 2:

suppose i have a movie called s1.swf in the same location with my movie.
then I have this code:


Code:

function createObj(objname, whichMc, level) {
_root.createEmptyMovieClip(objname, level);
_root[objname].createEmptyMovieClip("mc", 1);
_root[objname].mc.loadMovie(whichMc, "clipart", 1);
_root[objname].mc.onPress = function() {
trace("something")
}
}

createObj("tralala" , "s1.swf", 1, 150, 150);
I don't know why the event handler for the movie "mc" is not invoked ... I have no trace record in the outpus window. what is wrong with it?

Thanks

View Replies !    View Related
Does The FPS In The .fla Document Effect The FPS In An Imported .flv?
I think this may be related to another post I have, but I'm not sure?
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=194&threadid=1265662&CFID=45109516&CFTOKEN=f5a4ce0585fae4f3-66834EE8-E724-5FA7-C13B0CE0CCCB7A67&jsessionid=48305c133dfd755d2f3b

Does the FPS in the .fla document effect the FPS in an imported .flv? I notice the default FPS in a .fla is 12, but i think most of my imported .flv are about 30 fps, will this effect anything or does the flv overwrite the fla?

Thanks!

View Replies !    View Related
Use Imported JPEG Data Vs: Use Document Default Quality
I have created two fla files and imported jpegs into each. when I go into the library and view the properties of the images in each fla file they give me different options for export. One of the fla files gives me a "Use imported JPEG data" checkbox and the other one gives me a "Use document default quality" checkbox. I like the use imported JPEG data option better. Why are they different????? (driving me nuts

View Replies !    View Related
Manipulating Text
Quick question..

I have a dynamic text field (myText) where the text is being read from a text file.. Now when I enter a particular frame label I want that text field to read another value.. can someone please help..

View Replies !    View Related
Manipulating Text
I'm trying to make it so that you can modify the length and height of an array in the form of 0's and 1's. And edit it manually. So fahr one problem came up that is with the spacing. When the max length is reached it should go to an new line, and continue that until the max height is reached.

I'll include a .fla file.

- Thanks in advance

View Replies !    View Related
Manipulating Text In Flash 5
I am attempting to create a scenario when a certain frame is loaded the menu (a rolloever button effect) item that corresponds with that particular frame changes so that it is no longer clickable and changes colour.

Is this possible? And if so where would I begin?

View Replies !    View Related
Manipulating Text Color Help
I have a dynamic text field called numNav. When a button is released, I want that numNav to change color. How would I do that? I tried using:

numNav.text.color = 0xFF0000;

but it didn't work. Any other ideas?

View Replies !    View Related
Manipulating Dynamic Text
Is there a way to make dynamic text scroll by automatically?

I'm pretty sure I can load it into a movie clip and move that, but I was wondering if the text itself can be moved.

Thanks in advance.

View Replies !    View Related
Manipulating _y Of Text Fields
I have 5 text fields..they correspond to 5 different steps.

These are loaded dynamically.
When viewing the current step the text changes to reflect the current step you are on.

What I am having a problem with is when the Dynamic Text area Is sized to allow for wrapping, the other text boxes stay where they are and I seem to be unable to move them dynamicaly bassed on if the text box above it is wraped or not.

Here is a code snippett:


Code:
onClipEvent (enterFrame) {
_root.step1.text = _root.basicexplaination[0];
_root.step2.text = _root.basicexplaination[1];
_root.step3.text = _root.basicexplaination[2];
_root.step4.text = _root.basicexplaination[3];
_root.step5.text = _root.basicexplaination[4];
_root.step2._y = _root.step1._y+_root.step1._height;
_root.step3._y = _root.step2._y+_root.step2._height;
_root.step4._y = _root.step3._y+_root.step3._height;
_root.step5._y = _root.step4._y+_root.step4._height;
//control explaination based on what selectedstep is on in _root
switch (_root.selectedstep) {
case 1 :
_root.step1.htmlText = "<b>"+_root.currentexplaination[0]+"</b>";
break;
case 2:
_root.step2.htmlText = "<b>"+_root.currentexplaination[1]+"</b>";
break;
}
}
I have 2 cases complete...I thought the code:


Code:
_root.step3._y = _root.step2._y+_root.step2._height;
would position the step3 dynamic text appropiatly but it doesn't

What am I doing wrong?

THanks,
Mike

View Replies !    View Related
Manipulating Text Fields
hi. i've got a 'for' loop which creates a calendar. it works good. now i want it to recognize the current day and highlight it. here's the code. the problem area is the very last if/else statement at the bottom.

the variables:

ActionScript Code:
// Set the Initial Values for the Date Objects    now = new Date();    today = now.getDate();        month = now.getMonth();       year = now.getFullYear();             // First Date of Month    firstDate = new Date (year, month, 1);    firstDay = firstDate.getDay();        // Last Day of Month    lastDate = new Date(year, month+1, 0);    lastDay = lastDate.getDate();

the layout:

ActionScript Code:
for(var j:Number=1; j <= lastDay; j++){    // Create the Empty Movie Clip    _root.createEmptyMovieClip("dateClip"+j,300+j);    var dateClip:MovieClip = _root["dateClip"+j];                // Create a Text Field Inside them    dateClip.createTextField("thisDate"+j,j,0,0,indColWidth,colHeight);                // Set Text Field Properties    dateClip["thisDate"+j].selectable = false;    dateClip["thisDate"+j].border = true;    dateClip["thisDate"+j].text = j;                // Define the Formatting    var format:TextFormat = new TextFormat();    format.align = "center";    dateClip["thisDate"+j].setTextFormat(format);                // Position the Clips    dateClip["thisDate"+j]._x = indColWidth * firstDay;    dateClip["thisDate"+j]._y = startThiRowYPos;                firstDay++;                // If it's Saturday, Increment the Week Count    if (firstDay == 7) {        firstDay = 0;        startThiRowYPos += 25;    }// If it's today, give the text field a background fillif(today && month && year){    // give it a background fill    dateClip["thisDate"+today].border = true;    dateClip["thisDate"+today].background = true;    dateClip["thisDate"+today].backgroundColor = 0xCCCCCC;}

the area right above here is the problem area.
i figured part of it out. now i can get the date to have a background but, for example, today's the 21st and now the 21st of every month is highlighted.

any help is always appreciated.

thanks. - fumeng.

View Replies !    View Related
Manipulating Text Fields
hi. i've got a 'for' loop which creates a calendar. it works good. now i want it to recognize the current day and highlight it. here's the code. the problem area is the very last if/else statement at the bottom.

the variables:

ActionScript Code:
// Set the Initial Values for the Date Objects    now = new Date();    today = now.getDate();        month = now.getMonth();       year = now.getFullYear();             // First Date of Month    firstDate = new Date (year, month, 1);    firstDay = firstDate.getDay();        // Last Day of Month    lastDate = new Date(year, month+1, 0);    lastDay = lastDate.getDate();

the layout:

ActionScript Code:
for(var j:Number=1; j <= lastDay; j++){    // Create the Empty Movie Clip    _root.createEmptyMovieClip("dateClip"+j,300+j);    var dateClip:MovieClip = _root["dateClip"+j];                // Create a Text Field Inside them    dateClip.createTextField("thisDate"+j,j,0,0,indColWidth,colHeight);                // Set Text Field Properties    dateClip["thisDate"+j].selectable = false;    dateClip["thisDate"+j].border = true;    dateClip["thisDate"+j].text = j;                // Define the Formatting    var format:TextFormat = new TextFormat();    format.align = "center";    dateClip["thisDate"+j].setTextFormat(format);                // Position the Clips    dateClip["thisDate"+j]._x = indColWidth * firstDay;    dateClip["thisDate"+j]._y = startThiRowYPos;                firstDay++;                // If it's Saturday, Increment the Week Count    if (firstDay == 7) {        firstDay = 0;        startThiRowYPos += 25;    }// If it's today, give the text field a background fillif(today && month && year){    // give it a background fill    dateClip["thisDate"+today].border = true;    dateClip["thisDate"+today].background = true;    dateClip["thisDate"+today].backgroundColor = 0xCCCCCC;}

the area right above here is the problem area.
i figured part of it out. now i can get the date to have a background but, for example, today's the 21st and now the 21st of every month is highlighted.

any help is always appreciated.

thanks. - fumeng.

View Replies !    View Related
A Question On Manipulating Dynamic Text
I want to make a banner which will have zoom in and zoom out effects. The content will be loaded from a text file. The text will appear line by line with zoom in and fade out effect.

I have problem making such visual effects using dynamic texts, and also doing a loop to make the texts go line by line.


Can anyone kindly give me some hints? This task is urgent for me.

Many thanks.

View Replies !    View Related
Manipulating A Text Field With Buttons...
I have a input text field with a instance of order
and i have a delete button that have this actions:

on(release){
order="Su Orden: ";
}

That actions delete all the list and add Su orden.

How i can delete only one line of the list, instead of deleting all the list?

View Replies !    View Related
Manipulating Dynamic Text AT Runtime
Hi

I know its possible to have dynamic text added to the screen at runtime! but is it possible to then change its font, type, size, colour, drag it around the screen and even rotate it - all at runtime!

anyone know of tutorials, examples? - if this is even within Flash 8 capabilities! (must be Flash 8 I dont have CS3 yet!)

thanks
-manphp


[I laugh at aliens]

View Replies !    View Related
Manipulating A Dynamic Text Field
Hello all,

I made this simple flash movie that allows a user to input a money value into a input field and upon pressing the submit button it returns a value into a string of text along with a variable that contains a money value * a fixed percentage. The calculation works good, but my problem is how do I make that money value format with commas in the output (ex. $1,000,000 as suppose to $1000000).

Here is a link to the flash movie:
http://www.cassmagda.com/test2/main_contactBox.html

Thank you in advance,
eriCkflo

View Replies !    View Related
Manipulating Text Variables When Using LoadVariablesNum [Flash 5]
Lets say were loading a text file with a multi line variable, like

Code:
_news=Line1
Line 2
Line 3
Line 4
Line 5
In flash it would show the text variable as,

Code:
Line 1

Line 2

Line 3

Line 4

Line 5
Is there a way we can make the double return into a single return?

I know I could just use the <BR> and have no breaks in my text files, but that is a pain to look at, and is irritating to edit.

Any one know an answer?

View Replies !    View Related
Loading From Text File And Manipulating Variables
I searched for the answer and have looked through ActionScript dictionary for the answer. I am close, but I need help from a more experienced FLASHer.

I am trying to create a script that will take a movie clip and duplicate it based on what I type in the text document. For instance, within the text document I have:

totalClips=4&

Based on the totalClips variable, I need to duplicate the movie clip that many times. However, when I try to compare the totalClips with the currentClips variable, they never are of an equality.

I have got so far as to figure out that I will somehow have to use parseInt, but after that it just won't work.

Any ideas?

Please let me know if you would like to see the code in its entirity.

Thanks.

View Replies !    View Related
MX - Manipulating Loaded Dynamic Text Variables
I am able to load a variable into a dynamic textbox. However, I'm unable to manipulate these variables.

I have a dynamic text box with a variable called "loadedfile" which is in a movieclip off the root called _root.subclip

I load the variable using loadVariable (textfile.txt, this) in the main timeline.

The textfile is setup with &_root.subclip.loadedfile=" to direct the textfile to the right variable.

This seems to work. However, what I want to do is, load a number of text files when the flash file starts -- each into a separate variable. Then I'd like to have the same dynamic text box use the text in these variables at different points in the movie.

I've tried loading a file into say the variable "dyntext" and then tried using "loadedfile=dyntext" (loadedfile being the variable for the textbox). But it doesn't seem to work.

I hope this makes sense.

Anyone have ideas?

View Replies !    View Related
Sharing Vars Between Document Class And An Imported Class.
I'm working on my first really in depth AS3 project, learning as I go.

I've been sorting through the XML docs and i've bumped my head into a bit of a question. So, to preface, I have been able to load the XML successfully, but I want to be able to use my own XML loader class to load the XML and then be able to reference it from the document class. Also, I'd like to be able to send a file path to the loader class when I call it.

Not sure if that makes sense, but I will post what I did and see how bad it is


The document class:

ActionScript Code:
package rg.sites{
   
    // flash classes
   
    import flash.display.MovieClip;
    import flash.display.Sprite;
    import flash.events.*;
    import flash.display.Graphics;
    import flash.display.Shape;
    import flash.text.*;
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    import flash.net.*;
    import flash.errors.*;
   

    // RG classes
   
    import rg.classes.XMLSiteLoader;

    // Layout Objects

    public class SiteCurrent extends MovieClip {
       
        // vars
        public var siteLoader:XMLSiteLoader;
        public var site_xml:XML;
        public var xml_site_loading:String = "current_site.xml";
   
        public function SiteCurrent() {
            trace("Site Current is loaded");
            siteLoader = new XMLSiteLoader();
            siteLoader.addEventListener(Event.COMPLETE, xmlSiteLoaded);
        }//end constructor function
       
        private function xmlSiteLoaded(event:Event):void {
       
        trace(site_xml.toXMLString());
        trace("
" + "Background art: " + site_xml.section.(@id == "Splash"));
       
        }
       
       
    }//end class
}//end package

The XMLSiteLoader class:


ActionScript Code:
package rg.classes

//
// XMLSiteLoader version 0.1 beta
//

{
    //import fl.controls.*;
    import flash.net.*;
    import flash.events.*;
    import flash.errors.*;
   
    public class XMLSiteLoader extends EventDispatcher {
        //public var site_xml:XML;
       
        private var siteReq:URLRequest;
        private var siteLoader:URLLoader = new URLLoader();
        public var site_xml:XML;
        public var xml_to_load:String;
       
       
        public function XMLSiteLoader() {
            //trace(stage.xml_site_loading);
            if(xml_to_load == true) {
                trace("xml file path sent");
                siteReq = new URLRequest(xml_to_load);
               
            }
            else {
                trace("No XML file path sent, use default value");
                siteReq  = new URLRequest("current_site.xml");
            }
           
            trace("XML Site Loader is loading: " + siteReq);
            siteLoader.load(siteReq);
            siteLoader.addEventListener(Event.COMPLETE, xmlLoaded);
           
           
           
        } // constructor class
       
       
        private function xmlLoaded(event:Event):void {
        site_xml = new XML(siteLoader.data);
        trace("
" + "from XML Site Loader: " + site_xml.section.(@id == "Splash"));
        dispatchEvent(new Event(Event.COMPLETE));
        }
       
       
    }//end class
}//end package

I get an error that says:


Quote:




Site Current is loaded
No XML file path sent, use default value
XML Site Loader is loading: [object URLRequest]

from XML Site Loader: portfolios/splash_gallery/splash.xml
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at rg.sites::SiteCurrent/xmlSiteLoaded()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at rg.classes::XMLSiteLoader/xmlLoaded()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()




Thanks in advance for any thoughts or suggestions.
-g

View Replies !    View Related
Dynamic Text - Can You Display $ And , Symbols When Manipulating Numbers?
I'd like to display a number like $35,000 in dynamic text, and subsequently subtract from that number. Can you do this?

View Replies !    View Related
How To Convert Input Text To: String And Array For Manipulating Stored Data?
Hi!

So, here's my problem:
I've got input text: *text1* consisting of several letters.
How do I "split up" that input text, so that I receive every letter seperatly?

I was thinking of something like:
string>substring>array

Anybody?
Thank you all in advance!

View Replies !    View Related
"use Imported Jpeg Data" Or "use Document Default Quality"
Hi

I've just searched for this through all the past posts, and through all of them (some 4 years old) no-one found the answer, so I was hoping someone would know the answer by now .

When i first started my current flash project, I imported a JPEG and under the properties it had the checkbox "use imported jpeg data" and it ended up with the perfect quality and size.

Then I needed to change the image slightly so re-imported it, but now the checkbox says "use document default quality", and this has affected the final image quality.

I tried unchecking the box and changing the manual compression to 100, but it still ends up being worse quality, then I tried re-checking the box and turning off file compression completely and changing the jpeg quality in publish settings to 100. But it's still not as good as it was before.

All I want is that little checkbox to say "use imported jpeg data" again . Is that so much to ask?

Please someone help, please

thanx thanx thanx, lots of love,
-Luke

View Replies !    View Related
Making Parts Of Text Bold In Imported Text File
Hi,

I've done a search and haven't really found what i'm looking for.

I'm using Flash MX 2004.

I have an FLA that has a dynamic text box in with the instance name 'txtbox'.

I use the following code to import the text from a text file:


Code:
LoadVarsText = new LoadVars();
LoadVarsText.load("sptext.txt");
LoadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
txtbox.text = this.var1;
} else {
trace("not loaded");
}
};


My text file looks something like this:


Quote:




var1=%0DClient: Test Company Ltd%0DScope of work: To create a corporate identity, logo, branding plus online presence for newly formed business%0D%0D I was commissioned to create the site to give Test Company Ltd an online presence. They wanted a profesional looking site that both promoted the business and their services, as well as being interesting to navigate around. I opted for a hybrid site, and used a combination of Flash and HTML in the construction.






This works fine, however, I want to make some of the words in the text bold. I've tried making the box HTML formatted, then adding HTML tags around the bits of text that I want bold, but this doesn't work.

I'm not a programmer so you'll have to bear with me. From seeing tutorials, it looks like i'm missing something from my code that imports the text file.......?

Help?

View Replies !    View Related
Overflowing Dynamically Imported Text Between Bynamic Text Boxes
Is it possible to overflow text which has been imported to flash from a text file between two dynamic text boxes. Say that your text file contains more text than will fit in the text box. Is there a way to make the rest show up in another? InDesign has this option, but I have not seen any such thing in Flash. Is there a way to do it with actionscript?

Any Ideas?

Thanks in advance,
Blake

View Replies !    View Related
Scroll Bars On Imported Text From Text File?
How can I make scroll bars (preferably draggable ones too!) on dynamic text fileds that is reading text/variables from an EXTERNAL text file. I will probably need one for my dynamic text field..and one for my INPUT text field..to work/appear when the user enters in more data than the text filed box outline shows or has big message to read in the dynamic text box.

Can anybody show me a super easy tutorial?..or maybe tell me how to do it? Thanks.

-whispers-

View Replies !    View Related
Messed Up Text W/ Imported Text Files
I am using a text file from my server, and Import it into the flash movie. I tried to use quoets, but for some reason it puts boxes instead. can someone help me out?

View Replies !    View Related
Flash Text Vs Imported SWFs Of Text?
Hello All,

Not for any particular good reason, I imported swfs of the text I needed as taglines, instead of creating said-taglines with the Flash text tool.

The animation I was looking to create with the text was meant to look like the kneading hands of a masseuse. Upon completing the text animation for my banner I realized that I was way over in file size (75k instead of the needed 30k).

My question is, would creating the text in flash, saved me file size?

If you look at my oversized flash banner (link #1), you will see that redoing the text in flash (rather than the swfs of the text that I created in Illustrator) would be a heavy undertaking, as each "line" of text needs be broken-apart, distributed to its own layer, and animated.

Below are two links. The first link is to the original banner, that is too large in file size. The second link is to the banner that I am left to create, as I do not have any other imagery, and need to get it served quite soon.

Thanks in advance!
roml

#1 - original banner | large file size:
http://www.boelterlincoln.com/lakesi...orig_idea.html

#2 - dumbed down version for smaller file size
http://www.boelterlincoln.com/lakeside/8348/

View Replies !    View Related
[F8] Loading Text From External Text Document
How do i load load text from an external text document into a text box in flash? so I can update text information from external file.

can anyone help me?

View Replies !    View Related
Text - Imported
hi im importing text from an external file, i have it so that each letter is imported into a new version of a movie clip. this one movie clip, is animated so that each letter appears on the screen animated the same way. But this means that i cant apply any html tags to it, such as links or breaks in the text,
Does anyone know how i could get it so that, maybe i could have a certain character in a string, which when read in, is interpreted to move the creation of the new mc down a bit, so that it gives the appearance of a new line.

View Replies !    View Related
Text Document Help
importing a document to flash is it possible keeping the font size and color. and making it into a scroll bar list.

View Replies !    View Related
Imported Text Is Messed Up...
Anyone know why the text that I import from Fireworks is coming out blurry when I watch my movie on the web? I have my JPEG settings at "80" - so how can I get it clear and perfect?

Thank you,
Dan from Long Island

View Replies !    View Related
Loading... For Imported Text
hey,

i have a dynamic text box, that had text loaded into it externally. i import it using loadVariables, to specify where to put it what to do bla bla. problem is, the txt file is a little big, so while its waiting for it to load up, it has the name of the text box in the field. i wanna make it say "loading..." till the variable actually loads, is there anyway to detect this??

-jake

View Replies !    View Related
Imported Text File? PLZ HELP
I want to be able to import text from a file (not just word wrapping) and for scroll buttons to work. Take a look at the news section at http://www.deftones.com/ to see what I am looking at. I am completely new to flash and don't know how to do any scripting. I tried looking through tutorials, but I can't find one that helps me. They are all too confusing.

Can someone help me get started?

View Replies !    View Related
Imported Text In Columns
Hi,

I'm using 1 dynamic text field in which I import text from an external textfile. It contains adresses so 1 adress could stand next to another but then I need the text to be in 2 columns. Can that be done?

Because I couldn't figure this out yet I also tried to import 2 textfiles in two seperate dynamic textfield on the same time in the timeline. I couldn't get this to work either. Is this even possible and if yes, can someone tell me how?

Thanks in advance.

View Replies !    View Related
Underline Text, Which Is Not Imported
Hi,
I am using a text box in flash with a scrollbar. I would like to underline the text. I know that I can achieve this by importing the text dynamically. However, the job specs do not allow for this solution.

Does anyone have a solution which allows for underlining text from within the Flash environment?

Thanks in advance!

Shannon

View Replies !    View Related
[F8] Masking Imported Text
I seem to have a problem masking some dynamically loading .txt files using the loadVariables ("file", "path");

the text is loading into an MC holding the dynamic text box.

it loads if not placed in the masked area!!!!

any ideas why?

rat

View Replies !    View Related
Imported XML Text Shows &amp; ?
Can someone please help me..
I have an external xml file like this and import it flash like below:


Code:
<myxml>
<item>
<myname>Cheese & Crackers</myname>
<des>testing</des>
<bcd>testing two</bcd>
</item>
</myxml>
Clips of my aScode below:

Code:

itemname1.text = childItems[0].firstChild.firstChild.nodeValue;
itemname1.text += childItems[0].firstChild.nextSibling.childNodes;
itemdes1.text = childItems[0].firstChild.nextSibling.nextSibling.childNodes;

How come the text writes "Cheese &amps Crackers" NOT "Cheese & Crackers"?

What do I need to do to make it output the symbols correctly?

thank you so much!

View Replies !    View Related
Styling Xml Imported Text Via Css
I'm trying to just figure out how to style text imported via xml with css. Here's the code I have. It imports the XML just fine, but there is no style. I've also included the xml + css files.

Any ideas?

Actionscript:

ActionScript Code:
import flash.text.StyleSheet;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;

loadCSS();

function loadCSS() {
    trace("loadCSS");
    var cssLoader:URLLoader = new URLLoader();
    cssLoader.load(new URLRequest("test.css"));
    cssLoader.addEventListener(Event.COMPLETE, cssComplete);
}

function cssComplete(e:Event) {
    trace("cssComplete");
    var sheet:StyleSheet = new StyleSheet();
    sheet.parseCSS(e.target.data);
    textObj.styleSheet = sheet;
   
    loadXML();
}

function loadXML() {
    trace("loadXML");
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.load(new URLRequest("forcss.xml"));
    xmlLoader.addEventListener(Event.COMPLETE, xmlComplete);
}

function xmlComplete(e:Event):void {
    trace("xmlComplete");
    var xml:XML = new XML(e.target.data);
    textObj.htmlText = xml.point[0];
}

XML:

Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<data>
<point><=!=[=C=D=A=T=A=[<h1 class="test">Test</h1><br><br><p>test test test test </p><p>test test etst ste</p>]=]=></point>
</data>
CSS:

Code:
.test {
font-size: 20px;
color: #0000ff;
}

View Replies !    View Related
Formatting Xml Imported Text
how can i format text that has been imported from xml in a dynamic textfield? for example making some parts of the text bold etc...

View Replies !    View Related
Question About Imported Text
I want to align my text to the right, but it doens't work. It is imported from a txt file with html something I tried clicking the textbox in flash and the justify to right. In the txt file <div align="right"> nothing seems to work.

Does anyone have a suggestion for me?

View Replies !    View Related
Question About Imported Text
I want to align my text to the right, but it doens't work. It is imported from a txt file with html something I tried clicking the textbox in flash and the justify to right. In the txt file <div align="right"> nothing seems to work.

Does anyone have a suggestion for me?

View Replies !    View Related
Updating With Text Document...
What would be my actionscript if I wanted to Update a Flash site with Text documents?

Thanks!

( Example of what I mean: http://www.geri-halliwell.com)

View Replies !    View Related
External Text Document
Hi There,

Just a quick one. I have text loading dynamically into flash from a notepad document. When it's upploaded the text doesn't display correctly. How do I need to write my text files so that

a) it puts the text in the next line
b) it skips a line

eg:

text=Example (Theartre)
Euro 16-00
22 - 27 October, 22h00

Djinn Theatre Company in association with Project presents

View Replies !    View Related
Text Document Keeps Crashing MX...?
Hi everyone...

I've got a movie with a dynamic text box that keeps on crashing when I test the movie... I have the same code in another movie and it's playing fine... but for some reason it's not liking this one.

Will someone help me check this to see what I'm doing wrong?

Thanks,

Penna

If you email me I can send you the files...

View Replies !    View Related
Call A URL From A Text Document
Hi,

I'm stumped with this at the moment:

I have a simple animated banner that pulls in dynamic HTML text from a .txt document. Because I have Rollover states on the movieclip, I cant change the links with the dynamic text. My question is... does anyone know a way to call a URL from a separate text document that the movieclip can link to when its clicked?


Here is my script for the clip:

clip1.onRollOver = over;
clip1.onRollOut = out;
clip1.onMouseDown = down;

function over() {
this.gotoAndPlay("CLIPOVER");
}

function out() {
this.gotoAndPlay("CLIPOUT");
}

function down() {
this.getURL("THIS WHERE I WANT TO PULL A URL IN");
}

Hopefully that makes sense. Any help is GREATLY appreciated, even if you could suggest a different/better method that I am too tired to think of at the moment.

Thanks!

View Replies !    View Related
[F8] External Text From .txt Document?
I know you can (however, I don't know how to) use a php code to get external variables, but how do I get text from a .txt page on my website?

do I have to set up anything in particular on the .txt page?

or, if I can't do it with a .txt page, could someone help me with a PHP or XML or whatever code to get this? I don't know any of that stuff...

Thanks

~Zippy Dee
Ted Newman

View Replies !    View Related
CSS & External Text Document
I am wondering if it is possible to load and external text file and have css styles applied to it as well. and if so is there any limitations? I am new to flash so any and all help is appreciated.

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved