Flex :: Paint Words Red In Chat Window

Dec 5, 2011

I'm trying to change the color of all 4-letter words in a spark.components.Label. It is a chat-like program, where user enters words into the TextInput field, presses ENTER and the lines are appended to the Label (or Text or TextArea or RichText - whatever is suitable here). I have prepared this simple test case below, it will run instantly in your Flash Build 4.6 and the code to find the words and their indices is already there. How to change the color of text parts programmatically (i.e. by ActionScript 3) and repeatedly.

Test.mxml:
<?xml version="1.0" encoding="utf-8"?>
<s:Application
xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
[Code] .....

I'm trying RichText + the code below as suggested by Georgi and see that the pattern replacement has worked (by looking at the trace() output), but get the error:
TypeError: Error #1034: Type Coercion failed: cannot convert "[object TextFlow][object TextFlow]" to flashx.textLayout.elements.TextFlow.

View 1 Replies


Similar Posts:


Save Chat Text From A Flash Window?

Nov 9, 2010

I am trying to save the text in the chat window from sky poker. A standard select all and copy then paste will only extract the text visible at the time. It is not possible to scroll and select all the text.It is possible to view all the chat box text that has taken place while you have the window open.I guess that what is happening is you are simply viewing what exists on the chat log of the server via the poker window.What I would like to do is either:

i) get the chat text (I expect this is only possible if it is saved on my pc)

ii) harvest the text as it happens.

View 1 Replies

ActionScript 2.0 :: Gettings Words From Database And Searching For Those Words In A Textfield?

Jan 31, 2010

so i search for keywords ofc, but...doing this isn't really my thing:input.text.indexOf("spam") != -1 && input.text.indexOf("more") ! -1 && ... etc
I'd like to make it some what like:input.text.indexOf(<database>) != -1

View 0 Replies

Java :: Best Language For Video Chat (similar To Chat Roulette) With MySQL

Jan 19, 2011

What would be the best language to use to write a script similar to chat roulette but interact with a MySQL database of users.

View 3 Replies

Android :: List Component Good For Chat Displaying Chat Data?

Mar 29, 2012

i want to create a chat app using flex 4.5 mobile project for android device. For the chat screen, i wanted it to look glossy and stylish. Hence i thought i would use the list component and disable the selection in it. I m able to add the chat messages into the list. But i doubt if large chat data might hinder the performance. Im using a collection and i ve binded it with the list. Whenever i receive a chat i update the collection and it gets displayed in the list. Can someone tell me if his could pose a performance problem as list component is not intended for this purpose.

View 1 Replies

Flex :: Developing A Paint Application In Adobe Flash Builder?

Dec 1, 2010

some good resource for getting started with Graphics API in adobe flash builder

View 3 Replies

Flash Chat Vs Other Kinds Of Chat

Jan 16, 2012

What is the best type of chat program for people to chat one on one?

1. Does flash chat impair SEO?
2. How would you compare the server load/speed of flash chat vs other types of chat, such as cometchat, ajax chat, of java chat?

View 3 Replies

Flex :: Convert Number Into Words

May 5, 2010

I am trying to convert an entry using a numeric stepper in flex into words to display in a textarea.i.e a user uses the stepper to enter "89" as a value and in the text area the words "Eighty nine" are displayed.After much searching i haven't found anything that helps - a few javascript functions but that is all.

View 1 Replies

Getting An API To Implement Yahoo Chat In Flex?

May 20, 2009

Is there an API to implement Yahoo chat in Flex? Or at least some calls?

View 3 Replies

Flex :: Dynamically Add Words Of Text To A Container?

Jun 3, 2010

I have a scenario where I want to dynamically add words of text to a container so that it forms a paragraph of text which is wrapped neatly according to the size of the parent container. Each text element will have differing formatting, and will have differing user interaction options. For example, imagine the text " has just spoken out about ". Each word will be added to the container one at a time, at run time. The username in this case would be bold, and if clicked on will trigger an event. Same with the news article. The rest of the text is just plain text which, when clicked on, would do nothing.

