ActionScript 3.0 :: Find Display Area Of IE Or Mozilla?
Mar 7, 2011how do you find the display area and/or resolution of the screen in actionscript 3?
View 1 Replieshow do you find the display area and/or resolution of the screen in actionscript 3?
View 1 RepliesIs there any way to display flash objects which are outside the display area when flash is embeded in HTML
The reason i ask is my current project has a rotating + enlarging effect which is largely dynamic so sometimes an object may clip the edge of the stage areathis looks messy but i dont want to increase the stage area to cover the largest possible area any object could enter because most of the time the objects are at the center and small so i would end up with a lot of white space
I have a AS2 movie clip that has a drag navigation. The movie clip is bigger then the visible area. How can I find the center xy of the current visible area when I stop the drag?
View 2 RepliesI'm working on a game where if the person puts there mouse over a card, it should pop out over the other cards, and when moved off, the card should go back to where it was, i can get the card to pop out no problem, and go back to it's location, the thing is, i don't want the card to go back when i move off the entire image, only when the mouse moves off of what was originally visible, and i'm not certain how to obtain a pre-visible area that i can use to test if the object should still be over all the other cards.
View 5 RepliesI have two circles, an inner circle and an outter circle. I'm trying to find points that reside within the area between the edge of the inner circle and the edge of the outer circle.
View 1 RepliesI have a BitmapData with 2 red circles. I want to find the rectangle area or each circle. If i use [B]getColorBoundsRect[/B] I get the smallest area enclosed by the 2 circles. How can i go about this and get individual area of the circles?
View 1 RepliesI am using the floodfill method to colour-in sections of a bitmap image. That part is easy enough but the issue comes in with the way I am adding an effect to the colour fill routine.
To add the effect, first a copy of the bitmap data is created and floodfill is used on that instead of the original bitmap. Then the bitmapdata.compare method is used to set the alpha value of everything apart from the filled-in section to 0 and the result is saved in another bitmapdata. After that, a 1 px radius circle sprite is added to the stage and is being tweened to the image dimensions and its mask is set to the sprite which contains the result of the compare operation.
This works perfectly except for the fact that the fill sprite has to be tweened to the complete image dimensions irrespective of how small the area is being coloured-in since I am not able to find a way to get the dimensions of the fill area. I am doing an bitmap image update at the end of the tween and I have to disable user interaction till the tween is complete to avoid the errors which come in if another fill-in operation is started before the base image has been updated. If I could somehow get the dimensions of the fill area then the time during which I have to disable the user interaction will go down considerably.
I need to display a number of images within a scrollig area. I thought the easiest way of doing this was to put them inside a MovieClip and then have this MovieClip as the source of a ScrollPane.This works fine if I only use the mouse - I can select the different images and react to them.However I need to have this accessible so I need to have it tab enabled but for the life of me I can't get it working. From the documentation it should immediately tab into the first image.The closest I have gotten is to press return when I get to the scrollpane and move the focus to the first item in the scrollpane.However when I check what has focus it still says the Scrollpane so I don't think I will know when to move the scroll bar to be able to see the currently active image.
public function Test() { addChild(_scrollPane); _scrollPane.tabChildren = true; _scrollPane.width = 200; _scrollPane.focusRect = true; _scrollPane.height = 200; fm = new FocusManager(_scrollPane); _scrollPane.addEventListener(KeyboardEvent.KEY_DOWN, onkey);[code].....
I am trying to display an HTML formated file in text area component using Action 3.0. The following script does not generates compiler errors, each function seems to be executed yet the file is not displayed. When trying the same code with myCV.txt and myCV_TA.text = (loader1.data) the text file is displayed OK. Flash MX and actionscript 2.0 had handled that differently but with success?
-----------------------------------------------------
var loader1:URLLoader =new URLLoader();loader1.addEventListener(Event.COMPLETE,displayText);
textload("myCV.html");//---------------------
function textload(file:String){ loader1.load(new URLRequest(file));trace("in textload");}
function displayText(e:Event){ myCV_TA.htmlText = (loader1.data);trace("in displaytext");}
//-----------------------------
How do I Display the result of this code as text in the main flash area..?[code]...
View 4 RepliesHaving problems in dragging three objects onto a target, which will make a button appear.
This is my code so far:
Code:
cookingarea.visible = false;
page2Button.visible = false;
milk.addEventListener(MouseEvent.MOUSE_DOWN, fl_ClickToDrag_5);
[Code]....
I have camera input app in flash (AS3) and I draw some graphics over it. I want to take the image snapshot of the stage visible area but only the video an graphics I draw over video. I want to exclude controls from the image snapshot. My display object layout is in following relation:
-stage
--canvas (Sprite)
---video (Video)[code]..........
Stage size is fixed and I want to take a image snapshot of everything that is child of my canvas element (camera input video and overlayed graphics, but excluding controls). I am able to make this image snapshot when overlayed graphics are inside the bounds of stage size. I do it like this:
var bmpd:BitmapData = new BitmapData(canvas.width, canvas.height);
bmpd.draw(canvas, new Matrix(1, 0, 0, 1, canvas.x, canvas.y));
But this gives me unwanted result when graphics which I draw on top of video on canvas exceed the bounds of stage display area. How do I limit the image snapshot only in the bounds of visible area inside stage?
Can I detect the color of a pixel or an area in a Display Object?
View 2 RepliesHaving problems in dragging three objects onto a target, which will make a button appear. This is my code so far:
[Code]....
I have a php script that calls a result from the DB and gives it a variable. I then have a dynamic text box in flash that I want to say "goto read.php, find the variable and display the variable's contents in this text box"...
View 1 RepliesI have a horizontal slider which slides images. When one of the images is in the middle of the stage I want to be able to show text related to that image. At the minute it shows all the text but thats not right.
What Ive got is a way to find out if one image is hitting the middle point.
[AS]trace("0 "+_imageHolder.getChildByName("0").hitTestPoint(39 0, 120));
trace("1 "+_imageHolder.getChildByName("1").hitTestPoint(39 0, 120));
[code].....
Using the mac version of flash CS3, and trying to import classes, namely the Loader class. Everywhere I've seen this code is used:
import flash.display.Loader;
or for all classes in display:
import flash.display.*;
Neither of which seems to work, and after searching out the file path for flash.display there is only one file in the display folder (BitmapData.as).So my question is, where do I find the loader class? And secondly, once I find it, do I copy and paste it into the display
folder or do I use a different file path?
when i publish in flash in html, in the Mozilla browser i am getting it in the left but i want it into centre.
View 7 RepliesSWF embedden inside html site is not visible in Mozilla-based browsers with hotlink protection enabled.
This is because Adobe Flash Player addon for Mozilla Firefox does not send HTTP referrers. The problem is also known as Bug 410904 [URL]
What you can do is to add an additional line inside .htaccess file to detect blank referrer: RewriteCond %{HTTP_REFERER} !^$
In my opinion the above "solution" ruin the whole hotlink idea - especially as to Internet Explorer...
But what if we would manipulate the headers sent to the webserver, to include the referrer (with the use of AS3)?
I am having problems with gotoAndStop and mozilla. I am loading an external swf ( which is Flash MX 2004 ) swf. In this swf, there are 200 keys frames. Here, i am using a command gotoAndStop(110). Now after publishing, when I am viewing in IE browsers, I can able to see the 110th keyframe position exactly. But when i am viewing the same html in Mozilla, I am getting random positions. Here am not getting 110th position.
View 1 RepliesBeen a while since i've posted on here but im running in to a snag. It seems that when i go in to fullscreen mode with ie it runs correctly. However when i run it with mozilla I get a security error. Hitting continue, and repeating the process gives me the error again and im denied fullscreen. When i hit "dismiss all" and repeat the toggle it goes in to fullscreen.
View 1 RepliesI am working in Flash CS3. I am having problems with gotoAndStop and mozilla. I am loading an external swf ( which is Flash MX 2004 ) swf. In this swf, there are 200 keys frames. Here, I am using a command gotoAndStop(110). Now after publishing, when I am viewing in IE browsers, I can able to see the 110th keyframe position exactly. But when I am viewing the same html in Mozilla, I am getting random positions. Here am not getting 110th position.
View 1 Repliesi hv made a game i split them in two files 1 file is index which have preloader and other is game which have game... problem is, some mozilla browsers can't load the game swf...l
View 3 RepliesWe are in the process of developing a CRM application and for that we need to upload *.doc and *.docx files and display that contents.
We successfully uploaded the *.doc and *.docx files in application by using FileReference and FileReferenceList. Would you please tell me some idea to read the contents from *.doc and *.docx files and to display the uploaded file content into flex text area.
I have in my page a movie that i call with :
<object width="500" height="405"><param value="http://www.youtube.com/v/_wKFwii6LF0&hl=fr_FR&fs=1&color1=0x2b405b&color2=0x6b8ab6&border=1" name="movie"></object>
In Chrome it is displayed, in IE and Mozilla, there is an error.How can i debug.(For info, this is the link to the real page :[URL]At the bottom:
Chrome : plays the video
IE: shows a placeholder with error
Mozilla: shows nothing...
I am retrieving an flashvars object from JSP file. Like userid = mx.core.Application.application.parameters.userJspid;like this it is retrieving in IE browser. But not in FF (Mozilla), why it's not retrieving is there any code i need to add it for Mozilla specially.
[Code]...
width 100% for divs, table not working on mozilla and ie. can anybody share their experience while working to achieve this. I wanted to place swf to occupy full web page
View 1 RepliesWe have one player in this player we are playing flv files. If we are opening that player in the mozilla we can view the flv file after 2 second but in the internet explorer we can see the same flv after 20 to 25 second.
View 5 RepliesA simple flash video doesn't appear in IE. I've looked at answers to the same problem by NineBerry, however, I've tried those suggestions without luck.[code]I didn't include the file mulholland_intro_slideshow.fla as I doesn't seem necessary.I'm also aware that when encoding with Flash the object can only be made to played locally or via the network. I encoded locally for testing but it also plays across the network. Is that even relevant? I don't know.
View 1 RepliesI have this code for my button. How do I make it so when its rolled Over, it'll display a text area with text inside it? and when I roll Out, the text area will go away?
on (rollOver) {
}