Can You Split With ?
Hi guys,
I know I'm missing something simple here but I can't figure it out. Basically what I'm trying to do is:
var filePath = "C:Documents and SettingsKrishnaDesktopchooseFiles.jpg";
_global.myName_array = filePath.split("\");
trace(_global.myName_array);
But when I do that I get:
C:,ocuments and Settings,rishna,esktop,hooseFiles.jpg
So its lopping off the first letter of each split.
Anybody have any ideas how to do this correctly?
Thanks
Adobe > ActionScript 1 and 2
Posted on: 06/04/2008 12:12:52 PM
View Complete Forum Thread with Replies
Sponsored Links:
Split A Number Using Split?
is it possible for flash to identify a number and split it from the pack?
i am compiling a search using switch but for one section it is the same place over and over for instance ab1, ab2, ab3, ab4 points to one place & de1,de2,de3 points to another?
would just make it a lot quicker in the search if it could strip the number of and look up ab or de for example?
thanks
Dan
View Replies !
View Related
A Better Split?
Just in case anyone may be interested, I just tried writing my own split function because the built in one is so slow and while it's not dramatically better it is noticeably faster. All you need to do is include the following code somewhere:
String.prototype.mySplit = MY_SPLIT;
function MY_SPLIT(array, delimiter)
{
var i = this.indexOf(delimiter);
if(i != -1)
{
array.push(this.substring(0,i));
this.substring(i+1,this.length).mySplit(array,deli miter);
}else
{
array.push(this);
}
}
then Bob's you uncle you can use String.mySplit(array, delimiter).
Possibly of use to someone out there. Has anyone else improved upon any other built in functions?
View Replies !
View Related
Split Help
ok i have a few questions. first off, is there ANY possible way to make the flash player look in a directory and get all the file names of files in that folder? second, is there anyway to split a text feild by returns eg
text 1= "blha
fg
g
fgfs"
i want
n1="blha"
n2="fg
so on
??????
and is there any way to then find out how many splits have been made? thanks for answers to any of these
View Replies !
View Related
How To Split ?
OK. When a user enters a variable like say
var1 bdate = "24";
I want to split the variable into "2" and "4" so that I
can add the two.
Merry Christmas And A Happy New Year !
View Replies !
View Related
Can Someone Tell Me How To Split This, Please?
I have this variable being pulled in to flash, I can't change the structure because it is part of a bigger equation being created with cold fusion.
2003-02-01 00:00:00,329, 1, 1,
i need to split it up so i can call year=2003, month=02, day=01, span=329, dow=1, wom=1
can someone please help me? i am not sure where to start. also, it would be best if it can be published as flash 5. thanks so much, i appreciate al your help, and when i finally get this thing running, i am going to post it as a tutorial, so anyone else that is confused may be helped by it.
View Replies !
View Related
Split Var
can someone help me with this??
I have variable "newsText"
"newsText" = a row of numbers like this:
2
3
4
5
Now I want to split this row of numbers(so that they will look like this 2,3,4,5) i tried it this way:
Code:
str_arr = newsText.split("
");
This works well when i'm using it offline but the fact is that the variable "a" is comming from a database. Therefor this script aint working.
Here is de webpage where I'm trying it..
http://www.nearestneighbour.net
The first row of numbers is "newsText"
The second row is "str_arr" already gone through the script i added above.
I added the files I'm working on hope someone can help me.
View Replies !
View Related
.split
I am going through Colin Moocks actionscripting for Flash MX book and have noticed that several times he has used "[]" outside of arrays. I'm not sure what they mean or what they do, but here is an example.
var fullName = "Steven Sid Mumby";
var names = fullName.split(" ");
firstName = names[0];
middleName = names[1];
lastName = names[2];
Can anyone help me out?
View Replies !
View Related
Using Split
I use this code:
loadVariablesNum("names&files.txt", 0);
var parseme = (names).split(" ");
trace(parseme[0]);
trace(parseme[1]);
trace(parseme[2]);
trace(parseme[3]);
if i use debug mode, it displays the 4 variables just fine, but if i use normal mode it doesnt for some reason, just displays undefined. any help greatly appreciated thank you.
View Replies !
View Related
Need Some Help Using Split()
Right ok i have a submit form for a motocross results db table.
code:
for (i=0; i<count; i++) {
drvPos = this.bobby["cwrRes"+i].drvPos;
drvNo = this.bobby["cwrRes"+i].drvNo;
drvDrv = this.bobby["cwrRes"+i].drvDrv;
drvLaps = this.bobby["cwrRes"+i].drvLaps;
drvTi = this.bobby["cwrRes"+i].drvTi;
drvGap = this.bobby["cwrRes"+i].drvGap;
drvMph = this.bobby["cwrRes"+i].drvMph;
drvFast = this.bobby["cwrRes"+i].drvFast;
res += ".::."+drvPos+"|"+drvNo+"|"+drvDrv+"|"+drvLaps+"|" +drvTi+"|"+drvGap+"|"+drvMph+"|"+drvFast;
}
res output "=.::.1|4|blahname|5|10:58|0.500|45|1.250.::.2|8|a nothername|5|11:45|1.326|40|1.453.::.3|10|notme|5| 11:67|0.056|40|1.550"
So you can see how the information is going to be stored in the db
The problem starts when i try to split it back down.
code:
//this part works!
resArr = res.split(".::.");
// output: 1|4|blahname|5|10:58|0.500|45|1.250
// 2|8|anothername|5|11:45|1.326|40|1.453
// 3|10|notme|5|11:67|0.056|40|1.550
for (k=1; k<resArr.length; k++) {
trace("res1="+resArr[k]);
splitRes2();
}
}
//Function wont start
function splitRes2() {
resArr2 = resArr[k].split("|");
for (j=0; j<resArr2; j++) {
trace("res2="+resArr2[j]);
}
}
What am i missing?
cheers
Paul
View Replies !
View Related
Odd Split That I Can't Get Rid Of.....agh
I'm working on a website where opaque screens open and close revealing pictures. What's really odd is that no matter how tight I have the curtains close, you can still see either a slight split or overlap. I've tried doing it with the stage at a 2000% magnification and it still happens.
Look at www.studiosixdesign.com/mercier (at the portfolio to see what I'm talking about)
Any pointers?
Thanks!
View Replies !
View Related
URL And Split
How do i get the URL of the page my flash doc is on? Not the URL of the doc it self but of the page its embedded on.
Also, how do i get a particular section of a string? Say i had the string:"Name:Bob;ID:0912;Section:66" How would i get just the number "0912" if i know that "ID:" and ";" will always be around it?
thanks
View Replies !
View Related
.split
I am inputting variables from a text file and trying to split them and place them in a variable
The text file is as such
&bus1=1|5|red|7&
ActionScript Code:
loadVariables("admap.txt", this);
var dot_3:Array=bus1.split("|",4);
however it doesn't split the text file into an array...
any ideas?
View Replies !
View Related
Need Some Help Using Split()
Right ok i have a submit form for a motocross results db table.
ActionScript Code:
for (i=0; i<count; i++) {
drvPos = this.bobby["cwrRes"+i].drvPos;
drvNo = this.bobby["cwrRes"+i].drvNo;
drvDrv = this.bobby["cwrRes"+i].drvDrv;
drvLaps = this.bobby["cwrRes"+i].drvLaps;
drvTi = this.bobby["cwrRes"+i].drvTi;
drvGap = this.bobby["cwrRes"+i].drvGap;
drvMph = this.bobby["cwrRes"+i].drvMph;
drvFast = this.bobby["cwrRes"+i].drvFast;
res += ".::."+drvPos+"|"+drvNo+"|"+drvDrv+"|"+drvLaps+"|"+drvTi+"|"+drvGap+"|"+drvMph+"|"+drvFast;
}
res output "=.::.1|4|blahname|5|10:58|0.500|45|1.250.::.2|8|a nothername|5|11:45|1.326|40|1.453.::.3|10|notme|5| 11:67|0.056|40|1.550"
So you can see how the information is going to be stored in the db
The problem starts when i try to split it back down.
ActionScript Code:
//this part works!
resArr = res.split(".::.");
// output: 1|4|blahname|5|10:58|0.500|45|1.250
// 2|8|anothername|5|11:45|1.326|40|1.453
// 3|10|notme|5|11:67|0.056|40|1.550
for (k=1; k<resArr.length; k++) {
trace("res1="+resArr[k]);
splitRes2();
}
}
//Function wont start
function splitRes2() {
resArr2 = resArr[k].split("|");
for (j=0; j<resArr2; j++) {
trace("res2="+resArr2[j]);
}
}
What am i missing?
cheers
Paul
View Replies !
View Related
Can Someone Tell Me How To Split This, Please?
I have this variable being pulled in to flash, I can't change the structure because it is part of a bigger equation being created with cold fusion.
2003-02-01 00:00:00,329, 1, 1,
i need to split it up so i can call year=2003, month=02, day=01, span=329, dow=1, wom=1
can someone please help me? i am not sure where to start. also, it would be best if it can be published as flash 5. thanks so much, i appreciate al your help, and when i finally get this thing running, i am going to post it as a tutorial, so anyone else that is confused may be helped by it.
View Replies !
View Related
String.split
If the delimiter is an EMPTY STRING, each character in the String object becomes an element in the array.
test = new String("thisisdrivingmecrazy");
testArray = new Array()
testArray = test.split("");
checkTest0 = testArray[0];
checkTest7 = testArray[7];
According to the description
checkTest0 should = "t"
checkTest7 should = "d"
however
checkTest0 = "thisisdrivingmecrazy"
checkTest7 = jack squat
Am I high on ludes or is there something else that represents an empty string?
There are other ways to do this but the fact that the split is not functioning as advertized really pees me off
View Replies !
View Related
String.split() Help
Hello all!
Ok this should be really easy and I am having major problems and would really like to shoot someone right about now.
I am loading in vars from a text file. the contents of the file are this:
stored=l1234,l1234,l3453
then in the first frame I have this:
loadVariables("pass/ps.txt",0)
list=stored.split(",")
trace(list)
Now when the trace comes back there is nothing in it. I have tried to trace just the "stored" variable but that comes back with nothing.. like its not there. If I go into the debugger it is listed as a var. What is going on?
Thanks in advance for helping me find my stupid mistake:-)
Sum
tribaldynamics@hotmail.com
View Replies !
View Related
Using Split-->question
Can't figuire out what I'm doing wrong here.. I'm passing a variable..splitting it. and arrange. The variable is being passed but can't see Larry! Can you see anything wrong with the function?
Please Help.
_________________________________________:confused :
function pepFun (){
var pep= new Array;
pep= _root.current_inventory.split(",");
trace(pep);
for (var i = 0; i < pep.length; i++) {
if (pep[i] == "larry_v"){
_root.larry._visible = true;
}else{
_root.larry._visible = false;
}
}
[Edited by Pixal_Squirrel on 07-22-2002 at 04:49 PM]
View Replies !
View Related
Substring And Split
I am trying to pass 2 values into a flash movie from the querystring. I've been successfull so far with the following code:
------
myURL = this._url;
myPos1 = myURL.lastIndexOf("?");
whichMenu = myURL.substring(myPos1+1, myURL.length);
myText = whichMenu; <-- just to display result
---
The result I get is:
m=1&s=1
which is perfect cause that means it works! woahho! hehe. What I need to do now is to assign the value of m to a variable in flash and the same thing for the value of s.
I've been rading tutorials but I just cant figure it out. Can someone help please?
Thanks!
View Replies !
View Related
String.split(
Can a codehead better than mine tell me why?
In Flash 5, you can't create an array out of a string with a null delimiter (i.e., string.split("")
Code:
theString = "3055552121";
formatMeProperly = theString.split("");
// yeilds:
formatMeProperly = [object #2, class 'Array'] [
0:"3055552121"
]
but the exact same code in Flash MX, with the null delimiter yields:
Code:
theString = "3055552121";
formatMeProperly = theString.split("");
// yeilds:
formatMeProperly = [object #2, class 'Array'] [
0:"3",
1:"0",
2:"5",
3:"5",
4:"5",
5:"5",
6:"2",
7:"1",
8:"2",
9:"1"
]
Does anyone have a good answer for this? I found a way around it, but, It's kinda hokey.
View Replies !
View Related
String.split
I don't get this. Reference says, and I quote"Returns;An array containing the substrings of myString." What is the array called? How do I access it?
This is what I tried.
temp = targetPath(this);
tempArray = new Array(temp.split("."));
trace(tempArray.length);
I was hoping I could find out how far away an MC was from the _root with the length of the tempArray. If anyone has some insight it would be appreciated.
View Replies !
View Related
I Wanna Split
I want to split a variable using the split command (I think) but am not sure how to use it. if the value of myVariable is "colour=red" how can i take everything after the seventh character so i just end up with "red"?
please help if you can...
much appreciated, john
View Replies !
View Related
Split Command
please, how can i use the split command, to break a string into a new array of characters, using the string.split(?) sintax when ? is a empty characters sequence?¿?¿ thanks anyway
View Replies !
View Related
Using .split() Function?
i want to do something like this :
arr=["x:[[10,11],[12,31]],y:[3,4]"]
can i in any way work with split to read this kind of array and to read all if it's elements?or maybe any other idea?
thnaks in advance
Peleg
View Replies !
View Related
Split Variables
I need help understanding how flash can take a variable from a ASP page such as:
&Variable=one,teo,three,four,five,end
Now the variable does not actually equal one, two, three, etc... BUT each variable does have "end" as the last value.
What I need to do is when Flash calls the variable from the ASP page it appears in Flash as shown above, but I need to split that variable into seperate variables like Variable[1], Variable[2], etc... but there's no telling how many variable[i] the main variable will be turned into. If you don't clearly understand let me know and I'll try to make it clearer.
Thanks in advance.
View Replies !
View Related
Split Screen?
I want to do a diagonal split screen, but I can't just fake one by drawing a line from the top right corner to the bottom left corner.
On the top frame I am using a symbol of a looping man walking and the same thing on the bottom, but they are too tall because the go into both "screens." How can I make a REAL split screen that won't have this problem?
I've seen this question come up before in the Search but it's never been answered, so hopefully someone can answer this time.
View Replies !
View Related
Array Split
Hi forum,
my asking is very simple ... i would like to put some delimiter within my array that provide data for comboBox component
i have tried something like this:
code: var actorsArray:Array = actorsData.split(rowdelimiter); //delimiter is ";" and it push records in new row
for (z=0; z<actorsArray.length; ++z){
actorsArray = actorsArray[z].split(",");
}
actorsArray.unshift("default value for combo");
pickLetter2_cmb.removeAll();
pickLetter2_cmb.dataProvider = actorsArray;
// select first item by default
pickLetter2_cmb.selectedIndex = 0;
but it doesn't work but rather give me result in combo as they are i.e.
row1 = name1, name2
row2 = name1, name2
etc.
Thanks in advance
View Replies !
View Related
Split Browser Help
can someone help me. I love the design of this site www.dstrict.com/z107 and how it works of the 2 browser screens. Does anyone know how this is done or if there is any fla. files on the net where i can use it?
View Replies !
View Related
[f8] Page To Split In 2
Hello, i am an animator of all kinds. Im not good with basic HTML. I use flash 8 to create my contents & my banner. The reason why im posting is because my banner on the top is a fully flash banner with a navigation. But since i dont want to use popups because it's not user friendly, i will need to spit the page into 2.
Because my english is bad here what i need:
As you can see here: http://www.micro-blue.net/san/SWB02.html
The page is split into 2 verticaly not horizontal and when i click my flash buttons the content side must change NOT the banner side.
How to do ? Help.
View Replies !
View Related
Split A Clip In Two
ello
I think I know what the answer to this will be, but here goes...
is there any way I can split a movie clip into two? So rather than say having two instances of it and masking them so that different halves show for the different instances, have just one instance but create a split in it so the halves can be separated?
cheers
View Replies !
View Related
[F8] .split() Problem
hi,
Im having a bit of bother with this one. I have a flash file which loads in vars from director. It then adds the values to a graph. The amounts from the string are inputed into text fields. the fields are named energy, waste etc. I want a textfield to output whichever sections that are over 5 saying "well done, you have excelled in water, energy...... I have got this working but am stuck on this bit: I am wanting to add an "and" before the last item, so it outputs as "well done you have excelled in water, waste and energy". Also if only one item is over 5 it wont add the "and". This probably doesnt make any sense, heres my code anyhow:
Code:
var summary_results = "2000,6,3,10,8,6";
var txtFields:Array = [Total,Energy,Waste,Water,Food,Transport];
var excelledItems:Array = [];
var theValues:Array = summary_results.split(",");
for(var i=1;i<theValues.length;i++){
theValues[i] = Number(theValues[i]);
txtFields[i].text = theValues[i];
if(theValues[i] >= 5){
theValues[i] == txtFields[i];
excelledItems.push(" " + txtFields[i]._name);
if(excelledItems.length > 1){
//add an "and" somehow....
}
}
}
//well done text
wellDone = "Well Done!
You have excelled in"+ excelledItems +". You know these Eco topics well!";
stop();
Any help would be appreciated as its doing my head in now. Cheers!
View Replies !
View Related
[F8] Help With .split Delimiters
Hi,
I am working with a string which has been imported from an XML file which contains double quotes in it. I need to use the split function to serperate out the data in the string between the double quotes to an array.
Here is the string...
<node label=" Specialized Bones B" ImageCount="1" />
Here is the script I am using which gives me an undefined when I trace it.
var charDelimiter = """;
var folder_array:Array = this.target.selectedNode.split(charDelimiter);
trace(folder_array[0]);
The charDelimiter variable is not working.
What am I doing wrong?
Also, where can I find a complete list of exceptable delimiters for flash?
Best regards
Toby
View Replies !
View Related
.split(); Problem
Hey everyone!!!
I have a small problem that i'n trying to solve for a long time without any succes.
I have this code:
var StringArray = MyTextField.text;
var SplitStringArray = StringArray.split(" ");
it works great but when I have the sign: "-" he take it and put it as one of the items in the array. so I guss I just need to tell him to split also where the string has "-" sign like I did with "space" but I need him to recognize them both at the same time. somthing like:
var SplitStringArray = StringArray.split(" " && " - ");
but it's not working. I guess the split action can't have more then one parameter?
any help will be great.
thank you all,
Oz.
View Replies !
View Related
ByteArray Split Up..
Hi,
I'm new to the forum. I am working with the computeSpectrum/readFloat stuff to get visualization. I want to segregate parts of the spectrum into separate spectrums (eg. lows, mids, highs ). I'm just trying get more control out of the spectrum.
How can I do this...
Does it have to do with the .position property?
Is it the readBytes( );
There doesn't seem to be much documentation on this as far as examples go.
View Replies !
View Related
Split (array)
Hello
I have a array with values, I want to split them. I have a quiz that generates answers... like this.. '1:2' (means 1 question, 2 answer)
No I want that if for example the answer of question 2 is 3 than play a animation, and if the answer of question 3 is 4 I want him to play different animation.
I know that you can spli with:
ActionScript Code:
vragen = deAntwoorden;
vragensplits = vragen.split(":");
but than ??
I tried something like this
ActionScript Code:
if(_root.deAntwoorden[2] == '3'){
trace("jeeh");
}
But this doenst work, can somebody help me??
View Replies !
View Related
How Do I Split Up An Image?
I made a vector out of a drawing on illustrator and imported it into flash for animation. I tried to "break apart" my black and white image so I could animate the eyes, mouth etc. as separate symbols. I found that only the black shapes not touching any other shape were made into their own symbols. Does anyone know how I select an area that's connected to another and make it into a separate layer or symbol? I've looked all over and haven't found anything on this topic. Thank you!!
View Replies !
View Related
Split Function Help
hello... im new in actionscript.
i use the split fuction but i cant split the string into a array... i use Macromedia flash MX 2004
here's my code anway
snd = "hello#world"
var strt:Array = snd.split("#");
trace(strt[0])
still, the output says "Undefined"
please help.. thanks...
View Replies !
View Related
How To Split An Integer Value
Hi all,
I'm new to Actionscript, and am trying to figure out how to split up an integer value.
For instance, I have an integer which is dynamically generated such as 285.43. I need to split this number up so I can use each number individually (i.e. 2,8,5,4,3)
Is the best way of doing this to convert the Integer to a String, spliting it up, and then converting back to an Integer?
Any help would be greatly appriciated!
Many thanks, Rich
View Replies !
View Related
Split Screen
Hi all,
here`s a new one: Some of you have prolly seen the new PPT, where when a beamer (or second screen) is attached to the computer, PPT gives you the normal presentation on the external screen and plenty of pros on the cpu screen. Stuff like, see previous and next slides, comments, a timer, etc.
Question: is it possible to creat that in Flash as well?
(Background: I`ve been working on pretty cool presentation template in flash, partially because PPT simply sucks and b/c then you might as well use all the wicked flash benefits)
gracias in advancias,
m.
View Replies !
View Related
Split Or Slice
Hi all
How do I split from below array and trace only ´she´ without ´1000´?
var list:Array = new Array();
list[0] = [1000, 'She'];
list[1] = [2000, 'born'];
function check() {
if (snd.position>=list[0][0]) {
//trace(list.shift());
// output: 1000,She
tried following methos but didn`t work
//trace(list.split(",", 1));
// output:undefined
//trace(list.toString().split(",", 1));
// output:1000
//trace(list.toString().split(",", 2));
// output:1000,She ?????
thanks
green
View Replies !
View Related
.split() Problem
hi,
Im having a bit of bother with this one. I have a flash file which loads in vars from director. It then adds the values to a graph. The amounts from the string are inputed into text fields. the fields are named energy, waste etc. I want a textfield to output whichever sections that are over 5 saying "well done, you have excelled in water, energy...... I have got this working but am stuck on this bit: I am wanting to add an "and" before the last item, so it outputs as "well done you have excelled in water, waste and energy". Also if only one item is over 5 it wont add the "and". This probably doesnt make any sense, heres my code anyhow:
Code:
var summary_results = "2000,6,3,10,8,6";
var txtFields:Array = [Total,Energy,Waste,Water,Food,Transport];
var excelledItems:Array = [];
var theValues:Array = summary_results.split(",");
for(var i=1;i<theValues.length;i++){
theValues[i] = Number(theValues[i]);
txtFields[i].text = theValues[i];
if(theValues[i] >= 5){
theValues[i] == txtFields[i];
excelledItems.push(" " + txtFields[i]._name);
if(excelledItems.length > 1){
//add an "and" somehow....
}
}
}
//well done text
wellDone = "Well Done!
You have excelled in"+ excelledItems +". You know these Eco topics well!";
stop();
View Replies !
View Related
Split Strings?
PHP Code:
var idPage:Array = [];function checkCategory(category:String, object:Object):Void { if (idPage[category]) { idPage[category].push(object); // insert the new item into the category list } else { // category DOES NOT exist idPage[category] = [object]; // create an array and insert the object }}//objectscheckCategory("google",{title:"google", links:"http://www.google.com", date:"20060215"});checkCategory("yahoo",{title:"yahoo", links:"http://www.yahoo.com", date:"20070123"});checkCategory("microsoft",{title:"vista", links:"http://www.microsoft.com", date:"20070521"});checkCategory("yahoo",{title:"flickr", links:"http://www.flickr.com", date:"20070607"});checkCategory("google", {title:"youtube", links:"http://www.youtube.com", date:"20070712"});checkCategory("yahoo||ludricorp",{title:"del.icio.us", links:"http://del.icio.us", date:"20051011"});checkCategory("google||pyralabs",{title:"blogspot", links:"http://www.blogspot.com", date:"20060215"});//for (var categoryList in idPage){ trace("+ "+categoryList) for(var catTitle in idPage[categoryList]) { trace(" - "+ idPage[categoryList][catTitle].title) }//out put+ google||pyralabs - blogspot+ yahoo||ludricorp - del.icio.us+ microsoft - vista+ yahoo - flickr - yahoo+ google - youtube - google}
Hi.. I need some direction.. how do I spilt the google||pyralabs and yahoo||ludricorp into it's own string and if they have the same string, then will merge with it? Wanting to get the output into this
PHP Code:
+ pyralabs - blogspot+ ludricorp - del.icio.us+ microsoft - vista+ yahoo - flickr - yahoo - del.icio.us+ google - youtube - google - blogspot
Please?
View Replies !
View Related
Split Screen
Hi all,
here`s a new one: Some of you have prolly seen the new PPT, where when a beamer (or second screen) is attached to the computer, PPT gives you the normal presentation on the external screen and plenty of pros on the cpu screen. Stuff like, see previous and next slides, comments, a timer, etc.
Question: is it possible to creat that in Flash as well?
(Background: I`ve been working on pretty cool presentation template in flash, partially because PPT simply sucks and b/c then you might as well use all the wicked flash benefits)
gracias in advancias,
m.
View Replies !
View Related
Is It Possible To Split The .FLV Files?
Hi all,
I have called flash movie into .flv file externally. The flv file file is 8mb. Is it possible to spilt the flv file using any software? I need to split it to make loading easier. I really tried my best on this but couldn't get it
....Pls, if anyone can help me with this, I would be really thankful. Hope to get a great response from you guys soon.
View Replies !
View Related
F5 - String.split() ?
well I never... it's been a while since i was here -
the actionscript dictionary describes the split method as follows:
[quote]String.split
Availability
Flash Player 5.
Usage
myString.split("delimiter", [limit])
...
Description
Method; splits a String object into substrings by breaking it wherever the specified delimiter parameter occurs, and returns the substrings in an array. If you use an empty string () as a delimiter, each character in the string is placed as an element in the array, as in the following code.
View Replies !
View Related
Split My Variables
I recieve a variable from another server that looks like this:
Code:
nummers = "10nummer1=20nummer2=30nummer3=40nummer4=50"
How can I turn that into:
Code:
num1 = 10
num2 = 20
num3 = 30
num4 = 40
num5 = 50
Would really appreciate some help..
View Replies !
View Related
Substring And Split
I am trying to pass 2 values into a flash movie from the querystring. I've been successfull so far with the following code:
------
myURL = this._url;
myPos1 = myURL.lastIndexOf("?");
whichMenu = myURL.substring(myPos1+1, myURL.length);
myText = whichMenu; <-- just to display result
---
The result I get is:
m=1&s=1
which is perfect cause that means it works! woahho! hehe. What I need to do now is to assign the value of m to a variable in flash and the same thing for the value of s.
I've been rading tutorials but I just cant figure it out. Can someone help please?
Thanks!
View Replies !
View Related
|