Actionscript 3 :: When Does Flash Stop Rendering And How To Keep Active

Sep 3, 2003

I have a flash/Actionscript 3 application (swf). This application sends a message to a server every 2 seconds. However, in some browsers/operating systems (for example, safari in mac), the moment the browser loses focus, it stops sending these messages.I send these messages in a EVENT. ENTER_ FRAME loop, so every time the application is rendered I have the chance to send a message. My theory is that some browsers apperantly stop callling this method/stop rendering for some reason, because it has lost focus. However, I want to keep sending these messages. I already tried to use a Timer, an event that would be called every 2 seconds, but I read somewhere (and my tests seem to agree) that this timer is also connected to the rendering/frame entering, so that timed function will also not be executed.

View 2 Replies


Similar Posts:


Actionscript 3 :: Flash: When Does Flash Stop Rendering And How To Keep Active

Jan 6, 2010

I have a flash/Actionscript 3 application (swf). This application sends a message to a server every 2 seconds. However, in some browsers/operating systems (for example, safari in mac), the moment the browser loses focus, it stops sending these messages.

I send these messages in a EVENT.ENTER_FRAME loop, so every time the application is rendered I have the chance to send a message. My theory is that some browsers apperantly stop callling this method/stop rendering for some reason, because it has lost focus. However, I want to keep sending these messages.

I already tried to use a Timer, an event that would be called every 2 seconds, but I read somewhere (and my tests seem to agree) that this timer is also connected to the rendering/frame entering, so that timed function will also not be executed.

View 1 Replies

ActionScript 3 :: Stop Rendering In Flash

Apr 15, 2011

Here's my problem: I have a few display objects that are modified by a loop, and I would like flash to render exactly one frame at the end of each loop. Duration of a loop may vary unpredictably, thus a constant frame-rate won't do it.

I found a hack-ish way to render one frame at the end of each loop, using updateAfterEvent with a 0ms timer. Now I want to prevent Flash from rendering frames in the middle of the loop: this is a waste of time and ressources, and produces strange blinking effects. Setting the frame rate to 0 would be an easy solution, but stage.frameRate has a minimum value of 0.01.

Question 1: Is there a way to properly stop the standard rendering loop? A workaround will not be regarded as a valid answer, because what I'm currently doing is a pretty good workaround (1 frame every 100 seconds is bearable). Question 2: Is there a better way than updateAfterEvent to force rendering?

View 2 Replies

ActionScript 2.0 :: Stop Blocking The Active X Control For A Flash Movie In IE?

Feb 6, 2007

How do you get the information bar to stop blocking the active X control for a flash movie in IE.when I am in fire fox, it just starts the flash movie. Right in the HTML page. But with IE, the info bar at the top pops up, and blocks my flash movie.Then you have to click on it, and say that you want to activate the active X on the page. Is there anyway to stop this from happening. I remember, using IE, that not all flash is blocked, just the stuff that I make.

View 7 Replies

ActionScript 3.0 :: Stop A Microphone That Is Already Active?

Nov 23, 2009

I have a simple question: how do you stop a microphone that is already active?

View 1 Replies

ActionScript 2.0 :: Stop The Buttons From Being Active?

Feb 6, 2006

I have buttons in my container that fade out at one point of my website. But they stay active as obviously the movie that is playing at that point is loaded into the same container. How do I stop the buttons from being active?

View 2 Replies

ActionScript 2.0 :: Login - First Frame Is Not Active Frame The 2ed Is The Active And 3ed Is Blank So It Wont Show?

Jan 18, 2012

im working on my own site im lost though i copyed and pasted so much but i cant seem to figer somthing out.i have a members sys sitting on a few frames every thing works. but the profile button, i have a total of 11 buttons that are working. i coppyed them put them all on 1 frame with there own instances that contain 3 frames?the first frame is the not active frame the 2ed is the active and 3ed is blank so it wont show. so my login code at this point is

