ActionScript 3.0 :: Load AI File In Flash CS4 Using Code(Like Loading Swf Or Images )
Apr 30, 2009I have to load AI file in flash CS4 and provide the interaction with user.
View 3 RepliesI have to load AI file in flash CS4 and provide the interaction with user.
View 3 RepliesI 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?
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 RepliesI need to load multiple images from ZIP archive and do some actions after all files from ZIP archive have been loaded. I use FZip library to manipulate with ZIP files. My problem is that sometimes the loading of all files are not going.In this code I starting loading process:
loadedImages = zip.getFileCount();
trace("Starting... " + loadedImages);
for (var i:uint = 0; i < loadedImages; i++)
[code].....
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] .....
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]...
I have a rotaing menu that loads in images from an xml file, I would also like it to load in text info from the same xml file to the left side of the images that load in. In my main .fla have created a movieclip and called it 'textInfo' and inside that I have two dynamic text fields called 'headerText' and 'bodyText' where I want to load the text in. this is what I am using to loading in the text in my actionscript, is this correct?
[Code]...
So I have this code which loads an xml file
[Code].....
I want to have several buttons however load a different xml file, not just use one file. Would this mean I would have to recreate the above code for every button, or is there anyway I could reuse it?
I have my preloader loading my main swf where I'm loading another swf that contains a background.
When my preloader is done it shows my main swf but it takes a while after that for the background to load.
Whats the easiest way to get my preloader to wait until the background swf is done loading?
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 RepliesIm making a small application that lets user load any SWF file as the background image, but I want just the graphics from the
loaded SWF no scripts that may come with it. Those anyone know it there a way to block code execution in external files?
url....and they are using some kinda loading bar to load thumbnails of images, actually i saw that i many site, and i am bit curious about it.could any one help me out to code this loading bar?
View 3 Repliesi have a swf file which i want to load into a fla file and export as a new swf file. I understand this part but my actionscript 3.0 code that i put on frame one of the timeline does not work. I have tried every version i have seen online including in adobe's actionscript 3 classroom in a book.... and other books..... i want the swf to run immediately so i dont think i need any event listeners since i am not clicking a button or anything like that... just running the swf at start.
View 1 RepliesAs the title says im trying to load Facebook profile images into flash using AS3,now im pretty far with this but i hit a blockade.[code]Im obtaining the friends list of the current user through some PHP a friend of mine wrote, and accesing their ID's, which i use to load their profile images.
View 1 RepliesI 'm checking to see if an image file exist but I don't think the code checks but the last iteration in the loop. Here's my code:
[Code]....
fix this or if you know a better way to check if an image file exist could you let me know.
I try to execute a code on my Stage, the problem is when I declare my own class on which they load the file (xml) the code start in the background.I tried to add a listener in the custom class for Event.COMPLETE but it doesn't work because it only affect the custom class, not the whole movie.I tried something like this:
Code:
var xmlLoad: XMLLoadData = new XMLLoadData("navigation.xml");
var menuBox:MenuBox = new MenuBox();
[code].......
I try to execute a code on my Stage, the problem is when I declare my own class on which they load the file (xml) the code start in the background.
I tried to add a listener in the custom class for Event.COMPLETE but it doesn't work because it only affect the custom class, not the whole movie.[code]...
I found this code to load a movie but naming the button myRequest or myLoader does not do anything?[code]....
View 21 RepliesI 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).
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
I am trying to load images from an xml file, and have this directory structure[code]....
View 2 RepliesI'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]...
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] ......
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 RepliesI 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.
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 RepliesI 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 RepliesI want to load images (saved in a folder and all the description is in XML file) into flash CS3 using AS 3.0.
and when i click on any image the full size image will be shown in a area that is basically a movie clip.
I keep getting a Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found. even though I have quadruple-checked my pathways.I have read through all the posts I could find but still no dice.the problem as 3 is-
var urlRequest:URLRequest = new URLRequest("general2005.xml");
var urlLoader:URLLoader = new URLLoader();
urlLoader.load(urlRequest);
[code]........
I'm more Graphically inclined so bare with me. 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