Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Mini Golf Game....



anyone know where i can find some kind of tutorial for a mini golf game.

thnks in advance,
ben

also, anyone here know how and if it is possible to make some sort of games portal, like a swf that has maybe 4 games to choose from, then when you click a game it will take you to that games swf.



FlashKit > Flash Help > Flash MX
Posted on: 06-15-2004, 08:13 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Mini-golf Game
I am a new programmer. Very new. I am more of an animator/artists really. I am trying to make a mini-golf game. I think I have collision and gravity/friction down. I am having trouble with: A. initiating the put, B. environmental effects on gravity/friction like a hill.

Is there anyone who could help?

Thank you very much in advance.

Balbot

Rebounding - Mini Golf
I've decided to try and make a mini-golf game with a top-down perspective. I know actionscript but I'm not very good at sin, cos, and tan. I was wondering how I could make the ball have a user-set rotation and then when its hit it will go in the right direction, subtly slow down, AND how to bounce it off of a wall. I know that I can just change the speed variable, but I'm not sure how I can reflect the ball off of a wall. Say if the ball was hit at a wall at a specific angle, I'd need to find out that angle, and have it bounce off in the other direction but most likely the same degree. I'm hoping this post made some sense...if anyone could point me in the right direction or post a FLA that'd be perfect thanks...

- concrete surfer

Mini Golf Help Needed
has ne one ever made a miniture golf game??? i am having some great rouble figuring out how to get the ball to bounce off a object at the correct angle..... a pool game would be the same code i imagine but i cant find help ne where

Source Code For Mini Golf?
Hi there. Anybody know where I could find some mini-golf source code? Or tutorials?

Or if there isn't any, does anyone have source code or thoery on how to make a diagonal wall for an object to bounce off of? I have ideas, but I'm not sure if they are as efficient as some other ideas may be. Thanks!

Source Code For Mini Golf?
Hi there. Anybody know where I could find some mini-golf source code? Or tutorials?

Or if there isn't any, does anyone have source code or thoery on how to make a diagonal wall for an object to bounce off of? I have ideas, but I'm not sure if they are as efficient as some other ideas may be. Thanks!

Golf Game
Hi

I am creating a simple mini golf game, however I am having trouble getting the ball to react in the way I want.

I simply have two clicks... the first sets the power, and the second sets the angle... but then I need th ball the bounce realistically off boundaries...etc.

Has anyone attempted anything lile this before? or know of anywhere I can grab a file or code from that will do the job?

Hope you can help.

Many thanks.

Flash Golf Game
can any one have a source code of a flash golf game? or know wer can i get it? i just need to have an idea for the project im working on.


thanks!

Isometric Rotation, Golf Game
hi guys,

I am making a golf game in an isometric view, and am stuggling with the shot direction. Could anyone please help me out, I cant see what I am doing wrong.

I am using Jobe Makars isometric class.

here is my code to get the angle.

