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




Text Above Flash .SWF



I have a flash file, and I wish to place the flash file behind some text, almost like a background. I can't do it any suggestions.

Thanks
James W Pope



SitePoint > Design Your Site > Flash and Actionscript
Posted on: Feb 5, 2007, 07:33


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

How Do I Export A Flash Input Text From Flash To A Text File?
How do I export a flash input text from flash to a text file?

Trying To Pass Text From Form Text Field To A Flash Dynamic Text Field
Hi, I was hoping someone might enlighten me as to how/if I can do this...

Currently I'm using javascript which works fine to pass text from textfield A to textfield B:


Code:
window.onload=function()
{
document.forms.form1.shirtText.value=document.forms.form1.KitGroupID_16_TextOption_38.value
}
Is there a way to pass the textfield A text to a dynamic text input (flash) as I'd like to use the font embedding flash offers. I can make it work when loading a value from a txt file but I'm not sure how to access the value identified above as KitGroupID_16_TextOption_38 and make it appear in a dynamic input box. Eventually I might want to have 3 font choices for the user but I'd like to just see if I can get this working properly first.

Your help/advice would be greatly appreciated,

-Scott

How To Make Flash Movie Read Text From A HTML Text Box In Current Page
I want to have a flash movie on an html page. I want to read the text from a text box in the parent html page.

I presume action scripting is the way to do it.

I am using flash 5

Please help.

Antialias Text With Variable Text Inside Flash Authoring Environment?
Here's the code I'm using, and the question I have is after the code.

<code>
if (_root.button == 1){
mytext = "<b>Available:</b> {Available}<br>";
} else if (_root.button == 2){
mytext = "<b>Price:</b> {Price}<br>";
} else if (_root.button == 3){
mytext = "<b>button 3{button_3}<br>";
} else if (_root.button == 4){
mytext = "<b>button 4{button4}<br>";
} else {
mytext = "<b>Zoning:</b> {Zoning}<br>";
}
</code>

P.S.
These brackets "{}" are used for Generator variables that get pulled in from an access database.



So my question is this...

Is it possible to get this text to show up antialiased in my dynamic text field?

I've already tried to publish the movie with the text field option set to "EMBED ENTIRE FONT", and the only thing that shows up is the data coming from the database... the text that is already embeded in the variable does not show up.

Am I doing something wrong in my code?

any help would be greatly appreciated. Thanx.
-fourfold

Antialias Text With Variable Text Inside Flash Authoring Environment?
Here's the code I'm using, and the question I have is after the code.

<code>
if (_root.button == 1){
mytext = "<b>Available:</b> {Available}<br>";
} else if (_root.button == 2){
mytext = "<b>Price:</b> {Price}<br>";
} else if (_root.button == 3){
mytext = "<b>button 3{button_3}<br>";
} else if (_root.button == 4){
mytext = "<b>button 4{button4}<br>";
} else {
mytext = "<b>Zoning:</b> {Zoning}<br>";
}
</code>

P.S.
These brackets "{}" are used for Generator variables that get pulled in from an access database.



So my question is this...

Is it possible to get this text to show up antialiased in my dynamic text field?

I've already tried to publish the movie with the text field option set to "EMBED ENTIRE FONT", and the only thing that shows up is the data coming from the database... the text that is already embeded in the variable does not show up.

Am I doing something wrong in my code?

any help would be greatly appreciated. Thanx.
-fourfold

[F8] Can Flash Load Text Without Changing It And Display Whats Raw In The Text File?
just curious... I just want flash to read a txt file and do nothing to it... just echo it out loud and display it in Flash...
is there a way to do this?

like if the text file had "the quick brown fox jumped over the lazy dog" in it and NOTHING else... no variable syntax or anything..

is there a way this can be done?

I appreciate anybody who can help

Flash Script - Random Text Effect With Default Text Display
This is a dedicated thread for discussing the SitePoint article 'Flash Script - Random Text Effect With Default Text Display'

Alter Text Size Option On A Flash Site Using Dynamic Text
I would like some advice on  how to Implement ability for “user” to alter text size on a flash website (enlarge decrease ) (10 Pages) through a plus / minus icon at the top of the header. Clicking this icon would alter all text areas through out the site .This would only apply to content areas of the site on each page that holds text. All the pages are laid out within the same template. Menu across the top, single left hand column of text with scroll's  and an image on the right. The text is dynamic on this site. The text is stored externally in a separate fold as text files for each page.
I would greatly appreciate some advice


Loading External Text File Into Flash Using Links From Dynamic Text Field Link?
I am using a dynamic text field to load in .txt files with html tags. I have a couple "click here" type links that I would like to use to load a different .txt document into the same dynamic text field instead of a url link like it does default. Is this possible? I'm sure I could put a button over the text since its not long enough to need a scrollbar but I would like a more dynamic and flexible way to do this if its possible.

Thanks

Flash Mx, TEXT Problem: Text Blurred When Converted Into A Symbol
hi. thanx for stopping by. i am working on a flash project and i came across a problem involving texts

when i convert a text(static text) to any of the symbols(button, mc, or graphics) the text is blurred. how do i correct this problem? the text is fine when i type it but it's always blurred when it's converted into a symbol.

the reason i am converting text into a symbol is because i want to just load the text without retyping the code for the whole animation. i am also not using dynamic text because i want to add colors to the add, and i believe i can not do that when i load a .txt file (not sure).

any replies are greatly appreciated. thank you in advance

Html Text Field Write To Flash Dynamic Text Box
I have a dynamic text field in Flash.
I would like to have users type a message in the HTML text field and have it eventually appear in the Flash dynamic text field.
How can I get text from an HTML text field (on the same page as the swf) to write to the Flash dynamic text field?

Problem With Loading External Text Into Text Ticker In Flash
hello everyone ...
So i've created a text ticker that loads text from an external text file ... when i test it as a scene it works fine ( it's embedded onto a movie symbol ) -but when i go to the main stage and place a copy of that movie onto the main stage and run the test of the main stage the thing does not work - loos like it gets stuck somewhere in toe first few frames of the ticker for some reason and does not show the text ... any ideas ?
I've tried placing the text file online and reffer to it as a http link , still same problem ...

thank u
s.

Assigning Text In Dynamically Created Text Fields; Flash 8
I'm having trouble with dynamically assigning text to a dynamically created text field.

This works:
ActionScript Code:
//set font with TextFormat
myFormat=new TextFormat();
myFormat.align="left";
myFormat.color="0xFF3300";
myFormat.font="MyriadProBoldCon";
myFormat.size=25;

//create text field
this.createTextField("timText", 1, 10, 10, Stage.width,40);
timText.text="I declare a truce for robot juice";
timText.embedFonts=true;
timText.setTextFormat(myFormat);




but this doesn't:
ActionScript Code:
//set font with TextFormat
myFormat = new TextFormat();
myFormat.align = "center";
myFormat.color = "0xFF3300";
myFormat.font = "MyriadProBoldCon";
myFormat.size = 25;
//create text field; text shows up right now
this.createTextField("timText", 1, 0, 10, Stage.width, 40);
timText.text = "I declare a truce for robot juice.";
timText.embedFonts = true;
timText.setTextFormat(myFormat);
//but click a button, and the text disappears and is not replaced!!!
btn1.onRelease = function() {
timText.text="Breakfast is served all day in Hell!"
};
btn2.onRelease = function() {
timText.text="We prefer to be called Buccaneer-Americans."
};
btn3.onRelease = function() {
timText.text="It's fun to use learning for evil!"
};




I've tried setting up the TextFormat and createTextField as a function that's called on the onRelease handler. I've tried dropping the whole frackin' code in the onRelease function for each button. Neither approach works.

I've been digging around on the web, looking for answers, and nothing seems to solve my problem. Does anyone have any ideas?

thanks in advance!

Making A Space Between Text In Flash Makes The Text Shake?
I am editing a flash site (in MX) and every time I make a space between words the text starts to shake when I preview the movie. Why is it doing this and how do I make it stop?!

External Text File Used In Flash Text Field
hi,

I am working on an fla project that loads an external text file. The problem is, when I put a return into the external text file, I get a double return in the flash textfield. (I would like the double return in the flash textfield to take the single return from the external text file, and not create a double return.)

My question is, can I use a code in my external text file to make the flash textfield behave correctly. Or, is their some sort of flash setting that will fix the problem.


can you help?
thanks

Updating Text In A Flash Site Using A Text File
I am setting up a site that will be maintained by workers that have little or no knowledge of using Flash. The site will need to be updated on a regular basis but the information will not be apparent until the day. What I would like to do is allow a user to update a text file, which will subsequently update the site. Is this possible? Or would I require Generator to do this?

The site is running from the hard drive, it is almost acting like a program. I would like to keep them away from the ActionScripts if possible, but if they had to kep them away from the important scripting.

Not the easiest or straightforward of questions, but I would appreciate the help.

Steve

Controlling Text In Flash From A TEXT Or HTML File
Does anyone know the best way to controll the layout of text in flash WHILE pulling from a TEXT or HTML file?

54

How Do I Pull Text Into FLash MX Froma Text File?
How do I pull text inot FLash from an external TXT file?
What I want to do is create a nice flash page and to update it all I would need to do is change the text in the TXT file.
How do I do this. I hae played around with the getvariable actions but have had no luck.

Can anyone Help?

Limiting Text In Back End For Flash Text Field
Hi everyone.

Dilly of a pickle:

The user is able to input text on HTML forms. When the forms are submitted - they get processed by ASP scripts that give the user back an XML file. The user drops the xml file in beside a flash exe we've created and it displays all the text inputted on the forms (it reads in the xml and diplays text accordingly...

End of explanation.

Question!:

The flash exe has text fields of limited size, so is there any way of calculating how much space the text will take up in the flash text field as it is being inputted into the HTML form? Theres no sense in the user putting in a sentence on the HTML form thinking the flash end will have room to display it all.

I realise this is a fairly silly question. I could just have a flash form instead of a HTML form that mimics the flash exe precisely. The user can then see its going to fit or not. But is there an obvious way of doing it on the HTML form that im missing?

I realise this was a long post - sorry! Hope someone can help...

Thanks,

Tim

Unicode Text In Input Text Field Flash MX
Hi
Do you know how to type in the input text field (Flash MX) in Unicode as we're Vietnamese but Flash MX input text field cannot afford this typing. But when I copy text (Unicode Vietnamese language) from Word then paste into that field, it appears correctly. I don't know why. Pls help me

UTF8 Text In Flash Using An External Text File
I have a project where i have to import large amounts of Farsi text into flash, after searching i found this script that does the job but doesnt have an option for setting the text direction to "right to left". can some one modify thae script to do that? thanks amigoz!



-----------------
String.prototype.text2Html = function (fontSize, fontColor, align, fontFace) {
if (fontFace == null) {fontFace = "_sans";};
if (align == null) {align = "left";};
if (fontSize == null) {fontSize = "10";};
if (fontColor == null) {fontColor = "#333333";};

return (((((((((("<p align="" + align) + ""><font face="") + fontFace) + "" size="") + fontSize) + "" color="") + fontColor) + "">") + this) + "</font></p>");
};

unicodeData = new LoadVars();
unicodeData.source = "text_files/demoText.utx";
unicodeData.onLoad = function(){
_level0.display = this.data.text2Html("+1", "#333333", "left", "Verdana");
}
unicodeData.load(unicodeData.source);

Flash 8 - Text Area Component Selecting Text
Essentially I have a single instance of a text area (populated via XML) that updates based on whichever button (1 thru 6) is pressed. The prob:
On intial load you can scroll the text and it behaves normal. I press a button, the text updates, but when I scroll again the component auto selects all of the text within.

prob#2:
In another section of my app I reuse templated slides that populate a text area component with XML text - if I select/highlight the text on slide 1, click next/forward, reuse the template slide but parse a new XML into it, it displays new content but the same area that was previously selected is selected/highlighted on the new slide.

Any thoughts - is this a bug?
Thanks

How To Load Arabic Text Into Dynamic Text In Flash
hi all i hope any one help me how to load arabic text into dynamic text in flash

i use now xml file load variables from the BD then the swf file read these variable and show them to me in flash just that any arabic text is not shown or shown as squares

plz help

[F8] Live Updating Of Text In Flash Via Text File?
I'm creating a Flash document for the company I work for that displays a Top 10 list of the sales people. I'm running it locally off a PC that's connected to a 37" inch LCD mounted in our office. It's sort of a way to raise awareness about everyone's standing throughout the month and to encourage competition.

There's three scenes in total. The first displays the top 10 sales people from the previous month. The second displays the top 10 for the entire year to date. And the final displays the top 10 for the current month to date. The problem is that they want this leaderboard to be updated daily. I'm hoping there's a way to automate this in some way.

I was thinking that it might be possible to tell Flash to pull sales numbers and sales person's names from a locally stored file. Is there any chance something like this is feasible? I'm relatively new to Flash but I'm a quick learner.

Any and all help will be greatly appreciated!

Sending Text From Html To Dynamic Text In Flash
Hi there.
On my page I want to use a dynamic textbox in flash as my headers to get som effects and certain fonts on them.
That means I want to load my flash like "header.swf?text=This header is great"

Could anyone help me with how I would go about doing this?

Getting Text Information With Hyperlinks Into Dynamic Text In Flash
I have Flash 8.

Here's what I need to do: Get content from an outside source...
http://cms.nichedirectories.com:8080/opencms/opencms/Pennbrook/news.php

to display, WITH hyperlinks, in a flash dynamic text box.

I'm very confused, very lost, and in a bit of a hurry. I don't want to have to go around the issue by breaking the page into three separate flash files, just to make sure the client can access JUST the news file, remotely, and it display in the news area.

Please help?

Flash Button That Copys Text From A Text Field?
whats the code

on (release) {
nextImage.text.copy();???
}

i dont know if im in the correct area

pete

Centering Text Vertically In A Dynamic Text Box In Flash
Hi guys,

Does anyone know if it is possible to centre text vertically in a dynamic text box in flash?

I've had a look around and can't find any buttons which will do the job for me.

cheers

How Do I Pass Text From Flash Text Fields To A PHP Script
Hello,
Can anyone PLEASE either steer me to a tutorial or perhaps explain how to do this. I'm working on a flash page that I need to assign values to 2 text fields and a button. The fields are for username and password and a go button. It will pass the information to a php script.


I know how to do this and have it working with html but I need to make it work with the flash page. I made the 2 fields and the button. How do I assign the values.

The html code I have is . . .


<form action="http://mydomain.com/phpgdv2/index.php" method=POST name=theform>
<table border=0>
<tr><td colspan=2> Please log in below.
</td></tr>
<tr>
<td class=sectiondesc>
Username
</td>
<td>
<input type=text name=username size=20 class=inputfield>
</td>
</tr>
<tr>
<td class=sectiondesc>
Password
</td>
<td>
<input type=password name=passwd size=20 class=inputfield>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<input type=submit name=_phpguarddoglogbut value=Submit>
</td>
</tr>
</table>
<script language=JAVASCRIPT>
document.theform.username.focus();
</script>
<input type=hidden name=_phpguarddogaction value=login>
</form>

============================

I am in hopes that someone will take a look and tell me if I am even on the right track. I need the form to send the data from the fields tht I posted in the html example and I don't know what I am doing wrong.

I have a feeling that I have turned a simple thing into something complicated and really am very new to flash.

In advance I thank you for a response and this wonderful forum.

B -



I uploaded my .fla file to http://mymediabin.com/login.fla

Help Fix My Flash Scrollable Text. It Does Not Stop At The Start Or End Of The Text.
I have my scrollable text with up and down buttons. When I press the Up or Down buttons, it will keep going until there is no more text displayed and is just a blank screen. Can you please help and modify the flash so it knows when to stop.

Help appreciated.

Scrolling Text Box Scales Text (Flash 5)
We have created a scrolling text box that pulls text from an external .txt document. I have been through many detailed tutorials (which have helped out greatly) and have everything working properly except that when the text box is at the size we want it (W:318, H:221) the text is scaled down (to microscopic levels) to fit within that text box. If I scale the text box to a much smaller height (like W:318, H:36) then the text holds on to the attributes set to it (_sans font, size: 10) and the scrolling variables are applied and everything works like a charm. Tried everyhting I can think of and a project deadline is creeping fast. Any ideas as to how we can make that text box hold the font size while at the larger deminsion would be greatly appreciated.

How To Get Flash To Pull Text Out Of A Text File? WOW
Im trying to get Flash to pull text from a file and display in a box I created. How is that done? Any insight is helpful. Thanx in advance!

How To Get Flash To Pull Text Out Of A Text File? WOW
Im trying to get Flash to pull text from a file and display in a box I created. How is that done? Any insight is helpful. Thanx in advance!

Export A Flash Text To A Text File
How do I export a flash input text from flash to a text file??

If I should write this in a nother forum, plz tell me then!

Alligning Text In A Scrollerbar Text Box (Flash MX)
When you use action script to write things in, in a text box in flash mx, how do you align the text to the left or right or center?

Flash 5 > Input Text To Dynamic Text
I have 2 separate mcs, my problem is that I can't seem to get the values from the input text from one mc to display as dynamic text in the other mc. Please help!!!

Text In A Text Box In Flash From An External .txt File
i need to kno how this is done. can i have step by step instructions or a download?? thanx

Updatable XML Text Into Dynamic Text In Flash
Are there any tuts/recommended books for Flash using XML to easily upload dynamic text channels? Ie, to update the text in a flash site dynamically?

Thx in advance.

Flash MX: Text Getting Cut Short In Dynamic Text Box
I have two dynamic text boxes. They load fine when I call them and the external text files load. However, only about half of the text is actually showing. I am able to scroll fine, but the text ends prematurely. Is there a limit on how much text it can hold? I have it set to "multiline"

Thanks for any help. I have searched the forums for this, but am unable to narrow it down enough to come up with less than 5000 posts regarding dynamic text. LOL

Dynamic Text Box & Flash Text Box Components
Hi,

I'm having trouble getting a scrolling text box created with Flash components to dynamically pull the text from an external .txt file. I can get a normal text box to pull the info no problem, but I can the the components text box to.

Any suggestions?

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/

Input Text Checked Against Text In Flash
Hi,

I was wondering how to check something someone has typed against a my sentence and if they get it right, go to the next sentence, if not go to a fail page.

Example:

In the text box, someone wrote hello, when they click submit, I want the input text to be checked against my sentence. So they can go to the next sentence, if not it should go to a unsuccessful page.

Thanks

Abs55

Scrollable Text From A Text File In Flash 5
Hello

I would like to make some scrollable text using text from a .txt file. I dont really need an actual scrollbar, i just need the up and down buttons. I have looked at various tutorials and looked at other posts but am still confused. Most of the tutorials i've seen have been for Flash MX and I need one for Flash 5. Could anyone please explain to me how i could accomplish this but could you please explain in basic terms as I am quite new to flash and am already getting confused. Any help would be very much appreciated

Thank You

Dynamic Text From Text Source In Flash MX
Hi,

My Flash MX Question is this:

Is it possible to create a "system clock" time controlled movie clip in Flash MX that when your computer's system clock gets to 12:00am - "a new day" , the movie clip, using Actionscript can load from a text file stored on your server, the text in that file? Then when the clock gets to 12am again, calls up another text file to same movie clip? Also it preforms this in a sequence?

Ex: time 12am monday, actionscript pulls text from 1.txt to dailytext.swf
time 12am tuesday, actionscript pulls text from 2.txt to dailytext.swf
time 12am wednesday, actionscript pulls text from 3.txt to dailytext.swf

and so forth all the way up to 365.txt = one text file for every day of the year? Or can be controlled by actionscript to pull specific sequencial numbered sections of text like 1 thru 365 every day that it hits 12am, from I (one) text source..........if this can be done i'd be greatful for someone to show me how i go about accomplishing this?

Aaron

Flash 5: Aligning Text In Dynamic Text Box
hi.
I've created a scolling text box in Flash 5
I've used a dynamic text box for the copy.
I'm trying to figure out if it's possible to justify the text, ie flush left and right.
I've been able to align left, right or center, but when i try to justify it it defaults to left align. Is this not suppported in Flash 5?
thanks for any suggestions,
neil.

url:
http://www.cushynumber.com/test/test.html
source file:
http://www.cushynumber.com/test/test.fla

Load Php Echo Text Into A Flash Text Box
Hi, i was wondering how do you make a php page with a echo(); command load into a flash dynamic textbox.

e.g

//php page//
 $fred = "test";

 echo($fred);

how would i load the output of the echo into a flash textbox??

Help!!

Thanx

Martin



(Flash) Text Box Text Dissapears When Clicked
Hi does anyone know how to make the text in a text box dispapear when the text box is clicked. eg

a search text box displaying the word (search) will disappear when the user clicks the search box. Also would like to know how this is done using a html form.

Thanks


Stuart.

Flash And ASP To Save Text From A Text Box
I need some help on a flash program i am working on. I am creating a program for web developers to program in HTML code. I have a text box and a button to save the code from the text box. I need a way to make flash tell my ASP program the text from the text box and a way to make ASP create and save a file from what flash gave it any ideas??

Thetechgeek

Outputting Data In Flash To Text Documents, Creating Textdocs With Flash & Mc Filters
Question 1: How do I add a filter to a movieclip from actionscript,
More specificly, the "adjust color" filter, and I want to decrease brightness, saturation, hue, and contrast... by actionscript...
If you dont know what I mean, use the circle tool to create a circle, convert to movie clip, click the "filter" tab, then click + and add a adjust color filter, you'll see what I mean...

Question 2: I need to output text to 'text' documents, no I cannot use shared objects for this, as it is a program for a client, and it isn't safe enough for me...

Basically, this is what I want to do...


Code:
var archive:Array = [];
archive[7] = "Hello I am the 8th archive";

//save to a text document called "archive7" in the directory myProgramfiles
//finished with code...
then

on initilization of my program, it'd do this

Code:
//get text from the text document I saved in the directory "myProgramfilesarchive7"
Thats what I really need

Question 3:Is there a way to create a folder, text document, through flash
//example


Code:
var textdoc:TextDocument = new TextDocument();
textdoc.name = archive7;
textdoc.text = "Hello I am the 8th archive";
Can anyone tell me how to do this

Thanks in advance

Call Flash Function From Href Tag Within A Flash Html Text Field?
I'm creating dynamic html fields within Flash and have been succesful calling javascript functions or launching browsers, but what would REALLY be cool would to actually call Flash functions with those href tags.

Does that sound like a possibility to anybody?

Or, alternatley, could a javascript function in the web page execute a function within the swf?

Copyright 2005-08 www.BigResource.com, All rights reserved