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




OnDisconnect And Client Parameter



Hello,I am wondering about the OnDisconnect event handler's internal. From that handler, I access the client parameter, which is a pointer to the actual client connection. The problem is that recently I am fetching some data from an external webpage using LoadVars first, and then accessing the client variable. Sometimes, randomly, some of the client's properties are undefined, as if maybe the client object was being deleted from memory before I could access it.Will the client object usually be deleted AFTER the OnDisconnect event handler has been fully executed, or is it done simultenously, thus imposing a limit in the period of time we can access the object before it gets deleted?



Adobe > Flash Media Server
Posted on: 11/19/2006 07:56:06 PM


View Complete Forum Thread with Replies

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

OnDisconnect Event In FMS 2.0
I am using application.onDisconnect Event for updating some entries in Database side through php. Its works fine. But in some case it doesnot call onDisconnect event and hence not updating db entries??Is it problem of concirrent access of onDisconnect event or what?????
please help me

OnDisconnect With Firewall
Hi,
Sometimes my main.asc does not detect the onDisconnect of some of my clients.

It turns out that their firewalls is blocking this.
(you can test by starting the flash application and then enable the windows firewall with no exeptions).

I can't rely on the ping, because most clients keep their computers running.

How can I solve this problem ?
Do I really have to call a client function and test some variable-flag or so, to check if the application is still running ?

Leonos


I Have Problem With Application.onDisconnect
Hi All,

I am making multiplayer game,
my problem is , Whenever user disconnects i want to send that user name to all players who are connected.
So i have written following code for that in main.asc file

Code:
application.onDisconnect = function(client)
{

for (var i = 0; i < application.clients.length; i++)
{
application.clients[i].call("userDisconnects", client.name);
}
application.players_so.setProperty(client.name, null);
}

on client side i am tracing that name, but i am getting name as undefined.


Code:
player_nc.userDisconnects = function(name1) {
trace(name1+"quits");
};
any one can help , where i made mistake.

regards
advika

OnDisconnect Not Working As Expected On IE7
I have an application for a poker game which works perfectly in Firefox 1.5 and 2.0, however in IE7 (not too sure about IE6 thou) there is a serious problem. I shall explain..

User logs in. Opens a popup of the game which is just a php script which loads in the SWF. SWF successfully connects the the FCS 1.5 and sits around waiting for another player... however at any time if the person closes the window and any other IE7 windows are open the "onDisconnect" rule on the server side does not execute, therefore since this game only allows you to play one game at any one time, if you try to open a window to start a new game it finds an existing instance of the player.

Only if *all* IE7 windows are closed does the onDisconnect finally recognise that the person has disconnected.

This is only happening in IE, wherehas FIrefox, Safari and Konq. all work as expected.

The browser flash plugin is version 9 on all the machines.

Anyone had or experience similar problems with the onDisconnect, and more importantly.. is there a fix? This is really urgent since this game should have gone out a while ago, and really just this problem is causing a hold-up.

If it helps, please check out the problem on PokerWars, login, open a game, close the popup window and re-open a new game... this is driving me *nuts*

Many thanks



























Edited: 11/30/2006 at 12:07:16 AM by Wyldie

OnDisconnect Major Bug (LINUX).
Hi,

After a lot of google usage i found that there is no real answer. I only found this line on a forum said to have comed from ADOBE "FMS depends on Linux TCP system to detect disconnection". This is supposed to be the problem for the extremely annoying problem that applicatrion.onDisconnect is not triggered when a client disconnects from FMS.

We have developed applications that rely heavily on the onDisconnect, paying solution that need it otherwise we can't offer our service because of it's unreliability. I love Flash and FMS but i've never encountered a bug of this severity.

Can some ADOBE representative please give us a straight answer if we have to port all our FMS installations from Linux to Windows?

Browser Causes Server Side OnDisconnect Issues
when a client presses the browser back button instead of closing the window then FMS 20+ seconds to fire its onDisconnect servers side function but if the user closes the window then FMS responds right away with the onDisconnect function.....does anybody know a fix for this issue?

Built Site For Client. How Can I Give Limited Access To Client So They Can Update?
I recently did http://www.christasloan.com/rimnordic.html It will soon be transferred to http://[URL="http://www.rimnordic.com"]www.rimnordic.com[/url]

Its not done yet, but the basics are done. The client needs to be able to update certain sections on a daily basis, and I would like to know how to grant her access to the site , so she will be able to update her site. She will mostly just updated text stuff, so I dont think it will need to be too advanced. How does everyone else do it? Please help....
Joe

Realtime Flash-Chat (client To Client)
Hi,
I was wondering if it is possible to connect directly to another client with Flash, without passing or receiveing data through a server?

Most chats use a database to store the conversations etc, but I want to try to make a realtime chat.

Is this possible?

Client To Client File Transfer
Can we perform client to client file transfer, client to server can be done by FileReference. but how do we do client to client transfer, for example if a user wants to send file to another user to whom he is chatting online.

Any help ? which methods can be used, pls, thank u.

Get Parameter
Please...anyone who know how can I capture a parameter from the browser? Exp : <param name = variable1 value = "testing
" >
[Edited by lms11 on 11-28-2001 at 09:25 PM]

Parameter
please, i'm new at flash developing and need some help.
i'm using f5 and want to pass a variable from one flash file to another and read this, checking its value. thanks anyway...

Parameter
Hello!

I've just started to work with flash (MX) and I wonder...
How is it with parameters in flash.

If I have four scenes: start,intro,pictures,and music.

When a new visitor enter the site for the first time then I want to have an intro on every page. I have declared a boolean "introfirst=true" ---> if(introfirst){I play my intro and then setting the introfirst-parameter to false, which means next time the visitor click on the link to current page s/he wont to have to se the intro again}

What I've done is at the beginning (my startscene) I declare/set attribute to all my booleans which controlls if the visitor have entered my 4 pages. And then I change their attribute when entering current page. E.g I enter music I see the intro and the parameter "musicfirst" is set false.
But that doesn't work.

To my question is it like in java that the parameters both can be global and local. Shall I print start.introfirst or what shall i print ????

I hope you understand what I mean.

Thanks for helping me /M8M8

Get Parameter From Url
my url is http://www.somesite.com/default.html?someparameter=x1

i need the parameter 'someparameter' from the url for my action-script.

how can i get the parameter?

thanks.

How Would I Pass A Parameter...
How would I pass a parameter (or any method) into a scrolling text box?
The parameter would come from a .jsp file. It would function exactly like an <iframe>

It would work like this.... (I run a affiliate program)
I send out an email to my clients with new links.
The problem is some 1000 of my clients have Yahoo and Hotmail accounts, and both services will replace my links with theres. So I will create a flash text box that will be independent of those meddlesome kids.
When the email is delivered it calls the flash file which in turn fills the text boxes with dyn. data. And my clients cut and paste the untouched code into there pages.

Parameter Passing
I have 2 swf's. Main.swf and Movie1.swf. MAIN will begin to play and then load external MOVIE1. Once MOVIE1 has played completely I would like to pass a parameter or variable to MAIN from MOVIE1. Is there a way to achieve this?

Parameter Passing
Hi,


I want to create a clock which will display the time at server side
for that i need to pass the time at server side as parameter to my flash file
Can i do that and how?


Waiting for response.

Thanks in Advance.

Bye

sonali

Parameter As Name Of A MivoeClip
I have a function that I pass parameter as a name of a movieClip in the first keyFrame.

function passname(moviename){
moviename._x+=10;
}
--
A movieClip name... girl

And another movieClip that I use to write action like this:
/*case 1.*/
onClipEvent(enterFrame){ passname(girl);}

But nothing happent. I dont know why it doent work.

If I assign Action for a button like this
/*case 2.*/
on(release){passname(girl);}
It works

Please tell me why it doesnt work in case 1?

Thanks !

Array In Parameter
how could i do this:

fileName_Section[0] = ["00010"]
fileName_Section[1] = ["01010", "01020"]
fileName_Section[2] = ["02010", "02020","02040", "02050"]


this is what i want:
fileNames = fileNames.concat(fileName_Section)
length = 3



fileNames = fileNames.concat(fileName_Section[0],fileName_Section[1],fileName_Section[2])
length=7

I want to find a way to make the first examples have a length of 7 also. I tried various approaches but not have worked as of yet.

The Play Parameter
Could someone tell me why the (param name="play" value="true" / ) causes my SWF to go crazy, and removing that line of code allows it to work?
If I set the value to False it runs fine too. Does that mean the default value for it is False? I am using the latest Flash player 6 release. Thanks

Passing Parameter To A Swf
Is there a way to pass parameters to a swf from the html that loads it?

and... if so, How do I get them from inside the swf?

I'm not into asking this "howto" type of questions, but my brain is to tired and time is running out for me. I have to deliver this site by tomorrow afternoon and I only need that code.

Thanks anyone who can help me...

Francisco

Using < And > As A Parameter In Function
I was wondering if there is a way to us the greater than and less than signs as a parameter in a function?
What I would like...

Code:
myfunction = function(equality){
if ( varX equality varY){
Do this;
}
}
and calling it...

Code:
button1.onMouseOver = function(){
myfunction(>);
}

Using_name As A Parameter
I trying to each this effect


function Do_This(Current_Movie)
{
Movie_Clip_Path.Current_Movie.gotoAndPlay("Close") ;
}


Do_This(this._name)


This seems really simple but it isn't working.
I am currently stuck doing this.


function do_This(Current_Movie)
{
if (Current_Movie == "something")
{
Movie_Clip_Path.Specific_Path.gotoAndPlay("Close") ;
}
if (Current_Movie == "something_else")
{
Movie_Clip_Path.Specific_Path2.gotoAndPlay("Close" );
}

}

Any Suggestions?

Open Asp URL With Parameter
I create an external textfile data.txt that i load

&productID0=1&image0=Master.jpg&productID1=2&image 1=Revolution.jpg&count=2&

images = new Loadvars();
images.load('data.txt');
images.onLoad = function() {
for (i=0; i<Number(images.count); i++) {
loadMovie(images['image'+i], "_root.mc"+[+i]);
}
};

I have two Movieclips called mc0 and mc1. Both they load an picture. What I want is when you click on the picture it opens an url

on (release) {
getURL("http://domain/Main.asp?ProductID="+ProductID[i], "_Blank");
}

It now gives

http://domain/Main.asp?ProductID=

It has to be

http://domain/Main.asp?ProductID=1 for the first picture and http://domain/Main.asp?ProductID=2 for the second picture

Please help me out

Parameter Of Function
Hi guys!!!!


I got a function like this:

function state (choice) {

_root.buttons.choice_mc.choice_selected._visible = true;

};

So, as you already have guessed, the "choice" in the setence inside the function is the parameter that enters the function. The problem is this doesn't work..i guess i have to "say" that the choise in the _root.bla bla bla is the var that enters the function!

How to do that?

Thanks a million!!!

StartDrag With Or Without Parameter
I wish to drag a MovieClip keeping the position of the MC (movieClip) relative to where I first clicked on it, and constrain it into a defined rectangle.

My understanding is to use the following cmd:
myMovieClip.startDrag([LOCK, [0, 0, 200, 200]]) where LOCK = 0 -- "locked to the point where the user first clicked on the movie clip (false)"

But when I click on the movieClip, the MC reposition under the mouse at its registration point. Toggling my LOCK parameter from 0 to 1 actually does not make any difference.

The only way I can start dragging - without the MC repositioning - is by using the "startDrag" method with no parameter at all:

myMovieClip.startDrag();

The problem of course, is that I now don't have any limits to where the mc can be dragged.

Any suggestion would be greatly appriciated.
Thanks in advance.
geraldine

Is This Possible? Action, Parameter
(Sorry bout the non-descript subject to this post)
Curious to know if this is possible:

function someFunc(var1, var2, act){
//do stuff here
--
//
if(stuff done){
act;
}
};
someFunc(100, 200, _root.gotoAndPlay(2));

The code above doesnt work (thats why i am here...), it simply runs the third parameter directly which i dont want it to, but i hope you're able to see what i'm trying to do. I want the third parameter to run when the code in the 'someFunc' is done.

I would greatly appreciate if anyone know of any solution to this problem and showed me how it done.

//edit:
I want to be able to run any sort of code in the, in this case, third parameter btw. In my real code i would for example have
this code: loadXML('xml/nyhetsbrev.xml', -4). Which is a call to another function to load an xml.
//edit

