Printing An Image From Within A Movie Clip?
I've got this movie clip that keeps switching images when the user interacts accordingly. Along with 'image switch' option I want to provide the option to print the current image. How do I do that? Urgent.
Thanks.
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 01-18-2004, 09:42 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Printing An Image From Within A Movie Clip?
I've got this movie clip that keeps switching images when the user interacts accordingly. Along with 'image switch' option I want to provide the option to print the current image. How do I do that? Urgent.
Thanks.
Printing An Image From Within A Movie Clip?
I've got this movie clip that keeps switching images when the user interacts accordingly. Along with 'image switch' option I want to provide the option to print the current image. How do I do that? Urgent.
Thanks.
Printing A Movie Clip
Hi,
I am making a CD-ROM using Flash. I want to be able to print out some maps and floor plans. I have made the symbols that I want to print into movie clips and placed them on their own in the stage and in their own frame in the timeline. I have a button that goes to this frame. On this frame I have the script:
print ("bkk map", "bmovie");
gotoAndPlay ("end");
I have the movie clip label set to #p
It seems to work when I test it as a swf, although the print dialogue box comes up repeatedly until I press cancel. But the pages print.
I have a projector which calls in various swf files for the content of the pages. When I view the page in this format the printing does not work. It opens the print dialogue and spools paper, but does not print anything.
Can anybody think of a reason why this is happening and how to fix it???
Thanks.
Printing More Than One Movie Clip
I want to print 2 movie clips when the user clicks print. So far I have:
on (release) {
getURL("print:", "headline");
}
What is the syntax to print another MC called "subhead"
I tried:
on (release) {
getURL("print:", "subhead" && "headline");
}
on (release) {
getURL("print:", "subhead" and "headline");
}
on (release) {
getURL("print:", "subhead"; "headline");
}
to no avail.
Any ideas?
THANKS!
Printing Movie Clip
Hi,
I am using this command to print a movie clip.
on (release) {
print("_root.myMovieClip", "bmovie");
}
The problem is that my Movie Clip height is to large to print on one page.
Is there any command to tell the flash player to print the specific movie clip on two pages.
Thanx in Advance
Printing A Movie Clip
I"m trying to print a scrolling movieclip
with a "print" button...
but the "print" command seems to only print what is visible onscreen.
is there any way to print the entire contents of a scrolling moving clip?
Printing A Movie Clip...
Rumor has it vector based movie clips size to page and print full scale, this is a neat feature and somthing we wanted to offer our client. Although im having trouble getting it to print the movie clip. Can you help me out?
Code:
//Handle Roll over without movie clip
on (rollOver) {
var colorful = new Color(this);
colorful.setRGB("0x6E91CB");
}
on (rollOut) {
var colorful = new Color(this);
colorful.setRGB("0xCA5711");
}
//Handle release
on (release)
{
//Disable the print button
this.enabled = false;
//Attach the clip to be printed
mapPrint_mc = attachMovie("mcMap", "mcMap",{_x:0, _y:0, printOnly:true});
var objpj:PrintJob = new PrintJob();
objpj.orientation = "landscape";
mapPrint_mc._rotation = -90;
if (objpj.start()) {
objpj.addPage(mapPrint_mc,{},{printAsBitmap:true});
objpj.send();
}
//Clear the printed movieclip and print objects
mapPrint_mc.removeMovieClip();
delete mapPrint_mc;
delete objpj;
//Enable the print button
this.enabled = true;
}
Printing A Movie Clip
I"m trying to print a scrolling movieclip
with a "print" button...
but the "print" command seems to only print what is visible onscreen.
is there any way to print the entire contents of a scrolling moving clip?
Printing A Movie Clip
I created a simple draw pad and the canvas that one draws upon is an MC called "BoardMask" with an instance of Canvas Mask MC that comprises the background in which one sees their drawing. I'm wondering if it would be possible to only print what was created on the canvas and not print the whold swf?
Printing A Movie Clip And Textfield?
I have loaded an swf as a variable in a movie clip. This is how:
pic1 = mov1.swf
loadMovie (/ic1, "lp1");
Now I want to print this movie clip which is actually the swf 'mov1'. I have used both print and printasBitmap options, but none works. All I am getting is black lines when using print option and blank page when using printasBitmap option. I am using the following code to print:
on (release) {
printAsBitmap ("lp1", "bmovie");
}
I have taken a second frame in movie lp1 whose label is #b and there I have drawn a rectangle which I believe would be taken as the bounding box for the movie to be printed. Isnt this right??
Could anyone tell me what the problem might be??
Also theres another textfield on the same frame as the movie clip which i want printed, is there a way??
Bit Of A Challenge .... Printing Out A Movie Clip.......
i am trying to print out a movie clip in flash but im really having troupble getting the movie clip to be scaled and printed out to standard a4 size.... for some reason im getting a blue border at the top and bottom of the page when im printing and its not resizing the contents of the movie clip to fit A4 size...........
ive attached the fla.. so you can see the problem ....
im sure someone with some real skills will be able to work this out...
Printing Masked Movie Clip
I'm trying to print a movie clip that contains a masked area - while the mask appears to be working, the printer seems to be taking the invisible area into account and is resizing the image to fit the page. Does anyone know of a way to resolve this? I've read about problems concerning masks on another forum, but the only solution given was to try setMask, which I did, but no joy.
I'd appreciate any help on this!
Printing A Movie Clip And It Comes Out All Black
I am printing a movie clip and it works fine if I run it locally on my machine, prints perfectly. I upload the swf to our framework, and run the same print function, it comes out completely black. But this doesnt happen on all computers, only some. Some it works fine, but I can't figure out any correlation between the compuuters it works on. So far, I have only seen it work on flash 8, but not all flash 8, as I tried it and it came out black for me. I have tried using print() and the printjob class with no luck.
The framework that I am uploading to is a flash movie that has a black background, that holds the one I am working on, if that helps at all. Confusing problem, so let me know if any other info I can provide. Hoping somebody else has seen this before.
Jon
Problems Printing Multi Frame Movie Clip
Hi,
I need to print out a multi page “Price List”, which is part of a much larger movie.
I’ve got each page, which contains “Mixed” Text & Graphic content on a number of framers within the movie clip that I’m targeting with the “Print” Function. The function itself is placed on a “Button” instance on a frame next to the Price List in the main Timeline.
Problem is that when the “print” function fires it indicates, via the printer dialogue window, that it is about to print all the frames of the main Timeline & not just those contained within the targeted clip.
Weird thing is that in trying to analyse the problem I set up a simplified movie with just the movie clip to be printed & & a print button & it works fine!
Anyone any ideas?
Thanxs
Printing A Movie Clip With Dynamic Text Boxes
I've got a certificate inside a movie clip, and i want the dynamic text box to dispay the user name, but for some reason it is coming up undefined, even though i have the dynamic text box set to finalname = _root.inputname, but it comes up as undefined on the screen. :( Can anyone tell me where i am going wrong?
Is there a way to print just a specific movie clip on the screen? I can only print all the frames in the movie and without the dynamic text box... any help would be greatly appreciated.
Problems Printing Multi Frame Movie Clip
Hi,
I need to print out a multi page “Price List”, which is part of a much larger movie.
I’ve got each page, which contains “Mixed” Text & Graphic content on a number of framers within the movie clip that I’m targeting with the “Print” Function. The function itself is placed on a “Button” instance on a frame next to the Price List in the main Timeline.
Problem is that when the “print” function fires it indicates, via the printer dialogue window, that it is about to print all the frames of the main Timeline & not just those contained within the targeted clip.
Weird thing is that in trying to analyse the problem I set up a simplified movie with just the movie clip to be printed & & a print button & it works fine!
Anyone any ideas?
Thanxs
[F8] Swapping New Image In As Movie Clip - How To Clear Size Of Old Image?
I'm loading in a jpg with the MovieClipLoader object. After the initial load, the movie clip _width property accurately reflects the width of the jpg loaded. Subsequent reloads show the width of the initial image. i need to get the width of the jpg i just loaded so i can properly size it for display. Is there a good way to clear out the initial jpg?
Load External Movie Clip: Image Does Not Appear Where Clip Is
Trying to build the same thumbnail photo gallery I've been working on forever. I'm loading large image into movie clip, however, when the clip loads, the picture appears over to the far right and not in the place where I have place the clip on the stage. My code is for the button is :
on (release) {
if(this.mainloader == Number(this.mainloader)){
loadMovieNum("fam01.jpg",this.mainloader);
} else {
this.mainloader.loadMovie("fam01.jpg");
}
}
I know it has something to do with x and y coordinates, but I've tried everything I know with no luck. If it involves AS, where do I put it.
Thanks to all who reply.
Movie Clip Image
I have a movie clip that displays pictures after reading file names from an xml file. It basically is an image gallery with scroll function implemented. I got it from one of the tutorial sites and modified slightly. When I changed the size of images to meet my needs, however, images started showing as streched along the x-axis (width) to the right. Please, understand that I changed the size of the picture holder (movie clip) accordingly. It almost seems that somehow FLASH has its own way of measuring a pixel, different from Photoshop. Is there something I am doing wrong or there is simply a trick I dont know as FLASH newbie? Any help is greatly appreciated.
Here is the whole code:
Code:
var x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
var captions:Array = new Array();
var links:Array = new Array();
var whoIsOn:Number;
x.onLoad = function(success) {
var photos:Array = this.firstChild.childNodes;
for(i=0;i<photos.length;i++) {
urls.push(photos[i].attributes.url);
captions.push(photos[i].attributes.caption);
links.push(photos[i].attributes.link)
}
holder.loadMovie(urls[0]);
caption.text = captions[0];
linkholder.link = links[0];
trace(linkholder.link);
whoIsOn = 0;
}
x.load("flash.xml");
previous.onRelease = function() {
if(whoIsOn > 0) {
whoIsOn--;
holder.loadMovie(urls[whoIsOn]);
caption.text = captions[whoIsOn];
linkholder.link = links[whoIsOn];
trace(linkholder.link);
}
}
next.onRelease = function() {
if(whoIsOn < urls.length-1) {
whoIsOn++;
holder.loadMovie(urls[whoIsOn]);
caption.text = captions[whoIsOn];
linkholder.link = links[whoIsOn];
trace(linkholder.link);
}
linkholder.onRelease = function() {
getURL(links[whoIsOn]);
}
}
How To Load Image Onto Movie Clip?
Hello,
I have 6 movie clips in a page and i want to load different images on different clips while the page loads.Can anyone tell me how to do this?
Thanks
Srilatha
Converting Movie Clip To An Image
Hi all,
I am having a very big problem here. I am creating a movie clip with different images on it. the user will be able to save the movie clip and updated in the database using the x and y coordinate of the different image.
Now I wanted to convert the movie clip into an image (JPEG) file and so that I can retrieve it and display onto the browser. May you all help me how should I do it. Thanks for your help pls.
Regards
Fernado
Scrolling Image / Movie Clip Box...(please Help)
Hello...
I'm currently stuck on this problem, (which I hope will be easy to overcome!)...
I want to create a scrolling movie clip, with text and images in it...(So it acts like as a 'news' section for my site...
I know you cant put images into a scrolling text box, (but I'm familiar with the code needed for text box scrolling)...However, i've no idea how to make a scrolling movie clip like the one I want...
From reading the various oldeer threads about this type of subject, I understand that you have to create this movie clip, bigger than the size of the stage, so I can fit all the info I need into it...(right...?)...
Then i assume this movie clip would be loaded into a target...(This meaning that the pictures and text that hasn't be 'scrolled' down to yet would not be seen until the viewer scrolls down far enough..???
How would i do this...?
Is that right...and whats the next step...?
What type of code will I need on the buttons, etc that will end up making the movie clip scroll...???
Basically, I need somneone who can give me advice from scratch on how to make a scrolling movie clip...!!!
Thanks for any help...
Cheers
Jeff
Why Stetch My Image When I Put It In A Movie Clip?
Hi,
I have a gif that I am trying to put in my movie. When I paste it on the main stage it is the correct size. When I double click on my movie clip to add it inside of it though it stretches it out. The width and height show as the correct size in the properties box, but on screen it is stretched out. How can I stop it from stretching out? I'm using mx2004.
Thanks, Matt
Masking Big Movie Clip / Image
Hi all,
does anybody know about some action script, which would mask the big movie clip / image(1600 x 1200)?
Example: http://www.manipulator.com/
Thank you for any help.
Movie Clip And An External Jpg Image
I have a project that has a simple motion tween. In the movie clip is a photo. The tween is set to 0 for the alpha then fade in..then fade out at the end. I wanted to have the fade tween, but have the photo inside the movie clip to be loaded externally.
Thank
Image / Movie Clip Problem
attached is a header i am working on, and at first the logo is fine but as soon as you mouse over about us it distorts it. Why does this happen!?!?!
How Each Movie Clip Masks The Image
http://metaltek.com/
It looks like the same instance of a movie clip.. but it masks a large picture.. how?
is this so simple that i am overlooking how to do so?
or is there a specific way that each movieclip can mask parts or sections of the image?
(this is just for my learning... so a real answer would be appreciative.)
thanks
ZG
Movie Clip Shape To Image
I want to load an image into movie clip. I am doing the following thing.
I am creating a circle symbol and converting it to a movie clip and then writing following code.
Code:
a_mc.loadMovie("images/"+"image1.jpg");
In this case the image is a square as it was. I want it to be circle shape ie same as the shape of movie clip.
Thanks...
Export Movie Clip As Image?
Is it possible to export a movie clip as a jpg or gif using actionscript?
I've seen some stuff with php but I was just wondering was there a way of doing it from flash itself?
AS3: Movie Clip Out Of Image Sequence
Hey,
I'm sure this has been asked here before, but I can't seem to find a related post.
What is the best way using AS3 to create a movie clip out of a sequence of images on disk/ a server.
Thanks!
Xml Image Gallery In A Movie Clip
im using the xml image gallery with scrolling thumbs from this site- i got it working- but I want to put it in a movie clip so i can position it in my current project and position it where I want it. when i put it in a mc however it dosent allow the thumbs to scroll... is there anything i can do to fix this?
Loading An Image Into A Movie Clip
How? This is what I have now and it doesn't work:
_root.createEmptyMovieClip("testimage", 1); \ New Movie Clip
loadMovie(test.image1name, "testimage"); \ test.image1name = "image-4.jpg", the url of an image
testimage._width = 350; \ Properties for the Movie Clip
testimage._height = 150;\ Properties for the Movie Clip
testimage._x = 50; \ Properties for the Movie Clip
testimage._y = 50; \ Properties for the Movie Clip
Ugh. I'm tired and this is tiring me. Can somebody help me?
EDIT: Weird. When I traced "testimage._width", it returned 0. But when I traced "testimage._x", it returned 50 as it should. Huh?
Thanks,
-Raven~Storm.
How To: NOT STRETCH The Image In Movie Clip
hi,
first of all let me tell you what I have done up to now.
I created a movie clip and load picture in it
myPictureMC.loadMovie("someimagehere.gif");
and add 4 buttons to resize the movieClip.
Upto here everything was fine, but I realised that when I resize the movieClip, the picture in it stretches.
Is there someway, to keep the picture as it is and NOT stretch?
Thanks
RomBerry
Image In The Movie Clip Question
Good day!
I have an question about the movie clip..
scenario.
i have a movie clip where there are two images . i insert it the main stage how will i do that if i will click on of the images it will to the other frame in the main stage?
in my movie clip name step1. and the two images is named bathroom and kitchen.
my code in the main stage is
step1.kitchen.onRelease = function(){
this._parent.gotoAndPlay("name of the frame");
};
your Help id greatly appreciated
}
Showing An Image In Movie Clip... XML
Hi I'm trying to display an image in a movie clip where the location of the image is derived from an xml document.
I'm creating a menu from XML nodes and when the user selects that menu item a separate movie clip is updated with the XML information which corresponds to the menu items nodevalue. In my xml i have an image location defined and I want this to happen...
when the user selects the menu item the node value for the image location dynamically loads the image into the movie clip.
Can anyone help me? I hope i was clear..
Help Loading A Image Into A Movie Clip
I'm new to flash and I'm probably way over my head but could you please help me?
I have only been doing flash for less than a week and I mostly do animations but I want to learn AS.
I have saved my pictures in a folder (i.e. /images/) and linked the file name to a mysql database (i.e. test.png) I can make a php file that makes the links to the images
PHP Code:
<?php$sql = "SELECT * FROM images";$res = mysql_query($sql) or die(mysql_error());while($row = mysql_fetch_assoc($res)) {echo "/images/" . $row['image'];?>
So heres what I want to do,
1.) I am making a logo for my site and I want my pictures to show up in a movie clip (the newest picture first)
2.) If a user clicks on that picture/movie clip it takes them to a specific page
3.) this isn't necessary but would greatly appreciate it. How would I set up controls so a user could switch through the latest six pictures.
If you know of a tutorial that might help please give me a link I've searched for about 30mins without luck.
Thanks in advance!
Image Within A Movie Clip Problem
Ok, so I have a .png file of my logo. I put onto my flash stage, hit alt-enter, looks fine. I go back to my fla and hit f8 to turn the image into a movie clip (the image still looks fine on the stage) and then I hit alt-enter again and the bottom half of the image has shifted up one pixel, which is quite noticable. I go back to the fla and it looks perfectly normal. WHAT IS GOING ON!!!!
Save Dynamic Movie Clip As Image?
Is there any way to save a movie clip that has been dynamically configured (by dragging objects into it and arranging their placement) as an image file, preferably JPEG? Also, this is running on a server and we need the images to be saved in a directory on the server.
Scaling A Movie Clip That Loads An Image
I have an image viewer in my movie that lists all of the images in a directory on the server. When the user clicks the button, it's supposed to grab the next image. I have it working so that it loads the image in an empty movie clip with the following code..
Code:
imageviewer.imageContainer.loadMovie("photos/testimage.jpg");
that works fine, but the problem is that the image could be too big and go off the edge of the stage. I'd like to scale the image when it loads, but because it's loading in a movie clip, I'm not sure how to do this. Anyone have any ideas? Thanks.
Center Image Within Empty Movie Clip?
Hello, I have been following this tuorial for creating a dynamic photo gallery using xml.
right now, when loaded, the top left hand corner of each image is aligned to the 0,0 coordiante of the empty movieclip. My images vary in size and shape so I would rather that they were aligned centrally to the 0,0 coridinate. is this possible?
I hope I've explained myself ok, any help would be greatly appreciated
Here is the actionscript.
Code:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
Email A Movie Clip As An Image At Runtime
Hi
I have a lot of source for converting a Movie Clip to an image at runtime.
Is there a tutorial or source for sending the converted Movie Clip as an attachment, or simply a link to the image on a server, at runtime?
My thinking here is that a user will draw/create a custom image and then press a button to send it to a specified email address.
Flash Coordinates Image In A Movie Clip
Hi all!
I was wandering if you place a movie clip holding an image on float coordinates
causes any distortion on that image..blurring or something. Should we place it on integer x and y values?
Could someone provide a link or an answer? thanks!
Loading Image Onto Empty Movie Clip
hey all
just a quick question.
shown in the code below i am dynamically creating buttons. the buttons load an image and text into another clip above. what i need help with is; i need the image to ALSO be displayed on the button. :confused
so instead of the button filling with it's color (CCCCCC) i need it to fill with the corresponding image or part of the corresponding image.
any ideas?
thanks in advance!!
PHP Code:
// create a blank text box and set its parameters// first is movie depth, second is x coordinate, third is y coordinate, then width followed by height_root.createTextField("theTextBox", 20, 100, 110, 245, 75);theTextBox.background = true;theTextBox.border = false;theTextBox.backgroundColor = 0xFFFFFF;// whitetheTextBox.multiline = true;theTextBox.wordWrap = true;theTextBox.html = true;theTextBox.scroll = true;theTextBox.scrollbar = true;theTextBox.variable = "myText";// load our textloadVariables("welcome.txt", "_root");//set up dynamic buttons and parameters//for(i=1;i<11;i++) where i<8 represents max number of buttons (so 10 buttons total)//_x=i*37 where 37 represents width of button plus space between buttons (so 27+10=37)for(i=1;i<11;i++){ _root.createEmptyMovieClip("button"+i, 100+i); _root["button"+i].beginFill(0xCCCCCC, 100); _root["button"+i].moveTo(-25, -10); _root["button"+i].lineTo(25, -10); _root["button"+i].lineTo(25, 10); _root["button"+i].lineTo(-25, 10); _root["button"+i].endFill(-25, -10); _root["button"+i]._x=i*37; _root["button"+i]._y=215; _root["button"+i]._width=27; _root["button"+i]._height=27; //create, add, delete buttons}button1.onRelease=function(){ loadVariables("text1.txt", "_root"); loadMovie("showcase1.jpg","imageHolder");}button2.onRelease=function(){ loadVariables("text2.txt", "_root"); loadMovie("showcase2.jpg","imageHolder");}button3.onRelease=function(){ loadVariables("text3.txt", "_root"); loadMovie("showcase3.jpg","imageHolder");}button4.onRelease=function(){ loadVariables("text4.txt", "_root"); loadMovie("showcase4.jpg","imageHolder");}button5.onRelease=function(){ loadVariables("text5.txt", "_root"); loadMovie("showcase5.jpg","imageHolder");}button6.onRelease=function(){ loadVariables("text6.txt", "_root"); loadMovie("showcase6.jpg","imageHolder");}button7.onRelease=function(){ loadVariables("text7.txt", "_root"); loadMovie("showcase7.jpg","imageHolder");}button8.onRelease=function(){ loadVariables("text8.txt", "_root"); loadMovie("showcase8.jpg","imageHolder");}button9.onRelease=function(){ loadVariables("text9.txt", "_root"); loadMovie("showcase9.jpg","imageHolder");}button10.onRelease=function(){ loadVariables("text10.txt", "_root"); loadMovie("showcase10.jpg","imageHolder");}// create variable graphic content holder_root.createEmptyMovieClip("imageHolder", 377, 88);imageHolder._x=15;imageHolder._y=15;loadMovie("showcase_default.jpg","imageHolder");imageLoaded=true;
Loading And Attaching Image As Movie Clip
What's is wrong with that ??
loadMovie("P1000546.JPG","pic3_mv");
pic3_mv.createEmptyMovieClip( "pic3_mv" , 0 );
attachMovie( "pic3_mv" , "pic3_mv",0);
pic3_mv._x = 0;
pic3_mv._y = 0;
The iamge file is external and is located in the sae directory as swf file.
Image Alpha And Max Movie Clip Size
I am working with Jesse Stratfords code for making a movie clip match the size of an image being loading into it. This code works great but I am looking to add the function of a fade in/out to the images being loaded into the clip. Any ideas?
I am also trying to limit the size of the mc that is created to a certain percent of the stage. Your help and expertise are much appreciated.
Image Movie Clip Fails On Draging
Unable to drag the Movie clip which consist of images, but the other clip which was drawn dinamically works on draging,
simple I want to drag the Image which was loaded at run time.
Regards
Suresh
// Creating first Movie Clip
var square_mc:MovieClip = createEmptyMovieClip("square_mc", 150);
square_mc.lineStyle(1, 0x000000, 0);
square_mc.beginFill(0xFF0000, 100);
square_mc.moveTo(100, 100);
square_mc.lineTo(200, 100);
square_mc.lineTo(200, 200);
square_mc.lineTo(100, 200);
square_mc.lineTo(100, 100);
square_mc.endFill();
// Creating second Movie Clip
var containerBG:MovieClip = createEmptyMovieClip("containerBG", 100);
var mcLoaderBG:MovieClipLoader = new MovieClipLoader();
mcLoaderBG.addListener(this);
//Give any image file name instead of 1.gif
mcLoaderBG.loadClip("1.gif", containerBG);
//Draging works for this clip
square_mc.onPress = function() {
this.startDrag();
};
//Draging works for this clip
square_mc.onRelease = function() {
this.stopDrag();
};
//Draging is not working for this clip
containerBG.onPress = function() {
this.startDrag();
};
//Draging is not working for this clip
containerBG.onRelease = function() {
this.stopDrag();
};
|