XML :: Admin Panel - Big Spaces Between Phrases (Carriage Return)

Feb 8, 2011

I am developing an admin panel for an flash site. One of the sections contains large amount of text containing Carriage Returns. It can look as this :
John Doe was born in Athens in 1974.
He studied at the Athens School of Fine Arts and he presented his first solo exhibition in 1996.

So from the text area the text goes to mysql and from mysql I generate an XML file. The problem is the xml file source is looking like this :
John Doe was born in Athens in 1974. 
He studied at the Athens School of Fine Arts and he presented his first solo exhibition in 1996. 

This way in flash the text has some big spaces between phrases and I dont like it. How to generate XML file to be like this :
John Doe was born in Athens in 1974.
He studied at the Athens School of Fine Arts and he presented his first solo exhibition in 1996.

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Return Carriage With XML?

Jul 5, 2005

Is it possible to have a well formatted text with XML?Will i be able to use the 'return carriage' and lay my text in paragraphs?

Iam trying to load an external xml file that has description of the images in my portfolio.

View 2 Replies

ActionScript 3.0 :: Get Carriage Return & Line Feed?

Jul 4, 2009

How can I get the text from the textarea component along with the line feed & carriage return characters?

As now, I amusing the text to send email. But in email, it showing all in a line rather than multiline, which means carrriage return and/or line feed characters are missing. How can get them?

View 1 Replies

ActionScript 2.0 :: Replace Carriage Return Into Normal Text?

Dec 24, 2010

How do I convert a multiline of text from an input box into a single line of text except I would put a string of characters to replace the carriage return?

from:
Hello
world
I

[code]...

to:

Hello~|~world~|~I~|~am~|~here.

Tried this and other variants but doesn't work.

txt = txt.split(ASCII(13)).join("~|~");

View 2 Replies

Actionscript 3 :: Carriage Return Line Feed In MXML?

Oct 20, 2010

I have this line:

text="{selectedOrder.targetLocationName} 'crlf' {pickUpLocationHTML}"

View 1 Replies

ActionScript 2.0 :: Restricting Carriage Return In Text Input Fields?

Mar 21, 2007

