ActionScript 2.0 :: Loading JPG Picture In MovieClip
Nov 29, 2009
I used to work with CS3, but now I have CS4. I want to load jpg picture in movieclip. But it doesn't works. I have tried to load *.swf and it's works. This is my code:
_root.createEmptyMovieClip("a",1);
loadMovie("small.jpg",_root.a);
there are no changes on stage.
I have Vista and this all happens in my documents
View 1 Replies
Similar Posts:
Jul 13, 2010
I am trying to write a class file for loading a movieclip but it is not working. I am not even getting any error message.
[Code]...
View 1 Replies
Jan 5, 2005
I have just been to a really nice website that has some really nice use of Flash on it.... I'm totally wowed by the resizing picture effect though? When each picture loads the loading frame resizes to the new picture size.
View 3 Replies
Jan 5, 2005
I'm totally wowed by the resizing picture effect though? When each picture loads the loading frame resizes to the new picture size.It must be some sort of actionscripting but how is it done?
View 3 Replies
Apr 22, 2002
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.
View 2 Replies
Mar 26, 2010
I Have the drag and drop working where you drag a text movieclip onto a picture of an object movieclip but having some problems. I know its something to do with the hitTest function but when i drop the word "cow" onto the picture of a dog it actually says this is correct by displaying the word cow above the picture of the dog when instead it shouldnt allow me to drop the text onto the picture which doesnt match.
Basically i need to know how to seperate the drag hitTest function for the DogPic/DogText so that it has its own function to detect a hit. At the moment you can see in the below code I have 1 hittest fucntion detecting both collisions when they need seperate functions I tried making a seperate function for each but it didnt work
[Code]...
View 4 Replies
Aug 10, 2009
I'm trying to learn how to load multiple images from an XML file, I have the XML file done with the image names and X,Y each one should be loaded on the screen, but I'm totally lost on the AS3 file.Here is the XML code: XML
ActionScript Code:
package
{
import flash.display.Sprite;[code].....
View 6 Replies
Aug 13, 2005
The XML gallery I have has a pop-up window that appears after selecting a thumbnail. What I'm trying to accomplish is for the first picture in the gallery to load into the pop-up window, which is now always shown on the stage. I was able to make it so that the pop-up is always visible, but one thing I couldn't figure out is how to make it so that the first picture in the gallery loads into the pop-up box WITHOUT the user selecting the thumbnail first?I think it has to do with this code:
Code:
portfolio_xml.onLoad = function(success) {
if (success) {
var gallery = this.firstChild.childNodes[index];
galleryInfo.text = this.firstChild.childNodes[index].attributes.title;
[code]....
View 3 Replies
Jan 20, 2011
I am creating a custom class called Image. When called from a SWF it constructs the box and text as it is supposed to, but I also need to call an image into the object but that isn't happening.
[Code]...
View 3 Replies
Feb 26, 2010
I am building a web site and I have the main movie, which loads a picture gallery (another .swf file) using "loadMovie();" and then the problem comes in - my gallery movie has a preloader which after finishing is supposed to move on frame 2 of the gallery movie, but instead of that it moves to frame 2 of the main site...
This is the main movies button code loading the gallery:
on(release) {
gotoAndStop(5);
Gallery_Sub.loadMovie("../Flash/murals.swf");
Here is my preloaders code on the frame 100:
_level0.gotoAndPlay(2);
And at last my gallery movie's code on the preloader frame:
stop();
percent = Math.floor(getBytesLoaded()/getBytesTotal()*100);
if (percent == 100){
_level5.gotoAndPlay (2);
}else{
_preloader.gotoAndPlay(percent);
}
I tried using loadMovieNum(); but somehow it didn't work as well.
View 3 Replies
Feb 18, 2010
I just trying to learn basic flash programming skills, now I got a program that load an image from my local machine, and show it with uiloader component, code is something like:
var myImage:String = "picture.png"
var request:URLRequest = new URLRequest(myImage);
uiLoader.load(request);
It's working fine, but when dynamically change the picture, I notice a flicker while loading, there is any way to avoid this flicker? i mean, like double-buffering or so.
View 1 Replies
Sep 25, 2010
Today I have a problem with loading pictures from a server that is not under my control. So I cannot use a policy file.
The Loader works fine actually.
Problems arise when I convert that loader.content into a Bitmap.
ActionScript Code:
var link = "http://mystatus.skype.com/smallclassic/martin.kruusement";
var bmp:Bitmap;
var loader = new Loader();
[Code].....
View 1 Replies
Feb 28, 2005
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 Replies
May 31, 2005
I'm using this code to load a .jpg into a movieclip with the instance name picholderCode:_root.picholder.loadMovie("pic.jpg");How do I get getBytesTotal() or getBytesLoaded() to work with this picture? I've tried to get the total and loaded this way:
Code:
_root.picholder.getBytesLoaded()
But it doesn't seem to work
[code]....
View 11 Replies
Jun 4, 2006
I've loaded data from an XML file and put it in an array that contains everything. I'm trying to get the drawing API to draw some shapes dynamically on the stage using this information. They drew fine before when I was using hard-coded test values, but now that it's dynamic it doesn't work, and I think that's because the shapes are trying to draw before they get their values to draw with. Is there any kind of like "on(something)" I can use to ensure everything's fully loaded before I begin drawing? (The XML file's already in an "onLoad" function.)
Secondly, I'm trying to adapt the dynamic XML image gallery Kirupa tutorial found HERE to work when a button is pressed, and have the images load into a container created with the drawing API. Does anybody have any tips on how this could be accomplished? For reference, here's the code I'm using to create the boxes to house the images (each box consists of a nested preloader bar, and the actual container for holding the loaded image):
Code:
//main box
_root.createEmptyMovieClip("pictureBox_mc", tempClip_mc.getNextHighestDepth() + 5);
[code]....
View 14 Replies
Oct 3, 2007
I got suck on my little project of a pictures... I am trying to preload a picture. Since they are quite big, i want the user to know that it is loading.I am able to load a xml and calculate the totalbytes and bytesloaded, but cant with the JPG that i am trying to load.
View 2 Replies
May 5, 2006
I tried "attaching" a custom context menu on the 'picture' movieclip (empty movieclip that holds externally loaded pics) but with no luck.
View 1 Replies
Feb 1, 2009
I'm creating a picture viewer that dynamically loads the images from my site, and I'd like to be able to have flash determine how many images are in the folder when it runs. I know I could do this with an xml file, but I have a hunch that there's an easier way to script it.
View 1 Replies
Feb 2, 2010
I'm trying to to get this loader to unload the current picture before loading in a new one. how I can put that in?
ActionScript Code:
function loadPhoto(url:String):void {
var picLoader:Loader = new Loader();
[code]...
View 2 Replies
May 21, 2009
I made a website that does it alright on the internet on my PC, and I haven't heard any complaints from my client either, but a few hours ago I visited a friend and on his PC the website didn't work exactly as it should. So I wanted to ask all who reads this, to please have a look at this and tell me if you have the same problem or not.
The website is here
When you're on the opening page you have to press the 1st button under the pics (the word = the link), then a centered flash pop-up appears with in the upper banner the buttons of the 4 different pages. In the Arabic "gate" there should always be a text scroller.
The problems were the following:
- - On some of the pages the text scroller didn't appear, or the scroller appeared but where the text should have been there was the word 'undefined'
- - On the "wat" page, there should be a horizontal picture slider behind that Arabic gate. On the PC of my friend only a few pictures appeared, making the gaps between the pics that were shown gigantic and with variable sizes (normally, with all the pics shown, the spaces between the pics are all the same width)
View 3 Replies
Nov 15, 2009
I really just want to have shadow showing underneath the gallery, I just don't know how to add a shadow so it stays under in the picture when i scroll...I call my movie clip with the shadow shadow mc. tried different solutions, but seems everytime i scroll the mask sort of blocks it out... is there anyway anyone knows what Im talking about..? Basicly i need ad a movieclip that lays underneath the gallery and stays there..this is the AS for the gallery:
var galWid:Number=879.95;
var galHei:Number=300;
var galX:Number=10;
[code].....
View 6 Replies
Nov 11, 2010
I need a very simple(*) image editor made in Flash so the users of my web page can edit pictures and then save them to my server. I'm beginning this project trying to save to a jpg or png the content of a movie clip, but I didn't find any information on Google. Can you give suggestions of how to begin? And if you know some opensource projects like this one, please share it here.
(*) very simple means, resize, crop, add text and overlap other images.
View 4 Replies
Feb 20, 2009
How can I change the picture already included in a movieClip using actionscript since pictures don't have instance names ?
View 0 Replies
Dec 13, 2009
I have this script. On the mc duplications i want to onRelease get on the every box a different loadPic(x)[code]...
View 0 Replies
Jun 13, 2004
I 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
View 11 Replies
Mar 21, 2007
(ps: everything happens on the maintimeline)when a user clicks the photobutton this code triggers:
Code:
this.createEmptyMovieClip("photo"+photoNum, getNextHighestDepth());
this["photo"+photoNum].attachMovie("photo", "photo", getNextHighestDepth());
now the movieclip "photo" consist on another movieclip that does the actual picture display/loading with some AS> photoHolder < loads the actual picture,so i thought ok,logically its
_root.photo.photoHolder.removeMovieClip();
maybe even _root["photo" + photoNum].photoHolder.removeMovieClip();
or _root.photo.removeMovieClip();
etc
i tried numerous other structures but i just can't get it to work, for some reasons i just can't unload the movieclip that shows the picture.
View 5 Replies
Aug 8, 2010
i have movie clip with images and buttons: left, right, up, down, need for this buttons add events, to be able to move the picture from movieclip to stage
View 2 Replies
Nov 4, 2003
How do you resize a picture if you attach it to an empty movieclip you created?
createEmptyMovieClip("holder",1);
holder2.loadMovie("./Pictures/"+pic+".jpg");
View 3 Replies
Mar 22, 2003
I 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 Replies
Nov 17, 2009
I am creating a Picture preview system, so far I have a movie clip with all of my images inside, a load of buttons that when pressed make the movie clip swap to the correct picture and stop there. All of this is fine, my issue is that I wantto place the Movie clip in question into a button, and depending on the particular frame the movie is showing, it will send the user to a different Website.
View 4 Replies