Java :: Component For Displaying (>25MB) Text File In FLEX

Feb 6, 2012

Flex front-end using AMF to Java back. Trying to read, in real-time, a file that is being written to. For example, a log. I'm using Java's RandomAccessFile class to read the "new" lines of the file and send them back to the UI as a byte array along with the byte offset to start reading from next time. Using an mx:List to display all lines of the text file. The problem I'm running into, is Flex, or Flash Player, running out of memory on mildly large files, >25MB. Is there any preferred method of displaying large amounts of text data in Flex that I'm missing? Or does Flex/Flash just handle this poorly and I'm basically screwed?

View 2 Replies


Similar Posts:


Java :: Flex - Max Upload File Size For Java Using Remote Object (BlazDS)?

Jul 16, 2010

I tried with flex and java in the backend. In this, I am able to upload files till 100 MB using remote object (blazeDs) where we will read the file as byte array and send it to the java method. If the file size exceeds after that, then I get the run time error in IE.

View 1 Replies

Java :: Flex - Unable To Send MIDI File Name To Java To Playback Music?

Oct 27, 2010

I could play MIDI file where "filename" is a String type with "asd.mid" value. However, I tried to sent AIR's nativeprocess command to Java, it shown "could not read" error.

[Code]...

View 1 Replies

Java :: Flex - Create .swf In Java By Using 'ant' File & .mxml?

Apr 11, 2012

I am newer with flex technology.I am creating a chart using ant file & .mxml in eclipse my 'ant' file executes properly but it gives following error when i opens a .swf file which is created auomatically:

Flex Error #1002: Flash Player 9.0.115 and above is required to support signed RSLs. Problem occurred when trying to load the RSL

[Code]...

View 1 Replies

Displaying Text As HTML In The UIscrollbar Component

Sep 9, 2009

I have a window on my Flash stage that has some scrollable copy in it.  The problem is, I can't seem to have any formatting for the text ... if I select a word or two to make bold, it all turns bold.  I gather I need to use the "Display Text as HTML" checkbox and then paste in some HTML formatted text but this doesn't seem to work.  I searched this forum and found that others were designating "htmlText" in Actionscript instead of just "text" ... that didn't work either.  I probably just did it wrong, or maybe it's becuase I'm using the UI component "UIscrollBar" for it's scrolling of the text.

Is there anything else I need to do to be able to format some text with strong tags and maybe some href links?
 
I have my properties inspector with the following check marks:

Display as HTML
Multiline
Dynamic Text
selectable

View 1 Replies

ActionScript 2.0 :: Text Not Displaying On TextInput Component In MovieClip?

Oct 27, 2010

how to set a text in a TextInput which is placed inside Movieclip. when ever i set a text its not display on it.I have a MoveClip which contain a TextInput Component. this TextInput have name "letter". when the Application runs it dynamical add the MovieClip like

[AS2] Code
this.timeline.attachMovie("Key_MC2","key"+1,1);
after adding the movieClip i tried to set a Text

[code].....

View 2 Replies

ActionScript 2.0 :: Text Not Displaying On TextInput Component In MovieClip

Oct 28, 2010

Dear Friends. Please tell me how to set a text in a TextInput which is placed inside Movieclip. when ever i set a text its not display on it. I have a MoveClip which contain a TextInput Component. this TextInput have name "letter". when the Application runs it dynamical add the MovieClip like [AS2] Code this.timeline.attachMovie("Key_MC2","key"+1,1); after adding the movieClip i tried to set a Text [AS2] Code this.timeline["key"+1].letter.text = "Some Text"; So nothing is displayed on TextInput.

View 1 Replies

Flex :: Displaying One Component On The Top Of Other?

Jul 22, 2010

How can I display one component on the top of another one in flex without explicitly mentioning x-axis & y-axis?

View 2 Replies

ActionScript 3.0 :: Flex Displaying One Component After Another?

Jan 28, 2009

This is probably a very easy question but i dont really have an answer for it... what i want to do is show one full-size element after another. Currently im using a VBox with 2 elements inside, but it just divides itself into half and adds sliders onto both elements. What i want is to show both elements in their full size and for the VBox to add a slider if necessary.

View 9 Replies

Flex :: Displaying Branched XML On A Tree Component?

Apr 13, 2011

i have a namespaced Xml structure :

<rootlevel xmlns="http://www.wigo.org/simo"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.wigo.org/wigo ./schemas/lexicon.xsd">
<name>simulation</name>

[Code].....

now, i have a labelFunction that passes in the xml..as an object but when i ran the programme, the tree view has each node, name, num_vars and variable as branches but the content in each of them was null and blank.

how can i properly display the namespaced XML on a tree view such that it shows every branches and elements in each branch?

private function treeLabel(item:Object):String{
var label:String = item.localName();
return label;
}

View 1 Replies

Java :: Embed A Flex Component In A Pure Android Application?

Sep 7, 2010

