IDE :: Embedded XML In .as File - Not Caching?
Jan 28, 2009I am using e4x/as3 - Embedded XML in .as file - not caching?
View 5 RepliesI am using e4x/as3 - Embedded XML in .as file - not caching?
View 5 RepliesI have updated the crossdomain.xml security settings for my site - but it seems that the older version is being cached in both IE and Chrome.I've checked the headers sent by the server and it's not sending any cache control headers that would be forcing the browsers to be caching crossdomain.xml.
In an attempt to get around the issue I've also linked to my crossdomain.xml file in an iframe on the site. This hasn't worked though and flash still seems to be using the old security settings.
I'm trying to turn caching off so when I reload the text file, it always gets a fresh copy. I keep getting compiler errors however with the useCache line. I'm not accessing the properties correctly or something. When I take out that line it works fine but always fetches the cached file.
My code is:
loadDoctorVariables();
function loadDoctorVariables() {
var requestJo:URLRequest = new URLRequest("
http://www.grxsolutions.com/gtslideshow3/"+doctorURL+".txt");
[Code]....
I made a Flash-based "news section" for my website. This file uses a text field (with render-as HTML) and an instance name of dynamicText. The actionscript fills this text field with content from a TXT file called homeNews.txt.Everything works great, except if I make additions to the TXT file and re-upload to the server, the Flash file still calls an old version of the TXT file from my cache. This even happens after emptying the cache. This is a huge problem if I need to add daily updates. This problem only occurs on the server and not when testing locally.
Here is the code I put in my Flash file:
Code:
Ext_text = new LoadVars();
Ext_text.onLoad = addText;
Ext_text.load("homeNews.txt","POST");
[code]....
I made a gallery with an XML file but the problem is that after viewing it on the web and modifying the XML I don't see any difference...it's like I never even modified it...I'm guessing it's because the browser reads the XML file from the cache...how can I make the flash movie read the XML from the web every time it loads?
View 4 RepliesI have this PHP page that lists several people. When someone clicks on one of the people they are sent to another PHP page that has their video greeting in a .swf embedded into the page. This works by the php writing the path to the greeting video to the xml file that the .swf loads and plays.
Well in firefox it works perfect, but in IE when they try to click on another greeting the original greeting still plays. Its like the swf is caching the first greeting and refresh of the page does nothing to alleviate this. Is this a problem with the swf caching? or XML caching? or am I totally clueless?
[Code]...
loadVariablesNum("testimonials.txt", 0);
gotoAndPlay("load");
This code works perfect when testing, and it works perfect viewing the SWF, but when you view the HTML file with the SWF embedded, it doesn't display the text file content.
The navigation on a website I am designing is an swf file embedded inside another swf file, the latter being the body of the site. The navigation buttons are themselves embedded inside movie clips inside the embedded swf file...
I'm sure I'm missing some sort of line of programming, however my actionscript skills are rudimentary at best. I have assigned a simple goto webpage behavior on each of the buttons. However, when I look at the site all put together, they do not work.
can i embedded two class file into main.fla file?
View 0 RepliesIs it possible to let's say, have a button in an swf file that affects another embedded swf file?
View 2 RepliesIs it possible to let's say, have a button in an swf file that affects another embedded swf file?
View 2 RepliesIf I use a wierd or obscure font in my flash project, then I dont have to worry about the user having the same font installed, because it gets embedded in the SWF, correct? Or does it depend on something? If so, what?
Also, what about fonts getting embedded in the FLA file? If I use a wierd or obscure font in a flash project I'm working on, and then I pass off the FLA to a friend to finish the project, does he need the font installed? Or is it in the FLA file already? how this stuff worked but I sent the FLA to a friend and now hes asking for the font. I was sure it would be embedded.what is a good way to test that the fonts get embedded in the SWF? Do I have to uninstall the font inquestion and view the SWF and see if its still using the font?
I have embedded an automatic slideshow as a swf file into a website I'm designing for my parents. When I test the swf file, it performs exactly as expected but when I embed it into the html, it just sits there and doesn't run/animate/whatever.
The slideshow (should) automatically run through a group of 7 photos, with a fade transition and was all done with actionscript, loading the external jpeg files into alternate movieclip containers etc etc.
The web page where it doesn't work is here: [URL] - you can see that the swf just sits there, doing absolutely nothing.
The location of the swf file is: [URL] - as you can see, it works fine on its own!!
Basically I have an embedded SWF file inside another which has a scroll bar (AS2 component). The whole project was created using Flash CS4 in AS2. Sometimes when the page is accessed the scroll bar is gone and the content of the embedded SWF extends outside of it's fixed sized container. I have not been successful in determining the cause but it seems to happen more frequently on a client's PC which is lacking in the performance department. I am wondering if it is a loading issue, where maybe the embedded file is loading faster than it's container. [URL]
View 6 RepliesI have a swf file, how can i embeded in website which code is used.
View 24 RepliesI am making sure that my site displays properly on different screen resolutions. Everything is fine except the flash; it is located in the perfect position in 1024 wide resolution but not for wider screens. How can I get it to show in the same place?[code]
View 1 RepliesI've been sent a FLA with some voice overs in and need to edit a few words out. The original MP3 files are not available so how I can edit the voice overs in flash without the original mp3 files?
View 5 RepliesI used dreamweaver to insert a swf file into an HTML page. That page and the embedded swf file works fine locally on my computer.
After the HTML page and the swf file have been uploaded to my web server, the swf no longer loads on the HTML page. Both files are in the same folder, just like they were locally.
Code:
<body>
<div align="center">
<script type="text/javascript">
[Code]....
how to disable the 'hotspot' attribute of an embedded swf file?
I would like the following swf to be non-clickable (just left mouse button)
[URL]
As you can see, when you click on the slideshow, it stops and turns to a white block.
There must be a way to print from the File menu of a browser and get the embedded swf file to print in place in the html page.
View 3 Repliesi have a embedded video that is inside a movieclip when i press a button i want the movieclip with the movie inside to appear and when it finished playing i want it to exit.is there an easy way to do this?
View 1 RepliesI have made a html file in which a swf is embedded with swf object. this swf contain dynamically loaded audio files. It works fine in offline but when it is uploaded it does not show the movie(swf is not playing) I see only empty space. i thought that it may take time to load, but even after waiting for long time the swf did not play and it shows blank white space.
[Code].....
I have a Flash site that has two separate areas of navigation: "root.swf" is the main file and by default loads "welcome.swf". If you click on one of three other links in "root", it takes you to one of those three pages.
I need to have various .flv files play individually on command from the timeline (when separate buttons are clicked), but I need those to load externally but appear as though they are a part of "welcome.swf". [code]...
I have CS3.I encode my video with the Encoder, then I import it into Flash. From there, I cannot figure out how to make the embedded flv file to loop.
View 5 RepliesI'm using InDesign to create an interactive SWF of a document.
For normal Flash projects, I can create an executable (*.exe) file that includes the Flash codec so that the viewer doesn't need to install Flash beforehand.
Can I create something similar for the SWF file created by InDesign?
I'm using CS5 Design Premium. Intermediate knowledge in InDesign, basic in Flash, will likely need clear steps.
[Embed(source="data/fire.swf")] static public var movieFire:Class;
I have some multiframe swf file and I want to have control of them. For example, I can use gotoandplay and gotoandstop functionality.
I tried something like: var m:MovieClip = new movieFire() as MovieClip; but it turns out when I tried to get totalFrames, m.totalFrames, it gives me zero, and gotoand* functions don't work either. How can I correctly control the swf file embedded in actionsript 3.0 (No Flex component)?
I want to make it so that when I click anywhere on the embedded Flash element, it takes me to a destination URL.
Here is my current code, which does not produce the desired effect:
<div class="contentdiv" style="margin:-72px 0 10px 0px; cursor:pointer;" onclick="location.href='http://example.com/';">
<object height="410" width="720">
[Code]....
Right now it is making the space behind the .swf file clickable for the link, but the Flash element is not clickable.
If the right thing to do is to edit the .swf file somehow, I don't consider myself a Flash developer, but are there any resources on where to get started or how to do something this basic with an existing .swf file?
have a swf file which content a FlvPlayback play to play targeted video. It is working OK when I run published HTML file from flash professional CS5. but when I embedded this flash to asp.net content page using object tag the move will pay but the video controls play and stop with disappear. I listed down the code I sued.
[Code]...
I created a tile map editor for my game and it will generate a file when the user is done with the design. The file will store the assets used and other information.this is the code on how i generate the file
var ba:ByteArray = new ByteArray();
var masterData:Object = { map:Data.instance.mapLayerArr,
asset:assetCollection,
[code].....
I have a Flash file in which I want to embed a font, but the licence terms for that font mean I can only embed it in a file if that file is security protected to be non-editable. Assuming this means I need to take some sort of precautions to prevent the file being decompiled and the font extracted, is there any way of enforcing this?
Note: I don't care about the code itself being public, I just don't want the font file to be available.