function moveArrow()
{
world.ball.arrowClip.onMouseDown = function()
{
_root.floor.arrow_mc.onEnterFrame = function()
{
if(world.mouse.zm<400 && world.mouse.zm>21)
{
var temp:Array = iso.mapToIsoWorld(world.mouse.xm, world.mouse.zm);
world.mouse.xm = temp[0];
world.mouse.zm = temp[1];
updateAfterEvent();
var xDiff:Number = temp[0] - world.ball.tempx;
var yDiff:Number = temp[1] - world.ball.tempz;
var angle:Number = Math.atan2(xDiff, yDiff);
angle = angle*180/Math.PI; //convert radians to degreees
world.ball.arrowClip._rotation = angle;
var cosAngle = Math.cos(angle);
var sinAngle = Math.sin(angle);
angleNo = angle;
cosAngle1 = cosAngle;
sinAngle1 = sinAngle;
trace(angle);
}
}
}

The angle seems to be tracing out correct so the only thing i can think is wrong is where i make the ball move where i just use,

world.ball.tempz += acceleration*cosAngle1;
world.ball.tempx += acceleration*sinAngle1;
world.ball.tempy -= acceleration;

Any help would be much appriciated, as this has kept me stumped for ages!

Thanks

Golf Game. 6th Year Studies
hi everyone.

basically this year as my project for adv higher computing i am planning on making a simple golf game. consisting of only a couple of levels and the main bit being the highscore board. so i was wondering, well hoping, if anyone had any good links to get me started and underway.

many thanks. PK

Elasticity 01 Fla - Adaption For Golf Game
Hi
Ive been struggling with a game im starting for a while now.

What im trying to do is understand one of the praystaion fla's off US fla section (elasticity 01 fla by praystation) without much success. Id like the square to continue on its course rather than spring back to its origonal point -so you can 'flick' it like a rubber band all over the place.
I am struggling also because it is flash 4 code and my limited knowledge is from the flash 5 actionscript friends of ed book!

Is this fla a good starting point?

Any help you could give me would be brilliant - even if its just some advise. Thanks in advance.

Crazy Golf Game, Ball Will Not Come To A Stop
Hi there.

Ive been pulling my hair out with this problem, and have tried everything I know, with still no luck....

Ive created a Crazy Golf style game, and so far, most of the physics are working (movement, collision, bounce angles etc.). The thing that is really proving a pain is trying to get the ball to slow down once its moving. I thought this would be a simple case of 'speed -= 0.4' or something similar, but it seems this isnt the case. The ball is slowing down at the moment, but only when it hits a wall. I really need a gradual decrease in speed though.

Im going to include my code, and the FLA file, in the hope that one of you clever lot might be able to point me in the right direction.


Code:
onClipEvent (load) {
yspeed = 0;
xspeed = 0;
radius = 10;
friction = 0.90;
precision = 360;
start_angle = 0;
speed = 5;
_root.aiming = true;
}

//Code for the initial aim and shoot.
onClipEvent (enterFrame) {
if (_root.aiming == true) {
var diffx = _root._xmouse-this._x;
var diffy = _root._ymouse-this._y;
//Sets initial angle and rotation
bounce_angle = Math.atan2(diffy, diffx);
this._rotation = bounce_angle*(180/Math.PI);
//Sets initial speed
xspeed = Math.cos(bounce_angle)*speed;
yspeed = Math.sin(bounce_angle)*speed;
}

//If shot has been taken...
if (go == true) {

//Stop ball moving if speed is 0
if (speed<=0) {
speed = 0;
}

//Set x and y speeds
ball._x += xspeed;
ball._y += yspeed;

//Decrease speed gradually over time (Doesnt Work)
speed -= 0.02;

collisions = 0;
sum_x = 0;
sum_y = 0;

//Collision points for the ball
for (x=1; x<precision; x++) {
spot_x = _x+radius*Math.sin(x*360/precision);
spot_y = _y-radius*Math.cos(x*360/precision);
if (_root.terrain.hitTest(spot_x, spot_y, true)) {
collisions++;
sum_x += spot_x;
sum_y += spot_y;
trace(collisions);
}
}
if (collisions>0) {

//Position ball to last point that was not touching a wall. (Avoids getting stuck)
_root.last_hit._x = old_x;
_root.last_hit._y = old_y;
bounces++;
_root.collisions.text = "Bounces: "+bounces;
ball_dir = Math.atan(yspeed/(xspeed*-1))/(Math.PI/180);
if ((xspeed*-1)<0) {
ball_dir += 180;
}
if ((xspeed*-1)>=0 && yspeed<0) {
ball_dir += 360;
}
spot_x = sum_x/collisions;
spot_y = sum_y/collisions;
x_cat = spot_x-_x;
y_cat = spot_y-_y;
ball_coll = Math.atan(y_cat/x_cat)/(Math.PI/180);
if (x_cat<0) {
ball_coll += 180;
}
if (x_cat>=0 && y_cat<0) {
ball_coll += 360;
}
ground_rotation = ball_coll-90;
if (ground_rotation<0) {
ground_rotation += 180;
}
bounce_angle = 180-ball_dir-2*(ground_rotation);
if (bounce_angle<0) {
bounce_angle += 360;
}
xspeed = speed*Math.cos(bounce_angle*Math.PI/180)*friction;
yspeed = (speed*Math.sin(bounce_angle*Math.PI/180))*-1*friction;
_x = old_x;
_y = old_y;
} else {
old_x = _x;
old_y = _y;
}
_y = _y+yspeed;
_x = _x+xspeed;
}
}
on (keyPress "<Space>") {
go = true;
_root.aiming = false;
}
Please also find attached the FLA file. I really hope someone can help me with this, as its really stressing me out!

Many thanks

Mini-Game
gday all, basically im making a flash game where u move about on an x coord and shoot up on mouse clicks (the bullets are a MC, cheers to Kirupa for his tut.) basically im wondering if the best way to approach the user having to hit a target would be setting the targets coords to variables, then making it so whenever the bullets (MC) coords = targets coords it hides the target, plays a little explosion, then reloads the target into a new location... still in the designer phase atm so i cant upload any source files, but im hoping i explained it well enough

any tips/hints for pursueing this? got no problems writing the code, was just checking if its the best way to go about it (simply!)

2D Mini Game: Windows Washer
Hi guys, i need some help, i am newbe but i have been studing from Rhodes book: Actionscript for game dev. What i want to do is a game with a simple interface, and a "mario" character will have te abillity to move thro the building with the use of an automatic up and down platform, 2 of them (the ones used by the guys who clean building windows).

I can find out how to make the guy move, jump and that (well if anybody can help me with the jump part will be better), what i need is: when the character is over the platform that walks automactly up and down, the character will be able to press up and down and move him and the platform at the same time, as soon he fells or move to the other platform, the platform will again have it's auto moves. I will make some like birds on scene so if they touch mario, he will die too haha.

All this happends on a single windows, no scrolling. This is what i have so far:

http://www.newgameprojects.net/wwg/

I figured out how to clean the windows by pressing space button, it's not hard to sum all of them and make a winning number or something. My concern is the platform part and mario gravity. If someone can help i will much apreciate it!!! thank you

Golf In Flash
Hi Guys,

I am pretty new to Flash and still trying to find my feet(metaphorically speaking..i hope!) I want to design a golf shot in Flash whereby a user clicks on an icon(mini golf ball) and an arc will be drawn out the middle of the screen (the fairway) simulating an actual golf shot...any pointers where to even start would be great!

Thanks,

Mike

The Golf Tutorial
Hey people

Does anyone know where i can get hold of the video footage used in the golf tutorial? I want to trace around the guy frame by frame in flash so i have like a solid outline of the guy hitting the ball.

Any help woul dbe great :)

