ActionScript 2.0 :: Dynamic Image With Hyperlink?

Jan 19, 2010

I'm a totally new bee in Flash scripting. I want to make a flash movie which will load image and its hyperlink dynamically from external source. I know this is very common over the internet and as per some of the tutor I've done loading the image part but not able to sort out how to hyperlink that Below is the code

Code:
myData = new LoadVars()
myData.load("anastasio.txt")
myData.onLoad = function(succes)
{
if(succes)

[Code]..

2) No XML file. The flash will communicate with a PhP page which will fetch the records from DB and give it to flash for loading

I know both the ways for loading data into flash i.e. from XML or DB. I just wanted to know which could be the best!! In my opinion, XML file would be a better option since no DB connectivity every time on website but there will be only one record at a time which will get changed once in every month which is preventing me from creating XML file for just 1 record!

View 1 Replies


Similar Posts:


Dynamic Image With Hyperlink?

Jan 19, 2010

I want to make a flash movie which will load image and its hyperlink dynamically from external source. I know this is very common over the internet and as per some of the tutor I've done loading the image part but not able to sort out how to hyperlink that Below is the code

Code:

myData = new LoadVars()
myData.load("anastasio.txt")
myData.onLoad = function(succes)
{

[code]....

The text file "anastasio.txt" just have this line "image=photo.jpg". "holder_mc" is a blank movie clip. The image is loading properly but I dont know how to hyperlink that!! Can any one let me know how to do that dynamically.

Also, this is a very simple way of loading the image from text file but in real this will come from DB. The Admin will insert the image name and the url in DB and uploads the image to a specific folder from where the flash will load that image. I'm thinking what could be a better way from below to do the above stated task:

1) On insertion into DB, I need to create an XML file from DB fetching the image name and url and writing them to XML file. And every time the flash will load these from XML file instead of connecting to DB server.

2) No XML file. The flash will communicate with a PhP page which will fetch the records from DB and give it to flash for loading

I know both the ways for loading data into flash i.e. from XML or DB. I just wanted to know which could be the best!! In my opinion, XML file would be a better option since no DB connectivity every time on website but there will be only one record at a time which will get changed once in every month which is preventing me from creating XML file for just 1 record!!!

View 2 Replies

ActionScript 2.0 :: Dynamic Hyperlink (multi Row Data)?

May 11, 2004

I have created a flash file named "test.swf" and this file will call the "getdata.asp" file to retrieve the data from the database. There are multiple rows of returned data.

Code Description
----- ------------
A1 Notebook <button>
A2 PC <button>
A3 VGA Card <button>
A4 Projector <button>

How do I make the hyperlink to each of the <button> so that whenever a <button> is clicked, the "http://localhost/getdetail.asp?code=<key>" will be called, whereby <key> is the code associated to each of the row.This is the code in my Flash file.

for (i=0; i<ids_length; i++) {
codes
duplicateMovieClip(codes, "codes" add i, depth);[code].....

View 4 Replies

ActionScript 2.0 :: Create A Hyperlink In A Dynamic Text Box?

Apr 4, 2003

Ok, it is possible to create a hyperlink in a dynamic text box. But it is possible to load a Movieclip from this hyperlink, instead a web address?

View 5 Replies

ActionScript 2.0 :: Hyperlink Image In Flash File Through Xml?

May 25, 2009

I have designed a image slide show with dissolving effect and all images comes externally through xml file.go through my codes. every thing is going aright. Now I need to hyper link individual image with individual links.here is my xml file details...

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
<pic><image>0.jpg</image></pic>[code].........

View 3 Replies

ActionScript 3.0 :: Make A Different Hyperlink On Different Image Transition?

Aug 21, 2010

I got 3 images in one transition, but the problem is only the first image's link workingThe 2nd and 3rd image's link is not working.

Scripts
import flash.events.MouseEvent;var intel:URLRequest = new URLRequest("http://www.intel.com");var amd:URLRequest = new

[code].....

View 6 Replies

ActionScript 3.0 :: Showing RSS Feed In Dynamic Text Box (with Hyperlink)

Mar 16, 2010

I am currently trying to pull RSS data into a project for my first time and am trying to get 3 (potentially 4) boxes filled with rss data that will be updated. So far, I am going with Actionscript 3. So far I have the code below, but it puts data in a listbox. What is the easiest way to put the data in three dynamic text boxes inside a movie clip, so I have one for the title, one for description and one for link (shown as 'read more' text but a link using the url from the rss value)?I am really banging my head against the wall on this one and want to get it sorted asap,I have also attached an image to show what I am trying to do:I also want to know if it's possible to show rss values only if they exist. For example, my xml feed currently only has 3 items that change, and i will be assigning these to boxes, but is it possible to display a fourth if it exists, and if it doesn't it just shows the first?[code]

View 3 Replies

Professional :: ClickTag On Dynamic Hyperlink Text In Scroll Box

Aug 15, 2011

Is it possible to add a ClickTag for tracking purposes to dynamic text (hyperlink) in a scrollbar box in Flash CS5?  I have ever only added a ClickTag to a button and/or banner before.

View 1 Replies

ActionScript 2.0 :: Hyperlink In Dynamic Text Field From Xml File

Mar 25, 2009

I'm pulling data from an XML file into dynamic text fields in Flash. I have a field where I want to pull in a different url for each node, but display the same text and I'm not sure how to set that up.

View 4 Replies

ActionScript 2.0 :: Dynamic HTML Text... Hyperlink Triggers Function?

Jul 22, 2004

I have a flash movie with a dynamic loading textfield formatted in html. What I'm looking to do is format (using a tag?) the loaded html code to have a hyperlink (<a href?>) gotoAndPlay(2) or perform other functions.

View 3 Replies

Professional :: Add A Simple Hyperlink In My Xmlhtml Hyperlink In My Xml?

Jan 11, 2010

I want to do is add a simple hyperlink in my xmlhtml hyperlink in my xml.how to do a hyperlink in xml.This is what I do know,you can add the <a href="http:[url]...but that does not work for me,when i save and preview my fla, it takes away my scroll bar that i have.I have also seen somwhere you can use the <?[[DATA tag, but this aswell doesnt work for me in my FLA, is there somewhere i need to reference hyperlinks before I can modify my xml?

View 38 Replies

ActionScript 3.0 :: Link Text Hyperlink In Dynamic Text Box To Label

Nov 3, 2010

I have an AS3 flash movie and each page is a new frame. On my pages are dynamic scrollable text boxes that I created with the text tool. I would like to be able to make a piece of text a link (ex. click here for prices) so that it will direct the view to another page (label). I cannot figure out how to do so.

View 2 Replies

ActionScript 2.0 :: Position Dynamic Image - Centre Of The Image To Be Over The MC?

Apr 12, 2004

I have a MC called image_mc. When I load an image from XML, I want the centre of the image to be over the MC.Here is my code which isn't working. Currently, it positions the top left of the image at the MC regardless if the image is portrait or landscape.

Code:
pic = portfolioTag.childNodes[num].attributes.IMAGE;
// LOAD IN FIRST PICTURE IN XML FILE, first occurance of IMAGE NODE[code]....

View 8 Replies

How Do I Hyperlink In XML?

Jul 8, 2009

The carousel itself is OK, everything works, including the click the icon to read the description.The only problem is that I need to have a hyperlink in one of the descriptions. I know how to hyperlink in HTML, and tried that in XML, but it didn't work. I also tried XSL or something to link but that just screwed up the SWF file itself. Here is my XML code.[code]....

View 4 Replies

IDE :: Dynamic Image Scroller?

Nov 27, 2009

I have been trying to figure out how to create this movieclipI have a bunch of images which is laid out horizontally (x axis). The functionality is very simple, when I click on the movieclip it will allow me to drag it from right to left and vice versa. This part is simple enough. I face a problem when it comes to the end and the beginning of the movieclip. How do I make it undraggable when it reaches the end of the movie clip and vice versa when I drag it back to the beginning.

View 6 Replies

Adding Hyperlink To A XML?

Nov 17, 2010

I am using a Carousel i found online , everything is working fine and it also uses am XML file which contains the icons and the tooltip . If somebody could explain how i would add a hyperlink into the XML file , so each icon points to its desired location , my XML is as follows :

Quote:
<icons>
<icon image="icon1.png" tooltip="Other Species"/>
<icon image="icon2.png" tooltip="Contact us!" />

[Code]....

View 1 Replies

ActionScript 3.0 :: How To Hyperlink A Mc

Aug 29, 2008

can someone explain how to hyperlink a mc in as 3.0?

View 5 Replies

ActionScript 3.0 :: Add A Hyperlink To And ADG?

Jan 28, 2010

I need to add a hyperlink to and advanced data grid. I would usually would us a renderer to do this, but in this case the columns i need to have hyperlinked will not have values in it until a "calculate button" is clicked. It's when I click the calculate button that the values to display in the hyperlink are created. So, what AS3 code could I add in the button.click handler to add hyperlinks.

View 0 Replies

ActionScript 3.0 :: Dynamic Image Gallery (with Php)?

May 11, 2009

Trying to make a dynamic gallery that pulls images (along with names and dimensions) from different folders on the server. Want clients to be able to drop new images into these folders and have them pulled into the gallery dynamically. Do I need to use PHP as I did with AS2? or can AS3 pull the image names and dimensions from the folders on the server?

View 9 Replies

ActionScript 1/2 :: Dynamic Image Actions On Swf?

Sep 20, 2010

Does anyone works on loading image and; resize and move that image on swf?

View 3 Replies

Professional :: Image In Dynamic Text Box Using XML?

Aug 19, 2011

My client has supplied a Flash template that I'm modifying in CS5 Pro. The text is feed from a XML file which I've figured  out change to my requirements but I can't figure out to place an image  in the text box which is a Dynamic text and have the text wrap around this  image.

View 1 Replies

Actionscript 3 :: Set Dynamic Locations In An Image?

Feb 17, 2011

I want to set different locations in an Image, and when I mouse over the location it needs to shows something('box' or 'x' nd 'y' position of the location). How can i achieve this.?

View 3 Replies

Replace A Dynamic Image On Flex?

Apr 14, 2011

I am creating an image dynamically on flex. This images changes (as in changes image source) when the user clicks on it. Images are PNG format and I replace it with this code:

img.source = PATH_TO_IMAGE;

The problem with this is when I replace the image is it is not smooth even if you set the image property to smoothBitmapContent.

Is there a way to smoothen images when you are trying to replace the source?

View 1 Replies

AS3 :: Php - Pass Dynamic Image From Flex?

Nov 1, 2011

Need to:1) Create bytearray from BitmapData in Flex2) Pass this bytearray (or maybe converted to string with b64) to php script3) Convert this bytearray again to image in PHP and show it.

View 1 Replies

Image Distorts In Dynamic Text Box?

Aug 31, 2007

I am using Flash 8. For the site I planned to use dynamic text boxes for each page so my client can update the pages. There is no text, just an image.

Go to: [URL] After the intro, click on Featured Listings, Buyers Needs or Bio & References.

The image is distorted. Also, for some reason the dynamic text box is about 350px and the image size displayed needs to be 525 to fit correctly.

Here is the action script I used:

myData = new LoadVars();
myData.onLoad = function(){
myText_txt1.htmlText = this.content;

[Code].....

View 0 Replies

ActionScript 2.0 :: Resizing Dynamic Image?

Feb 9, 2009

I have a flash file that is pulling images in dynamically from a PHP page. The images will come in all different sizes so I need to resize them once they are loaded to fit in the containers that they are being loaded into...I thought onEnterFrame was the best way to do this? So I have the following:

Code:
onEnterFrame = function (){
for (i = 0; i < 9; i++){

[code].....

View 1 Replies

ActionScript 3.0 :: Load Dynamic Image?

Jul 22, 2010

1.I am doing a spinning wheel game, where the user gets 3 spins. After each spin, an image will display at the top of the wheel - of what they have won. At the end of the 3 spins they can then choose what they would like from the 3.Now, how can you display image like this? Would it be a 'Graphic' symbol or a 'Button' if it's a button (which i believe is the case) how can you display an image. In the code hint doesn't seem to be a parameter that you can edit to change a source.

2.I'm using Flash CS5 Pro, and i notice on a Lynda.com video that he goes to 'View->Simulate Download'. Mine doesn't have this, just before i publish would like to do a preloader but my version doesn't seem capable of doing it.

3.I was asked during work to make a form before my game starts, i'm wary about making significant edits like this because scared will break it.Is it easy/safe to insert a frame before it happens?

4. I have an EnterFrame event and it seems to play over and over again - as if it's on a loop, is this normal?

5. I have tried to publish my swf as html, but my movie would go from 1 dot aligned in the middle to 5, and back to 1 again.. like a preloader.. but it would never start.

View 3 Replies

ActionScript 2.0 :: Using A Dynamic Image Editor?

Sep 20, 2010

Does anyone works on loading image and; resize and move that image on swf?

View 3 Replies

ActionScript 2.0 :: Border Around Dynamic Image [MX]?

Mar 26, 2004

My question is related to putting a border around an image. I am dynamically loading images from an xml file and they appear as thumbnails. I want to put a 1 or 2 pixel black border around the image when I load it. The problem that I see is that some of the images are portrait and others, landscape. I hope there is a way to do this in AS? I have searched the forum but nothing.

View 3 Replies

ActionScript 2.0 :: Another Dynamic Image Border

Jul 1, 2004

I have a dynamic border with a loader and buttons and whatnot. It works for the most part, but when the images have not loaded on the persons machine before, there is an occasional glitch preventing it from displaying properly(the border shrinks to nothing, the loading bar goes to aobut 10px, etc.)

[Code]...

View 3 Replies







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