How To Make A Shiny Star
Jun 25, 2009i hope this is not a stupid question but does anybody knows how to make a shiny star?i want to add it on a picture.
View 1 Repliesi hope this is not a stupid question but does anybody knows how to make a shiny star?i want to add it on a picture.
View 1 Replieswell in my fla i have a movieclip exported with class name Star and in my Star.as file i have this code:
package { public class Star {
public function Star() {
this.visible = false;
}
}
i tried putting movieclip on and off stage but didnt work all i want to do is control my class Star in my fla. Im very new to OOP and trying to get the gist of how to control objects like the way you could by instances like i used to :/
Anyway, I'm looking to create a star object that flickers or blinks at random intervals. The object will also be part of a menu system and may need to perform other functions, so, I may need to roll my own class eventually.
Here is how I initally went about it:
Code: Select allfunction myRandom() {
var r:Number = (Math.random());
[code]....
I only want it to work as a form so i can have a php file process it.I don't need the actionscript just an idea of how I should start.
View 4 RepliesDoes anyone have an example of using code and the shape class to create a star shape?
View 1 RepliesI have a textbox where there should be a 1 to 5 star classification for a movie, so I used the star symbol (character code 0xAB) from the Wingdings Symbol Font. But instead of the stars, What I get is double angular quotes in Arial, the corresponding character in a normal text font: «
In fact, every Wingding character above 0x80 (included) is displayed in Arial instead of Wingdings. This also seems to happen with all Symbol fonts.
I've also made Wingdings into a font symbol but the problem still happens. It also happens in static text boxes.
To reproduce the error just make a text box and set the font to Wingdings. Now type something and it shows in Wingdings but press ALT+0171 (or copy the star from the Character Map app) and instead of a star, you get double angular quotes.
I saw following statement somewhere -var someVariable:*;Why is someVariable declared as * (star) type? What is the use of declaring it this way?
View 1 RepliesThis tutorial si about moving star out of the stage center, this is the script:
import flash.display.MovieClip;
import flash.events.Event;
var container:MovieClip = new MovieClip();
addChild(container);
addEventListener(Event.ENTER_FRAME, addstarred);
[Code]...
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.
[Code]....
i need to build a 5 star rating for a image gallery. when someone rates a image from the gallery i need to retrieve the rating (say like .5 or 2.5 or 3 or 4.5 or 5) How can we create something like a 5 star rating system in AS 3.0? Edited: not the solutions to send the rating vlues to database... I am looking for the logic to set the rating (stars changing the color indicating the rating has been updated) and get the rating values applied...
View 2 Repliesis there any good free source for star rating based on actionscript?
View 0 RepliesThis is other part to my earlier question that i posted before for those of you that came across it.Part 2: What i'm actually looking for is to do something similar to the Star Trek Movie website [URL]..for those unfamiliar. The bit that im looking for is a solution to achieve the full screen video background they have that simulates the user walking through the starship. Everytime you navigate to a different part of the website, this background video walks you through to another section of the ship.
I'm presuming its all flv, and i'm presuming its one big flv file divided into various "scenes", as the problem with having a seperate flv file for each "scene" is that it take a few seconds to load in between flv's and you get a blank white screen for a few moments (i've tried). Am i presuming the right method to go about achieving what they've done?
I am making a flash video of a star with different colors, but I want to change the stars colors randomly. I have got the code to change the star to random colors, but now I need to reset it to it's original color.
Does anyone know the default code?
this is the coding I'm using:
(Reset button/ Default codes to return my star to it's original state)
go_btn.addEventListener(MouseEvent.CLICK, goGo );
function goGo (e:MouseEvent):void {
star_mc.y = 200 ;
[Code]....
I get the error msg 1180: Call to a possibly undefined method Star.This is in the main timline
ActionScript Code:
for (var i=0; i>20;i++ ) {
var ta:MovieClip = new Star();
ta.x = Math.random()*300;
[code]...
i am develop 1 simple game for color fill to object, but now i have something wrong in my code...how do i get the correct answer if i click the red color and fill in to the star?
View 4 RepliesI'm trying to load some WDDX data into a shared object, but I'm having some troubles getting it back out. can open the sol file in a text editor and see that my data is in there, but I can't manage to access it. does putting information into a sharedObject change things? Can you load an array into a sharedObject and have it retain it's array-ed-ness?
View 6 RepliesI have a clip in the library with the linkage ShootingStar, and I need this to be randomly placed all over the stage at intervals of between 0.1 and 1 second, as well as random sizes between 100% and 300%. And having a random tint to it.
View 2 RepliesI have flash CS4 and I understand that you can "easily" replicate the star wars text scroll effect with the 3d tools. [URL]. I have followed that tutorial to the best of my ability but no matter what I do, I cannot get the text to scroll into the distance, it just moves upwards.
View 10 RepliesI'm using this code for tweening:
ActionScript Code:
var myTween:Tween = new Tween(star, "alpha", Strong.easeOut, 0, 0.9, 3, true);
And I also have some extra code that spawns stars all over the place.If you view my swf, http:[url]...., you can notice that the stars appear to 'flash' first before settling down.I'm simply wondering if this is some problem of the Tween class or if I set something wrong. Something I found odd was when I removed my code that generated a random colour for my star,
ActionScript Code:
//var myColor:ColorTransform = this.transform.colorTransform;
//myColor.color = Math.random()*0xFFFFFF;
//star.transform.colorTransform = myColor;
, the flash doesn't happen. Is it a visual effect that causes it to look like it's flashing or is it really?
has anybody seen somewhere a FLASH model of the Texas Star IPSC shooting target? What this target is and how it behaves can be seen in here: [URL] From physic's viewpoint this is a pendulum with mass and the length changing while it is swinging
View 1 RepliesIn the scene there is a star and an AI player.what equation would take the AI player on the most direct route to the star...i.e guide it into the path of the star...just to make things clear, the star is static and the ai plaer is controlled by the computer. i think you have to make two variables distx and disty and use some sort of trigonometry on them but i'm not entirely sure on how to go along doing this.
View 9 Repliesi want to make the character in my flash game make a jump when the player presses a key,e.g. 'space',even the player release the key instantly,the character will still finish the complete jump process.
View 1 Replieshow to stop the script when it's running.To make the sky no more snowy and make snow disappear.
View 1 RepliesIs it possible to make flash mx to take the time on the system and make it run a determined frame. I want to make a clock that shows the real time. How can I do it?
View 8 RepliesI followed the bit101 tutorial on gravity and now have a movie clip called "ball" (instance name) with an embedded invisible button (so you can throw it all over the place).I also have a movie clip called "block1" (instance name too! what a coincidence, isn't life lovely). I want to make them collide, and make the ball bounce away.
View 1 Repliesthis is my code for photogallery.there will be 61 images loaded in this array.how can i make an AUTO button which will make a slideshow,showing all the images in array?
arrayrow = new Array()
arrayrow=[
["00.jpg","0","sajkad","hjsgadhj"],[code].....
How can i make a combination of keys make a movie clip visible? Basically i want something like this to work:
if(Key.isDown(Key.Alt && Key.A)){
reminder._visible = true;
}
So when someone presses the Alt and A keys down at the same time the 'reminder' mc becomes visible?
Im have an flv playing on my stage. I want to make a mute button for the video that can instantly make the volume 0 or 100 depending on what it is.So i have tried using this code:
ActionScript Code:
m.onPress = function() {
[code]........However, it doesn't seem to work.
I need to make the background image move opposite the cursor to make it seem like the camera is moving.[URL]
View 1 RepliesI'm trying to make a preloader for a little flash project that involves re-assembling a load of rectangles to make up a pattern.Idea is that instead of the usual load bar i wanted to make use of this pattern that is relevant to the project and have it rebuild it self with these rectangles flying in from the side. So far I have got the tweening sorted using the tween class and staggered the 42 (yes took a little while, probably an easier way so let me know on that also) rectangles using 'setTimeout' so it releases each 100milliseconds after the one one before it. This probably the wrong way to do it but i wanted to check how it looked and this was the one way i knew how to do it.
I want to make it so that these rectangles fly in a complete the pattern once the loading has finished, but on a fast connection I don't want it to rush the animation but for a slow connection I obviously want it to adjust the release time and maybe even the travel speed to compensate.
I had an idea of maybe working out the percentage loaded divided by 42 and then run an if statement to see if that percentage for that segment had been reached before 100millseconds had passed, if 100 had passed then release the rectangle, if not then hold the rectangle until 100 m/s had passed. Not sure if that is the best way to do but that's why I'm looking for some suggestions from more experienced developers.
Code:
import mx.transitions.Tween;
import mx.transitions.easing.Regular;
// declare variables
[code]....