Thanks alot
GR Web FX

Outlook Golf Signatures
Greetings,

My first post here so be gentle.:-)

I am using Flash 4 and would like to create some interesting golf signatures within Outlook Express mail, can someone direct me to a tutorial site that may include some golf type swf files, looking for inspiration.

Regards,
John

Plotting A Golf Ball In 3d
My next game is supposed to be a golf game that takes into account weather conditions, (wind, rain, etc).

I'm planning on it being 3rd person, so I'll need to show the golf ball trajectory from behind the golfer.

Anybody got any ideas where I can go to learn/read up on this kind of math?

Effect Used In The Golf 20 AE Website
Hi all,

I've been looking some time for an effect. Today I saw it again. Can you please take a look, and maybe direct me to a .fla-file to check out how they did this (or something similar)?

It look cool!!!

BTW, I mean the effect on the yellow car. This happens after you click one of the links in the mainscreen. The car dissapears with this effect.
http://vw.com/gti/20th/flash.htm

Thanks,

Niels

Cool Transition On Golf GTI
Hi, all!

If you go to http://www.vw.com/gti/# and you klick on the yellow Golf, and in the Flash page you go to the Gallery section.

That's a nice transition.

Can anybody explain how is that done?? is that something with actionscript and masking????


Thanx

FLV Cue Pointed Golf Swing
Hey people,