cheers
Björn

Transfer Any Parameter Between Two Swf?
hi developers..
i have a main.swf that where ii loadMovie Products.swf..my products.swf is full of my products pictures and all of them are buttons and have a ID..
i want to make a new swf for LoadMovie in main.swf, too that when anyone click this products.swf picture button my new swf take the ID number and call product's details which ID equal to this ID..i mean how can i transfer any parameter between two swf..

Passing Parameter
I have got 2 frames.

frame 1 is like this
stop()
var myScore = 0
var yourScore = 0
function makeLocalMove(myScore, yourScore){
myScore = 3
//return
trace("vv")

}

frame 2, I have got a button and set the script
on(release){
makeLocalMove(10, 5);
_root.myScore += 10

}
but there is no result coming out with the dynamic text myScore? Do anyone know where I do wrong?

Default Parameter Value
It seems there is a neat new feature which allows you to set default parameter values when establishing a function:

function ball (xmove:Number = 5) {
ball.x += xmove;
}

ballMove = setInterval (ball, 50);

This will move the ball. However can the default value be a variable (something like this...although as is it doesn't work):

movement = 5

function ball (xmove = movement) {
ball.x += xmove;
}

ballMove = setInterval (ball, 50);

...or is there another way to change the parameter as the ball reaches certain x locations:

if (ball.x >= 100) {
//change the direction of the ball movement (-5)
}

Easy For You: How To Get Parameter
Hi guys

Guess this is easy for you gurus

I call my RadarTest.swf from within a html page:


Code:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="550" height="400" id="RadarTest" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="RadarTest.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />
<param name="testparam" value="12345">
<embed src="RadarTest.swf" width="550" height="400" align="middle" quality="high" bgcolor="#ffffff" name="RadarTest" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" testparam="12345" />
</object>



How can I retrieve the value of the parameter 'testparam' in my AS3 coding?

Thank you for helping a newbie :-)

gsub

Optional Parameter
How do i program an optional paramater funtion ?

eg. i want to be able to say like Update() OR Update(type)

Will i need to make two functions ?

function Update(){

}

function Update(type:String){

}

or can i just make one ? ( since this will keep code cleaner )

Using Function As A Parameter
I cannot figure out why this code does not work


PHP Code:



class MyClass extends MovieClip {

    public function trace_1():Void {
        trace(1);
    }

    public function alert_1():Void {
        getURL("javascript:alert('1')");
    }
    
    public function do_something(f:Function):Void {
        f();
    }

