Flex :: Flash Site Often Does Not Render Until Refresh
Apr 16, 2010
[URL]. Our client communicates with a Rails backend to get login details and then logs into an Adobe LCCS server. We have been cruising right along but around noon yesterday we developed a bug that causes the swf to not render until you refresh the page. On subsequent refreshes it pops up right away. The problem happened even when I disabled the code that checks in with the Rails server. How could refreshing make a difference?
View 1 Replies
Similar Posts:
Aug 28, 2010
I want my site to refresh every time I open it. I've been looking at the unique identifier script, but I can't seem to understand where it goes. Is it in the HTML with the SWF or in the SWF itself?When you load a movie, variables, or a text, what you load is put in the cache of your computer by your browser. This can cause problems because if you load files, chances are that you are going to update them quite often, but Flash will look for the files in the cache, that is to say the old ones.The solution is to load your files with a unique identifier. Example:
myIdentifier=Math.round(Math.random()*10000);
loadMovie("myAnim.swf?uniq="+myIdentifier,1);
This works also with LoadVariables, LoadMovieNum and LoadVariablesNum.
View 3 Replies
Sep 9, 2009
I got a client that saw this site and NOW wants something like this. I am not certain if this is AS2 or AS3. My vote is for AS3.on how to render this?
View 4 Replies
Jun 24, 2011
Why is IE refusing to render a swf on my site? [URL] What could cause that to happen? Chrome and Firefox can open it but IE9 won't show the swf. The page's code:
[Code]...
View 4 Replies
Jun 5, 2010
I've been trying to get this preloader working for days! I finally got it working, and now when i upload it to my site and refresh the page, the .swf file is stuck at the preloader screen.
[Code]...
I've been reading up on it for a while now, but I can't seem to figure it out.
View 1 Replies
Sep 30, 2010
I had an issue with my index.html testing on IE and the preloader just stalls on "loading 0%". he told me that locally the progress event doesn't have time to load and to try uploading it to your server and see if it works. It worked just fine. Rah Rah Kglad.
So today I'm fine tuning the swf/ fla to clean it up. Reduced some picture sizes and deleted unused files and reduced the swf from 4000 KB to 350 KB Rah Rah Gene. replaced the swf in Dreamweaver and re-uploaded with Filezilla. Rah ah Filezilla.
Everything working great and my preload went from 23 seconds to less than 3. So I'm real happy except for one small issue. Firefox and IE both do this. If I hit the refresh button, it stalls on "loading 0%" once again just like it did locally.
If I hit the refresh several times it WILL refresh randomly....2 times refresh......10 times refresh etc.
[URL]
Spoke to my hosting company who said everything seems fine on the server. BTW he said Chrome did NOT have this issue Rah Rah Chrome.
View 1 Replies
Oct 27, 2010
Does anyone have any knowledge (preferably with links to make it official) about how/if Flash/Flex culls objects not in view, to stop them getting drawn when not needed? A specific cases: I have an 800x600 panel (a Canvas or Sprite, or other container) containing loads of Sprites representing individual game objects like asteroids or spaceships or missiles or map-tiles. The game world might be 5000x5000 so can I naively position Sprites anywhere in this range and let Flash cull them effectively? Or do I need to manage visibility somehow at a higher level (like manually removing them from the parent) to avoid performance issues?
View 1 Replies
Sep 2, 2009
[URL]
Once in a while it doesn't load the first time through on certain machines. Because of this the client has asked me to add a button to the site much like here...
[URL]
The only problem with this is I need this button to "hide" once the site DOES load.
View 1 Replies
Oct 26, 2011
I am working on adding functionality to where the URL takes in a parameter as defined by an MVC style looking way.eg. (URL... )where 12345 is the corresponding Id number that I want to get.I have this functionality working.I am using Internet Explorer 7.My issue is that when a user attempts to enter a new query string id into the URL, the page doesn't refresh when the user hits enter or the refresh button. (The user can navigate to the url/#/Id/12345 only when opening a new window/tab)Does anyone know if this is a feature that doesn't work in Flex or if there is some code or configuration needed to allow this?
View 1 Replies
Apr 11, 2010
I have HTML + CSS text. I need some lib with simple function like "Render String Var conteining HTML" So no external files (like in flash lib called HTMLwraper you just have to play your SWF on top of HTML). dinamic! I give it string it renders It into some conteiner (not as a bitmab but as if it was real HTML dynamically rendered in flash). (And I need real HTML + CSS support not what normal rich text block gives us)I am going to use it in with Flex (Flash Builder) so I like MXML component model but even pure flash AS3 will workout.It should be Free and Opensource (any license like GPL, LGPL etc will be ok).So Is out there such flashflex library for HTML + CSS dynamic rendering (rfom given String or XML)?
View 1 Replies
Sep 15, 2009
I have TIFF images in the database, and I need to render them in Flex.
View 1 Replies
Nov 11, 2009
My Flex chart has code that creates a legend from each data series. Currently, I have the drawLegend function execute when a button is clicked.
I am trying to get the legend to draw automatically but I am having trouble determining when to call the drawLegend function. Users click on an 'Update' button which retrieves data. I want the legend to get created after this, without the users having to click on another button.
I have put my drawLegend function in several places (ResultHandler, afterEffectEnd(for chart animation, etc.) and nothing works.
Sometime after the series has been added to the chart and after the series animation ends, the legend can be added.
How can I trap this point in time and call my function?
Below is the code I used to create the legend. Note that even though the code processes each series, I noticed that the Fill color is null if it is called too early.
private function drawLegend(event:Event):void {
clearLegend();
// Use a counter for the series.
[Code]....
View 1 Replies
Mar 2, 2011
I have created a custom ComboCheck which extends the spark DropDownList that is a DropDownList of checkboxes. Inside of my itemRenderer I have the code:
[Bindable]override public function set data (value:Object):void {
if (value!=null) {
_data = value;
[Code].....
This will also not cause the dropdownlist to reset to scrollPosition 0
View 3 Replies
Apr 12, 2011
I know this question was asked before, but none of the solutions work properly. How do I render a basic html in flex 4 without an iframe? I saw textarea renders some weird format that would suffice if it would work. For example I wan't to add an image like this
[Code]...
then 1. I press enter 2. I add the image again like above, I get the img tag inserted 10 times or so; which is weird (but not funny at all). All things being equal, html is a much normal approach, is there a basic renderer for flex 4 that works ok?
View 1 Replies
Mar 16, 2007
How do I render a basic html in flex 4 without an iframe? I saw textarea renders some weird format that would suffice if it would work.For example I wan't to add an image like this
text_area.htmlText += "<img src='...' />";
then 1. I press enter 2. I add the image again like above, I get the img tag inserted 10 times or so; which is weird (but not funny at all). All things being equal, html is a much normal approach, is there a basic renderer for flex 4 that works ok?
View 3 Replies
Jul 14, 2009
Coming from a pure programming background where I have a render() and which image is drawn over which, is based on in the order of the drawn function of the image being called.
But after trying out Flex, I notice that Flex allows images to be created & drawn in the MXML file using the <image> tag and that I can also create and draw images in a AS class file link to that MXML file.
But it seems like any images created in the MXML file are drawn over the images created and drawn in my AS class file.
Is there a way to specify the draw order of the images?
View 3 Replies
Jul 29, 2009
I have a custom ActionScript component that I'm using in a Flex application (Flex 3.3, ActionScript 3). This component contains an Image control whose visibility is set dynamically based on a property of the data element provided to the component. The problem is that even when I set the image to be visible, it will not render onscreen. Is there something specific I need to do in order for the image to render? Snippets of relevant code below:
override public function set data( value:Object ):void {
_data = value;
if( _data ) {
if( _myImg ) {
_myImg.source = someImageClass;
[Code] .....
View 2 Replies
Oct 4, 2009
When I try to access the hidden TABs of my tab navigator control in action script, it returns a null error. But it works OK if I just activate the control in the user interface once. Obviously the control is not created until I use it. How do I make all the tabs automatically created by default ?
View 2 Replies
Feb 10, 2011
What's the call analogous to creationComplete that happens every time a component is rendered? I want to rerun a function every time the component gets rendered (it has to make an HTTP request, but the url it calls changes each time) and I can't figure out how to do it.
For context:
<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%"
[Code].....
View 3 Replies
Jan 13, 2012
I want to change a list's item render with code like this: booklist.itemRenderer = BookItemRender; BookItemRender is a subclass of s:ItemRenderer. It report error: 1067: Implicit coercion of a value of type Class to an unrelated type How to correctly specify a itemRender in code?
View 1 Replies
Aug 21, 2009
What is the best way to render to a UIComponent which hasn't been added to the stage? (I'm using UIComponents as renderers for objects, and want to render new copies for image export, filtering, etc.) Two strategies I've seen/used so far include realizing the component to ensure it calls all the lifecycle methods: Add the component to Application.application, render with BitmapData.draw(), remove component. This is similar to what I've seen done for printing unrealized components as well. Add the component to a pop up window, render with BitmapData.draw(), dismiss popup after rendering complete. I believe both of these just rely on the UI not refreshing while the current thread/event is executing, though (1) could also rely on the component being realized out of view.
View 3 Replies
Apr 9, 2010
1) With these technologies is it possible to create a simple web browser that can render websites?
2) Is it possible to run these technologies on the server side? I am guessing no as Flash requires a browser to run within?
View 2 Replies
Jul 7, 2010
I'm attempting to add an image to a datagrid item render dynamically in flex. Here is my DataGrid code The value of "str" in the getImagePath function is correct.
[Code]....
View 1 Replies
Nov 12, 2010
I want to make such effect: draggable semi-transparent object (let's call it 'plastic strip') over window with arbitrary objects. Plastic strip should be turbid, i.e. it blurs content under it (not blurred itself). What's the best way to do that with PixelBender shader on Flex?
View 1 Replies
Jul 27, 2011
i got an Arraycollection which holds other arrays in it.i want to display the data inside with an item render but cant manage to do this
here is example code to explain my question
<s:DataGroup dataProvider="{news}"
itemRenderer="components.displaynews">
and this is the item render
<s:Label text="{data.??/}"/>
now what i dont understand is what comes after data? in the array collection the data goes like this : myArrayCollection->[0]->firstname
so when im binding data to item render,how do i represent the [x] to get to the specific name that i want? this obviusly wont work
<s:Label text="{data.[0].name/}"/>
and one more thing is what is the lightest way to display data in a listgroup with simple item render (image and text)
private function convertFBEventData2TreeData(eventData:Object):Object
{
var children:ArrayCollection = new ArrayCollection();[code].....
i dont know what to add after data, i tried many things but nothing work :
View 1 Replies
Aug 30, 2010
I'm pretty sure my dynamic mxml layout must give me two scrollbars (horizontal and vertical) but it only shows vertical one.
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%" xmlns:local="*">
<fx:Script>
[Code] .....
View 2 Replies
Mar 30, 2011
I have a DataGrid where some number of the columns can have a labelFunction. The nature of the labelFunction result can change problematically(eg apply formatting,bypass formatting. How do I get the DataGrid to re-render the visible items so that the labelFunction will be run again to get the new data.I've tried the invalidateDisplayList, validateNow, and tried dispatching ResizeEvents on the DataGrid.
View 1 Replies
Aug 5, 2011
I am trying to get anytihng from my SQLite to render in Flex, and I can't figure out how to display any data, even text, in Flex. What am I doing wrong?
[Code]...
I've tried a number of different components, and I can't seem to get the data to bind properly (although this code finally doesn't have the dreaded "Data binding will not be able to detect assignments to... " message, or the other dreaded "Property undefined" message).
View 1 Replies
Jan 6, 2012
So updateDisplayList is for laying out, positioning and sizing a component's children. It seems a waste to me, however, to have all that code running every time a render is called, even if no changes have been made to the relevant properties or child properties.The way I get around this for performance's sake (working on mobile) is to set a flag inside of my overridden updateDisplayList that lets a big part of my own sizing/positioning code run only the first time.Is this a bad idea/ big mistake? I just can't see the benefit to letting it run every time otherwise if I don't expect anything that affects sizing/positioning to change.
View 1 Replies
Nov 3, 2009
I am using a Tab Navigator component in which there are three canvas components. When I click one of the canvas (or tab), a Pie Chart is displayed. Actually what happens is that on-click
1. the canvas sends an HTTPService whose url is set to a php file
2. That php file actually gets information from a database. Based on that information an xml file is created
3. Fusion Chart uses that xml file to display a pie chart
The database is being updated after some time. Is there any way the Pie Chart may get updated after every 3 minutes to reflect the modifications in the database? or
Can I send the particular HTTPService again and again after every 3 minutes 'in background'? or
Is there any good way to update the information in a particular canvas (or tab) of Tab Navigator?
View 3 Replies