Animation freezes (I think because the script is Flash 6 and my doc is CS3) ???
I have an animation script for particles that was created in Flash 6. I'm trying to recreate it in my flash document that is setup as Flash 8. I couldn't get the animation to play and then I figured out that if I go back to this original Flash 6 document and change it to Flash 8, it won't play in that document either.
I'm really new to Flash and scripting in general. Is there a solution that preferably involves changing the Flash 6 particles effect document so that I can recreate it in my Flash 8 document and have it animate?
I attached the file but here is the script anyway..
This is the script in the timeline:
c=0;
totalParticles = 100;
while (c<totalParticles) {
c++;
duplicateMovieClip("particle0","particle"+c,c);
And this is the script in the movie object:
onClipEvent (enterFrame) {
r++;
yvel+=(yvel2-yvel)/10;
xvel+=(xvel2-xvel)/10;
if (r==quant) {
quant=minVal+random(rnd);
r=0;
yvel2=random((rvel*2)+1)-rvel;
xvel2=random((rvel*2)+1)-rvel;
_x+=xvel;
_y+=yvel;
onClipEvent (load) {
_xscale = _yscale = 10 + random(50);
_x = random(Stage.width);
_y = random(Stage.width);
minVal=25;
rnd=25;
quant=minVal+random(rnd);
rvel = 1;
yvel2=random((rvel*2)+1)-rvel;
xvel2=random((rvel*2)+1)-rvel;
Thanks!
the next two errors are failures to initialize xvel and yvel. use:
c=0;
totalParticles = 100;
while (c<totalParticles) {
c++;
duplicateMovieClip("particle0","particle"+c,c);
And this is the script in the movie object:
onClipEvent (enterFrame) {
r++;
yvel+=(yvel2-yvel)/10;
xvel+=(xvel2-xvel)/10;
if (r==quant) {
quant=minVal+random(rnd);
r=0;
yvel2=random((rvel*2)+1)-rvel;
xvel2=random((rvel*2)+1)-rvel;
_x+=xvel;
_y+=yvel;
onClipEvent (load) {
r=0;
xvel=0;
yvel=0;
_xscale = _yscale = 10 + random(50);
_x = random(Stage.width);
_y = random(Stage.width);
minVal=25;
rnd=25;
quant=minVal+random(rnd);
rvel = 1;
yvel2=random((rvel*2)+1)-rvel;
xvel2=random((rvel*2)+1)-rvel;
Thanks!
Similar Messages
-
Videos stopped playing correctly. Now I get a black screen, then a few seconds of video and it freezes. I downloaded the latest Adobe Flash player
and it did not change anything. Thanks for your help. CPOne of the following steps should help.
1. System Preferences > Other/ Flash Player > Advanced > Delete All
Press the "Delete All" button
Install Adobe Flash Player.
http://get.adobe.com/flashplayer/
Quit Safari.
Restart computer. Relaunch Safari.
2. Enable Plug-ins
Safari > Preferences > Security
Web Content: > "Enable Plug-ins".
or
Internet Plug-ins > "Allow all other plug-ins
3. Check whether you are currently in YouTube HTML 5 trial.
http://www.youtube.com/html5
At the bottom left of the page uncheck the box beside
"You are currently in the HTML5 trial".
4. Reset Safari.
Click Safari in the menu bar.
From the drop down select "Reset Safari".
Uncheck the boxes beside all items.
Check the box beside "Remove all website data".
Click "Reset".
5. Turn off Extensions, if any.
Safari > Preferences > Extensions
Now try YouTube.
Best. -
Hi, While writing an email online using Firefox 3.6.3, I was using one of the "CTRL+left or right arrow" to move the cursor along the text. I must have pressed some other key because the display has become huge - and I can't scroll vertically or horizontally, which makes using the Mail pages of Hotmail impossible. I have since logged in using MSFT Explorer and it works fine. This problem occurs only on the Mail page of Hotmail Live not on the home page or others.
Could you please let me know if this is a problem with Firefox, or if you have any advice on how to reset the appearance of Hotmail in Firefox?
== This happened ==
Just once or twice
== While I was compiling an email in Hotmail LiveWow, lightning fast and absolutely right!
Thank you so much! -
hi i just got my replacement iphone5 but i am not satisfied that because the battery backup is worst and the one of the speakers have not working so i have doubted that its a brand new or refurbished one. i replaced it in the warranty period
thanks for the information about speakers. and i mean the battery back up the battery i always getting lower even im not use. and can u pls tell me how to check this as a brand new or not. b'coz in the store they gave me replacement phone without boxing. the phone was coverd by wrap and they never give any receipt for this
-
I bought walking dead the game multi pack but I wasn't able to play with it. I tried to remove and reinstall it but things get worst because the paid app was lost and what's left was the free version. Any suggestion how to recover it?
How to Get a Refund from the App Store
-
I am getting a photoshop error could not load photoshop because the preferences file was invalid and cln't load actions because of an unexpected end of file encountered.
Are you trying to open Photoshop directly, or open it by double clicking on a Photoshop document, like a PSD file? If the former, then you might need to reinstall. Resetting Preferences would be the firs step, but I am not sure if that will work if Photoshop is not opening in the first place.
Try doing so anyway. Hold down Shift Alt Ctrl (Shift Opt Cmd) while opening Photoshop. OK the message to delete Preferences.
If you get the unexpected end of file error while trying to open Photoshop via a PSD document, then there is more than a good chance that that file is toast.
If still stuck, we need to know Operating System, and Photoshop version. -
I need to restore my ipad but it won't restore because the software isn't updated and you can't update the software because it is in recovery mode. What do I do know?
I would take it to the apple store to get recovery mode taken off.
Regards. -
hello, can not restore my backup from computer to my iphone because the iphone has ios 6 and the backup was done on ios 7
I just changed my iphone for some problems so my last backup was done under ios 7 and the new iphone has ios 6 that i would like to keep
-
I just bought my the new ipad black 64gb wifi 4g, but I really like white one.Because the shop finished white one and I want to buy it immediately and I bought black one. Now Can i change a white?
There's nothing anyone here can do to help you return your iPad; we're all just fellow users. Call the store from which you purchased your iPad and ask about their return policy.
-
My Mac Book Pro was really slow at everything and would kick me out of my photos every time i got on them. now it won't even allow me to log on. i put my password in and the screen will flash white and go back to the login page. HELP please...
There is nothing wrong with your Dell, it will work fine with any MacbookPro. I have been using Dell displays for over 12 years with many different Mac models. I have two 21" Ultra Sharp displays working side by side to design a Keynote presentation right now.
The issue your having is with the way Keynote takes control of the video output to both displays, it sends the presentation signal to one and the presenter display to the other, this is set up in;
Keynote preferences > Presenter display.
If you want to show a wesite or another app on either display, use application switcher:
press the the command key on the keyboard, then the tab key; a row of applications will show what applications are running, choose which one you want to show. Use command > tab to return to Keynote. -
when i plug in my ipod touch (8gb, 3rd generation) it doesn't turn on and the apple logo flashes on and off. before this it wouldn't turn on unless it was plugged in.
Try:
- iOS: Not responding or does not turn on
- Also try DFU mode after try recovery mode
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
- If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
- If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
Apple Retail Store - Genius Bar -
My mac is the OS X 10.8.3. I tried to update the latest Adobe flash player and kept getting 'Actionlist not found.' I have uninstalled, enabled and disabled plug-ins and am still unable to download the update and now have no flashplayer at all. Help!
PS I'm still new to Macs so the more broken down the better.Adobe Flash Player 11.8.800.42 is the most recent version from Adobe. It is a pre-release version. I am using it without any noticeable problems.
The current stable version is Download 11.7.700.169. -
What's the Difference Between Flash Player and Shockwave?
Hi,
I was wondering what's the difference between Flash Player
and Shockwave? And how do you know which one isn't working? I
downloaded and installed Flash Player successfully but it did say
that the plug ins might be in another file and may not work
properly. There is one game that will work, but most everything
else doesn't. I don't get pictures (like adverts, ect.) in my
email. What is the problem?I have found this site helpful. Adobe has a "Test Adobe
Shockwave & Flash Players" site. Here is the address:
http://www.adobe.com/shockwave/welcome/ -
When i am starting the macbook pro, the screen was flashing black and white, and then to color to color, and the whole process repeat all over again, is there any suggestion in solving this, or is there no way to solve this and i need to bring it to the apple support?
My computer Spec:
Macbook pro Version 2011Sounds as if you're having a problem with your GPU (graphics card). Only Apple can diagnose and fix this, so the best thing would be to take your machine into your local Apple Store or an AASP.
Clinton -
I am having trouble running videos through Safari but not Google Chrome. All I get is a black screen. I have the latest adobe flash update and have enabled plug ins. any suggestions?
Open System Preferences > Flash Player then select the Advanced tab.
Click Delete All under Browsing Data and Settings
Not empty the Safari cache.
From your Safari menu bar click Safari > Preferences then select the Advanced tab.
Select: Show Develop menu in menu bar
Now click Develop from the menu bar. From the drop down menu click Empty Caches.
Now try a video.
Maybe you are looking for
-
How to findout line items of zero balance clearing account?
Hi Friends, my zero balance clearing account shows balance. we have 6 business areas and document splitting activated. Trial balance is matching at co.code level.but its mis matching at business area level. Line item management is checked in the mast
-
Please Help!!!!
-
How do I get my playlists to sync in the order I set up on the new Apple TV???? I don't want them in alphabetical order! Any help mutely appreciated! Thanks
-
Hp psc 1600 all in one running on XP prints a one inch wide black line down the center of the paper
Occurs only when using copy mode!
-
Increase screen resolution in terminal (no X Server)
Hi When you start ArchLinux, you enter in 'terminal mode' (how do you call it?), where you are asked username and password, then you usually type 'startx' to launch your DE. Yesterday, I was installing NVidia drivers and for some reasons, the screen