@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17



Comments:

<0> ahh i see
<1> change the mouse ref to your clip
<0> so 'point' stores a point in the clip
<0> or the stage, i should say
<1> yep, point could be called anything
<1> but it needs 2 vars inside it
<1> x and y
<1> note where you call localToGlobal from
<0> hangon, in your example, it would already be global right?
<1> You will need to speciafy a path if not called from inside the clip
<1> In the example of flash docs its inide a clip
<1> I copied and pasted
<0> i dont actually want to do it from inside a clip
<1> ok, then something liek:
<1> point = new object();
<1> point.x = _root.mc1.mc2._x;



<1> point.y = _root.mc1.mc2._y;
<1> _root.mc1.localToGlobal(point);
<1> try that
<0> but isnt it taking those coordinates out of context? once the point.x and point.y are set, how does localToGlobal know which clip these coordinates were inside ?
<0> ill try implementing the code though
<1> last
<1> thats the point of the path I gave before localToGlobal
<1> Its saying take the values of point as the x and y inside the coordinate space of _root.mc1
<1> and make that global
<0> oh riiiight
<1> _root.mc1.localToGlobal(point);
<0> so the phantom "clip" im asking about is mc1, because its executed inside of that clip?
<1> Indeed it is
<0> ok that explains why im confused
<1> That's teh coord space it's referencing
<0> im not doing in that kind of way
<1> But that gives what you asked for
<1> What's teh issue
<1> ?
<0> i want to find the global coordinate of _root.mc1.mc2._x; but from _root.anotherclip
<0> oops, bad bolding
<1> Then you have to use both
<1> Make uit global
<0> so i have to p*** it over
<1> Then local it to teh other clip
<0> ok, a global var
<0> oh
<1> So you need to bring it up to root with localToGlobal
<2> does anyone know is array creation is much faster then object creation in flash?
<1> Then back down with globalToLocal
<2> i need to p*** around some parameters and i'd like do it as: obj.a , obj.b , obj.c but i dont know if it's slow
<2> this is to be processed in miliseconds
<0> does this mean i cannot get what im after completely via code located in _root.anotherclip ?
<0> do i have to have some code running in _root.mc1 that p***es the values
<1> JFlash
<1> Objects seem faster from tests
<1> Only by about 10 - 20 ms
<1> Over 20000 creations
<1> last
<1> You can do it fine
<1> You just need to use both methods
<1> Whenever you want to check it you need to call them to global
<1> And then convert to local
<1> You can do that from any clip
<1> as long as you specify the path
<0> ok the missing link for me is how i let localtoglobal know what 'local' actually is without executing any script at all from inside the 'local' clip
<1> ok, to simplify things
<1> we have 2 clips on root
<0> yep
<1> m1 and m2
<1> m1 hold m_xy
<1> now say if we want to see if m1.m_xy is in a certain range of m2
<3> slag
<1> Ya?
<3> you workd much with f8 + video?
<1> Na, sorry, no video stuff
<3> hmm k
<1> Latest project is here:
<1> http://club.lego.com/eng/login/bionicle/kanoka/spinnergamelogin.asp?target_url=http://www.lego.com/eng/bionicle/spinnerchallenge/spinnerchallenge.aspx&section=spinnerchallenge
<1> Needs free no email registration
<3> i wanting to know if you can put text/mc's on top of video with the video still playing full frame rate behind



<1> lastexit, we'd say:
<1> point = {x:m1.m_xy._x, y:m1.m_xy._y};
<1> m1.localToGlobal(point)
<1> that gets our x y of m_xy globally
<1> then we say
<0> ahhhhhhhhhhhhhhhhhhhh
<0> yes
<0> now i get it
<1> m2.globalToLocal(point)
<0> m1.localToGlobal
<0> i didnt realise you stem it off the local clipname like that
<0> that makes sense now, awesome
<1> No prob
<0> thank you, really appreciated
<1> No prob
<0> i was genuinely stumped, im not big on asking unless i really have to
<1> They can be a big pain in the arse to get your head around
<1> But once you have it it's fine
<1> Check out the help inside flash for localToGlobal and globalToLocal
<1> They have some other examples
<0> i did
<0> thats what confused me so much
<1> Ah :)
<4> hey pricks
<1> Yo cuntface
<4> hehh
<4> hi slag
<4> how're you?
<1> Great thanks
<1> Just got back from US
<4> how's it been=
<4> ?
<1> Very cool
<1> Life going great
<1> http://www.flickr.com/photos/71333887@N00
<5> when i move a function-call to be within an Onload = function { } it stops working. what changes?
<1> any references to "this" will move to teh clip
<4> looks like austria :)
<1> Along with any relative paths specified
<5> even if the "this" is inside the function ?
<5> doesnt matter. no "this" in the function
<5> hm
<5> relative paths like _parent ?
<1> Nope, this._parent would though
<1> Just _parent would be the _parent of where the function was defined
<1> Can you pastebin your function?
<1> !find -t strandmyr pastebin
<1> off for lunch
<4> bye
<4> gkmotu there?
<6> yes
<2> Vgslag[a], thank you
<4> cool :)
<6> hey :)
<2> movAX13h, why 13h ?
<4> mox AX,13h
<4> int 21h
<4> switches to graphics mode
<4> 320x200x256
<4> mov*
<4> its ***embler code
<2> ah
<4> all the oldschool games use that mode
<4> monkey island, stunts, testdrive, ...
<2> do you like oldskool games?
<4> i still like them, yes
<4> also new ones
<6> movAx13h donno if you saw this one..started it last week..but then accidently started a house song..so i havent finished the picture yet :) http://www.gkmotu.com/little_fellas.html
<2> movAX13h: http://www.dot-invasion.com/works/mbusters/d/index_a.html
<4> JFlash cool stuff :)
<4> gkmotu those fellas look cool
<4> do you have them animated?
<4> like walking?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #flash
or
Go to some related logs:

circumfrence formula
#red
#nhl
#worldcup
#beginner
#debian
a7bkom
#computers
#politics
#gamedev



Home  |  disclaimer  |  contact  |  submit quotes