ActionScript 2.0 :: Load Picture In Flash Movie?
Jan 29, 2003i have some images file in a directory (gif), can i load my picture in flash movie? how?
i need this can by dynamis like load text with php (not using inport file in flash)
i have some images file in a directory (gif), can i load my picture in flash movie? how?
i need this can by dynamis like load text with php (not using inport file in flash)
I'm trying to fix this for such a long time. I've used the scotty gallery but want to open the clicked thumnail in a new movie. [code]...
View 1 RepliesSo when you load a picture into a movie clip, it loads into the Top-Left hand corner.I really want it to load into the Top-Right hand corner. Is there a way?I am loading it via AS - not placing it manually, as I have a variety of images which are of different dimensions....
View 4 RepliesI recently used the loadMovie action to load a .swf file to a target in the movie which it was being called from. Then I tried calling a picture to another target in the movie, but it did not load the picture as intended. I read about it on my book, but it didn't seem to work. Is there anyways on calling a picture into a target in the movie without placing the picture inside an swf file?
View 7 RepliesI'm editing a web page to access it only after login, so now it's a php page with an inital <?php session_start(); ?> and in the body of the page I test the value of a session variable.All works fine but in the header there is flash animation that don't load background picture.In the old version of the page this picture was loaded fine but not now.The address of old version of the page is this and new versione is this this.
View 1 RepliesI'm creating a picture gallery in actionscript 2. In order for people to easily create/modify galleries, I have actionscript read in file information through XML. However I have one problem I can't get around. I'm having trouble loading the picture into a movieclip, then being able to change the properties of that movieclip (change _x, _y, and _alpha). Here is what I have so far
[Code]....
I'm editing a web page to access it only after login, so now it's a php page with an inital <?php session_start(); ?> and in the body of the page I test the value of a session variable.All works fine but in the header there is flash animation that don't load background picture.In the old version of the page this picture was loaded fine but not now.
View 1 RepliesWhat I want is "simple", That if I click the "nxt" button, it loads the next picture in the xml. And the "prv" button goes backwards. AS3 Code PHP Code:
[Code]....
I want to make a picture gallery and use buttons that move you from picture to picture and backwards, but I don't want to tell button 1 to go to frame 2 and button 2 to got to frame 3 and so on (I hope you know what I mean)Can I use on button on a separate layer with the same action set? I tried something like that, but it didn't work:
on (release) {
thisframe =+1
}
[code]........
but it didn't work. I'm kind of new to any action script other than gotAndPlay, easy functions and all that.
I how that any Can help I have a Picture that I want To destroy it As someone break it as a glass and then something made it go back as she was
View 1 RepliesI am trying to make a flash app where you click a movie clip (a picture frame) and a picture gallery pops up.Here is what I have so far. Click the Picture Frame movie clip and a shape tweens (for 24 frames) out to make the background for the gallery and I have a new key frame with a picture on it and left and right buttons. Then I have key frames following the first picture that just have images in them.At this point I use stop(); on that frame and stop the movieclip on the first picture. Now I'm trying to get the buttons to go forwards and backwards. It seems an easy enough task, I just can't figure out how to get the currentFrame and the totalFrames for my movie clip symbol.[code]I have also noticed that even when I replace the entire function with nextFrame (); it only restarts the movie clip symbol from the shape tween up to the first keyframe with a picture.
View 1 RepliesThe desired affect is simple: I have a single button... with each click I want it to load text into a dynamic text field and load a corresponding picture or movieclip.There are only three unique text/image combinations- after its displayed the third, with the next click I want it to just start over. All the text functions perfectly with each click.
The problem is:I use "createEmptyMovieClip" then use the resulting clip as a loader clip.. With the first click I want a movieclip from the library to load, so I use the "attachMovie" method- it displays the first library fine.With the next click I want to load an external swf- so I call the "loadMovie" method of the loaderclip... The external swf loads just fine replacing the first library clip.The third clip is where I have problems... now I want to load another library item into the loaderclip... so I tried using the attachMovie method again but the external swf remains static... then with the next click, I discover the first library item no longer loads and the external swf remains still playing- it's like once it's been loaded into the loaderclip it cant be moved...
So I tried adding the "unloadMovie" method in the code for the third click.. it successfully removed the swf... but the next line of code immediately after the unload statement, doesn't work. The line calls the attachMovie method for the loaderclip... but the library item doesnt load... Oddly enough, with the next click, the first library item now does load as if everything's fine... It seems like you cant use the unloadMovie and attachMovie on the same executing code? if that makes any sense... the basic idea was that if I couldnt get the attachmovie method to replace the loaded external swf, then I would use the unload method to remove it, then have code immediately after, to then execute the attachMovie method... but it still doesnt load the library clip. and I know it's not a type-o, because when I comment out the loadMovie and unloadMovie statements, it loads both the library items perfectly ? The code is below
var increment:Number = 1;
var verbiage1:String = "Hello World1";
var verbiage2:String = "Hello World2";[code].............
Can't understand why: loadMovie("pict/my_picture.jpg",movieClip); the path seems to be correct, but Flash cant load the picture. It works locally, although, but not on the server.
View 1 RepliesI have a nested blank clip (_root.banner.holder.picture) and want to load a picture into it, using the following code in the _root.No matter what I do, I can't get it to work
Code:
_root.myobject = "picture1";
loadpic = _root.myobject+".jpg";
[code].....
I use Loader to load two picture,such as 1.jpg and 2.jpg,like follows:
_p1=new Pic("1.jpg");_p2=new Pic("2.jpg");
Then I add the two picture into a Sprite,like follows:
Sprite _g=new Sprite();
_g.addChild(_p1);
_g.addChild(_p2);
Then I draw a circle as _g mask,such as _c
_g.mask=_c;
I want to realize following effect.First appear 2.jpg,and during the mask _c radius is from 0 to 300,the picture 1.jpg is appearing synchronously in mask _c.
I'm new to flex, i'm used to flash (CS5 & as3) I'm trying to load a picture in my swf file to add a DisplacementMapFilter then.
[Code]...
i'd seem some of the flash webpage, when enter into gallery or other photo area, the picture was loading into swf then.
View 9 Repliesi was trying to load a picture in to a loader :
ActionScript Code:
var url:String = e.currentTarget.link;
var request:URLRequest = new URLRequest(url);
[Code]....
and the only error was : SecurityError: Error #2000: No active security context.
i found the problem !: this error occurred if the xml link is wrong or if the picture is not on called link.
The question is: this is a cs5 bag or i miss something ?
I'm trying to monitor the currentframe of a movie so that when it goes to a specific frame, its loads the corresponding a picture out of an array dynamically using XML.
I think I have most of that loading part sorted out, the issue i think comes when i am looping code on the movieclip. I'm trying to set it up in such a way that if the currentframe remains the same, that it does nothing...this is so that it does not repeatedly load the same image over and over if the frame does not change.
I only want an image to load if the current frame has changed. I realise an example is in order so i posted the .fla and the .xml files in a zip file.
Code:
this.createEmptyMovieClip("mc", 10);
mc.loadMovie("http://www.winbakfarm.com/images/winbak_header_halloween.jpg");
trace(mc._width+newline+mc._height);
why doesn't load width and height of the picture?
I know to load an swf, its like:loadMovie But is there a way similar to the way above but it loads a picture instead?
View 2 RepliesI get a ActionScript class for loading the content:
public class LoaderContainer extends Sprite {
public function LoaderExample() {
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
addChild(loader);
[Code]...
When I rollover my thumbnails I want it to load the corresponding version of a bigger picture, which is stored in the name property of each thumbnail. This works but the problem is i also want to, when clicked, goto a URL adress. But now the name property already have the path to the big version so I cant put the URL-path there. So how do I make each thumbnail find the "big version" and the url-path?
Code:
//thumbnail picture
thumb_Loader.load(new URLRequest(xmlList[i].attribute("thumb")));
//thumbnail BIG picture
thumb_Loader.name=xmlList[i].attribute("source");
I have this script. On the mc duplications i want to onRelease get on the every box a different loadPic(x)[code]...
View 0 RepliesI have a picture that I want to load directly in to a movieclip.
Movieclip name = picture
Image name = image.jpg
I tried something like this
loadMovie("image.jpg", picture);
but didnt work
I know to load an swf, its like: loadMovie(yadayada); But is there a way similar to the way above but it loads a picture instead?
View 2 Repliesi am creating a flash website, i have a preloader at the start of the site. My problem is that when i view it as it would be seen on a browser the preloader doesn't appear straight away. i have an image with the preloader (site logo) and is 182kb file size and am guessing that this picture needs to load first for the next action to happen. if htis is so, other then reducing the file size is there anyway to make the preloader appear straight away.
View 1 RepliesI'm planning to load images via URLLOADER onto the stage.....i want each image to be on a diffrent frame of the main timeline how do i tell each one which frame it belongs to?
View 5 RepliesI need to build a flash application In which I load a jpg, make a selection of it (a mask or something like crop tool) and save it back. Loading the picture and making the mask are not a problem. saving the edited picture back.
View 6 RepliesI'm having trouble passing the url for a users facebook profile picture to a Loader() variable. I'm using a PHP file to get around the security and from the debug I made, it shows that I'm getting the URL fine, but the Loader runs the error event listener. Here is what my facebookProxy.php file looks like;
<?php
$path=$_GET['path'];
header("Content-Description: Facebook Proxied File");
[code].....