ActionScript 2.0 :: Turning Dynamic LoadMovie JPEGS Into Buttons?

Sep 5, 2005

I am using PHP and XML to make a dynamic list of pictures. Each picture also has attributes with information concerning that picture. I have successfully loaded these images with the following code:

Code:
for( var x=0; x<Card.length; x++ )
{
loadPic.createEmptyMovieClip("pic" + x, x);

[Code].....

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 :: 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 :: 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 :: 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 :: Jpegs Load Too Slowly Through Loadclip() And LoadMovie()

Dec 8, 2011

At work, I am trying to load JPGs externally using AS2 loadMovie() and loadClip() and the photos take too long to display. My boss does not want a preloader, so the photos just need to display on our website immediately.

Some of the photos are between 75K and 150K and photos do not display in order. They come in at different times. Because of this, my boss is claiming that I did not complete the pages although they are done and I am just loading the photos from outside the SWF.

View 10 Replies

ActionScript 2.0 :: Making Jpegs Loaded Into Flash Function Like Buttons?

Mar 2, 2009

im loading in a bunch of jpegs (which are ref from an xml file) but i cant seem to get the to function like buttons.

Code:
for (i=0; i<total; i++) {
_root.createEmptyMovieClip("myClip" + i, i);

[code].....

View 1 Replies

ActionScript 3.0 :: Turning Xml Text Field Data Into Buttons Possible?

Jul 27, 2009

i have a dynamic text field which is filled by a list of attributes pulled from an external xml file... this is working fine... i would like to now turn each of these text attributes into a 'button', essentially giving them all event listeners but have no idea where to start for this...? can you turn text field data into interactive objects? or is there a better way to turn xml data into links?

View 2 Replies

ActionScript 2.0 :: Turning XML Loaded Images Into Pressable Buttons

Aug 6, 2008

how to turn individual thumbnails I've loaded through XML into pressable buttons that each have different functions. here is the code I'm using to display the XML ...

Code:
function callThumbs() {
_root.createEmptyMovieClip("container_mc",_root.getNextHighestDepth());
container_mc._x = _root.gallery_x;

[Code]....

View 5 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

Professional :: Disable Buttons Beneath LoadMovie?

Apr 11, 2007

Is it possible to disable buttons in a movie clip that is on the root level so that a movie loaded on top of it into level1 doesn't have any hot spots? My file is a map that starts as a movieclip with buttons in level0. There is another movieclip/button that when clicked loads a detail map on top into level1. I would like to have some new buttons in the level1 movie clip but the buttons in level0 are still active and it's confusing to the user. As a workaround, I've created an invisible button covering the entire detail map that doesn't do anything other than change the cursor to the pointing finger.

View 5 Replies

ActionScript 2.0 :: LoadMovie - Buttons Won't Load The Movies

Nov 8, 2003

I am working with Flash MX. I am creating a site with a Main.fla which contains buttons to load other SubPage.swf files. For example, I have a Page1 button with the following actionscript code.

on (release) {
_root.contents.loadMovie("page1.swf");
}

It works fine. Now when I work on the Page1.fla, I am trying to load other Movies in the same fashion. It works when I CMD+RETURN to generate the .swf file. However when I CMD+RETURN the Main.fla file and load the Page1 file, the buttons won't load the movies. Is this a Target Path issue? How would I remedy this?

View 4 Replies

ActionScript 2.0 :: LoadMovie. Buttons Beneath Still Active?

Feb 19, 2003

When I load a movie, the buttons that are beneath (on my main movie) are still active... Is there a way that these buttons can't be active.

View 2 Replies

ActionScript 2.0 :: Buttons Below Stay Active After A New LoadMovie?

Jan 31, 2006

when I load a movie in a container in the main swf, the buttons below the loaded movie stay interactive and conflict with the loaded movie. is there a way to get around this,deactivating or pausing the main movie so when you load a movie in the container, the main movie doesnt interfere with the loaded one?

View 2 Replies

ActionScript 1/2 :: Dynamic Text Not Seeing - Loadmovie

Sep 3, 2009

I have two swfs. swf-1 is the user display. it calls loadmovie swf-2 - loadMovie([URL]); swf-2 has webservice that returns data to be displayed in swf-1 Everything works fine if I have swf-1 and swf-2 on the same [URL]. If swf-1 is on [URL] and swf-2 is on [URL] the dynamic text is not being displayed in swf1. I have the fonts embeded in the dynamic text field. The mc's that hold the dynamic text are being created (have a graphic that is visible), just not seeing the text.

View 4 Replies

ActionScript 2.0 :: Dynamic Text Using LoadMovie

Jan 29, 2010

I've a problem working on a project involving multiple language changes using the loadMovie function. Here's the setup: The project involves several pages, all of which are separate swfs. These are located on an existing website, so everything's already created (I'm just updating). On the pages are Static text fields. My task is to incorporate language buttons that when clicked, change the language. For example, the language buttons are English, German, Italian, French, Spanish. If I clicked the Italian button, all text fields change to Italian - and remain so until I click another button. The default language is English.

I changed the Static text fields to Dynamic text fields, gave each an instance name, and placed variables for each instance in a separate language swf (example: langEnglish.swf, langGerman.swf, langItalian.swf). The default language file - langEnglish.swf - is loaded in the first frame using the loadMovie function. When a language button is clicked, it loads a new language swf (they load into an empty movieclip, btw). Clicking the button also updates a variable called "language", so as to remember the current language. The ActionScript for the various variables in the language swfs looks like this:

[Code]...

View 2 Replies

ActionScript 2.0 :: LoadMovie Not Waiting For Dynamic Content?

Jul 30, 2009

I am creating a site where it is loading dynamic images and text within the SWF. Currently for images I am using the loadMovie command. This works typically when I do not have images of significant size, however I am having trouble getting the movie to check up if a larger image needs to be loaded. Here is my current code below, it does not seem to be checking to see if the clip is loaded and simply ignores it if the timeline reaches the actionscript before the image is loaded. _root.generalVars.homeImg is a variable that I define outside of flash

//creating empty placeholder
this.createEmptyMovieClip("tester",1)
tester.onData=function(){

[code]...

View 2 Replies

ActionScript 2.0 :: LoadMovie In The Target _root.as. And The Url Is Dynamic

Nov 26, 2005

I want to loadMovie in the target _root.as. And the url is dynamic: _root.as.loadMovie(_root.link) Unfortunately the movie isn't loaded I tried to convert _root.link to string but nothing

View 13 Replies

ActionScript 2.0 :: LoadMovie With Dynamic Text In Parent Movie

May 16, 2003

(I previously posted this thread in Flash MX Forum but I think it should be here instead. Sorry) Funny behaviour...I'm trying to load an external MC containing dynamic text (MC-Clip.swf) to a MC empty holder (MCimport) within my main/parent movie. This piece of AS is attached to a button (to call the dyn. txt clip):

on (release){
_root.loadMovie ("MC-Clip.swf", "MCimport");
}

With this, the dynamic text gets loaded indeed... but Fullscreen into the parent movie, and not into MCimport (where it should be). Now... I don't understand why, but the thing is that if MC-Clip.swf contains just static text (and change accordingly the text properties to static text in the holder MC), it gets loaded in the right place (MCimport) within the main/parent movie. (?!??!) And this is the piece of AS attached to the button (to call the MC containing the static txt):

[Code]....

View 4 Replies

ActionScript 2.0 :: XML Loading, Dynamic Buttons, Dynamic Text Fields?

Jun 7, 2006

I can't get the code to "know" which of the dynamic thumbnails has been clicked (by "know", I mean return an index value, say 0 through 7 if there are 8 projects, that I can use to access that particular project in the array of 8 projects in the rest of the code)... So if the third movieclip thumbnail were clicked, I'd like "2" to come up somehow... I've tried this code, which is kind of lame, I know, based off of the idea of each of the thumbnail movieclips' names ending in their index number:

Code:
//"this" is the button that was pressed; would return a string ending in
//thumberMC_<number of whichever movieclip thumb was clicked>
var: testString:String = this;

[code]....

Lastly, there's a dynamic textfield I'm trying to create that never shows up for some reason. Again, you could see in the FLA (in the "createDrawer" function around line 424).

View 9 Replies

ActionScript 3.0 :: Dynamic Buttons And Dynamic Text Field?

Mar 21, 2009

I am using buttons with a dynamic textfield and a function to set the label for various different buttons:

public function setLabel(thisLabel:String) {
visibleLabel.text = thisLabel;
}

I set a label for each button:

btn_mc.button1.setLabel("2 | Al Sabkha Bus Station - Al Qusais Police Housing");

I have a dynamic textfield ... myText ... which I would like to use as a page title ... so once the button has been clicked, the dynamic textfield should update with the label of the button clicked.

View 1 Replies

ActionScript 2.0 :: Targetting - Use LoadMovie() To Load Movie Into Main Movie - Buttons No Longer Work

Oct 1, 2003

I have a movie. In it are some buttons and a dynamic text field. When I press the buttons is should load text from a database into the dynamic text field. If I run the movie by itself (ie. not by LoadMovie()-ing it into a different movie) the dynamic text field gets filled with text and all is well and good. However, when I use LoadMovie() to load this very same movie into my main movie, the buttons no longer work; the text field stays empty.

[Code]...

View 9 Replies

ActionScript 3.0 :: Object Oriented Programming - Add Text From String To Dynamic Text Field When Click Dynamic Buttons

Oct 14, 2011

All I want to do is add text from my string to dynamic text field when I click dynamic buttons. What should the as code be for this? Here is my code. Right now I just have the click returning another shape.

[Code]....

View 2 Replies

ActionScript 2.0 :: Preloading Swf's And Jpegs?

Jun 5, 2007

First of all I dont really know if I posted this in the right section, because I don't really know what I'm looking for. I'm building a website that consists of some swf files and a lot of jpeg images. Now because this is a relatively big design the loading of the page can take some time and it doens't look good if you open it for the first time on a slower internet connection.

Now I do know how to build a pre-loader for a swf file, putting the pre-loader function on the first 2 frames of my movie and let it load from there. But because my site isn't all flash nor does it contain only one swf file I cant use this option.

Basicly what I'm looking for is a pre-loader that loads my jpeg images and my swf's before entering my website. Can this be done in flash?? (Or has anyone suggestions in what languages/scripts I should look for to accomplish this.)(Note that I must load multiple jpeg and swif files)

View 9 Replies

IDE :: Pixelated Jpegs With Swf Resizing?

Feb 10, 2009

I have a swf embedded in a HTML page at 100% - so it resizes with the page. In this I am dynamically loading jpegs... however, if the swf is displaying at anything other than its original size the jpegs look clumsily pixelated... which would be understandable if they were bigger than their native size, but it also happens when theyre smaller....

View 4 Replies

ActionScript 3.0 :: Jittery Tween On Jpegs

Mar 11, 2010

I am using TweenMax to tween 3 images across a screen at a time (there is a next button that tweens the first image offstage, and moves the next image in its place and moves another onscreen and so on in a loop). The images are loaded dynamically. In the class that handles each image I use this code:

[Code]...

View 1 Replies

Load In .swf Files Instead Of Static Jpegs?

Mar 23, 2010

load in .swf files instead of static jpegs

View 2 Replies

Professional :: Creating Animations From Jpegs?

Oct 20, 2011

I need to create animations fron a set of jpegs. I can layer selections in photoshop; create symbols in Flash, although When I open a multi-layer psd in FL, don't always get multi-layers in FL. More importantly, what graphic/symbol formats are required for the typical animation techniques (eg, different tweens, bones, puppet).

View 1 Replies

ActionScript 3.0 :: Opening Jpegs With URLRequest?

Apr 10, 2011

I'm creating a file with buttons and thumbnails that when clicked, opens up jpegs. I've written script that works successfully, opening the jpeg from the swf in Preview. This works for my desktop. However when using my laptop, the jpeg opens in Opera.

How do I write the code so that the jpegs open in Preview by default regardless of what computer one is using? Below is the script:

domino_mc.addEventListener(MouseEvent.CLICK, dominoClickFunction);
function dominoClickFunction(e:MouseEvent) {
var url:String = "domino.jpg";
var request:URLRequest = new URLRequest(url);
navigateToURL(request);
}
buttonMode = true;

View 2 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







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