ActionScript 2.0 :: Slider Starts From The Half?
May 15, 2003I put a slider on my web site exactly as it said on this tournament and the problem is that my slider starts from the half, Why?
View 3 RepliesI put a slider on my web site exactly as it said on this tournament and the problem is that my slider starts from the half, Why?
View 3 RepliesSo I can create a circle and an oval using trig in flash. But what if I want to create an oval with rounder points? I'm using this code for circles and ovals:[code]Could anyone help me in editing the code so i can control the tips of the oval and make them rounder?
View 9 RepliesI have a movieclip with an image fading in and out (using an actionscript tween class set to yoyo). This movieclip is loaded into a dummy movieclip when a button is pressed. The first time you click the button the fading movieclip plays as it should, fading in and out continuously. However, the second or subsequent times the button is clicked the fading movieclip goes crazy, half fading in/out and half jumping from one alpha value to another.
View 7 RepliesBuilding a flash website in CS3. I've made every button the exact same way, draw a rectangle, convert to symbol, type as either button or movie clip (doesn't seem to matter and I'm not using rollover stuff), alpha 0% and stick it on its own layer above everything else.Action scrip is as follows:
main1.addEventListener(MouseEvent.CLICK, gotoMain);
main2.addEventListener(MouseEvent.CLICK, gotoMain);
function gotoMain(event:MouseEvent):void
{
gotoAndPlay(1);
}
that's with 2 buttons for main. I have the exact same code multiple times for many different buttons. It works everywhere except the last two buttons on my page will work the first time you click them from the main page, but then don't work after that until you click on the main page again. Then it works.These two:
babout3.addEventListener(MouseEvent.CLICK, gotoAboutb1);
bcontact3.addEventListener(MouseEvent.CLICK, gotoBcontact1);
the function is described on an earlier action keyframe:
bcontact1.addEventListener(MouseEvent.CLICK, gotoBcontact1);
function gotoBcontact1(event:MouseEvent):void[code]...
Of course I've tried just having one button do this and copy/pasting the button on different areas of the movie, but nothing I've done fixes. I've even gone through and deleted every button and AS and redone it. I've put every button on its own layer (shouldn't matter but I'm trying everything I can think of).if there is an easier way of using AS to navigate a flash movie let me know. The other options I've seen seem a bit too complex at the moment.
The first half of the tween doesn't work but the second half does. It only does this when I add the code link._visible = 0;. This is to make the alpha completly disappear.
View 1 RepliesI've got a site that is using loadSound to play some mp3s and it works fine. however, the sound starts to stream, and then replays itself like a second later. my guess is that its playing faster than the load is going and when it gets to the point where it hasn't loaded enough, it starts to replay it, but i'm not sure that that is the exact problem. my code:
[Code]...
now, i tried making a playTrack function that i can call with setTimeout and i put that in the onLoad in place of track.start(), but that didn't work either (i was hoping to not start playing the track for 3 seconds to give it some time to buffer).
i would like to know if it is possible to have a letter that is made up of multiple colors. for example above you will see a hebrew letter. the DOT underneath it is actually part of the letter, but it is a different color.is it possible to have this same functionality in flash? what i would need to do is upload an XML file with all the words, and i would need all the dots below the letters to be a different color
View 2 RepliesI'd like to build image slider like Nivo slider with Adobe Flash Builder.
i'd like to have image controls, image titles displayed above the image(like layers in flash). i'd like to read the data from xml.
i'd like to have nice transitions between images.
mayebe u can provide tutorial or source code.
What I have is a map that you can click on points and it will zoom in, you can also click on a "plus/minus" buttons to zoom in and out (I even have the mouse wheel zooming in and out). The client wanted me to add a "zoom slider bar" to it so you know you could move it up and down to scale it. Everything is working except the slider, I can't seem to get it to work with the position of the slider. All of the zoom functionality is there but the slider is killing me.
I am putting up the fla file since there is a lot of code in there and I didn't want to put it all in the forum. if you look in the fla in frame ten on line 726 you can find the function that is supposed to handle the zooming when you move the slider. Up on line 74 you can find the slider onPress and onRelease functions, but those I believe should be fine.
I am trying to create a basic timeline, similar to the timeline we all use in flash (see attached).
I have a playhead slider, which when dragged, just drags within its startDrag() limits.
I also have horizontal window scroller which also when dragged, just drags within its startDrag() limits.
I am trying to work out how to get the horizontal window scroller to scroll when the playhead slider hits the left or right edge. I am using hittest for this collision.
I have the playHeadSlider scrolling along the top. When playHeadSlider collides with hittestThing I want mcContents to then move.
It kind of works.. mcContents moves when the playHeadSlider is in collision with the hittestThing.. but it just moves rather than 'drags' across. I have it set up so that mcContents is twice the width (approx) of mcScrollWindow.
I need to somehow update what I have so that if the playHeadSlider collides with hittestThing on the right, mcContents only moves to the right and if playHeadSlider collides with hittestThing2 on the left, mcContents only moves to the left.
I'd like to make a circle slide ( Slider that on the shape of circle instead of vertical and horizontal Slider) like this one:
[URL]
Is there a ready Component on the web.
Code:// This example is set to evaluate half a second pause (500)
if (Number(getTimer()-lastClick)<500) {
// Add your doubleclick actions here
if (Reaction._visible eq false) {
setProperty ("Reaction", _visible, True);
} else {
[Code]...
This is a double-click detector.. I was just wondering, since I've never seen lastClick, is there such a thing as lastMove? I'm thinking of using onClipEvent (MouseMove) with a x and y detection timer, or could the one above have some hope?
I was working on some simple keyboard movement for an AS3 game, but running into trouble. Some keys would work, some won't!.I started a new flash just to test the keyboard, and confirmed what I was seeing. Some keys like "D" will work, while others like "A" don't seem to. Here is the code from the keyTest program.
Code:
package
{
import flash.display.*;[code]..
So when I press D or W, this flash outputs "68 down" or "87 up" or whatever as intended. But if I press keys like A or S, it outputs nothing. Wut?
I have a background I want to fade out. It has multiple colours so as far as I can tell I can't just use Alpha to fade it out (because it changes the whole background to the same colour). Is there anyway I can fade it out to about half-transparent?
View 5 RepliesI know you can do this to hide a movieclip:[code]how would i go about hiding say only the tophalf of the movieclip? I have tried using the Rectangle function to try and draw the section i want to be displayed, however with no result.
View 2 RepliesI am having trouble with this button. The first half of the tween doesnt work but the second half does. It only does this when I add the code
link._visible = 0;.
This is to make the alpha completely disappear.
Why this code displays only half the letter A
Code:
var boxFld:TextField = new TextField();
function setTxt(_xPos:Number,_yPos:Number,_size:Number){
var format:TextFormat = new TextFormat();
format.font = "Arial";
format.color = 0x000000;
[Code] .....
Its really weird. When published only half the letter A is displayed.
I have an array of movie clips. One is added to the stage. The user enters a value in a text field. The displayed MC is tweened off the stage and the next MC is placed onto the stage.
for some reason the tweens appear to randomly jam half way. it happens about 1/10 of the time.
My code is probably too long to post but the most relevant bits (I think) are:
I create my instances of display_mc as below.
[Code]...
I have a preloader which loads an external swf (an animation I created in flash) This works fine, except that when the movie plays, it's already halfway through. Here's the code..
[Code]...
I think I must be missing something fairly basic...I've searched but can't find the answer. I just want my animation to play from the start, once loaded. The swf is about 4 meg.
ive got a movie loading in an external one..and in flash its all good..but once i run it in browser it dosent work.. any suggestions as to why?this is the code on the fram that loads in movie, its followed by a gotoAndplay this frame again..
[AS]
if(!wooeee){
wooeee=true;
[code]....
I have a website [url]... which has dynamic flash images, the images have the same info in photoshop. However, some of them load as half grey. 1'st page, gallery image 4 and contact page.
View 2 Repliesany techniques they use to draw a perfect half circle?
I've seen the curveTo() method, and I cannot seem to make it come out with anywhere nearly good enough results. It always looks like half of a skewed ellipse.
I don't *want* to use a mask -- since there will be other drawings on this same Sprite that I do not want masked.
To be even more picky -- I don't *want* to create the half circle in another Sprite and add that to my original drawing.
Without getting in to the specifics, I have a .fla file that has several functions that animate movieClips already present on the stage.
When I compile/view the SWF while working on it, the functions only "run" half the time. The other half of the time, Flash never runs the functions, it just pretends the call never happened. Sometimes they work, and sometimes they don't. I have a feeling it may have to do with Flash's garbage collection, but I don't know how that works.
I created a website for my motorcycle club, and for some reason, certain members say that the preloader freezes half way through loading! Can somebody check out my .fla file and let me know if there is something wrong with the actionscript. Or if there is another script I can add to it to check if it frooze or to force continue..
[Code]...
I have a movie clip that is 2000px wide but when I view the movieclip on the stage it is clipped to 1000 ish px and I can only view the whole thing when I am editing the movieclip.Is there a setting so I can view the whole movieclip?
View 2 RepliesI'm a semi-beginner with AS, particularly with AS3. I am using a preloader to preload half the main swf before actually loading it. It will be approx. 30mb so I don't want people waiting for all of it to load, I'd rather it preload half, open it, then continue loading the rest. I'm presuming this is possible. If so, I intend to include a progress bar once inside the main swf so that the more it loads, the more menu buttons glow and become active. I've seen this "continuous load" thing done with the Halo Believe ebsite.See heror the Halo website, the developers broke up the swf into five 10mb swf files and stitched them together so they would seamlessly load (much like a streaming video) and the visitor would be none the wiser.
I have no idea how they did it, but I thought it would be simpler to keep mine as one complete 30mb file; preload half and then load half while in the main swf. The main swf is an image sequence similar to the Halo site, and the menu buttons are locatedthroughout the image sequence, so they will be accessible as the main swf continues to load. I'm hoping this makes some sort of sense!I've just switched to AS3. I haven't included a progress bar yet, I'm still trying to get the main swf to load half way first:
Frame 1 of preloader:
Code: Select allstop();
var loadDNA:Loader = new Loader(); //loadDNA is what I've called my loader
[code]......
For this site I'm building [URL] I want to make a scrollbar with a scroller that follows the edge of a round screen. So when you pull the button up and down it sticks to the round side of the text screen when scrolling through the text...
View 1 Repliesi am working on an intro for a friend of mine and it includes a lot of individual photos. the preloader takes forever but i can figure out how to only load half of the movie instead of the entire thing before it plays. here's the code i have for the preloader itself:
Code:
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
[code]...
here's a link to the current test page so you can see the entire intro and how long it takes now with that code to load. i just want it to load part of the file instead of waiting for all of it.[URL]
I'm using as2 and i'm making a photogallery. I have a preloader but its taking too long to load, so is there a way where i can pick how much i want it to be loaded before it starts so the viewer doesnt sit there forever? Maybe a quarter loaded or half?. Here's the code im using now to do this. if (_framesloaded>=_totalframes) { gotoAndPlay (14);} else { gotoAndPlay (1);}
View 7 Replieshow to create a button class that looks something like this: Taken from this tutorial page. I'm struggling to figure out what combination of filters I need to use to achieve the glossy effect. The rounded corners and bevel/glow effect are simple enough. But how can I add a gloss gradient over only the top half of the button?
View 2 Replies