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




Actionscript Flash 4



hello... I would want to know as I make to move the cursore of the mouse in contrary sense to an object or the ouse he goes down and a list goes on? Viviana thanks



FlashKit > Flash Help > Flash ActionScript
Posted on: 07-15-2001, 06:48 PM


View Complete Forum Thread with Replies

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

[CS3] Needs Help Converting Simple Flash 5 Actionscript 1.0 To Flash 8 Actionscript 2
Hi, can anyone help me convert this code to actionscript 2.0
I will separate it into the frames its on.

Frame 1
i = 1;
max = 60;
x = getProperty("fire", _x);

Frame 2
if (Number(i)<=Number(max)) {
duplicateMovieClip("fire", "fire" add i, i);
i = Number(i)+1;
}

Frame 3
if (Number(i)<=Number(max)) {
duplicateMovieClip("fire", "fire" add i, i);
i = Number(i)+1;
}
gotoAndPlay(2);

Thanks i appreciate any help

[F8] Flash6 Actionscript 2, Flash 8 Actionscript 2...help
Ok loosing it a bit now, have gone back to a very old project from a Flash 6 file, managed to convert the script language to ActionScript2, works fine as flash6 actionscript2, but once I change the project to be flash 8 I get One error......and I know where it's coming from (see below), Have come to a dead - end here, so hope that one of you guys may be able to help me....

Feel free to use this if you can get it working, just credit the designer (Me).

On the main stage MC named "site", go inside and double click on any of the MC's (named "str0, or str1 etc....all instances). Once inside an "str" MC move to frame 2 and the MC on the stage should be called "seg0 or seg1 etc...(again all instances"), go inside the MC and click on frame 1 of the actions layer. Scroll down and look for the variable named "var nummer = _parent.plus+Number(this._name.substr(3, 1));"....this always returns NaN in flash player 8, but works in flash player 6?.................help me.....I'm drowning.

link to files:
http://www.solidvision.co.uk/dev/help.zip

Convert Actionscript Flash 5 To Actionscript 2.0
any one can tell me how to convert actionscript flash 5 to actionscript 2.0??? anythings i need to take note? i reallynew in actionscript 2.0...please help me.. thanks a lot

Flash ActionScript == Flex ActionScript?
Is ActionScript basically programmed the same way for Flash as it is for Flex? I know some folks who develop in AS for Flex. I didn't know if it was exactly the same for Flash, so I could tap them as a resource when I have an AS question.

Thanks,
Loren

Flash 8 V. Flash MX 2004, ActionScript, Actionscript 3
I have a question:

Could someone explain the material differences between Flash 8 and Flash MX 2004, ActionScript and ActionScript 3?

Can Flash 8 ($699 retail version) do everything that the other three can do?

Thank you very much for your time and response.

ActionScript 2.0 To ActionScript 1.0 Using Flash 8
Hi there, I've a contact form with input fields, but, in some area of this form I've placed a combobox drop down menu, wich is a component, I'm using flash 8, so everything was working fine untill my client saids he needs that working in Actionscript 1.0 and the movie published for the flash player version 6, in my button I've this code

on (release) {
Enquiry = (comboBox1.getSelectedItem().label);
_root.test.text = este;
gotoAndPlay("gracias");
this.loadVariables("contacts.php", "POST");
}

thing here is because of the player version update now my dropdown menu is not working, just wondering if somebody can help me with this?

Thanks a lot!!


Arturo

The Flash Anthology: Cool Effects &amp; Practical ActionScript - Chapter 1: Flash Essentials
This is an article discussion thread for discussing the SitePoint article, "The Flash Anthology: Cool Effects & Practical ActionScript - Chapter 1: Flash Essentials"

The Flash Anthology: Cool Effects & Practical ActionScript - Chapter 1: Flash Essenti
Notice: This is a discussion thread for comments about the SitePoint article, The Flash Anthology: Cool Effects & Practical ActionScript - Chapter 1: Flash Essentials.
__________

eXCELLENT! clearly composed article, gonna read the other chapters too. thanks

