ActionScript 2.0 :: Loading External Jpegs And Stuff

May 2, 2005

on Flash MX 2004 having problems with loading external jpegs and stuff. I got a tutorial from here and loading from a web address on it is okay,
but I can't get my one to load from my hard drive because there is always an error with the path. I know it'll ultimately be on line anyway but I want to know what I'm doing wrong.[code] What's the correct format for putting in a file path?

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Dynamic Loading Of Jpegs With Click Of A Button With Crossfade Between The Two Jpegs

May 31, 2004

I wanted to know the method to do a dynamic loading of jpegs with click of a button with crossfade between the two jpegs

View 2 Replies

ActionScript 2.0 :: Loading External JPEGs & Fading

Mar 15, 2007

II'm trying to create a title page where two movie clips fade in. One is a dynamic text movie clip, the second is an image that is loaded.[code]I've traced the heck out of this, so all I know is that image_mc seems to only generate a single onEnterFrame event and then stops.It seems that if I comment out the .loadMovie line, the placeholder movie clip fades in properly, so obviously there is something about onEnterFrame events and loadMovie that I don't know.

View 2 Replies

ActionScript 3.0 :: Loading Stuff From External SWF

Nov 14, 2009

Have a little homepage, where I load some of the stuff from external swf's. But I have some buttons which is gonna be on top of the external load content, but when I export it the buttons doesn't appear anymore. Underneath I have some AS which I use to load the the external content, and to control my buttons.

stage.addEventListener(MouseEvent.CLICK, clickHandler_contact);
function clickHandler_contact(event:MouseEvent):void{
if (event.target.name!=null){
switch(event.target.name) {
case "contact_back_btn": gotoAndStop("index");
[Code] .....

View 9 Replies

ActionScript 2.0 :: LoadMovie() Not Loading JPEGs Into MC?

Apr 22, 2004

I've used loadMovie() often in the short time I've been using Flash. But never to load a JPEG dynamically. For a site interface, I have little thumbnails, which open to new browser windows. This is partly annoying though, as each one opens in it's own window, so the user would have to close a whole bunch of 'em after clicking all those thumbnails. To try to fix this, I read that JPEGs can be loaded at runtime onto the stage. I've already seen the photo gallery tut, but I only require a pop-up window with one image and no left/right buttons, etc. I've tried following the tutorial for the first few steps, making a shape the size I want the images to be, converting it to an MC, and naming the MC instance on the stage. Then, I created a new layer on frame 1 with

Code:

loadMovie("CS_00_1.jpg", _root.picture);

, but when testing it, I see nothing. I've tried a few different things. Before, the fla was in a separate folder, so I had to include "Screens/" in the name. Just in case that was the problem (I didn't get any errors in the Output), I moved it into the directory with the images. I tried absolute and relative addressing. I opened up the image in PS and resized it to the size of the symbol on the stage and made sure it wasn't Progressive (I read in a thread that Flash doesn't load Progressive JPEGs), but still nothing. I even tried loading a file that didn't exist to make sure it was looking in the right place the other times (as it didn't give me any error).

View 6 Replies

ActionScript 2.0 :: Loading Jpegs Into Movieclips?

Jul 26, 2005

I have filenames of Jpegs stored in a MYSQL database. The filenames are returned with other information by PHP to Flash as variables.

I have some dynamic text boxes that have the variables set so that the textual information is displayed but I would also like a movieclip that behaves in the same way but with the pictures.

How do I create some form of movieclip that reads the variable pic1 that is returned from PHP.

View 1 Replies

ActionScript 2.0 :: LoadMovie Function Not Loading JPEGs Into MC

Apr 22, 2004

I've used loadMovie() often in the short time I've been using Flash. But never to load a JPEG dynamically. For a site interface, I have little thumbnails, which open to new browser windows. This is partly annoying though, as each one opens in it's own window, so the user would have to close a whole bunch of 'em after clicking all those thumbnails. To try to fix this, I read that JPEGs can be loaded at runtime onto the stage. I've already seen the photo gallery tut, but I only require a pop-up window with one image and no left/right buttons, etc. I've tried following the tutorial for the first few steps, making a shape the size I want the images to be, converting it to an MC, and naming the MC instance on the stage.

Then, I created a new layer on frame 1 with Code:
loadMovie("CS_00_1.jpg", _root.picture);
But when testing it, I see nothing.

