Timer Controlled MCs?
I think this is very simple but I can't seem to produce the correct code. I have 5 mc's and I want them to rotate forward with swapDepth every 20 seconds or so. I have the swapDepth working but I need a way to tell the mc's to run there internal animation and swap to the front in timed sequence. (I dont want to use long tweens because obvioulsy that sucks)
Basicly every 2O seconds I would like the mc's to swaps depth to the front and play that mc's animation. Help?
-Agent C4
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 05-12-2006, 03:49 PM
View Complete Forum Thread with Replies
Sponsored Links:
Timer Controlled Events
I'm creating a small flash file with a sunrise and sunset. Now, I want these to happen every 30 seconds but I can't, for the life of me, work out how to do this using a timer function. Has anyone got any ideas?
What I need is after the first 30 seconds then the variable timeSunset = 1 and a further 30 seconds after that makes the variable timeSunrise = 1. This process needs to be kept going around in a loop with a 30 second gap between sunrise and sunset.
View Replies !
View Related
Help With Simple Timer Controlled Function
Hey there,
I'm trying to detect if the user has not moved the mouse in my flash menu for 5 seconds, and if so, reset the menu. I stumbled upon the following:
http://livedocs.macromedia.com/labs/...=00000075.html
(note the corrected code in the comments...)
... and this is as far as I've gotten. Any help would be greatly appreciated!
Code:
navReset = function () { /* I'm ok with this part - just need to write it */ }
var minuteTimer:Timer = new Timer(1000, 5);
minuteTimer.addEventListener(TimerEvent.TIMER_COMPLETE, navReset());
minuteTimer.start();
onMouseMove = function() { minuteTimer.start();} // will this even restart the timer ?
View Replies !
View Related
Timer Controlled Movie Clips
Hey folks,
I have a movie clip that I want to play every 30-45 seconds. Basically it will start, run through the movie clip and stop and wait 30-45 seconds before it starts again.
Can anyone point me to a tutorial or know how to write a script to do this. I looked some stuff up but am having trouble coming up with a solution. The name of the movie clip is: lights_mc
Thanks a lot!
View Replies !
View Related
Timer Controlled Movie Clips
Hey folks,
I have a movie clip that I want to play every 30-45 seconds. Basically it will start, run through the movie clip and stop and wait 30-45 seconds before it starts again.
Can anyone point me to a tutorial or know how to write a script to do this. I looked some stuff up but am having trouble coming up with a solution. The name of the movie clip is: lights_mc
Thanks a lot!
View Replies !
View Related
Timer Controlled Color Transition Effect?
I have a site that I'm putting together. The site is basically one large flash file, (760x560), and I'm having some trouble with one specific component.
I have a graphic that I want to change colors gradually over a specific amount of time. I have specific colors that I need to to change, so I can't invoke any randomness. I'd love to be able to do it all with actionscript. If all else fails, I'll just tween the whole thing, but I know there's a way to do this.
HELP! SOMEONE!!!
View Replies !
View Related
Difference Between Timer.stop() And Timer.reset()?
Hello,
What is the difference between Timer.stop() and Timer.reset() functions because it seems that the 2 functions do the same thing? I image Timer.stop() to stop the timer and when Timer.start() is called the timer starts from where it stopped. For example, if I have a 3 sec. timer (3000 ms). If I stop the timer after 2.5 sec. and start the timer again, I would expect the timer to expire/trip within .5 sec. Is this a correct assumption?
Thanks,
Nilang
View Replies !
View Related
Difference Between Timer.stop() And Timer.reset()?
Hello,
What is the difference between Timer.stop() and Timer.reset() functions because it seems that the 2 functions do the same thing? I image Timer.stop() to stop the timer and when Timer.start() is called the timer starts from where it stopped. For example, if I have a 3 sec. timer (3000 ms). If I stop the timer after 2.5 sec. and start the timer again, I would expect the timer to expire/trip within .5 sec. Is this a correct assumption? Code is attached below.
Thanks,
Nilang
Attach Code
// Declarations
var url:URLRequest;// Url
var snd:Sound;// Sound Object
var sndChan:SoundChannel;// Sound Channel Object
var sndPosition:Number;// File offset
var tmr:Timer;// Timer object
var isPlaying:Boolean;// Flag to indicate whether file is
// playing or not
var isPlayDelayed:Boolean;// Flag to indicate whether starting
// of file has been delayed or not
var hours:Number = 0;// Hours
var minutes:Number = 0;// Minutes
var seconds:Number = 0;// Seconds
var milli:Number = 0;// Milliseconds
var pauseTime:Number = 0;// Time when paused
var pauseLength:Number = 0;// Length of pause
var buttonPressTime:Number = 0;//
var timing:Boolean = false;// Flag
// Initialize variables.
isPlaying = false;
isPlayDelayed = true;
sndPosition = 0;
// Get url
url = new URLRequest("sound1.mp3");
// Create new Sound object
snd = new Sound();
// Create new SoundChannel Object
sndChan = new SoundChannel();
// Create a new Timer Object with timeout of 5 sec.
// and repeat it only once.
tmr = new Timer(5000, 1);
// Load the audio file
snd.load(url);
// Enable Event Listeners
tmr.addEventListener(TimerEvent.TIMER_COMPLETE, onTimerComplete);
stop_btn.addEventListener(MouseEvent.CLICK, onStop);
pause_btn.addEventListener(MouseEvent.CLICK, onPause);
play_btn.addEventListener(MouseEvent.CLICK, onPlay);
this.addEventListener(Event.ENTER_FRAME, onEnterFrameHandler);
// Start time
pauseElapsedTime(false);
// Start Timer
tmr.start();
// Function that handles timer events
function onTimerComplete(e:TimerEvent):void
{
// Play audio file when timer complete event is received
sndChan = snd.play(sndPosition);
// Set the isPlaying to true to indicate file is playing
isPlaying = true;
// Set the isPlayDelayed to false
isPlayDelayed = false;
trace("onTimerComplete: " + e);
trace("target: " + e.target);
trace("current target: " + e.currentTarget);
}
// Function that captures frame events
function onEnterFrameHandler(e:Event):void
{
// Local variables
var totalTime:Number = (getTimer()/1000)-pauseLength;
var goTime:Number = totalTime-buttonPressTime;
// If flag is true, then calculate the time that has elapsed
if( timing )
{
// Calculate time
hours = Math.floor(goTime/3600);
minutes = Math.floor((goTime/3600-hours)*60);
seconds = Math.floor(((goTime/3600-hours)*60-minutes)*60);
milli = Math.floor((goTime-(seconds+(minutes*60)+(hours*3600)))*100);
// Display elapsed time
timeText.text = format(hours) + ":" + format(minutes) + ":" + format(seconds) + "." + format(milli);
}
}
// Function that captures mouse click events when user clicks stop button
function onStop(me:MouseEvent):void
{
// Reset time
restartElapsedTime();
if (isPlaying)
{
// If audio file is playing then stop the audio file, set file offset to zero,
// and set isPlaying flag to false
sndChan.stop();
sndPosition = 0;
isPlaying = false;
isPlayDelayed = true;
}
else if (isPlayDelayed)
{
// If audio playback is delayed then reset the timer and
// set isPlaying to false
tmr.reset();
isPlaying = false;
}
}
// Function that captures mouse click events when user clicks pause button
function onPause(me:MouseEvent):void
{
// Pause time
pauseElapsedTime(true);
if (isPlaying)
{
// If audio file is playing then stop the audio file,
// set file offset to current offset, and set isPlaying flag to false
sndChan.stop();
sndPosition = sndChan.position;
isPlaying = false;
}
else if (isPlayDelayed)
{
// If audio playback is delayed then stop the timer and
// set isPlaying to false
tmr.stop();
isPlaying = false;
}
}
// Function that captures mouse click events when user clicks play button
function onPlay(me:MouseEvent):void
{
// Start time
pauseElapsedTime(false);
if (!isPlaying)
{
if (!isPlayDelayed)
{
// If the audio file is not playing and playback is not delayed, then
// play the audio file from the last offset and set isPlaying to true
sndChan = snd.play(sndPosition);
isPlaying = true;
}
else
{
// If the audio file is not playing and playback is delayed, then
// start the timer and set isPlaying to false
tmr.start();
isPlaying = false;
}
}
}
// Function that sets the time to 00:00:00.00 (default)
function restartElapsedTime():void
{
timeText.text = "00:00:00.00";
buttonPressTime = (getTimer()/1000)-pauseLength;
pauseElapsedTime(true);
}
// Function that pauses time
function pauseElapsedTime(b:Boolean):void
{
if( b )
{
pauseTime = getTimer()/1000;
}
else
{
pauseLength = ((getTimer()/1000)-pauseTime)+pauseLength;
}
timing = !b;
}
// Function adds 0 to the front of the number when it is < 10 and
// returns a String
function format(n:Number):String
{
if( n < 10 )
{
return ("0"+n);
}
return n.toString();
}
View Replies !
View Related
Timer - Not Timer Class, But Time Taken To Do Certain Events
So i'm making a little game and want to know how to start a timer and display the number of milliseconds between the start and finish of two different events. I do not want to run a function after 5000 milliseconds or whatever, just record the length of time taken to say click two buttons.
Basically a stopwatch.
I saw the getTimer(); function but i'm not sure of how to use it or if that is what i need.
Once again, thanks for your time.
View Replies !
View Related
Running Timer And Timer With Offset
Hello all,
I'm trying to set up two timers in that dare feed the time in minutes and seconds from the server.
Basically, I've got a master running timer in seconds and minutes but also want to have a second cloned timer that is feed some seconds via flashVars to add to the the master time.
Both of these timers once set by the sever time feed in, and with one being offset, are called every second by a setInterval function call so they count up.
Setting up the master running timer isn't a problem but with my coding skills is a little messy..
Code:
_global.masterRunningTimeInMinutes = 59;
_global.masterRunningTimeInSeconds = 55;
if (_global.masterRunningTimeInSeconds>0 && _global.masterRunningTimeInSeconds<59) {
_global.masterRunningTimeInSeconds++;
} else {
_global.masterRunningTimeInSeconds = 0;
_global.masterRunningTimeInSeconds++;
if (_global.masterRunningTimeInMinutes>=0 && _global.masterRunningTimeInMinutes<=58) {
_global.masterRunningTimeInMinutes++;
} else if (_global.masterRunningTimeInMinutes>=59 && _global.masterRunningTimeInSeconds>=0) {
_global.masterRunningTimeInMinutes = 0;
}
}
if (_global.masterRunningTimeInSeconds<10) {
_global.masterRunningTimeInSeconds = "0"+_global.masterRunningTimeInSeconds;
}
_root.runningTime.text = "v"+_global.masterRunningTimeInMinutes+":"+_global.masterRunningTimeInSeconds;
Ideally I wanted to to get the master running time to display MM:SS so if anyone can help with that that would be great!
I suppose the real problem I'm having is is setting up the pattern for determining the cloned time with the offset.
This is becoming a real headache but if anyone can help I would really appreciate it! Basically I just wanted to have the running time with the cloned time always a certain amount of seconds ahead.
Many thanks, amp3
View Replies !
View Related
MC Controlled By Buttons
hi
in my scene i got 7 buttons that play a headline for each, should disappear when next headline comes in.
every headline is a MC (MovieClip), assigned with instance name (u1, u2,...). this mc is a couple of frames long. on frame one i have a stop action on an empty keyframe. the fadein ani is from frame 2 - frame 21. on frame 21 i have a stop action. from frame 22 till endframe i have my fadeout ani.
in my scene, on each button, i have an action that tells my headline-mc s to play if currentframe == frame21, else stop (i.e.:to tell mc s to play fadein-ani / fadeout-ani).
somehow they don`t fadeout / disappear , makin me crazy
thanx 4 everything
View Replies !
View Related
How Are These Movies Controlled?
Hi
Could someone take a look at http://www.urchin.com/
You will see in the bottom left corner there is a flash movie that when you put your mouse over one of the titles say "corporate" it plays the movie associated to that title, and when you mouse off, it cycles through all the logos. This is the same for the other titles "Education", "Government" etc.
How would this be achieved, could someone please give me some help!
View Replies !
View Related
Controlled From Ext. File
Can I control the location of a movie clip from a text or xml file?
I know flash can get info from an ext. file but can it be controlled by one?
So in the ext. file u hav some think long the lines of – mc01 = x50 y250
If any can help it would be much appreciated
Cheers
View Replies !
View Related
Nav Controlled By Function()
Hi,
I'm trying to control the navigation of my latest site using a function to move the playhead to a specific frame on the main time line. I've followed a tutorial but the blasted thing doesn't work.
Anyone know what I've done wrong? I have 5 pages and have made sure all the buttons have been named correctly and so on.
The script I'm using is...
};
this.buttons.profile_mc.profile_btn.onRelease = function() {
gotoAndStop("profile");
};
this.buttons.products_mc.products_btn.onRelease = function() {
gotoAndStop("products");
};
this.buttons.offers_mc.offers_btn.onRelease = function() {
gotoAndStop("offers");
};
this.buttons.services_mc.services_btn.onRelease = function() {
gotoAndStop("services");
};
this.buttons.contacts_mc.contact_btn.onRelease = function() {
gotoAndStop("contact");
};
Cheers
Steve
View Replies !
View Related
Script Controlled FLV
I am currently working on a flash site with a talking head video. What I'm looking to do is when the video completes, to have that last frame of the video fade to the first frame with the video rewound and ready to play again when the user chooses. Is there any tutorials out there that anyone knows about? or any help would be very much appreciated. thank you. _w
View Replies !
View Related
Playlist Controlled Into Non-playlist Controlled?
Hi,
I have made a mp3 player based upon (but with my own design) this tutorial:
http://www.thegoldenmean.com/techniq...yer_v2_01.html
But as in my original design there is no room (or need) for a visual playlist, I want to get rid of it. I want my player to be completely controllable by these four buttons: prev/stop/play-pause/next, instead of having to double click in the playlist to enable playing of a song.
(Basically the player exists ONLY out of these four buttons, visually).
Is there some kind of standard/procedure/tutorial for turning playlist controlled mp3-players into button-controlled mp3-players?
Does anyone wanna give it a go? All tips would be appreciated as I have unsuccessfully tried it myself for ..many many hours now.
I've attached the .fla as well as a zipfile containing 3 other files (songList.xml.php, arrays.php, id3v2.php) which should be placed in a folder called "tracks" (in that same folder mp3 files should be place in order to test the player)
regards,
M.T.Pilot
(n.b. I used flash MX pro and actionscript 1.0 for this)
EDIT: attachments removed due to inactivity of this thread
View Replies !
View Related
Controlled Loop?
I know the most basic command in ActionScripts to keep my
Flash video from looping (stop();). Can I apply that command if I want
to end on a scene used previously in the movie (as in the example in
the
notes)? How does that work such that my movie doesn't stop after the
initial use of that scene and go no further?
Ideally, I would like to use the same scene as an opening and closing
sequence to my movie. However, after the second use, I would like to
have text saying "The End." Is there an if/then statement that defines
if this has played before or something?
View Replies !
View Related
Actionscript Controlled FLV
I am currently working on a flash site with a talking head video. What I'm looking to do is when the video completes, to have that last frame of the video fade to the first frame with the video rewound and ready to play again when the user chooses. Is there any tutorials out there that anyone knows about? or any help would be very much appreciated. thank you. _w
View Replies !
View Related
Keyboard Controlled Xs
I'm just making a quick flash movie with 3 large gray Xs in the center. I want to be able to press the number 1 and then the first X will light up. Then, if the number 1 is pressed again the X will turn back to gray. I would like to be able to do this for X 2 and 3 as well. So all independant. I would also like there to be a buzzer sound when pressed. I'm kinda looking for a judge panel type thing. But any hints as to what I need to do in action script would be great!
View Replies !
View Related
Key Controlled Navigation
I want to make an interface that can be controlled by the mouse or by the arrow keys - the only simlat to what I'm trying to achieve is the game Colin McRae.
Lets say I have 3 buttons. If I move my mouse on any of them it gets an mouse over effect.
What I want to do is to combine this with the arrow keys that should be able to jump between the buttons - and the one selected is in the "over" state - to select it I press return.
How on earth is this achieved?
Would be more than grateful on any tips or hints!
Also posted on actionscript.org without any luck.....
Thanks
/sput
View Replies !
View Related
Vertical Pan Btn Controlled
Hi Team,
I am trying to make a background scroll vertically. The scrolling should be controlled by three buttons. Top, middle, and bottom, also with some easing. I have been trying to make it work with tweens but it seems to complicated. I looked at the following tutorial
http://www.kirupa.com/developer/flas..._image_pan.htm
and have been trying to modify it but with no luck. Does anyone know where I can find a tutorial for doing this please let me know. If you don't know what I am talking about, here is an example of what I am trying to create:
http://www.buscarov.com/
Thank you
BonWhis
View Replies !
View Related
Help W. Timeline Controlled Mcs
I've been successful controlling my movie clips from the main timeline however I recently entered a text movie clip into the timeline and I cannot figure out for the life of me how to control the movie from the timeline. I can get it to play, but the movie stops there.
I've been using:
Code:
stop();
_root.gotoAndPlay("framelabel");
but with the text effect where it uses so much AS I dont know what to put to make it continue on to the next frame label when its completed.
Code:
stop();
//
textvar = textvar.split("");
//
this.letter_mc._visible = false;
//
numberOfLetters = 0;
Xsetter = this.letter_mc._x;
thisTimeline = this;
//
buildLetters = function () {
if (numberOfLetters<textvar.length) {
//
duplicateMovieClip(letter_mc, "letter_"+numberOfLetters, numberOfLetters+1);
//
thisTimeline["letter_"+numberOfLetters].shadow_txt_mc.textbox.text = textvar[numberOfLetters];
thisTimeline["letter_"+numberOfLetters].top_txt2_mc.textbox.text = textvar[numberOfLetters];
thisTimeline["letter_"+numberOfLetters].top_txt_mc.textbox.text = textvar[numberOfLetters];
//
thisTimeline["letter_"+numberOfLetters].shadow_txt_mc.textbox.autoSize = true;
thisTimeline["letter_"+numberOfLetters].top_txt2_mc.textbox.autoSize = true;
thisTimeline["letter_"+numberOfLetters].top_txt_mc.textbox.autoSize = true;
//
thisTimeline["letter_"+numberOfLetters]._x = Xsetter;
//
Xsetter += thisTimeline["letter_"+numberOfLetters].top_txt_mc.textbox._width;
numberOfLetters++;
//
} else {
clearInterval(letterInterval);
}
};
//
letterIntervel = setInterval(buildLetters, 110);
I've defied the pass variable and just freeformed my text in on the MC frame AS. if someone could help me figure out how to make this movie perhaps, onClipEvent.stop and go to the designated frame label I'd really appreciate it. Thanks!
View Replies !
View Related
One Button, Two MC's Controlled
I have one MC with the following AS:stop();
this.onEnterFrame = function() {
if (rewind == true) {
prevFrame();
}
}
_root.about_btn.onRollOver = function() {
rewind = false;
play();
}
_root.about_btn.onRollOut = function() {
rewind = true;
}This works fine. However, I want the button "about_btn" to also control a second MC, but flip the rewind properties, like so:stop();
this.onEnterFrame = function() {
if (rewind == true) {
prevFrame();
}
}
_root.about_btn.onRollOver = function() {
rewind = true;
}
_root.about_btn.onRollOut = function() {
rewind = false;
play();
}but no such luck with the second MC. Even if I apply the same AS code to the second MC, it still won't work. Thoughts?
View Replies !
View Related
How Are These Movies Controlled?
Hi
Could someone take a look at http://www.urchin.com/.
You will see in the bottom left corner there is a flash movie that when you put your mouse over one of the titles say "corporate" it plays the movie associated to that title, this is the same for the other titles "Education", "Government" etc.
How would this be achieved, could someone please give me some help!!
View Replies !
View Related
Microphone Controlled Mc
hi,
I was wondering if it was possible to control mc with a microphone.
Want I want to do is to have a sphere in the center of the scene , and when we whistle to microphone i want the spehere to blur...
Thats it
Thx
LF...
View Replies !
View Related
How Are These Movies Controlled?
Hi
Could someone take a look at http://www.urchin.com/.
You will see in the bottom left corner there is a flash movie that when you put your mouse over one of the titles say "corporate" it plays the movie associated to that title, this is the same for the other titles "Education", "Government" etc.
How would this be achieved, could someone please give me some help!!
View Replies !
View Related
Time Controlled Flash
I am considering designing a screen saver by making a flash file and using SWF Studio to convert to a screensaver. The file is to be a countdown to an important date. I'm new to actionscript and would like advice as to the best way to do this. How do I get the info to change at a pre determined date/time? say a daily screen that says "X days to go !" ...I understand that there is a date object but am unsure how to use this. Any help gratefully received.
Tahnks
View Replies !
View Related
Facing Keyboard-controlled MC
I am making a fairly complex turret in my little-known space game that doesn't have a name and can only be seen on my hard-drive.
This turret needs to face the playership, which is a movie clip controlled by the keyboard. Every 2 seconds or so, the turret will fire a bullet at the playership.
Help.
View Replies !
View Related
Mouse Controlled Movie
Hey guys
I was wondering if it was possible to make it so that a movie clip moves in accordance with mouse movement. For example, if the mouse moved all the way to the left, then the movie clip would move all the way to the right. And the movie clip location would be constantly updated as the mouse was moving. Thanks everyone
Don
View Replies !
View Related
Controlled Chain Reaction?
I am handling a dangerous piece of script here: I would like to create some sort of chain reaction where one Mc gets cloned then these two have two other duplicates and so on.
I am struggling with the fact that my code inherited from one MC to the next causes an uncontrolled cloning frenzy. How can I do this in a controlled way without the code crashing on me?
I noticed that a lot of the duplicates carry the same name. How can I prevent this?
Code:
///onload Movieclip
Movieclip.prototype.createDupe=function(Clip){
i=Math.floor(Math.random()*3);
if(_root.Dupe10==undefined){
var thisDupe = Number(Clip._name.substr(4));
newDupe= thisDupe+Direction[i];
///duplicate and name MC Dupe
duplicateMovieClip(Clip,"Dupe"+ newDupe, newDupe);
///put the new dupe in place
_root["Dupe"+ newDupe]._x = _root.Clip._x+XPosition[i];
_root["Dupe"+ newDupe]._y = _root.Clip._x+YPosition[i];
}else{
break;
}
};
Is anybody out there with a genuine idea?
View Replies !
View Related
Subnavigation Controlled In HTML
Hi guys,
I'm very bad at actionscripting so I'll ask you guys:
I found a site that controlled its subnavigation via HTML with this code:
EMBED id="flashmovie" src="./swf/nav/diensten_sub.swf?mNav=2&sNav=2&basehref=http://www.usmedia.nl/"
I can see in this code they send variables to the swf diensten_sub.swf (?mNav=2&sNav=2). What does this do exactly, and how? Are they pointing the swf to a certain scene?
I'm creating a side I dont want to make in frames, but when pushing a button it loads a new HTML with the same swf, but the button has to stay highlighted. Usually it reloads the swf and it starts at the beginning...
any ideas on how to do this?
thanks
View Replies !
View Related
Button Controlled Animation Help
i've made a simple animation with a ball bouncing, controlled by buttons( one to start, another to stop) but i haven't figured out how to make it so the ball continuously bounces until i press stop. my teacher had showed us to put a stop action at the start of the clip, and the only way that i have found to keep the ball bouncing is to take that stop out, but that makes it so the ball is bouncing when i load the clip. could someone help me out here?
View Replies !
View Related
Horizontal Cursor Controlled Nav Bar HELP
i am using a turtorial for a "Horizontal Cursor Controlled Nar bar"
It uses images as buttons that scroll across the screen.. well,
id like to use it as a picture gallery nav... where the thumbnails
scroll and when you click one, it will load the full sized image in
the same window above.
I dont care if it loads the image in the flash movie, or in the
html above the scrolling movie, but i cant think of how to make it
work... i am still very new to this all!
THANKS FOR THE HELP!!!!
jason
View Replies !
View Related
A Time Controlled Movie
hello, i was wondering, how do you add time to a random .swf movie? i have different .swf appearing each time you hit a refresh button and i was wondering how to add a timer so that the .swf changes every 15 seconds. right now my script looks like this...
randomClips = new Array("d+l A_news.swf", "maashaven B_news.swf", "maashaven A_news.swf", "gipsy A_news.swf", "gipsy B_news.swf", "d+l B_news.swf", "gw A_news.swf", "gw B_news.swf","soundscapes A_news.swf", "soundscapes B_news.swf");
//this is on one line//
//next lines reads this//
function randomBackground() {
randomNumber = random(randomClips.length);
loadMovie(randomClips[randomNumber], "_root.mtClip");
}
randomBackground();
what is the time script and where would it go?
View Replies !
View Related
Open In Controlled Window
Hey I need to make a link from a .swf that opens another .swf in a new window.
This window needs to be controlled. If I were to use HTML I would script it with this code.
(<a href="#mansei!" ONCLICK="window.open('hosting/space.htm', 'NewWindow','toolbar=no,location=no,directories=no ,status=no,menubar=no,scrollbars=yes,resizable=no, copyhistory=yes,width=441,height=357')">)
Here the window wouldn't have a toolbar, menubar, and wouldnt be resizeable.
Is it possible to do this in flash?
Thanks.
View Replies !
View Related
Controlled Image Transition
This one has got me frustrated, and I'm sure there is probably a simple solution which is even more annoying...
Heres where I am at: I have an interface design that will move up and down to targeted postitions with the click of a button (simple enough), along with that moves a scrolling background that changes the image (through a fading transition) also when you click one of the buttons (again simple stuff). Heres where my problem comes in. At the moment when you click the various buttons the image will change in a set order (i.e. 1-2-3-4) no matter what button you click. My goal is to get the image to change using the same transition effect only the button controls the image it changes too (i.e. push button one, change to image 1; button 3 changes to image 3, etc...).
I've tried using swapdepth functions, however this stops the tween that scrolls the background. Any suggestions and help will be greatly appreciated.
An example of what I have so far to get a better Idea of what I am babbling about can be found here: http://members.cox.net/salvationalizm/main.html
Thanks for your time
-Salvationalizm
View Replies !
View Related
Dynamically Controlled Movies
Ok I am trying to make a site that when your on one page and click to go to another a little animation will play and then an entrance animation will play for the next part. My problem is i can figure out how to tell flash to look at were its at in the timeline currently and then load the corresponding exit movie and after that plays the new entrance movie. If I didnt explain this very well here is an example of what i'm talking about.
http://www.whoswestudios.com/flashsite.html
Any help or links to help would be greatly appreciated.
View Replies !
View Related
Airplane Controlled By Mouse?
Hi all,
I am working on an old school fighter game. I have drawn a basic airplane and converted it to a Movie Clip. I would like to control this movie clips x and y positions based on the movements of the mouse.
I would it so that where ever the mouse pointer goes as long as in the window the airplane will go.
So far I only have it working with the left and right arrow keys. I'd like to forget the arrow keys and go only mouse.
Thank you,
Stea|th
View Replies !
View Related
Yposition Of MC Controlled By Button
Man, looked all over the place for code help for this, but couldn't find it. I have a snippet of code I use to change pos, scale, opacity, etc...
This works great when I change frames, but what if I want to control properties of a MC without changing frames? Is there a simliar tween motion snip of code anyone knows that I can put ON the button to control the MC of choice?
To change properties, I have been using this code:
ON THE MC I PLACE SOMETHING LIKE:
onClipEvent (load) {
targ = 83;
}
onClipEvent (enterFrame) {
_y -= (_y-targ)/3;
}
View Replies !
View Related
Mouse Controlled Masking
hi
A few months ago i spotted a nav system in flashkit(movies) which i really liked and would now like to use it but can't remember what it was called (yes i should have stored it in myfk!!) anyway it was basically a nav which the mouse controlled masks on a horizontal scale as you moved the mouse left or right bars would move in tandem to reveal pictures and as you rolled over a link it would automatically close up the rest of the links and just keep that one open. it was very similar to the old eyedea.co.uk if anyone can remember that.
Any help would be great in pointing me to the correct movieas i 've spent ages looking with no success
Regards
jon
View Replies !
View Related
Time Controlled MC's (interesting)
Hey
I was reading about time controlled MC's and i as wondering can it be done? It would be useful to know how but im not sure about it. Im not asking for a solution but merely an answer to if it can. then i can request a solution
Any info or insight will be useful
TedTLogan
View Replies !
View Related
Controlled Playing Of Movie
hi all,
Help me to control the playing of movie dynamically. ie, lets say there is a text box and a command button in the stage and some animation is there for 100 frames. if we enter 10 in the text box and press the button, the the movie should play till the 10th frame and then it should stop. can this be done? please studds help me
View Replies !
View Related
Mouse Controlled Frames
Hey.
I’m looking for a tutorial to rotate a 3d device (not the QTVR one). One where the x position of the mouse would control the frames. i.e. if I move the mouse right it would scroll through the frames forward and if I moved the mouse left that it would go through the frames in reverse. The tutorial does not necessarily have to be in relation to a 3D object but on controlling the frames with the x position of the mouse.
Thanks people, you have been so helpful in the past.
I appreciate your time!
Darren
View Replies !
View Related
|