| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
Comments:
<0> seems to work <0> but lasIndexOf starts at 0 , so the return should be 2 not 3 <0> wired <0> tracing index results in 3 <1> balk1 << index is 3 <1> you're only getting the final name <0> lastIndexof starts from right to left right? <1> left <0> hm? <0> no right to left <2> Amore perdono ma non resisto... adesso per sempre non esisto! <1> your string, i imaine is only "balk1" <0> no <0> its not <1> trace it <0> its the whole _level0.sektion.charts.balken.balk1
<1> trace it to be sure <0> i did <0> this its what it is <1> pastebin! <0> so starting from right to left as described in the docs <2> <3 ornella vanoni :) <0> it should be 2 X_X <1> lastindex is the index of the last item from the left <0> hm <1> actually i wont be so absolute.. if it isnt tho, i'll shoot mm, again <0> so it picks the last titem in my case <0> balk1 <0> and starts with b =0 ? <1> yeah <0> oh well <0> tahts strange <1> thats how i read it <1> how are you getting the string? <0> in my dosc three is thiw written <3> anyone here know the SendAndLoad function of loadvars? <0> Searches the string from right to left and returns the index of the last occurrence of value found before startIndex within the calling string. This index is zero-based, meaning that the first character in a string is considered to be at index 0--not index 1. If value is not found, the method returns -1. <3> im wondering how i need to structure the output from a PHP script <1> searches.. right to left.. <0> yea!? <1> but the value is always from the left <0> hm ok <0> dont get the diffrence between seaching and value:) <1> it searches right to left because its 'lastIndexOf' thats intelligent code <0> hehe <1> but the index is how far into the string <0> well ok maybe its just me whos not intelligent enough to get the idea behind *g* <0> so the reason i do this is i have several mcs namned balken.blak1 to blaken.balk10 and i want to slice out the numbers to controll other mcs <4> could someone link me to a tutorial that can teach me how to make a scrolling graphic like the math way <0> i would be much easier if i could just read out the char at the psecified point instead of giving me in return the pos... <0> man <5> var n = mc._name.split("balk")[1]; <5> erm blak <5> 10 <5> 1 <5> 1000 <0> ^^ <5> blakwhatever <5> [0] is blak, [1] is whatever <0> i tryied this <0> var searchString:String = this._name; <0> trace(searchString); <0> var index:Number; <0> index =searchString.charAt(searchString.lastIndexOf("k")); <5> is it blak or balk? <5> heh <0> wont work t.t <0> balk <0> to be honest i dont check your code <5> var index:Number = instance._name.split("balk")[1]; .... <5> !find -c string.split <6> String.split == http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary696.html <5> returns an array... (_name is a string) <0> k <5> and we want index 1 of the array <5> [1]
<5> you can join some things in actionscript <5> e = "balk343434"; trace("prefix: "+e.split("balk")[0]+" / num: "+e.split("balk")[1]); <5> or <7> shiz know of any good doc's on mx.transitions? <5> e = "balk343434"; var tmp_arr = e.split("balk"); trace("prefix: "+tmp_arr[0]); trace("num: "+tmp_arr[1]); <5> do you see the shorthand vs longhand? ... just a diff way, same result <5> spooky - just ones on mm i guess <5> by that helen chick <5> heh <0> well if i traced the name of my mc with var blub= this._name; and it is the described name: _level0.sektion.charts.balken.balk1 , what would be the code to geht the number behind .balk? <5> spooky: http://www.macromedia.com/devnet/flash/articles/animation_guide.html <5> spooky: http://www.macromedia.com/devnet/flash/articles/animation_guide_13.html <5> _13 is more specifically about tween cl***/transition manager <7> anything for 2004mx? <5> mm <5> tween cl*** isnt in 2004? <5> i guess not <5> heh <5> hmm <5> not offhand nope <7> thanks anyway :) <5> you cant use 8? its so much nicer to use for anything regarding animation be it timeline or scripted <7> This section describes how to use these cl***es with movie clips and Macromedia V2 components (included with Flash MX 2004 and Flash 8) <7> sweet <5> you can do just as much with your visually created tweens as you can with scripted now <5> ahh <5> ya i thought could use with 2004 <5> hehe <5> whew <5> :) <5> go nuts <7> lol <0> shiznit i get headaches <0> i dont get ur code <0> its becasue <5> did you read: <5> String.split == http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary696.html <5> ? <5> if not - dont expect to <5> Returns <5> An array containing the substrings of myString . <0> yes i reat it <5> so... if you're checking the name of a movieclip.... <0> but i dont know how this helps to get the number behind my mc <5> oh <5> well i thought you said thats what you were trying to do <5> 'split it' at number <0> well if i traced the name of my mc with var blub= this._name; and it is the described name: _level0.sektion.charts.balken.balk1 , what would be the code to geht the number behind .balk? <5> you have 0 and 1 index <5> name and number <5> only thing is - what name will you use to split _name property with? <5> oh <5> well <5> you could be creative <5> and do <5> balk_1 <5> and use _ to split <5> ;P <5> so you can have <5> monster_25 <5> cat_1 <5> frog_1092 <5> ... <5> you get <5> 0: monster <5> 1:25 <4> how do you make a movie clip scroll mathematically <5> ... <5> 0:cat <5> 1:1 <5> ... <5> 0:frog <5> 1:1092 <5> ...
Return to
#flash or Go to some related
logs:
#online #beginner Andre Michelle rain effect
#worldcup #winxp #computers #solaris #nhl #openbsd muffdvr12
|
|