Removing next line spaces

FLASH

    Next

  • 1. ExternalInterface call: IE vs. Firefox
    Hi everyone, I have a simple call to a Javascript function: ExternalInterface.call("asDone"); This works in Firefox 1.0.7, but not in Internet Explorer 6.0, I get an error "rvs not found" (the html page is in a directory called "rvs"). All "asDone" does is "alert('Done');", this is just for proof of concept, but I'm having difficulty proving it! Thanks for any help or suggestions, Lee
  • 2. MX newbie needs help with making dynamic text field
    this.createTextField( stars[i], 1, (Stage.width*.5), (Stage.height*.5), 25, 25); with ( stars[i] ) { autoSize = true; html = true; multiline = false; selectable = false; text = (stars[i]); type = "dynamic"; wordWrap = false; } What am I missing with the above code, because the code below works. (I have a small array "stars" already set up, and I'm using the stage width and height of the _root) Thanks in advance, -theartist this.createTextField( "star1", 1, (Stage.width*.5), (Stage.height*.5), 25, 25); with ( star1 ) { autoSize = true; html = true; multiline = false; selectable = false; text = (stars[i]); type = "dynamic"; wordWrap = false; }
  • 3. External URL links.
    Hiya folks, I am having an issue with linking external URLs to specific child SWF. Basically someone sends out an promotional email with links pointing to the scenes in my movie. This currently works great. They have recently modified the request. They want the external link to point to the "Promotional" scene but they also want it to pull up the specific promotional child scene which is content trigger by hitting a button in the "Promotional" parent scene. All of my child .swfs are housed in an external folder outside my library. Is there a way to have the External HTML URL to trigger the same event as my button would while I was in the scene or possibly have to URL hit the button apon load? Thanks
  • 4. Need Help Here! If frame 13 has been played
    Someone please help me? How do i script an action to check if a certain frame has been played, and if it has to go to another frame( or label) on the _root Timeline????

Removing next line spaces

Postby OniLink » Mon, 20 Feb 2006 12:18:57 GMT

When getting a block of text from a database and displaying it in Flash, it 
places large spaces between paragraphs. For example, in the database the text 
looks like this:

 "Blah blah blah blah. Blah blah.
 Blah blah blah.

 Blah blah."

 But when i is displayed in Flash, it looks like this:

 "Blah blah blah blah. Blah blah.

 Blah blah blah.


 Blah blah."

 As you can see, it adds and extra line to every carriage return.

 Can this be stopped without having to place a /n character before every line?

 Thanks for any help.
 ~Oni. 


Re: Removing next line spaces

Postby kglad » Mon, 20 Feb 2006 13:41:59 GMT

you can use flash string methods to remove \r and \n in the string you loaded into flash.

Re: Removing next line spaces

Postby OniLink » Mon, 20 Feb 2006 14:10:04 GMT

The problem is the text is coming from a database and doesn't use /n or /r.

Re: Removing next line spaces

Postby kglad » Mon, 20 Feb 2006 14:16:32 GMT

it probably does.  check it.

Re: Removing next line spaces

Postby OniLink » Mon, 20 Feb 2006 15:31:33 GMT

Ohh, so it automatically adds /n when there is a gap? I'll check it out.

Re: Removing next line spaces

Postby kglad » Tue, 21 Feb 2006 02:32:46 GMT

either \n or \r.  note, it's a BACKSLASH, not a forwardslash.

to remove a \n from string s, use:

s.split("\n").join("");

Similar Threads:

1.Blank space wraps to next line of HTML text

2.TileList - removing space between images

I've created a tilelist.

I've removed the default "UP" cellRenderer skin, but it leaves some space between each of the images in my TileList.

Is there any way to remove this spacing???


3.Removing the white space

4.embedded html font removes spaces!

I have a dynamic html textField which has embedded fonts. When I provide it 
with html, it is displaying formatted text (italic, bold, underline, etc) 
incorrectly. it removes a space directly in front of the formatted word.

 e.g. unformatted:
 hello world

 formatted:
 helloworld

 I have tried placing the space inside and outside the format tag and it makes 
no difference. Switching off the embed makes the field display correctly, 
however my client wants embedded, anti-aliased text.

 This seems to occur quite randomly so that some formatted text in the same 
textfield does not display incorrectly, while some does!

 There are font symbols for all my formatted fonts in the library.

 Can anyone shed some light?

5.How to remove spaces from a string?

I can't find this- it must be easy. I have a string "my new string" that I need to rid of spaces so that it is "mynewstring". Please tell me how in Flash 6. Thanks.

6. set visible=false in Label not removing its space in screen

7. new suitcase ads line spacing

8. Line spacing anomaly



Return to FLASH

 

Who is online

Users browsing this forum: No registered users and 68 guest