If it's possible to restrict hard returns in text input fields? I've tried something like this:
my_txt.restrict="^u0013", and a bunch of variations thereof, but nothing seems to keep the Enter key from doing it's thing. Second best would be to traverse through a string a user has entered and replace hard returns with a space or dash, but again I've had no luck looking for
or
I've tried entering text and hard returns into a dynamic textfield set to input, but when I try this:
var n:Number = my_txt.indexOf("
")...
trace("n: "+n) //traces "n: -1"

View 4 Replies

ActionScript 3.0 :: Removing Carriage Return Inserted Mysteriously By Flash

Oct 6, 2010

How to remove a carriage return that's inserted mysteriously by flash. I have a text input box and it auto adds a enter key press carriage return.
<IMAGE Names="Josh
">My imputed text</IMAGE></GALLERY>
%20Names%3D%22Josh%26%23xD%3B%22%3EMy imputed text%3C%2F
This is the mess of crap its auto inserting
%26%23xD%3B%22%3E

View 1 Replies

ActionScript 2.0 :: Generating A Menu From An Admin Panel?

Sep 11, 2006

I've got some code which is generating a menu from an admin panel.Therefore the text is not an object on the stage, but code in the actionscript.I am looking for a way to apply an effect for rollover states to all generated text. it could be something as simple as the text vibrating. or the text blurring.

gallery_mc["menu_item"+MILayer].onRollOver = function() {

this is where the filter or effect should happen, but I'm not sure how to

make a filter happen without attaching it to an object or symbol

View 14 Replies

ActionScript 2.0 :: [MX2004] Use Two Pairs To Insert A Line Break And Carriage Return Not Working?

Jan 30, 2004

I've been looking around but i couldn't find a solution for my pb..Here's what i do:

[AS]
onClipEvent (load) {
loadText = new LoadVars();
loadText.load("TEXT.htm");
loadText.onLoad = function() {

[code]....

Now my text file is like that:

myNews=<FONT COLOR="#FFFFFF"><B>This is bold 24 point text</B><P></P><P></P>blah blah</FONT>

As i could read on macromedia 's web site:Use an empty pair of <P></P> tags to insert a line break. Use two pairs to insert a line break and carriage return.But this isn't working.

View 2 Replies

Actionscript 3 :: TextField - Unwanted Carriage Return When Setting Value To ""?

Jan 8, 2010

I have an input TextField and have a KeyboardEvent.KEY_DOWN even listener on the stage to listen for the Keyboard.ENTER event. The event listener adds the entered text to an array or whatever, and then clears the TextField. The problem is that when the Enter key event fires and the TextField value is set to "", it leaves a carriage return in the TextField and the cursor positioned on the second line. WTF? I've been coding AS2 and AS3 for a LONG time and have never ran into this before.Example:

var myTextArray:Array = new Array();
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
function onKeyDown(e:KeyboardEvent):void{

[code].....

View 7 Replies

ActionScript 2.0 :: Restrict "ENTER/CARRIAGE RETURN" Key ASCII 13 On Input Textfields?

Aug 19, 2006

How on earth do you restrict "ENTER/CARRIAGE RETURN" key ASCII 13 on input textfields?

View 5 Replies

Media Server :: Admin API Fail :: NetConnection.Admin.CommandFailed

Nov 1, 2009

I want recieve infomation for recorded stream in FMS Server. so, i tried use Admin api(getRecordedStreams or getNetStreams). but, returned below code : NetConnection.Admin.CommandFailed . 

Below  my code :
 
import flash.net.NetConnection;
import flash.net.NetStream;
import flash.events.*;

[code]....

View 2 Replies

ActionScript 2.0 :: Checking Input Box Data For Specific Phrases?

Jan 10, 2006

I'm developing a diet checker that users enter their recipe into an input field and compares it to an external text file with a list variables of ingredients and then underlines or highlights certain ingredients that would not be good to eat.

I need to check this input box for certain words and see if there are specific words before or after those words.The word "egg" WOULD BE highlighted/underlined as a bad ingredient but "egg white" would NOT have the "egg" part highlighted The word "fried chicken" WOULD BE highlighted/underlined but "baked chicken" or "broiled chicken" would NOT be highlighted The external variable text file lists the words I'm searching for and the words to replace them with but, the code I have cannot yet determine if the word "white" is after the word "egg" and then not have the "egg" part of the phrase underlined.

View 2 Replies

Professional :: Workspace / Panel - Error: The Following Panel Layout Is Missing Or Could Not Be Read...

Dec 7, 2011

I just downloaded Flash CS5 for mac which installed without any errors. However, when I first launched the software I am getting the following error: The following panel layout is missing or could not be read: /users/rob/Library/Application Support/Adobe/Flash CS5.5/en_US/Configuration/Workspace/Essentials.xml The application will not have a correct layout. load one from Windows ->Workspace Once past this message none of the panels load.

View 3 Replies

Flex :: Maximizing Panel - Make The Map Within Panel Growing Synchronizely?

Mar 6, 2010

I have a map in a panel.When maximizing the panel,the map remain the smaller size.How to make the map growing synchronizely with the Panel? When maximizing the Panel,I added Resize Effects.How to apply Resize effects on the Map when the extent of the map changing? It seems to me that I should dispatch extentChange event when maximizing the panel.

View 1 Replies

Flex :: Controls In Spark Panel Still Show When Outside Of Panel Size?

Mar 24, 2011

I discovered this while doing some programmatic panel resizing:Components in a spark Panel will still be visible when their location is outside the physical Panel boundaries. This does not happen with the mx Panel.unning Flex 4.1 on Windows 7I tried putting mx and spark controls in the spark Panel, and they both appear outside of the boundaries. Note this doesn't happen with the mx Panel. What am I missing to make the spark behave like the mxSample Code:

<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[code].....

View 1 Replies

Flex :: Popup - Dock A Normal Panel To A Pop Up Panel?

Nov 14, 2009

I want to create a panel docking to a pop up panel in my flex app, like Winamp's playlist window can dock to main window. but I didn't find any useful on docking in flex

I've traced the PopUpManager, but I didn't find any available interfaces or events about popup window's moving, I think it's design shouldn't be so bad.

View 2 Replies

ActionScript 3.0 :: Get The Output Panel In Flash Or The Console Panel?

Jun 26, 2009

Does anyone knows of a way to get the output panel in flash or the console panel in flex builder or flash builder, to format the "traces" with html or any thing else? for example:

trace( <b>brett</b> ); and to get that to appear in bold in the console window or the output window?

View 0 Replies

ActionScript 3.0 :: Carriage Returns In XML Attributes?

Feb 19, 2009

My XML looks like this...

<feature title="This is my /n features title"/>

I don't have access to change the schema.

In Flash I load the text content of the title attribute into a text field, problem is -- the prints instead of operating as a carriage return (new line).

Again, no access to the XML so changing the TextField to htmlText and adding a <br/> tag wont work.

View 2 Replies

ActionScript 3.0 :: Cannot Get The Carriage Returns And Tabs Stripped From XML

Dec 22, 2009

why i cannot get the carriage returns and tabs stripped from my XML. I guess the only drawback at this point is that i cannot form my xml file nicely and am stuck placing all my node text on one line.

So far here is what i have tried without any luck;

ActionScript Code:
var subXml:XML  = new XML();
subXml.ignoreWhitespace = true;
subXml = new XML(e.target.data);

[Code].....

I am otherwise at a loss as to why it's leaving the tabs returns etc. in my textFields when i populate them with the node data.

View 2 Replies

Flex :: Disable Carriage Returns Within An Editable TextArea?

Aug 2, 2011

I am simply wanting to stop a user entering carriage returns in a TextArea. I have been experimenting with the 'restrict' property in the TextArea but cant seem to work it out.I have the following code:

<mx:Canvas id="cvs1" label="Panel 1" width="100%" height="100%" creationComplete"addEvtListnerOnPlaceText()" backgroundColor="#FFFFFF">
<mx:TextArea id="txtP1T1" x="10" y="176" text="{placeName}" width="210" textAlign="center" color="#DC0000" restrict="this is where I need some help"/>
</mx:Canvas>

I've now managed to get something working:

private function addEvtListnerOnPlaceText():void{
txtP1T1.addEventListener(KeyboardEvent.KEY_DOWN, onKeyEventDown);
txtP1T1.addEventListener(KeyboardEvent.KEY_UP, onKeyEventUp);

[code]....

The only issue now is that if you hold return down, it clears the first carriage return and then keeps adding as long as you hold it down. I need a way to stop this happening without just losing focus on the text area.

View 1 Replies

ActionScript 3.0 :: SelectionActivePosition Doesn't Recognize Carriage Returns?

Jun 4, 2010

I've got an app where I'm grabbing the currently highlighted text from the user in a RichEditableText block and I've noticed that when the user highlights a selection after a carriage return that selectionActivePosition and selectionAnchorPosition return values that don't count the carriage return, even though when I slice the corresponding text with the retrieved values, it does take the carriage return into account and therefore returns a value shifted one character to the left for each carriage return appearing earlier in the text.

View 1 Replies

ActionScript 2.0 :: Restricting Carriage Returns In Text Input Fields?

Aug 23, 2009

it's possible to restrict hard returns in text input fields? I've tried something like this:my_txt.restrict="^u0013", and a bunch of variations thereof, but nothing seems to keep the Enter key from doing it's thing. Second best would be to traverse through a string a user has entered and replace hard returns with a space or dash, but again I've had no luck looking for or . I've tried entering text and hard returns into a dynamic textfield set to input, but when I try this:

var n:Number = my_txt.indexOf("
")...
trace("n: "+n) //traces "n: -1"

View 7 Replies

ActionScript 3.0 :: Roll Over = Show Panel, Roll Out = Hide Panel?

Mar 3, 2011

I have basic movie clips, On roll over, show arrows [NEXT, PREVIOUS] on movie clip [they then show other images inside movie clips]I can show arrows on roll over.But when i roll over the arrows the main ROLLOUT function gets called, the arrows hide. I've tried several flagging methods and have resulted in using a larger invisible border around the clip, rolling over that hides them.

View 1 Replies

Can Not Access Admin Console

Aug 7, 2010

I did a standard install of fms on a fedora 12 dedicated server yet I can not access the Admin Console via http[code]...

View 4 Replies

ActionScript 3.0 :: Dynamic Content With Admin Interface?

Mar 24, 2009

I need an example source of something like this:

The flash reads the XML file, to create the dynamic content (like a picture gallery) The php creates the XML, and it has a user interface where we can upload pictures.

View 1 Replies

Media Server :: Admin Can't Login In Console?

Feb 17, 2009

i can't login in admin console, fms 3.5, linux ES5

[URL](it prompts incorrect id/pwd after login)

I can do it in the server, localhost, successfully!

server add: 192.168.1.44 or 192.168.1.44:1111 or
192.168.1.44:1112
id: mint
pd: video123

[Code].....

View 2 Replies

Media Server :: Vmware, Fms 3.5 Only Accessable With Admin And Not Swf?

Jan 12, 2010

Here is what I have done.I downloaded and installed FMS 3.5 (latest) on a virtual machine running in vmware on my iMac. The virutal machine runs Ubuntu 8.04 and has IP-number 192.168.219.130. Installed and completed I moved the "Legend.flv" file found on the "Beginners guide to streaming..." to my newly installed FMS /opt/adobe/fms/applications/vod/mediaI tested the fms by connecting with my iMac using the admin interface (copied from /opt/adobe/fms/tools/...) and logged in using the following credentials:Server Name: Server 1Server Address: 192.168.219.130Username: *********Password: **********The admin interface connected and all seemd to be just fine.I fired up my SWF made in CS4 (attached file). Basically it is an empty stage with a FLVPlayback component dragged on to the stage. the component has 3 changes made:skin: SkinUnderAllNoFullNoCaption.swfskinBackground: #009933source: rmtp://192.168.219.130/vod/Legend At this stage I only get the green bar with the loading stripes in the progress bar. I.e. the video never starts. If I check the admin tool and the log tabs It seems that no attempts to connect has been made.

View 2 Replies

Media Server :: Connecting To The Admin Console?

Jan 15, 2011

I installed FMS 4 on my notebook and I was able to access the console without trouble. I used localhost for the server address. When I installed it on a remote server (Windows 2008), I can't get in. I tried the same thing. I opened it from the file system [URL] and I tried localhost but it didn't work. I've tried other values

[URL]
 
One problem could be that I installed Apache but there is already a IIS server using the port 80. When I look in the service panel, FMSApache says it is starting but not started.

View 1 Replies

Media Server :: Configure SSL Just For Admin Console

Apr 11, 2011

Anybody know how to configure SSL just for admin console acccess ?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved