View Full Version : Loading Jpegs from ouside flash
Binbag
05-22-2002, 03:53 PM
I there a way I can pull jpegs from a specified url into a symbol in flash. I need a quick way of updating images on a weekly basis. The thinking is I can replace the images with the same name on a server and get flash to update the images each time the movie loads.
Is this possible???
Thanks for any advice.
mad_A
05-22-2002, 04:24 PM
if you are using MX you can use dynamic jpegs. Otherwise the easiest way I know of is to pass the jpeg name to flash with xml, asp or php and pop them up in a window of their own. Might not work for your purpose though.
A
Binbag
05-22-2002, 04:47 PM
The dynamic Jpegs seem like the best option as they need to be contained within a specific movie. I can't seem to find any reference to this in flash help.
Any advice would be appreciated
Thanks
farafiro
05-23-2002, 06:13 AM
if u don't want to do it with mad's way try this:
impor your mpeg to a flash file and adjust it with the way u want it to be (i.e. the stage dimentions, frame for the move, text over ....)
publish it as swf
now u can load it to any other movie with the loadMovie()
avatar
05-29-2002, 02:24 PM
loadMovie
Availability
Flash Player 3.
Usage
loadMovie("url",level/target[, variables])
Parameters
url The absolute or relative URL of the SWF file or JPEG file to be loaded. A relative path must be relative to the SWF file at level 0. The URL must be in the same subdomain as the URL where the movie currently resides. For use in the Flash Player or for testing in test mode in the Flash authoring application, all SWF files must be stored in the same folder, and the filenames cannot include folder or disk drive specifications.
target A path to a target movie clip. The target movie clip will be replaced by the loaded movie or image. You must specify either a target movie clip or a level of a target movie; you can't specify both.
level An integer specifying the level in the Flash Player into which the movie will be loaded. When you load a movie or image into a level, the loadMovie action in the Actions panel in normal mode switches to loadMovieNum; in expert mode, you must specify loadMovieNum or choose it from the Actions toolbox.
variables An optional parameter specifying an HTTP method for sending variables. The parameter must be the string GET or POST. If there are no variables to be sent, omit this parameter. The GET method appends the variables to the end of the URL, and is used for small numbers of variables. The POST method sends the variables in a separate HTTP header and is used for long strings of variables.
Returns
Nothing.
Description
Action; load a SWF or JPEG file into the Flash Player while the original movie is playing. The loadMovie action lets you display several movies at once and switch between movies without loading another HTML document. Without the loadMovie action, the Flash Player displays a single movie (SWF file) and then closes.
When you use the loadMovie action, you must specify either a level in the Flash Player or a target movie clip, into which the movie will load. If you specify a level, the action changes to loadMovieNum. If a movie is loaded into a target movie clip, you can use the target path of that movie clip to target the loaded movie.
A movie or image loaded into a target inherits the position, rotation, and scale properties of the targeted movie clip. The upper left corner of the loaded image or movie aligns with the registration point of the targeted movie clip. Alternatively, if the target is the _root Timeline, the upper left corner of the image or movie aligns with the upper left corner of the Stage.
Use the unloadMovie action to remove movies loaded with the loadMovie action.
Example
The following loadMovie statement is attached to a navigation button labeled Products. There is an invisible movie clip on the Stage with the instance name dropZone. The loadMovie action uses this movie clip as the target parameter to load the products in the SWF file, into the correct position on the Stage.
on(release) {
loadMovie("products.swf",_root.dropZone);
}
The following example loads a JPEG image from the same directory as the SWF File that calls the loadMovie action:
loadMovie("image45.jpeg", "ourMovieClip");
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.