You have to maintain this part of the code, as it translates an 'x' and "y" positional value (forward movement) based on the rotation value you have accumulated.
x = Math.sin(_rotation*(Math.PI/180))*speed;
y = Math.cos(_rotation*(Math.PI/180))*speed*-1;
if...
It is the full string. However, let's say that I want to refer to an object using the "with" syntax. Will that still work. So that I can avoid the long path over and over?
Flashmax,
One question. following your comments on the dot versus the []. See the example from Wangbar above.
SP01.tmp_mc["iPT" + i].mc1.iLknob._y = Left
This is true and I tried it yesterday.
However it goes against the strain in that mc1 and iLknob are not properties or...
Bill,
This is interesting. I thought this sort of capability had been in the 2D world for eons. But the 3D guys beat them to it. Go to Discreet 3DS Max and read up on Reactor, which is actually a physics engine based on the work of Havok, a UK product. All the leading 3D animation programs use...
Thanks Bill,
It looks like a tracer function. So I assume the object would be to have the other non-path-linked objects follow the primary object in succession. I need to read this several times through.
P.S. I responded to your PHP suggestion in that thread.
billwatson,
BTW, Cold fusion local-host is free when you buy MX Studio. I don't really know how much that limits me as I don't want to post to the web, I just want to talk to my LAN databases.
What's the drawback to teh freebie version compared to using the PHP?
Jim
Caden,
Or you could use the Scroll Pane component. There really isn't any tutorial I have found that directly talks about implementation, but I would recommend you see the "Creating forms with UI components in Macromedia Flash MX"...
I have a very large animation of liquid flowing through bending pipes. I managed to create a tweened version with guide paths. However when I want more than one bubble to follow the same path, I end up with literally hundreds of tweened paths, each on their own layer. I need to figure out a much...
wangbar & firegambler
I'd post it, but I'm not web savvy yet. Maybe I can learn enough Dreamweaver to start a decent site over the weekend.
Anyway, the trick with: tmp_mc["iPT" + i] is that it must be at the end of the command. In other words, the end bracket must be followed by the...
firegambler & wangbar
I tried the following:
//This is a test of the path and it works fine
fader = _level0.SP01.tmp_mc.iPT1.mc1.iRknob;
fader._y = Rght;
//This is a test of the same path and it does not work
//The error says it is looking for a ";"
for(i=0; i<3; i++) {
fader =...
firegambler,
wangbar was repeating my string for me, see my question posed above these last three posts. The "x" was there to indicate that this clip had several instances, which is what I wanted to be able to call from a loop structure on the main timeline.
Thanks to both of you!
firegambler,
Actually I just stuck the for loop in the the thread to explain the desired use. I did bugger the script though. Regarding the "this" use. How do create an alias to refer to a several instanced targets at the same level using a variable in the path?
"SP01" is...
I want to call a routine from my main timeline using a loop structure. I have nested the MC in a Scroll Pane and thus the prefix "_root.SP01.tmp_mc". The iPTx MC is one of many instances I need to scan through and update. Why does Flash tell me that "alias" is undefined?
Any...
I see your modified brackets, and the code fail callouts are all gone. But........ Those little green buttons hanging of the sides of mc01 in the movie should be dancing up and down at the rate of the cosine conversion of the "x" counter. That is,Do you have any idea why they are just...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.