ActionScript 2.0 :: Display Phone Format Strings
Oct 6, 2005anyone got some methods to pass in a ten strin phone nober and have it come out as (320) 259-0539
View 1 Repliesanyone got some methods to pass in a ten strin phone nober and have it come out as (320) 259-0539
View 1 RepliesI was wondering if I have an array that is made up of strings. The array is updated with new strings as the user drags and drops objects. Is there a way that I can have the array of strings appear continuously on the stage as feedback?
View 8 RepliesI am trying to take and XML string and then display the numbers individually. Below is my Actionscript followed by my XML.
import fl.controls.*;
var digit01_xml:XML;
var xmlReq:URLRequest = new URLRequest("testRBS.xml");
var xmlLoader:URLLoader = new URLLoader();
function xmlLoaded(event:Event):void{
[Code] .....
found that code to display html format text to dynamic textfield in as3:
var url:String = "http://edeejay.dyndns.org:8000/currentsong?sid=1";
var loadit:URLLoader = new URLLoader();
loadit.addEventListener(Event.COMPLETE, completeHandler);
[code].....
I would like to format a number to display 00 instead of 0, and 01, 02...10, 11,
View 3 RepliesIs there are component in Flex where we can display the data in table format. [URL]..
I did not like the look and feel, any other components.
i am using the greensock xml parser to parse xml data in actionscript 2.0 i am using two xml files.. i want to display this data in a table format in rows and columns.. how should i do it.. i have to write code in as 2.0 only... i tried using html tags but since table tags don't work in flash so it did not work
View 1 RepliesI'm loading numbers from an external txt file which appear in my dynamic text field as "5" or "25" but I'd like to have a few "0"s in front there (so "0005" and "0025" for example).
View 1 RepliesCode:
var qnumber:uint = 000;
trace(qnumber); //0
How do I make this three zeroes, not just one zeroe?
I am trying to format my datagrid column to display the decimal value of the price of the item they have chosen to (2) decimal places. Currently the datagrid is displaying $10 instead of $10.00 & $10.4 for $10.40?
Code:
import mx.controls.*;
import fl.controls.dataGridClasses.*;
[code].....
I work on AS3 one week, and then take a break for a few weeks, then work on it a day, take a break, etc.. So I forget some of the basics, and need refreshers. I think I need to stop taking breaks.
Problem: I push multiple strings into an array, and some of the strings are the same.
Code:
var myArray = new Array();
myArray.push (Snivvle);
myArray.push (Kirupa);
myArray.push (Snivvle);
I want to find out which element positions "Snivvle" hogs up. We can see that it would be using element 0 and 2, and if we do an "indexOf" we would only get to see element 0, and doing a "lastIndexOf" we would only see element 2. How do I find out ALL of the element positions "Snivvle" is located in, so that it returns: element 0, element 2.
So we were going to make a website allowing users to upload video. The website is going to be in PHP/MySQL. Are there any converters out there available for PHP to convert a video from a given format to flash to display on the web page to play?
Basically we would have a file on the server in say .avi format, or quicktime format. How do I grab it from the server, convert it to flash and display it on the php page to play?
Also, does can I use the video capabilities of HTML5 with PHP to make any of this easier?
I have an mx:DateField in my Flex UI that has a formatString="dd.mm.yyyy" attached to it. However, the initial value for that field may not be in the format specified/defined for the DateField (due to legacy reasons). So, currently, if I just set that value (text) on the DateField, the field is shown empty. I think because it fails to accept the value in a format different than what's configured.
View 1 Replieshow to publish live video feed from webcam in h.264 format non VP6 format with FMS 3.5.2 without using Flash Media Live Encoder, and how to set all parametersto have a good quality and smooth video without interruption, i have a server with 50Mbit bandwidth output enough for a publisher and 10 clients meunderstand this thing's been months since I try but the quality ugly
View 1 RepliesI want to make a textinput where a person can type in a price. I used "restrict" to only allow numbers and decimal. But the person can type in several decimals and create numbers like 11.1.1.1 or 11...11 or 1.11111
i want to restrict the entry to only one use of a decimal and only two numbers after the decimal.
any other way to format a textinput to a currency format?
I want to format a number in indian format.
for example,
x= 123456 should be formatted as 1,23,456.
How can i do it in flex?
Is there any library in Action Script that be able to convert any video format to .FLV?
I've been looking for it with no success. I thought that as3 had functions for that purposes but not found.
I want to give the possibility that in my site, users can upload any video, so I need to convert it to a standard and compress it to a fixed resolution.
I've really been 'chomping-on-the-bit' to try some of the touch programming features of the next release of flash, but I haven't got a phone for it yet. Flash 10.1 doesn't come out for a little bit so I've been putting off doing any research on it. But I glanced through the fliers tonight and I'm seeing some REALLY good deals. So the big question is, which phone would be the best for a touch screen programmer. I'm not looking to dazzle my friends, but I am looking to have a piece of equipment that will suite my needs as a developer. I understand that the iPhone doesn't use Flash, so that one is definitely off of the list.
View 5 RepliesCan I use a preexisting Flash file for a Smart phone, even though the size is different? Or do I have to recreate the file? What is the best dimension to use?
View 4 RepliesI'm trying to get a webstageview to load a local html file. this code works perfectly on the emulator, but when i run it on my android device (running android 2.3), it does not work. it just creates a blank webstageview that never loads the local html file...the zoom function is intact so i know it's opening the webstageview, but i never see the content.[code]...
View 2 RepliesWell I started playing around with some coding for Android (because I want to make an App for my YouTube community [URL] and I got some pretty cool stuff working already but just now I bumped into this weird problem.I was trying out Auto Orientation (rotating the phone for portrait or landscape view). And in Flash the BG Movieclip is at 0,0 but on the phone its more like -20,-40...I also had a "similar" problem with a swipe tryout where in Flash the swipeable pages where completely filling the screen but on my phone I had a top and bottom white bar (flash's bg, so if i made this black it would be black on the phone also) of about 10-15 px...
View 6 RepliesWhat I want: an application that detects the calling phone number on a standard phone connectionLet's assume that the line has caller ID enabledI'm not sure where to start with this one!!Amongst other things, I need to take a standard phone line and route it through my PC some howThe end application developed will be in Flex - but first, I need to solve this part
View 1 RepliesI have bee trying to stream to mobile phones.. I have installed flash lite on the phone, I dont know what to do
View 1 RepliesThe function at the end needs to allow a person to go back in the data. I can go forward,but I cannot go back.
stop();var nameArray:Array = new Array();var countryArray:Array = new Array();var portraitArray:Array = new Array();var flagArray:Array = new Array();var jobtitleArray:Array = new Array();var contactArray:Array = new Array();
[Code]...
[URL]herein if the user put any word in the phone number field it will not accept the same. I want to know how they make it and restricted the phone number field in such a way.
View 3 RepliesI need some help with validating a phone number. I want to check if the length of the number is ten chars and if the first number is a "0" and the second number a "6".[code]This only checks if there is a "0" and a "6", but not if they are the first and second char in the string.
View 4 Repliesim trying to create a mobile phone in flash, so the user clicks the buttons and the numbers come up on screen. Im having trouble making it display the numbers i want, for referance ive used the code:
on (release) {
_root.screen = _root.screen*10 +1
}
on the button, and replaced the 1 where needed. It works so far, except for the 0, * and # buttons
I have series of data which is stored in Array
eg :
Code: dateArray:Array = [["user1","1-5-2007"],["user1","13-5-2007"],["user10","21-5-2007"]];
then I loop the array to search the data I want to return to another function...my problem is how to format the date value in array to become this format before I can make a comparison with this value....
5/21/2007--> this value got from this current date
so the problem is how to convert the value in array from this format
21-5-2007 to this 5/21/2007 for all the values....the data I load from dtbase actually that's why it store that kind of format....
Any experience of creating a keypad that acts like a mobile phone in text messsage mode eg to get the letter C you click the ABC button three times and everytime you click it the text field scrolls through each of the relevant letters.
View 2 RepliesI am attempting to simulate a mobile phone within a movie symbol. What I want to do is create a movieclip where teh user will be able to create a message in a SMS format.
I dont need to SMS to actually be sent but I would like the user to be able to "Simulate" sending a text message.
I have created a simple movieclip with 9 (1-9) buttons and a dynamic text (For the display). What code will go into each button?