Actionscript 3 :: Flex - Find Out Which Is Browser You Are Currently In?
Jul 10, 2011I need to detect via AS3 inside flex mxml appication which is browser I am in - FF, Chrome, IE etc, only name and version. How to do such thing?
View 2 RepliesI need to detect via AS3 inside flex mxml appication which is browser I am in - FF, Chrome, IE etc, only name and version. How to do such thing?
View 2 RepliesIs there a way to find out the total amount of available (free) RAM on a computer via the web browser or flash?
View 1 RepliesI have a website and it is set to 100% of the browser window. Everything in the browser is left aligned. I have a script that when u has an event listener on the RESIZE so that everything will be centered when u adjust the window. What my problem is that right when the page loads the swf is left aligned. I want the stuff to be already centered but the only way to do that is to adjust the browser window. Heres my site: My Example Watch that when it loads its all to the left. Resize the browser and everything will snap to the middle.
View 4 RepliesI want to put one audio player in my website. For that I need to know if user's browser have flash player installed. Otherwise I will use different player to play audio file(.wav).
I will be glad to know its solution by either javascript or coldfusion.
in other words, suppose I want to send data, like text, programmatically from a Windows app (such as a browser plugin) to a Flash app running in the browser. Well, conceptually, an example of this might be a Flash instant messenger with a textbox and button "Send"; so let's say I want to be able to programmatically paste the text and press Send or otherwise activate it. That's NOT what I am trying to do here in reality (i.e., no,I am not trying to spam other people's chat rooms or anything)but just an illustration of a similar situation.I can include in it whatever widget or hack that may be necessary.The reason why this problem is arising for me is that AFAIK the SDK that is providing me the data I want cannot be directly accessed from Flash, so I need a way to pipe the data from a regular app into Flash. can I have the Flash app interact with other apps through localhost IP? Or are there draconian restrictions on which server Flash in browser can and cannot interact?
View 1 RepliesThe title essentially is the question, how do I open the .swf without the browser's control bar junk? and maximize the window?
View 2 RepliesI have a Flex 4.6 web game which displays 2 Lists with virtual layouts with 2 custom item renderers. The renderers consist mainly of BitmapImages displaying user avatars + few Labels.
The Lists are being updated often over TCP socket with gzipped JSON data. I merge that data into 2 ArrayCollections serving as dataProviders for the Lists. This seems to work well, the Lists do not flicker and are updated correctly (I've monitored debug traces a lot to get it right).
[Code]...
I must rejected all users outside Denmark from our live streaming (c-ip) and this is done in an access plug-insBut now I need to open up one of the streams, but I can't get the streaming name in the access-plug-ins only in the Auth-plug-ins.I cant use x-page-url or s-uri I need pStreamName. in access-plug-in like thissetStringField(m_pAev, IFmsAuthEvent::F_STREAM_NAME, pStreamName);but I cant get it inside the access-plug-in
View 1 RepliesI am trying out to deploy a flex application in one of our servers. I was able to deploy it but running it causes some problems like missing swfs. One of these missing swfs is the sparkskins, which I am not sure where to get from.
View 1 RepliesWhere can I find the path to the Flex SDK? Last time I embeded metadata, Flash CS5 automatically found it for me. This time its not working. I get this message in the output window:You have used a feature that requires the Flex SDK:"Embed" metadata Please set the Flex SDK path if necessary and add it to the library path for this file. The Flex SDK folder contains the bin, frameworks, lib and other folders.
View 3 RepliesI'm attempting to compile my Flex project with an ANT build script.One of my MXML components references an external XML data file, like this:
<mx:XML id="treeData" source="assets/data/help.xml" />
When I build the project using Flex Builder, it compiles fine. However, when I try to compile it using ANT, I get the following error:
Error: Problem finding external XML: assets/data/help.xml
How come ANT isn't finding the XML file? Apparently it knows the source path otherwise it would not have found the component to begin with. I added the source path to the target anyway, but it doesn't seem to have made any difference:
<source-path path-element="${SRC}" />
I was trying to find a bandwidth profiler in flex like there used to be one in Flash but couldn't really find one. Is there a way, that I can do bandwidth profiling of my local swf?I'm using Flex Bulider with a AS3 project.
View 2 RepliesI am loading data from one sample.xml file using http service. the xml file will generated by jsp and it is saving in one proper location like(d:/programfiles/some.xml).now when I first time login to application i need to check whether that xml file is present or not. How can I check?
View 2 RepliesI'm working on a build script in the Flash Builder version of Eclipse. This build script needs to import launch configuration .launch files into the user's workspace. However there doesn't seem to be an available ANT var for determining the workspace location. While stepping through the available vars with intellisense I noticed that ${osgi.instance.area} does point to my current workspace but when I tried to echo it back in a running ant script it just spat out "${osgi.instance.area}" and not the path.
View 3 RepliesI'm opening popups (subclass of TitleWindow) in Flex by using
PopUpManager.createPopUp(parent, TrainCard)
Is there any way I can get a list of popups that are open? Or do I need to keep my own list?I need to make sure I'm not opening the same popup twice.
I would like to get the user's IP locally without any invoking any service.
View 1 RepliesI need to recalculate the max value of lineChart according to the visible lineseries. In the application I have the ability to make visible or not the lineseries of the graph and if I make not visible the lineseries with the actual top value I want to zoom in and change the top value of the graph.
View 1 RepliesCan't find the class URLRequestDefaults in flex 4.6. Where is it gone?
View 2 RepliesWith the PopupManager it's possible to add/create/remove a new popup. But i can't find a way to get the top most popup without overriding this class (which something you want to do for a big Flex application).So far I found this solution, which is more kinna of work around. So if any body has a better solution, i will be pretty much happy to read it.
Assuming the you call the addPopup/createPopup with the parameter PopUpManagerChildList.POPUP, example :
PopUpManager.createPopUp(parent,MyPopupClass,true,PopUpManagerChildList.POPUP);
[code].....
I didn't create that Timer... so this is problably a component I have addedUnfortunately it will be difficult to remove all compenents until if find the "one" ..Yes I should have notice the CPU usage sooner !and yes I will do that if I don't find another solutionI am of course using some components without having their sources...My questions :* How can I find the guilty component ?* I tried to find it using Kap Inspector without success ...any tips for Kap inspector ?
View 2 RepliesI'm having sizing issues with a TabNavigator. The direct children of the TabNavigator are Canvases, and within these I am adding Images. I'm trying to resize the images to fit within the Canvas without scrollbars. The Canvas height is set to 100% of the parent, which is the TabNav. Then I'm setting the image.height = parent.height *.9. The result is that Flex is generating scrollbars because the images are too high. It appears that the root cause is that the height property of the TabNavigator is the height of the entire component, including the height of the tabs. I'm assuming therefore it also contains that little strip of space between the tabs and the children of the TabNavigator. This makes sense, but is there a property that returns only the height of the children? I'm aware of the scrollbar policy properties and I've experimented with those. I know I can also try a different multiplier for the image size to get it to fit. It just seems like there should be a property to get the size of the space for the children.
View 1 RepliesHow can you find out if a Flex Component (in my case the tree) is scrollable? I tried it like this
if (_listOwner.height < _listOwner.measuredHeight) {
// so stuff
}
from within the tree's item renderer but didn't succeed. Access to the tree's scrollbar is private so that I can't get the info that way.
For example, today is Tuesday, Feb 02. Well the equivalent "Tuesday" from last year was on Feb 03. How can I find this out programmatically?
View 2 RepliesHow would I find the maximum value in a specific column in a Flex DataGrid?
View 2 RepliesI've created a Flex LineChart that shows high and low tide predictions over time. I'm using the LineSeries with form="curve", which produces a nice sinusoidal wave graph, representing water level over time. The X-axis represents time, and the Y-axis represents water level. The only data points I have to work with are high and low tide values, but I would like to figure out how to determine the y-values of arbitrary x-values along the line.[code]
View 2 RepliesWe've got several Flex projects, one of which has just been refactored. I'm wondering if there's an easy way to tell which classes and functions (if any) aren't being used any more?
I've discovered that we've definitely got some unused code, because running ASDoc on the entire project reports some compilation errors which don't get reported by Flex Builder (implying that those classes aren't being used any more). I'm hoping to find a more robust and complete method, and preferably one which can work at function level too.
I am using Adobe Flash Builder 4.
I've run into this issue with my latest project, but I was able to re-create it with an almost empty project. Here is what I've done.
Created a new Flex Project Created a locale/en_US folder within this project. Added a class that extends SparkDownloadProgressBar. All this class does is attempt to create a Label.
When I try to debug this application, I get the following error.
Error: Could not find compiled resource bundle 'components' for locale 'en_US'.
at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()[E:dev4.0.0frameworksprojectsframeworksrcmx
esourcesResourceManagerImpl.as:340]
[Code]....
The Flex Compiler/Additional Compiler Arguments section does contain "-locale en_US", but I do not want to just remove this as I am planning to have this load different property files based on the localization region at run-time and how I understand it, I will need to add each locale that I am planning to use on the compile argument line.
I'm working on file transfer application where client sends files to cpp server. At client side I can give the server's domain name but not IP address cuz it may vary. How can I get my server's IP address through it's domain name. I have to put this logic into air application.
View 1 RepliesDoes anyone know where I can get a hold of the FlexMonkium source code? I can checkout the FlexMonkey source but I cannot seem to locate the FlexMonkium source.
View 1 RepliesHow to find where is memory leak in a flex application?
Are there some tools to catch and analyze this problem?