There was a tutorial created on this site called FLV Cue pointed Golf Swing on the 26th September 2005. How do i get to view this tutorial? Whenever i click on the link for it, it just shows me the overall finished product and not the tutorial.

Anyone know how i can view this tutorial?

Thanks alot
GR Web FX :)

Who Can Give Me Some Golf Club Flashsite.
hi

who can give me some golf club flashsite link.

I don't know how to show the golf club on site.

thanks a lot!

Mini-map
you have all seen it:
http://www.chromazone-imaging.co.uk/flashindex.html
is the "mini-map" that helps in the navigation a bitmapdata instance, or something else? Anyideas?

Mini Map
I need to create a mini map like the one in this link:
http://senocular.com/flash/source.php?id=0.76

Its pretty aint it? Well that one is done with images...I need to be able to create a minimap of an MC which has dynamic floorplan drawings that are read in from an external xml file...these floorplans are drawn in actions script using x/y coordinates. Any ideas to get even a basic minimap to work for this? Ideally I should be able to drag and zoom and pan around by dragging around a box on the minimap...please help!

Paul

Mini Map
I need to create a mini map like the one in this link:
http://senocular.com/flash/source.php?id=0.76

Its pretty aint it? Well that one is done with images...I need to be able to create a minimap of an MC which has dynamic floorplan drawings that are read in from an external xml file...these floorplans are drawn in actions script using x/y coordinates. Any ideas to get even a basic minimap to work for this? Ideally I should be able to drag and zoom and pan around by dragging around a box on the minimap...please help! Anywhere I can find a step by step to do this? I cannot reveres engineer the code in the fla in the above link.

Paul

Mini Map
I need to create a mini map like the one in this link:
http://senocular.com/flash/source.php?id=0.76

Its pretty aint it? Well that one is done with images...I need to be able to create a minimap of an MC which has dynamic floorplan drawings that are read in from an external xml file...these floorplans are drawn in actions script using x/y coordinates. Any ideas to get even a basic minimap to work for this? Ideally I should be able to drag and zoom and pan around by dragging around a box on the minimap...please help! Anywhere I can find a step by step to do this? I cannot reveres engineer the code in the fla in the above link.

Paul

My Mini Chat
Can you please test the mini chat In my siggy? Just press the grey button, change it to your text and press the grey button again.. It may take a little while to send, it just depends on server loads.

Mini Browser
Hi all,

I would like to simulate the functionality of a web browser in my flash file. Here is the scenerio:

1) I need a window
Should I use a Scrollbar/DynTextfield?, Scrollpane?, Other?

2) This window should be able to load?/reference? external text or HTML? files. When I click a button, the movie progresses to the next frame where my window is and loads the first external file.

Page 1
|--> links to page 2
|--> links to page 5
Page 2
|--> links to page 3
etc.

3) These files need to have hyperlinks to other files. Basically, a mini browser.

I have no idea how to accomplish this. Just so you know, this post could also have gone in the "Newbie" forum. Any help would be greatly appreciated. I've been told it is rather easy to do.

Thanks,
D.

[Edited by dloeppky on 06-12-2002 at 12:34 PM]

Mini Tv Project
I have been asking some questions about how to have a movie clip play once a button is pressed and not to be come visible until the button is pressed.

I have recieved some good help with this.

The Project-

I will have five buttons each playing a different mini movie on top of a GIF IMAGE ( tv looking thing ) on the center stage.

I could have all the movies on the stage over lapping each other and being brought to ALPHA as the button is pressed then after roll off Becoming invisible again.

But "IONLYASKWHY" has suggested that I do with with the LOADMOVIE command rather than having all the MC sat at ALPHA0 on the stage.


I have a couple of questions...

Could you help me with the code for the button.

Also ARE MC's that are in the library but not on the stage still part of the saved SWF ? If so I guess this is where the loadmovie command comes in.

How is the Loadmovie Command different to the AttachMovie Command ?

Do I call the ActionScript Linkage name or the Instance ?

If you could offer some syntax for getting my VirtualTV online I would VERY! greatful.


Thanks

Flash Mini CMS
maybe it's not interesting for the most of you...but there was a situation today during a briefing where the customer mentioned how complicated it is to change the content in a flash website.

so i came up with that late afternoon, to show him how simple it could be...first time php for me..just a liitle 3 line script:

pass1 = deep
pass2 = code

hit refresh to see the changed text.

mini CMS

but as i said before, it might be only interesting for me....but this goes now in every website i do

Mini Actionscript:
After Flash MX 2004 came out I heard all of these great things about the new MovieClipLoader class and how easy it was to use. So naturally I decided to use it for my new site to make the loading of multiple files as easy as possible. Well, I started searching around for information on the class and I only found some very vague documentation, but I decided to go ahead and push through to get it working. With some help from PEDALSPEED I finally got on the right track.

Because of the lack of information out there I decided to put this up to make it as easy as possible for anyone, even someone new to AS to use this great class. This quick little walkthrough will illustrate how to use an arrays to develop a loading queue for loading multiple files in sequence.

Below is the class with comments explaining everything fairly well so if anything is unclear let me know.

[HTML]ActionScript:

/************************************************** *******************/
// ---------------------------- Movie Que ----------------------------/
/************************************************** *******************/

//Create new instance of the MovieClipLoader
var queCL = new MovieClipLoader();
//Sets the inital value of allLoaded to false
_global.allLoaded = false;


//
//onLoadStart
// ---------- function executed when the file is just pulled from the
// ---------- server before loading starts
//
queCL.onLoadStart = function(targetMC) {
//Define the loadProgress of the target movie clip
var loadProgress = queCL.getProgress(targetMC);
//sets preload bar to inital scale to 0
preLoader.bar._xscale = 0;
};


//
//onLoadProgress
// ---------- function executed while the files is being loaded
//
queCL.onLoadProgress = function(targetMC, loadedBytes, totalBytes) {
//Get the diviser of loaded versus total size
myDiviser = Math.floor((targetMC.getBytesLoaded()/targetMC.getBytesTotal())*100);
//Adjust the xscale of the bar as it is being loaded
preLoader.bar._xscale = myDiviser;
};


//
//onLoadComplete
// ---------- function executed once the file is finished loading
//
queCL.onLoadComplete = function(targetMC) {
var loadProgress = queCL.getProgress(targetMC);
//Ensures that the bar is set at 100 xscale once it is loaded
preLoader.bar._xscale = 100;
//Check lenght of loading loading que array
//If items still remain in the array
if (objectsToLoadQue.length != 0) {
//Shifts file last loaded and moves next file up on the list
objectShifted = objectsToLoadQue.shift();
targetShifted = targetsQue.shift();
//Calls the our queCL instance of MovieClipLoader to load next
//file in the array
queCL.loadClip(objectShifted, targetShifted);
//If no items remain in the que array
} else {
//Once all the files in the array are loaded it deletes
//the array.
delete objectsToLoadQue;
delete targetsQue;
preLoader.bar._xscale = 100;
//All loaded variable is now set to true
allLoaded = true;
}
};

//
//onLoadInit
// ---------- function executed once the file is loaded and first frame
// ---------- is intialized
queCL.onLoadInit = function(targetMC) {
//Place inital actions once loaded
};

//
//onLoadErrors
// ---------- function executed if an error results during loading
queCL.onLoadError = function(targetMC, errorCode) {
//Place actions in case of error
};
/************************************************** *******************/
//--------------------------------------------------------End Included
/************************************************** *******************/[/HTML]

[HTML]ActionScript:

