ActionScript 2.0 :: JPEG File Verification Using LoadVar
Nov 7, 2004
I'm building an array of JPEG files from an XML file. I need a way to verify that the file exists on the server as it build the array. If it's not there I want to substitute another file name in it's place: default.jpg. Using loadVars I came up with this code.... which won't work:
[Code]...
I posted this on the FLASH forum but the only answer I got was that it can't be done and I should use a server-side script. Flash should be able to tell if a load failed or not..yes.
View 6 Replies
Similar Posts:
Aug 6, 2004
when i try to loadVar from a php file, it works on my flash program loading off from my site not locally.. but when i upload it and test it fails in loading..
View 4 Replies
May 24, 2011
I have two servers running FMS 4 (exacyly the same version). On one server, when i add a swf in the folder application/vod/SWFs, the swf is "added" 5 minutes later as authorized swf, according to the UpdateInterval config value. On the other i have to restart the server. I checked every config file of both server, they are exactly the same (except few values depending on the servers themselves, of course, like IP, host, etc...).Anyone has an idea on what could be the problem on the first server? This is very annoying since a restart disconnects all my customers!
View 4 Replies
Apr 18, 2011
I'm trying to find out if it's possible to use a .ICO file instead of a .PNG or .JPEG file in my Flash project. Is this even possible? The reason I'm asking is that the project I'm putting together uses ActionScript 2.0 code (not sure if that makes a difference or not) and displays a bunch of images for a bunch of different applications. So instead of creating a .PNG file for each application, since I've already got .ICO files on hand, I'd rather use those (saving me a ton of time).
View 4 Replies
Apr 26, 2010
there is some simple way I can capture a screen shot to a jpeg or something similar when running an exe/swf on full screen?Basically I have a car configurator, and at the end I want to capture the final choice of colour/ wheels/ background and maybe name of person to a file.....
View 2 Replies
Mar 26, 2007
I am building an application in flash that speaks to a database using PHP. I know you can remove rows from a database in PHP using a DELETE in the SQL statement. Does anyone know how to delete a file like a jpeg?, I would press a button in flash it would then call some PHP script, does anyone know the PHP to remove a file?
View 1 Replies
Jul 2, 2008
how to reduce the file size of JPEGs without compromising the quality. I have a flash ad that has3 screens with photos, but clients needs the .swf file to be under20K. I can only get it down to 28K.I've done the following: * cropped photo down to actual size* used "Save for Web" function in Photoshop
View 2 Replies
May 15, 2009
I'm making a presentation in flash. I want users to be able to click on a button and download a jpeg file.
View 1 Replies
May 9, 2011
way to set the quality of a loaded jpeg the way we're able to set the quality on library item? It's pretty neat to be able to set the smoothing, is there a similar way to set quality?? Is there an approach anyone would recommend for dynamically setting the quality on a loaded image?
var loader:Loader = new Loader();
loader.load(new URLRequest("myImage.jpg"));
addChild(loader);
[Code].....
View 2 Replies
Oct 16, 2003
How to call an external jpeg file in a thumbnail and on click event showing the same image with greater dimension along with the text file
View 11 Replies
Jun 26, 2009
I have a aspx login page with C# to let member login with username and password. After login, it gets memberId and a sessionID.How does the aspx page or C# code pass those 2 variables to flash client? In AS3, how does it get those 2 variables?
View 2 Replies
Nov 15, 2004
I want to change the url of the buttons of my swf movie using an external documment like txt or xml. Everybody says : use loadVars.
View 12 Replies
Nov 15, 2004
Maybe this is simple but I have troubles trying to do it. I want to change the url of the buttons of my swf movie using an external documment like txt or xml. Everybody says : use loadVars. How?
View 12 Replies
Jun 27, 2008
I'm trying to load images from [URL] but there are strange errors These 2 urls are giving errors...
[Code]....
is this because I can't read from that server ?? I can open the images in the browser...
View 9 Replies
Jul 1, 2004
I add this actionscript code on the first frame. Variables are loaded but . The question is below the code.
var myArray1=new Array()
var myArray2=new Array()
var myArray3=new Array()
function showContent() {
[Code]...
View 2 Replies
Feb 20, 2003
how to get loadVar to read special characters like � and � when using it to read from a textfile??
View 5 Replies
Sep 5, 2005
i have a swf that is a email form. it works great if you just load this swf on to the server. but i have another swf that loads the email form swf into it. all of it shows up and seems to function except that it doesnt actually send the email. im guessing the problem is that the code on the send button isnt working with the new pathway. I cant figure out the path. heres the code that works in the email form
[Code]...
View 3 Replies
Dec 11, 2007
I want to use loadvars.send but I would rather it didn't open the target page in a new tab, but to act like a normal page would...
View 1 Replies
May 10, 2010
I am new to Flash CS5 and I have created a slide show. I am trying to reduce the .swf file size for faster loading. I have been trying to adjust the size using the jpeg quality slider, but it doesn't seem to function whether I set it to 0 or 100 or anywhere in between. Publishing always generates the same size swf file.
View 3 Replies
Sep 6, 2008
create an age verification page but I don't really have the AS knowledge to finish it up.
Problems:
I don't know how to link the text to the appropriate website when they are verified. EX: "You may enter" linking to the site. "You are not of age" linking to disney.com or something.
Also, when there are no digits entered, it verifies the user of age.
Age Verification page
Actionscript below.
package
{
import flash.display.MovieClip;
import flash.events.Event;
[Code]....
View 3 Replies
Jul 14, 2004
I'm creating a keypad which uses buttons to enter numbers into an input textfield.I can get the buttons to enter numbers into the field but can't figure out how it knows the code is correct.I've attached the fla to explain what I mean.Code used so far:
On button 1:
on (press)
{
[code].....
View 4 Replies
Mar 31, 2004
I am reading a file with certain user defined variables like &x=30&y=50&z=100
Lets the variable is caught in a function as argument myVar
now depending on the variable the user passes I need to fetch the value. ie if the user passes x i need to read the value of x. how the user has named his/her variables.
What i need to do it get the value of that variable by using loadVar.
this.myVar; As such it gives me undefined. There is text present in 'this' myVar represents 'x' I have tried eval(this.myVar) as well as this.eval(myVar) but in vain
View 5 Replies
Mar 31, 2004
I am reading a file with certain user defined variables like &x=30&y=50&z=100Lets the variable is caught in a function as argument myVarnow depending on the variable the user passes I need to fetch the value. ie if the user passes x i need to read the value of x.lso keep in mind i dont havehow the user has named his/her variables.What i need to do it get the value of that variable by using loadVar.this.myVar;As such it gives me undefined. There is text present in 'this' myVar represents 'x'I have tried eval(this.myVar) as well as this.eval(myVar) but in vain
View 5 Replies
Oct 17, 2011
Does anyone know how to allow fmscheck with swf verification enabled. I don't want to create an application just for fmscheck as I want to check my application (with swf verification enabled) is still up and working.
View 2 Replies
Dec 2, 2004
im just wondering for the best way to read variables of a .php page into flash
[Code]...
but that dident work either the real problem is, i guess that i need it to read in the variable array[0,0]=1 just like that and not use sumthingrather=(myVars.varname) because there will be a hell of alot of variables, and the variable ammounts will switch and i cant do a sumthingrather=(myVars.varname)
View 1 Replies
Sep 26, 2007
I'm trying to load som external text width loadVars. everything's working just fine with the example below, but i want to loop out da ****...
var loadText:LoadVars = new LoadVars();
loadText.onLoad = function(success) {
if (success) {[code].....
View 5 Replies
May 29, 2009
I want to implement Adobe Media Gallery (source available on Adobe's website) in a fully-flash website. I think the best way is to keep it as a seperate swf. I can get my parent movie (flash website) to "loadMovie(ADOBEmediaGallery.swf)" just fine, but what I would like to do is incorperate a LOGIN (username/password) into media-gallery.fla BEFORE it loads.
I can make the text boxes/button, etc, but I need a little help with the actionscript/PHP/mySQL. I've found some older tutorials on that, but I don't know how to make the ADOBEmediaGallery.fla WAIT for the Login Verification BEFORE loading...
View 4 Replies
Nov 29, 2009
is it possible to activate SWF verification also without streaming any video or audio? I'm just interested to use FMS to secure my flash application but I don't need to stream any media files.
View 1 Replies
Aug 9, 2010
Say I have a flash movie in an HTML page, I want to get the value of a tag in the HTML page (for example, google-site-verification content value). How could this be done?
<meta name="google-site-verification" content="12345678978564261321567498789" />
*UPDATE - I want to embed a flash template into an html web page, in this web page will be a meta tag with a UID. The UID will be referenced in an XML schema, which Flash loads the specifics of the UID to flash file. The web page name can be anything (index.html, index.php, contact.asp, etc).
View 1 Replies
Apr 11, 2011
I'm having a hard time getting my virtual pinpad to output to the input text field. In the zip there's a safe, in order to open the safe you must get the right combo...the issue I'm having is i don't even know where to start with the code. I want to be able to push one of the buttons and have it output to the text field...and if the combo is right which in this case is going to be "23012" i want it to go to and stop at frame 2...and if its wrong i want it to start over.
The green button should be the enter button. and i want the red button to be the clear all button.
[Code]...
View 3 Replies