ActionScript 2.0 :: XML Load Image And Link
Nov 2, 2005Any easy way to load an image with xml and also have give that image a link?
View 2 RepliesAny easy way to load an image with xml and also have give that image a link?
View 2 Replieshow can i tell flash to pop a preloader after the user click the import image via link?
Code:
image_button.addEventListener (MouseEvent.MOUSE_DOWN, load_image);
// load image
[code].....
I have a very general requirement that seemed very simple: Step 1: Load a new external JPEG image into a MC with a string var encoding a string caption in the URL link (VALUE="../fadeTest.swf?someTextVar=TestCaption") within the EMBED / OBJECT sections. I know how to do this and it semed to work fine. STEP2: When the JPEG is loaded I would like the substituted Text to Fade In over the JPEG. The JPEG should also fade in before the Text. The fade rate should be programmable.
[Code]....
I am trying to add a link to an image using ActionScript. I do not see the link no matter what. [code]...
View 1 RepliesI guess its probably a simple thing to do - but is there anyway to use flash simply as a link image? I have a link animation I would like to use after each url link, I have setup the code as but when clicking the flash file nothing happens, only when clicking the link text. I guess I need to turn off the interaction via a param, but cant find which to use.
View 1 RepliesJust finishing something out and have an XML file that loads info into a Flash file that I'm looking to have a link in. I'm honestly generally pretty much straight up HTML and CSS when it comes to web stuff, but XML seemed to be the way to go in this situation. Just curious how to add a link into the content area here[code]...
View 13 RepliesItīs possible to load a external swf with a link made from a file.txt?
View 1 RepliesHow to put a link in a image in Flash CS4?
View 3 RepliesI have a pretty large which was coded using AS2 in about 2006 so I'm trying to make a few changes using AS2 which I'm pretty rusty on. I have a swf which loads an xml file into a textarea in flash and it all works well. I have to link some images which appear in the xml file but those images have to be links to external sites and that is where I am running into problems with my asfunction. Here is the code.
[Code]...
I have a template and I need to replace the images, and then to add the big size image and to make a link between them.
View 1 RepliesI recently bought this template: [URL] but I have a big problem. I want to add a hyperlink over the big images which appears when you click on bedrooms for example. There are 9 small images in the right side and 1 big image on the left. I changed all the images but I want also to add hyperlinks on some big images. The action script import an xml file like: <?xml version="1.0" encoding="iso-8859-1"?><root>
[Code]...
I'd like to call up a scene when an image is pressed. I understand, I think, where the image is located on xml and the fla/actionscript. Here are the corresponding parts
xml:
<image imageUrl="_pic16.png" link="asfunction:link"/>
actionscript:
[code].....
My Problem is that I Cannot Link an image in the clip. Here are my codes:
ActionScript Code:
SlideShow_mc.slides_mc["holder"].loadMovie(this["imageuri"], SlideShow_mc.slides_mc.getNextHighestDepth());
These are the error messages:
TypeError: Error #1010: A term is undefined and has no properties.
at SlideShows_fla::MainTimeline/SlideShows_fla::frame1()
Well yeah, I thought so as well. I mean I know the 'formula' by heart on how to add the link to an image (make it into a button, blah blah blah)
But for some reason when I do that, it doesn't work.
I want to add 5 links (lets say google.com) to the 5 images that are in a slider.
For some reason it gives me like... oh man.. so many errors
Here is the link, its about 500kbs, the link is located at the BOTTOM, RIGHT, CORNER: [URL]
I need some help with the actionscript 2, needed to link my xml loaded image to url. This is what I have in my xml file, for the image I need to link to a url:
<image imageUrl="_sustainable_small_1.jpg" />
I am not sure how to add the link tag, in the xml, correctly. Also, I do not know the AS needed, for the .fla file.
I downloaded a flash template which uses XML and CDATA to get its content. It has "Main" pages and from those you can click a read more link and go to "Read More" pages. I would like to be able to add an image to the "Read More" pages.(I'm annoyed the author didn't include a sample image in these "Read More" sections so I could just replace the image file instead of trying to figure out the right code to add! But I'm sure there's a way.)In my .fla file, the "Main" pages are frames 2-7 and the "Read More" page is frame 8 within the movie clip "pages2_1". The Actionscript for images on the "Main" pages looks like this:[code]
View 9 Repliesi want a link at the big img follow the example . it's a beautifull gallery.
stop();
klik.visible = false;
var A:Array = new Array
var B:Array = new Array
var C:Array = new Array[code]...
I am trying to get buttons with ID's to use the URL that is located in the XML file. The button is associated to the ID in the XML, so they need to use that ones URL. They are all displayed on the page at the same time. So they will be essentially e.g. Hotspots on a map, that link to a specific HTML page. I have attached an example file of what I am trying to achieve.
View 6 Repliesim wondering if flash can load an image link and use flash as the container. Like uhmm, ill provide a dynamic or input text, then the user will provide the link to the dynamic/input text then after they click the "upload image" button, the image will be loaded to the movie clip container.
View 9 RepliesI am trying to load a colour image and then it is changed to black and white image. Here I am using a mask. But it is not getting worked. The code that i am using for this purpose is attached following: import
[Code]...
I developing a site where on the homepage, there are about 6 images that rotate, but if you click on a sub link, a different image loads. But the problem is that, the first image has to cycle through before the second image loads. I want the second image to load immediately.
[Code]....
I have an application that I'm migrating from flex 3 to flex 4.5. In this application, there is some mx Image components that load a simple swf file (image). Spark image doesn't load swf files, so I was wondering, should I keep the mx Image, or should I change it to SWFLoader? Is there any advantages to using one or the other?
View 1 RepliesWhat would you use to create buttons which when pressed load an image in an image area within the same flash document?
View 1 RepliesThis shouldn't be too difficult, but what I have is a button, which in the 'over' state I want to load an external image, and then have the image disappear when the users mouse hovers off the button
View 2 RepliesI'm creating a moodboard application where the user can dynamically load an image onto the stage by pressing a thumb of the image in a menu item. I have most of that working but what I would like to know is that, if there is a way the user can interactively scale/transform the image when it is on the stage in the swf file?
View 2 Replieshow i can use an image as a link and also a button to link to a specific web page. Also i am using keyframe animation if that helps atall
the button is called alaskanMist_btn and the move clip is called alaskanMist
I am trying to link them to [URL]
I've got a xml gallery. Now I want to add a link to a image but I don't know how to do this.This is my code:
portfolioInfo = new XML();
portfolioInfo.ignoreWhite = true;
timeline = this;
[code].....
I have a simple Flowplayer playlist. First one plays a short clip, which then cuts off, and an image is displayed. Is there a way to make the image clickable? [code]...
View 1 RepliesI've got a xml gallery. Now I want to add a link to a image but I don't know how to do this. This is my code:
portfolioInfo = new XML();
portfolioInfo.ignoreWhite = true;
timeline = this;
[Code]...
I've created a site for a friend www.tracelements.co.nz and had fun doing it. (its basic but it works and I'm still working on it - her cosmetic site design though) the image gallery is based on the Kirupa xml thumbnail gallery, how to tweak the code to change how it looks. it's great, but intimidating to dive in surrounded by such flash genius.
there may be a simple D'oh! answer that escaped me - but here 'tis
on the 'commission a work' page of the I've successfully used
<a href="asfunction:gotoAndPlay,62">contact me</a>
in the XML text, to target frame 62 where the animated closing swf transition plays to the end frame which loads the 'contact' .swf
THE Question - Is there a way to create a similar link where you click the large image in the gallery to link in the same way?
I have tried various permentations of the above in the <link></link> part of the gallery XML without a clue really, i'm trying hard to 'get' how xml works, (reading everything that 'explains' xml), but when I think I have a handle on it and try something, I often get puzzled on why they don't work out.
the relevant gallery AS is
[Code].....
The 'picture' MC registers as clickable but I haven't a clue what to do next to 'make it see' the XML link (which is probably wrong at the moment anyway)