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




Obtaining Users IP Address



Hi all,
What's the quickest way of getting the IP address of a user into Flash without using CGI?
I'm pretty sure that it's done in Javascript but I'm not sure of the code



FlashKit > Flash Help > Flash MX
Posted on: 06-14-2002, 12:50 PM


View Complete Forum Thread with Replies

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

Obtaining Ip Address In Flash
How do I get the persons IP when they run the flash on there computer? Or rather when they view the flash?

Thanks
Klaser.

Getting The End Users IP Address
I have a loadvariable command to load a variable into a Perl script. What the client wants is for me to get the IP address of the end user. What is the AS to call up the end users IP?

Can MX Detect A Users IP Address
Does anyone know if Flash MX can detect a users ip address?
~dev_flasher

Tracking Users IP Address
Hi there... Wonder if anybody has a solution?
I have a flash movie that logs various data in a database via an asp script. I need to grab each viewer/users IP address and pass this through to my asp script along with the other variables... But cant seem to find a way of doing this (or even whether flash supports this)... Any ideas anybody?
Cheers for your help!
JO

Send An Email With The Users Email To An Email Address
ok..the subject may be a little confusing but this is what i have...

an input textbox where viewers type in their email address
a submit button

i want it so that when you hit submit after typing in your email address it sends an email to your@address.com providing you with whatever the person typed in the input textbox

is this possible without using php or asp or whatever?

peace
spen

License.Limit.Exceeded With 4x150 Users Licence And Only 300 Real Users
We have 4x150 users licence, set to unlimited bandwith.

We get these messages in event viewer:
Connection rejected by server. Reason : [ License.Limit.Exceeded ] : (_defaultRoot_, _defaultVHost_) : Max connections allowed exceeds license limit. Rejecting connection to : our_app_name/.

It appends a lot since the last few days, even before last update 2.0.3

At the same time, when we check the administration console, the number in the _defaultVhost is much lowe than 600, the maximum number of user that is allowed.

Licences are all OK in the administration console.

We have to restart the Flash server service to correct the problem.

Please help...

Need Mac-users & Alternative Browser Users To Test A Web Page...
Hello,

I am working on a site that uses a simple flash navigation (at the client's request) and I'd appreciate it if I could get some feedback from Mac users as well as PC users with alternative browsers (non-IE).

Specifically what I'm looking for is whether the flash works correctly and sits in the correct place (as opposed to appearing someplace it shouldn't) .You should also hear a subtle clinking sound when mousing over one of the main navigation links.

Here's what it should look like (note that the navigation should line up exactly with the horizontal lines in the background):


http://www.metapanda.com/colorimpact...mpact_demo.jpg (please excuse the poor quality of the jpeg... keeping loading time in mind here)

And here's the link to the actual page: http://www.metapanda.com/colorimpact/

Please note: links currently lead to 404 pages... this is not an error, the site just isn't finished yet

Thanks everyone!

Obtaining A Value From MX Check Box
I am trying to do a form in MX utilizing the built in UI check box component. It is a basic RFI form that posts the info to an ASP page and sends an email utilizing a simple mail program. I use this often, but only gathering info from dynamic text fields. Can anyone tell me how to get the value from the check boxes (true/false) and pass that info to my ASP page? Here is the URL if you want to take a look:
http://www.aprilrisk.com , then go to the order button.
thanks in advance for any and all help.

Wickles

Obtaining Coordinates
This is a follow-up to my question with Flash passing variables to Java. I need to obtain coordinates based off the users mouse position or object position. How do I go about this or are there any tutorials that could steer me in the right direction. Thanks.

Obtaining Current Url From Swf..?
Hi,

I'm trying to find a way to obtain the current url (as in the html page my movie will be sitting in, because it will be embedded in numerous pages) from within my swf in as3. Does anyone know how this might be done?
Many thanks

How Do I Make A Little Picture Come Up Next To The Address In The Address Bar?
Please can someone tell me how to get a picture coming up next to the address bar in Internet Explorer.

I am designing a website for a company and they really want me to do this!

E.G. Dogpile.com
or flashkit.com has a little F

Pleasee Help!!!

Obtaining Variables FromHTML
How do I get variables from within the HTML page an SWF is embedded in? I tried
loadVariables ("page.html", this)
but that doesn't work.
Help please?

Obtaining Build Time Of SWF
I want my SWF to print out the time/date it was compiled, but can't seem to find an answer to this anywhere.

