Flash slow, help!
- Started
- Last post
- 36 Responses
- versa0
just send it over, i can't talk AS to well over teh NT ... hopefully the structure of the file will make sense to me
- schedule20
sent
- versa0
i am having trouble opening that file for some reason... you are using MX right ? PC
- schedule20
ya, i'm using mx on mac
- versa0
yeah, cant open it
i am thinking that you could try and set the ham bleeding and hooks swaying through one setInterval on the first frame...give me asecond to write it out, so you can try it with the appropriate naming
- schedule20
thanks alot Versa!
- Mick0
It looks to me more like it's just slow because the vector artwork is complex... from breaking apart the vectors and Modify > Optimize
- versa0
try to optimize the vector stuff through "Modify" > "Optimize"
then try this....cause i can't open your .fla ...
change your framerate to 31.........check and make sure you don't have
linkage names on alot of that vector work ( right click objects in the
library and see if they have linkage name...if they do, and you don't need
them, remove their names )have each hookMC, and the hamMC ( the one that spurts blood ) have a first
frame that has a stop(); action on it, and label it "stop". Then on frame two of each of those MCs have a frame label named "start". Add however many frames you need to complete the tween animations you need after that (
starting at frame 2 ) and on the last frame, add a gotoAndPlay("start");now, go back to frame 1 of your MAIN timeline - the ROOT timeline - and add
this snippet into the actions layer:// ||||||||||||||||||||||
startLoops = function () {
pathtoMC.fooMCname.gotoAndPlay...
}stopLoops = function () {
pathtoMC.fooMCname.gotoAndPlay...
}startLoops();
stop();// ||||||||||||||||||||||
when you want to stop the looping, say to go to a new section or just for
any other reason, invoke the
stopLoops function by writing ..... stopLoops();give me a progress report and let me know how your are getting along...i
will be back in a couple of hoursversa
- schedule20
Sweet! Thanks so much for putting all of this work into it vera!
I really appreciate this. I'm going to give it a break for the night, but I'll be back on it in the morning. I'll fire you off an email to let you know how it all worked out.
Thanks Again!
- schedule20
hey versa, I just sent you an email. I got most of the code to work except this that appears in the output window:
**Error** Scene=Scene 1, layer=actions, frame=1:Line 3: String literal was not properly terminated
pathtoMC.fooMCname.gotoAndPlay...**Error** Scene=Scene 1, layer=actions, frame=1:Line 4: Syntax error.
}**Error** Scene=Scene 1, layer=actions, frame=1:Line 7: String literal was not properly terminated
pathtoMC.fooMCname.gotoAndPlay...**Error** Scene=Scene 1, layer=actions, frame=1:Line 8: Syntax error.
Total ActionScript Errors: 4 Reported Errors: 4
- versa0
hey... i get fatal errors whenever i try to reply to your emails ...
well don't forget you have to replace my placeholder naming with the proper
true names, ie.pathtoMC.fooMCname.gotoAndPlay...
will become something like this:
_root.hook1MC.gotoAndPlay("start...
( but if your actionscript is on the _root you don't need to reiterate
that )bloodspurtMC.gotoAndPlay("start...
you will have to give your MCs instance names in the properties box to call
them like thislet me know how you get along with it
- schedule20
thanks versa! ok, I changed the code to direct the actions to my movie clips. Now I'm not getting any output errors, but the hooks aren't moving.
This is what I put for the code on the root for the "hook1" MC:startLoops = function () {
hook1.gotoAndPlay("start");
}stopLoops = function () {
hook1.gotoAndPlay("stop");}
startLoops();
stop();any ideas?
- schedule20
if you need to get ahold of me, it's easiest to mail:
- versa0
well i bet hook1 is moving right ?
i am needing you to append stuff to this code - like calls to all of your hook MCs
so add in similar lines of code inside the startLoops and stopLoops functions that call the other MCs
make sense ?
- schedule20
ok, sorry versa, I'm not exactly an expert here, I have done all of those things, but my hooks and blood spatter aren't moving. Any ideas?
- versa0
i will email