ActionScript 2.0 :: [Flash MX/2004/8] Refreshing XML Data In IE7?
Apr 16, 2007
The questions I posted last week dealt with XML and localConnection. Basically I had 2 swfs on a page. The main swf has the ability to modify some XML data (via an ASP script and database.) The second swf includes content populated by some of that XML data. When the data is modified, the first swf sends a call to the second (via localConnection) to refresh that data. I had everything working perfectly Saturday afternoon until I tested it in IE7 (on Win XP Home.) Older versions of IE, Firefox and Safari all showed no problems, but when the data should have been modified nothing seemed to happen. Nothing updated, etc.
I was able to confirm in the database that the update was actually happening, just not appearing. At first I thought IE7 wasn't playing nice with localConnection, but I eventually determined that IE7 wasn't playing nice with XML since it would happen in swfs that didn't use localConnection at all. localConnection was running and acting as it should, but IE7 was caching the XML feed even though the only component ever making a call to the XML was the swf. The XML was getting cached in IE and IE wouldn't let go (the only way to see updated data was closing and reopening the browser,or going into 7's new browsing history to delete the cache.)
The work-around I used was to add a querystring variable to URL for the XML feed. Every time the swf looks for it, it uses getTime to add a number of milliseconds to the end of the string so IE thinks it's getting a new file:
Code:
currentDate = new Date();
currentTime = currentDate.getTime();[code]....
I've been testing it on and off since Saturday evening and it seems to work without issue.
View 2 Replies
Similar Posts:
Dec 18, 2003
is it possible to get data from mysql database and post it to a flash movie dynamically without refreshing browser?
View 6 Replies
Apr 21, 2010
I cannot seem to get a swf to get refreshed data from an external txt file on a localhost (I am using Xampp on a mac), whereas the very simple dynamic textboxes that I have load the data easily from my regular hard drive folder.
View 3 Replies
Feb 29, 2004
PHP Code:
<?
$dbHost= "localhost";
$dbUser= "sarin";
$dbPass="pingpong
$dbName= "sarin-_db";
$table = "calender";
[Code] .....
And I have a textfield with variable set to jor.. Which is the variable from the php file which holds data from the database. When I change text in the database it doesn't change in the swf unless I go to internet properties and empty the cache.... even when I hit refresh it doesn't update. How do I make it so each time u load the swf it refreshes data from the database?
View 7 Replies
Sep 30, 2009
I have a flash file that has frame 1, 2, 3. And below that is a Continuous Layer that has an OK button. (If I go to frame 1/2/3 the button is still there)This button calls a javascript
PHP Code:
on (release) {
getURL("javascript:command('check',1)","_self");
[code].....
View 2 Replies
Jan 21, 2011
I have a very simple panel for adding some data to MySQL db using php scripts. The main view of that panel is a list of the collected data and a button to add a row at the end of the current db records. Here's the work flow:
- I click the button to add a record
- Fill out the form
- Hit the submit button
- The record has been added to the db
- The form disapears and the list of the records is displayed again
The problem is: - The list with the records doesn't include just added record To solve that problem I came up with an idea to put all the elements within the MovieClip "list", and try to remove this MovieClip from memmory and redo whole script again. Submit button of the form has the code to trigger the php script adding the records and tells the timeline to gotoAndPlay(2) which the code you'll find below. Unfortunately, that seems to not working.
[Code]...
View 2 Replies
Sep 3, 2009
I'm creating a whole website with one .fla file. I'll attach the flash file to a html page in dreamweaver and that'll be that. But something has occured to me and that is if anyone presses the refresh button, the whole site will jump to the frame just after the preloader. Which would be fine under a normal circumstance if the main page were on that frame but in this website there is a movieclip on that frame which forms into the main page on the frame after.
So how do get it to refresh onto the main page?
View 0 Replies
Jan 4, 2010
i'm sending flash vars to php, but the .swf refresh when the fuction "send" is call.
fo exemple:
var myFlashVars:LoadVars = new LoadVars();
myFlashVars.cor="Blue";
myFlashVars.send("http://urlpage.php","_self");
when this happen, the page refresh and also the .swf
View 3 Replies
Dec 2, 2010
[URL]
Code:
import flash.events.ProgressEvent;
stop();
function update(e:ProgressEvent):void {
var percent:Number = Math.floor((e.bytesLoaded*100)/e.bytesTotal);
preloader_mc.preloaderBar_mc.scaleX = percent/100;
[Code] .....
View 3 Replies
Aug 7, 2009
[code]....
3.Image Viewer;When the image viewer is opened the image viewer window opens.When images are loaded into the viewer and captions are added they appear to work in Dreamweaver but they dont move in sequence when the buttons are clicked.In browsers the captions dont appear. If the window is closed and reopened all of the images have disappeared and just the image viewer returns.The response I got from an inquiry to Adobe was; The version of Dreamweaver has been discontinued and is no longer supported via phone or web cases. We only support versions CS3 andCS4 via telephone or web. have interoperability between these two programs?
View 1 Replies
Feb 6, 2010
converting flash 8 files to mx 2004? i have flash 8 files, but only have Flash mx2004 on my computer at home
View 1 Replies
Jun 30, 2009
I imported a panorama .jpg file (i.e., several overlapping landscape photos stitched together) onto the Flash MX 2004 stage, changed it to a symbol (graphic), and used Tween to simulate the panorama panning back and forth. The effect looks great when I click on the .swf file in Windows Explorer, but when I created a box on a PowerPoint 2000 slide and linked the .swf file to it, instead of the graphic, there is a red rectangle. The rectangle moves the way the graphic would, but you cannot see the photograph. By the way, I followed the steps at [URL] to link the .swf file to the PowerPoint slide.
View 1 Replies
Dec 28, 2009
is there any way to make splash screen [ means ist frame should stay sometimes and should jump to another frame] in flash mx 2004.
View 1 Replies
May 7, 2005
i have some problems in integrating with my own flash. 1st of all.. let me define the key things
1st step.. the flash will detect the xml. 2nd, it detect whether if it has people on air on the studio or not refer to the time. 3rd, if its between the [timeid] range ( 0-7) it has a slot but either has a dj or not, if the timeid = 8 , no slot and no deejays here is my core part of problem..
the flash will show the slot language pics background = MC ( session ), the slot name = dynamic text area ( slonem ), and who's the deejays = dynamic text area (djnem), of the current time, if there's no one on air or no slot , the pics background = MC ( session ) will show music only.
i'll include also my xml file and my dummy file for this thing.. also iincluded is the original schedule that working properly.. the original schedule and the dummy is basically different just they read from same xml file..
i just learn xml just a few months back then also with action script with help from my roomate [URL]..
View 1 Replies
Nov 4, 2003
I'm a former Flash 3 user that's desperately trying to get back into Flash with MX (not 2004) and need some assistance.I have been working through some 3D/perspective tutorials lately and have gotten stuck at trying to modify one of Senocular's great open source files from a tutorial covering Shape Movement vs. Camera Movement.
In the field of stars example at the bottom of this page, there is a scaling/easing/perspective effect that I am attempting to get a grip on.I moderately understand all the code that was provided in the "PullThroughSpace" FLA, but I need to modify it to do the following, which is where I get stuck:
1. Instead of duplicating the "stars" MC a set number of times, I wish to have five (just an example number) individual movie clips appear.
2. As opposed to random placement of these clips a la "PullThroughSpace", I wish to be able to define the spots myself.
3. Also NOT having them repeat when brought out of view. Similar to sofake, but with the addition of perspective. Also refer to bit-101's April 24, 2003 experiment.
4. Have buttons that, on release, will take you to a specific movie clip in this virtual field instead of having to click on the clip itself. Again... somewhat similar to the sofake design.
View 4 Replies
May 7, 2005
i have some problems in integrating with my own flash.1st of all.. let me define the key things
1st step.. the flash will detect the xml
2nd, it detect whether if it has people on air on the studio or not refer to the time.
3rd, if its between the [timeid] range ( 0-7) it has a slot but either has a dj or not, if the timeid = 8 , no slot and no deejays
the flash will show the slot language pics background = MC ( session ), the slot name = dynamic text area ( slonem ), and who's the deejays = dynamic text area (djnem), of the current time,if there's no one on air or no slot , the pics background = MC ( session ) will show music only.i'll include also my xml file and my dummy file for this thing.. also iincluded is the original schedule that working properly.. the original schedule and the dummy is basically different just they read from same xml file.i just learn xml just a few months back then also with action script with help from my roomate.
View 1 Replies
Feb 29, 2004
everything was going well with my form until I transfer the files (php + swf) to a Windows server...the thing is that now it doesn't work.
View 14 Replies
Feb 11, 2005
Is there any reason for this.why text scroll bar is not in flash mx 2004?
View 1 Replies
Apr 23, 2005
how to create a healthmeter in flash mx 2004?
View 5 Replies
Jul 12, 2005
I am creating a Flash program that consists of a "master" movie file that will call in individual chapters (*.swfs) as needed. I want to create a single (page) navigation structure that will reside in the master - yet allow the user to go to the next/previous screens in the movie currently being used. I have created the master movie and have placed an empty movie clip on one of the frames. From the main navigation, I have been successfully able to load the individual *.swfs into the empty movie clip when called from the menu using the following command: _root.emptymovieclipname.loadMovie("external.swf");
I have been unable to figure out the action script that will allow me to control the navigation within the external swf from the main timeline. Also - is it possible to determine the number of frames within each clip as they are called so I can turn on/off the fwd/back buttons when appropriate?
View 1 Replies
Aug 2, 2005
[URL] the tutorial above worked fine for the standard images kirupa used, all were 300x200 and faded into position perfectly, however if another picture is used that's the same size even, it won't load, nor will it load if the same images kirupa used are edited with the tiniest pixel changed. i know it's definitely not the hyperlinks in the .xml file.
View 1 Replies
Jun 8, 2006
Currently everything loads perfectly except for the thumbnails and I really cannot figure out why or how to make it work. All thumbnails are .jpg's so that's not the issue, I know it has to do something with the coding.
if (items[i].attributes.type == "article") {
// create variables for our elements
var article_title = items[i].firstChild; //
var thumb = items[i].childNodes[1]; // second child node
[code]....
View 1 Replies
Aug 16, 2006
how do you make a curved/slanted hitTest?
View 1 Replies
Dec 18, 2006
I have project with 4 layers 5 kayframes. There are any way to print the text and graphics that exist in one kayframe (I want to print each keyframe separately)?
View 3 Replies
Mar 21, 2007
i'm in trouble.first i used flash mx to make my game with action script. Now i am using flash MX2004. But action script that i had made in flash MX can't be played in flash MX2004. What should i do?
View 4 Replies
Jun 14, 2007
I have this xml document thats created via php that looks like this. (Note: sample of the xml not full.)
HTML Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<cms_item>
<product_item>
<product_id>1</product_id>
<product_name>chairs</product_name>
[Code] .....
This is created from a database and the xml is the a combination of the two data tables. Now I have created a class file which can read this xml data or any xml doc in that format of childNodes and what not and return the results as an array. Is it better to work straight from the xml object or from the array. And is there a better way of doing this so its a lean mean array creating machine?
View 1 Replies
Jul 14, 2008
I have been able to customize the adding thumbnails tutorial to meet my needs but I have one remaining issue. I have gotten some suggestions from some people on here to try and help me fix this but I can not get it to work.I have tried on my own and I am unable to get it to work. The thumbnails are loading in reverse order from they way they are listed in the XML file or when I simulate download the thumbs load randomly. Is there a way to force them to load in the order they are listed in the XML file?[code]
View 6 Replies
Feb 29, 2004
everything was going well with my form until I transfer the files (php + swf) to a Windows server...the thing is that now it doesn't work..
View 14 Replies
Feb 11, 2005
why text scroll bar is not in flash mx 2004?
View 1 Replies
Apr 23, 2005
how to create a healthmeter in flash mx 2004?
View 5 Replies