ActionScript 2.0 :: Loading Images From PHP File
Apr 2, 2010
I am a self taught photographer and web designer, well I was taught html but that's it. I've been working on a site and I cannot get my images to load from a php file with actions script. Its part of my intro page and I want it to play images from a php file.
ActionScript Code:
function loadHomeSlidesXML() {
intro_xml = new LoadVars();
intro_xml.dir = "images";
intro_xml.type = "jpg";
intro_xml.sendAndLoad("files/fget_files.php", intro_xml, "POST");
intro_xml.onLoad = startHomeSlideshow;
[Code] .....
When I check it in flash I get an error
'file:///C|/Documents%20and%20Settings/Home/Desktop/mysites/photography/extra/undefined'" (Several times)
My fla/swf files are in the photography dir
My .php file is in the photography/files dir
And all my images and in the photography/images
View 1 Replies
Similar Posts:
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
May 23, 2010
I have used an as class which is pretty simple
Code:
package{
import flash.display.Sprite;
import flash.display.Loader;
import flash.net.URLRequest;
public class Thumbnail extends Sprite {
private var url:String;
[Code] .....
Relating to my four pictures. All of the names are correct, everything is correct, so not sure why I am getting this error. Even wierder is when I comment out 3 of the images in the xml file, and just try the one image, I get no error at all (The picture isn't displaying, but atleast I get no error).
View 4 Replies
Sep 22, 2009
I'm trying to have a swf file load when I click on a button. It loads the swf but no images appears, just a black box.
var Xpos:Number = 110;
var Ypos:Number = 180;
var swf:MovieClip;
var loader:Loader = new Loader();
[Code]...
View 3 Replies
Nov 17, 2010
I have built an image/video scroller in Flash 8. It loads images and flv files from an external xml file. It allows you to scroll through the images using a left and right button. The image in the middle is clickable, and when you click on it, it loads the cooresponding flv for that image and plays the flv. It all works great, except from time to time, the video control components become unactive - they are there, but do not work. Currently, I just have the playpause button. When this happens it becomes active again at the end of the video. It seems to happen more frequently in FF than in IE. If you contact me I can give you a link to a page where this is working.
Here is the main code:
import mx.video.FLVPlayback;
var picnums;
var my_format:TextFormat = new TextFormat();
my_format.font = "Arial";
my_format.size=14;
[Code] ......
View 0 Replies
Jan 24, 2005
How can I load jpg files into a flash archive? Do they necesarily be converted into swf files? Can I apply a mask on the flash file without changing the original image file?
View 3 Replies
Dec 12, 2006
I was wondering is there a way to load images at run time that are loaded from an external webhost. Basically i want to be able to store the addresses of the images into an array and then each slide is going to contain 1 image, which will load the next image in the array when the user clicks the next button.
I'm fine with getting the array setup etc, but need to know is it possible to use web addresses and load images at runtime?? Aswell as defining a size and position for where the image will appear.
I'm not sure if Flash 8 supports this loading on the fly so the speak?? Basically I will update the images when required by replacing them with the same name and address where the photos are being hosted, but the program will still load from the same address, therefore showing the updated images.
View 8 Replies
Jan 24, 2005
How can I load jpg files into a flash archive? Do they necesarily be converted into swf files? Can I apply a mask on the flash file without changing the original image file?
View 3 Replies
Jan 30, 2005
I need to dynamically load images from an XML file and I usually find badly written tutorials that I can't understand or I find a .fla but don't understand the code in it.
View 3 Replies
Mar 9, 2009
I'm new to XML and am having trouble figuring out the following:
1. Loading an image from XML into flash, then resizing the image with actionscript in flash
2. The correct way to load text and URL links from an XML file
View 3 Replies
Jun 11, 2011
I have a flash file that loads external images randomly onto the stage! That part works just fine. I have placed the code for loading images on the second frame of the flash file. What I want to do is to create a button on the second frame so when the users click on it the flash file will go back on the first frame. (Basically a Back Button). I did create a button and it will go back to the first frame once its clicked. However the image that loaded on the second frame will stay on the stage when the flash file's gone back to the first frame. I need to remove the image loaded on the second frame as well when it has gone back to the first frame!!
This is Actionscript Code:
stop();
var pHeight:Number = 346;
var pWidth:Number = 263;
var listLoader:URLLoader = new URLLoader( new URLRequest("filelist.xml") );
var picLoader:Loader = new Loader();
[Code] .....
View 1 Replies
Jan 22, 2010
I making a game leaderboard on facebook. I'm not using f-connect but working inside the canvas. When I try to load the images from facebook it gives me the following error:A policy file is required, but the checkPolicyFile flag was not set when this media was loaded.Here is my loader code
public var preLoader:Loader;
preLoader=new Loader();
**update**
[code].....
View 1 Replies
Apr 30, 2009
I have to load AI file in flash CS4 and provide the interaction with user.
View 3 Replies
Jan 22, 2010
I am making a game leaderboard on facebook. I'm not using f-connect but working inside the canvas. When I try to load the images from facebook it gives me the following error[code]....
View 1 Replies
Jun 3, 2011
I am trying to create the sample file for loading the video images with thumnail.But i don't know how to create thumnail for video file (using video component).give any tutorial and give some sample files.
View 1 Replies
Jan 21, 2010
I making a game leaderboard on facebook. I'm not using connect but working inside the canvas. When I try to load the images from facebook it gives me the following error.
SecurityError: Error #2122: Security sandbox violation: Loader.content: http://test cannot access http://profile.ak.fbcdn.net/v22941/254/15/q652310588_2173.jpg A policy file is required, but the checkPolicyFile flag was not set when this media was loaded.
[Code]...
View 3 Replies
Jan 22, 2010
I making a game leaderboard on facebook. I'm not using f-connect but working inside the canvas. When I try to load the images from facebook it gives me the following error:
SecurityError: Error #2122: Security sandbox violation: Loader.content: [URL] A policy file is required, but the checkPolicyFile flag was not set when this media was loaded.
Here is my loader code
public var preLoader:Loader;
preLoader=new Loader();
**update**
Security.loadPolicyFile('http://api.facebook.com/crossdomain.xml');
[code]....
something ( I have made sure the pictures are static and do not require a facebook login or anything , they are just user public profile pictures)
View 5 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
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
Nov 15, 2009
I am sending out a standalone player that uses an xml driven image gallery. I need to prevent changes to the xml file to stop images being added to the gallery. I can can password protect the xml file to prevent changes, but I also wondered if there was a way to validate the authenticity of the xml file from within Flash to prevent the entire file being replaced?
View 3 Replies
Jul 27, 2011
i have banner with 5 images fad in fade out effecti need to load images & test from external file " text file or xml file " with keeping fade effects on imagesall ways i know can't keep fading effect on images so
View 4 Replies
Jun 21, 2007
I'm building a flash movie for something at work and im loading in some images using an XML file but when i use a preloader it only preloads the XML file (as in just the text inside) and not the images.
This causes the movie to start playing without having the images loaded.Does anyone have any ideas about how i could get it to preload the contents/images being called in the XML file so it doesn't run as soon as the XML file is loaded.
View 1 Replies
Apr 6, 2012
When I put dreamweaver file in a zip file for viewing on another computer, images and format are not the same when viewing in dreaweaver.
View 1 Replies
Mar 12, 2010
Why doesn't this code go through the XML file in order? It should go through the XML file and display the images/comments as they are ordered in the XML file.
Code:
function loadXML(loaded) {
if (loaded) {[code].....
View 9 Replies
Sep 4, 2009
I have a "loader.swf" after which my "main.swf" loades. I have used a loaderPro v3 (AS2) component. Doing that was easy but then when it starts loading, even before the loading completes the main.swf starts playing in the background. And i have no coding in my actions panel.
View 5 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