How Do I Control A Flash Movie From A Seperate Flash Navigation Bar. Actionscript?
I need to create a flash navigation that controls another flash movie in the middle of the screen. In other words, when someone clicks on a menu item it pulls up one of the frames in the flash movie. If you click on another item, it pulls up another frame in the flash movie and so on. The flash navigation bar is on the left and the movie is in the middle of the screen. I have both movies created, I just need to connect them. Are we talking about actionscript here? any ideas or suggestions appreciated.

Unsing Flash MX 2004 - ActionScript With PHP To Alter Flash
Check out the link below:

http://www.livebrochure.net/peninsulahk

What I am trying to do is create a PHP Web Control Panel that will allow you to change the pictures/text/logo in a movie like that.

Can this be done with ActionScript????? If so, how?


Thanks for any and all help.

[F8] List Of Things Diff In Flash 8 From Flash 6 Actionscript
Hi

I'm trying to export an swf as swf 8 as2 that has swf 6 as2 code in it.

Needless to say it doesn't quite work.

A friend told me that parts like:
this.splash_mc === undefined
need to be changed to this.splash_mc === "undefined"

can you tell me where I can find a list of other things that would need to be checked?

Matt

Flash & Actionscript For Flash Only Sites. Opinions Wanted.
In reference to this thread:
http://board.flashkit.com/board/showthread.php?t=760704
I just want to ask what the Flash community thinks about developing websites with entirely Flash & Actionscript ONLY, as in one stage window hosting the entire website. The whole shebang, Flash and nothing else.

Many web designers, like myself, still struggle with incompatible and non-conforming browsers, CSS, XHTML, and having to test websites on different browsers takes a lot of time, not even to mention the time it takes to get things rendering the same on multiple browsers.

Wouldn't it be better for me to start developing my websites as a whole in Flash.

Write and test on one browser, and know it will work everywhere, it just sounds much better than my current workflow.

Thanks for the advice in advance!

ActionScript Not Working Runs When Published In Flash 6 But Not In Flash 8
Hi,

I have this file which I created from http://www.tutorialized.com/tutorial...entation/11499 where the actionscript works in Flash Player 6 but when I publish into Flash player 7 or 8 it does not seem to want to play.

It gets a pop up message stating:
"A script in this movie is causing Flash Player to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort?"

My purpose to get this working in Flash 8 is because I need to incorporate CSS Stylesheets externally.


Here is the following actionscript:

stop();
numberOfTabs = 3;
for (i=1; i<=numberOfTabs; i++) {
line = eval("tab"+i);
line.onRelease = function() {
for (i=1; i<=numberofTabs; i++) {
otherTabs =
eval("this._parent.tab"+i);
otherTabs.bottomLine._visible =
true;
}
this.bottomLine._visible = false;
contentFrame = Number (this._name.substr(3,
1));
this._parent.contents.gotoAndStop(contentFrame);
}
}
tab1.bottomLine._visible = false;

tab1.onPress = function() {
gotoAndStop("tab1");
};

tab2.onPress = function() {
gotoAndStop("tab2");
};

tab3.onPress = function() {
gotoAndStop("tab3");
};


How does it need to be changed?

My ActionScript Not Working When Published Works In Flash 6 Not In Flash 8~
Hi,

I have this file which I created from http://www.tutorialized.com/tutorial...entation/11499 where the actionscript works in Flash Player 6 but when I publish into Flash player 7 or 8 it does not seem to want to play.

It gets a pop up message stating:
"A script in this movie is causing Flash Player to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort?"

My purpose to get this working in Flash 8 is because I need to incorporate CSS Stylesheets externally.


Here is the following actionscript:

stop();
numberOfTabs = 3;
for (i=1; i<=numberOfTabs; i++) {
line = eval("tab"+i);
line.onRelease = function() {
for (i=1; i<=numberofTabs; i++) {
otherTabs =
eval("this._parent.tab"+i);
otherTabs.bottomLine._visible =
true;
}
this.bottomLine._visible = false;
contentFrame = Number (this._name.substr(3,
1));
this._parent.contents.gotoAndStop(contentFrame);
}
}
tab1.bottomLine._visible = false;