Now, I'm using Flex 3 so I don't have access to the fancy new text formatting tools. I've implemented a solution where the words are plotted onto a canvas, but this means that the words are wrapped at a particular y position (an arbitrary value I've chosen). When the container is resized, the words still wrap at that position which leaves lots of space.I thought about adding each text element to an Array Collection and using this as a datasource for a Tile List, but Tile Lists don't support variable column widths (in my limited knowledge) so each word would use the same amount of space which isn't ideal. how I can plot words onto a container so that I can retain formatting, events and word wrapping at paragraph level, even if the container is resized?

View 1 Replies

.net :: Flex : Simple Chat Application Using FluorineFX?

Jun 26, 2009

I'm trying to create a very simple chat application in Flex/.Net using FluorineFX but can't get it to work.

<mx:VBox
width="100%"
height="100%"
xmlns:mx="http://www.adobe.com/2006/mxml">

[code]...

It's compiling all fine, and when I try to send I don't get any errors, but also no result. No message is received. Am I on the right path? What's the logic behind the endpoint uri? What port should I use? Should I configurate Web.config? (beyond the flourinefx configs that enable RemotingService?) I don't get any response in the flourine.log.

View 2 Replies

Flash :: Create A Chat Room In Flex?

Apr 13, 2010

I want to implement a Chat room in Flex 3.

View 1 Replies

Flex :: Video Conference/web Chat Using Red5?

Sep 20, 2010

I have performance issues with my test web chat app - video playback is very slow on, around 1 frame per few seconds at 640x480, 15fps, quality: 90. Network usage is low (gigabit LAN), cpu's still have some headroom so it should be the software.

Quick description of my setup:red5 0.9.1; simple flash broadcast and subscribe derived from here [URL] and mr. accattato's videos; using oflaDemo on serverside.

Local image on the broadcaster is good.So far I guess flash broadcaster would be the most likely culprit, but here is my worst since I am new to flex. Red5 should not modify the stream I guess, and it doesn't make much sense for the subscriber to play only 1 frame per second.

View 1 Replies

Actionscript 3 :: Flex - Based Chat Application

Jan 21, 2011

I have been asked to develop a generic chat client which can be used as a widget(with fb,twitter) which works fine with all XMPP supported applications. I have decided to use flex along vit java. how the whole chat application works? Also which server to use?openfire or blaze DS?? what's the difference?

View 1 Replies

Flex :: Create Chat And Video Server?

Oct 4, 2011

I am trying to create a simple chat server. I have installed red5 server i need to know do i have to make a red5 server myself or all i have to do is connect flex with my red5 server and if so how.

View 1 Replies

Flash :: Flex Video/audio Chat For A Site?

Oct 7, 2010

Looking for a component which can be embedded inside my site (PHP, ASP.NET...whatever) and give a support for video chat. I'm not a flex developer and would like to use a component. There are some/many video chats available, like flashcoms, red5chat...but all of those are heavy(monolit) components.

What I would like to have on my site is just a small video showing output from my camera (me) and another video showing the other party...but those videos should be split, not in the same flash component, but separate (two different EMBED tags on my page).

Are there any components available to do that (of course with support from appropriate media server)? Are there any good guides on how to develop such a component?

View 1 Replies

Flex :: Develop A Video Chat Web Application In Java?

Apr 19, 2011

Currently we are in the design phase of an application that will allow two users to communicate with each other using chat and video (with audio), the application is a web application that currently is a java web app with Spring and hibernate, but we want to incorporate video and chat between two users and we are evaluating the options to developing it, so far we have two choices, either develop a Flex UI that leverages its video and chatting capabilities through Red5 or something like that and communicates with the Spring app using BlazeDS or a completely java based approach using (maybe) JMF and/or applets to achieve the video and chat interaction. The question is, which would be the most scalable approach to develop such an application?, what would be the approach that is the least intrusive from the end user perspective?

View 2 Replies

Flex Code Video Chat Room Can Use Rtmfp?

Jun 7, 2011

I have created a video chat room by FMS/Flex. what I need to do is:

If everybody in one chat room can use rtmfp, we go with rtmfp if anybody in the chat room disabled his rtmfp, we go with rtmp.

Now I need to create a logic to decide if everybody can use rtmfp between each other, Is there a good way to do so?

View 1 Replies

Flex :: Prevent Line Breaks Between Words And Punctuation In UITextField?

Aug 3, 2010

I am rendering html in a Flex 3.x UITextField. The problem I am facing now is that when punctuation is at the end of a word, it can sometimes be wrapped to the next line.