I've tried a few different things. Before, the fla was in a separate folder, so I had to include "Screens/" in the name. Just in case that was the problem (I didn't get any errors in the Output), I moved it into the directory with the images. I tried absolute and relative addressing. I opened up the image in PS and resized it to the size of the symbol on the stage and made sure it wasn't Progressive (I read in a thread that Flash doesn't load Progressive JPEGs), but still nothing. I even tried loading a file that didn't exist to make sure it was looking in the right place the other times (as it didn't give me any error).

View 6 Replies

ActionScript 2.0 :: Preloader Not Working With External Jpegs?

Mar 26, 2011

Working in Flash CS5 and using ActionScript 2.0 I'm trying to attach a preloader to a MovieClip which has a loader component inside to load an external jpeg. This MovieClip is inside my navigation MovieClip on the main timeline. I've used the same preloader to load my main website and it works fine. I want to have a preloader for my main photos as they take about a second to load and during this time there is just a blank space that shows.Below is the working code for the preloader;

stop();
onEnterFrame = function(){
var percent_loaded = _root.getBytesLoaded()/_root.getBytesTotal();

[code].....

View 1 Replies

ActionScript 2.0 :: Preloader Not Working With External Jpegs

Mar 22, 2011

Working in Flash CS5 and using ActionScript 2.0 I'm trying to attach a preloader to a MovieClip which has a loader component inside to load an external jpeg. The MovieClip is inside a another MovieClip.I've used the same preloader to load my main website and it works fine.I also want to have a preloader for my main photos as they take about a second to load and during this time there is just a blank space that shows.[code]I've changed the _root. part to this. as the MovieClip is not on the main timeline. Any idea how to get the preloader working on my photos?

View 1 Replies

ActionScript 2.0 :: JPEGs Loading Too Slowly Through LoadClip / LoadMovie

Dec 7, 2011

We have photos that are loading too slowly and I need to speed them up. I am using AS2. What's even more perplexing is that at certain times after refreshing the web page, some photos load and some do not. It seems to be random, at various times, the photos that did load do not. I cannot put my finger on why this is happening..

First, I tried using loadMovie(). Then, I tried the var loader:
MovieClipLoader = new MovieClipLoader(); with loadClip()
For each JPEG. You are welcome to look at the site and see if there is anything that I can do to improve the speed of the loading. [URL]

View 0 Replies

ActionScript 2.0 :: Create Dynamic Slideshows Using External Jpegs?

Dec 9, 2008

I want to create dynamic slideshows using external jpegs and for the slideshow to continue until all of the images have been shown. The images in the folder are named 0,1,2,3... etc First of all I want a function to fire that loads an external jpeg.It then checks to see if it exists.If it does it waits 5 seconds then loads the next. If it doesnt I want it to stop and show a default image.So far I have

PHP Code:

fileExists=new LoadVars();
fileExists.onLoad=checkIt;
function checkIt(success) {

[code]....

This checks to see if the image exists and if it does it gets displayed. If it doesnt it shows the default image. How can I add a counter to the "0.jpg" and the

PHP Code:

fileExists.load 

I Know it involves setInterval but I cant seem to get the two things working together!

View 1 Replies

ActionScript 2.0 :: Reusable Loader - Allow For Loading Swf's - Jpegs And Is Fully Customizable?

Apr 27, 2007

Does anyone have a loading solution that allows for loading swf's, jpegs and is fully customizable? My duct tape solution had been to have loaders in every swf that i was planning to load in- but this feels silly. I've tried a couple of components from the adobe exchange but they lacked a bit of elegance. Whether it's a class or example file- I just want to be able to smoothly load content into the parent- where the loader also resides.

View 2 Replies

ActionScript 3.0 :: Parent Loading In Child That In Turn Loads In Jpegs?

Oct 31, 2009

I'm getting a bald patch on my head from frustration with the following problem. I have a parent AS3 swf which loads in a AS2 swf like so;

stop();
var ldr:Loader = new Loader();
ldr.load(new URLRequest( "as2child.swf"));
addChild(ldr);

contained in the AS2 file is the following script which loads in jpegs when the user clicks the next button, etc.

[Code]...

however when you view the AS2 swf via the AS3 swf it does not seem to load in the jpgs when requested.
I need to retain the AS2 file so cannot rewrite in AS3 as the image loading thing is only a small part of the AS2 file.

View 1 Replies

ActionScript 1/2 :: Loader Component Specific Sequence (External JPEGs)

May 28, 2009

I have multiple "Loader Components" placed in a grid that are working great for loading external JPEG's. However, when I publish my file the "Loader Components" load each image randomly (I assume because they load the smallest file in size first then next largest and so on). How do I load the content of multiple "Loader Components" in a specific sequence?

Here is the script I have so far:
////"Thumb1" is the instance name of the first "Loader Component" in the grid.
Next is "Thumb2", then "Thumb3" and so on
Thumb1.load()
if (Thumb1.percentLoaded >= 1 ) {
Thumb2.load();}
if (Thumb2.percentLoaded >= 1) {
Thumb3.load();}
if (Thumb3.percentLoaded >= 1) {
Thumb4.load();}
if (Thumb4.percentLoaded >= 1) {
Thumb5.load();}

View 2 Replies

ActionScript 2.0 :: Loading Database Stuff Through PHP/Flash?

Feb 10, 2005

ok, i have a database with two tables. one table holds the following:table 1 name: lotscolumns: lot_id, number, description, status_idtable 2 name: statusi have a php script that goes as follows (i'm ignoring the description fields for now):

PHP Code:
<?php
// database connection variables

[code].....

View 14 Replies

ActionScript 2.0 :: Loading Stuff From A Txt File To Be Used As Numbers?

Jun 29, 2009

Just wondering. Is it possible to load data from a external txt file in AS2? in particular using the data loaded as a number variable to use for say a Maximum number in a timer counter? for example, say the text file has the variable&numOfPhotos=3how can you make it so flash AS2 can read the variable and convert the number (which I guess is a string) into a Number variable, ready for the swf to use in number related activities?

View 4 Replies

ActionScript 2.0 :: Loading Database Stuff Through PHP / Flash

Feb 10, 2005

i have a database with two tables. one table holds the following:[code]i have a php script that goes as follows (i'm ignoring the description fields for now):[code]now i'm not 100% sure this script is correct, so if anyone sees problems in it, please do let me know. i know that it needs some additions to pull the linking table (status) to display the status_id, but i have no clue how to write that as im not familiar with php, i just took this script from a user on this forum (i apologize for forgetting your name) and edited it.

anyway, i want to be able to pull out all those fields and load them up in flash so i can use them in the scripts over there.i have a grasp on the LoadVars(); a bit but not sure how to pull all this out and if its correct so that i can use it in flash. the fields im most worried about using is the number field in the lots table and the status_id (in both i guess since its a linking table).

View 14 Replies

ActionScript 2.0 :: Loader Component Handy In Loading JPEGs And Scaling Them To The Specified Size

Dec 13, 2004

I've found the loader component handy in loading JPEGs and scaling them to the specified size. However, I've found it a little annoying that when the image is loaded, sometimes you can see the image in it's original size for a fraction of a second before it's resized to fit the loader. Is there any way to avoid this -- such as the loader only being visible after the image is resized?

View 1 Replies

ActionScript 2.0 :: Way To Preload External Jpegs (with % Loaded) Into Empty Movie Clip

Jun 25, 2006

I'm creating an image gallery and looking for a simple way to preload external jpegs (with % loaded) into an empty movie clip.I'm using thumbnails- there are no "next" or previous "buttons".[code]I've been googling/ searching all day.

View 1 Replies

ActionScript 2.0 :: Image Attributes Unavailable When Loading Jpegs Into Dynamically Created Movieclips?

Oct 20, 2004

I have a gallery that reads an ms access database using asp and then loops through an array of records and duplicates an empty movieclip for each record. jpeg is then loaded into the movieclip and then a variable for the _x position is incremented and then the next one is loaded etc.I then use the same method to add the necessary labels for the images by duplicating a movieclip and adding a text fieldThis is all fine and produces a gallery of images but the problem comes when I try and position the labels according to the height of the image. I have tried every method I can think of to check the image attributes which are only available when it is fully loaded, but I keep getting a value of 0.

Code:
stop();
// Set variable holding image folder path

[code].....

View 1 Replies

ActionScript 2.0 :: Easing Scrollbar - Dynamically Loading Stuff Into Main MC

Mar 5, 2004

I've used this script:
[AS]
fscommand("allowscale", "false");
_root.main.attachMovie("boxContect", "boxContect", 1)
bar.useHandCursor = false;
space = 20;
friction = 0.9;
speed = 4;
[Code] ....
If I try to load some thing dynamically into the main MovieClip, it works but the scrollbar doesn't works properly, it doesn't noticed that the height from main has changed.

View 14 Replies

ActionScript 2.0 :: Load External SWFs With Stuff That Appears Off Stage?

Jun 18, 2009

I'm working on a portfolio site that loads external images and swfs (using loadClip). Many of the swfs are banners that have stuff that's viewable off the stage...whoever developed them wasn't smart enough to mask it off, and I don't have the source files.

The first problem I have is the extra stuff is showing up when i load it. The second is that its messing up the width and height properties of the clip (which I need to use to resize a frame that fits around the loaded swf/image). Is there anyway to get the size that the swf document was actually set to with actionscript? That way I can set up a mask. Otherwise I think I'd have to manually create an fla with a mask and correct size for each existing swf that externally loads that swf. Unless anyone can think of a better solution?

View 3 Replies

ActionScript 3.0 :: Rotating Stuff Around Other Stuff?

Jun 29, 2011

So what I'm looking to do now is to actually get that movie clip - in this case an arrow -to rotate around another object - a ship - at a radius of 150 pixels and facing the mouse.This basically means to get the arrow to follow where the mouse goes around the ship - limited by the 150 pixel radius circle it can follow.p.s. This is the code so far:

ActionScript Code:
theArrow.x = theShip.x
theArrow.y = theShip.y

[code].....

View 4 Replies

ActionScript 3.0 :: Loading External Assets - Screen Stops Until The Loading Is Finished?

Oct 11, 2009

I have a movieclip clip that plays when the movie starts, the movieclip is a visual assets that show's that the application is loading some information but it's not showing any loading progress, just playing while the assets are loaded.I created a for loop that will load the assets using a simple loader, and then when the object is loaded the application push the object to an array.Problem is that when the loading starts all the animation that i have on screen stops until the loading is finished.The whole point is that the animation will play while it's loading.

View 10 Replies

Flash :: Loading / Unloading External SWF Using Buttons From Loaded External Files

Feb 23, 2011

I spent almost a week trying to figure out how to unload a currently loaded swf using its button and loading a new swf... I have three files, a main.fla, file1.fla and file2.fla. In my main.fla, I have a code which loads the other two files. If i will click the "unload" button in the file1.swf, I would like the main.fla to unload the file1.swf and load the other file, file2.swf. Here is the code to load the file1.swf:

[Code]....

View 1 Replies

ActionScript 2.0 :: Loading External XML On An External Server Into Flash Movie When It Is Uploaded

Jun 4, 2004

[FMX] I am having trouble loading an XML file on an external server into my flash movie when it is uploaded. The data loads in fine when the flash file is on my local computer with the xml file on a server. As soon as the flash file is uploaded the XML data will not load in.

View 2 Replies

ActionScript 3.0 :: Loading In And External Swf And Unloading It From A MC Button Inside The External Swf?

Nov 2, 2010

I used to do this fine with AS2 and now i'm struggling to get it to work in AS3.my code is as follows:

PW1.addEventListener( MouseEvent.CLICK,loader1 );
//==================== PS function =============================================
var ldr:Loader = new Loader();

[code].....

View 3 Replies

ActionScript 3.0 :: Loading External SWFs From Another External Swf Into The Main SWF Container?

May 4, 2011

I have created a main "site.swf" file that loads a "default.swf" file into a container after a preloader. On this default.swf file I have buttons that needs to load new external SWF files in its place in the container. All of the external SWFs contain buttons and navigations that will also call up other external SWFs into this container. So, I would like to know how to program each button (some are movieclips as buttons) to unload itself and load the respective SWF into the container (eg. AboutUsButton to call up aboutus.swf into the container). I do not have a main navigation on the site.swf file bacause the navigation changes on each SWF that needs to be loaded into the container.

View 2 Replies

ActionScript 3.0 :: Loading External Pngs And External Text With Html?

Jul 19, 2009

I want to load external png's through this code:

(for this code, check the mcBandPreloader in de .fla file)

Code:
var imageLoader:Loader;
var RespJpeg:String = "images/arch1Proj.jpg"
function loadImage(url:String):void {

[Code]....

Here the problem is that I can't type html in my external txt file. (I did checked the html button in Dynamic Text Properties. What am I doing wrong here?

.fla can be downloaded at [URL]

View 2 Replies

ActionScript 2.0 :: Loading A External Swf Into A Movie - Its Loading Only A Part Of It?

Mar 16, 2004

I'm loading a external swf into a movie everything is fine with that. The only problem is that its loading only a part of it. Does anybody know why? Also, this swf is a mp3 player with streaming. The streaming part works but the playback doesn't.If i start only the mp3 player by itself it's working.here is the fla for the player

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved