Filling The Spaces
well i have a HTML page with 2 FRAMES and i have a space between them.. how can i fill in this spaces.. i know it has to do with the HTML code.. please help... if u are unsure wha i mean go here:
http://kotrclan.com/main/flashkit.html
ui can notice a gap on the bottom right where the blue picture in the back ends :-/
thx in advance
FlashKit > Flash Help > Flash MX
Posted on: 08-11-2002, 09:10 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Big Spaces In .txt's
for some reason in one of my .txt'x when i load it in flash while testing movie where an eneter is inserted there is a big line like
that:P
and it sux, how do i stop this ??
Spaces...
I will try that... I am about to take a different route, if this does not work
Removing Spaces
hi i'm mailing a form out of flash and need to format it to make it more readable.
all multiple spaces are automatically removed when the variables are mailed
does anyone know how i can stop
"fred fred"
turning into
"fred fred"
is there a character or something like a nbsp that i can use.
arrrgh i just previewed the post and it happens here too
i want to stop
"fred__________________fred" (substite " " for "_")
turning into
"fred fred"
thanks
Removing Spaces
How can I remove spaces from a string taken from a form field?
Getting Rid Of Spaces In Strings.
ok... I have two variables. they both have to be the same, but one can contain spaces, and the other cannot.
eg:
(Action for Frame 1)
var1 = new String();
var1 = "hello new world";
(Action for button1)
on(release){
var2 = var1;
}
theoretically, 'var2' should be "hello new world" but i need it to be "hellonewworld". Bascially I need to get rid of the spaces.
can anyone give me a hand with this ....???
thanx in advance.
Spaces In Textfeilds?
I have a dynamic text box. How can I make it so that they can only enter letters and numbers.... nothing else... not even spaces...
thanx
-Ryan
Spaces In The Html
how can i remove the spaces in the HTML file which has the embeded flash. There is a small gap between the window border and the flash. I know there was a HTML code u added to the header but i forgot wha it was. thx in advance guys
Replace Spaces
Hello,
I need to replace all spaces in a variable's contents to underscores
var i = "this is the text"
needs to be:
var i = "this_is_the_text"
Thanks....Rob
Turning Spaces Into +
i have a form that im making in flash that needs all " " entered to be changed to "+"'s. please help
Replace Spaces
I would like to take the input from a text field input and replace the spaces with +signs.
Is this possible?
Tag Problems... Spaces Are Gone
Hi all,
I'm writing html text to a filed like so:
Code:
tekst.htmlText = '<i>italic</i> <U>underline</U>';
But the outcome is as followed:
italicunderline
The space in between is gone... any reason for this to happen?
Cheers
[MX] Trim Spaces
Hi, now i know there are many different posts on this but sadly none that i understand except this 1 which i found elsewhere
Quote:
function remWhiteSpace (string) {
if (string.indexOf(" ") != -1) {
whiteIndex = string.indexOf(" ");
fst = string.slice(0, whiteIndex);
snd = string.slice(whiteIndex+1, string.length);
remWhiteSpace((fst+snd));
} else {
_root.noSpaces = string;
}
}
myString = "abcdefg hijk lmn";
remWhiteSpace(myString);
myString = noSpaces;
trace (myString)
The only problem is i cant get it working properly to work with user input boxes.
Im building a quiz which the user enters answers via input boxes and im wanting to remove all the white space they enter to check their answers to the answers i have in actionscript.
Spaces Between Varibles
Okay, so here is my code:
on(press){
message.text="your total is," +count +username;
}
This action is attached to a button. When the user clicks on it, the message above is displayed in the browser, as I directed it to, except there is no space between the values for my variables.
What syntax is used to put spaces between variables that follow each other so that their values don't appear grouped as one word?
Andrea
Spaces Within A Cell
Hi Gang;
OK, can someone point me as to how I rid myself of that 1"+ of white space above my rotating images:
Here is the image illustrating the space:
http://68.178.194.211/gallery/data/522/space.jpg
Here is the script currently employed below:
Attach Code
<object align="top" height="600" width="600">
<param name="movie" value="http://www.smugmug.com/ria/ShizamSlides-2007090601.swf?AlbumID=6453203&AlbumKey=tZa2b&tran sparent=tr ue&crossFadeSpeed=800">
<param name="wmode" value="transparent">
<param name="bgcolor" value="000000">
<param name="allowNetworking" value="all">
<param name="allowScriptAccess" value="always">
<embed src="http://www.smugmug.com/ria/ShizamSlides-2007090601.swf?AlbumID=6453203&AlbumKey=tZa2b&tran sparent=tr ue&crossFadeSpeed=500&clickUrl=http://www#46;smugmug#46;com&showThumbs=true&showButtons= false&show Logo=false" wmode="transparent" type="application/x-shockwave-flash" allowScriptAccess="always" allowNetworking="all" height="600" width="600"></object>
Spaces In A String
I've got a script where I'm changing the context menu. This is what the items look like:
Code:
var menuItem:ContextMenuItem = new ContextMenuItem("This is where content goes.", noClick);
What I need is for some space to show up in the item, preferably before the start of the sentence. But if I just put some spaces in there it won't take. Is there some code for that like the   with HTML?
How Do I Get Spaces Between Lines....
I have embeded a font for use with a .txt and a .css file. When I publish and run I have lost some (but not all) of the formatting of my text - colours, fonts (embedded) and sizes are still there but I can't seem to get a line break. This implies that I am missing something easy but I can't find it.
Here is the file on the web - click the "testimonials" link.
www.maxelcat.co.uk/redwood/index.html
here is the code for the .txt file
CODEcomments=<h2>Testimonials</h2>
<span class="intro">The below are all comments made by some of our customers!</span>
<p>Andy has carried out an outstanding job with great humour and cheer. He is to be commended on the way he has represented your company- well done!</p>
<p>We are very satisfied with the work Andy has done. It is to a high standard and finish. He obviously takes pride in his work and enjoys what he does.</p>
<p>We are extremely pleased with this installation and highly recommend the workmanship.</p>
<p>Excellent workmanship, we are really pleased with the deck work.</p>
<p>An excellent job and everything left clean and tidy.</p>
<p>Excellent workmanship. Friendly and cooperative, Andy obviously takes great pride in his work and has done a beautiful job; we are delighted with the result.</p>
Spaces In Mp3 Names?
Hi Folks!
I recently went through the mp3 player tutes on the site and ran into something I'm not sure how to handle. I have an archive of mp3 files I'm using, unfortunately, nearly all have spaces in the song titles. With ignoreWhite=true the songs don't seem to get picked up. Is it just a matter of changing the ingoreWhite=false? How does this affect how it loads the xml?
TIA Bob
Get Rid Of White Spaces....
Hi all.
this might be a stupid question (forgive me if it is), but i'm gonna give it a shot anyway. Is there any way to prevent those white spaces where your flash animations/movies, will be when a page is loading? I've made this page, with 3 or 4 flash elements (rather big) and when you open the page those white spaces look kinda awful....so I was hoping there's something that can be done about this....
Thanx!
Can Movie Instance Name Have Spaces?
Probably a siple question...
But... can movie instance names have spaces?
If so, how do you access them?
What I want to do is read in values from a text file that may have spaces in them and use them to name movie instance names.
I can gain access using eval.
I can't see any problems with having spaces...
(As long as I use the eval function.)
Are there any problems?
Or should I strip out any spaces before naming an instance?
Any help would be appreciated.
Thanks.
Jam
Spaces Inside Numbers
Hi everyone,
I'm trying to put together a spreadsheet-like interaction for an business economics course, and one of the things i'm having trouble with is that here in Sweden, they like to use spaces to separate the thousands column from the hundreds column, so for example 3,600 would become 3 600. Is there any way to get the Number function to ignore the space without plucking out every single character and evaluating it's value? right now i'm using a Key.getCode to make sure the keystrokes are numbers or mathematical figures, but i don't know how to allow the display show a space at the same time as the number is calculated properly. If it's even possible.
Any suggestions welcomed!
js
Trimming Spaces From A String?
Could someone please tell me what substring function is used to strip a word of all spaces.
ie. Mr. Charles Smith >>> MR.CharlesSmith
Thanks,
Zach
Spaces In Input Text
Hi,
I have a few input text boxes whose contents are passed to a PHP script.
The thing is, if the text in the input box contains spaces, only the first word is passed. If +s are used instead of spaces, it works fine.
Is there some built in function to do this?
cheers,
Darkwhiteorange
Timeline Blank Spaces
I have worked with Flash 5 before. I seem to do good in Flash 5. But I'm a newbie to Flash MX.
I'm trying to use Flash MX, but...
The powers to be have changed the way the Timeline works.
Please help me understand how to work with frames.
I'm having trouble making frames shorter and I can't seem to prevent Flash from filling in my Blank frames with white empty frames.
The DELETE key won't work anymore. The only way to remove my frames is by the Shift-F5 key combo. Is this the only quick way?
When I try to drag a frame's end shorter (dragging to the left), it keeps making a copy of that frame instead of making it shorter. I seem to be able to drag it longer, but not shorter.
I have a frame in the time line, them I move forward a certain amount of frames and I insert a new frame. Flash MX now fills the empty gap with a Blank White frames. I'm use to the Blank areas in my timeline like in Flash 5. Now my timeline is full of more frames than I want. I only want to see the frames I add in, and not the blank frames Flash MX adds in. It's really ticking me off. It seem so much harder to use MX?
I'm really struggling with the new interface. I really wish the timeline worked like Flash 5. I don't understand what they changed, but I can't seem to get hardly anywhere working with the timeline. So I can't seem to get past the timeline in my movie creation.
Comments please.
Mike
Do Not Allow Spaces In An Input Field
Hi,
Can anyone tell me how to restrict the use of a space in an input text field?
I do not want the user to be able to leave spaces between characters they type in.
myText.resrict = "0-9"; only allows #'s
myText.resrict = "a-z"; only allows letters
I want to disallow spaces. No spaces allowed!!!
How can I achieve this?
Any help would be appreciated!!
Thank you kindly in advance!
Spaces In Strings/objects/MCs
I have been developing a map based interface, and I have hit upon a little snag.
Essentially (even though it is a bit redundant) I have created a series of arrays that then points at another series of arrays
so it goes region >> county >> town
The problem I have is that some of the counties have spaces (so do some of the towns ) i.e. the county will be "Tyne and Wear", whilst this is ok for the towns which only ever appear as strings within a button, the county exists as a string within an array and then as an array name itself.
My only solution is to call the county Tyne_and_Wear, and then remove the underscores on the display of the string.
Anybody got a better way of doing it?
Popup Spaces Around The Edges
i have a movie that display popup. i set its top, bottom, left and right=0 but still have spaces around the edges..
why?
thanks for helping
Popup Spaces Around The Edges
i have a movie that display popup. i set its top, bottom, left and right=0 but still have spaces around the edges..
why?
thanks for helping
Link To Folder With Spaces
Im trying to provide a link to different exe files from my flash file, ie, trying to open them.
The linked exe files all are contained in different folders which have spaces in them.
I cannot change the folder names ( make them without spaces).
So how do I open these files from flash when I know that flash has an aversion to any names with spaces? Any body??
Random Spaces In Php Text
hello all i'm getting a wierd problem...
i'm getting paragraphs of text like so:
hello i'm line one
hello i'm line two
that was a break '<br>' now look at what i've done but if wrap on to the next live i'm fine but oh wait...
that was another break wasn't it? damn now i'm gonna do this again!
ok so basically after every break the next new line starts with a space. the text is going into dynamic html enabled text fields which have condenseWhite set to true; the php script which calls them (and send them to flash) runs the string through a trim() function & a nl2br() function.
i'm not sure why it's doing it but i am literally pulling my hair out over this one. grrrrr.
for example of what i mean go to www.dspmedia.co.uk and click login.
user: example@dspmedia.co.uk
pass: password
cheers guys(n gals)
How To Eliminate Spaces In Input Txt ?
Hi-
I have an input text field in which I am capturing the first and last letter of a word that a user enters. I am sending these two letters through a list of arrays that have words assigned to each.
i.e. Input text = apple
firstLetter [a] = cat
and so on...
lastLetter[t] = hair
and so on for every letter...
I am then taking these words and compiling a new word in the output window.
every thing is working fine except that when the user enters a space at the end of the input text ( apple[space] ), Flash is reading the last letter as NaN.
Any ideas as how to eliminate the spaces that a user enters before running it through these arrays?
Adding Spaces To A String
Hi, I have a simple question... hope you can help me...
I have a string like this: "a b". As you can see, it has a lot of space between the two letters. Now, when I assign that string to a TextField, it crops all the spaces in the middle leaving just 1 simple space like so: "a b".
What I need, is a way to put lots of spaces between two characters in a TextField. In other words, I need the TextField to show the real content of the string... does anyone knows how to do that?
Thanks
EDIT: Ok, even the forum trimmed my question... the real string has a lot of blank spaces between the letters "a" and "b", that's what I want the TextField to show...
Removing Extra Spaces
Hi,
can anybody give idea for removing extra spaces in a string .
Example:
str=" this is an example "
should be like
str="this is an example"
can anybody do ?
Loading Php Into Flash As3 Spaces=%20?
I'm loading af php-file (http://www.puckoege.dk/pucmobil/nov_indhold.php) into a Flash dynamic textbox. Everything works fine - but the text is formatted with "%20" instead of spaces etc.
The php-file is getting the text from a MySQL-database. It is a rather long text... I use dreamweaver for making the connection.
I think it is a simpel mistake - can anybody tell me what I am doing wrong?
I use a URLRequest, URLloader to get the data...
Insert Spaces Around Operators
I'm using Flash 9, CS3, on a Mac. In my preferences, under Auto Format, I have "insert spaces around operators" checked, but when I press Auto Format in the ActionScript window it doesn't work. Is there a work around?
Thanks!
OSX Spaces And Interface Redrawing
Hi There,
I just want to verify if anybody is having the same problem as I am. The problem, I think, has to do with OSX's Spaces implementation. When I work, I usually setup Flash to be in a single "Space", Dreamweaver in another "Space", and Illustrator in another "Space". When I switch to the space that has any of this, I find that the interface for that particular program (Flash especially) does not redraw until I click off the part of the interface that does show, then click back on. Or, I have to toggle the paletttes with the Tab key. Does anybody experience this?
Thanks!
Removing Spaces From A String
How can I remove spaces from a string taken from an input text box. I am guessing I will have to use a for loop of some kind as I don't know where the spaces will be until the user has filled in the text box.
Eliminating Additional Spaces
Hi,
Is there a way to eliminate additional spaces in text variables?
example:
EDIT: The forum already eliminate the spaces. Imagine that "_" is space on the following sentences:
text = "__________KirupaForum______is_the__best____Flash_ tutorial____site_of_the___World_______"
Eliminating spaces...
text = "KirupaForum_is_the_best_Flash_tutorial_site_of_th e_World"
thanks
Checking For Spaces In Textbox
I am checking if user has not entered anything in the textbox
on(release)
{
if(input_pname.text=="")
{
trace("Nothing");
}
}
Why this code is not working?
Removing Spaces From A String
How can I remove spaces from a string taken from an input text box. I am guessing I will have to use a for loop of some kind as I don't know where the spaces will be until the user has filled in the text box.
Eliminating Additional Spaces
Hi,
Is there a way to eliminate additional spaces in text variables?
example:
EDIT: The forum already eliminate the spaces. Imagine that "_" is space on the following sentences:
text = "__________KirupaForum______is_the__best____Flash_ tutorial____site_of_the___World_______"
Eliminating spaces...
text = "KirupaForum_is_the_best_Flash_tutorial_site_of_th e_World"
thanks
Removing Extra Spaces
I have some actionscript at the moment which is using a bit of php to read XML Feeds
it looks something like this
CODEwhile (c) {
//text nodes are of type 3 - don't waste cycles looking at them
if (c.nodeType != 3) {
//check for a match to the node we want
if (c.nodeName == name) {
//if it matches, get the data from the subnodes by passing
//the current node's childNodes (which is an array) to the
//"getNodeText()" method
var itemDescr:String = getNodeText(c.childNodes, "description");
var itemTitle:String = getNodeText(c.childNodes, "title");
var itemLink:String = getNodeText(c.childNodes, "link");
//add formatting and update the variable that will get
//passed to the TextArea component
content += itemTitle +itemDescr;
}
//here's the recursive bit:
//call getContent on the current node
content += getContent(c, name);
}
Setting Parameters With Spaces In The Name?
I'm using a nice little commercial component (.mxp) in a current project.
I want to adjust one of the components parameters using ActionScript... but the flippin' parameter is actually named with a space in it's name. At least, that's how it appears in the Parameters tab in the Component Inspector:
"conn timeout".
I can set the value of this parameter in the inspector, and it works just fine. But can't figure out how to address it in AS.
Anybody have any ideas?
Thanks!
-Carl
HtmlText Disappearing Spaces
hi all
i hope this is a simple one, but it is burning my brain. i am building a simple html editor (for flash player 6) for a client and have small problem.
if in the string i send to field_txt.htmText i have a space (or spaces) that appear between two tags that have no other characters along with them (i.e. only spaces appear between the tags) the space character(s) get completely ignored.
thus, this string:
"<B>Hello</B> <I>there</I>"
gets rendered as:
Hellothere
as i am writing this so my client can input his own text AND format it within the .swf, i can't guarantee that he'll never try to have two words follow one another that BOTH have tags around them. i am developing a workaround,but it's clunky and wanted to see if there was a simpler fix.
any thoughts would be much appreciated.
thanks
k
Filling Bar?
How do i make a bar start filling on keydown if you are in the zone?
I've tried:
Code:
player.onEnterFrame = function() {
with (player) {
If (zone.hitTest(_x, _y, true) {
inzone = true;
zoneicon.gotoAndPlay("visible");
} else {
inzone = false;
zoneicon.gotoAndPlay("invisible");
}
if (Key.isDown(Key.SPACE)){
if (inzone = true){
bar+=1;
movieclip_bar.gotoAndPlay(bar+1) //The bar is supposed to animate
if (bar>99){ //If the bar is full
gotoAndPlay("finish") //Advance to next level
}
}
}
What is wrong?
Filling A Bar
hi there all you Flash Gurus!
im a newbie to the flash world, i have a project im working on, its like a preloader, but i want to fill the bar depending on a 2 values passed from the browser variables a & b
varA = total
varB = progress
Check out the attached image. thats the bar
the part im totally stuck with is making the green bar move from 0 to the point specified in the variable... so basically the green bar stops at the percentage of varA. the total width of the movie is the same as depicted in the image, its just the internal variables that change.
if you could help me out it would be MUCH appreciated. i know ActionScript is needed, its just that crap im lost with. I guess all im asking for is how do i get that symbol to move across the screen.
Filling A Bar
hi there all you Flash Gurus!
im a newbie to the flash world, i have a project im working on, its like a preloader, but i want to fill the bar depending on a 2 values passed from the browser variables a & b
varA = total
varB = progress
Check out the attached image. thats the bar
the part im totally stuck with is making the green bar move from 0 to the point specified in the variable... so basically the green bar stops at the percentage of varA. the total width of the movie is the same as depicted in the image, its just the internal variables that change.
if you could help me out it would be MUCH appreciated. i know ActionScript is needed, its just that crap im lost with. I guess all im asking for is how do i get that symbol to move across the screen.
How Does One Take Out Spaces From A String ? It Sounds Easy...please Help
Okay I am working on a big project here and I have tried 7 times to figure this out but with no cigar. If I have 1 string with the following words inside:
dummy = "WHO CAN BREAK THIS LITTLE STRING";
If one wants to go through the entire string and then sort out all of the spaces to make the string as follows:
dummy = "WHOCANBREAKTHISLITTLESTRING";
I know that there has to be some kind of for loop or while loop but I don't know exactly how to do this. Please go ahead and put the code into a function and one that it returns the final string. Please help me figure this one out because I need it for a major project I'm working on right now :-) Thank you very much.
|