For example:

That which doesn't kill me makes me stronger ,so I became a developer.

This seems like a bug in the algorithm to me. Is there a workaround?

View 2 Replies

ActionScript 2.0 :: 'Flash Chat' Room To Chat With Flash Devleopers?

May 21, 2009

Does anyone know of a 'Flash Chat' room to chat with Flash Devleopers?

View 1 Replies

Flex :: Implement A Simple Chat Application In Adobe With Php As Back-end?

Mar 10, 2011

I am trying to implement a simple chat application in adobe flex 3 with php as back-end. I have found few frameworks on net, AMFPHP and WebOrb. But I see that both these frameworks do a polling to the server at regular intervals.

View 4 Replies

Flex :: Placing Popup Window In The Middle Of The Main Window

Mar 16, 2010

I'm trying to place a popup window (TitleWindow) in the middle of the main application window. how do i set the coordinates of my popup window to be of the main application window? i tried the localToGlobal function but with no luck, I just can't get the main window x and y.

View 3 Replies

Actionscript 3 :: Detect Clicks Outside Of A Window For A Multi-window AIR App In Flex?

Mar 13, 2011

So I have this AIR app coded in flex where I have several floating native windows and what I want is to detect when a user clicks outside of a window so that I can close it. (I don't want to use the PopupManager Class and would want to use the native windows).

My question is, is there a way to detect a click outside of a spark window, or alternativley is there some root container/object which is a parent to all the native windows so that a click inside any native window would bubble up to it? (Apparently the stage object of the root windowed application is not that object since each window is not a child of the stage for the root application).

View 1 Replies

Flex :: Reload Main Window's Variable In Popup Window?

Aug 12, 2011

How to access main window's variable from popup window.

I create a popup window in the main window, and pass variable "content" to this popup window as following [code]...

View 2 Replies

Media Server :: Developing Text Chat App With Flex 4.6 - Count How Many Users In

Mar 15, 2012

I'm developing Text Chat App with FMS 4, Flex 4.6. I want to count how many users in. I've searched enough. And I made some codes. Server Side Code(main.asc)

[Code]...

View 1 Replies

Flex :: Netstream Video Chat Client Freezes And Crashes After Time?

Oct 11, 2010

So I built a videochat client that uses the adobe stratus protocol. Its very simple and just connects two users. However, after about a minute of video chatting the clients freeze and the browser crashes.what might have caused this? Is there some sort of cache that I need to clear every so often or a possible memory leak? I am not sure where to start

View 1 Replies

Flex :: Fms - Make A Single Connection To Handle Video, Audio And Chat?

Apr 12, 2011

I'm developing an application and i want to make one single connection for video(netstream) and chat(sharedObject).I have one connection for each but i have limited connection available in the server so i need to make a single connection to handle the video net stream and chat sharedObject.I use this urls to connect:

private var serverWebcamURL:String = "rtmp://myserverIP/live";
private var serverChatURL:String = "rtmp://myserverIP/multicast/chat";

View 2 Replies

Flex :: Start Creating Voice Chat Application Using Adobe And Red5?

May 5, 2011

I will create a voice chat application with Adobe Flex and I want use the opensource Red5 as a server.But, I confuse how to start it. it's possible just use NetStream and NetConnection?

View 1 Replies

Flex :: Resizing The Restore-window Of A Maximized Window

Aug 11, 2009

I have a window, the window I programmatically change the size of the window depending on the current view it is displaying. The user cannot resize the window them self, but they can maximize the window.

The problem is if the view is changed while it is maximized, the maximized window size changes, I do not want this, I want it to only change the size of the non-maximized window.

My first thought is to just check if the window is maximized, and if so do not resize it...but the issue there is then when it is restored at a different view then when it was maximized it will not restore to the new size it should be.

View 2 Replies

Actionscript 3 :: Make A Simple Video Chat Using Flex Framework And Red5 Server

Mar 26, 2012

I'm trying to make a simple video chat using Flex framework and red5 server. It's an application with 2 video displays. With connection to the server more or less figured out. However, I do not understand how to transfer user1 stream to user2.
Here is functions i use to transfer webcam image to the server and to get the stream.

[code]...

View 1 Replies







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