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




Sorry This Post Was Sent By Mistake And Has To Be Deleted



sorry this post was sent by mistake and has to be deletedEdited: 03/16/2008 at 01:00:45 PM by elic05



Adobe > ActionScript 1 and 2
Posted on: 03/16/2008 12:52:34 PM


View Complete Forum Thread with Replies

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

I Deleted My Global Classpath By Mistake
From within the Edit=> preferences, I deleted my global classpath by mistake. Please, how do I find this path? I've searched my entire harddrive on keywords I thought the global path would be and have been unable to find it.

Yes, I'm a noob.
-m

Deleted Objects Really Deleted?
Hi everyone,

Here's the situation: I have a movie that was 12mb. I need to use only a small part of it, so i start deleting library objects and scenes i won't need. The .fla file size remains the same. Puzzled, i start deleting more and more, until i have nothing left in the library, only 1 scene left with absolutely nothing on it, but the .fla file is still 4mb big. Anyone has a logical explanation for this? Is it possible that Flash keeps deleted items in memory or something like that?

Upon looking the forum here, i tried the trick of "saving as" but it didn't work.

Btw, I'm using Flash 5 on a PC.

Thanks for any input!

Are Deleted Items Really Deleted?
I am suspecting not... because when I import a video clip into my fla, then delete it from the library and import another video clip, my fla has doubled in size. It seems the first video still counts tiwards the file size of the fla.

Is there any way to make sure deleted files are really gone?

Puzzled!

My Post Clip Doesn't Grab Latest Post Until Refresh Or Next Post
ok, i have a movie that has a posting feature

problem is, when i submit a post, SOMETIMES the clip that handles the posting reads in the text before it has been written to the text file, resulting in the post not being shown when the text is reloaded. it will show if the browser is refreshed, or a new post is submitted afterwards

basically, i'm just loading a text file at the start of the clip and if a post is submitted, i go back and load the text file again

hope that makes sense....any ideas?

Bug Or My Mistake?
So when I'm working in flash i have that streng problem. I have in win xp keyboard set to my language (unicode).

It's working in flash to. Key shortcuts, brackets, but after a while it doesn't work anymore. Keyboard is set to non-unicode.

But in windows is working fine. I have to reset Flash and then it works fine.

Do I hit something or what. A bug? Don't know. I hope u guys can help me out. Cheers!

Where Is The Mistake
i have the following code:

Code:
asd = function(a,b){
switch(a){
case 0: b="A"; break;
case 1: b="B"; break;
case 2: b="C"; break;
case 3: b="D"; break;
case 4: b="E"; break;
case 5: b="F"; break;
case 6: b="G"; break;
}
return(b);
}
f="X"
for(i=0;i<10;i++){
asd(i,f)
trace(f);
}
i want f to be traced in this order: A, B, C, D, E, F, G, X, X, X
where is the mistake.
thanks

Help, With My Mistake
Olah, Um, this was my mistake in the first place... but if anyone patient enough to help me is out there i have 1 request, with multiple ways to help.

Well, I'm new to flash, or new enough to use it, but not using the Actionscripts. Rite, so well when i Bought it it asked for MX 2004 or MX Pro. 2004, not knowing "Pro" used only expert action scripts style of scripting, i don't understand nor know what to type any action scripts.

All i ask for, is Either tell me if there is a way to switch them back and forth, or if that's not possible, if you could write the script on ur reply. They are just simple stuff, not even a whole page of em, all i wasnt is like "On (Press)... (i want whole script) and like the typed of Stopallsounds, cuz when i did it, it didn't work. I unders stand like Stop and stuff, but When i click the Booklets icons to help, all it does is one word stuff with instant names...

Last, if you didn't read the top, Could you rite down as many scripts as you can to help out a 13 year old.

Thanx...