    // Constructor
    public function MyClass() {

        trace_1(); //prints 1
        alert_1(); //alerts 1
        do_something(trace_1); //prints 1, really great
        do_something(alert_1); //DOES NOTHING!!!!! WHY?????

    }



Object As Parameter
HI!

We are trying to use an object as parameter in a localConnection...

But we are getting a "undefinied" insteaf of the value we are expecting.

See the code (this code below works... because we are not sending the object through a LocalConnection)


Code:
var tm:TransitionManager = new TransitionManager(mc_1);
var param:Object = new Object();
param.type = mx.transitions.Zoom;
param.direction = 0;
param.duration = 10;
param.easing = mx.transitions.easing.None.easeNone;

tm.startTransition(param);
BUT if we create the same object in another SWF file and send it through a localConnection the properties TYPE and EASING have the "value" undefinied.

Does anyone have any clue?
Cheers

Parameter Passing
How can you pass nested objects and access them in functions?
What is the idea behind it or here is an example if that helps.

mc1.onPress=function()
{
mc1.txt2.text="qqq22";

mc1.txt2.backgroundColor=0x0000FF;
mc1.txt2.textColor=0xFFFFFF;
//mc5.txt3.backgroundColor=0xFFFFFF;
//mc5.txt3.textColor=0x000000;
tselect(mc5,mc5.txt3);//how can I pass the nested textfield?
}
function tselect(mA:MovieClip, txt:TextField):Void
{
//change to white background and black text
mA.textfield.backgroundColor=0xFFFFFF;//fails
mA.txt.textColor=0x000000;//fails

}

Parameter Xmouse Bug
hi,

i have this script where you can scroll a couple of pictures
with the mouse left and right. The problem is that if you put
a couple of dozen pics in this scroll bar it will start spinning
way to fast when its finished loading.

I tried setting some parameters but no effect so far...
Can someone look into it and give me a hand?


Code:
// Determine the width of your movie, cut in half, and place it in the GetProperty area. It is currently set at 200 for a 400 pixel wifde movie.
mouseX = int(getProperty("/mtrack", _x)-300)*-1;
mouseX = mouseX/6;
// This area creates the flow of the menubar itself, by determining the mouse location.
setProperty ("bar1", _x, Number(getProperty("bar1", _x))+Number(mouseX));
setProperty ("bar2", _x, Number(getProperty("bar2", _x))+Number(mouseX));
// This area sets the duplicate movie clip in action if the menubar goes to far, to create a constant looping effect.
maxleft = getProperty("box", _x);
maxright = Number(getProperty("box", _x))+Number(getProperty("box", _width));
maxleft = maxleft-30;
maxright = maxright-30;
bar1X = getProperty("bar1", _x);
bar2X = getProperty("bar2", _x);
if (Number(bar1X)<Number(maxleft-getProperty("bar1", _width))) {
setProperty ("bar1", _x, Number(bar2X)+Number(getProperty("bar1", _width)));
}
if (Number(bar2X)<Number(maxleft-getProperty("bar2", _width))) {
setProperty ("bar2", _x, Number(getProperty("bar1", _x))+Number(getProperty("bar2", _width)));
}
if (Number(bar1X)>Number(maxright)) {
setProperty ("bar1", _x, bar2x-getProperty("bar1", _width));
}
if (Number(bar2X)>Number(maxright)) {
setProperty ("bar2", _x, bar1X-getProperty("bar2", _width));
}
see also the attachement...
it contains a very small fla file.
Cheerz!

GetURL And The GET Parameter
I'm having a bit of trouble with my getURL and it's GET parameter.

placerCode.getURL("index.html", "_self", "GET");

Inside the clip called placerCode, I placed a variable which is shown when I start the whole thing from flash. So when I press ctrl+enter in flash and click on the corresponding button, a new html window opens (seeing as how there's no _self to put it into from the start) and within the address, I get to see--

file:///E:/DevisdeProduction/Portfolio/index.html?active=modelisation

And while that works fine and dandy from flash, whenever I start it from HTML using

Code:
<script language="javascript" type="text/javascript">
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="1020" height="760" id="sample" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="ChaosPortfolio.swf?profil=active" />')
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<embed src="ChaosPortfolio.swf?profil=active" quality="high" bgcolor="#ffffff" width="1020" height="760" name="sample" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
</script>
And simply click on the button from the flash inside the html, what happens is that it simply reopens the page within itself but completely ignores my parameter, not bothering to show it or even realize it's existence.

I even placed a simple script in flash which traces something when I click on the getURL button and it shows the right parameter. And again, works fine from flash, not at all in HTML...

Am I forgetting something?

Passing A Parameter To An SWF
Hi,
I know a bit about flash, but not components. I need to pass an ID to a component in an swf.

my html looks something like


Code:
<param name="movie" value="testmov.swf?someId=65" />
then in testmov.fla I have a component with an instance name of 'comp'. To pass the 'someId' variable to the component, on the first frame of the swf I have:


Code:
comp.someCompParameter = _root.someId;
where 'someCompParameter' is a parameter that is passed to the component.

The Problem
The above does work, but it works too late. The component loads and requests the 'someCompParameter' before it is passed on the first frame.

This parameter is actually an XML file url - the result is the file doesn't load.

Can anyone help me out with passing the 'someId' from the html file to the component? The original developer has disappeared off the face of the planet (assuming he was ever on it!).

LoadMovie And Sent Parameter
Hi,

Is there away to LOAD a movieclip: like this:

mcBlank.loadMovie("start.swf");

and send a paramter to that swf file at the same time.

Thank you,

The Parameter Is Incorrect ....
... anyone come across this before ?

When exporting my movie I now get a couple of "The parameter is incorrect" messages and am unable to alter the Audio Event or Stream options without getting a "The parameter is incorrect" error again...

How To Use Parameter In MouseEvent
Hi All,

myMovie.addEventListener(MouseEvent.CLICK, myFun);

function myFun(var i:Number)
{

trace(i);
}

How do i pass the parameter value for variable i

Thanks

CacheAsBitmap Parameter
Hi,

I have a question about the proper usage of cacheAsBitmap parameter for MovieClips. I have read that when there are many layers in a MovieClip, no animations and no scalings the use of cacheAsBitmap might favor much.

I used it at some parts of my project and I observed that the CPU usage of the project is lowered at expense of increased memory usage.

Might you have any experiences and suggestions about the proper use of cacheAsBitmap parameter?

Any suggestions are most welcome. Thanks in advance.

Parameter Question
Hi!

I´m working on an game and need some help with collisiondetection. This is wath my collision function looks like



ActionScript Code:
function ballClass(){
}

ballClass.prototype.collisionDetection = function(){
        if(this.hitState == false){
                this.xdistance = Math.abs(Number(this._x - target._x));
                this.ydistance = Math.abs(Number(this._y - target._y));
                this.distance = Math.round(Number(this.xdistance * this.xdistance + this.ydistance * this.ydistance));
                this.realDistance = Math.round(Number(Math.sqrt(Number(this.distance))));
                if(this.realDistance < 15){
                        this.hitState = true;
                }
        }
}
Object.registerClass("ball",ballClass);
attachMovie("ball","ball",3);




I have two targets, my question is, how do I use that collision function to check both targets? Should I use an inparameter like


ActionScript Code:
ballClass.prototype.collisionDetection = function(target){


and how do I call that funtion from the other movieclips?

Hope you understand!

Thanks
/Malte

Parameter Passing?
how can I load a mp3 file from a .html file? In other words, how can I get a parameter from the html file?

Recieving A Parameter From Php
Hi.
I hate to ask this question, but don't have a clue what to do really.

I want to recieve a parameter sendt from php and test it in an if/else-statement.

This is how I send the parameter:
value="calendar.swf?d=<?php echo $date; ?>"

Can anyone help me. And explain in the easiest way?

Help With LoadMovie() And URL Parameter
Hi All,
I am racking my brain with this problem.. It could be really simple but.. Anyway.

I am trying to load images from the server into movie clips in my fla, using this:

loadMovieNum(image1, _this);

and in the html using this:

-------------
<PARAM NAME=movie VALUE="button_test.swf?image1=pics/pic1.jpg">

<EMBED src="button_test.swf?image1=pics/pic1.jpg"
WIDTH="100" HEIGHT="100">
</EMBED>
--------------

now this works fine on the main timeline with both:

loadMovieNum(image1, _this);
and
loadMovieNum(image1, _root);

but when I put this into a mc it won't work, but this does:

loadMovieNum("pics/pic1.jpg", _this);

I really need it to read from the parameter variable though and I need it inside an MC.

Anybody got any Ideas???

Thanks in advance.. Big Time

E

AutoPlay Parameter
Hi,

I've encoded a wmv file to a flv file using Flash 8. There is a parameter for autoPlay that can be set to true or false. My question is, can this be set after the fact in the html code generated. For example, this is the code generated:

<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="

Swf Play Parameter
Hi,

I have a swf file embedded in frontpage. The parameter for the swf is set to false as is the loop parameter. The loop parameter is working fine however the swf file automatically starts playing when the website loads. I do not want this. I want the video to start when the use indicates that this is what they want. Is there some other place I need to set the parameter. This play paramater was set in the html code generated by studio 8 not frontpage

Thanks,
Leesha

Array As Parameter
Hi Everyone,

I was wondering if this is possible and if so how. To have an enitre array to be used as parameters in a function. Instead of listing

but1.dosomthing();
but2.doSomthing();
but3.doSomthing();
but4.doSomthing();

Is there a way to use an array to list all of the buttons and call the complete contents of the array from the function. This way I wouldn't have to list all of the buttons each time to exicute the same function.

Thanks
Mike





























Edited: 04/30/2007 at 09:54:36 AM by mike93

How To Use A Parameter With Addeventlistener
In as2 we had on (release){....} to handle a button click. Now we use btn.addEventListener(MouseEvent.CLICK, functionname). How can I use a parameter with the function defined. I have 4 buttons in my movie that all call the same click function but I want them to be able to pass a parameter into that function. How do I do that with addEventListener? Thanks.

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