tab1.onPress = function() {
gotoAndStop("tab1");
};

tab2.onPress = function() {
gotoAndStop("tab2");
};

tab3.onPress = function() {
gotoAndStop("tab3");
};


How does it need to be changed?

Flash 4 & Flash MX _parent Actionscript Question
Hello! I am having problems with the actionscript conversation from MX to ver. 4..Please help!

I have this script attached to one of my buttons in a movie:

on (release) {
_parent.gotoAndPlay(3);
}

It works fine in MX but it does not work in ver.4. Can anyone please help? All I want to do is to link back to main/parent movie frame 3 or label "three". Please help!!

THANK YOU SO VERY MUCH

Flash MX 2004 Actionscript 2.0 And Flash Player 6
Hi All!
At my job, we have encountered a challenge to create a project, BUT the kicker is it needs to be converted for Flash Player 6. Right now, we currently have everything created in Flash MX 2004, using actionscript 2.0, classes, built in classes, and using some UI Components. I do realize that in the Flash Player 6, CSS can not be recognized, and UI Components in v2 won't work correctly...

Can we use Actionscript 2.0 programming to build our project, and export for Flash Player 6? I know this would be creating a lot of things from scratch or would it just make sense to program in actionscript 1.0.......

People who have experienced this issue in the past, it would be greatly appreciated to hear your end and what suggestions you may have or work arounds that helped you through this. Thanks so much!

Converting Flash 5 Tanmenu Actionscript To Flash MX
I have an old source file from mjau-mjau written in Flash 5. The script uses properties that when converted to flash player 6+ (AS1 and AS2) dont function properly.

Can anyone help me convert this cool menu system to flash MX?

FLA attached. (named TanMenu)

Thanks in advance...

Also, as advanced thanks and to proove Im not just a novice trying to get free scripting out of someone, please help yourself to an XML driven expanding menu Ive been working on (uses Lacos tweening prototypes) - feedback would be apreciated, its still in its infancy..

I Could Use Help With Updating Deprecated ActionScript From Flash 4 To Use In Flash M
My situation is this: on frame 5 (which Is named "calculate") There is ActionScript for calculating items selected by the user. On frame 1 there is ActionScript stating call ("calculate"); Which I understand is deprecated ActionScript from Flash 4 that will not work with Flash 6. I know it executes the ActionScript on the "calculate " frame without sending the play head there. This is what I would like to accomplish in FlashMX, but I'm not sure how to update the Script to do this.
Thanks for any help!

Convert ActionScript Code From Flash 5 To Flash 8
Greetings,

I have a Flash5 Actionscript here that does not work on Flash8, I´ve tryed to fix but had no sucess...

Can anyone help me with that ??


Code:
largodemo = 25;
myString = this._name;
temp1 = "";
for (n=0; n<largodemo; n++) {
temp1 += chr(random(42)+48);

}
temp2 = this.myString.substr(0, i);
this.eltexto = temp2+temp1.substring(i, largodemo);
i++;
if (i<=largodemo) {
gotoAndPlay(1);
} else {
stop();
}

[Flash 8] Old Actionscript Doesn't Work In Flash... Help Please
Hello,
I have found a old flash file with endles scrolling gallery. I want to use this and edit it in flash 8 but it doesn't work. So I hope that someone can help me out on this.
When i want to test the movie an error massage apears saying:


Quote:




**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 8: Syntax error.
setProperty "a" add i,_x,mx;
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 9: Syntax error.
set "a" add Number(i) add ":t1", i;
**Error** Scene=Scene 1, layer=Layer 1, frame=2:Line 7: ')' or ',' expected
mx = getProperty("a" add i, _x);
**Error** Scene=Scene 1, layer=Layer 1, frame=2:Line 8: ')' or ',' expected
setProperty ("a" add i, _x, mx-15);
**Error** Scene=Scene 1, layer=Layer 1, frame=2:Line 14: Unexpected '}' encountered
}
Total ActionScript Errors: 5 Reported Errors: 5




Here's the action script (It's has 3 frames in the root):
Frame 1:

Code:

mx = getProperty("a1",_x);
mw = getProperty("a1",_width);
itemnr = 5;
for(i=15; i<=itemnr; i++)
{
mx = (mx + mw) + 15;
setProperty "a" add i,_x,mx;
set "a" add Number(i) add ":t1", i;
}
frame 2:

Code:

a1.onRelease = function() {
mc = _root.a1._x
if (mc>0 and mc<210)
{
for (i=1; i<=itemnr; i++)
{
mx = getProperty("a" add i, _x);
setProperty ("a" add i, _x, mx-15);

}

}
}
if (mc>220 and mc<400)
{
for (i=1; i<=itemnr; i++)
{
mx = getProperty("a" add i, _x);
setProperty ("a" add i, _x, mx-15);
}
}
frame 3:

Code:

gotoAndPlay (2);
I hope that someone here can help me out...

Greetz

HELP IN FLASH 4 ACTIONSCRIPT
ok i am quite new to action script so if any 1 can help please help me

ok lets say i have 2 textboxes and 1 button

now i wann my user to input the answer to a question into 1 of the textbox(1), then he has to click on the button which will perform some error checking.
if he get wrong for the first time, the other text box(2) will display a wrong message and he will be given a second chance to input the answer.lets say for the second time he still get the wrong answer and the other text box(2) will display another message....

ok now my problem is that how are you going to let the user input the second time if he get the wrong answer for the first time... it might sound simple to u guys so if can help please help me
thanks a lot man
another thing i am using flash 4 so can some 1 post the coding in flash 4 version coz i kmow flash 4 and flash 5 coding are quite different in some way
thanks a lot man

Actionscript In Flash 5/MX
How different is the actionscript between Flash 5 and Flash MX? Should I bother learning Actionscript in Flash 5 at all or just skip to Flash MX? Or vice versa?

I ask because I know that there will be a time when I'll need to develop in both products.

Flash MX Actionscript
I can't seem to get this 'Random Movement' script to work in MX. I tried it in Flash 5 and it works fine:

//Random Movement: kirupa.com
//Thanks to Suprabeener for the original code!


function getdistance (x, y, x1, y1) {
var run, rise;
run = x1-x;
rise = y1-y;
return (hyp(run, rise));
}
function hyp (a, b) {
return (Math.sqrt(a*a+b*b));
}
MovieClip.prototype.reset = function () {
var dist, norm, movie_height, movie_width;


// movie_height: refers to the height of your movie
// movie_width: refers to the width of your movie

//---------------------------------

movie_height = 150;
movie_width = 300;

//---------------------------------


speed = Math.random()*4+2;
targx = Math.random()*(movie_width-_width);
targy = Math.random()*(movie_height-_height);
dist = _root.getdistance(_x, _y, targx, targy);

norm = speed/dist;
diffx = (targx-_x)*norm;
diffy = (targy-_y)*norm;
};


MovieClip.prototype.move = function () {
var cycle;



// cycle: specifies the number of milliseconds waited
// between movements

//--------------------------------------------

cycle = 200;

//--------------------------------------------

if (_root.getdistance(_x, _y, targx, targy)>speed) {x += diffx;y += diffy;
} else {x = targx;
y = targy;
if (!this.t) {
t = getTimer();
}if (getTimer()-t>cycle) {reset();
t = 0;
}
}
_x = x;
_y = y;
}


This is the script for the object:

onClipEvent (enterFrame) {
move();
}


Any ideas? Thanks for the help!

Here's the link to the tutorial:
http://www.kirupa.com/developer/actionscript/random.asp

FLASH MX ActionScript
Hi..

Is there much difference between FLASH 5 & FLASH MX Action Script. seeing that there are already seperate forums
for FLASH 4 / FLASH 5 A.S.
Books for FLASH MX still seem to be few and far between
and do not cover A.S from the point of view of someone new to FLASH.

I need to know of a good ref. to both FLASH MX & A.S.
I tend to grasp things better from a good book than from
some tuts.

Flash MX Actionscript Help
I am making an adventure game in Flash MX. How can I make it so a button is removed after you pick it up. I think there is a way to do this with actionscript. Can someone please tell me how to do this?

Actionscript Help....new To Flash
I am new to Flash( 5 ) and am working on a project.... i have a wheel.... this wheel is rotated when a button is pushed. When this button is pushed... an X appears on the wheel....the user is then able to drag the X anywhere on the wheel. Once the drag is completed.... the user can then rotate the wheel again..... the X needs to move with the wheel. Right now it is not.... ANy ideas?

Flash MX And ASP And Actionscript
I'm working on a marketing website which will (or at least it should) have the ability to load product images dynamically from a database. I'm not familiar with database structure, however I know currently, the site I'm redesigning uses a series of ASP code to load variables and display a list of products and product information.

Long story short. Can FLASH MX use actionscript to reference variables in ASP code and use those variables to display images and text dynamically?

I realize this is a long shot and probably pretty advanced.. .so if anyone can offer some comprehensive links/tutorials on this subject beyond the standard Google search, I would be very appreciative. Any experience with this interaction or example sites that currently use FLASH and ASP dynamically would also be of enourmous help.

Flash MX - Actionscript Help
I am sort of new to Flash MX, and I was wondering - is the loadVariables (for loading external text files) different from Flash 5? I've been trying it and it just isn't working at all. I'm trying to load it into 2 Dynamic Text Boxes, one named localeText and the other myText. I load my text with this:

onClipEvent (load) {
this.loadVariables ("http://www.coreywatson.com/res/var1.txt");
}

and through a button if they move on to a different segment:

on (press) {
this.loadVariables ("http://www.coreywatson.com/res/var1.txt");
}

however, it does not work at all...

my text file looks like this:

&localeText = lkasdflkjsaldkfjfldksjfdlskfjdsalfkj
&myText = ldksfjdslkjlkdsjfdslkjdlfksajlskdjflkjsdlkj

(i just want to find out if it works)

do you know why this isn't working?

my 2 DTBs are located in 2 different layers and in a MC - would this create problems? They also have instance names, myLC and myMC...

Can you help me out? (be specific please)

Thanks if you can!

FS: Flash 5 + Actionscript
I am selling my Flash 5 and Action script books - both books are from the friends of ed series and are very good books to have.

I would like 20$$ This includes shipping to the 49 states

aim me at yakimasy

icq me at 191849385

or email me at yakiyak@hotmail.com

I accept paypal also

thanks

bill

Actionscript In Flash MX
Dear friends,

Recently I have started my work on actionscript in flash MX but confused that from where should I start. How can I establish a link of actionscript with the frames? How do I enable performing actions with the simple button?. Please help.
Hoping to get positive response.

Thanking you,

your Friend,
Gagandeep

Flash Mx Actionscript Help
i have a flash movie with 3 layers. layer 1 i have imported a WAV file, which plys right through from frame 1 to frame 1010 on layer 1.

on layer 2 (UNDER LAYER 1) i have a quicktime movie embedded in the frame, this plays from frame 1 to frame 152. when i test movie they both look and sound like they should, everythin is fine there.

HERE COMES THE ACTION SCRIPT BIT. ON LAYER 3 i want to import a swf file using the loadmovie command. im using this action script

loadMovie("c:\myfile.swf", targetMC); the problem is, i want this movie to load on layer 3 at frame 155, after the movie finishes on layer 2. but it doesnt appear. anyone know why.

if i open a new file and on frame 1 put this actionscript in, then the file loads no problem, but i really need this file to load where i put it......... can this be done!!!!!!!!please help

thanks all.

Flash And Actionscript
i am interesting about learning bouth of that so does anyone know where to find good tutorials about flash mx?
just sent me url on my mail
thx

An API For Flash/Actionscript
Hello!

Where can I find an API for Flash as you have in Java (www.java.sun.com) so you can search for functions for example :

If I create an textfield I can call these functions etc.

I hope you understand.

Thanks for helping me// M8M8

Flash MX ActionScript
Hi, ive been havin some problems with this script.

ive scripted a message box popup when there is a hitTest between 2 MC's but i now want to add another MC to this list... how do i go about this?

what ive got so far is:


Quote:




onClipEvent (enterFrame) {
if (this.hitTest(_root.male) and (_root.female)) {
_root.talk._visible = 1;
_root.talk.message = "Hi there "+_root.name;
_root.t = 0;
timer = true;
}
if (timer == true) {
// start timer
_root.t++;
}
if (_root.t>=5) {
// timer clicks 50 times
_root.talk._visible = 0;
_root.t = 0;
timer = false;
}
}




im pretty fluent in Java2 and tried using the double && operator to concatinate this into 1 statement but it only works for 1 MC. i have also attempted this with an or statement and double ||'s but it still doesnt work?

can anyone clear this up for me plz?

many thanks

Is It Possible In Flash ActionScript(MD5)?
Hello..

I'm a new user here.. And I hope will find an answer for my question..

I want to know how to use MD5 for variables.. in other words.. I have a SWF.. inside it there is many variables.. And there is a URL to load it inside the ActionScript there.. (This URL will be loaded as a SWF movie..) So if I used a normal LoadMovie any user can know that URL.. the URL must not be shown for anyone.. to not let them downlaod the second SWF.. So I must use MD5 to encrypt that URL.. I used Tevas for that and it doesn't crypt variables..

The URL can be put in a Text field inside the flash movie.. it is not a problem.. but I want to hide that URL from the users by anyway.. This URL is a combination of many fields in that SWF file : http://www.sitenamehere.com/(TextField1)+"/"+(TextField2)+".swf"

So I want this to be loaded only.. and I don't want the user to download it or hack the file to know the URL and download it.. So can I use MD5 for that or there is another ways more useful for that?

How to do that with MD5? (An example please)

Waiting your help..

Cheers..

Is It Possible In Flash ActionScript(MD5)?
Hello..

I'm a new user here.. And I hope will find an answer for my question..

I want to know how to use MD5 for variables.. in other words.. I have a SWF.. inside it there is many variables.. And there is a URL to load it inside the ActionScript there.. (This URL will be loaded as a SWF movie..) So if I used a normal LoadMovie any user can know that URL.. the URL must not be shown for anyone.. to not let them downlaod the second SWF.. So I must use MD5 to encrypt that URL.. I used Tevas for that and it doesn't crypt variables..

The URL can be put in a Text field inside the flash movie.. it is not a problem.. but I want to hide that URL from the users by anyway.. This URL is a combination of many fields in that SWF file : http://www.sitenamehere.com/(TextField1)+"/"+(TextField2)+".swf"

So I want this to be loaded only.. and I don't want the user to download it or hack the file to know the URL and download it.. So can I use MD5 for that or there is another ways more useful for that?

How to do that with MD5? (An example please)

Waiting your help..

Cheers..

When Using Flash Actionscript On MX....
What do you represent as keys within the actionscript. I know there is LEFT,RIGHT,UP, and DOWN but how do you use other keys? (like F or Q)

Flash MX Actionscript
I need to create an actionscript that sends the movie filename to a text file or have the movie pull up a file at its completion. This is needed to prepare it so a PHP script can be used to take that action and update the database. I don't know what actionscript to use.

Flash Actionscript Help
Hai,
I wanna learn flash actionscript. Can you suggest some links and resources

ActionScript 2 In Flash 5
I'm using Flash MX 2004 with ActionScript 2. If users have Flash Player version 5, will they need to upgrade to play the swf files?

Does anyone have any links or information on compatibilities with the different versions of Flash Player?

Thank you,
Rob

About Flash Actionscript
Ivisited the site curiousmedia.com it had interactive curtain with buttons Please explain me its script

About Flash Actionscript
http://www.curiousmedia.com is the site which I visited.
I want to know the actionscript used for interactive curtains,Please will you help me out

Flash MX Actionscript Help
I am working on my first project using Flash MX Actionscript. The .fla I am modifying has one character proceeding from a start point to an end point.

I want to add two more characters on a fixed non-collision course (the current action takes place in one frame. I was hoping to use motion tweening to set 2 characters on a fixed non-collision path, is it possible to have both action script and motion tweening, or am I now tied to using action script for all characters?).

The third character would be on a collision course with character1. I have to modify the existing action script so that the next tile up (or down, depending on the character) is checked prior to advancing. The actions in that case are:

1. for char1: stop and wait the tile to clear, then proceed.
2. for char3: go around char1 and back to path.

Would anyone be able to help me with this?

Flash MX ActionScript Help
Hi all,
While I still have some hair left on my head, I wondered if anyone can help me to see what's going wrong here please...

I am loading my .swf with a single FlashVar param. This param is titled 'ID' and carries the member ID of the user in question. So far, so good. There are two places in the .swf where this ID needs to be sent back to a PHP script for processing. The two commands to do this are exactly the same - the first is on a keypress when new information is sent to the PHP :

loadVariablesNum("../Pages/im.php", 0, "POST");

This works perfectly, I can echo the ID variable correctly in the PHP file as well as all the additional information. Later in the ActionScript I have a loop which just updates the .swf with whatever information the PHP spits out - this also works perfectly, except that the ID is not sent, which in my case means the information I get back is not accurate.

I have tried switching between GET and POST, I have tried using sendAndLoad instead, I have tried manually sticking the variable onto the end of the string ("../Pages/im.php?ID=xxx") but it never goes through...I am not even sure that Flash can see the ID variable the second time, even if I try to access it with _root.ID or _level0.ID

I am NOT a Flash expert, I am a regular PHP/C++ programmer who finds ActionScript unbelievably illogical, so please spell things out in black and white for me!! Let me know any additional information you might need!

Thanks...

[F8] Flash 5 Actionscript
i have a code from flash 5 for a countdown timer:


Code:
timer = (getTimer()-timernow);
if (Number(timer)>Number((950*xtimer))) {
set("sec", (sec-1));
xtimer = (Number(xtimer)+1);
}
if ((Number(length(sec))<2)) {
sec = "0"+(sec);
}
if ((Number(sec)<00)) {
set("min", min-1);
sec = 59;
}
if (((sec)==00) and ((/:min)==0)) {
_level0.gotoAndStop(15);
tellTarget ("_parent") {
gotoAndStop(2);
}
}
could someone change that around so it'd work for flash 8? thanks bye

Actionscript 2 & Flash MX
Hi, Hope someone can help.

I've just bought this great book "Flash 8 Actionscript bible". As I started I'm begining to realise that some of the sample code does not work in my Flash mx. e.g.

//this gives errors
function displayGreeting():Void{
trace("Hello,");
}
displayGreeting();

//but i've found out that by changing it to the following it works
function displayGreeting(){
trace("Hello,");
}
displayGreeting();

Is it because Flash MX does not work with actionscript 2. If so can I upgrade without having to buy a new version of flash 8 or above?

qamar

Flash MX Actionscript VS Flash 8 Actionscript
Hello, everyone..

I have started out with flash using Flash MX... and together with ASP 3.0 and PHP...

Now that i have considered learning ASP.Net.. I was wondering...

Is there a huge difference in the actionscript version used between Flash MX and Flash 8? I mean.. is it like the actionscript of the latest (flash 8) has a similarity to C# (for asp.net)?

or.. rather.. is it hard to move from flash mx's actionscript to that of Flash 8?

I'm just curious to know. Thank you for any replies.

I'm New To Flash And Actionscript... Can Someone Please Help Me Out?
Okay.
I have a .avi video that I encoded into a Flash video.
I'm trying to upload it to my site, but it doesn't work.
My site is not a flash site.
I've tried different ways from my readings, but nothing has worked.
I'm new to Flash and DreamWeaver and the whole Actionscript thing.
Maybe I'm doing something wrong.
Could someone please help me in the process of making my video work online through Dreamweaver?
What all do I need? What do I need to do, and how?

PLEASE HELP!

Thanks,
Scott

Flash 8 XML Actionscript Help
I am trying to generate a template where I read all
text, image and tables from XML to display in swf dynamically.

Well, I can read the XML into swf but the problem is:
1. I cannot format the dynamic text got through the XML file.
2. I cannot check the size of image and text content and decide space allocation on screen dynamically.

Please help
thanks
hemant
www.infowareindia.net

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