What I'm looking for is something that pulls out the modification time of the actual SWF file, or some other data embedded in the SWF at compile time.

Thanks in advance for any answers!

Obtaining The Width Of An Object
Heya,

What function do I use to obtain the width / height of an object?

I know the getBounds function will obtain the xMin, xMax, yMin and yMax of an objects relative position on the canvas, i.e. in the situation var a = object.getBounds gives you a.xMax, a.xMin etc. where this is its position on the canvas.

I want to be able to use the xwidth of an object as a similar variable.

Can anyone help? Thanks





























Edited: 07/10/2007 at 01:32:25 PM by abimpson

Obtaining ComboBox Data
Hi there,

I am trying to figure out how to create the selected data in a combo box as a variable in my form.

Here is a part of my code as an example of what I want to do.

var orderVariables:URLVariables = new URLVariables();
orderVariables.custName = textName.text;
orderVariables.custEmail = textEmail.text;
orderVariables.custPhone = textPhone.text;

How do I reference my combobox as an entity of orderVariables?

Thanks

CM

Obtaining MovieClip Dimentions
Hello everybody,

I'm looking for a way to obtain the dimentions (width and length) of a dynamically loaded image.

I'm loading Landscape and Portrate images into an empty MC and wish to apply a different frame design according to image dimentions. For starters I wish to obtain its width dimention and continue from there...

ANy suggestions?

Thx, Kfir

Obtaining The Width Of An Image
Hi,

I am loading a series of images using the imageLoader.load(i mage stuff) function, and placing the imageloader into an array for future reference.

The images will have different sizes, and I need the size to properly position it. However, using the imageLoader.loaderInfo.width is giving me the width of the entire stage. How do I obtain the width of just the image?

Thank you very much.
Math

Obtaining The Dimensions Of A Loaded Movie?
I am loading movie clips into a point on my main movie screen. I need to find a way of detecting what the original dimensions of each loaded movie are so that I can scale them to fit an area.

The getBounds command will only return the actual minimum and maximum points of the graphic within the movie itself and NOT the original movie size. i.e. if the movie was 100*100 contained a 50*50 square in the centre then the getBounds command would return the following:-

xMin=25, yMin=25, xMax=75, yMax=75
and NOT
xMin=0, yMin=0, xMax=100, yMax=100

Anyone know a way to find this information?

Thanks

Obtaining The Dimensions Of A Loaded Movie?
I am loading movie clips into point on my main movie screen. I need to find a way of detecting what the original dimensions of each loaded movie are so that I can scale them to fit an area.

The getBounds command will only return the actual minimum and maximum points of the graphic within the movie itself and NOT the original movie size. i.e. if the movie was 100*100 contained a 50*50 square in the centre then the getBounds command would return the following:-

xMin=25, yMin=25, xMax=75, yMax=75

Anyone know a way to find this information?

Thanks

Obtaining LevelDepth Of A Movie Clip?
I've got an interface with some level swapping going on.. and I wonder if there's a way to obtain the leveldepth from a movie clip.

basically.. I've got 5 clips.. they all have a button with this action

//every time the button is clicked, it brings that clip to the top.

on (press) {
_parent.top = _parent.top+1;
this.swapDepths(_parent.top);
}

My dilema is I would like to check and see which clip is on the top so I can make that clip highlighted.

however I don't see any way to obtain leveldepth.. hopefully one of you gurus can help me???

Problems Obtaining Loadmovie Properties
I seem to be having some inconsistent behaviour with obtaining the _width and _height properties from a mc that I've loaded into a place holder mc on the main timeline.

The movie loads fine and I get correct results for all the properties of the mc other than for the width and the height properties.
I've placed the following code into the mc that I'm loading the new clip into:

onClipEvent (load) {
trace("width:" add this._width add " height:" add this._height);
}

This initially gives me the correct width and height of the clip that I'm replacing, but when the event fires when the loadmovie executes the values for the new clip (different size than the original clip) are incorrect (15.1 instead of 370 for the height and 108.5 instead of 256 for the width). The strange thing is that when I run in debug mode the properties that are shown in the debug display window are the ones I expected.

I've also incorporated the onClipEvent(data) method to make sure that I'm not prematurely querying the clip.

I hope someone can help solve this, it's starting to drive me insane...

Regards
Remko

Obtaining Associative Array Key Names
Is it possible to print the name of a key in an Associative Array? I would like to print the key names, not the values at that key.

For example, if I have the following associative array of an XML node's attributes:

xmlNode.attributes.name
xmlNode.attributes.order
xmlNode.attributes.size

How could I go about printing the following string:
"The attributes for this node include: name, order, and size."



Thanks in advance for any help!
Aaron

Obtaining 0::100 Numbers In OnEnterFrame Function
i wanted to obtain such numbers for changing _alpha property of the MC, the MC must disapear and apear slowly, otherwords alpha must change in such way: 0,1,2,3...100, 99,98,...1,0,1,2,...99,100.....
I was thinking and i found a solution..but i hope that there is one beter, cause here i use math functions..and cpu might be a little loaded.
here is the code:

_quality = "BEST";
square._alpha=0;

square.onEnterFrame=function(){
m=m+1;
n=n+0.07;
s=Math.abs(Math.sin(n))*100;
t=Math.abs(Math.sin(m))*100;
txt._alpha=s;
square._alpha=t;
//trace(s);

square._rotation=square._rotation+0.2;
//square._x=this._x+1;
_root.square._x = _root._xmouse;
_root.square._y = _root._ymouse;
//_root.txt._rotation=square._rotation;
_root.txt._x = _root._xmouse-40;
_root.txt._y = _root._ymouse-10;

}
i tried to use if (), but no wanted results, because square.onEnterFrame is a big cicle...

is there any other way to solve this? without math functions? maybe without square.onEnterFrame?
10x!

Help Obtaining An Object Reference From A String
Hello,

I'm new to actionscripting, but I've got a strong handle on OOP and javascript, so I hopefully won't need too much help.

Basically here's my problem:

I've got a bunch of thumbnails that perform actions when clicked on or hovered over. In one of the actions, I'd like to base the position of an element on my thumbnail's x/y coordinates. However, I can't seem to grab a reference to the thumbnail. I'd like to do something like:

obj = document.getElementById('objectName');

I see in Actionscript 3.0 you can call "getChildByName('objectName');" , but I haven't found anything analogous in AS1.0.

Does anyone have any recommendations?

It might also work if, in the button's "on(press)" and "on(release)" commands I could just pass (the reference to) the thumbnail object to the function I'm calling. I don't know how to do this either. I intuitively thought "this" should work when I'm writing code for that thumbnail's actions, but it appears "this" refers to the stage or something else.

Any suggestions? Thanks in advance. I'm sorry if this has been asked before...I tried to search for answers first but couldn't find any.

Obtaining Instance Name Without _stage Location?
Oki, i'm generating a few movieclip functions from an array that relate to an mc that's on the stage. However, in the mc.onRelease function, i can't seem to get the _root.filename = *** .txt to match the name of said mc instance. Instead i get a really long location for the mc on the stage Any ideas how i can get round this?


ActionScript Code:
var machines:Array = [unimatic,circularSaw,heatpress,embroidery,lineBender,laser,mugpress,vacuumF,linisher,profileCutter,pillarDrill,novamill,compactRouter];for(var i:Number = 0; i < machines.length; i++){    var mc:MovieClip = machines[i];        mc.onRollOver = function():Void    {        this.gotoAndPlay(2);    }        mc.onRollOut = function():Void    {        this.gotoAndStop(1);    }        mc.onRelease = function():Void    {            _root.attatchTab();        _root.filename = this + ".txt"; // THIS IS THE DEATH LINE >.<    }}

Obtaining From A HTML Page & Displaying In Flash
Hiya People!

Does anybody have any idea how to obtain text from an external HTML page, and display it in a Flash movie.

I have a client who wants me to replicate the text from his HTML site in a Flash site that I am creating. The information this text is displaying will be changing every few minutes so I need set up a loop in the code used to obtain the text, so that my site will be updated automatically.

Hope you can help.

Deadhands

Obtaining A Return Value From A Local Connection Call
I have developed the following test which supplies a user ID from the first movie to a second movie using the LocalConnection method. I then Load the second movie in a container on the first movie. I then want trace the results of the sending Id in a trace statement outside of the LocalConnection method. Here is where the problem resides. I can not get the Id Variable to become available outside of the curly braces of the recieving method. Outlined below is the code I'm trying. Please help

Sending testing FLA

Code:
function adEngineOn():Void {
this.createEmptyMovieClip("container", 1);
loadMovie("test2.swf", container);
container._x = 10;
container._y = 100;
}
var id = 'bob';
var nmAdsend_lc:LocalConnection = new LocalConnection();
var oButtonListener:Object = new Object();
oButtonListener.click = function(oEvent:Object):Void{
nmAdsend_lc.send("_nmAdEngine", "afterLoad", id);
adEngineOn();
};
mybtn.addEventListener("click", oButtonListener);
receiving testing FLA

Code:
_global.lcReceipt = new LocalConnection();

lcReceipt.afterLoad = function(id:String):String{
trace ("This is the User_ID inside the function: "+id);
return(_root.application.container.id);
_global.User_ID=id;

};
lcReceipt.connect("_nmAdEngine");
trace("This is a trial of using a global for the ID: "+_global.User_ID);
trace("This is the User_ID outside the function: " + afterLoad());

Obtaining The Size Of An Image Using Loader Without Actually Loading It
Hi,

Does anyone know a method of figuring out the size of the target of an instance of the Loader class without actually loading it? For example, if I create the following code:


Code:
var url:String = "http://www.somewebsite.com/pic.jpg";
var image:Loader = new Loader();
var request:URLRequest = new URLRequest(url);
Is there anyway to find out the size of pic.jpg without assigning an event listener to image.contentLoadInfo for Event.OPEN/COMPLETE and calling image.load(request)?

Thanks in advance,
J

Sample Applications And/or Obtaining Apps From Influxis
Anyone have a list of other sites providing example apps and/or free applications for download? I also was interested in getting some of the apps from Influxis to test with. Has anyone been able to get any of those? LEt me know.

Obtaining A Variable From A Dynamic Text Field?
hey everybody!

i've got another problem. lol.

I have stored a value in a dynamic text field which has the instance name 'myPictureVar' and variable name 'desc'

so from this i get a dynamic text box with a value 'nopic.jpg' (pulled from a database which works fine!). This must mean that 'nopic.jpg' is stored in the variable 'desc'

what i want is to take the value in 'desc' and append it to another variable called $path = "http://www.failsworthschool.co.uk/Failsworth/files/"

so ive gone about it by doing this??

$imagename = myPictureVar.desc;
$picture =$path+$imagename;

so then the variable $picture will have the full path to the file??? but no it doesnt work, comes back with

http://www.failsworthschool.co.uk/Fa...iles/undefined

I think my problem is with finding where the actual value 'desc' is, so i can use it????

im bamboozled!lol

[AS2] Obtaining Information About Lines Drawn At Authoring Time
[ACTIONSCRIPT 2.0]

At *authoring time* (not runtime), having drawn onto the stage (or any other mc) is there a way, at runtime, for actionscript to be able to read back information about what had been drawn?

For example, if I had drawn a single straight line onto the stage, then tested the movie, the code I am looking for would return the X1/Y1 and X2/Y2 coordinates of the line.

The lines (or shapes etc.) would be drawn before the movie is run - not at runtime - as then it would be a case of simply storing the moveto/lineto parameters as the mouse draws those lines.

Basically what I'm after is something that reads the vector information for the shapes drawn at authoring time.

Accepted Method For Obtaining Values From Loaded Content
Hello,
I'm trying to determine if the way I have used in the past of accessing information about an mc is still valid, or perhaps there is a better way. Basically what I am referring to is if I load a jpeg into flash I can't tell the dimensions of that file until it has been read in fully. Meaning that I have to do my dynamic placements after they have been fully loaded - if I want it to be dependant on the dimensions of the file.

Normally I do something like this ->

Code:

mC.onEnterFrame = function():Void {
trace(this._x+'---'+this._y);
delete this.onEnterFrame;
}
thanks for the help
webg

[FMX] Obtaining The Server Time, Not Client Time?
Hi, does anyone know if it is possible to obtain the time (by functions similar to getSeconds) of the server the flash file is hosted on, instead of the client who is viewing the movie?

Thing is, I have a very simple clock that displays the time in New Zealand (where I will be going), but it only display the time correctly for GMT+1 right now. If a client from New Zealand or US connects, they will see the wrong time :/

Any way to fix this?

So right now i use:


Code:
newtime = timedate.getSeconds() + 3600*11;
timedate.setSeconds(newtime);

Obtaining An ActionScript 2 Variable From ActionScript 3
Probably one of the most subjects on this forum has to be ActionScript 3 and ActionScript 2 communication. I found several threads on how to communicate between the two using a LocalConnection class, but there is one problem with this approach - I can't transport any values with it. Because LocationConnection.send doesn't have a return type, there is no way to transport a value from AS2 to AS3. This is very unfortunate, as I need to have access to a value that is set somewhere in the AS2 code.

I could use JavaScript as a middle layer to communicate the data between the two, but this will be a very ineffective way to achieve it. Are there any better ways for doing this?

Address Bar.
Hey,
I'm trying to make an address bar like that of the one in internet explorer, so that when you type in an address it's displayed, for example if the user enters 'www.mypage.com', then it should take the person to that website.

Thank you.

!phara0h

Ip Address
hello,


is it possible to get the users ip address by just using actionScript?

if there is what is the code?
if there isn't how else could i get the users ip?


thanks,
elo


http://www.transporter.at

Sub Address
hi, i have a flash website and want to upload another flash page to the site, but have it located at another sub address. so lets say the main website is at "website.com", i want to upload something to website.com/animation.


i want to be able to access website.com/animation directly, without going to website.com first.
how do i publish this?

thanks for any help, i probably should post this on the newbie board. but i'm not a newbie, i'm just dumb.


thanks

mc

How Do You Get IP Address
How do you get the IP address of the user that clicks on my flash button? I'm using Flash 5.

IP Address
Can you grab a client's IP address through flash a flash movie?

Is It Possible To Know What URL Address You Are On?
Pardon my ignorance, but is there a way to find out what URL the page is on? or am I missing a fundamental stop(); and something else?

I have a menu that I use in my htm documents for a web site to navigate through it. When a page is selected, an animation is played and it graphically indicates the new page being viewed.

The problem I have is that as soon as the page loads, the movie plays from the begining as the swf gets loaded again. I have tried a stop(); at the first frame, but then the movie doesn't go to the frame where it is supposed to graphically indicate what page the user is on.

My tought is that if I can somehow read the URL I am on, then on my first page I can do some if statements to take me to the frame for each particular page so the user has the right graphical display.

Your help is much appreciated.

Is There A Way I Could Get The IP Address....
Hi you all!!!

Is there a way to get the IP Address (from within the movie) of the machine the Flash Movie is playing on?

Here's the scenario: I have multiple Flash Movies playing on remote machines, and each one has to validate against a SocketServer I have running on the Server from which the movies where downloaded from. Now the validation "UserName" has to be the IP Address.

I need to send this IP to the SocketServer so it (The Server) can look up each machine on a DB.

As always, I'll appreciate any help.

Thanks,

Francisco

Getting An IP Address
Does anyone know if you can snag an IP address in flash. Would like to be able to restrict only certain IP addresses from being able to get into my swf file. Any help would be greatly appreciated.

IP Address
I was wondering if anybody can help,

I have only just started using flash/dreamweaver....... I have made up a contact form in flash that posts to a CGI script. On the form itself I want to display the users IP address, this is to stop people abusing the form.

I have no problem using something like shtml to get the ip but I do not know how to pass that variable into flash or if there is an easier way just using action script itself

Thanks for the help in advance

Grimmis

Ip Address
i want to know the ip address of users who have entered my website

Ip Address
i want to know information about the visitors who entered my site like their
ip addres and their dns name and when they entered the site

Mx: Getting Address Url
If I have an swf [nav bar]say on www.site.com/games
is there a way I can read the address and have a text field display games, then if I had the the swf nav bar on the index page, make the text field display home?

I dont mean by using _swf, becuase that only gives the address of where the swf file was downloaded.

How Do I Get The Url Address?
this is probably a very simple one:

i have a simple SWF in an html page.
this html page can get a query (index.html?some=thing )

in my swf i need to get the whole url and then forward the query to another url.

how?

Get IP Address
Probably silly Q here but am going to ahead and ask. I basically need a way to obtain IP address in flash. What I have so far;;

In PHP:

<?
$ip = getenv('REMOTE_ADDR'); //~ get ip address
$ip = "&ip=".$ip."&"; //~ make it a flashable variable
echo $ip; //~ spit it out
?>


In FLA with dynamic text box named "myTextBox" and on the first frame- the actionscript is:

myLoadVars = new LoadVars();
myLoadVars.specificvariable = "Value";
myLoadVars.sendAndLoad("http://www.mysite.com/ip.php", this, "GET");
myLoadVars.onLoad = function() {
myTextBox.text = this.ip;
};

Now it's not working. Can anyone help me out to get this fixed? Thanks!

Get IP Address?
Is there some way that flash can retrieve an IP address?

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