What`s The Mistake?
Can somebody find it?
.fla file

Where's The Mistake?
Code:
redStyle = "<FONT FACE="Arial,Helvetica" COLOR="#ff0000">" ;
testing.htmlText = redStyle + "testing123 </FONT>" ;

Where Is The Mistake?
Ok I am trying to resize a movieclip. So I have a rectangle on stage with instance name mc1 and I have put this code inside the clip's timeline:


ActionScript Code:
onClipEvent(enterFrame)
{
this._height+=5;
this._width+=5;
}


Ok so this works and it increases the clip's size constantly. What I want to do is when it reaches its size + 50 pixels, it should scale down with the same amount. So I write this on the main timeline:


ActionScript Code:
var xH=_root.mc1._height;
var xY=_root.mc1._width;
 
if((xH == xH+50)&& (xY == xY+50))
{
xH-=50;
xY-=50;
}


So where is my mistake? The clip does not scale down as it should, when it reaches its size +50px. It ignores the if

I Must Be Doing A Simple Mistake
I amd doing something in flash 5 but exporting in 4 (hence the look of the code) Ok so this is the code i have:

scrollvis = "getProperty (../scroll,_visible )";
if (scrollvis=false) {
play ();
} else {
stop ();
}

The idea is if the visibilty of this movie clip "scroll" is not visible, i want the time current timeline to play.. if not stop. what is the mistake i am making?

¿Where The HELL Is The Mistake?
Errr,... i got no idea how to start. I'll try to explain:

The intended graph is simple. One parameter passed via HTML and i just make a "goto". Well, i used nested "if" instead of "case" 'cause i must use Flash 5.
This is the code:

STOP;
porcentaje = Number(probabil);
if (porcentaje<=0 or porcentaje>=100) {
porcentaje = "xx";
gotoAndStop (1);
} else {
if (porcentaje<10) {
posicion = 14;
txt_porcentaje = "0,5";
} else if (porcentaje<20) {
posicion = 27;
txt_porcentaje = "0,6";
} else if (porcentaje<30) {
posicion = 41;
txt_porcentaje = "0,8";
} else if (porcentaje<40) {
posicion = 54;
txt_porcentaje = "0,9";
} else if (porcentaje<50) {
posicion = 66;
txt_porcentaje = "1,2";
} else if (porcentaje<60) {
posicion = 81;
txt_porcentaje = "1,5";
} else if (porcentaje<70) {
posicion = 95;
txt_porcentaje = "2,1";
} else if (porcentaje<80) {
posicion = 110;
txt_porcentaje = "2,7";
} else if (porcentaje<90) {
posicion = 128;
txt_porcentaje = "3,8";
} else {
posicion = 198;
txt_porcentaje = "10,3";
}
gotoAndStop (posicion);
}

Easy until here, isn't? Well, it is uploaded right
here
and if I modify the parameter and send a number above 50, "posicion" holds the right number, but the "goto" doesn't work.¿Why?

In the same url (here) is the .zip with the .fla
Please, anyone check it. ¿Where is my mistake?

Thanx in advance for the answer.

Macromedia Mistake...?
Try this, I want to know if it is only me.

1. Take your text tool and make an input text field on your scene or mc. Inbed only numbers, publish then try to type in the field. Only numbers show right!

2. Make a second input text field and do the same. You can only type number in both.

3. (THE MISTAKE) Make one of the text fields inbeded for all characters while the other is only numbers like before (not changed). Publish again. Notice that both text fields are allowing ALL characters.

Shouldn't each individual text inbeding be independant of other character inbedings??? - I know this was the case in Flash 5.

Reason... I'm making a form and I need a phone number input but it's allowing letters as well... Any ideas???

Probably A Stupid Mistake But...
...whats wrong with this code? I was bored and i decided i'd experiment a lil with actionscript. well i made a phonelike thing where when you press a button of the phone, it will add that number to the phone number (if you press 1234567890 it will come out as (123) 456-7890). anyway, i got it basically working except one little thing. i have a variable named press that specifies which number in the phone number you are on (if press = "1", then youre on (_ ) - ). The thing works fine when i don't use the variable, but when i try to add it things get messed up. when it works, i have this code:


Code:
on(release){
_root.phoneNumber1.text = "1";
press = press++;
}
but when i replace the "1" after phoneNumber with the variable, it messes up.


Code:
on(release){
_root.phoneNumber add "press" add .text = "1";
press = press++;
}

i'm probably just adding the variable in wrong. please tell me whats wrong. this isnt a real project, just a learning experience to learn more actionscript. heres the fla

Menu Mistake.. What To Do?
I created a pop-down menu. I just copy and pasted the movieclip three times to get three different menus. How can I get different choices on each one? When ever I put it in one, it goes in all three.

Can someone take a look and let me know? It would mean a lot!

www.ineptclothing.com/richard1.fla

Thanks,
Jordan

Stupid Mistake... I Think
So, I've basically finish my first flash site, but hadn't accounted for a preloader. The tutorials I've looked at all say the pre-loader should go in the first few frames, for obvious reasons. Here's my problem. If I add 5 frames to the beginning of my movie, all of my gotoandPlay functions will be off. Because of the nature of the site, as well as my messy newbie code, there are quite a few of these functions. Is there a quick way around it?

[F8] Probably A Dumb Mistake But...
Hi there,

I'm creating a portfolio in which you can use buttons to change the colours of the text, buttons and background. The thing is: I need to target all buttons and the header at once and this works fine using:
Code:
dblue_btn.onRelease = function() {
colorTrans.rgb = 0x5253CF;
trans.colorTransform = colorTrans;
new Color(_root.content.scrollbar_cv.cv_text.cv_text_inside.cv_text_tint).setRGB(0x5253CF);
new Color(_root.topbar.barclr && _root.home_buttonm.home_button.homebtn.homeclr).setRGB(0x5253CF);



However once I target more buttons using the following code, it stops to work at all. What am I missing here?


Code:
dblue_btn.onRelease = function() {
colorTrans.rgb = 0x5253CF;
trans.colorTransform = colorTrans;
new Color(_root.content.scrollbar_cv.cv_text.cv_text_inside.cv_text_tint).setRGB(0x5253CF);
new Color(_root.topbar.barclr && _root.home_buttonm.home_button.homebtn.homeclr && _root.about_buttonm.about_button.aboutbtn.aboutclr && _root.cv_buttonm.cv_button.cvbtn.cvclr && _root.works_buttonm.works_button.worksbtn.worksclr && _root.other_buttonm.other_button.otherbtn.otherclr).setRGB(0x5253CF);


~Senshi

Can't Find The Mistake
Hi Again.
I made a button similar to the sheme I got here:http://board.flashkit.com/board/show...76#post4125176

I first thought it worked, but it looks like i messed something up:
Can anybody tell me what I did wrong?


Code:
var btnstatus:Number=(fmcontroller.btn_pp.currentFrame);
fmcontroller.btn_pp.addEventListener(MouseEvent.CLICK, onMouseClick2);
function onMouseClick2(e:MouseEvent):void
{
if(btnstatus == 1){
fmcontroller.btn_pp.gotoAndStop(2);
running_dot_text.gotoAndStop(2);
running_dot.stop();
video1.stop();
reflex1.stop();
// It stops working here
video2.stop();
reflex2.stop();
video3.stop();
reflex3.stop();
}else if(btnstatus == 2) etc...... {
Backround: There are 2 frames inside fmcontroller.btn_pp
The first on is a stop button and the other one is a play button.

Allinement Mistake....
Hi all , i was modifing the orbital template for my site and after introducing a web player everything shifted on the left of the screen! does anyone knows why? i've check the sizes and proportions of course...nothing out of place.
here is the link of my site.... www.harkomrecords.org
i'll be very happy if someone give me some help for the issue on the "visual project" part,
cheers

Can't Find The Mistake.
Hi Again.
I almost finished converting my AS2 file into AS3, but there is a mistake in the pause button. The entire script is less than 100 lines.
And I messed somthing up between line 22 and 27.
I think the problem is that I called the instances video2, reflex2 etc
like if in AS2
Or the whole if & else if thing is built up wrong.

If anybody has a few minutes time.... would be great if you could have a look at this.

http://www.hgc-graz.com/flash_mavi_empty_AC3.fla

Thanx in advance
Martin

Find Mistake
anybody can help me...im new in AS3....pls there may be any stupid mistake...
Trying to make drawing tool...on stage!!!!

ActionScript Code:
var mc:MovieClip = new MovieClip();
this.addChild(mc);

this.addEventListener(MouseEvent.MOUSE_DOWN,down);
this.addEventListener(MouseEvent.MOUSE_UP,up);

function down(MouseEvent) {
    mc.graphics.lineStyle(2,0x000000,100);
    mc.graphics.moveTo(this.mouseX,this.mouseY);
    var se = setInterval(Draw,1);
}

function up(MouseEvent) {
    clearInterval(se)//what is problem here????????????
}

function Draw():void {
    mc.graphics.lineTo(this.mouseX,this.mouseY);
}

Where I Make Mistake?
In attached movie, when cursor comes to the red block it has to show text which says "computer is OFF". When cursor exit from the red block text has to vanquish. Everithyng is the same for the green block except text. It has to write "computer is ON". This never happend because text is out of control.
Please, tell me what i have to do ? (or change .fla file)Thanx

Plz Correct My Mistake
Hello everybody,


I make gaming and I have mistake and I hope someone correct that to me



my mistake :
the gaming give me message for action wrong.
when the bomber came down sharap_explo make it in wrong place... let me explain more ( when the bomber fell down .. some thing is throw it that make wrong place

plz if someone know how correct the action or .... I'm become happy

bye
broken heart

Whats My Mistake Here?
the backGround dont change at all

and the circle dont move at all..

tnx for the help


PHP Code:



package {    import flash.display.Sprite;    import flash.display.StageAlign;    import flash.display.StageScaleMode;    import flash.events.Event;        [SWF(width="500", height="400", backgroundColor="#ffffff")]     public class EmbedAssets extends Sprite    {        [Embed(source="library.swf", symbol="circle")]        private var Circle:Class;                public function EmbedAssets()        {                        stage.scaleMode = StageScaleMode.NO_SCALE;            stage.align=StageAlign.TOP_LEFT;                        var circle:Sprite = new Circle();            addChild(circle);            circle.x=200;            circle.y=200;                        circle.addEventListener(Event.ENTER_FRAME, onEnterFrame);        }                public function onEnterFrame(evt:Event)        {            _parent.circle.x+=5;            }    }} 

Can You See My Mistake ? Conversion
Hi,

I have a vertical slider that works great, I did try to convert it to a horizontal slider changing all values of height to width and y x to y but it does not work.

Please can someone help me??

Here is the original code:

targY=0;

dragger._x = 370;
line._x = 370;


dragger.onPress=function(){
startDrag(this,false,this._x,0,this._x,theMask._he ight-this._height);
}

dragger.onRelease=dragger.onReleaseOutside=functio n(){
stopDrag();
}

theText.setMask(theMask);

theText.onEnterFrame=function(){

scrollAmount=(this._height-(theMask._height/1.3))/(theMask._height-dragger._height);

targY=-dragger._y*scrollAmount;


this._y-=(this._y-targY)/5;
}



Here is my modified code that does not work for horizontal

targX=0;

dragger._y = 370;
line._y = 370;


dragger.onPress=function(){
startDrag(this,false,this._y,0,this._y,theMask._wi dth-this._width);
}

dragger.onRelease=dragger.onReleaseOutside=functio n(){
stopDrag();
}

theText.setMask(theMask);

theText.onEnterFrame=function(){

scrollAmount=(this._width-(theMask._width/1.3))/(theMask._width-dragger._width);

targX=-dragger._x*scrollAmount;

this._x-=(this._x-targX)/5;
}

Where Is My Mistake? ._visible
do you know where is the mistake?

ActionScript Code:
for (i=0; "mc"+i; i++){
"mc"+i._visible = false;
}

thank you

FLA Deleted
Well I had a brain fart this morning and deleted an entire directory which wasnt a big deal as I had a backup of it on a webserver except for the fla of my menu. Ive looked around for software to restore files from an emptied recycle bin but they never seem to find the file I need.

Does anyone know if its possible to convert an SWF to FLA with the actionscript? Or can anyone do it for me? Im really lazy and not looking forward to doing the menu all over again.

Help EVERYTHING GOT DELETED
Hi. My computer has just recovered from a major system error. All of my files were deleted, aside from .EXE files, and some folders, which is the strange part. I'm running Windows XP, if anybody knows a way to restore what was lost.
I am extremely frustrated at the moment, but am relieved to know that I uploaded the .SWF files of a site I am currently making to the server. Does anybody know of a way that I can turn the .SWF into the original .FLA (maybe an extremely good decompiler), or a program that can recover lost items? I guess maybe returning to the last system restore state may do it. Anybody have any experience with this? ALL HELP IS APPRECIATED!
Thanks,
Sportzguy933

Dup Deleted
dup deleted

Deleted
deleted





























Edited: 04/10/2007 at 02:02:30 PM by bippity

DELETED
DELETED





























Edited: 04/24/2007 at 11:32:23 AM by bippity

DELETED
DELETED





























Edited: 06/18/2007 at 04:29:03 PM by ToroGuns

Deleted
deleted





























Edited: 02/28/2007 at 10:14:56 AM by Mister Peanut

Deleted
deleted..





























Edited: 07/06/2007 at 07:00:11 PM by dingsword

Deleted
wrong post, sorry





























Edited: 06/01/2008 at 02:36:40 PM by konach

Deleted
deleted





























Edited: 06/05/2008 at 04:16:25 PM by >Vee<

Deleted
deleted

Syntax/target Mistake?...help..?
thank you for reponding,

i'm about to throw the mac out the window. I just got a copy of flash5 and I have no idea why this isn't working;

-"main.swf" contains a movie instance called "loader"

-secound frame in "main.swf" loads "scroller.swf" into movie instance "loader" (working fine so far)

- a button in "main.swf" has this action script:

on (release) {
tellTarget ("_root.loader") {
play ();
}
}

-the problem is the I can't controll the "scroller.swf" that has been loaded into the movie instance "loader" in the "main.swf" timeline.

If you know what my problem is besides stupity and lack of sleep, please give me a shout back.

thank you kindly,

nigel

Some Stupid Mistake Pls Point Out....
hi

Can anybody point out the mistake in the code below. When i populate tempvar with a constant it is received in ASP and updates teh database, but if i have teh while loop it doesnt update teh database...


when i checked teh values from while loop using a plain text data file to load its all OK.
This code is in the onClipEvent(enterframe) of my movie clip.

I cant get around teh problem.

var tempvar = "";
i = 1;
var x = _global.numbars; //this x is getting proper value

while(i <= x)
{

tempvar = tempvar + eval("_root.movie"+i+".mid.text")
+","+eval("_root.movie"+i+".slot.text")+","+eva l
("_root.movie"+i+".errthresh.text")+",";

i = i+1;
}

//var tempvar = "12,78,89,";
//trace("OK"+tempvar+"HELLO");

loadVariables("dmm2.asp","_root.movie_func","POST" );
// loadVariables("data.txt","_root.movie_func","POST" );


thanks

Mistake In Posting In ASforum Instead Of Here
here's the link :
http://www.flashkit.com/board/showth...hreadid=511265

sorry, since this is a newbie question, this should belong here, so waiting the mods to migrate it here.

thx for helping.

Find The Mistake() Easy For You :-)
my dynamic textfield with multiple lines selected is called: target

for noob reasons i must have made a mistake here:

target="line1"+newline+"line2";

why does it now show me 2 lines like this:

line1
line2

in my dynamic textfield?

thx .-O=

Preload Using AttachSound... A Mistake, Obviously, But Where?
hi!

first: thanks!!! i've found tons of answers for my problems from the earlier threads in different forums, this site is a life saver... but now i need to post a question myself. forgive me if it's a stupid one! i've tried, though, a lot, and need some guidance.

i'm a newbie, struggling to make my first flash site for a band. i found a tutorial describing how to preload sounds. all right, so i decide to practice with that. after trying aaaaalll night, i finally managed to make the preloader work. wheee! well, at least when stimulating download the thingie seems to load my sound files - but how to start the sounds then? i've tried putting different codes to my start-button, according to all advice i've found, but clearly i'm doing something wrong. i know only the very beginnings of action sripting. i'm using flash mx pro 2004.

attached is my tutorial-test.fla... the buttons to start the music are in frame 3. could someone please take a look and point out my error..?

obviously, i'll need buttons to stop the sounds also. since i didn't mange to start them, i didn't proceed that far yet.

lastly, if i may: what i'm aiming at is to eventually have a movie, that preloads and plays 3 to five band's sample songs, each one of them lasting 1 minute. i've already created an animation with musicians actually playing their instruments. i will try to synchronize swf's in different levels so that when a song is loaded and play-button pressed, the animation will move from still image into a band-playing animation loop. when the music stops, the band freezes also. with this aim, am i on the right track...? is this a good method? if not, what should i try next?

i'd really appreciate if someone could help me forward!!!! any advice, hints and comments are more than welcome. it's 8 am now, i've got to get some sleep, i feel like a zombie...

gratefully,
mar

I Think Iv'e Made A Simple Mistake..
I have several textboxes wich desplay the currently selected types of items
eg.
small weapon: $50
Large weapon: $80
Toatal:$ 130

how can i make large weapon (lweapon) add with small weapon(sweapon) and the total be desplayed in total(tot).

The Simplest And Craziest Mistake
I have been trying endlessly to accomplish one simple thing...
To make different circles rotate on the spot- they always wobble and shift.
I've tried using the snap tool, changing the orientation, changing the objects from movie clips to symbols, holding shift while positioning the next frame, and nothing prevents the shift!
Someone please help..

Find The Mistake In As Or Php...long One.
OK so I am trying to make work a guestbook where you can leave a text message or a drawing. I got to the point where you can submit and the result will show up in the database (phpMyAdmin) but I cannot retrieve the result and canìt understand where is the mistake so here you go
Action script

ActionScript Code:
blackboard.clearChalk = function():Void {var cl = this._parent._parent.chalkLine;this.createEmptyMovieClip("chalkLayer", 0);this.chalkLayer.lineStyle(cl.thickness, cl.color, cl.alpha);};blackboard.clearText = function():Void {this.createEmptyMovieClip("textLayer", 10);};blackboard.clearAll = function():Void {this.clearChalk();this.clearText();};blackboard.makeDrawing = function(drawing:XMLNode):Void {var coordinates:Array = drawing.attributes.coordinates.split("|");var position:Array = coordinates[0].split(",");this.chalkLayer.moveTo(position[0], position[1]);for (var i:Number = 1; i < coordinates.length; i++) {position = coordinates[i].split(",");this.chalkLayer.lineTo(position[0], position[1]);}};blackboard.makeTextField = function(field:XMLNode):Void {var attr:Object = field.attributes;var d:Number = this.textLayer.getNextHighestDepth();var x:Number = attr.x;var y:Number = attr.y;this.textLayer.createTextField("t" + d, d, x, y, this.width - x, this.height - y);var tf:TextField = this.textLayer["t" + d];tf.multiline = true;tf.wordWrap = true;tf.setNewTextFormat(this._parent._parent.chalkFormat);tf.embedFonts = true;tf.text = attr.text;};blackboard.clearAll();blackboard.width = blackboard._width;blackboard.height = blackboard._height;function loadEntry() {blackboard.clearAll();if (entryNum != undefined) {entryXML = new XML("<entry entryNum='" + entryNum + "' />");} else {entryXML = new XML("<entry />");}entryXML.contentType = "text/xml";entryXML.onLoad = populateBoard;entryXML.sendAndLoad("retrieveEntry.php", entryXML);}function populateBoard() {var entry:XMLNode = this.firstChild;var attr:Object = entry.attributes;entryNum = Number(attr.number);entryNum_if.text = entryNum;totalEntries = Number(attr.total);totalEntries_tf.text = "/" + totalEntries;name_tf.text = attr.name;date_tf.text = attr.date;var message:XML = new XML(unescape(attr.message));var children:Array = message.firstChild.childNodes;var j:Number;for (var i:String in children) {switch (children[i].nodeName) {case "text":var fields:Array = children[i].childNodes;var fieldLength:Number = fields.length;for (j = 0; j < fieldLength; j++) {blackboard.makeTextField(fields[j]);}break;case "drawings":var drawings:Array = children[i].childNodes;var drawingLength:Number = drawings.length;for (j = 0; j < drawingLength; j++) {blackboard.makeDrawing(drawings[j]);}break;}}}first_bn.onRelease = function() {entryNum = 1;loadEntry(); };prev_bn.onRelease = function() {if (--entryNum < 1) {entryNum = entryNum_if.text = 1;}loadEntry(); };next_bn.onRelease = function() {if (++entryNum > totalEntries) {entryNum = entryNum_if.text = totalEntries;}loadEntry(); };last_bn.onRelease = function() {entryNum = totalEntries;loadEntry(); };entryNum_if.onKillFocus = function() {var num:Number = Number(this.text);if (isNaN(num)) {this.text = entryNum;return;} else if (num < 1) {this.text = entryNum = 1;} else if (num > totalEntries) {this.text = entryNum = totalEntries;} else {entryNum = num;}loadEntry();};

And php retrieveEntry

Code:

<?





$dbhost = "000.000.000.00";

$dbuser = "onsitus";

$dbpassword = "onsitus";

$dbname = "onsitusdb";





$vars = $GLOBALS["HTTP_RAW_POST_DATA"];





$link = @mysql_connect($dbhost, $dbuser, $dbpassword);

if (!$link) {

print ("<?xml version='1.0' ?><status result='error' message='could not connect to server' />");

} else {

if (!@mysql_select_db($dbname)) {

print ("<?xml version='1.0' ?><status result='error' message='unable to select database' />");

} else {

$query = "SELECT EntryID FROM tb_Guestbook";

$entries = mysql_query($query);

if (@mysql_num_rows($entries) < 1) {

print ("<?xml version='1.0' ?><status result='error' message='no entries found' />");

} else {

if (!$xmlVars = xmldoc($vars)) {

print ("<?xml version='1.0' ?><status result='error' message='error parsing file' />");

}

$root = $xmlVars->root();

$entryNum = $root->get_attribute("entryNum");

$totalEntries = @mysql_num_rows($entries);

if ($entryNum == NULL) {

$entryNum = $totalEntries;

}

mysql_data_seek($entries, $entryNum - 1);

$entryRow = mysql_fetch_array($entries);

$entryID = $entryRow["EntryID"];

$query = "SELECT Name, Date_Format(Date, '%W, %m/%d/%y, %l:%i %p') AS Date, Message FROM tb_Guestbook WHERE EntryID=$entryID";

$result = mysql_query($query);

if (@mysql_num_rows($result) > 0) {

$row = mysql_fetch_array($result);

$name = $row["Name"];

$date = $row["Date"];

$message = $row["Message"];

$entry = "<?xml version='1.0' ?>";

$entry .= "<entry number='$entryNum' total='$totalEntries' name='$name' date='$date' message='$message' />";

print($entry);

} else {

print ("<?xml version='1.0' ?><status result='error' message='unable to find entry' />");
}
}
}
mysql_close($link);
}
?>

A lollipop for the lucky winner.

I Expect This To Get Deleted
well i have a site but i dont know how to make a page for it or make that page be linked and have the web adress for it can some one help me???

Character Gets Deleted
Hi

When sending variables from an email form in flash to my php script, the last character of the first variable always gets deleted eg:

var = foo

I get email with:

var: fo

any ideas?

Its Deleted My Fla File
AAARRRRRRRRRRRGGGGGGGGHHHHHHHHHH!!!!!!!!!!!!!
HHHHHHHHEEEELLLLLLLLPPPPPPPPPPP!!!!!!!!!!!!!!!!!!!

so my flash 7.0 MX crashes and off it goes, I reset the machine and got to the directory where I left the file, and guess what! the .swf is there but no .fla file!

whats going on, where is it!!

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