I know it is possible to develop a full flex application using AIR for android but what I need is to embed a flex component into an already existing classic java android application.

I found some flash players in java but they all either require a JFrame or include of specific windows dlls.

View 2 Replies

ActionScript 3.0 :: Text Field Not Displaying Text File Format?

Jul 10, 2009

I'm reading text from a text file and displaying it into a text field. The problem is when i read it doesn't display the text as it is in a text file. For ex - See below imageNow , as you can see, second line in the text file starts right where first line ends.But flash doesn't display it like that. I have hundreds of lines and in most cases flash spaces consumes less space then a text file. The font in both text field in Flash and notpad is to Arial so the font shouldn't be a problem.

View 8 Replies

ActionScript 2.0 :: Displaying Text From Txt File?

Mar 16, 2002

how can i display specific line of .txt file in a text field??

View 3 Replies

ActionScript 2.0 :: CS3 Displaying Text From .html File?

Nov 18, 2010

How would one go about diplaying text from the html file within which the swf movie is embedded?

Basically i have a rotating banner on a page (jquery isn't right for this one) and wish to have the text messages within the diferent slides of the animation load from the html page.

this is a requirement from upstairs for SEO reasons.

View 2 Replies

ActionScript 2.0 :: Displaying Text From An External .txt File?

Dec 15, 2011

ive been trying to build a small internet radio player and it works fine besides displaying what current song is playing to some dynamic text we have it set up to upload a plain .txt file to our website every time the song is changed it is displayed for example

Rick Astley - Never Gonna Give You Up

like i said plain text, this is the code i have that displays it, and it HALF works

Code:
myData = new LoadVars();
myData.onLoad = function() {
myText_txt.text = this;
};
myData.load("example.txt");

but the text displays with %20 for spaces and stuff at the end like so:

Rick%20Astley%20%2D%20Never%20Gonna%20Give%20You%2 0Up=&onLoad=%5Btype%20Function%5D

what am i doing wrong?

View 10 Replies

ActionScript 3.0 :: Displaying Random Text From External File?

Jul 11, 2010

I'm tring to import a text file and have a dynamic text field display a random line from that file (picture a quote-of-the-day type scenario). I've been able to import the file, but I have yet to find a way of displaying a random line from the file.

View 8 Replies

Xml :: Displaying Bidirectional Multiline Text From File In Flash?

Oct 26, 2009

I have been asked to add support to a xml based website. I have been looking into it and have realised that it is not going to be very straight forward. The text does have english phrases in when describing products being used.

After doing some research I have found that CS3 does not 'support' rtl text. I also read that CS4 has added support, is this worth looking into? I read that it was buggy.

I found FlarabySWF which does what I think I am after, but not for all the languages I need, and only at design time rather than runtime.

I also found Gchats TextBox 3.0.0 but this didn't seem to work.

I also found some solutions using CSS, but these didn't seem to work with multiline text. See this example. It also didn't work as the text I am trying to display is bi-directional ..

Actualy, importing Arabic text is not a problem, but dealing with bidirectional text of Arabic and English within the same line is a big one.

View 2 Replies

ActionScript 3.0 :: Dynamic Text From XML File Displaying Inconsistently

Jun 27, 2011

All of the text in my dynamic text fields displays inconsistently, that is, some of the character strokes are full color and others are pale. This is with white text on a black background. I'm loading all of my text from an XML file. The smaller the font the worse it looks. The text only looks consistent if I use 24 point or larger. I've embedded the fonts in each field. The problem seems to affect all fonts.

View 3 Replies

ActionScript 2.0 :: Displaying Text From XML File In Dynamic TextBox

Aug 22, 2007

I have a basic flash file with a button, when you hover over it, an object with dynamic text appears. Now I want text from an XML file to be pulled from it into my dynamic text box. This is what my code in my actionScript looks like so far...
Code:
function DisplayInfo(){
var title = items[i].firstChild;
var items = channel_xml.firstChild.firstChild.childNodes;
box.text1.text = title.firstChild.firstChild.nodeValue;
menu_md._visible = false;
box._visible = true;
[Code] .....
How to simply grab the info in the description tags and whack it in my dynamic text field?

View 3 Replies

IDE :: Loading Contents From Text File - Bold / Italics Not Displaying

Jan 31, 2009

I'm loading content from a text file into a text field in Flash. In that text file I have some simple html tags like <b>, <i>, and <img>. I'm setting the textfield as html text:
myTextField.htmlText = myContent
The img tags work fine, but for some reason the bold and italics are not displaying...the tags are being correctly stripped from the text, but there is no bold or italic text. I'm embedding all the characters I need, but do I need to somehow embed the bold/italics versions of those characters?

View 1 Replies

Java :: The "Modal" Function In Flex \ Don't Pause The Thread Of The Parent Component?

Jan 19, 2011

I'm beginner in Flex 4. I'm trying to pop up a Flex WindowTitle custom component, and after the user choose some values, the parent window must be refreshed.I'm showing the modal window, the user can't interact with other components, but the problem I detect is the execution of the program flows, even I choosing to show the Input window as modal, the next methods to refresh the page is called before the user close the modal page. I don't know if flex or ActionScript works different from Java, where I used to code. see the comments on the code example:

<fx:Script>
<![CDATA[
import mx.controls.Alert;

[code].....

View 1 Replies

Data Integration :: Dynamic Text Instance - Displaying Info From PHP File

Mar 10, 2008

I have a dynamic text instance in Flash named dynamic_txt and I want it to display information from a php file. What command allows me to do this? Here is the code:

PHP
<?php print "dynamo_txt=DYNAMIC"; ?>
ActionScript (2.0)
var my_lv:LoadVars = new LoadVars();
my_lv.onLoad = function(success:Boolean) {
if (success) {
//Here is Where I want the command that will allow Dynamo_TXT to display the String // From the PHP File
};
my_lv.load("cars.php");

View 2 Replies

Flex :: Upload Csv File To Java Class

Nov 17, 2009

How can i upload csv file to java class in flex ?

View 1 Replies

Java :: Binary Socket And Policy File In Flex

May 17, 2010

I'm trying to evaluate whether Flex can access binary sockets. Seems that there's a class calles Socket (flex.net package). The requirement is that Flex will connect to a server serving binary data. It will then subscribe to data and receive the feed which it will interpret and display as a chart. I've never worked with Flex, my experience lies with Java, so everything is new to me. So I'm trying to quickly set something simple up. The Java server expects the following:

DataInputStream in = .....
byte cmd = in.readByte();
int size = in.readByte();
byte[] buf = new byte[size];
in.readFully(buf);
[Code] .....

After that - EOFException happens on the server and that's it. So the question is, am I approaching whole streaming data issue wrong when it comes to Flex? Am I sending the policy file wrong? Unfortunately, I can't seem to find a good solid example of how to do it. It seems to me that Flex can do binary Client-Server application, but I personally lack some basic knowledge when doing it. I'm using Flex 3.5 in IntelliJ IDEA IDE.

View 1 Replies

Java :: Embed A Jar File Inside A Flex Application?

Jan 30, 2011

I have a great idea and I want to build a flex application around a .jar file. Is there a way I can go by embedding a jar file into the flex application?

View 1 Replies

Actionscript 3 :: Html Text Is Not Displaying In Flex?

Sep 2, 2010

I'm getting nothing with this:

mainAns.htmlText = '<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">The differen <B>is</B></FONT></P></TEXTFORMAT>';

Maybe it has something to do with the quotes? the text will be retrieved from a database.I dont see what I am doing wrong

I think it's the way I calculate the number of lines in the string... How would I calculate the amount of lines using rich text?

View 1 Replies

Java :: Java, BlazeDS And Config File For Application?

Nov 11, 2010

I'm programming Rich web applications with Flex and Java on Flex Builder 3 using blazeDS and SharedObjects.Now I need that my program will use configuration file.so, I need that my Java class will read it at the first time but the default path of java to read and write files is c:program filesFlex Builder 3 and not my application directory inside the tomcat webapps directory How can I read the config file from the java class without write the path hardcoded in the java?

View 1 Replies

Java :: Load A .properties File From A Client Using Adobe Flex?

Feb 28, 2011

Is it possible to load a .properties file from a client computer using adobe flex? I have a flex app that needs to access a server and multiple URLs but the URLs may change frequently. So I think modifying and loading the URLs from a .properties file would be the easiest way update the URLs

I was able to use florians suggestion and I've added the code below if anyone else is interested. I used the example here URLLoader.

public function URLLoaderDataFormatExample(event:Event):void
{
var request:URLRequest = new URLRequest("file:///c:/temp/prop.properties");
var variables:URLLoader = new URLLoader();

[Code]...

View 3 Replies

Java :: Accesing A File When Deploying In Tomcat A Flex Application?

May 22, 2011

I have two applications: a client in flex and a server in Java. When I deploying the application inside flex builder with the tomcat server inside as well, everything works fine. But now I'm trying to deploy in apache tomcat outside the flex/eclipse builder and I have a problem.I think the problem is with relative/absolute paths but I do not know how to resolve it.In my Java application I have to access a database and a get a file from it. I use a properties to set a path where I want to download that files like this:pacs.ruta=C:\resources\And then I need to access to that file so in use this code:fin = new FileInputStream(pacsRuta+""+f.getName());where f.getName() gives me the name of the file so I get the path of the file with the path I set in pacs.ruta and the files name.

I do not know why it does not work. I tried to put pacs.ruta=/resources/to associate with a folder in my application but It does not work.Could someone give me an advice? Do you think it is the problem? Because the whole application works fine deploying in a tomcat server outside the flex/eclipse builder but when this code is called the application does not work.

View 2 Replies

Java :: Flex - Display Tree Like View Of File System?

Mar 17, 2012

I need a view of file system like this.

[Code]....

View 2 Replies







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