Putting A Counter In A Flash Button
is it possible to make it when u click a button it adds to the in flash counter?
FlashKit > Flash Help > Flash Newbies
Posted on: 10-14-2005, 10:20 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Putting Data In A Button
is it possible to set a data information in a button? something like the components have mybutton.getSeletedItem.Data i really need some help!
Instead Of Putting Button On Top Of Scrolling Text..
hello,
I've made a scrollPane. The scrollContent is a linkage mc with text in pixel fonts. The font is nice and sharp, and the scrolling is working well.
Now I want to put actions to some of the text. Is there any other way to do instead of putting buttons on top of them?
Problem with button is that once you reformat your text, you have to re-position those buttons all over again. Plus it's difficult to align buttons if i am using dynamic text.
Is it possible to have action linked to text like the way you can have url linked to specific text in MX?
Thanks!
Putting A Window Pop-up Link In A Button
<a href="somepage.html" onClick="window.open('somepage.html','Status_Detai ls','height=500,width=639,menubar=no,scrollbars=ye s,resizable=yes'); return false;">
Thats the link I want to put in my flash movie. Does anyone know how to do this?
Thanx in advance.
Putting A Button In A Movie Clip.
Okay, I've made a button that's an image and all. But now i need to insert that button into a movie clip. Can anyone help me out on how to do that? Thank you!
Putting Sound On A Button - Major Help
Hey,
I want to make a button that when u press it, it plays music.
I have tried everything and really need some help.
I have liked the song file to flash and when i export it, it does play but i have no idea how to controll it with a button.
please reply if you can help.
From DJ
URGENT: Putting Name Labels On A Button With Opaque Background.
Hi:
I have buttons that change colors whe you roll-over them and display different information related to each button.
What i need in addition is.....to have a box with text in it as a graphic—pop-up when u roll-over each button as well.
I have my original fla. file i would like to send for reference but it is too big to load on your forum (1MB thatexceedsd your 70KB limit) IS THERE ANYWAY I COULD EMAIL THIS FILE TO YOU so you can help me figure out this simple problem?
PLEASE HELP, I HAVE A DEADLINE FOR THIS & NEED THIS URGENTLY!
Thanks.
Button Counter
I would like to record how many times each button is selected on a standalone (using only swf files) site I am doing. Is it possible to send the results to an external log.
Button Counter
Basically, what I want to do is when the blue button (b1) is pressed, it makes the other circle (m1) change to a different color, stop and subtract 1 point from the counter. Once the b1 is pressed again, it changes back to the original color and ads 1 point to the counter.
Flash mx 2004
Button Counter
Hi Actioneers
Ok I have created some invisible buttons in a Video SWF movie and all runs ok on the web. I now want to add a Score/counter that increments to a numerical display on screen everytime the user clicks over the invisible button. (e.g 1, 2, 3, 4....etc ) I am using Flash 8 Pro Trial
Many thanks
Barry
Hit Counter Button For Website
Hi, I am pretty new to AS and even more new to PHP so I was wondering, I have a button that adds 1 every time you click it but I need to make the button into a hit counter that will keep track of hits and adds everyone's clicks together. Like a normal hit counter except with a button instead of when you come to the site.
Button Click Counter?
Hello, is it possible to attach a script to a button that will add 1 to the number that is in the dynamic text field every time you click the next button and subtract 1 everytime you click the back button? I am working with the Flash Mx 2004 Slide Presentation.
I have already tried: http://www.actionscript.org/forums/a...3/t-76203.html
Because I am working in th Slide presentation it is not working to put the count in the first frame of the flash file. It only works the first time you click on the button. It seems to reset the count every time you click on the button. So every time you click the count is still 2.
I am hoping that there is a script I can attach to the button! It seems possible but I have spent days trying new things without any success.
Can someone please help me with this?
Button Action To Add +1 To Counter
Hello... trying to figure this out...
I have a count-up counter (up to a set number) and Im trying to add a button, which when pressed will add +1 to the final count.
How can I do this?
Here's a snippet of the code which works with a dyn. text field:
PHP Code:
if (theNumber<76000) {
theNumber = theNumber+theChange;
if (theNumber>50) {
theChange = 19;
}
if (theNumber>100) {
theChange = 51;
}
if (theNumber>200) {
theChange = 81;
}
if (theNumber>3200) {
theChange = 873;
}
if (theNumber>75788) {
theChange = 3;
}
}
else if (theNumber>7600){
theNumber = 76000;
//_root.fadeIntro();
_root.numbers2.gotoAndStop(4);
}
Counter And Back Button
I added a counter to my project - counts the keyframes and shows 1 of 5, 2 of 5, etc.
For some reason, and this only happens on one frame - when I click the back button to go from keyframe 4 to keyframe 3, keyframe 4's swf doesn't unload and keyframe 3's flv shows over top of it.
I tried to put
unloadMovie("screen4_media/screen4.swf")
In screen 3 action script level thinking it would unload screen 4 if it was there.
This didn't happen until I added the counter.
Any thoughts would be appreciated.
Thanks
Hold Down Button Counter.
Ok, i have this problem- i have a button and a dinamic text field w/ an input variable called "myLuck". if the user clicks the mouse and holds it down the "myLuck" increses every 0.3 seconds by 1. also there is a variable called "left" which has a value of, say, 25. the user cannot use up more then the "left" is currently holding. I can't actualy come up with a reasonable AS, but this is where i am:
ActionScript Code:
on(press){ while(true){ Mouse.addListener(this.onMouseUp = function() { break } if(left > 0){ left = left - 1 myLuck = myLuck + 1 } }}
help anyone?
Download Counter Button ?
Hello folks,
Any idea how I could make a button in flash to download an MP3 file from my server, then increment a dynamic text field by 1 everytime it is downloaded. I dont want the user to be able to increment the counter if they accidently click more than once...
Thanks for any help!
Skid
Hold Down Button Counter.
Ok, i have this problem- i have a button and a dinamic text field w/ an input variable called "myLuck". if the user clicks the mouse and holds it down the "myLuck" increses every 0.3 seconds by 1. also there is a variable called "left" which has a value of, say, 25. the user cannot use up more then the "left" is currently holding. I can't actualy come up with a reasonable AS, but this is where i am:
ActionScript Code:
on(press){ while(true){ Mouse.addListener(this.onMouseUp = function() { break } if(left > 0){ left = left - 1 myLuck = myLuck + 1 } }}
help anyone?
Counter For Fastforward And Rewind Button
Hi guys,
firstly, this is my first post and i'm a total newbie in flash..pardon me
ok here goes...
i wanna create a fast forward and a rewind button for flash..
when i click on the fast forward button it goes to the next .swf file i wanna load..
for example my movie started at 1.swf when i click my play button and when i click the fast forward button it will go to 2.swf...
and for the rewind button when i am at 2.swf and when clicked it will go to 1.swf...
i was told i need a counter for this and do a Counter N den loadMovie(N+1.swf,screen) sort of logic for these buttons..
can anyone kindly help me please?
Thanks A MILLION!
Alvin
[CS3] Counter UP Timer Pause Button, One Works, The Other Does Not?
I have count up timer built and working fine in one contained mc called timer_mc.
The play,pause and stop button all work fine inside the mc. But when I have a pause button outside of the timer_mc, it does not work. This is the actionscript I am trying to use on this button :
PHP Code:
pause_btn.onPress = function (){ _root.timer_mc.gotoAndStop(1) if (timing) { timing = false; paused = true; } };stop();
I think the I have just got a little confused with the path and my script is pretty close. Can you see any obvious mistakes. I have attached a fla for you to have a nosey
Thank you for looking
Help With Creating A Button Counter That Displays An Average Vote
This is tough to explain, but here goes.
I have created a flash voting page, where users can click on the number's 1 through 10 in order to rate an image.
I would like that each button has an actionscript that records the click and adds 1 count to the "number of Votes" dynamic text field. I would also like that after a person has clicked on one of the numbers to vote, that particular number is registered, then averaged so that the new average is displayed in an "Average Vote" dynamic text field.
I have figured out how to actionscript it so that the numbers consistently add up, I haven't figured out however how to create and average, or deal with this in PHP so that when the page is refreshed (or brought back onto the browser,) the new totals in both dynamic fields are recorded.
Any advice would be greatly appreciated.
This is the actionscript I have on the number 1 button at the moment
on (release) {
_root.total = _root.total + 1;
}
on (release) {
_root.myCount = _root.myCount + 1;
}
on (release) {
getURL("thankyouforyourvotepage.html");
}
Thanx!
COpel
Putting Flash On A CD
**I Put The Same Question in the General Help Section But I Forgot To Mention That Im Using Flash MX**
Hello,
My friend and I are making a yearbook cd for our school and we want to put flash on there but we came into a problem. We made the flash and it is complete but when your linking one swf to another you have to put the location of the other swf. And since we made it on the hard drive, we had to put the link as C:........ but then we have to burn the CD and it is linked to the hard drive so of course its not going to work. So the question is there a standard you can put like a variable (X) or something in flash that it can specify which drive. Now we could do D:...... But then it would only work on D: CDROM drives, not E:,F:, ect. Well, let me know if you have any anwsers for our question. Thanks Alot.
David
Putting A New Flash On To A Old Url.....HELP
OK, I have a website that I want to upgrade. I only want the "Enter" page to have my Flash intro. I have the url and everything but I need to know how to put the flash into the webpage... So when I go to the page it will show the flash... Please help me.
Putting A Php Var Into My Flash AS3
I need to pass a php value from my page to a flash as3 on that page:
Here is the php:
PHP Code:
<?php
include("connection.php");
$id=$_GET['id'];
$GENRE=$_GET['GENRE'];
$sql="SELECT * FROM Movies WHERE id='$id'";
$result = mysql_query($sql);
if (!$result) {
echo "Could not successfully run query ($sql) from DB: " . mysql_error();
exit;
}
while($row = mysql_fetch_array($result)){
?>
The value i need to pass is here:
PHP Code:
echo $row['movie_hi'];
and here is the flash AS3:
Code:
import caurina.transitions.*;
var conn:NetConnection = new NetConnection();
conn.connect(null);
var stream:NetStream = new NetStream(conn);
stream.play("85391-13979.m4v");
var metaListener:Object = new Object();
metaListener.onMetaData = theMeta;
stream.client = metaListener;
var st:SoundTransform = new SoundTransform();
stream.soundTransform = st;
var video:Video = new Video();
video.attachNetStream(stream);
video.width = 780;
video.height = 370;
video.x = 0;
video.y = 0;
video_mc.addChild(video);
barBg_mc.thumb_mc.mouseEnabled = false;
barBg_mc.thumb_mc.alpha = 0;
barBg_mc.track_mc.buttonMode = true;
barBg_mc.speaker_mc.buttonMode = true;
barBg_mc.toggle_mc.buttonMode = true;
bigPlay_mc.buttonMode = true;
barBg_mc.volScrubber_mc.volThumb_mc.buttonMode = true;
stage.addEventListener(Event.ENTER_FRAME, enterFrame);
stage.addEventListener(MouseEvent.MOUSE_OVER, getInterface);
stage.addEventListener(MouseEvent.MOUSE_OUT, removeInterface);
barBg_mc.speaker_mc.addEventListener(MouseEvent.CLICK, mute);
barBg_mc.speaker_mc.addEventListener(MouseEvent.MOUSE_OVER, rollOnSpeaker);
barBg_mc.speaker_mc.addEventListener(MouseEvent.MOUSE_OUT, rollOffSpeaker);
barBg_mc.toggle_mc.addEventListener(MouseEvent.CLICK, pause);
barBg_mc.toggle_mc.addEventListener(MouseEvent.MOUSE_OVER, rollOnToggle);
barBg_mc.toggle_mc.addEventListener(MouseEvent.MOUSE_OUT, rollOffToggle);
bigPlay_mc.addEventListener(MouseEvent.CLICK, pause);
barBg_mc.track_mc.addEventListener(MouseEvent.MOUSE_OVER, trackOver);
barBg_mc.track_mc.addEventListener(MouseEvent.MOUSE_OUT, trackOut);
barBg_mc.track_mc.addEventListener(MouseEvent.CLICK, goToSecond);
barBg_mc.track_mc.addEventListener(MouseEvent.MOUSE_DOWN, trackDown);
barBg_mc.track_mc.addEventListener(MouseEvent.MOUSE_UP, trackUp);
barBg_mc.volScrubber_mc.volThumb_mc.addEventListener(MouseEvent.MOUSE_DOWN, volDown);
stage.addEventListener(MouseEvent.MOUSE_UP, volUp);
var xOffset:Number;
var xMin:Number = 13;
var xMax:Number = 309;
var volOffset:Number;
var volxMin:Number = 0;
var volxMax:Number = barBg_mc.volScrubber_mc.volTrack_mc.width - 7;
var volPercent:Number;
var totalLength:uint;
function theMeta(data:Object):void
{
totalLength = data.duration;
}
function enterFrame(e:Event):void
{
var nowSecs:Number = Math.floor(stream.time);
var totalSecs:Number = Math.round(totalLength);
if(nowSecs > 0)
{
barBg_mc.timerText.text = videoTimeConvert(nowSecs) + " / " + videoTimeConvert(totalSecs);
var amountPlayed:Number = stream.time / totalLength;
var amountLoaded:Number = stream.bytesLoaded / stream.bytesTotal;
barBg_mc.playStatus_mc.x = 46;
barBg_mc.playStatus_mc.width = 294 * amountPlayed - 1;
barBg_mc.dlStatus_mc.x = 46;
barBg_mc.dlStatus_mc.width = 294 * amountLoaded + 3;
}
}
function getInterface(e:MouseEvent):void
{
if(mouseX > 70 && mouseX < 710 && mouseY > 0 && mouseY < 360)
Tweener.addTween(barBg_mc, {alpha:1, time:3});
}
function removeInterface(e:MouseEvent):void
{
Tweener.addTween(barBg_mc, {alpha:0, time:3});
}
function trackOver(e:MouseEvent):void
{
stage.addEventListener(MouseEvent.MOUSE_MOVE, startFollow);
xOffset = mouseX - barBg_mc.thumb_mc.x;
}
function trackOut(e:MouseEvent):void
{
stage.removeEventListener(MouseEvent.MOUSE_MOVE, startFollow);
barBg_mc.thumb_mc.alpha = 0;
}
function startFollow(e:MouseEvent):void
{
barBg_mc.thumb_mc.alpha = 1;
barBg_mc.thumb_mc.x = barBg_mc.mouseX - (barBg_mc.thumb_mc.width / 2) + 2;
if(barBg_mc.thumb_mc.x <= xMin)
barBg_mc.thumb_mc.x = xMin;
if(barBg_mc.thumb_mc.x >= xMax)
barBg_mc.thumb_mc.x = xMax;
stage.addEventListener(Event.ENTER_FRAME, getTimeText);
e.updateAfterEvent();
}
function getTimeText(e:Event):void
{
var percentAcross:Number = (barBg_mc.thumb_mc.x - 12) / barBg_mc.track_mc.width;
barBg_mc.thumb_mc.trackTime_mc.text = videoTimeConvert(totalLength * percentAcross);
}
function goToSecond(e:MouseEvent):void
{
if(barBg_mc.track_mc.mouseX < barBg_mc.dlStatus_mc.width)
{
var percentAcross:Number = (barBg_mc.thumb_mc.x - 12) / barBg_mc.track_mc.width;
stream.seek(totalLength * percentAcross);
}
}
function trackDown(e:MouseEvent):void
{
stage.addEventListener(MouseEvent.MOUSE_MOVE, scrubTo);
xOffset = mouseX - barBg_mc.thumb_mc.x;
}
function trackUp(e:MouseEvent):void
{
stage.removeEventListener(MouseEvent.MOUSE_MOVE, scrubTo);
}
function scrubTo(e:MouseEvent):void
{
if(barBg_mc.track_mc.mouseX < barBg_mc.dlStatus_mc.width)
{
var percentAcross:Number = (barBg_mc.thumb_mc.x - 12) / barBg_mc.track_mc.width;
stream.seek(totalLength * percentAcross);
}
}
function pause(e:MouseEvent):void
{
stream.togglePause();
if(barBg_mc.toggle_mc.currentFrame == 1)
{
bigPlay_mc.alpha = 1;
barBg_mc.toggle_mc.gotoAndStop(2);
}
else
{
bigPlay_mc.alpha = 0;
barBg_mc.toggle_mc.gotoAndStop(1);
}
}
function rollOnToggle(e:MouseEvent):void
{
barBg_mc.toggle_mc.alpha = .5;
}
function rollOffToggle(e:MouseEvent):void
{
barBg_mc.toggle_mc.alpha = 1;
}
function mute(e:MouseEvent):void
{
if(barBg_mc.speaker_mc.currentFrame == 1)
{
st.volume = 0;
stream.soundTransform = st;
barBg_mc.speaker_mc.gotoAndStop(2);
}
else
{
st.volume = volPercent;
stream.soundTransform = st;
barBg_mc.speaker_mc.gotoAndStop(1);
}
}
function rollOnSpeaker(e:MouseEvent):void
{
barBg_mc.speaker_mc.alpha = .5;
}
function rollOffSpeaker(e:MouseEvent):void
{
barBg_mc.speaker_mc.alpha = 1;
}
function volDown(e:MouseEvent):void
{
stage.addEventListener(MouseEvent.MOUSE_MOVE, volAdjust);
}
function volUp(e:MouseEvent):void
{
stage.removeEventListener(MouseEvent.MOUSE_MOVE, volAdjust);
}
function volAdjust(e:MouseEvent):void
{
barBg_mc.volScrubber_mc.volThumb_mc.x = barBg_mc.volScrubber_mc.volTrack_mc.mouseX;
if(barBg_mc.volScrubber_mc.volThumb_mc.x <= volxMin)
barBg_mc.volScrubber_mc.volThumb_mc.x = volxMin;
if(barBg_mc.volScrubber_mc.volThumb_mc.x >= volxMax)
barBg_mc.volScrubber_mc.volThumb_mc.x = volxMax;
volPercent = barBg_mc.volScrubber_mc.volThumb_mc.x / volxMax;
if(barBg_mc.speaker_mc.currentFrame == 1)
st.volume = volPercent;
stream.soundTransform = st;
e.updateAfterEvent();
}
var displayHours:Boolean = true;
function videoTimeConvert(myTime):String
{
var tempNum = myTime;
var minutes = Math.floor(tempNum / 60);
if (displayHours)
{
var hours = Math.floor(minutes / 60);
}
var seconds = Math.round(tempNum - (minutes * 60));
if (seconds < 10)
{
seconds = "0" + seconds;
}
if (minutes < 10)
{
minutes = "0" + minutes;
}
if (displayHours)
{
if (hours < 10)
{
hours = "0" + hours;
}
}
var currentTimeConverted = hours + ":" + minutes + ":" + seconds;
return currentTimeConverted;
}
Here is the Place that I need the php to insert into:
Code:
stream.play("85391-13979.m4v");
Putting A Php Var Into My Flash AS3
I need to pass a php value from my page to a flash as3 on that page:
Here is the php:
PHP Code:
<?php
include("connection.php");
$id=$_GET['id'];
$GENRE=$_GET['GENRE'];
$sql="SELECT * FROM Movies WHERE id='$id'";
$result = mysql_query($sql);
if (!$result) {
echo "Could not successfully run query ($sql) from DB: " . mysql_error();
exit;
}
while($row = mysql_fetch_array($result)){
?>
The value i need to pass is here:
PHP Code:
echo $row['movie_hi'];
and here is the flash AS3:
Code:
import caurina.transitions.*;
var conn:NetConnection = new NetConnection();
conn.connect(null);
var stream:NetStream = new NetStream(conn);
stream.play("85391-13979.m4v");
var metaListener:Object = new Object();
metaListener.onMetaData = theMeta;
stream.client = metaListener;
var st:SoundTransform = new SoundTransform();
stream.soundTransform = st;
var video:Video = new Video();
video.attachNetStream(stream);
video.width = 780;
video.height = 370;
video.x = 0;
video.y = 0;
video_mc.addChild(video);
barBg_mc.thumb_mc.mouseEnabled = false;
barBg_mc.thumb_mc.alpha = 0;
barBg_mc.track_mc.buttonMode = true;
barBg_mc.speaker_mc.buttonMode = true;
barBg_mc.toggle_mc.buttonMode = true;
bigPlay_mc.buttonMode = true;
barBg_mc.volScrubber_mc.volThumb_mc.buttonMode = true;
stage.addEventListener(Event.ENTER_FRAME, enterFrame);
stage.addEventListener(MouseEvent.MOUSE_OVER, getInterface);
stage.addEventListener(MouseEvent.MOUSE_OUT, removeInterface);
barBg_mc.speaker_mc.addEventListener(MouseEvent.CLICK, mute);
barBg_mc.speaker_mc.addEventListener(MouseEvent.MOUSE_OVER, rollOnSpeaker);
barBg_mc.speaker_mc.addEventListener(MouseEvent.MOUSE_OUT, rollOffSpeaker);
barBg_mc.toggle_mc.addEventListener(MouseEvent.CLICK, pause);
barBg_mc.toggle_mc.addEventListener(MouseEvent.MOUSE_OVER, rollOnToggle);
barBg_mc.toggle_mc.addEventListener(MouseEvent.MOUSE_OUT, rollOffToggle);
bigPlay_mc.addEventListener(MouseEvent.CLICK, pause);
barBg_mc.track_mc.addEventListener(MouseEvent.MOUSE_OVER, trackOver);
barBg_mc.track_mc.addEventListener(MouseEvent.MOUSE_OUT, trackOut);
barBg_mc.track_mc.addEventListener(MouseEvent.CLICK, goToSecond);
barBg_mc.track_mc.addEventListener(MouseEvent.MOUSE_DOWN, trackDown);
barBg_mc.track_mc.addEventListener(MouseEvent.MOUSE_UP, trackUp);
barBg_mc.volScrubber_mc.volThumb_mc.addEventListener(MouseEvent.MOUSE_DOWN, volDown);
stage.addEventListener(MouseEvent.MOUSE_UP, volUp);
var xOffset:Number;
var xMin:Number = 13;
var xMax:Number = 309;
var volOffset:Number;
var volxMin:Number = 0;
var volxMax:Number = barBg_mc.volScrubber_mc.volTrack_mc.width - 7;
var volPercent:Number;
var totalLength:uint;
function theMeta(data:Object):void
{
totalLength = data.duration;
}
function enterFrame(e:Event):void
{
var nowSecs:Number = Math.floor(stream.time);
var totalSecs:Number = Math.round(totalLength);
if(nowSecs > 0)
{
barBg_mc.timerText.text = videoTimeConvert(nowSecs) + " / " + videoTimeConvert(totalSecs);
var amountPlayed:Number = stream.time / totalLength;
var amountLoaded:Number = stream.bytesLoaded / stream.bytesTotal;
barBg_mc.playStatus_mc.x = 46;
barBg_mc.playStatus_mc.width = 294 * amountPlayed - 1;
barBg_mc.dlStatus_mc.x = 46;
barBg_mc.dlStatus_mc.width = 294 * amountLoaded + 3;
}
}
function getInterface(e:MouseEvent):void
{
if(mouseX > 70 && mouseX < 710 && mouseY > 0 && mouseY < 360)
Tweener.addTween(barBg_mc, {alpha:1, time:3});
}
function removeInterface(e:MouseEvent):void
{
Tweener.addTween(barBg_mc, {alpha:0, time:3});
}
function trackOver(e:MouseEvent):void
{
stage.addEventListener(MouseEvent.MOUSE_MOVE, startFollow);
xOffset = mouseX - barBg_mc.thumb_mc.x;
}
function trackOut(e:MouseEvent):void
{
stage.removeEventListener(MouseEvent.MOUSE_MOVE, startFollow);
barBg_mc.thumb_mc.alpha = 0;
}
function startFollow(e:MouseEvent):void
{
barBg_mc.thumb_mc.alpha = 1;
barBg_mc.thumb_mc.x = barBg_mc.mouseX - (barBg_mc.thumb_mc.width / 2) + 2;
if(barBg_mc.thumb_mc.x <= xMin)
barBg_mc.thumb_mc.x = xMin;
if(barBg_mc.thumb_mc.x >= xMax)
barBg_mc.thumb_mc.x = xMax;
stage.addEventListener(Event.ENTER_FRAME, getTimeText);
e.updateAfterEvent();
}
function getTimeText(e:Event):void
{
var percentAcross:Number = (barBg_mc.thumb_mc.x - 12) / barBg_mc.track_mc.width;
barBg_mc.thumb_mc.trackTime_mc.text = videoTimeConvert(totalLength * percentAcross);
}
function goToSecond(e:MouseEvent):void
{
if(barBg_mc.track_mc.mouseX < barBg_mc.dlStatus_mc.width)
{
var percentAcross:Number = (barBg_mc.thumb_mc.x - 12) / barBg_mc.track_mc.width;
stream.seek(totalLength * percentAcross);
}
}
function trackDown(e:MouseEvent):void
{
stage.addEventListener(MouseEvent.MOUSE_MOVE, scrubTo);
xOffset = mouseX - barBg_mc.thumb_mc.x;
}
function trackUp(e:MouseEvent):void
{
stage.removeEventListener(MouseEvent.MOUSE_MOVE, scrubTo);
}
function scrubTo(e:MouseEvent):void
{
if(barBg_mc.track_mc.mouseX < barBg_mc.dlStatus_mc.width)
{
var percentAcross:Number = (barBg_mc.thumb_mc.x - 12) / barBg_mc.track_mc.width;
stream.seek(totalLength * percentAcross);
}
}
function pause(e:MouseEvent):void
{
stream.togglePause();
if(barBg_mc.toggle_mc.currentFrame == 1)
{
bigPlay_mc.alpha = 1;
barBg_mc.toggle_mc.gotoAndStop(2);
}
else
{
bigPlay_mc.alpha = 0;
barBg_mc.toggle_mc.gotoAndStop(1);
}
}
function rollOnToggle(e:MouseEvent):void
{
barBg_mc.toggle_mc.alpha = .5;
}
function rollOffToggle(e:MouseEvent):void
{
barBg_mc.toggle_mc.alpha = 1;
}
function mute(e:MouseEvent):void
{
if(barBg_mc.speaker_mc.currentFrame == 1)
{
st.volume = 0;
stream.soundTransform = st;
barBg_mc.speaker_mc.gotoAndStop(2);
}
else
{
st.volume = volPercent;
stream.soundTransform = st;
barBg_mc.speaker_mc.gotoAndStop(1);
}
}
function rollOnSpeaker(e:MouseEvent):void
{
barBg_mc.speaker_mc.alpha = .5;
}
function rollOffSpeaker(e:MouseEvent):void
{
barBg_mc.speaker_mc.alpha = 1;
}
function volDown(e:MouseEvent):void
{
stage.addEventListener(MouseEvent.MOUSE_MOVE, volAdjust);
}
function volUp(e:MouseEvent):void
{
stage.removeEventListener(MouseEvent.MOUSE_MOVE, volAdjust);
}
function volAdjust(e:MouseEvent):void
{
barBg_mc.volScrubber_mc.volThumb_mc.x = barBg_mc.volScrubber_mc.volTrack_mc.mouseX;
if(barBg_mc.volScrubber_mc.volThumb_mc.x <= volxMin)
barBg_mc.volScrubber_mc.volThumb_mc.x = volxMin;
if(barBg_mc.volScrubber_mc.volThumb_mc.x >= volxMax)
barBg_mc.volScrubber_mc.volThumb_mc.x = volxMax;
volPercent = barBg_mc.volScrubber_mc.volThumb_mc.x / volxMax;
if(barBg_mc.speaker_mc.currentFrame == 1)
st.volume = volPercent;
stream.soundTransform = st;
e.updateAfterEvent();
}
var displayHours:Boolean = true;
function videoTimeConvert(myTime):String
{
var tempNum = myTime;
var minutes = Math.floor(tempNum / 60);
if (displayHours)
{
var hours = Math.floor(minutes / 60);
}
var seconds = Math.round(tempNum - (minutes * 60));
if (seconds < 10)
{
seconds = "0" + seconds;
}
if (minutes < 10)
{
minutes = "0" + minutes;
}
if (displayHours)
{
if (hours < 10)
{
hours = "0" + hours;
}
}
var currentTimeConverted = hours + ":" + minutes + ":" + seconds;
return currentTimeConverted;
}
Here is the Place that I need the php to insert into:
Code:
stream.play("85391-13979.m4v");
Putting A Video In Flash
hello i am new to actionscripting in Flash and was wondering if someone could tell me what i have to do to get a video in my flash to start playing? Do I need to add some sort of code or what?
Putting Html In Flash
I know how to bring up a text box that displays text, but with regular text files, you can't do links and graphics. How do you insert html into flash so you can have like a news box or what not that you can put links and or graphics, etc into?
Putting Flash Onto My Website
I have a website that i have started. i am using macromedia dreamweaver 4 to make it. i have tried to make a little flash video, using flash 5, and put it on my site. i have made the 'enterance page' and i want it to link to my video. i have tired to make the video finish with a link to my home page. whenever i try to preview my webpage (the one with the video on it), it takes ages to load. i have not once seen it finish loading. the video is only 20k and the site is only a black background. how do i get it to work?
thanks for your help
-aadil is cool
Putting Flash On Site
Ive uploaded my flash onto my FTP and its ready to be put on site, but theres no option to just plac flash. Can you put it in an HTML code? if so whats the html code. Anthing! just to get my pretty banner to work!
Putting Flash On My Website
I made an animation with SWiSH 2.0, and I can't figure out how to put it on one of the pages of my site. I could only figure out how to put it on its own page. Please help!!
-Nathan
Help Putting Flash On Me Site
When i try and put movies on my site, I want the link but instead it just plays the movie right there,
whats the html code to put a link to my flash cartoon on my site
sry if thats confusing it's late
Help Putting Flash In Dreamweaver
ive run into sort of a problem (i think). im building a site on dreamweaver that contains a few flash movies and games. i'll stick the movie on my page while working in dreamweaver, and it plays fine. but when previewing it in the browser it doesn't show up at all. any suggestions? i would greatly appreciate any help.
Putting A Date In My Flash
Hello,
I was thinking of putting up a date on my webpage which displays the date, month and year. Perhaps anyone could refer me to any instructions on how to do so?
Thank you.
Putting A Flash Site On The Web: How?
Hi,
Im pretty new to Flash and am in the process of designing my own website.
I've worked through many tutorials on designing the site (buttons etc) but now im getting close to putting it live on the web as it were, I dont know how to and cant seem to find any info on doing so.
Obviously I need a domain name which I have, i've been told something about hosting but not sure what it means, and then also how do I get it from my computer to the web?
Any info guys much appreicated.
Putting Flash On A Webpage
Hello,
I have made a Flash (in Flash 4) and have hit publish.
Now, I have an html file and a swf file. I want to put
this flash on my website. I have read thru both books I have
and I am even more confused. How do I put the Flash on my
website? I have a thegame.html and thegame.swf
I know this must be fairly easy, but the books made it sound
so hard.
Thanks,
Bill
Putting A Flash File On A DVD
I have a flash presentation that someone in my office wants burned on a DVD to show on a Television monitor, they've had production houses burn them before and said that they had some issues with the quality. Is there anything (the flash creator) I should know about flash being published to be burned on a DVD, and which is best an .exe, .swf, .mov??? Any and all help is greatly appreciated. Thanks in advance.
Putting Flash Into Signatures?
hello,
this isn't exalty a flash question but its related. is it possible to put flash into signatures? i have a board that uses the same stuff (vB code) but has html disabled.. is it possible? i want to use my signature i made here.
but i can't use the IMG command... i just get this:
help? perhaps using the 'code' command? more info on vB code and using the 'code' command here
-lieb39
Putting My FLASH Site On The NET?
I have made my flash movie/site, its allll done. Now i want to post it on the net. A domain and host are not the problem. i have made the first page of my site in dreamweaver with a link to my flash site, but when you click it, it just wants to save the movie file to disk... what do i do and am i using the right FLASH file?
Thanks!
Putting Sound Into Flash
Hi-
I am making many webpages with flash movies in them that have narration and animation that moves along with the narrator. It's become a bear for me, because I have to painstakingly make the animation match the narrator. What I've been doing is publishing the movie after I've made some animation and watching it in IE (we're ignoring how the animation plays in NS) to check if the animation matches the narrator. I do this so many times it's ridiculous, and it takes forever to do this even for a short movie.
Is there an easier way to do this?
Thanks-
L
Putting A Variable Into A URL In Flash
Hi,
I originally posted this on the Scripting and Backend forum but got no response.
I am sure this is a quick fix. But could use some help.
I am pulling a bunch of variables from a php page. from those vairables i want to import a jpg image corresponding to that variable, like:
story_id = 1
so, first of all, I would want to pull "1.jpg" to correspond to that story.
How would I do this?
Second, in addition to that i will have a correspponding url for the person to click on so i want to add this same variable to the end of a URL.
Please help.
thanks.
Putting Flash Into IMovie
We use macs at school and have to use iMovie to make the end of the year video. We have found a few ways to import Flash into iMovie, but both are very inconvienient. The first of the two is a way that I'm not sure how to do but someone in the class does. This way however, imports Flash as picture after picture which needs to be dragged into the movie. When you have to drag 240 pictures into a movie to play :20 of footage this is a hassel. The other way we do it is to publish Flash as quicktime and then in quicktime convert it to a Mini DV stream I think it is. This imports it fine and as a whole, but with horrible image quality. The lines are all pixelated and horrible. My question is whether anyone knows a way to combine the two? Good image quality as in the first method, but in all one chunk as in the second. Thanks for the help.
Putting Preloader And Flash App. Together
I have a finished flash application and a finished preloader and i want to put them together into one flash file. I tried copying the frames of the preloader and pasting them before the frames of the other flash app., but when i show streaming, my screen remains blank, and then my preloader pops up about 50% way through. I'm guessing its loading other things before the preloader.
Is there a way to fix this, or is there a better method of putting these flash files together?
Putting My Animation On Flash Kit
ok i've tried many ways of exporting flash into different file types so i can put them on flashkit. maybe it just doesn't work for me but animated gif doesnt work when i click on it can any one give me any suggestions thanks alot!
Putting You Flash Project On The Net?
Hey Anyone?
I would REALLY apreciate if someone could help me, I have made a digital portfolio in flash and would like to put it on the net? but have no idea how to??? where do I go for web hosting and getting a domain name? and how do I connect my porfolio flash file to the domain name?
Please help me or point me in the direction of where to go cos I'm totally clueless!
|