ActionScript 3.0 :: Swf And Images In One Gallery: Can't Get It To Work
Sep 8, 2010
I have an image gallery into which I would like to load both image files and swf files. The content is loaded through an XML file. The images are loaded correctly, but the swf-file isn't. I get this error:
TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::MovieClip@3ffc2e1 to flash.display.Bitmap.
at player_sheit_fla::MainTimeline/addSlideContent()
at player_sheit_fla::MainTimeline/fadeSlideIn()
since Flash can't load an swf as bitmap. It all boils down to this function:
ActionScript Code:
function addSlideContent():void {
// empty current slide and delete previous bitmap
[Code].....
How can I load both swf and image files into my gallery?
View 6 Replies
Similar Posts:
Dec 22, 2005
i couldn't find a tutorial on this matter so i sorta started making my own hypothesis... what i'm trying to do is: have a gallery of images automatically scrolling horizontally while having the set of images loop. like at[URL]..
here are a couple of my theories and questions for AS commands to have this work:
1) display a range of pixels of an image at certain positions, i.e. if gallery is scrolling to the left, leftmost image when its parts are disappearing out of the viewing area, they become visible at the right.
2) have two instances of each image and when an image is disappearing on left, the second instance of that image comes visible on the right. this I imagine would take up more HD space.
i guess what i was wondering more about is how jager did their gallery where there's only enough images are in a set to be viewed in the viewing area.
View 3 Replies
Mar 24, 2010
I'm a newbie to AS3. I can't get my little image gallery to work. Not even the stop actions work! If you have a moment to look at my little script [URL]..
View 1 Replies
Nov 18, 2010
I want to place an XML image gallery into Dreamweaver. The gallery folder holding my pictures, thumbs, xml and swf are all in my site folder. When I try to preview it in my browser (IE) it shows up as a blank white box.
View 1 Replies
Aug 23, 2011
[URL] When you click on the design button, the gallery doesn't work. The thumbnails come up, but when you click on them there's should be a full sized image at the top.
View 3 Replies
Aug 15, 2006
i got an image gallery that reads data from an xml file. this xml formatted data is from a php file. when i open the gallery it loads the 1st image; when i click next it loads the 2nd and so forth... but as soon as it has loaded all the images once, it gets stuck. i dont know what to do. when i had the gallery read directly from an .xml file things were working fine but as soon as it was data from a php file that was xml formatted this problem started to occur.
View 1 Replies
Sep 22, 2008
Main requirements for that gallery are:- must be updated via xml file- must be auto resize- thumbnails must be floating like in example- also must have preloaderhat's allIt is my first serious project with flash and it will be good to get any tips how to start doing all of that.Especially I am interested how it is possible to make such floating thumbnails which are also preloading.
View 2 Replies
Dec 11, 2009
What i need is to be able to pull images from a folder, and just be able to dump images into a folder and not have to keep updating an xml or fla file.
View 1 Replies
Nov 23, 2011
I'm trying to create a flash photography website. I have four navigation buttons on the main page. Home, portfolio, features and contact. The feature section has more navigation buttons that should take me to individual galleries. So now i can navigate to the features section, but cant go to any specific gallery. I wrote an addEventListener code for the sub gallery buttons, but i'm getting the error "1120:access of undefined property stilllife". Still life is one of the buttons in the sub gallery. I'm getting the same error for all the buttons in the sub gallery. I've given an instance name for all the buttons so i dont know what the error means. I even tried calling a different funtion. when i test the movie, the whole thing keeps playing in a loop. ? I can paste the code here if anybody wants to look into it.
View 10 Replies
Jan 31, 2009
I have been working on a flash website and finished it yesterday, and among other pages, i have a gallery section. The gallery works perfectly on my local PC, but when i try to upload the website to ftp so I can put it online, the gallery shows completely wrong, in fact only one picture is visible. The AS code for the gallery is written in one movie clip with the instance name gall, and this movie clip is located in the actual page of the gallery, the one with the animation. I don't know if that's relevant, but i thought i should mention.I have attached a pic of what the right gallery looks like on my PC
View 1 Replies
Feb 18, 2003
I was able to get photo gallery tute to work. However, I want to have photo gallery (picture in dump is not going to be used, just example) on my web page under my portfolio section, when I tried this I found the movie clip moved from position when I previewed movie? What do I do? I've just started on Flash so be kind!
View 1 Replies
Jan 31, 2009
I have been working on a flash website and finished it yesterday, and among other pages, i have a gallery section. The gallery works perfectly on my local PC, but when i try to upload the website to ftp so I can put it online, the gallery shows completely wrong, in fact only one picture is visible. The AS code for the gallery is written in one movie clip with the instance name gall, and this movie clip is located in the actual page of the gallery, the one with the animation.I don't know if that's relevant, but i thought i should mention.I have attached a pic of what the right gallery looks like on my PC
View 3 Replies
May 28, 2009
I'm having a hard time getting my global variable to work with my xml gallery. I have a button which has the url of the xml file I want to load, so when I press the button the gallery will display the xml file I chose. Here's my button code:
on(press){
_global.GALLERY = url;
//url = gallery1.xml
}
And the code in another clip for the images is:
Code:
gallery_xml.load(_global.GALLERY);
View 5 Replies
Sep 30, 2009
what i'm looking for is to create a gallery of images. there are 12 images in total with 3 showing. I want to add a forwards/next button that will cause the gallery of images to scroll across, with a smooth action, when the cursor hovers over the fowards button. I don't want the next images to show 1 by 1 but the gallery to gradually scroll arcoss(like all of the images are on one long reel being pulled from the left)
View 2 Replies
Nov 17, 2009
I created a flash image gallery for my site but the images look pixelated. I really don't like the way they look. Im fairly new to web design and very new to flash.
View 3 Replies
Jun 23, 2009
I am wondering if someone knows how to create a picture gallery where the images are online (web hosting folder). I need a tutorial to add the script to my existing swf.
View 1 Replies
Jul 6, 2009
I am putting together a gallery that will show about 60 images. basic fade-in transitions between the images. I need to animate the company logo (very basic) and show some text below each image), becasue of this I dont know if any off the shelf xml based gallery will work? As usually you just define the image name/path and run the swf. This is for a presentation and not web so maybe not possible to be Xml based. Is there anything that is out there that could work for this and if not i suppose I am doing everything in flash but fear this as thimeline will be so long and a bit of a nightmare to do, if I have to do this in flash, I would have each image occupy about 20 frames 1-9 it will fade in, frame 10- a 10 sec pause, and frame 11-20 a fade out, that will still give me a timeline of 1200 approx.
View 1 Replies
Aug 24, 2011
[URL].. The images on both the thumbs and the final seem jagged.
View 6 Replies
May 1, 2009
There is a site with an image gallery that uses Adobe Flash.Is there a way I could capture the images? ( Apart from print screen)Softwares like Orbit do well with .flv videos, but don't work with images.Is there something that will help me getting a direct path to the images?
View 3 Replies
Jul 26, 2010
Is there any ready built images gallery as shown in this link? [URL]. If I were to build it by retrieve from database contains links to images and display on each containers, would TileList be useful as I'm will be using it for displaying Classifieds images.
View 2 Replies
Jun 18, 2009
I modified some code for loading xml images into a gallery that I found somewhere, but I have no idea how to go about preloading the images. Everything works fine, I would just like to know the best way of going about doing this. Here's the code I got:
[Code]...
View 3 Replies
Aug 10, 2009
I'm worried about images stacking on top of each other. The thumbnails are loaded using a for loop through XML, (10 thumbnails). And by using event.target.name when you click on any thumbnail it calls a function (showPicture).
[Code]....
View 8 Replies
Jan 8, 2011
I am building a gallery and my client asked me if i can do it with links. Something like this: [URL] and so on. I am reading the images from an xml
View 6 Replies
Feb 8, 2011
I have a problem with an xml photo gallery nothing special about the code just a simple xml loader routine, everything works fine on my local machine but testing on the server only displays some of the images?
View 1 Replies
Jul 10, 2005
ive just butchered myself a gallery together which loads different xml documents (with image references in them) into an empty movie clip on the main stage-however- the images are all different sizes, and I cant seem to modify the script so that they will center correctly- i know I need to preload them in order to get the correct size for each image and then reload and display so that the x and y coordinates are correct-im using this script from kirupa's xml gallery tutorial- each different section of the gallery has this script attatched to the button that displays it-but im really stuck as to where to add a loop to ***** the images.- my brain hurtsI
on (release) {
function loadXML(loaded) {
if (loaded) {
[code].....
View 8 Replies
Jul 21, 2006
I recently used this [URL] tutorial to make a gallery in my site.
I wanted to know if there's a way of adding a preloader for the pictures.
View 1 Replies
Aug 6, 2006
Here's what I have:
I have it setup where you can choose multiple galleries to look at. It starts with a square image that is a movieclip. Inside that, it has the words Gallery1, Gallery 2, etc. Each of those words is a movieclip. Inside each movieclip is a XML gallery setup. So by clicking on "Gallery1" for example, it loads the images for that gallery, and buttons for previous and next image appear. The gallery works fine, except that I also have a button for returning to the gallery selection part. The return button works in the sense that it does go back to the gallery selection part. The problem is that it doesnt clear out the current XML gallery image.
The different galleries are there underneath, because they can be clicked on at that point. It just doesnt clear out whatever the last image was.
View 3 Replies
Aug 6, 2009
This is really strange, and I'm not sure what the problem could be. I essentially made an XML/Flash image gallery where the images are loaded dynamically. I followed this tutorial:[URL]When I tried the site with the "www" in IE6, it warns me that the some Active X control is attempting to be installed, and blocks the whole flash block (even though the other flash along the sides show up fine in IE6)Edit: By the way, just to be clear, the FLASH is loading in both cases, but when the "www" is present, the images do not load from the XML file, even though the flash movie itself is visible and loaded.
View 1 Replies
Aug 20, 2009
I have completed the excellent Flash Thumbnail Gallery Tutorial (and the Picture gallery Tutorial). I have been able to update the dynamic text content, and basically customize the look and feel of the .swf. That works when I upload it to my website.My problem is that neither in Preview mode (via Flash) nor once uploaded to my website can I get my XML file to call my own images up. It will call the tutorial images from Kirupa if I leave them in there.
I have tried to use relative and absolute file paths for the image URL, and neither is working. I even tried using "image ID=" tags inside the node, to no avail. I have an image directory that is a few folders deep, so I tried putting the XML, FLA and SWF (all together) in different places, updating the SWF on my html page, and then republishing. In the place where my image should be, there is nothing.Flash reports an error when I hit CTRL+Enter that it cannot find those particular files.
View 5 Replies
Dec 2, 2009
simple way to fade images out/in on a basic gallery.I am tearing my hair out trying to find a simple transition method.
View 2 Replies