//Create instance of the array objectsToLoadQue and targetQue
//objectsToLoadQue = files to be loaded
//targetQue = target movieclips to load into
objectsToLoadQue = new Array();
targetsQue = new Array();
//Fill arrays with values
objectsToLoadQue = ['home_mc.swf', 'homeCenter.swf'];
targetsQue = [_root.myContentPath.holder, _root.centerFlashHolder.holder];
//Starts the intial loadClip and the class handles the rest
queCL.loadClip(objectsToLoadQue[0], targetsQue[0]);[/HTML]

Disclamer - I am not by any means a heavy duty programmer so some might even laugh at some of my methods. I know this works, but if anyone can improve on this feel free. This is all about learning

Mini Map Selection Box
I have a main window with a minimap of the main window...I have created a transparent minimap selection box that shows the view of the main window...so when you zoom in on the main window...the selection box in the minimap shrinks to depict the current view of the main window...The zoom works fine with the proportions and all...however, when I pan the main map, the minimap selection window does not pan proportionally...it is close, but not right on, so it does not outline the correct view of the main window in the minimap...my approach to this was to create a proportion variable to apply to the x and y changes...

code:
var propX:Number;
var propY:Number;

propX = container_m._width/container._width;
propY = container_m._height/container._height;

miniWin._x -= (dx*propX);
miniWin._y -= (dy*propY);


this does not work quite right...please help...

Mini 'toolbox' Within A Swf?
Hi,

Is it possible to create a mini drawing 'toolbox' within an swf with e.g. a pen, eraser, arrow/line tool?

Any help would be much appreciated.

wB

My Mini Project Needs Help Being Set Up
Hey guys - I am starting a little project but getting it set up properly is gonna be my big issue.

Basically what I want is a stage full of dots..on a grid. As your mouse gets closer to each dot, it gets bigger (basically simulating a bulge effect)..only with hundreds of dots.

I have taken a programming class so I believe I will be able to code the bulging part on my own but I do not know how to set this up to make it work the easiest for me...like using code to create tons of little dots that can then be manipulated by my function.

Any help would be greatly appreciated!

Mini Slideshow
I'm about to throw my laptop out the window- this is driving me so crazy.
On my main timeline I have a movieclip- that should fade down images- revealing the ones beneath.
The images are called pic1, pic2, etc.
So this script is INSIDE the mc- anyone know why it isn't working?
Could it be a scope thing?

var currentPic:Number = 1;
var picSpeed:Number = 5;
var picTime:Number = 2000;
//
//
init ();
//
//
function init () {
timer = setInterval (slideShow, picTime);
}
//
//
function slideShow () {
var thisPic = this["pic" + currentPic];
onEnterFrame = function () {
trace (currentPic);
thisPic._alpha -= picSpeed;
if (thisPic._alpha <= 0) {
thisPic._alpha = 0;
}
};
currentPic++;
}
//
//

Man- it would so rule if someone could help...

Mini Dictionary
Hi, I hope I am posting in the correct place. Apologies if I haven't.

I was playing around with this tutorial for loading external text: http://www.kirupa.com/developer/mx/m...ynamictext.htm

How would you get flash to load external text from a text prompt rather than a button click ? For example you could type in "Samurai" and it will load samurai.txt or whatever text files you wanted. I am a complete beginner at action script. Can anyone point me in the right direction ?

I want to build a small and simple database of specialist terms.

Mini Map Selection Box
I have a main window with a minimap of the main window...I have created a transparent minimap selection box that shows the view of the main window...so when you zoom in on the main window...the selection box in the minimap shrinks to depict the current view of the main window...The zoom works fine with the proportions and all...however, when I pan the main map, the minimap selection window does not pan proportionally...it is close, but not right on, so it does not outline the correct view of the main window in the minimap...my approach to this was to create a proportion variable to apply to the x and y changes...


ActionScript Code:
var propX:Number;    var propY:Number;    propX = container_m._width/container._width;    propY = container_m._height/container._height;    miniWin._x -= (dx*propX);    miniWin._y -= (dy*propY);


