I have an array of 48 MovieClips separated into 6 columns and 8 rows. I dont want the user to have to scroll down so I would like to separate this array into 3 pages with 18 on each page (the last page would only have 12) with arrows to go from page to page. How do I accomplish this?
I am trying to load long pieces of text from xml into flash. Then somehow splitting the text into blocks of say 50 characters. So if the text I was loading had 175 characters in it, the textField would show the first 50 chars, with a counter "page 1/4". Using foward and back buttons would load next/previous set of 50 characters.
I am trying to load long pieces of text from xml into flash. Then somehow splitting the text into blocks of say 50 characters. So if the text I was loading had 175 characters in it, the textField would show the first 50 chars, with a counter "page 1/4". Using foward and back buttons would load next/previous set of 50 characters.
i need to split a large text file into an array at line breaks so one array element = one line.i have tried the using "" in both match() and in RegExp but it doesnt work.i had the g and m flags on. tried the $ sign too.
I'm trying to use a string from a split command as the var name of a new array the string being split is spec0[1][400] where spec0 becomes the new array name after the split.How should i write this.....P.S. the ultimate goal is to take the string split it up and make a new array out of its split data......is this realistic?
PHP Code: trace(loader.data.spec0); var str:String = loader.data.spec0;
I have an array that looks like:PHP Code:"comp01" 50.0010.0020.003"comp02"50.0040.0050.006"comp03"50.0070.0080.009How to split (rearrange) this array into three columns? (for example):
Is it possible to split a string like "Lorem ispum dolor, sit amet. Howdy doody." into an array of words without commas and periods, in one operation?I've tried words:Array = startString.split(String.fromCharCode(32,44,46));i guess the reason my example doesn't work is because it searced for " ,." to split the string.
I have a question; is it possible to animate an array that contains a split string? I've added the string into a dynamically made textfield, and I'm trying to figure out how to have each letter appear one by one, creating the typing effect and have easing towards the end.
public class InfoPage extends AbstractPage { private var _info:TextField; [code].........
I have an external .txt file that contains data some variables with strings in them. I need to be able to tell if a string has a certain type of character in it. Like for example "no,yes"I want to detect the "," and split that string up at that point and assign the "no" and the "yes" to variables.Similarly if I have the string"1-100" or 1-2-3-4-5-6-7I want to detect the "-" and split that string up at that point and assign the "1" and the "100" to variables or 1-2-3-4-5 to variables
There's an array, lets called it arr1. There is a switch, that pushes argument to this array, but after the switch ends, I'm stuck at join("").split("");
var arr1 = []; switch (myString) { case "apple": { arr1.push("apple"); break; }}} arr1 = arr1.join("").split("");
I know is simple, but I never had experience with arrays in flash before, I just realized join("") was used to convert the Array to string, but isn't split reversing this?
Looking for a tutorial to make individual pages (jpg or gif) into swf pages so we can add links in an on-line flip book. I have flash, but have not learned as of yet.
I would like to know how to track my pages with google analytics to see which pages are getting the most clicks. My site is XML / Flash the menu is xml. Could I put the tracking code on each of the menu items in the xml file?
I have a string that contains a full name input, and I would like to spilt them into 2 parts and save them inside an array, first name and last name. How do I do it with string.split? My current code is myNameArray = str_adminInput.split(" "); This code only works if the names are : Jack Lee, June Poh. This code does not work if the names are: Lee Tok Kong, Tan Beng Seng.
I'm trying out a page-flip program that tells me to create the pages as jpegs within a folder named "pages" in the Library. When I try to run it, it tells me it can't find the jpegs. I can get it to work locally by including the full URL (i.e., "...My Documentsedinnerpartiesimagesp3-large.jpg), but I know this isn't embedded in the swf file.
I have created a website with one flash animation banner.The banner .swf has 5 menus. Each menu goes to different movieclips inside the .swf file. and at the same time i want to load the corresponding html file when i click the menu button and place the html content into the bottom area of the main html page without refreshing the html page.
I must be doing something wrong it is not working. In my map1.as I have
Code: public class Map1 extends Object3D{ //load skins for planets [embed(source="sunmap.jpg")] private var sunskin:BitmapFileMaterial; private var sun:Sphere; [Code] .....
I am using Away3D engine. I get no errors but I also just have a blank screen.
I would like to calculate the duration of time that span between 2 days. Example: Date: 1/1, Start at 11pm and the duration end for 3 hours. I would like to break the 3 hour apart for both days like the following: Date --- Duration Jan 1st ----- 1 hour Jan 2nd ----- 2 hours How to split the 3 hours time frame from Jan 1st (1hr) and the next day Jan 2nd (2hrs)?
further explanation: Basically, On day Jan 1st at 11pm run for 3 hrs, so the 3 hrs will span from Jan 1st to Jan 2nd. Giving Jan 1st 1hr (as Jan 1st start at 11pm [at night]) and to Jan 2nd 2hrs [in the morning]. So how to split the hours between the 2 days in code?
i've got function to get some results from a php file.The this is, inside that function ive got a loop to split the results and create a textarea for each result.this is what i've got
Hey flash gurus. I did a search and while I feel certain this has been covered (and am content to be flamed) I couldn't find the answer here on the boards so here goes...
I fumble/stumbled my way through making a web site for myself and I'm pretty happy with the results. I am sure I did some obscenely newbish things but it works and it looks good enough so I'm fine with it for now except...
It takes a good long time to load the web site which I believe is due to the fact that ALL the pages of the web site are mashed into a single SWF file. I would like - for a number of reasons - to break this into several different pages (not just for size but to make updates less painful).
building a php/swf project... somewhere in the code it downloads data (which aint XML but my own syntax of variables...) and splits them...
the code crashed on this line: ActionScript Code: (i in dat) dat[i] = dat[i].split("*");
dat is an array, so I'm creating a nested array here...now, I just happened to switch on "permit debugging" from publish settings... and it didn't crash anymore.scrap thatone: it's just randomly giving the error and working...
in local runtime debugging I got this error: TypeError: Error #1006: split is not a function.
can anyone plz explain me wtf is it with these idiotic error messages in cs4? (ok, thisone might make sense...if "split" actually wasn't a function... however the ones like "error: you have an error in your script" etc. are even cooler)