ActionScript 2.0 :: Turning Dial With Sound Clicks As It Turns?
Dec 17, 2006
I'm having trouble with this turing dial. I want to have a clicking noise as the user drags the dials around.
See it here: [URL] Download the .fla file here: [URL]
View 7 Replies
Similar Posts:
Jan 11, 2010
i am loading an swf and i want to turn its sound off. Unfortunately i do not have access to the swf's .fla file. so i am looking for a way that i can turn off the sound from the file that i am loading it into.
View 1 Replies
Dec 30, 2008
I've made a mute button for my embedded FLV sound. I'm usingSoundMixer.stopAll(); as the controlling action. How do I start thesound up again? From what I could tell, there wasn't aSoundMixer.playAll();, which would be the logical choice.The sound is embedded into the FLV, so I don't have direct
View 5 Replies
Mar 19, 2010
I am in frame 20 which is playing a video, How do I get it to stop sound and video when some clicks a menu button to go to another frame? Where do I put the code?0
View 3 Replies
Sep 23, 2010
I'm building a project that has a character navigate through a room by clicking on the floor. Right now, the walls, character, and floor are all children of the same display object for sorting purposes. My question: is there a way to disable mouse clicks to the walls and character while allowing clicks to the floor? Using mouseChildren appears to be an all or nothing deal and I can't seem to isolate individual floor/wall/character objects for use with mouseEnabled.
View 4 Replies
Sep 12, 2008
I have a rotating dial coded in AS3 but I cannot get it to follow with the mouse - It works the way I want it to if I grab opposite to the pointer (so 90 to 180 degrees from the pointer) to rotate the dial. The problem is that I am using the rotation degrees to set a value only in positive numbers ranging from 0 to 240 instead of 0 to 360. If I change the standard rotation code so it tracks with the mouse, it reveals angles -180 to +180 which would screw up the number conversion to positive 0 to 240. I am thinking if I have to change "var r", then "var tr" needs changing to get it back.
View 4 Replies
Sep 21, 2009
I have a simple game with a dial and a needle. I have made two "right" and "wrong" buttons.Simply, I need to be able to make the needle move forward when the "right" buttons is clicked, and backward when the "wrong" button is clicked, regardless of the needleposition on the dial. What would be the simplist way to accomplish this? I am a beginner with Actionscript, and I've tried all I know to do
View 1 Replies
Jul 13, 2009
Flash knows where the anchor point is in 3D space in order for the symbol to rotate around it, but I can't seem to figure out how to see the coordinates of the anchor point or type in new ones. Please tell me how to do this. I am already very annoyed that Lynda, a pay service, doesn't think this is vital information. Apparently they think we would never want to do anything more visually stimulating than one simple spinning logo! But I digress...
Just to be clear, I know how to move the anchor point visually on the stage, but I want accuracy. I want to be able to give two symbols the exact same coordinates to rotate around.
View 3 Replies
Oct 7, 2009
I've got a project on my hands, an interactive kiosk. I've created the interface in Flash, but I have some issues I can't get past. First of all, I want to create an emergency call feature, where the user presses a button and the kiosk dials the emergency number (112 for Europe). Now, how can I make the Flash movie call upon Windows' dial up connection, dial a number, establish a connection then disconnect?
View 4 Replies
Oct 6, 2009
I've got a project on my hands, an interactive kiosk. I've created the interface in Flash, but I have some issues I can't get past. First of all, I want to create an emergency call feature, where the user presses a button and the kiosk dials the emergency number (112 for Europe). Now, how can I make the Flash movie call upon Windows' dial up connection, dial a number, establish a connection then disconnect? I know that Flash can't use Windows services directly, so how can I accomplish this?My second issue is that I also would like to create a photo-shoot system, where the Flash movie takes a snapshot from the webcam, saves it as a file, then the user needs to input his email address and the file is sent by email as an attachment.
View 1 Replies
Jun 21, 2004
I am currently trying to create a type of speedometer thing which reacts via various buttons on the screen. I done a simple script for the needle to move so many degrees left or right but this simple script doesn't stop the needle from continuing to go to far left or right (min/max on dial). Is there a way of stopping the needle once it has reached say 10 degrees and 120 degrees?
My script is:
bad_btn.onPress = function (){
needle_mc._rotation +=16;
} good_btn.onPress = function (){
needle_mc._rotation -=16;
}
Bad and good buttons determine the left and right. I am also interested in whether once the needle has reached it max point this would trigger of another function etc.
View 14 Replies
Jul 23, 2010
I trained on flashMX back in the day and haven't done anything since so now I've got CS5 it's a bit like being at school again! I have a circular dial sat in the middle of the screen with an arrow placed on it's edge. How do I get the dial to rotate so it always faces the mouse pointer?
View 7 Replies
Feb 23, 2004
I've been using flash for a whopping 3 days now, and I've stumbled onto a problem that I can't seem to find a way around. I'm using flash 4, due to the fact that #1 it's all I've got, and #2 the new flash mx 6 won't run on the old ass computer I'm using. This is my problem: I import a .bmp image and edit it in flash to make portions of it animated. The image is a symbol (I think it has to be anyway to animate it...) Everything runs fine when I use the basic play/rewind buttons to test the animiation, but when I make it into an executable, or when I go to the menu and hit "Test Movie", the image shows up as a red square. The animation I added still runs, but the actual image I imported is a red square.
View 5 Replies
May 17, 2011
I would like a function to run when a user clicks anywhere on stage. But this function should not run when the click is on buttons & on url:s inside a dynamic html-formated textfield. How can I detect this? I do realise that the cursor turns to a hand when you hoover over a url inside a textfield & you can set the hand to appear on buttons as well (which i always set it to do). So is there a way in realtime to detect when the cursor is & is not a hand? I've tried the following:
Code:
btn_mc.buttonMode = true;
stage.addEventListener(MouseEvent.MOUSE_DOWN,down)
function down(E:MouseEvent)
[Code]....
View 2 Replies
May 28, 2009
I am trying to load html into a text box from a website. when i load to the text box, everything goes fine except that it is loaded as something that looks like this:
"%20Cheese%20Croissant= %3B%3Cimg%20src=%22http%3A%2F%2Fwww%2Ehousi ng%2Eumich%2Eedu%2Fdining%2Fmenus%2Fm%2Dfit%2Egif%22%20alt%3D%22%2A%22 %3E%3C%2Fdiv%3E%3Cdiv%20class%3D%22Desserts%22%3EOat%20Bran..."
I wouldnt mind if the html tags were there, because I can deal with those, but I don't know what to do with this. Here is my loader:
[Code]...
View 8 Replies
Jul 14, 2009
Flash CS4. When I enter a movie clip to edit the timeline the pasteboard turns to the color of the stage. The result: I can't see the edges of my stage. This is only within the MC. And only within one particular MC (I created another one and the pasteboard stayed 4% gray). When I take the content in the bad MC (via copy frames) and move it to the good one, the same thing happens: Pasteboard turns to the color of the stage. I've tried SFT-CTL-ALT double click. No luck. Strangely, this isn't happening in every FLA. I know it must have something to do with the content on that timeline, but what that is I have no idea.
View 3 Replies
Feb 20, 2011
I'm trying to make an array with different color values. My problem is that when I do...
teamColor[i] = currentColor...
All color values in my array turn into the currentColor. (I would upload more code, but that would be a massive mess, considering that I have code everywhere with references from movie clips that are as far as 3 layers deep. However, this would be irrelevant anyways (probably), because I tested this with color values on my main timeline, without any references to or from anything deeply nested). I would like to add that I tried adding strings in there and that the strings remained their original, intended, value, while the color exhibited the same phenomenon.
I changed my code by creating separate variables for each color instead of putting the variables into an array (not what I really wanted to do, but it works). My code looks like this:
if (teamColor != 0) {
this["team"+teamColor+"Color"] = new ColorTransform(0,0,0,1,currentColor.redOffset,currentColor.greenOffset,currentColor.blueOffset,)
teamColor = 0
namebox.addboxes()//function in a movieclip
}
TeamColor is now an int that is changed based on which box a user clicks from a movie clip that has a dynamically generated name, based off of what the variable value in a loop was when it was created.
(E.G: 'tempboxname[ttns].name = i;')
teamColor is then equal to that name when the user clicks it. I have another movieclip with colors in it and the above function is called to check if any teamColor change has occurred, and if it has, act accordingly. (The idea of having teamColor equal to 0 is so that if the user clicks twice, nothing changes. I other conditionals for other colors, all within the same function). That is how I fixed me code. It's not what I wanted, because it's not an array (meaning a seemingly infinite number of teamColors, and thus, teams) but it'll do for me.
View 2 Replies
Jan 11, 2009
i want to create an mp3 player with volume ,frequency, bass, treble and speed knobs any pointers to any scripts that might help me would be great, but at the moment i am just trying to work out how to make a knob that turns.I assume i would use drag over and some kind of rotation function.
View 0 Replies
Sep 1, 2009
Basically, I have a button that when moused over it makes rivers go to 50% opacity (they start at 10%), then when clicked they go to 100%.
What I want: Then the rivers stay at 100% until the user clicks the button again.
What is happening: Currently though the mouseout is fading the rivers back to 10%. I know that my code is telling it to do that and want to know how to make it stop.
Here is my code for this:
function shipMouseOver(event:MouseEvent):void {
Tweener.addTween(rivers_mc, {alpha: 1, time:2});
Tweener.addTween(this.dashboard_mc.ship_btn, {alpha: 1, time:2});
} function shipMouseOut(event:MouseEvent):void {
[Code] .....
View 1 Replies
Nov 14, 2009
I have a whole heap of circles which are user created and they all bounce off one another. Generally it works fine but occasionally two balls join together and sort of .. orbit each other.
my collision code is this: (it's within two loops going through an array of movie clips, where mc1 is the current movie clip in the first loop and mc2 is the current movie clip within the second loop)
ActionScript Code:
dx = mc1._x-mc2._x
dy = mc1._y-mc2._y
[Code].....
View 1 Replies
Dec 19, 2011
In our application, we are using a Microphone object, that is published to a server (via NetStream).The recording works well.But unfortunately, while the microphone is active and the NetConnection+NetStream remain, all other audio from inside the flash application (and I guess other active flash applications as well, at least it does it with grooveshark) has its volume turned down.This is completely against the flow of our flash application, as you have to hear certain sounds clearly while speaking into the microphone.How can this turning down of the volume be disabled?
View 3 Replies
Sep 24, 2005
im trying to make a lightsaber that when you push the button, the lightsaber turns on, and then when you push it again, it turns off. There are three frames in this animation. It starts out with just the handle on frame one and by frame 3 the beam gets to its full size. Right now, the light saber will start out with the beam completely out and when you click the button, the beam will go down and then back up and stay there. This is the actionscript i have so far,
[Code]...
View 7 Replies
Sep 12, 2003
I'm interested in coming up with a flipbook which turn to another page, with a "turn page" animation. Exacly like what they did for Fullerton, at this URL...I got a great reply from JCS (thanx again dude!), who passed me a fla where they came out with a flip book, but you'll have to manually drag the page frm one page to another. Technically this flip book is more superior, as the user can flip the book manually, and it looks very very cool, but the thing is, there doens't seem to be a way to flip all the way to the last page withouth going through all the pages in between, and that sucks, as imagine that the document has like 50 pages!. BTW, the file in JCS sent can be downloaded here.URL...So basically, I want to modify the script to enable the the page to turn automatically when clicked, instead of having to drag the page.
View 11 Replies
Feb 12, 2009
I'm extending VideoPlayer and it's been working fine for weeks - all of a sudden it's gone berserk on me. I create a few instances and I'm passing different dimensions to each but new instances are using the size of the largest instance so far...as though the height/width had somehow turned static...?Here's the pertinent code:
PHP Code:
import fl.video.VideoPlayer;
import fl.video.NCManager;
[code].....
View 2 Replies
Dec 9, 2011
[URL]I have published my site but when i upload it to my server and go to view it gets smaller on the screen,i have tried to attach html but it wont upload.please help its driving me crazy and its my first time trying to do this
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>~~main9_v4</title>
[code]....
View 1 Replies
Jul 19, 2010
I have a flash intro and when ever I preview it,the intro background turns to black instead of staying the way it should be.Can somebody please help me out here,I need this flash intro for a website.Please explain this to me in simple terms because im pretty NEW to adobe.
Note I've tried everything to make the flash background stay the way it was but nothing I do works.
View 6 Replies
Sep 16, 2011
This seems pretty weird even for Adobe standards. I've set up size of the movie to be 1024x768, which is the resolution of ipad screen in landscape. The stage looks ok but when I publish the swf it goes into portrait mode.
I even used this line of code but it doesn't help.
stage.setAspectRatio(StageAspectRatio.LANDSCAPE);
View 1 Replies
Sep 22, 2009
I'm starting with a textField containing some bold white text.
If I add it to the stage directly it looks like it should look.
If I convert it to a bitmap, like this:
var bmd:BitmapData = new BitmapData(textfield.width, textfield.height);
bmd.draw(textfield);
var bm:Bitmap = new Bitmap(bmd);
addChild(bm);
Then I just get a white rectangle the same dimensions of the type.
View 2 Replies
Aug 24, 2011
I'm running CS5.5 on an intel Mac 10.6.5, and I have been having problems encoding to flv. All my videos are edited the same way, and using the same formats etc., yet recently I have found that when converting to .flv, some will work fine, and others will have the audio replaced by white noise.
Checking through the video specs, it appears that the one difference is that the ones which worked fine are all Apple ProRes 422 HQ files, and the ones which failed are Apple 10bit Uncompressed. The strange thing is the audio is the same for both. Yet when the encode problem happens, the video for both is fine, its just the audio where the problem appears.
View 1 Replies
Aug 24, 2011
I've got a two year old site (ww.pantelco.be/coaching.html) and something odd happened today. I had to change something in the fla, tested the swf and uploaded it to the server. When I test the swf in flash or just open it manually, all is fine, texts are okay.But whenever it's in a htmlpage (using swfobject), all the multiline textfields turn from horizontal to vertical expanding text, so a large column of 1 character.
Even my backup site acts the same way. It's driving me crazy.
I installed a couple of new browsers a couple of days ago, and I remember I had to update my flashplayer. Maybe thsi is relevant? I just don't know. Texts are loaded through xmls - well, they load alright, but they don't show up the right way.
View 4 Replies