ActionScript 2.0 :: How To Have A Picture In Flash, Loaded From A .jpg File
Dec 10, 2008
Im trying to make a slideshow in flash, but i want to be able to change the pictures in the flash file, by just uploading new ones to a FTP server, with the right names and resolution..
Users can write a text, modify it (in type, color and size) and choose a picture (which is loaded through a XML-file) for an e-card, then send it to whomever they want. But when they have made the modifications, how do I save the card, and then store it in a database?
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?
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 need to know the width of a picture I load into a clip. But I always get Zero, while I see the picture properly loaded. What Am I doing wrong in this piece of code ?
how can i resize the dynamically loaded pictures: i have around 100 pictures, and i don't have the time to make thumbnails from every picture. i'm thinking to change the image size to display the thumbnails.In the xml i want to put only the <image>the link of the picture</image> code, and in flash i want to resize this image that will be displayed in the thumbnail scroller.
This is a webpage, where I use a modified gallery from tutorial (xml galllery with thumbs).This place is where I align picture movieclip in the center of area (which is also a mask).Sometimes, action clip doesn't get image _width and _height and load a picture with it's left upper corner in the center of mask movieclip. When I click again on thumbnail - image loads already perfectly how it should be centered. What can be the problem? maybe I missed something?Here is a modified code of the gallery:
In my following code "Btn.onRelease" doesn't work after "LoadImg()" was call, How can I solve this, because I want to detect a click on Btn once the new picture was loaded.
Here is my code : var mcLoader:MovieClipLoader = new MovieClipLoader(); mcLoader.addListener(this); function LoadImg() {mcLoader.loadClip("images/p0.jpg", Btn); }LoadImg(); Btn.onRelease = function(){trace("onRelease"); };
I have a flash file that is 1.5mb in size. As it takes about 6 minutes for someone on dialup to load this file, I have created a smaller swf file and loaded the larger one from it but I don't want the larger one to begin to play until it's fully downloaded. How do I set this up? I have set up the action script 2 as follows: loadMovieNum("top2.swf", 0);
I have a swf that lets you take a picture with your webcam , I have changed the scaleX to -1 so that the picture on screen appears like a mirror. This works fine, when I take a screenshot I am getting a bitmapdata from the video stream, which I am also setting scaleX to -1 to preserve the image the same as from the video. But now I am trying to save that picture as a jpg file, I can't seem to save the pictures as it appears, I can only save it as the original data which is essentially the wrong way around (doesn't preserve the changes made to scaleX = -1)
Code: bitmapData = new BitmapData(this.video.width,this.video.height); bitmapData.draw(this.video); // at this point the bitmapData is the webcam view, but not with the scaleX I applied before [...] var jpgStream:ByteArray = jpgEncoder.encode(bitmapData); // so now this jpg data is of the picture which isn't horizontally flipped How can I get a bitmapData from the video and preserve the scaling I applied to the video?
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.
I am trying to build a site that would give users the ability to upload a picture to a picture frame on my site. I would like AS3 to dynamically re-size, and upload the file from an upload bar under the frame.
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?
Is it possible to control one loaded SWF File eg.(MOVIE-1.swf) from another loaded SWF file eg.(MOVIE-0.swf) on a different level? eg. with a syntax like:
I have made a newsletter for a website in Adobe Flash CS4. What I need is what to save the file format as so that it will not come up as a "picture" on the email. Also how would I make in a single area if you click on it, it will directly send you to the website?
Does anyone know how to get a script of some kind to grab a picture from a live stream and save it as a JPG file?
In this way a cron job can tricker the script and thereby grab a picture fx every 10'th minute and the picture can be shown on a website so people that are not attending can have a look into what is happening in the live stream.
i got five images, and five buttons, every image has a color, and lets say we start at the red one. When i click the the green button i want the green image to fade in.. i fugured out a way to do this on the timeline, but then i have to have a black box first fading in to remove the old picture and then start fading in the new picture..
I made a simple picture slideshow with a timer, prev/next buttons, pause/play buttons and jump buttons. Everything went good so far.Now i'm trying make every picture go to a URL when the picture is clicked but only the link on the first frame goes to the URL when clicked the other 5 buttons do nothing when click.(FYI: I made alpha 0% buttons in a layer above pictures)I tried two different codes but both have no effect.
as layer
Code: stop(); var nextImage:Timer = new Timer(3000); nextImage.addEventListener(TimerEvent.TIMER,playNext); nextImage.start();
I've built a site at [URL]. I'm getting a white panel where a flash swf should be loading. I'm using Dreamweaver to place the flash movie in a template for the pages.
I have an xml file which is loaded into flash - all is fine. One of the nodes has some information text, and within this text I have a url; flash doesn't seem to render the url tho.
I need to make an swf file. This will show the xml data. XML data has to be updated after every 1-2 minute. The swf file has not to be loaded again and again.
What is the largest XML file that can be loaded into flash? I have a 14MB XML file that I'm trying to load into flash. It gets to the listener function that listens for the Event.COMPLETE event fine, but in there when I try to set e.target.data to an XML variable I get an error that says one of the tags doesnt have an ending. I know for a fact that it is a well-formed document. So I'm assuming it's cutting some of it off. Is there a size limit for xml files?
I'm loading an swf file into my main application using URLLoader, I want to get the background color of the loaded swf file. ( I heard that one solution wold be reading the byte code of the loaded swf )