ActionScript Code:
//Button Functions
signupBtn.onRelease = function() {[code]...

View 0 Replies

ActionScript 1/2 :: Window Component - Keep Buttons From Being Active While The Popup Window Is Active?

Mar 26, 2009

I have a window component on my main timeline that gets called up on several instances. When the popup window appears, everything looks fine, except that the user can still click on links that are now behind the actual popup window itself. My question is how do I keep those buttons from being active while the popup window is active?

View 2 Replies

Rendering Flash In The Server?

Oct 26, 2009

I am trying to find a way to render a Flash object, more specifically a Open Flash Chart, in the server, and save a screenshot of it to a temp file to embed it in on a PDF report.

I've found some solutions that use Javascript to generate a temp file in the browser, and then send it to the server (like here). However I need to generate reports automatically and send them as e-mail attachments, so I cannot render it using a browser.

View 1 Replies

Rendering Div Contents In A Flash Movie?

Jul 2, 2009

I have a webpage containing 2 DIV containers hidden using CSS. The site has a Flash Movie embedded. I want to render the content of these hidden DIV containers from within the Flash movie.I'm using CS4?  
 
HTML
<div id="sectionone">content</div>
<div id="sectiontwo">content</div>
  
CSS
hide sectionone div and sectiontwo div
 
FLASH
Display sectionone within flash movie when requested

View 2 Replies

Php :: Rendering Fonts From Flash To Image?

Oct 25, 2010

I am trying to render an image with text and images that are on a .swf file. What i am doing is saving all the objects and their properties in an XML and then using imagemagick to render all that. the problem i am facing is that imagemagick treats fonts very different than Flash, so i don't get a perfect copy of what i see in the flash to what i see on the rendered image.

how to match font sizes between flash an imagemagick?

View 1 Replies

Flash 9 :: PNGs Not Rendering As Transparent?

Sep 3, 2008

Has anyone ever encountered this weird, unique error I am gettingWhen I export my program to a SWF all the imported PNGs with alpha transparency (ie; soft edges) render totally wrong - no transparency, very blocky and pixelated. See the attached image for an example;this is out of the blue. Has exported fine recently.

View 1 Replies

Flash 9 :: HTML Rendering Of Images In TF?

Nov 20, 2008

I want to use small icons to play videos from within an HTML (CSS-styled) text field in AS3. I placed the image after the text, as you normally would. But it keeps getting bumped down to the next line. I'm worried that this is just another part of Flash's busted HTML rendering.

[code]...

View 0 Replies

RSS Reader - HTML Tag Rendering In Flash

Jan 3, 2010

I'm making a simple RSS reader in flash. I test the swf in Flash, it works perfectly. I publish the swf with html through Flash, and it works perfectly. However, when I incorporate the swf into a web site that I am currently developing, using swfobj 2.0 (dynamic) procedures (followed both by google code and lee's video tutorial on using swfobj 2.0), the html rendering does not work. I've tried copying the html code that comes from the Flash-published html, and paste that into the website I'm developing, but that straight out just doesnt work. I'm going to attach the AS3 code here. I pull the RSS xml info into flash, do a bit of string analysis to replace inactive links with active and cut out another snippet of the string, apply a style using an external css, and finally render as html.

Code: Select allvar loader:URLLoader = new URLLoader();
loader.load(new URLRequest("[URL]"));
var xml:XML;
function onDataComplete(e:Event):void {
xml = new XML(e.target.data);
var il:XMLList = xml.channel.item;
[Code] .....
Latest version of FF is used in both pics. Also, an image to illustrate what happens:

View 3 Replies

ActionScript 3.0 :: Flash Rendering Benchmarks?

Jul 12, 2011

This should be of interest to some of you, certainly those of you who are interested in the games/motion graphics side of things.eople generally accept copyPixels as the standard for "blitting" but in some cases it gets absolutely blitzed by BMFill, namely when alpha isn't involved

View 2 Replies

Professional :: Text Rendering In Flash Authoring Tool And In Flash Player?

Apr 15, 2010

i have found that:

1. There has a subtle difference between a static text field in flash authoring tool which has been set to use the device font when it's got focus(state that user can type character in) and lose focus;

2. There also has a subtle difference between when it is being rendered in flash player and in flash authoring tool.(Note that the key factor here is setting the text field to use device font.)

View 5 Replies

ActionScript 2.0 :: Rendering Html Tags In Flash From XML?

Oct 21, 2009

I have XML written using PHP taken from a database, which flash then uses to print out iinto a flash file dynamic text box. It all works fine as required, apart from not rendering html tags properly within the textfield, such as <p> and <b>. Below is my php, wrapped in the CDATA tags:

[Code]......

the textfield (mytext) is obviously within movie clip - theMovie - movies. As i mentioned the text is getting printed out fine from the database, but it ends up being just one block of text without formatting, and the tags that should be html are being taken and written literally.

Is there anything glaringly obvious that I'm not including to make sure that <p> tags and <b> tags etc. are rendered correctly, rather than just writing them out as "<p>" in the textfield?

View 5 Replies

Html :: Flash - Rendering Swf Files With/Without Swfobject?

Aug 3, 2009

Without including swfobject.js can only swf files be loaded through html.And if so is there a common tag for all the browsers.

<object id="myMovieName" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param value="movie.swf" name="movie">
<param value="high" name="quality">

[code]...

View 7 Replies

Video - SWF Reading/rendering (outside Of Flash Player)?

Dec 9, 2009

I would like to use SWF files as source video data within a tool chain I am developing. The problem is, I can't seem to find a consistent way to convert them, and I'm concerned about the loss of quality that the conversion will introduce.

I actually even have Flash CS3, but the export process to anything other than swf is flaky at best. It does different things depending on what video format you export to, and doesn't seem to be consistent across Flash (fla) files.

The options I have come up with are:

1) integrate someone else's source code to parse/play back the swf files, and capture the output directly that way.

2) create some kind of frankenstein work flow using Air or Flex to play the swf and export each frame to an image format, and then read those into the application where I want the data.

Integrating someone else's code seems pretty gross to me. The code available that I can find is at least 2 Flash versions old, so I'd have to do a fair amount of work for this. And when Adobe releases the next version of Flash, I'll have to add support for the new features in myself anyways. Were I to write a player myself from scratch, using the SWF specifications Adobe has published (assuming everything is actually documented enough), I run into the same issue: continued maintenance on a regular basis. And for most likely undocumented (or slowly documented) features.

Creating a frankenstein work flow using Air/Flex seems like a smarter approach, but will be really cumbersome and most likely slow.

Has Adobe released source code for their player somewhere, or better yet, a (C++) library that I could use?

View 1 Replies

Flash :: Get Perfect Pixel Line Rendering In As3

Jan 7, 2010

I'm making an arcade game in as3 and I want to draw pixely(unsmoothed by flash) lines. I'm drawing the pixels 'by hand'(not with flash's lineTo or anything) onto a bitmapdata object. The lines don't appear quite right though, when zoomed out the line is rendered 2 pixels thick at some parts. However by zooming it its apparent that the algorithm is fine and its not doubling the pixels. Changing the quality doesn't seem to change anything.

[Code]...

View 2 Replies

Html :: Flash - Not Rendering In Internet Explorer?

Jul 22, 2010

the following flash object placed in HTML, flash seems to be rendering good in FirefoxChrome, Safari but not in any version of IE!

View 4 Replies

Actionscript 3 :: Migration From Flash CS3 To CS5: TextField Rendering

Aug 14, 2010

I have an Actionscript project that was building using Flash cs3. Project have TextFields (Text engine: classic text, Text type: dynamic text). Since I upgraded to CS5 and published, I find out that my text not rendered. I use Font family Tahoma. And I just set Font family to Tahoma again and published. After that manipulations my text start render. But when somebody else try to open my project using same Flash CS5 IDE and just published that project again without any modification - none of my text is rendered again. And that going round in circles.

View 2 Replies

Clean Image Rendering In Flash Player?

Apr 3, 2011

We are building a flash based product where we need to create icons for various modules. we are having challenges in look and feel of the icons- what looks really good on Adobe Illustrator/ Photoshop looks jagged on flashPlayer. A challenge we have is that the overall screen aspect ratio and hence aspect for the icons which are relatively sized can change

we were told in discussions with some adobe folks that

a) we need to build icons which are square, and in multiples of 32 pixels.

b) use a png format

As per them, this way the pixelation is reduced and diagonal lines won't appear jagged- we still have an issue on rendering in flash player

View 1 Replies

Actionscript 3 - Font Rendering Errors In Flash CS5?

Apr 3, 2011

i'm suddenly experiencing errors in font rendering in my project.the following image is a square sprite with a texture and 2 dynamic text fields as children.the text itself is correct. the bottom field is a 32-bit hexadecimal color ("H: 0xFFFFF4A1"), but as you can see some of the characters are stretched ("x", "4" and "1"). it's the same in the first text field which lists each color in ARGB format.

