IDE :: Sending And Loading Gif Images Via Loadvars?
Jun 24, 2009
I'm trying to create a test taking application for a system that already exists. Currently everything is done in HTML, but they need to convert the app to flash to add tricky components. So for now, everything is in HTML format and everything is created dynamically using mod_perl and a mysql database.The problem really comes in when one of the test questions has an image included with it. The image is stored in the database and with HTML was just inserted into the <HEAD> tag in raw format. The image does not actually reside anywhere on the server , just in the database.
View 6 Replies
Similar Posts:
Sep 27, 2005
I'm am trying to send an email form, from flash to my web hosts cgi scipt (mailgate). I am unsure how to translate the html code given by the host to use in actionscript and where to put the hidden variables to make this work. My action script reads-
stop ();
function sendForm () {
my_lv = new LoadVars ();
[code].....
View 2 Replies
Feb 21, 2008
I was wondering if anyone had found out that there is a limit to how much information can be sent with LoadVars. I guess that limit could be the number of properties of the loadVars object, or size of the properties being sent.
View 2 Replies
Mar 20, 2009
I've got a small problem with loadvars. I want to send data from Flash to PHP, which usually works well. But right now I need to send "larger" amounts of data around 10-20kb and loadvars doesn't work anymore.
Using loadvars to open browser-windows seems to work fine, but I want everything to happen inside of flash.
The code is:
Code:
datastring = "1, 2, 3 (...) 4998, 4999, 5000"; // long text
loadstring = 'save.php?data='+datastring;
db = new LoadVars();
[Code].....
Works fine with small text, with big text nothing happens. How to do this the right way?
Edit: Loadvars seems to work up until 4050 characters, 4051 and it doesn't send anymore. But I can't really split the query..
View 1 Replies
Oct 20, 2009
I need to send a image to PHP (server) and get it in my mail. Sending using LoadVars.
Code:
import flash.display.BitmapData;
var bmd:BitmapData = new BitmapData(20,20,false,0x00ffff);
var output:String = bmd.getPixel(1,1).toString(16);
trace(output);
while (output.length<6){
output = "0"+output;
[Code] .....
View 2 Replies
Jan 19, 2004
I am using loadVars with the send method to send my contact info to a php file. This works fine but when I press the submit button the browser goes to the email.php file. How do i prevent it from opening that file in the browser window?
Heres the [AS]
lv = new LoadVars();
lv.name = name;
lv.company = company;
lv.phone = phone;
lv.email = email;
lv.message = message;
lv.send("email.php", "POST");
}
[/AS]
View 2 Replies
Nov 21, 2008
I was just wondering if it is important to include POST as a method of sending loadVars to the php file. i was using POST before and i still ecountered some problems of receiving empty mails. Since i found an example which do not use POST or REQUEST method i dont have anymore prob. I just wanted to get another opinion about that as i wanna start using server side script with flash and i know that ill be using the POST method.
View 2 Replies
Dec 29, 2006
There seems to be a problem with Firefox 2.x sending variables to PHP scripts with the LoadVars.send/POST method.
<br>
The same problem doesn't occur in IE or Opera. <br>See this url for example to try in both FF and IE/Opera: here. <br>The source files are here g.zelenka@iinet.net.au
View 4 Replies
Aug 12, 2011
I'm using loadVars to load a PHP URL with lots of sensitive information required for the Flash application.Only problem is that URL can be accessed via a web browser which raises security issues if someone gets a hold of this URL. Is it possible to have the PHP page only accessible via my Flash application?
View 3 Replies
Mar 15, 2010
How would i load multiple xml files in a LoadVars Object and return each values?
View 1 Replies
Apr 26, 2010
I'm working on a flash file that loads of a very very simple php file that returns the current timestamp from php (in a series of vars). I call it by usingwhen I have the script and the swf on the same server, it works fine. when the swf is on a different server and tries to load that file, it does not work.
View 0 Replies
Dec 17, 2004
I want to load headlines that are linked to URL(s) into my flash movie where the dynamic txt box (tickertxt) is here:
_root.scroll.scrollbox.tickertxt
I am working along with my programmer and he built php page that says:
num=1&url1=ticker.php%3Fid%3D1&headline1=Test
Here is my actionscript. I cannot get it work:
newsItems=new Array();
myVars = new LoadVars();
myVars.load("ticker.php?flash");
function () {
for (x=1; x<total;x++){
newsItems[x]=new Array();
[Code] .....
View 2 Replies
Feb 29, 2012
I'm trying to send an image via a socket in as3 between two AIR applications that I made. It works fine with small images, but with the bigger ones, it gives me this error: "Error #2044: Unhandled IOErrorEvent:.text=Error #2124: Loaded file is an unknown type.". It repeats it several times, so I thought that the image might be cut to smaller ones, is that right? And if it is right, how to restore it??
View 1 Replies
Apr 13, 2004
One of the moderators, could you've a look at this tutorial: [URL] it doesn't works with me, maybe because I've 2004 so if you change loadVars() into LoadVars() it should work
View 2 Replies
Dec 20, 2011
basically im making an image gallery this is what ive done so far imported all of my images that i wanted to use and converted them to movie clips ive put these movie clips in another movie clip which is masked with an instance name of master_mcthe images are placed on top of each other so it looks like a stack of photos what i want to do is when the user clicks the image on the top it should send it to the back of the stack of images and continue to do this for all photos
View 8 Replies
Aug 14, 2009
In my submit form I've got 5 images in UI components LOADERS. How to write the AS code to send the images to the server PHP.
This is my current AS code.
var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();
sender.onRelease = function () {
senderLoad.thename = thename.text;
[Code] .....
View 0 Replies
Sep 1, 2003
Whenever i try to display anything returned by LoadVars.getBytesLoaded or Load....Total, it gives me NaN.
View 14 Replies
Nov 16, 2008
I've created a drawing application intended as an interactive art piece for a gallery. I'd like to have what each visitor draws in one scene to somehow be carried over into the next scene and be displayed on clicking a button. Ideally, the user-drawn images will scale and position themselves accordingly to maximize the screen space. This way, if only three people have visited and drawn something, their three images would enlarge to fill the screen. If 12 people draw something, those 12 images would shrink to fill the space.
I'm thinking I might need to look at creating adaptable/expandable grids, but I'm also just stumped on how to carry user-drawn images over to other scenes. I have very little AS background and need things spelled out for me explicitly...
I'm working in CS3, but writing in AS2. On the stage, I have a palette of colours the user can choose from, a movieclip called "canvas," and another called "controller." Here's my code:
Attached to a movieclip called "Controller" is:
onClipEvent (load) {
topDog = "window1";
_root.createEmptyMovieClip("holder",100);
[Code]....
View 2 Replies
Jun 7, 2005
I sorta asked about this in the Server-side section, but I guess the question is really more AS related....How can I send variables from a swf to a cfm page that the swf is embedded in WITHOUT having to reload the page.
I tried the LoadVars() Object, it send() variables fine but the page reloads, and it loops so I get a million windows opening...what do I do? I need to be able to communicate back and forth with the cfm files...
View 1 Replies
Apr 15, 2004
...has got to be the most confusing and difficult thing to do in Flash. I've made this racing game, gone through all hell to get it working, and I'm nearly completely done with it, nearly. Now, heres the deal, I want to send and load best racing times off to .txt file.It sounds simple don't it. When the .fla loads, a function goes and grabs variable from the file, When the race is over, the function sends stuff back to the .txt. I simply can't get it working, I've tried so many versions of the code but it still doesn't work. Heres an example
Code:
function loadVariables() {
loader = new LoadVars();
[code].....
View 1 Replies
Dec 9, 2005
Explaination: MX 04' Pro Thumbnail Nav. loading images with XML Loader resizes and displays images when users click on Nav. reading XML Problem: Users click Thumbnail Nav. first image gets loaded and loader resizes to image. However the next choice by user on thumbnail click, the second image doesnt get resized in the loader. It goes beyond holder. Here is my code for Thumbnail and Loader:
[Code]....
Now the first image loads fine and the loader sizes to file from XML. However, when users click second choice from Thumbail the loader doesnt resize to new image size. It only gets resized on the first selction or if users click the next or prev. buttons then the images fade correctly but nothing fades back in. Now if they do hit next or prev and then hit a thumbnail option it loads and resizes.
View 1 Replies
Jan 26, 2009
im loading multiple images but how do I make sure the program will start once all images have dispatched a complete event. like make a universal loader for all the other "small loaders" if you understand.
View 1 Replies
Oct 20, 2009
I need to load dynamically a few images (4-6) so that by clicking on particular image user would invoke particular action. Embedding images solves the problem but at the expense of file size. If I load them dynamically, they lose their ID.
<comps:ExercisesScroller id="scroller" x="300" y="100"
ex1="@Embed(source='assets/Exerc_1.png')"
ex2="@Embed(source='assets/Exerc_2.png')"/>
and so forth this works. But instantiated in CDATA it does not work:
import components.ExercisesSCroller;
private var custScroller:ExercisesScroller;
private function init():void {
[Code].....
View 1 Replies
Feb 19, 2012
I have typical situation where big loop is loading lots of images and its done asynchronous which make browser to frees during loading and I want to make it synchronous but having big trouble doing it. I found this class synchronous loader and it work great but you cant add mouse event listener to loader. Here is sample code:
[Code]...
View 2 Replies
Apr 1, 2010
I want to have an AS3 app load images from url supplied by the user. But I don't want a malicious user to be able to load an SWF file in place of the image, such as with an altered extension "maliciousSwf.png". Well, not sure how big a security threat that is above and beyond the ability of the hacker to decompile swf, but I think that ideally such behavior should not be allowed.
So, is there any way to prevent this? When people allow users to load images in their Flash apps, do they somehow guard against loading of SWF? Or is this really absolutely no big deal?
View 1 Replies
Nov 15, 2010
How would you defer loading of other graphics on the page until after the images in a Flash gallery's images.xml file are finished loading?Is there any way to detect for this, or would I only be able to check if the flash swf object is finished loading? I'm pretty sure the swf object would be loaded/ready as with document.getElementById('flashobject').onload = function(){}; before the corresponding images have loaded though, instead of after.
View 1 Replies
Mar 23, 2011
I am loading images of different size and then images are scaled and border is drawn for each image as shown in below link,[URL]... I want that border of images to be of the same width and height and for that I need to find out the max width and height size image before loading all the images. Is there any way that I can know the width and height of an image before loading it completely?
View 1 Replies
Oct 30, 2009
I am trying to import some images into flash using an XML file. My XML file seems to load fine, and my code seems to find the URL of the images to load. However when I actually try to load the images into my Loader nothing. This is my code that is relevant:
-----------------
public var xml:XML;
public var xmlList:XMLList;
public var imageLoader:Loader;
[Code].....
So as you can see my xml file is loading, my URLRequest seems to be finding the image path and filename (the paths are correct and those files are located there) however my imageLoader doesnt seem to actually load them .
View 2 Replies
Jan 28, 2011
I have an fla which is loading images from an XML, then the images start scrolling , but when it arrives at the last images, I want it to loop back from th first images, like a never ending scrolling..
below is my code :
Code:
import gs.*;
import mx.transitions.Tween;
import mx.transitions.easing.*;
import flash.display.BitmapData;
[Code]...
View 2 Replies
Oct 21, 2009
I have a flash site, which uses XML to load an image gallery, but it cant find the images on the server even though they are there. It works fine locally.In firebug, each image is listed in the net tab as found, but when you click on it, there is an error message..Plus an error page is listed for each of the images.If you click on one of the other button's in the gallery strip on the site, it tries to find Freeola's (my host) 'crossdomain.xml' file which doesn't seen to be there, could this be a cause?
View 1 Replies