Flex :: Get The Broad Position Of A User Based On The IP Address?
Mar 19, 2012Is there a way to get the broad position of a user based on the IP address? (I'm building an Adobe Air desktop app for notebook users)
View 1 RepliesIs there a way to get the broad position of a user based on the IP address? (I'm building an Adobe Air desktop app for notebook users)
View 1 RepliesI would like to get the user's IP locally without any invoking any service.
View 1 RepliesI'm trying to create a form that based on the users input would determine how many forms to generate dynamically. I have a base state with a combo box that contains 1-4. Bases on the users selection I would like to have the next state generate the number of forms. So if you user selects 2 and click next - 2 copies of the form would be display.
I'm just wondering if this is possible how i would go about doing this or if any one knows of any examples?
<?xml version="1.0"?>
<!-- This module loads an image. -->
<mx:Module width="100%" height="100%" [code]..........
I have such 10 modules. Is there any Method in Module Class where i can hide and show based on user login.
In my flex app I have custom tooltips on buttons that hide and show based on user context. The problem that I dealing with is that when I call my showTips() function I only want to show tooltips on the buttons that visible in the view. So buttons that on a un-selected tab (tabNavigator) should not show the tooltips. For some reason all tooltips are showing. Is there a way to detect if a button is not in current view, like on a un-selected tab?
View 2 RepliesI need to have the ability to go to a specific frame in a timeline based on what the web address is. I basically want to play an intro for my index page only and skip to frame 30 for all other pages. Example [URL]
View 1 RepliesAnybody know of a way to get the IP Address of a SWF's user? Almost every solution I've seen involves some kind of special install, ie SSI or java.net... I need a solution that works on a plain vanilla IIS webserver.
If there's no way in Flash, I'd settle for a javascript method, so I could then just pass it into Flash in some way.
I want to display checkbox or button at the same position based on user role. How can I do this. I cannot give x and y position same for both radio button and button as I will not know the location in my application. Is there any other way by which I can display only one component based on boolean value.
Sample code:
<mx:HBox x="272" y="93" width="300" borderThickness="2" borderColor="0x000000" borderStyle="solid">
<mx:CheckBox label="CheckBox" visible="{role}"/>
<mx:Button label="Button" visible="{!role}"/>
[Code].....
Using flash is there anyway to detect the users IP address as a means of identifying someone who tries to copy your work off the internet?
View 7 RepliesI want to print the user's IP address in Flash via a PHP script, but keep getting an undefined variable (printed as "undefined"). Here's my PHP script:
PHP Code:
<?php
// Script for getting IP
$yourip = $_SERVER['REMOTE_ADDR'];
echo ("yourip=".$yourip);
?>
[Code] .....
Got movieClip with images(jpgs) inside (dozen of imgs) -about even 3000-4000px width and panning it seems to be little choppy. Is there any way to make it smoother? I encountered the problem far far ago, yet in as2, now on as3 I try to figure out how to avoid that 'jumping style' behaviour. Tried with (stage.framerate = someHigherVal than 30) but no effect. I saw many smooth panning galleries around the web, so it definitely is my wrong approach to the issue.
About functionality: it's a simple stuff of course - pressing nextBtn or prevBtn shifts movieClip left or right for some x value. I can see about 5-8 pictures on the stage at once. Rest of them are outside of stage, but order is set before, so they are not rendered(are outside the stage) but have their proper x value. So they are ordered in this movieClip.
I'm looking at some requirements for an upcoming flash project. One requirement is for the browser url in the address bar to change as a user clicks around in the flash movie so that a user might copy/paste said address into an email and another visitor will be brought to the same location. Is this possible?
View 5 RepliesIf I have several items that move across the screen but the user can click any of them at any time, how do I record the current position of any of the items item in order to use that data to change the position of the item after the user clicks?
This is what I am doing: I have 11 images that slide accross the screen. The user can click any of them at any time. When he clicks one I am scaling the image so it looks like it is comming forward (z axis) and then the rest of the images are scaled down so it looks like they are going back on z axis. So what I am trying to do is get the current position of the image when the user clicks the image so that I can use that to correctly estimate the scaling and moving of the image to make it look like it scales from the center and not from the top left corner. So if have a variable that gets the current position of the image being clicked I'm thinking I can change its position using something like: x = currentposition + -45;
I have the following which produces a trace if the user does not type an email address when testing locally, but nothing when testing outside of Flash.
[Code]...
I'm almost certain this is possible, but am not sure how to go about it.
Basic idea: User visits a website using a HTTP/socks proxy. Hidden .swf file is embedded on the site which, when loaded by the client, sends data back to the web server, and that allows the IP to be logged along with a corresponding session ID of some sort which ties the proxy IP and the true IP together.
My question is how would I go about doing this in flash? I've searched for examples, but all I've managed to find on the subject is people claiming that it's possible to do.
So I'm working on my portfolio and I got this problem. The code posted scrolls the sprite "cellContainer" based on the position of stage.mouseY. Perfect.Problem is that I want stage.mouseY to equal the entire cellContainer height. Kind of like how a small tablet equals a huge monitor. So when stage.mouseY = 0,cellContainer.y = 0 and when stage.mouseY = stage.stageHeight, cellContainer.y = stage.stageHeight - cellContainer.height. Right now, it scrolls, but it takes a while to scroll throught the entire height of cellContainer. I want it to be proportional to stage.mouseY.
Actionscript Code:
private function scrollStart(e:Event)[code]....
I am working on a site, that has 5 main pages: the home, and four sub-pages. Essentially, I have an element that slides up over the screen anytime you click "from" the home page to one of the remaining pages. Consequently, when returning to the home page, the element slides away / off the screen.
I am thinking the best way to handle this is with a conditional statement, but not really sure at all how that code would look especially in relation to position. My thinking for the code would be as follows:
[Code]...
I would like to input a certain (x,y) coordinate and have a function return which movie clip is based at that location. Is such a method possible, to refer to a movie clip based on its position rather than instance name?
View 1 RepliesIs there a way to set an #include based on a user click?
When I load a .txt which contains all the variables used in a pre-made solution I purchased using loadVars, none of the as code works. It only functions when it's done as an #include:
#include "myvariables.txt"
Is there a way to do have the code use the .txt as if it was an include, but have it set by user click?
how to get the X and Y coordinates of a character in a string based on index? I find it odd that I can get the exact letter and index by clicking a character in a text field, but I haven't found anything in code that can get those coordinates without a user click. Seems like they would have to know the x,y of the individual indexs to be able to tell you what letter you're clicking based on your own mouse coordinates.
View 3 RepliesI'm doing an online advertising format (728x90 leaderboard). I have embedded a video into the flash file which covers 1/3 of the format (242x90).What i need to do is seek this video from 0% to 100% based on the mouse position over this area (242x90). I'm guessing it would be easier if i created a button over the video which is 242x90 but i would still be looking for the code that seeks the video based on the mouse position over the button.
View 7 RepliesIn my code I am creating MCs and having them drop down the screen at varying speeds, but am having a hard time thinking of an easy way so that if one MC 'overtakes' another slower-moving one it will be displayed above it.I really don't want to have to run a hit test every frame for every MC through the array of MCs..
View 3 Repliescheck out: [URL] - great site
Does anyone know how this scrolling based on mouse position works?
I am putting together an artists gallery, and i need to show each artist's collection when you select their name from a drop down combo box. [url]...
create a new xml file for every artist (artistname.xml) to load in to the thumbnail gallery.
QUESTION - How do I make this file to be a variable depending on the user selection from the dropdown.[code]...
I have a strip of thumbnails in an MC that is quite long. I am masking this long strip of thumbnails so only a few can be seen at a time. I want the user to be able to move this strip to the right and left based on where their mouse is.But a lot of the solutions I've seen have used the stage width to achieve this...however, I only want the strip to move if they are over the 'active' area.....basically if they are over the mask area.And then when it reaches the end of the strip
View 1 RepliesI'm using the following code to have an MC follow the users mouse based on it's x value. But I'd like to have this inverted...so that if the users mouse goes right, the MC goes left....instead of going right along with the mouse.
Code:
import mx.utils.Delegate;
class Mover {
private var target:MovieClip;
private var limits:MovieClip;
private var ease:Number;
[Code] ......
I have created a document 600x300 filled with buttons for a rollover effect. I want to be able to play sounds dependant on the x and y position of the mouse without having to use objects that interfere with the buttons.
View 2 RepliesI'm trying to make a faux 3D rotation animation where if the user mouses to the right the object rotates right and if the user mouses to the left the object rotates left. Depending on how far they move the mouse the rotation should speed up or slow down.I spent a lot of time making an object in 3d studio max and importing the animation of rotation as JPEGs onto the timeline. I figured the most efficient way to go about this would be to make the mouse control the timeline instead of the object itself.
View 4 RepliesI have a thumbs_mc with thumbnail images. Within thumbs_mc, I have a transparent overlay_mc that functions as a button. Mouse over the overlay_mc and the alpha chages so there is a tint over that particular thumbnailWhen overlay_mc is clicked, the main timeline goes to a particular frame label.What I need to do is have the position of the playhead on the main timeline also determine the alpha of the overlay_mc so the viewer knows which thumbnail is playing.
View 1 RepliesI am attempting to create 360 degree spin-around product viewer. So far I have a movie clip with 24 frames, each one with a different 15 degree angle shot of the product. Upon playback of the movie, the product appears 3D, spinning 360 degrees.
That was the easy part. Now what I need is to be able to click and drag the product to change which view you are seeing (or which frame in the mc you are on) thus producing a spinning effect. How can you code, in AS3.0, that when the mouse is clicked and drug, go to a certain frame based on the current X position of the mouse?