this does not work quite right...please help...

Mini Calculator In AS3.0
Hello all!
I am pretty new to AS 3.0, and one of the programs I have made is a mini calculator where you can do "+,-,*and/".
But I am having a little problem. I can only substract.

Code:

var sum:Number = 0;
trekkFra.addEventListener (MouseEvent.CLICK, trekk);
function trekk (evt:MouseEvent) {
if (regneArt.text=="-") {
sum=Number(inn.text)-Number(ut.text);
differans.text = String (sum);
if (regneArt.text=="+") {
sum=Number(inn.text)+Number(ut.text);
differans.text = String (sum);
if (regneArt.text=="*") {
sum=Number(inn.text)*Number(ut.text);
differans.text = String (sum);
if (regneArt.text=="/") {
sum= Number(inn.text)/Number(ut.text);
differans.text = String (sum);
}
}
}
}
}

Above is my code (don't worry about the Norwegian names) I don't get any compiler errors or something like that. It depends on an input textbox in which you can give +, -, * or / depending on what you want to do.
But the thing is I can only manage to substract two numbers and not add them or multiply them or divide them.

Mini Calculator In AS3.0
Hello all!
I am pretty new to AS 3.0, and one of the programs I have made is a mini calculator where you can do "+,-,*and/".
But I am having a little problem. I can only substract.

Code:

var sum:Number = 0;
trekkFra.addEventListener (MouseEvent.CLICK, trekk);
function trekk (evt:MouseEvent) {
if (regneArt.text=="-") {
sum=Number(inn.text)-Number(ut.text);
differans.text = String (sum);
if (regneArt.text=="+") {
sum=Number(inn.text)+Number(ut.text);
differans.text = String (sum);
if (regneArt.text=="*") {
sum=Number(inn.text)*Number(ut.text);
differans.text = String (sum);
if (regneArt.text=="/") {
sum= Number(inn.text)/Number(ut.text);
differans.text = String (sum);
}
}
}
}
}
Above is my code (don't worry about the Norwegian names) I don't get any compiler errors or something like that. It depends on an input textbox in which you can give +, -, * or / depending on what you want to do.
But the thing is I can only manage to substract two numbers and not add them or multiply them or divide them.
The ut, inn and regneArt are all input textboks, while differans is a dynamic one where the answer appears.
Do I need to do anything different in the code eg include an "else" sentence or?
I hope your understand me what I want to do.

My Mini Project Needs Help Being Set Up
Hey guys - I am starting a little project but getting it set up properly is gonna be my big issue.

Basically what I want is a stage full of dots..on a grid. As your mouse gets closer to each dot, it gets bigger (basically simulating a bulge effect)..only with hundreds of dots.

I have taken a programming class so I believe I will be able to code the bulging part on my own but I do not know how to set this up to make it work the easiest for me...like using code to create tons of little dots that can then be manipulated by my function.

Any help would be greatly appreciated!

Mini Map Selection Box
I have a main window with a minimap of the main window...I have created a transparent minimap selection box that shows the view of the main window...so when you zoom in on the main window...the selection box in the minimap shrinks to depict the current view of the main window...The zoom works fine with the proportions and all...however, when I pan the main map, the minimap selection window does not pan proportionally...it is close, but not right on, so it does not outline the correct view of the main window in the minimap...my approach to this was to create a proportion variable to apply to the x and y changes...

[AS]
var propX:Number;
var propY:Number;

propX = container_m._width/container._width;
propY = container_m._height/container._height;

miniWin._x -= (dx*propX);
miniWin._y -= (dy*propY);
[/AS]

this does not work quite right...please help...

Mini Keyboard In Flash
hi ya,
Im making a mini keyboard in flash (its for a prototype interface) I've made buttons for all the different keys/letters. What i want, is for the user to click on these buttons and the corresponding letter will pop up in a text field (dynamic with a variable im guessing)

on the keys i put :-

on (release) {
_root.keyvar+"b";
}




and the dynamic text field with the variable keyvar. However it works but what i want is for the user to select any text field on the page, then corresponding text go into it... a dynamic varible?
I put and example of the fla at:
http://www.seewhaticando.co.uk/keyboard.fla

its very small

any suggestions???

cheers

danny


http://www.seewhaticando.co.uk
[Edited by casper_org on 05-18-2002 at 07:32 AM]

Animation For Mini-series
Hi all

I am thinking of doing my own mini-series using Flash to try pull off some simple episodes with simple animation but yet are entertaining.


I am wondering if their are any charicter animation tutorails around I can read for mouth movement, walking with backgrounds moving to make out they are actully walking along a path etc..

Are there also any FLA files i can view how its all done?
I can pull some things off but just need abit more pratice to pull off my needs.. Any help at all I really mean it I am greatful.

Thanks

Waz

Exporting Flash To Mini DV
Hi, I am wondering if there are any excellent people out there that know how to get my flash movies or my ToonBoom movies onto a miniDV tape. So far I know that I can go through Final Cut Pro but I was wondering if anyone has been able to export through some other program so as not to create the rasterization (when lines get blocky) and to keep the vectorized lines and have my movie look decent when projected or watched on a TV. Any help would be greatly appreciated.

How Does Mini.com Do This Flash Controller?
Hi there, I was just wondering if anyone knew how easy it would be to do something similar to this controller for flash? is there a free component?:

http://www.mini.com/com/en/mini_cooper_s/index.jsp

tia

Mini Flash Radio
Just wondering if anyone can help me out here, I'm looking for a tutorial on how to make a simple flash radio (if thats what its even called)

Something that just has a play/stop/previous/next buttons, with like 3 different samples to choose from. Nothing insanely complicated, just simple...


Thanks in advance

Worldcup Mini Contest
The ArmorGames Armor Gaming Challenge 4 (http://www.armorgames.com/contest4.html) is a great an exciting flash game contest.
The contest includes many minicontests,

Because all of you love the worldcup so much, we figured we'd throw in a small World Cup minicontest

First Place $750
Second Place $500
Third Place $300
Fourth Place $150

Think you can win that AND probably win the grand contest too with a prize of a 17-Inch: 2.16Ghz * 2 Mac Book Pro (Dual Boot to Windows) 1GB DDR2 SDRAM, 120 Gig Harddrive ATI Mobility Radeon X1600 graphics 8x Double-Layer Super Drive
+ $1000 Cash (computer is exchangeable for $2799)

You can also win tons of awards such as a $400 3 best of june bonus. A score bonus and more.

So give it a look, it's worth a shot

Mini Image Gallery
This is what i am trying to accieve...

i have 3 images: 1 large image and 2 small (shrunken) images.

i want to be able to click on a small image, this will then swap position/scale with the large image (using zigo tweening) so that you always have 2 clickable thumbnails and one non clickable large image... have i explained that well enough?

I thought i had seen this before somewhere but cant find it, can anyone point me to a similar example?

cheers!

How To Create Mini YouTube ?
Hi all,

We have a few hundred of short videos which have to be organized and presented to our site's visitors. We're thinking of taking the YouTube approach - to have a video player and a video browser with thumbnails on its side. There is a lot of videos so we will probably need a scrollbar. Also, we're thinking about having tabs on top of the whole thing, which will help with organization.

So the question is: is it possible to pull something like this off the ground ?

Any help will be much appreciated

Mini Mail Form
Hi guys,

I'd like to make a very little form so that users can email me from on the site, but I don't know any asp or php... and I sure don't have the time to learn it.

Is there something in flash that can do that? All I really want is a textbox and a box for their emailadress... and a button of course

And I want that adress to appear as senderadress in the email I get with a set 'subject' so that I can arrange my emailprogram to put all the emails with that subject in the same folder.


cheers, Robin

Copyright © 2005-08 www.BigResource.com, All rights reserved