Reply LinkBack Thread Tools Search this Thread
Old 12-03-2007, 17:59   #1 (permalink)
?uestlove
Registered User
 
Join Date: Sep 2006
Posts: 44
Is it possible to create pop ups from files in your library

I just started using flash and I'm working on a file for class. I want to be able to click thumbnails and there be a popup with the full size image. Can I do this with just files in my library? I only know how to use the getUrl tag to make popups. This isto be turned in as a flash file and isn't part of a website so I can't integrate javascript into it.
  Reply With Quote
Old 13-03-2007, 13:09   #2 (permalink)
babydutka
what sarah said
 
babydutka's Avatar
 
Join Date: Sep 2006
Location: Ontario, Canada
Posts: 203
Send a message via AIM to babydutka
Hmm... I'm not totally sure but I don't think you'll be able to do it from your library. Flash (unlike it's cousin Director) doesn't export the SWF with the library contents. Thus, I think you'd need to have the images in a folder and getURL to those files.

Anyone else have thoughts?
  Reply With Quote
Old 13-03-2007, 19:10   #3 (permalink)
EGONick
Programmer
 
EGONick's Avatar
 
Join Date: Jan 2007
Location: UK, Manchester
Posts: 36
Make a new layer which contains the "popup" inside a movie. As soon as the flash document loads, hide the movie.

Code:
movie._visible = false;

In the popup movie you'll need an empty movie clip which is where the image will load in to.

Then you need to make on release events for the smaller images which you've loaded on to your flash document.

Code:
on(release) { movie._visible = true; movie.importMovie('imageinlib', 'imageshow', 0); }

basicly, you call the image imagelib in the library. it must be added to a movie first. for the movie you've created which contains the image, right click, go to linkage, click export for actionscript, this will allow it to be imported using the import movie function.

Last edited by EGONick : 13-03-2007 at 19:24.
  Reply With Quote
Old 14-03-2007, 09:57   #4 (permalink)
babydutka
what sarah said
 
babydutka's Avatar
 
Join Date: Sep 2006
Location: Ontario, Canada
Posts: 203
Send a message via AIM to babydutka
Quote:
Originally Posted by EGONick
basicly, you call the image imagelib in the library. it must be added to a movie first. for the movie you've created which contains the image, right click, go to linkage, click export for actionscript, this will allow it to be imported using the import movie function.

I stand corrected Nice work!
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8