Adding two more Star Trails in movie clip
Hi All,
I bought a flash file the other day which i plan to modify and use for an intro to a project i am working on. Currently there is one instance of a Star which follows a path and emits "sparkles" while tracing the path. I would like to add two more stars/ paths. I tried modifying some of the code, and am working through it, but wanted to know if anyone could help me out a bit.
thanks!
Patrick
import flash.filters.*;
//--------------variables to change--------------------------//
//modify the size of the sparkles
var maxSparkSize:Number = 25;
var minSparkSize:Number = 8;
//set the speed the sparkles fade, 0 is never fade,the higher number quicker the fade
var fadeSpeed:Number = 1//5;
//speed which the sparkles fall, 0 is no fall, the higher the number the quicker the fall
var fallSpeed:Number = 0.5;
//the speed which the particles drift sideways. 0 gives no drift, positive numbers give right drift
// negative numbers give left drift
var windSpeed:Number = 0;
//change the colour
var randomColour:Boolean = true;
defaultColour = 0xFFcc00;
// the path to the followe_mc
path = this.holder_mc.follower_mc;
path = this.holder2_mc.follower2_mc;
//you do not need to modify the code below here...
var sparkle:Number = 0;
var mousePosX:Number;
var mousePosY:Number;
var whichBat:Number;
var count:Number = 0;
this.createEmptyMovieClip("empty",this.getNextHighestDepth());
//make the shape on top of the sparkles
path.shape_mc.swapDepths(1000);
startSparkles();
function startSparkles() {
this.onEnterFrame = function() {
var pathX:Number = path._x;
var pathY:Number = path._y;
xPos = randRange(pathX-2, pathX+2);
yPos = randRange(pathY-2, pathY+2);
createSparkle(xPos,yPos);
function createSparkle(xPos, yPos) {
movingSparkle = this.attachMovie("colouredSparkle", "s_"+sparkle, sparkle+10);
movingSparkle2 = this.attachMovie("colouredSparkle", "ss_"+sparkle, sparkle+101);
sparkle++;
if(sparkle>100){
sparkle = 0;
setParams(movingSparkle);
setParams(movingSparkle2);
function setParams(movingSparkle){
//position the sparkle
movingSparkle._x = xPos;
movingSparkle._y = yPos;
//set initial size
movingSparkle._xscale = movingSparkle._yscale=Math.random()*maxSparkSize+minSparkSize;
movingSparkle._rotation = randRange(0, 360);
if (randomColour == true) {
col = Math.round(Math.random()*0xFFFFFF);
} else {
col = defaultColour;
colouredFill = new Color(movingSparkle.colour_mc);
colouredFill.setRGB(col);
colouredFill = new Color(movingSparkle.white_mc);
colouredFill.setRGB(col);
moveSparkle(movingSparkle);
function moveSparkle(movingSparkle) {
var rot = randRange(-15, 15);
var blurX = randRange(1, 5);
var blurY = blurX;
var blurFilter = new BlurFilter(blurX, blurY, 3);
//add some blur to the sparkle to make it softer
movingSparkle.white_mc.filters = [blurFilter];
//calculate the amount the sparkle will fade
var alphaDrop = randRange(1, fadeSpeed);
//commit the movements...
//this onEnterFrame moves the spark, rotates it, scales it and fades it.
movingSparkle.onEnterFrame = function() {
//change speed
this._y += fallSpeed;
this._x += windSpeed;
//change rotation
this._rotation = this._rotation+rot;
//make it smaller
this._xscale = this._yscale=this._xscale*0.98;
//fade the sparkle
this._alpha = this._alpha-alphaDrop;
//remove the movieclip if it get tiny
if (this._alpha<10) {
this.removeMovieClip();
if (this._height<4) {
this.removeMovieClip();
function setColour(mc, col) {
colourIt = new Color(mc);
colourIt.setRGB(col);
function randRange(min:Number, max:Number):Number {
var randomNum:Number = (Math.random()*(max-min))+min;
return randomNum;
1 ) Increase the FrameRate (or)
2 ) Call the createSparkle(xPos,yPos); function more than once with new randRange
Similar Messages
-
Adding one audio file to multplie movie clips
Hi all
I have two movie clips in my project and I was successful on adding music to one clip. Now how can I make this same audio file last the duration of both movie clips? I want to add the single audio to both. Thanks, web dudeI want to add the single audio to both.
Place another copy at the end of the first. -
Adding small photo in corner while movie clip is running
Hey,
This is my first time using Imovie 08' and I'm a little confused. What i'm trying to do is place a small .gif in the bottom left corner of a movie clip, almost like a title. I have tried placing the picture into the title, but that only supports fonts, not .jpeg or .gif files. When i try placing the picture over the selected clip itself, the picture just takes up the whole screen, covering up the existing clip. Help would be much appreciated.
BenWhen i try placing the picture over the selected clip itself, the picture just takes up the whole screen, covering up the existing clip.
Clips/pictures are automatically scaled for the project resolution and aspect selected that was user selected. You basically have two options:
1) You can create your image in a graphic application on a canvas of the same resolution and aspect ratio as your iMovie '08 project and in the location desired, export your image in an alpha-channel format (e.g. PNG), drop/add it to the project as a still frame sequence, reset the duration, and "clone" it as needed for continuous or periodic display.
2) If you want it displayed for the entire length of your video and you have QT Pro, I prefer to simply use the "Add to Selection & Scale" Edit option in QT Pro on the finished project export. (In this case you only need to create your image on a canvas large enough for the image at the approximate size you want it to display since you can independently scale and position the image anywhere within the display screen area. -
I have a G4 1.42 dual that has two hard drives in the front of the machine already. I've just discovered (ok, so I'm a little slow) that I can add two more hard drives in the back of it. As I added larger capacity drives to the front (250 gig each), I took the original 120's and put them in external cases and just used them as USB drives.
However, I'd like to internalize those two drives now.
I was able to somehow figure it out then, regarding adding a second internal drive (slave/master) and it didn't seem to hard. I'm figuring this is a similar deal, just knowing how to set some kind of jumpers or whatever.
Truth is, though, I'm not for certain how this would work. I'm guessing that I can "chain" in the remaining two HD's as slaves? I took the two externals out of their temporary case and can see the jumper sets, the power cable, and so forth.
What do I need to understand before I just "plug" them into the computer's remaining two bays and fire it up? Any jumper settings? Power limitations?
Is there some kind of setting I have to activate in OS X to make sure it can 'see' them or whatever?
I've just looked over the ribbon cables. I notice there is one slot marked ATA-33 that has a ribbon cable coming from it, sliding kind of underneath and around, appearing to go to the DVD burner. I'm guessing that would be the typical config (without me having to unscrew and chase down the ribbon)?
Sitting just on top of that, is two obvious power plugs plus one unused ribbon cable. The ribbon is sitting, unconnected, with one blue end (to motherboard I would presume) and then two dark grey connectors on the other end of the ribbon cable. Looks like they built it ready to hold more drives.
On the motherboard, just above the ATA 33 slot is an ATA 66 unused slot. Would the HD's that I want to connect simply use the cable to go into 66 slot using the supplied ribbon cables, or would I need to somehow chain them into the 33 slot?
Thanks
Thanks
Message was edited by: TexasMan_Luvs_Hismac
Message was edited by: TexasMan_Luvs_HismacHi-
Easy stuff...
Put the two drives in the second carrier, both jumpered Cable Select.
Connect the power to each, and using the ribbon with two free connectors, connect both drives, and then plug that into the ATA/66 connector on the motherboard.
The machine should recognize both disks. In the event that they don't show, initially, check your work, and then reset the PRAM, holding CommandOption+PR while booting, release after the second startup chime. -
HI Experts,
Can any one help me to add two more column for standard report that is purchase order and delivery dates for Internal order wise.
But here problem is when i checked with ABAP team they said there is no standard functional module to add two column.
Please note below :
Selection criteria is: 1) controlling area
2) Fiscal Year
3) From date and To date
4) Plan Version
5) Order Group.
My client suggested : S_ALR_87012993 this tcode to run, but we suggested with S_ALR_87013019 as in this tcode we can get all the details
That is required output fields, as it is showing all details but on yearly basis, he wants this to be period wise and also Abap team is not able to find standard functional module in the second tcode as well.
Out Put fields to Pop up
1) Orders.
2) Budget
3) Actual
4) commitment
5) Alloted
6) Available
These are two additional column
7)Purchase order
8) Delivery date.
Require your help to know which all tables are included to extract above out put fields please help me.
Thanks in Advance.
Regards,
SudeshHi Preeti,
Thanks for reply, can you please let me know is there any other way to show the output fields.
As my client is very specific to run the report on period wise, i also tried to execute the standard tcode S_ALR_87013019 and were we are getting all the required outputs to pop up but this is on year wise, but we can also check by period basis by clicking on order number and actual period basis where we can see period basis.
Also one more question,what is the commitment table which is popping up in this, please advise.
Thanks in advance.
Regards,
Sudesh -
Adding thousands of instances of a movie clip
I am trying to add around 20,000 instances of a single small
movie clip (HexTile) from the library into a container Sprite using
actionscript. The problem is it loads immediately and it loads very
slowly, so I would like to know if there is a way to preload it?
The class that adds the movie clip library symbol (World) is not
the document class, nor is it referenced from the document class. I
have tried dragging an empty sprite linked to World, and I have
tried exporting it to other frames as well is preloading it as it's
own .swf...any suggestions would greatly appreciated! The code
looks like:Hi
I guess you can one thing. add dummy pre-loader before loop
and then just hide it after loop ;) -
Adding two more ipods to one computer
My daughter and I currently have I pods. When I got mine I was told to make a new user on the computer for my library (don't dare want my music mixed in with hers). Having the two users has worked well. I recenly moved our itunes (and hopefully libraries too...another thread) over to an external hard drive with each of our names. My twins 16th birthday is Friday. I am considering getting them each a nano. My question is do I need two more users on the one computer? OR, can I set it up to have theirs on the external with their names?
I hope that makes sense to someone!
Thanks in advance!Each user account will maintain a separate library as you know. All users can use the same physical storage location. I recommend doing that, that way if one wants a song the other has all they have to do a use the add file or add folder option.
-
Adding Two more Wireless bridges - Etherchannel
Two facilites are connected via wireless bridge(AIR-BR1410A-E-K9).
we wanted to add wireless bridge at each facility to increase the bandwidth.
So we will have two wireless bridge at each facility connected wirelessly.
and we wanted to achieve it by doing some kind of etherchannel in the switches at each location... will it work ? please advise.
Thanks
SriHi ,
Here is the plan…
• Top left bridge will be Root Bridge for VLAN3 and only vlan 3 traffic is traversed.
• Bottom left bridge will be Root Bridge for VLAN 10 and only vlan 10 traffic is traversed.
• If any one of the bridge/link goes down, traffic will be diverted to other link automatically.
• By doing this we can use both of the links effectively.
Configuration is attached.. please let us know your ideas/// (Or would it work)?
Target device: Wireless Bridge 1
vlan 3 - Root Bridge
Vlan 123- non-root bridge
interface Dot11Radio0.3
encapsulation dot1Q 3
no ip route-cache
bridge-group 3
no bridge-group 3 spanning-disabled
bridge 3 protocol ieee
interface Dot11Radio0.123
encapsulation dot1Q 123
no ip route-cache
bridge-group 123
no bridge-group 123 spanning-disabled
bridge 123 protocol ieee
interface FastEthernet0.3
bridge-group 3
no bridge-group 3 spanning-disabled
bridge 3 protocol ieee
interface FastEthernet0.123
bridge-group 123
no bridge-group 123 spanning-disabled
bridge 123 protocol ieee
bridge 3 route ip
bridge 3 protocol ieee
bridge 3 priority 9000
bridge 123 protocol ieee
bridge 123 priority 10000
Target device : Wireless Bridge 2
vlan 3 - Non-Root Bridge
Vlan 123- Root bridge
bridge 3 route ip
bridge 3 protocol ieee
bridge 3 priority 10000
bridge 123 protocol ieee
bridge 123 priority 9000 -
Adding two more fileds in the query
Hi All,
Here is my current working query.
SELECT
SUM(q1),SUM(q2),SUM(q3),SUM(q4)
FROM TEST
WHERE p_year = 2009
AND part = 'AA'
AND sup_code ='015'
GROUP BY p_year
*,part*
*,sup_code;*
From which i need modify the query to get the fields like serv1,serv2,serv3 and serv4 respectively.
If i modify like this
SELECT
SUM(q1),SUM(q2),SUM(q3),SUM(q4),serv1,serv2,serv3,serv4
FROM TEST
WHERE p_year = 2009
AND part = 'AA'
AND sup_code ='015'
GROUP BY p_year
,part
,sup_code
,serv1
,serv2
,serv3
,serv4;
It will filter the record based on the p_year,part,sup_code,serv1,serv2,serv3,serv4 which is wrong. It will filter the record only based on p_year,part and sup_code.
And also i tried this way
SELECT B.serv1,
B.serv2,
B.serv3,
B.serv4, A.q1,A.q2,A.q3,A.q4
FROM TEST B,
*( SELECT SUM(q1),*
SUM(q2),
SUM(q3),
SUM(q4)
FROM test
WHERE p_year = 2009
AND PART = 'AA'
AND sup_code = '015'
GROUP BY p_year,
PART,
sup_code; )A
WHERE p_year = 2009
AND PART = 'AA'
AND sup_code = '015'
But Its also not working.. Could any one help me how to modify the query?
Thanks in advance!try this
select YR,
PART,
SUP_CODE,
SUM(Q1),
SUM(Q2),
SUM(Q3),
SUM(Q4),
SUM(SERV1),
SUM(SERV2),
SUM(SERV3),
SUM(SERV4)
from
select 2009 YR, 'BB'Part,10 Sup_code, 237 Q1, 90 Q2, 100 Q3 ,123 Q4, 100 SERV1, 100 SERV2, 245 SERV3, 985 SERV4 from dual union all
select 2009 YR, 'AA'Part,51 Sup_code, 727 Q1, 727 Q2, 1853 Q3 ,1853 Q4, 204 SERV1, 292 SERV2, 392 SERV3, 392 SERV4 from dual union all
select 2009 YR, 'AA'Part,51 Sup_code, 780 Q1, 780 Q2, 1458 Q3 ,1458 Q4, null SERV1, null SERV2, null SERV3, null SERV4 from dual union all
select 2009 YR, 'AA'Part,51 Sup_code, 477 Q1, 477 Q2, 477 Q3 ,477 Q4, null SERV1, null SERV2, null SERV3, null SERV4 from dual union all
select 2009 YR, 'AA'Part,51 Sup_code, 27 Q1, 27 Q2, 96 Q3 ,96 Q4, null SERV1, null SERV2, null SERV3, null SERV4 from dual
group by YR,
PART,
SUP_CODE -
Removing movie clips with added children
If I have a movie clip added as a child to another movie clip
on the stage, and I remove it's parent, and null all references to
the parent, will both the parent and child movie clip be deleted by
the garbage collector? If so, will it be done on it's regular pass
or by mark and sweep?OK, so if I add a movie clip like this:
function addMovie()
var toAdd:MovieClip = new Example(); // example extends
movieclip
this.addChild(toAdd);
I'm assuming that toAdd will be nulled when the function is
complete, because it's a local variable. Then if I put code inside
the movie clip at a certain frame or in a function in the class
Example to get rid of it:
this.parent.removeChild(this);
I'm assuming that's all i need to do to get rid of it. I
can't null the instance of the class Example using this = null from
inside it, and the only reference to it is the child reference from
the parent.
Am I right or is there more I need to do to make the instance
of example eligible for GC? -
Invisible "Movie Clips" in Director
I have been banging my head against the wall trying to figure
out how I would do the equivalent in Director:
In Flash I have a movie with 2 movie clips. 1 clip is a buch
of questions and depending on how you answer them an animation runs
in the other movie clip. To the end user, it looks like one screen
on the same background.
In Director how do I create a separate timeline
(questions/clickable answers) that effect another timeline
(response animations)? If I use MIAW they have a window boarder. I
would really like it if these 2 timelines were running on a base
timeline where other things do their thing when the quiz is over.
This would be the background with all the other buttons/links.
Possible, impossible, stick to Flash? HELP!Wow, all of that sounds so much more complicated than 2 movie
clips on the stage in Flash. I would just create a Flash movie and
bring it into Director but here is the complication with that. The
response section has a musical score and a cursor that moves
accross the score with music that will play - well, actually that
isn't the response that is part of the listening portion of the
question that I want in the response area. So the user will be
instructed to listen to a section of music and follow along. When
the music stops playing he can slide the cursor back and forth to
see the music again if he needs to to answer the question that he
is now asked. If he answers wrong, the score will show him why he
isn't right. That is why there will be different responses to
different answers. Now all that coding for the moving cursor and
changing score has been done in director in another part of the
program where the student can listen to the entire piece and follow
along. I don't want to reinvent the wheel in Flash. I want to use
variations on the code that is written in Director.
So can I tell my Flash movie the plays in Director to move to
a mark on the Director timeline according to which Flash answer
they choose. This may be my easiest method.
OR I guess I could just use 2 Director movies. After question
10 change movies. I'm trying not to have a director score that's
1,500 frames. I would need to keep track of several variables
throughout the entire quiz. The more I think I have this solved,
the more I find I'm lost. -
How do you combine two or more movie clips into one movie clip in iMovie '09
how do you combine two or more movie clips into one movie clip in iMovie '09
First create an iMovie project. Then drag the clips (or portions of clips) that you need into the project.
When finished, use the SHARE menu to share the project. -
Using colorTrans:ColorTransform on more than one movie clip
Hi I am very new to Flash and action script so please bare with me...
I would like to be able to change the color of more than one movie clip in the same layer in the same frame. Basically I have place two different movie clips with defined instances,i.e. body and shoulder onto the canvas in one frame on the timeline.
I have created three different buttons (red_btn, blue_btn, and yellow_btn) to use to change the color of say the body or shoulder. I would use red and blue to change the body and say yellow and green to change the shoulders. These are also on the same layer and same frame on the timeline as the movie clips.
The problem I am having is how would I declare the two movies or variables to change independantly? Would I need to place one movie clip on one layer and then place the other on a different layer so that when I press the button I want i.e. the red button, it only changes the body and not the shoulders.
Here is my actionscript that I am using to change the color of the clip(s)
import flash.geom.ColorTransform;
import flash.geom.Transform;
var colorTrans:ColorTransform = new ColorTransform();
var trans:Transform = new Transform(body);
trans.colorTransform = colorTrans;
blue_btn.onRelease = function() {
colorTrans.rgb = 0x0000FF; // blue
trans.colorTransform = colorTrans;
red_btn.onRelease = function() {
colorTrans.rgb = 0xFF0000; // blue
trans.colorTransform = colorTrans;
yellow_btn.onRelease = function () {
colorTrans.rgb = 0xFFFF00; //yellow
trans.colorTransform = colorTrans;
body here is my declared variable wich is the body of a shirt that is one movie clip. When you place both clips on the timeline ontop of each other, you basically get a shirt with different color shoulders and body.
I need some help to know if this is possible first of all, and then what would be the best way to delcare the variables in one actionsript.
Thanks and I am sorry, I just never learned much when it came to flash. Thanks for any patience and help anyone is willing to give me.every movieclip has a transform.colorTransform property that you can use to assign a color transform (with any rgb property). so, for example:
import flash.geom.ColorTransform;
import flash.geom.Transform;
var colorTrans:ColorTransform = new ColorTransform();
bluebody_btn.onRelease = function() {
colorTrans.rgb = 0x0000FF; // blue
yourbodymovieclip.tranform.colorTransform=colorTrans;
blueshoulders_btn.onRelease = function() {
colorTrans.rgb = 0xFF0000; // blue
yourshouldersmovieclip.transform.colorTransform = colorTrans;
yellowbody_btn.onRelease = function () {
colorTrans.rgb = 0xFFFF00; //yellow
yourbodymovieclip= colorTrans;
etc -
IPad - with movie clips - how can I play more than one at a time?
iPad2. I post short movie clips via iTunes to the Photo catagory. I can play each of these clips by selecting the clip and pressing the start arrow, only the selected clip will play. How can I select a group of movie clips and have them play with only one selection. Like a "slide show" but for movie clips???
More than one contacts at a time
-
Can/ how do I link two or more "projects" - not events or clips - "projects" together in final cut pro 10?
Thanks Tom -
I created two "sequences". They are currently listed individually in the "project library". Now I want to take sequence "B" and attatch it in it's entirety to the end of sequence "A" - forming one long sequence.
I have tried to drag sequence "B" and drop it into "A's" timeline. I have tried to creat a compound clip. I'm either missing something - or - you can create a compound "clip" or a compound "event" - but perhaps you cannot link to "projects" together.
Does this help descibe my problem?
Thanks again.
Maybe you are looking for
-
Creating credit memo request - V1 498 / missing order quantity
Hi Experts, could any of You pls help me with a credit memo creation issue? I credit memo needed to be created based on invoice, so configuration and copy control is done as usual, but I have a failure during CR order creation referring to an invoic
-
Add Users from people picker field to sharepoint group
Hi, I have created infopath form and added people picker control and then created data connection to add users to sharepoint group. Used UserGroup webservice and "AddUserToGroup" operation. If I select single user in people picker and click submit bu
-
Here's some simple program I created (or part of it): while (!(mass >= 0) || (Double.isNaN(mass) == true)){ System.out.print("Mass: "); mass = reader.readDouble(); }I set imported TerminalIO and near the top set the doubl
-
I have the Jetpack 4GLTE, what is the Mbps download and upload speeds for this device?
I have the Jetpack 4GLTE, what is the Mbps download and upload speeds for this device?
-
OK this is annoying. I want to embed 'Tweet this' style links. This is possible using a link such as this: https://twitter.com/intent/tweet?text=The+project+attempted+to+follow+an+agile+methodology +%26+borrow+the+Lean+Startup+principles+of+Build-Mea