Adding User Names To Table/board
I'm making a game and I want to create a winner's board which the user adds their name to and the list updates.
I've been playing around with arrays/var but I'm completely stuck. I need it to remember the new user's name when entered and then add it to a list of other winner's names on the board.
Please help me!!!
ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 03-02-2004, 11:47 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
User Interface With Microsoft Excel Table
Hi,
is it possible to create a movieclip that uploads an excel table? I want to create a user interface where the user fills in an excel sheet that will upload into the flash-website when he saves the document. Any suggestions?
Thx,
Mav. out
Adding Scrollbar To A Table In DW
I'm trying to create a table with a scrollbar when the text overflows the table. However, it never worked for me using CSS. Can someone list the procedures to make it work? Thanks.
New User At This Board:) Question About A School Flash Project
Hi there, this is my first time at this board and it looks very informative and user-friendly to me already
I'm currently in high school and is required to design a flash intro for an imaginary company I came up with as a desktop publishing class project which is worth a lot of marks.
My company, as odd as it is, is named "Pipi's Pork Shop", which I imagined to be a Canadian pork selling franchise with a long history, great products for cheap prices and many stores. However, I'm interested in seeing some examples of other professional flash company intros to give me an idea on how to design my own.
So my request is that can anyone recommend some url locations to any excellent and professional looking flash intros for a company? Preferably with a white background because I'm planning to design mine that way.
Thanks a lot from a first time user!
Adding A Flash Movie Into A Table
If I have a regular html page, but want to add a flash banner at the top of it inside a small table, what is the command to insert that swf into just that table?
Thanks!
User Names
hello peoples... i would like to be able to let a user type his name into a box and from then on have the flash file refer to the user by his name.
does anybody know how to script this? i tried googling it but i didn't really know where to start!
thanks
FMX - Adding Table Of Contents To Claudio's Scroller
Hi,
I am using Claudio's scroller to display a very long list of text. I am trying to add a set of buttons that would jump to specific headings in the text - sort of like anchors in html - but I'm not really sure how to go about doing this while keeping the scroller's functionality intact.
Any ideas for me?
Here is the AS from the scroller:
ActionScript Code:
bar.useHandCursor = dragger.useHandCursor=false;space = 20;friction = 0.9;speed = 4;y = dragger._y;top = main._y;bottom = main._y+mask_mc._height-main._height-space;dragger.onPress = function() { drag = true; this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+this._parent.bar._height-this._height); dragger.scrollEase();};dragger.onMouseUp = function() { this.stopDrag(); drag = false;};bar.onPress = function() { drag = true; if (this._parent._ymouse>this._y+this._height-this._parent.dragger._height) { this._parent.dragger._y = this._parent._ymouse; this._parent.dragger._y = this._y+this._height-this._parent.dragger._height; } else { this._parent.dragger._y = this._parent._ymouse; } dragger.scrollEase();};bar.onMouseUp = function() { drag = false;};moveDragger = function (d) { if ((dragger._y>=y+bar._height-dragger._height && d == 1) || (dragger._y<=y && d == -1)) { clearInterval(myInterval); } else { dragger._y += d; dragger.scrollEase(); updateAfterEvent(); }};up_btn.onPress = function() { myInterval = setInterval(moveDragger, 18, -1);};down_btn.onPress = function() { myInterval = setInterval(moveDragger, 18, 1);};up_btn.onMouseUp = down_btn.onMouseUp=function () { clearInterval(myInterval);};MovieClip.prototype.scrollEase = function() { this.onEnterFrame = function() { if (Math.abs(dy) == 0 && drag == false) { delete this.onEnterFrame; } r = (this._y-y)/(bar._height-this._height); dy = Math.round((((top-(top-bottom)*r)-main._y)/speed)*friction); main._y += dy; };};
I know that the content clip (main) position is dependent on the _y of dragger, but when i set up buttons to alter the _y of dragger directly, it messes up the scroller.
Thanks =]
FMX - Adding Table Of Contents To Claudio's Scroller
Hi,
I am using Claudio's scroller to display a very long list of text. I am trying to add a set of buttons that would jump to specific headings in the text - sort of like anchors in html - but I'm not really sure how to go about doing this while keeping the scroller's functionality intact.
Any ideas for me?
Here is the AS from the scroller:
ActionScript Code:
bar.useHandCursor = dragger.useHandCursor=false;space = 20;friction = 0.9;speed = 4;y = dragger._y;top = main._y;bottom = main._y+mask_mc._height-main._height-space;dragger.onPress = function() { drag = true; this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+this._parent.bar._height-this._height); dragger.scrollEase();};dragger.onMouseUp = function() { this.stopDrag(); drag = false;};bar.onPress = function() { drag = true; if (this._parent._ymouse>this._y+this._height-this._parent.dragger._height) { this._parent.dragger._y = this._parent._ymouse; this._parent.dragger._y = this._y+this._height-this._parent.dragger._height; } else { this._parent.dragger._y = this._parent._ymouse; } dragger.scrollEase();};bar.onMouseUp = function() { drag = false;};moveDragger = function (d) { if ((dragger._y>=y+bar._height-dragger._height && d == 1) || (dragger._y<=y && d == -1)) { clearInterval(myInterval); } else { dragger._y += d; dragger.scrollEase(); updateAfterEvent(); }};up_btn.onPress = function() { myInterval = setInterval(moveDragger, 18, -1);};down_btn.onPress = function() { myInterval = setInterval(moveDragger, 18, 1);};up_btn.onMouseUp = down_btn.onMouseUp=function () { clearInterval(myInterval);};MovieClip.prototype.scrollEase = function() { this.onEnterFrame = function() { if (Math.abs(dy) == 0 && drag == false) { delete this.onEnterFrame; } r = (this._y-y)/(bar._height-this._height); dy = Math.round((((top-(top-bottom)*r)-main._y)/speed)*friction); main._y += dy; };};
I know that the content clip (main) position is dependent on the _y of dragger, but when i set up buttons to alter the _y of dragger directly, it messes up the scroller.
Thanks =]
Flash Reading From A MySQL Database And Adding To A Table In It
I'm wanting to know if anyone knows and code to query Variables from a database, or has a login page script that reads from a mysql database that will pull things from a table, and also add them when a user is signing up. Really, All i need is a login script that will connect to a mysql database and will call certain variables from a table in that database, and add to the table when a user signs up.
If anyone has a script or can point me to one so I can copy and paste the code in and edit it to my database and tables PLEASE let me know!! Im sick of using flat files!
Thanks!
Muti Passwords & User Names?
I have had a look at some of the tutorials in Flash Kit but none of the have will not except muti password for example I want to create a log in system that will accept more than one user name and password. I have tried to modify some of the tutorial but have had no luck can anyone help me out on how to do this. I would very much appreciate it, thank in advanced for the help.
0rlando
PS: I was just wondering why actions should go into a different layer, I put mine in the same layer. Is this wrong many flash user put them into a different layer, why is this?
Adding Pieces To A Dynamical Created Board
Hi guys I need some help. Ive worked out how to created a board in AS3 as you can see below with the code ive attached. As you can see its in a class and its dynamicaly created now im wanting to put my chess pieces onto the correct square on the board.
I was thinking I would have to create a movie clip of my pieces in the libary and attach them to the board somehow, can anyone help me which this problem?
Quote:
package{
import flash.display.MovieClip;
public class Board extends MovieClip{
// Variables
public var boardColor1:uint = 0x418382;
public var boardColor2:uint = 0xFFFF83;
public var squareSize:Number = 30;
//
public function Board(){
// This draws the board
var currColor:uint;
var squareX:int;
var squareY:int;
// loop through x and y coordinates of board
for (squareX = 0; squareX < 16; squareX++){
for (squareY = 0; squareY < 16; squareY++){
// this alternate colors
currColor = (squareX%2 != squareY%2) ? boardColor1 : boardColor2;
// this fills in the board
graphics.beginFill(currColor);
graphics.drawRect(squareX*squareSize, squareY*squareSize, squareSize, squareSize);
graphics.endFill();
}
}
}
}
}
Adding A Scrollbar To A Table... Or Using Flash To Do This, To Save Space On The Page
Visit this site, might help you, help me...
http://blitzing.5u.com/index.htm
I have a table on my webpage, and ill be adding daily notes to it as I keep adding new conten1t. Now i dont want to use frames, but I do want to control the length of the page... since ill be adding two or three notes each day, the length of the page would grow a lot otherwise.
So what im asking for, in my own long-winded way =D Is if anyone can help me with a way to either add a scrollbar to the table on that website or if someone can hook me up with some flash that I could easily add daily notes to that would scroll as well. Thanks, if you need any clarification just ask... In case this wasnt too clear =D
Also you can email me at pre_engin@hotmail.com.
User Interface Components And Variable Names
I'm trying to make an email form using some of the interface components in Flash CS3 (text field, date field, numeric stepper..) But I can't figure out how to set the name of the variables of these components. I didn't see anything in the properties where you can assign variable names to them so I was wondering do you do it via Actionscript?
User Interface Components And Variable Names
I'm trying to make an email form using some of the interface components in Flash CS3 (text field, date field, numeric stepper..) But I can't figure out how to set the name of the variables of these components. I didn't see anything in the properties where you can assign variable names to them so I was wondering do you do it via Actionscript?
Adding Numbers To The Names Of Variables
Hello all
If I wanted to do something like. . .
for(i=1; i<11; i++) {
myvaiable(i) = i
}
and then basically be left with:
myvariable1 = 1
myvariable2 = 2
and so on. . .
How would I create a loop routine that would essentially create new variable names for ever loop instance?
thanks in advance. . .
stevo
Adding Numbers To Variable Names?
Hi,
I have 13 variables that I want set equal to 13 other variables. This second set of variables are paths to files.
code:
_root.img0 = imgThumb0
where imgThumb0 = db_pics/IndianRiver.jpg
Ok, simple so far.
Now, I don't want to type out _root.img0 = imgThumb0, _root.img1 = imgThumb1, _root.img2 = imgThumb2, etc...
So, I created an array that increments everytime the loop is run through, like this:
code:
for (a=0; a<13; a++) {
_root.img[a] = imgThumb[a];
}
STOP... it doesn't work, so I try this:
code:
for (a=0; a<13; a++) {
_root.img[a] = ["imgThumb" + a];
}
and this:
code:
for (a=0; a<13; a++) {
_root.img[a] = [imgThumb + a];
}
Still doesn't work...
It's not successfully putting the number on the end of the string and then using that entire string (imgThumb3, for instance) as the variable to grab the path.
What I need, in the end, is for _root.img[a] to be equal to the path of the picture for whatever (imgThumb + a) is....
I'm not sure I've totally made myself clear, but if you could help me out I'd really appreciate it..
Thanks...
Adding Instance Names Through Scripts?
hi
umm is it possible to add or change instance names by using scripts?
like if i had an MC named "thing", i could change it "thingamajigger1"
if it hits something...(hitTest...)
any1 have any opinions?
Adding Buttons With Instance Names Into A Custom Scroll
I have created a custom scroll to view a list of my portfolio pieces. the action script looks like this with scroller_mc being the instance name of the vertical scroller and printnames_mc the instance of the names of my pieces.
var scrollUpper:Number = 229;
var scrollLower:Number = 374;
var textLower:Number = 229;
var textUpper:Number = 187;
var scrollRange:Number = scrollLower - scrollUpper;
var textRange:Number = textLower -textUpper;
function scroll() {
var moved:Number = scroller_mc._y - scrollUpper;
var pctMoved:Number = moved/scrollRange;
var textMove:Number = pctMoved*textRange;
printnames_mc._y = textLower - textMove;
}
scroller_mc.onPress = function () {
startDrag(scroller_mc,false,this._x, scrollUpper,this._x,scrollLower);
this.onMouseMove = scroll;
}
scroller_mc.onRelease = scroller_mc.onReleaseOutside = function() {
this.stopDrag();
this.onMouseMove = null;
}
the problem with this is when I try to add buttons that use actionscript to load images into a main loader inside the printnames_mc object it does not work? is there a way to create a custom scroll that can scroll through buttons with instance names? Any help would be great!!!!!!!! thanks
Adding Actions To Button Instance Names In First Frame
I have a little movie clip to play some mp3 files. It starts with a list, and for each song is a button, which, when pressed, stops sound, starts a new mp3, and goes to another frame which has a stop button in that particular button's place. I am trying to do it using instance names for the buttons and adding the actionscript in the first frame rather than on the buttons themselves, and it sort of works, but each song plays only once (going down the list) The stop button doesn't work at all. In each of the other main section frames, there is a stop action, but nothing else except the buttons. I am pretty new at this, so everything takes a lot of research to figure out. I'd love any help anyone can give me, as I may have syntax wrong or something. Do I need to add this code to each of the section frames or something?
This is my actionscript:
stop();
btn_stop.onRelease = function(){
stopAllSounds();
gotoAndPlay("choose");
}
btn_Song1.onRelease = function(){
stopAllSounds();
var song1:Sound = new Sound();
song1.loadSound("Soaring1-Burlesque.mp3", true);
gotoAndPlay("Song1");
}
btn_Song2.onRelease = function(){
stopAllSounds();
var song2:Sound = new Sound();
song2.loadSound("Soaring2-PopCyclePotpourri.mp3", true);
gotoAndPlay("Song2");
}
btn_Song3.onRelease = function(){
stopAllSounds();
var song3:Sound = new Sound();
song3.loadSound("Soaring3-PopCycle-SongofLight.mp3", true);
gotoAndPlay("Song3");
}
btn_Song4.onRelease = function(){
stopAllSounds();
var song4:Sound = new Sound();
song4.loadSound("Soaring4-PopCycleRipsnorter.mp3", true);
gotoAndPlay("Song4");
}
Adding User Info Into Array-how?
Hey guys- I need help on making a phone book in FMX. I have the main priciple down from a book, but it doesn't explain how to add entries. This example uses an array to call data into dynamic text boxes. Based on this principle, would I use a push function to add info into the existing array or SharedObject and getLocal(); ? I'm new to both of these methods so please go easy on me. TIA.
High Score Table (empty Table) HELP
Hey guys,
[Flash8]
Basically I’m making a high score table and the problem I am having is that for some reason I can't see any of the information from my database table. I believe my php file is correct, I think the prob is somewhere in my action script but I just can't see it.
I have attached the flash file and the php file. My database table was on wamp and have attached a screen shot of the table.
Flash file:
http://rapidshare.com/files/10804329...score.zip.html
Image of database table:
http://img225.imageshack.us/img225/2702/databasetm2.jpg
Action script:
stop()
lv.onLoad = function(){
numRows = lv.nRows;
for(var n=0; n!=numRows; n++){
obj = {};
obj.Name = lv['name'+n];
obj.N0 = lv['number_of_minimum_attempts'+n];
obj.N1 = lv['number_of_attempts'+n];
obj.N2 = lv['number_of_wrong_attempts'+n];
obj.D = lv['date_time'+n];
arr[n] = obj;
}
makeFields(numRows); // show all results
};
function makeFields(num){
for(var n=0;n!=num;n++){
_root["name"+n].text = arr[n].Name; name2.text, name3.text, name4.text, name5.text, name6.text, name7.text, name8.text, name9.text, name10.text
_root["minimum"+n].text = arr[n].N0; minimum2.text, minimum3.text, minimum4.text, minimum5.text, minimum6.text, minimum7.text, minimum8.text, minimum9.text, minimum10.text
_root["attempts"+n].text = arr[n].N1; attempts2.text, attempts3.text, attempts4.text, attempts5.text, attempts6.text, attempts7.text, attempts8.text, attempts9.text, attempts10.text
_root["wrong"+n].text = arr[n].N2; wrong2.text, wrong3.text, wrong4.text, wrong5.text, wrong6.text, wrong7.text, wrong8.text, wrong9.text, wrong10.text
_root["date"+n].text = arr[n].D; date2.text, date3.text, date4.text, date5.text, date6.text, date7.text, date8.text, date9.text, date10.text
}
}
Thanks guys
Notice Board / Message Board / Guest Book
I am trying to create a message board in Flash, one that would pretty much work like a guest book. It would ideally work off a text file, writing and reading to it as people visited the site and left messages.
I don't want to use a database, i know that is the most common answer, i only want to use a text file or something which doesn't require a DB connection.
I have looked around to find something similar in the flash movie files but can;t seem to find anyting close. Maybe i am just looking for something which is known or called something totally different.
Any help or ideas on how to do something like this would be greatly Appreciated.
Thanks,
Make This Drawing Board Write Only On Board Area?
First of all sorry for the long post...
I need to make this drawing board (works good) to write ONLY
in a 450 x 300 px area. Actually if you select the pencil it draws
as long as you drag but anywhere else on the movie..
You can download the fla in
http://www.soccerschool.com.ar/f/drawingBroadmx.zip
This code is attached to frame 1 and the movie has other action
on the mclip of the board itself:
CODE of mclip:
onClipEvent (load) {
function setColors() {
C = new Color(_root.Panel.bgfc);
C.setRGB(_root.frontColor);
}
}
-----
CODE of frame 1:
_root.P = 0;
_root.level = 1000;
_root.tmpx = -1;
_root.tmpy = -1;
_root.count = 0;
_root.isMouseDown = false;
_root.frontColor = 0x000000;
//default tamaño del pincel
_root.pt = 6;
_root.tool = "pen";
md = new Object();
mm = new Object();
mu = new Object();
actionList = new Array();
Number.prototype.HEXtoRGB = function() {
return {rb:this >> 16, gbthis >> 8) & 0xff, bb:this & 0xff};
};
Color.prototype.blendRGB = function(c1, c2, t) {
if (arguments.length == 2) {
t = c2;
c2 = this.getRGB();
}
if (t<-1) {
t = -1;
} else if (t>1) {
t = 1;
}
if (t<0) {
t = 1+t;
}
c1 = c1.HEXtoRGB();
c2 = c2.HEXtoRGB();
var ct = (c1.rb+(c2.rb-c1.rb)*t) << 16 | (c1.gb+(c2.gb-c1.gb)*t) << 8 | (c1.bb+(c2.bb-c1.bb)*t);
this.setRGB(ct);
return ct;
};
md.onMouseDown = function() {
if (_root.paintMode) {
a = new Object();
a.start = _root.P;
actionList.push(a);
_root.isMouseDown = true;
if (_root.tool == "del") {
for (i=0; i<_root.P; i++) {
if (eval("P"+i).hitTest(_root.cursor)) {
eval("P"+i).removeMovieClip();
break;
}
}
}
if (_root.tool == "sqr") {
Paint.duplicateMovieClip("P"+_root.P, _root.level+P);
eval("P"+_root.P)._x = _root._xmouse;
eval("P"+_root.P)._y = _root._ymouse;
}
if (_root.tool == "ova") {
Paint.duplicateMovieClip("P"+_root.P, _root.level+P);
eval("P"+_root.P)._x = _root._xmouse;
eval("P"+_root.P)._y = _root._ymouse;
}
if (_root.tool == "pen") {
Paint.duplicateMovieClip("P"+_root.P, _root.level+P);
eval("P"+_root.P)._x = _root._xmouse;
eval("P"+_root.P)._y = _root._ymouse;
eval("P"+_root.P).beginFill(_root.frontColor, 100);
eval("P"+_root.P).drawCircle((_root.pt/2), 0, 0);
this.endFill();
_root.P++;
_root.tmpx = _root._xmouse;
_root.tmpy = _root._ymouse;
}
if (_root.tool == "mak") {
Paint.duplicateMovieClip("P"+_root.P, _root.level+P);
eval("P"+_root.P)._x = _root._xmouse;
eval("P"+_root.P)._y = _root._ymouse;
eval("P"+_root.P).duplicateMovieClip(eval("P"+_roo t.P)._name+"shadow", _root.P+_root.level-500);
sn = eval("P"+_root.P)._name;
eval("P"+_root.P).onUnload = function() {
eval(this._name+"shadow").removeMovieClip();
};
eval(sn+"shadow").beginFill(_root.frontColor, 10);
eval(sn+"shadow").drawCircle((pt), 0, 0);
eval(sn+"shadow").endFill();
eval("P"+_root.P).beginFill(_root.frontColor*10, 5);
eval("P"+_root.P).drawCircle((_root.pt/2), 0, 0);
this.endFill();
_root.P++;
_root.tmpx = _root._xmouse;
_root.tmpy = _root._ymouse;
}
}
};
md.onMouseUp = function() {
if (_root.isMouseDown == true) {
_root.isMouseDown = false;
if (_root.tool == "sqr") {
_root.P++;
}
if (_root.tool == "ova") {
_root.P++;
}
actionList[actionList.length-1].end = _root.P;
}
_root.tmpx = -1;
_root.tmpy = -1;
_root.level += 1000;
_root.count = 0;
};
mm.onMouseMove = function() {
_root.paintMode = !(Panel.hitTest(_root._xmouse, _root._ymouse, true));
if (_root.paintMode) {
//Mouse.hide();
_root.cursor._visible = 1;
if (_root.tool == "del") {
for (i=0; i<_root.P && _root.isMouseDown; i++) {
if (eval("P"+i).hitTest(_root.cursor)) {
eval("P"+i).removeMovieClip();
}
}
}
if (_root.tool == "sqr") {
if (_root.isMouseDown) {
sqr = eval("P"+(_root.P));
sqr.clear();
point = new Object();
point.x = _root._xmouse;
point.y = _root._ymouse;
sqr.globalToLocal(point);
toX = point.x;
toY = point.y;
sqr.beginFill(_root.frontColor, 100);
sqr.moveTo(0, 0);
sqr.lineTo(toX, 0);
sqr.lineTo(toX, toY);
sqr.lineTo(0, toY);
sqr.endFill();
}
}
if (_root.tool == "ova") {
if (_root.isMouseDown) {
ova = eval("P"+(_root.P));
ova.clear();
point = new Object();
point.x = _root._xmouse;
point.y = _root._ymouse;
ova.globalToLocal(point);
toX = point.x;
toY = point.y;
v_far = Math.abs(0-toY);
h_far = Math.abs(0-toX);
far = Math.sqrt((v_far*v_far)+(h_far*h_far));
ova.beginFill(_root.frontColor, 100);
ova.drawCircle(far, 0, 0);
ova.endFill();
}
}
if (_root.tool == "pen") {
_root.count++;
if (_root.count%500 == 0) {
_root.level += 1000;
}
if (_root.isMouseDown && _root.count%4 == 0) {
if (_root.tmpx != -1 && _root.tmpy != -1) {
Paint.duplicateMovieClip("P"+_root.P, _root.level+P);
eval("P"+_root.P).drawLine(_root._xmouse, _root._ymouse, _root.tmpx, _root.tmpy, _root.pt);
_root.P++;
}
_root.tmpx = _root._xmouse;
_root.tmpy = _root._ymouse;
}
}
if (_root.tool == "mak") {
_root.count++;
if (_root.count%500 == 0) {
_root.level += 1000;
}
if (_root.isMouseDown && _root.count%2 == 0) {
if (_root.tmpx != -1 && _root.tmpy != -1) {
Paint.duplicateMovieClip("P"+_root.P, _root.level+P);
eval("P"+_root.P).drawNeonLine(_root._xmouse, _root._ymouse, _root.tmpx, _root.tmpy, _root.pt);
_root.P++;
}
_root.tmpx = _root._xmouse;
_root.tmpy = _root._ymouse;
}
}
} else {
Mouse.show();
_root.cursor._visible = 0;
}
};
Mouse.addListener(md);
Mouse.addListener(mm);
Mouse.addListener(mu);
//
MovieClip.prototype.drawCircle = function(r, x, y) {
this.moveTo(x+r, y);
a = Math.tan(22.5*Math.PI/180);
for (var angle = 45; angle<=360; angle += 45) {
// endpoint:
var endx = r*Math.cos(angle*Math.PI/180);
var endy = r*Math.sin(angle*Math.PI/180);
// control:
// (angle-90 is used to give the correct sign)
var cx = endx+r*a*Math.cos((angle-90)*Math.PI/180);
var cy = endy+r*a*Math.sin((angle-90)*Math.PI/180);
this.curveTo(cx+x, cy+y, endx+x, endy+y);
}
};
MovieClip.prototype.drawLine = function(fromX, fromY, toX, toY, pt) {
this._x = fromX;
this._y = fromY;
point = new Object();
point.x = toX;
point.y = toY;
this.globalToLocal(point);
// trace(point.x + " " + point.y);
toX = point.x;
toY = point.y;
// way cal
v_far = Math.abs(0-toY);
h_far = Math.abs(0-toX);
far = Math.sqrt((v_far*v_far)+(h_far*h_far));
adj = (toX-0);
Q = Math.acos(adj/far)/(Math.PI/180);
if (0>toY) {
rot = 90-Q;
} else {
rot = 90+Q;
}
if (rot>90) {
way = 360-Math.abs(rot-90);
} else {
way = Math.abs(rot-90);
}
for (i=0; i<far; i += 2) {
nx = int((i)*Math.cos((way)*(Math.PI/180)));
ny = -(int((i)*Math.sin((way)*(Math.PI/180))));
this.beginFill(_root.frontColor, 100);
this.drawCircle((pt/2), nx, ny);
this.endFill();
}
};
MovieClip.prototype.drawNeonLine = function(fromX, fromY, toX, toY, pt) {
this._x = fromX;
this._y = fromY;
point = new Object();
point.x = toX;
point.y = toY;
this.globalToLocal(point);
// trace(point.x + " " + point.y);
toX = point.x;
toY = point.y;
// way cal
v_far = Math.abs(0-toY);
h_far = Math.abs(0-toX);
far = Math.sqrt((v_far*v_far)+(h_far*h_far));
adj = (toX-0);
Q = Math.acos(adj/far)/(Math.PI/180);
if (0>toY) {
rot = 90-Q;
} else {
rot = 90+Q;
}
if (rot>90) {
way = 360-Math.abs(rot-90);
} else {
way = Math.abs(rot-90);
}
this.duplicateMovieClip(this._name+"shadow", _root.P+_root.level-500);
this.onUnload = function() {
eval(this._name+"shadow").removeMovieClip();
};
for (i=0; i<far; i += 2) {
nx = int((i)*Math.cos((way)*(Math.PI/180)));
ny = -(int((i)*Math.sin((way)*(Math.PI/180))));
eval(this._name+"shadow").beginFill(_root.frontCol or, 10);
eval(this._name+"shadow").drawCircle((pt), nx, ny);
eval(+this._name+"shadow").endFill();
}
for (i=0; i<far; i += 2) {
nx = int((i)*Math.cos((way)*(Math.PI/180)));
ny = -(int((i)*Math.sin((way)*(Math.PI/180))));
c = new Color(this);
c.setRGB(_root.frontColor);
c.blendRGB(0xffffff, .2);
this.beginFill(c.getRGB(), 100);
this.drawCircle((pt/2), nx, ny);
this.endFill();
}
};
function cursorReflesh() {
this.createEmptyMovieClip("cursor", 100001);
c = new Color(this.cursor);
c.setRGB(_root.frontColor);
if (_root.frontColor>(0xffffff/2)) {
c.blendRGB(0x000000, -0.3);
} else {
c.blendRGB(0xffffff, -0.5);
}
this.cursor.lineStyle(1, 0xffffff, 100);
this.cursor.drawCircle(pt/2, 0, 0);
this.cursor.startDrag(true);
}
function undo() {
if (actionList.length>0) {
a = actionList.pop();
if (a.start == undefined) {
C = new Color(this.Background);
C.setRGB(a);
C2 = new Color(this.Panel.bubg);
C2.setRGB(a);
} else {
for (i=a.start; i<=a.end; i++) {
eval("P"+i).removeMovieClip();
}
_root.P = a.start;
}
}
}
cursorReflesh();
Make This Drawing Board Write Only On Board Area?
First of all sorry for the long post...
I need to make this drawing board (works good) to write ONLY
in a 450 x 300 px area. Actually if you select the pencil it draws
as long as you drag but anywhere else on the movie..
You can download the fla in
http://www.soccerschool.com.ar/f/drawingBroadmx.zip
This code is attached to frame 1 and the movie has other action
on the mclip of the board itself:
CODE of mclip:
onClipEvent (load) {
function setColors() {
C = new Color(_root.Panel.bgfc);
C.setRGB(_root.frontColor);
}
}
-----
CODE of frame 1:
_root.P = 0;
_root.level = 1000;
_root.tmpx = -1;
_root.tmpy = -1;
_root.count = 0;
_root.isMouseDown = false;
_root.frontColor = 0x000000;
//default tamaño del pincel
_root.pt = 6;
_root.tool = "pen";
md = new Object();
mm = new Object();
mu = new Object();
actionList = new Array();
Number.prototype.HEXtoRGB = function() {
return {rb:this >> 16, gbthis >> 8) & 0xff, bb:this & 0xff};
};
Color.prototype.blendRGB = function(c1, c2, t) {
if (arguments.length == 2) {
t = c2;
c2 = this.getRGB();
}
if (t<-1) {
t = -1;
} else if (t>1) {
t = 1;
}
if (t<0) {
t = 1+t;
}
c1 = c1.HEXtoRGB();
c2 = c2.HEXtoRGB();
var ct = (c1.rb+(c2.rb-c1.rb)*t) << 16 | (c1.gb+(c2.gb-c1.gb)*t) << 8 | (c1.bb+(c2.bb-c1.bb)*t);
this.setRGB(ct);
return ct;
};
md.onMouseDown = function() {
if (_root.paintMode) {
a = new Object();
a.start = _root.P;
actionList.push(a);
_root.isMouseDown = true;
if (_root.tool == "del") {
for (i=0; i<_root.P; i++) {
if (eval("P"+i).hitTest(_root.cursor)) {
eval("P"+i).removeMovieClip();
break;
}
}
}
if (_root.tool == "sqr") {
Paint.duplicateMovieClip("P"+_root.P, _root.level+P);
eval("P"+_root.P)._x = _root._xmouse;
eval("P"+_root.P)._y = _root._ymouse;
}
if (_root.tool == "ova") {
Paint.duplicateMovieClip("P"+_root.P, _root.level+P);
eval("P"+_root.P)._x = _root._xmouse;
eval("P"+_root.P)._y = _root._ymouse;
}
if (_root.tool == "pen") {
Paint.duplicateMovieClip("P"+_root.P, _root.level+P);
eval("P"+_root.P)._x = _root._xmouse;
eval("P"+_root.P)._y = _root._ymouse;
eval("P"+_root.P).beginFill(_root.frontColor, 100);
eval("P"+_root.P).drawCircle((_root.pt/2), 0, 0);
this.endFill();
_root.P++;
_root.tmpx = _root._xmouse;
_root.tmpy = _root._ymouse;
}
if (_root.tool == "mak") {
Paint.duplicateMovieClip("P"+_root.P, _root.level+P);
eval("P"+_root.P)._x = _root._xmouse;
eval("P"+_root.P)._y = _root._ymouse;
eval("P"+_root.P).duplicateMovieClip(eval("P"+_roo t.P)._name+"shadow", _root.P+_root.level-500);
sn = eval("P"+_root.P)._name;
eval("P"+_root.P).onUnload = function() {
eval(this._name+"shadow").removeMovieClip();
};
eval(sn+"shadow").beginFill(_root.frontColor, 10);
eval(sn+"shadow").drawCircle((pt), 0, 0);
eval(sn+"shadow").endFill();
eval("P"+_root.P).beginFill(_root.frontColor*10, 5);
eval("P"+_root.P).drawCircle((_root.pt/2), 0, 0);
this.endFill();
_root.P++;
_root.tmpx = _root._xmouse;
_root.tmpy = _root._ymouse;
}
}
};
md.onMouseUp = function() {
if (_root.isMouseDown == true) {
_root.isMouseDown = false;
if (_root.tool == "sqr") {
_root.P++;
}
if (_root.tool == "ova") {
_root.P++;
}
actionList[actionList.length-1].end = _root.P;
}
_root.tmpx = -1;
_root.tmpy = -1;
_root.level += 1000;
_root.count = 0;
};
mm.onMouseMove = function() {
_root.paintMode = !(Panel.hitTest(_root._xmouse, _root._ymouse, true));
if (_root.paintMode) {
//Mouse.hide();
_root.cursor._visible = 1;
if (_root.tool == "del") {
for (i=0; i<_root.P && _root.isMouseDown; i++) {
if (eval("P"+i).hitTest(_root.cursor)) {
eval("P"+i).removeMovieClip();
}
}
}
if (_root.tool == "sqr") {
if (_root.isMouseDown) {
sqr = eval("P"+(_root.P));
sqr.clear();
point = new Object();
point.x = _root._xmouse;
point.y = _root._ymouse;
sqr.globalToLocal(point);
toX = point.x;
toY = point.y;
sqr.beginFill(_root.frontColor, 100);
sqr.moveTo(0, 0);
sqr.lineTo(toX, 0);
sqr.lineTo(toX, toY);
sqr.lineTo(0, toY);
sqr.endFill();
}
}
if (_root.tool == "ova") {
if (_root.isMouseDown) {
ova = eval("P"+(_root.P));
ova.clear();
point = new Object();
point.x = _root._xmouse;
point.y = _root._ymouse;
ova.globalToLocal(point);
toX = point.x;
toY = point.y;
v_far = Math.abs(0-toY);
h_far = Math.abs(0-toX);
far = Math.sqrt((v_far*v_far)+(h_far*h_far));
ova.beginFill(_root.frontColor, 100);
ova.drawCircle(far, 0, 0);
ova.endFill();
}
}
if (_root.tool == "pen") {
_root.count++;
if (_root.count%500 == 0) {
_root.level += 1000;
}
if (_root.isMouseDown && _root.count%4 == 0) {
if (_root.tmpx != -1 && _root.tmpy != -1) {
Paint.duplicateMovieClip("P"+_root.P, _root.level+P);
eval("P"+_root.P).drawLine(_root._xmouse, _root._ymouse, _root.tmpx, _root.tmpy, _root.pt);
_root.P++;
}
_root.tmpx = _root._xmouse;
_root.tmpy = _root._ymouse;
}
}
if (_root.tool == "mak") {
_root.count++;
if (_root.count%500 == 0) {
_root.level += 1000;
}
if (_root.isMouseDown && _root.count%2 == 0) {
if (_root.tmpx != -1 && _root.tmpy != -1) {
Paint.duplicateMovieClip("P"+_root.P, _root.level+P);
eval("P"+_root.P).drawNeonLine(_root._xmouse, _root._ymouse, _root.tmpx, _root.tmpy, _root.pt);
_root.P++;
}
_root.tmpx = _root._xmouse;
_root.tmpy = _root._ymouse;
}
}
} else {
Mouse.show();
_root.cursor._visible = 0;
}
};
Mouse.addListener(md);
Mouse.addListener(mm);
Mouse.addListener(mu);
//
MovieClip.prototype.drawCircle = function(r, x, y) {
this.moveTo(x+r, y);
a = Math.tan(22.5*Math.PI/180);
for (var angle = 45; angle<=360; angle += 45) {
// endpoint:
var endx = r*Math.cos(angle*Math.PI/180);
var endy = r*Math.sin(angle*Math.PI/180);
// control:
// (angle-90 is used to give the correct sign)
var cx = endx+r*a*Math.cos((angle-90)*Math.PI/180);
var cy = endy+r*a*Math.sin((angle-90)*Math.PI/180);
this.curveTo(cx+x, cy+y, endx+x, endy+y);
}
};
MovieClip.prototype.drawLine = function(fromX, fromY, toX, toY, pt) {
this._x = fromX;
this._y = fromY;
point = new Object();
point.x = toX;
point.y = toY;
this.globalToLocal(point);
// trace(point.x + " " + point.y);
toX = point.x;
toY = point.y;
// way cal
v_far = Math.abs(0-toY);
h_far = Math.abs(0-toX);
far = Math.sqrt((v_far*v_far)+(h_far*h_far));
adj = (toX-0);
Q = Math.acos(adj/far)/(Math.PI/180);
if (0>toY) {
rot = 90-Q;
} else {
rot = 90+Q;
}
if (rot>90) {
way = 360-Math.abs(rot-90);
} else {
way = Math.abs(rot-90);
}
for (i=0; i<far; i += 2) {
nx = int((i)*Math.cos((way)*(Math.PI/180)));
ny = -(int((i)*Math.sin((way)*(Math.PI/180))));
this.beginFill(_root.frontColor, 100);
this.drawCircle((pt/2), nx, ny);
this.endFill();
}
};
MovieClip.prototype.drawNeonLine = function(fromX, fromY, toX, toY, pt) {
this._x = fromX;
this._y = fromY;
point = new Object();
point.x = toX;
point.y = toY;
this.globalToLocal(point);
// trace(point.x + " " + point.y);
toX = point.x;
toY = point.y;
// way cal
v_far = Math.abs(0-toY);
h_far = Math.abs(0-toX);
far = Math.sqrt((v_far*v_far)+(h_far*h_far));
adj = (toX-0);
Q = Math.acos(adj/far)/(Math.PI/180);
if (0>toY) {
rot = 90-Q;
} else {
rot = 90+Q;
}
if (rot>90) {
way = 360-Math.abs(rot-90);
} else {
way = Math.abs(rot-90);
}
this.duplicateMovieClip(this._name+"shadow", _root.P+_root.level-500);
this.onUnload = function() {
eval(this._name+"shadow").removeMovieClip();
};
for (i=0; i<far; i += 2) {
nx = int((i)*Math.cos((way)*(Math.PI/180)));
ny = -(int((i)*Math.sin((way)*(Math.PI/180))));
eval(this._name+"shadow").beginFill(_root.frontCol or, 10);
eval(this._name+"shadow").drawCircle((pt), nx, ny);
eval(+this._name+"shadow").endFill();
}
for (i=0; i<far; i += 2) {
nx = int((i)*Math.cos((way)*(Math.PI/180)));
ny = -(int((i)*Math.sin((way)*(Math.PI/180))));
c = new Color(this);
c.setRGB(_root.frontColor);
c.blendRGB(0xffffff, .2);
this.beginFill(c.getRGB(), 100);
this.drawCircle((pt/2), nx, ny);
this.endFill();
}
};
function cursorReflesh() {
this.createEmptyMovieClip("cursor", 100001);
c = new Color(this.cursor);
c.setRGB(_root.frontColor);
if (_root.frontColor>(0xffffff/2)) {
c.blendRGB(0x000000, -0.3);
} else {
c.blendRGB(0xffffff, -0.5);
}
this.cursor.lineStyle(1, 0xffffff, 100);
this.cursor.drawCircle(pt/2, 0, 0);
this.cursor.startDrag(true);
}
function undo() {
if (actionList.length>0) {
a = actionList.pop();
if (a.start == undefined) {
C = new Color(this.Background);
C.setRGB(a);
C2 = new Color(this.Panel.bubg);
C2.setRGB(a);
} else {
for (i=a.start; i<=a.end; i++) {
eval("P"+i).removeMovieClip();
}
_root.P = a.start;
}
}
}
cursorReflesh();
Create Marquee Names In Flash But Edit Names In Text File HELP
Hi all im trying something new with a website. I have looked around and havent been able to find a file or help sections on this. Maybe someone can help me on this...
The marquee is going to scroll left to right and repeat over and over. This is going to be in flash. What i need is the names that are going to be in the marquee needs to be in a text file so they can easily be edited by anyone that doesnt have flash knowlege.
Can this be done?
Flash .swf Within Table Cell Controlling Other Items In Table Cell...
This is a bit complicated to explain, I hope I put it across ok, lol. It will help if you download the .zip file to see what I'm going on about.
Basically, I have a table with cells. At the top in the middle cell is a .swf file which is red and to either side are 2 blue JPEG images in separate cells.
I would like to know how to refer to those 2 blue JPEG images from within the .swf file.
In the past I have managed (coded within .swf files) to refer to new windows, _parent and even frames. Now all I need to do is crack referring to image ID's.
The 2 blue JPEG image ID's are : 'HeaderLeft' and 'HeaderRight'
The HTML page holding the Tables is : TableExample4.html
The red .swf file is : Menu1.swf
HERE IS THE CRUX OF THE ISSUE - this is the code on the Hit Zone of a button within the Flash .swf file which is meant to refer to the blue image's ID.
on (release) {
getURL("SampleLines.jpg", "HeaderLeft");
getURL("SampleLines.jpg", "HeaderRight");
}
SampleLines.jpg is what I want to be the replacement image. HeaderLeft and HeaderRight are the image ID tags.
At present it is not working. It should surely ! I have no idea why.
If I wanted the image to replace the parent, it's simply :
on (release) {
getURL("SampleLines.jpg", "_parent");
getURL("SampleLines.jpg", "_parent");
}
If I wanted the image to appear in a new window, it's simply :
on (release) {
getURL("SampleLines.jpg", "newWindow");
getURL("SampleLines.jpg", "newWindow");
}
If I wanted the image to appear in a frame, it's simply :
on (release) {
getURL("SampleLines.jpg", "Frame1");
getURL("SampleLines.jpg", "Frame1");
}
...So does anyone know what to do if I want the image to replace another image on the HTML page ?
I hope this makes sense !
Thanks.
Take 2 Arrays (1 Of First Names And 1 Of Last Names), Then Combine The First And Last
Hi everyone. I'm totally new to actionscript and trying to do somethng simple but I just can't see where I'm wrong. I'm trying to take 2 arrays (1 of first names and 1 of last names), then combine the first and last names into a string, and push that string into another array as one index.
My loop seems to be working fine, except that when I trace the array after the function, it just shows the last name. I think this is because I am not pushing within the function?
Can someone advise me or show related examples???
Thanks!
Code:
var classFirsts:Array = ["Albert", "Amber", "Conway", "Danny (Shyang-Min)", "Darcy (Yun-Ching)", "Dongwoo", "Fiorella", "Jae Hwan", "Jie Yun", "Julia", "Justin", "Kane", "Kunal", "Michael", "Rohini", "Scott", "Thai"];
var classLasts:Array = ["Dang", "Krishan", "Liao", "Chang", "Wang", "Kim", "Gu", "Kim", "Roe", "Vallera", "Blinder", "Albarron","Patel", "Thibodeau", "Rathi", "Hartman", "Le"];
var numFirstNames:uint = classFirsts.length; //COUNTS NUMBER OF NAMES IN ARRAY
var ourClass:Array = new Array() ; //EMPTY ARRAY TO FILL WITH CLASS NAMES
function getFullName():String {
for (var i:uint = 0; i < numFirstNames; i++) {
var fullName:String = classFirsts[i] + " " + classLasts[i];
}
return fullName;
}
var fullName:String = getFullName();
ourClass.push (fullName);
trace(ourClass);
User Levels, Cell Phones, And User Registration, Plus Cookies
I need to quote a client on the following and need to know how much work is involved, ie hours. The programming may be done in PHP (unless its easier to do it all with AS), and the so the .swf needs
to talk to other files on the server.
Requirments are as follows:
1. contact form that: validate form, generate email, generate SMS for cell phones
2. registration form that: validates form, checks record, stores record if new, creates and sets cookie so they don't have to login next time, re-directs to appropriate page, sends email confirmation, deletes record if bad.
3. "extranet": validate i/p, check group (user level), send to user group destination
I just need to know if this is a simple couple thousand dollar thing or a complex many thousand dollar thing.
I can't guarantee anything (I don't write the cheques around here), and depending on the complexity of it we may be looking to subcontract some of it out.
Email me directly at: jonny@northstudio.com if you can be of any help.
AS2 : Using Variables As Array Names/ Dynamic Array Names
Hi,
Hoping someone here can help me with this problem:-
This code works (as part of a loop):-
attachMovie(x1r1[i], "Aln1" + i, i);
where x1r1 is the name of an array which gets cycled through.
However, this array name will change on a new level, (lvl) so what I really
need is something that works like this:-
lvl = 1;
var ex = "x"+lvl"+r1"
attachMovie(ex[i], "Aln1" + i, i);
However flash does not see ex as equal to "x1r1" for the purposes of
using it as an array name. Not even if I use "eval".
Any suggestions?
Thanks
Michael.
Table
I am using this table field which I downloaded and i am trying to attach another column with checkbox in it....
I am still new to actionscript, can anyone what should I add/modify the script so as to be able to add another column with a checkbox in each row.
Thank You.
I have attach a zip example file as well.
Table
Is there a good way to make a table in flash? I thought about using HTML and doing the td /td, stuff but that doesn't work. Is there a way i can do it with out having to make a bunch of seperate text boxes?
Table
Is there any way to draw a table in flash without doing it all by hand? Is there an extension somewhere for it, or component, or anything? Thanks.
Swf Within Table
Hi there,
my problem is quite simple, and yet... I've got a table, one row with two cells. In the left cell I placed a javascript driven cascadind menu (which develops to the right). In the right cell, there's the content corresponding to the user's choice in the menu. While the cascading menu functions ok in regular pages (i.e. the menu develops just fine over the right cell), I have an issue with the home page, where I placed and flash animation in the right cell. The menu develops beneath the animation, which makes it invisble.
Any help with that please?
Thanks,
Val
<table> Tag
Hi all,
I am looking to create an swf file that I can have one big dynamic text field where there will be 3 columns (date, place, and event). It is going to be a user-updateable schedule page. I have the dynamic text box working and some tags work, but the <table> tag doesn't.
Does anyone know of an alternative method so I don't have to have the user try to space everything out perfectly with just breaks and spaces?
Thanks,
Ha1ls45
Table Is Not 100%? Or Bg?
I have created this site, http://www.ohiou.edu/researchnews/ex...dit/index.html , but when the browser res is higher then 1024 you will see that the background of the page seems to stop. If you look at my code i have table height set to 100%. If anyone can help me on how to fix this issuse i would apreciate it.
thanks,
Dave
Function Table
Where can I find a table of Operators and Functions with there use and how to use them?
Table Planner Help Please
I want to build a table planner that wouold import a list of guests from another tool to create a guest list. I would like to have the guests, which would be stored in a SQL database, to be imported into the Flash tool in a side bar with draggable movie clips which are prefilled with the guests names from the guest info in the database. The main movie would have a floor plan of tables and slots around the tables to drag the draggable movies in the sidebar over the Hit area so people can mix and match guests by dragging them to and from other tables and then print the layout when they are done. Also the setup has to be saved so when they log back into their account to use the tools the Flash table planner should open up back with the last configuration made.
To save the info what could Flash send back to the database so this info can be stored for later retrieval? If new guests are added to using the guest tool, those new guests should appear in the sidebar so they can be incorporated into the tables.
To populate the draggable movies could I use a duplicate movie script with info from the database to populate it. So it duplicates the draggable movie filling it with each guests name until it goes through the whole guest list.
The guest manager tool will be in ASP or perhaps even in Flash. The info will be stored to an SQL database.
What is a good place to start such a tool and is it possible with Flash actionscript?
I would appreciate some actionscript hints and tips and starting points on getting info from the database and having Flash create the draggable guests to be moved around the floor plan, how to setup printing, and how to save it so when users come back to it the last know configuration can be accessed or multiple configuration can be saved and retrieved along with any new additions of guests which can be dragged to the existing configuration or remove any deleted guests.
Thanks
Table Planner Help Please
I want to build a table planner that would import a list of guests from another tool to create a guest list. I would like to have the guests, which would be stored in a SQL database, to be imported into the Flash tool in a side bar with draggable movie clips which are prefilled with the guests names from the guest info in the database. The main movie would have a floor plan of tables and slots around the tables to drag the draggable movies in the sidebar over the Hit area so people can mix and match guests by dragging them to and from other tables and then print the layout when they are done. Also the setup has to be saved so when they log back into their account to use the tools the Flash table planner should open up back with the last configuration made.
To save the info what could Flash send back to the database so this info can be stored for later retrieval? If new guests are added to using the guest tool, those new guests should appear in the sidebar so they can be incorporated into the tables.
To populate the draggable movies could I use a duplicate movie script with info from the database to populate it. So it duplicates the draggable movie filling it with each guests name until it goes through the whole guest list.
The guest manager tool will be in ASP or perhaps even in Flash. The info will be stored to an SQL database.
What is a good place to start such a tool and is it possible with Flash actionscript?
I would appreciate some actionscript hints and tips and starting points on getting info from the database and having Flash create the draggable guests to be moved around the floor plan, how to setup printing, and how to save it so when users come back to it the last know configuration can be accessed or multiple configuration can be saved and retrieved along with any new additions of guests which can be dragged to the existing configuration or remove any deleted guests.
Thanks
Displaying Xml In A Table
-----------------------------------------------
we have an xml file and need to display the info in a dynamic table. Is there an easy way to generate that table and display the xml data on the fly? is it even possible in flashMX?
-----------------------------------------------
How To Scale A Swf In Table/div
Hi I want to create an topmenu swf size=(1700X120)
Is there a way that the browser ignore the with so it do not
show an bottom scroll.
:-) PAUK
Score Table
How would I create a table that adds +1 after i collect an item in a game?
Table Containing Flash Is Always On Top
ok, i dont know what it is im doing wrong here
ive made this swf where i load external swfs on level1 and it plays fine in flash player, everything loads fine.
thing is when i insert it in html it wont load the rest of the movies(
also
in the html there are one table, one layer..in the table theres the swf and in the layer theres some txt..and tho the layer is above the table (z-index=4) i cant see it. i tried putting flash on layer too (z-index=1) but txtlayer couldnt be seen on browser, flash is always on top
can someone help me pls??
[Edited by uega on 08-23-2002 at 05:42 PM]
Highscore Table
Hi all,
I need to display highscores from a game but the ISP does not use PHP and the tutorials available are for PHP.
What is my alternative, if perl, are there any tutorials?
Regards
AJJA17
Array As A Look Up Table
I'm assuming an array would be the best way to make a "lookup table" of values. Though I'd appreciate hearing about any other ways. How would you go making a lookup table?
For example, if I wanted to relate each letter of the alphabet to a color I could do something like this.
If ("a"){
color = "red";
}
If ("b"){
color = "blue";
}
If ("c"){
color = "yellow";
}
... but, of course, nobody wants to do that 26 times.
How can you get code to recognize one item and look up its related value in an array that matches a to red.
Thanks.
Picture Behind A Table
http://shambhalayogadance.com/special_courses.html
I want to put a picture/symbol behind this table on the page.
I have tried putting it in a layer and giving it a z-index of 10000, but it won't 'go behind' the table.
I have a style.css file that I would like to drop this piece of script into so it shows up on many pages.
How can I do that?
Xml And Table And Flash Mx
I have a microsoft excel spreadsheet and i want this to paste in xml
i use golive 6.
In flash mx i want to read the xml file but i don't see nothing.
I need this so i can show this the sam as in excel.
I know that i can paste it in a table but what is th actionscript in flash mx so i can read the xml file.
Please help me,.................
Swf Setup In Table
When in certain browsers, and at higher screen resolutions, or if the user goes full screen, the bottom of my table stops
when I want the images I placed on either side of this table to "go to infinity".
I'm not sure this problem is occuring on all systems, but here's the link!!!
Do I simply need to extent the heigth of these margin gif's beyond all
possible viewing resolutions, or will I keep encountering this when the surfer has scrolled to the site floor?
Any insight?
Table Problems :s
Hi there,
My friend just told me how to work with tables in frontpage but it's some kind of a mess. I mean it's verry hard to get them verry nice next to eachother
You should have a look (the site is still in progress)
Kiewit website (www.kiewit.tk)
I attatched the file and you should look on this page (the borders on rhe right in the center frame) the corners :s :s :s
Can someone help me to solve these problems ?
Great thanx
Table Edge
I really didn't know where to post it because this refers to Dreamweaver. Can you tell me if it's possible to make elipse-shape edge of table by means of CSS or something without creating an additional image? Thnx
|