ActionScript 2.0 :: Checking For New SWF's On A Server?
Jun 25, 2007
i made my site with levels so there are lots of swf's being updated, and i cant seem to get some of them to work. i think that my problem is that the swf's are being stored on the cache so when i update them, it doesnt reconize that its a new swf
is there a way to put in code to when someone goes to my site, to check their cache to see if there are any newer versions of the swf they have on my server?
and if it is possible, MAYBE making it so i dont have to put it on EVERY button (but if thats the only way fine i will live)
View 4 Replies
Similar Posts:
Apr 16, 2004
I am an intermediate actionscripter and I am attempting to make a flash picture gallery for my sister. I want to make it so that the flash movie looks in the image directory of her server and then gets the names of those folders and displays each one of them in a separate movie clip in the flash movie. Then if the user clicked on one of those generated movie clips, it would display the pictures in that corresponding folder on the server. How would I check the names of the folders in the images directory of the server?
View 1 Replies
Apr 16, 2004
I am an intermediate actionscripter and I am attempting to make a flash picture gallery for my sister. I want to make it so that the flash movie looks in the image directory of her server and then gets the names of those folders and displays each one of them in a separate movie clip in the flash movie. Then if the user clicked on one of those generated movie clips, it would display the pictures in that corresponding folder on the server.r?
View 1 Replies
Oct 15, 2004
got a swf called checkconnection.swf and basically this runs off and checks to see if it can get info from our online catalogue servers, however this swf is hosted at our IPS and our servers are here at our building on a different network with a different net address.When I run the program from the flash program it works fantastic. When I transfer my swf over to our ISP it fails. Can flash check an external source?So lets say, for example my flash file is hosted atnd my server is at can flash view, post and get things over a different domain? Is there a way to force flash to do this?
View 4 Replies
Oct 15, 2004
I've got a swf called checkconnection.swf and basically this runs off and checks to see if it can get info from our online catalogue servers, however this swf is hosted at our IPS and our servers are here at our building on a different network with a different net address. When I run the program from the flash program it works fantastic. When I transfer my swf over to our ISP it fails. Can flash check an external source? So lets say, for example my flash file is hosted at myISP.com and my server is at myServer.com can flash view, post and get things over a different domain? Is there a way to force flash to do this?
View 4 Replies
Jan 11, 2012
FMS has print error 'JavaScript runtime is out of memory', Is their any way to check the js runtime memory used for specific instance?
View 7 Replies
Dec 23, 2009
trying to automate the error checking process for a form before sending it to the server.
an array holds all the parameter names of the input text component (default GUI components shipped with flash).
trying to loop through the array: the following happens: var test2 traces out the correct x value of the input field var test1 traces out nothing.
so actionscript recognizes the input field but i can not read out the value of .text
[Code]....
View 0 Replies
May 26, 2009
I have a gallery loading jpegs from an xml file into a mc called mainPicArea, on frame 5. I have other content on frames 1,2,3,4,6,7.
I want to run an if statement to check whether mainPicAreaexists and if it does, then run a removeChild(mainPicArea), and if not do nothing.
[AS]
if (MovieClip.mainPicArea){
trace("exists");
//removeChild(mainPicArea);
[code]....
When I test, it comes back with the trace "doesent exist", even though it does exist.
View 5 Replies
Nov 13, 2009
The company I work for installed FMS on a server running Centos for a customer who needed streaming media capabilities. It worked fine for 3 months until today the customer called us and informed us that their client program can no longer connect to the streaming media server. No one has done anything to the server to cause this to happen. When attempting to access the admin console to diagnose the program, the streaming server returned a 500 Internal Server Error. So I tried another page. Same result. Reboots of both the hardware server and the FMS have changed nothing.
View 5 Replies
Apr 28, 2010
One server - is streaming server with Flash Media Interactive Server 3.5that host the application with asc files in FMS application directory.Second server - is the IIS web server that host thehtml,aspx,swf etc.. files.So basically i heve swf file on one server that have to connect to live streaming via rtmp on different server with different ip address.I did not find any clear explanation on this crossdomain rmtp issue.ys only HTTP can use crossdomain.xml policy filebut not rmtp.So what policy security procedure need to be done in order to enableswf file hosted on one server to connect and show rmtp live cam broadcasting from another server?
View 2 Replies
Sep 8, 2009
I must admit I have struggled with this thing for a bit. It seems simple but for whatever reason I can't get it to work. I just want to make something move in AS 3 right now, and so far I've tried puzzling together two different tutorials, but both of them are missing either some source files or further explanation.
Anyway, here is the code (The bit I am having problems with)
Code:
//event listener checks for key presses
stage.addEventListener(KeyboardEvent.KEY_DOWN, checkkey);
//Create keyHandler function
[Code].....
The problem is the checkkey function in the update function. If I leave the parenthesis empty it tells me it needs an argument, if I leave it like that it tells me I need a right paren before colon.
View 2 Replies
Jan 7, 2010
What kind of code would one need to check for collisions between two symbols? I am hoping to become a game designer so this is important for future references.
View 8 Replies
Feb 15, 2010
I have a gallery loading jpegs from an xml file into a mc called mainPicArea, on frame 5. I have other content on frames 1,2,3,4,6,7.I want to run an if statement to check whether mainPicAreaexists and if it does, then run a removeChild(mainPicArea), and if not do nothing.
code:
if (MovieClip.mainPicArea){
trace("exists");
//removeChild(mainPicArea);
[code]....
this is my code. When I test, it comes back with the trace "doesent exist", even though it does exist.
View 5 Replies
Oct 20, 2010
why this code works on my other flash file and it doesnt on the new one. This is the code:
if (test == "PRIZE1"){
trace ("prizes/prize1.jpg");
}
[Code].....
Basically it should check whther the variable has any of the above words loaded on it dynamically so that it loads a movie that corresponds to it. I put the trace on the above so I can track whther it was reading or not. Obviously it wasnt. My publish settings are Flash Player 8 with Actionscript 2.0
View 4 Replies
Jul 14, 2009
Google is ranking my site preety high BUT (bigBut) in MOST searches it lists my swf-s not html pages. So when clicked they are shown in a browser window as single swf-s, not as part of html page. I am trying to workaround this by means of some variable to inspect if swf is opened as standalone or within a html.Here is the problem. I've set up a swf (swf_01 for example) in html page that loads another swf (swf_02) which is in swf_s directory. Swf_01 establishes a variable _global.isActive = 1; when html loads swf_01. So if swf_02 is loaded into the swf_01 variable is TRUE and that is OK and if the swf_02 is loaded directly from search results as a standalone swf it's not OK. That works so far. In swf_02 there is a code that checkes if variable is undefined (meaning that swf is loaded directly from search results) and, if it is, loads the right html into "_self".Somehow it's not working. Maybe my code isn't right.
Code in swf_02 (loaded one):
/if(isActive==undefined){ loadMovie("http://www.mydomain.com/index_services.htm", "_self");} // meaning: if variable is not true > this swf is loaded into browser directly from search
[code]....
View 7 Replies
Aug 28, 2009
I want to know how to check whether a SWF is loaded or not.
View 10 Replies
Nov 22, 2011
I'm sure there is a very easy solution to my problem, but I haven't found it yet. My first frame consists of one input textfield, and two buttons. This textfield is sort of like entering a code to jump to another frame. "no" is a button if you don't have a code, and "go" is if you want to submit a code. Here is my Actionscript:
import flash.events.MouseEvent;
no.addEventListener(MouseEvent.CLICK, continueF);function continueF(e:MouseEvent):void{ nextFrame();
[code].....
View 7 Replies
Aug 25, 2009
I need to know if it's possible to check to see if a variable contains any information or if it's just blank basically I have a text file on the server that may or may not have a url in it, I have my flash file programmed to grab the url from that text file and apply it to a button that when clicked brings up that URL...but that text file may not always have a URL in it, so for those times i want the button to not be clickable, or at least not attempt to go to a URL.
[Code]....
View 1 Replies
Aug 28, 2009
how to check whether a SWF is loaded or not.
View 3 Replies
Feb 5, 2010
Each button has 3 different animations on the same timeline: one for when you mouseover, one for when you mouseout, and one for when you click. Each animation ends with a 'stop();" command, obviously. However, when someone mouses over, then out of a button quickly, it interrupts the "over" animation and begins the "out" one, which looks choppy and awful. I need a way that when I mouseover a movie clip, a variable within said clip changes to 0, and when I mouseout, it changes to 1.
The big problem comes with the fact that I have multiple buttons with listeners, all of which use the same generic function to respond to mouseover/mouseout events. Is there a way to set up a variable associated with each button, then call the specific variable within the generic function?
ActionScript Code:
button1.outcheck = 0;
button2.outcheck = 0;
button3.outcheck = 0;
[code]....
Is there a viable solution, or will I have to just rethink the entire animation?
View 3 Replies
Sep 4, 2006
I have two movieclips. I would like to check if both movieclips have been rollOvered and then do an action. You can't rollOver them at the same time. So, I need something like: if movieclip 1 has been rollOvered and movieclip 2 has been rollOvered (no matter what following order) , then do action.I tried this using booleans and an if statement but no luck.
View 1 Replies
Apr 15, 2007
I am trying to figure out how to check when the key "A - Z" is pressed...How can I use ASCII characters to check this?, or even if I check something like this
if(Key.isDown(Key("A")))
How to check when keys A-Z are pressed, preferably something like this
onKeyPress("A") = function() {
"run code"
}
Anyway to do this? Basically hotkeys, press "s" to call a line of function that will save the game.. etc...
View 3 Replies
May 15, 2009
I do math applications for the web. Often I have to check if a user input is correct. For example: the right answer is 3x+5. Is the user input that.I do this by checking character by character. I don't think that it is the best way, especially since the user may have written 5+3x, which is right, too, although it is preferred to write the other way around.I sometimes have to check more complicated expressions, like -3x^2+7x-15 or -2 sin (4x^2).Right now I'm doing an equation solving exercise. There I have to check what the user wants to do to the equation, like +2x or /(-5).
View 2 Replies
Feb 8, 2009
My page has 2 tab menus. When the page first loads, it defaults to the first tab, but when the second tab is hit, an image is loaded to the stage. I want to remove the image from the stage once the first tab is hit again.I keep getting the error "Access of undefined property Image1" but the whole point is to check if this child exists with the if statement.
//Tab 1
if (Image1 != undefined) {
stage.removeChild(Image1);
[code]....
View 3 Replies
Apr 10, 2009
I want to use an external actionscript file for a set of variables for a movie I'm working on.
However, as I cannot guarantee that the external file would be available (it's for our sales reps to use on their own laptops) is there a way of testing for the #included file?
My idea is that the integrated script looks for the external file: if it finds that file, it is used. If the external file is unavailable, the internal script defaults to its own variables.
View 3 Replies
Apr 21, 2009
The problem I've found that I keep having and that is pretty recurring between a few of my classes is that several classes use addEventListeners for complete events on loaders, tweens, etc. The question I have is, how do I catch those events in the event that the instantiated class object is removed from the swf file? Because the eventListener keeps listening, for some reason(I assume the object is removed from the stage but garbage collector doesn't get it right away).
My current, most prominent example is this:I have a photo album that utilizes php to import filepaths on the server. There are basically 2 stages: one screen where all the albums are displayed, and another screen where all the images for a given selected album are displayed.
The problem is that when you click one of the albums, it loads all the images from that album and THEN transitions to the viewing page. This is good because it doesn't load all the images from all the albums.
The problem is, it's possible for the user to click one album, and really quickly, before the "album" page fades out, click another album.
If I've managed to not twist your brain inside out with this poor explanation, you may see that the loader object for the previously clicked "album" button will still be loading the one of the previous images. So, when the complete event for the loader is fired, I get this:
Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type.
Which I assume, obviously, is 2 separate error events. I'm already using error catching that's working for another purpose, but I just can't catch these ones no matter where I put my catch statements. Any help?
Here's the code:
Code:
function clickHandler(event:MouseEvent):void
{
//////some stuff here
////////preps album images for display
[code]....
The first type error gets caught. It loops back through and works fine when you only click one button at a time, but otherwise it freaks out. I just don't know where to put the catch statement so that it just shuts up...
View 17 Replies
Jun 28, 2009
Is there a good way to check if a variable has been passed into my flash movie?For example lets say I have an app that looks up some data based on location. And I allow for it to be added to the HTML tags, In Flash how to I say set a default location in case of there not being one in the HTML tags?
View 4 Replies
Dec 2, 2009
I'm making a typing game that focuses on developing typing speed and accuracy. In part of this game, the user has to type a given word in a certain amount of time. If the user types the whole word within the time limit, the timer stops and it results in 100% accuracy for that word. However, if the user does not type the word within the time limit, I want to compare the typed word to the given word and find out how many errors they made.
I found this to be a lot more complicated that I had expected it to be. Fore example, if a letter was accidentally skipped or an extra letter was added, it will make all following characters seem wrong, even though the user only made one mistake.
How do I go about comparing the two strings?
View 3 Replies
Mar 7, 2010
I want to use Flash Cookies (=Shared Object). However I want to make sure that IN ANY CASE no adobe setting window opens, regardless of it's settings. In other words, if the User trusts my Cookies, good. If he doesn't, dont even bother him with that window, and dont ask to allow more disk-space. Just go on. Is there a way to test, if I can write minimal data (<10KB), without the User noticing, in order to only write data, if yes. Again, I want to avoid any window popping up asking for Disk-Space, EVEN if the settings say "Ask".
View 6 Replies
Oct 27, 2010
How can I check what a parent MovieClip's class is?I have a Terrain class that I only want to use a function when the parent movieclip is a specific class, so that the terrain object can be used by multiple classes, but only launch that specific function when the parent's class is "WorldBase". How can i detect this through the Terrain class?
View 1 Replies