the font being used is Myriad Pro Condensed. i was originally using Myriad Pro Bold Condensed, which i was using for months, but suddenly yesterday the font became even crazier than what's visible here so i switched. now this font is being rendered incorrectly also.

i've validated the fonts.
i've deleted my ASO files.

i'm using cacheAsBitmapMatrix on the parent sprite object, but cacheAsBitmapMatrix is suppose to only affect mobile devices so i'm not sure why it would be rendering the font like this (if it's the problem) while running under ADL on my desktop.

newSwatch.cacheAsBitmapMatrix = new Matrix();
newSwatch.cacheAsBitmap = true;

this is how i'm calling the font, which is embedded in my library.

//Create Text Field
private function swatchTextField():TextField
{
var myFont:Font = new MyFont();

[code]....

UPDATE:this error was indeed not a problem with Flash but a bug Apple introduced in Mac OS X 10.6.7 that affected the display and printing of some open-type fonts. [URL]

View 3 Replies

Flash 10 :: Input Text Only Rendering As HTML?

Sep 29, 2011

I have two separate projects I am working on, very basic, and the Input Text Box on one is only returning the value in HTML format... I cannot figure out for the life of me why.

The Input Text Box on the Stage has a variable assigned to it. I then have a button that checks the users input... the problem is, the input is being converted to HTML so the check is always failing. When I trace the variable it returns the following result[code]...

View 0 Replies

ActionScript 2.0 :: Xml Driven Flash Tree Rendering?

Oct 9, 2006

details of "XML driven flash tree structure"..that could be something related to the left pane of Windows Explorer and i need to add the data dynamically...is there any useful tutorials or documents for this?

View 1 Replies

ActionScript 3.0 :: Flash Player 10 Rendering And Occlusion

Feb 8, 2011

From here I read that the flash player software renderer only draws every pixel once, the page says something like this "Using the software renderer, each pixel is drawn only once, so there is no penalty no matter how many graphical elements are covering each other at that pixel location. " I was wondering what are the implications of this, does this mean that flash player has some sort or occlusion testing inbuilt yes it may not be culling the occluded triangles but it does not seem to render it.

How later on, I came across this page which talks about culling. If I decide to render objects in a 3D world do I have to implement my own culling code or will the flash player software renderer. do it for me

View 14 Replies

ActionScript 3.0 :: Flash Improving The Rendering Performance?

Apr 26, 2011

I am working on a large project and I would like some advices about improving the rendering performance when scrolling some content.I have a large sprite with a lot of content that I need to scroll and the problem that I am encountering is that when scrolling this big sprite, the rendering of the Flash Player seems to slow down and the movement is choppy.

I wrote a custom scrollbar class that simply updates the target sprite y or x properties on an enter frame event.The large sprite that I am scrolling mainly contains other sprites that have drawn shapes, loaded bitmaps and text fields.

Considering that I am simply moving the sprite, there are no other animations happening, nor other intensive processes at the same time, I do not think that it should be that resource intensive as to slow down the Flash Player that much. What can I do to improve the performance when scrolling the sprite ?(Just to give a rough approximation, the sprite that I am scrolling contains around 20-30 sprites with drawn shapes, 2-5 loaded bitmaps, 5-10 text fields.)

View 6 Replies

Professional :: Safari - Rendering Flash As Background Image?

Feb 7, 2010

Is there a major issue with rendering Flash in Safari?

I have search for a way to display, for example, Adobe Home Page in Safari and be able to see all the menus "on top" and have not found a solution.

I have tried setting wmode to either opaque or transparent but no change.

I am using the latest download of Safari (vs 4.0.4[531.21.10]) on Windows 7.

View 1 Replies

ActionScript 3.0 :: Rendering HTML Inside A Flash Object?

May 16, 2010

what I want to do is render some HTML inside my Flash object. My problem is that this isn't just htmlText (for which I could use a textArea object), but text and images. Is there a component / object I can use inside Flash to render this HTML segment on the fly, or would I have to write my own HTML interpreter more-or-less (which I could do, thats just the last resort if I can't find a quicker way to do it)

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved