ActionScript 1/2 :: Can't Use Image As Link Using Asfunction?

Jul 25, 2009

I 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]...

View 14 Replies


Similar Posts:


ActionScript 2.0 :: Asfunction - Include A Link To Display A .txt File In Place Of The First One

Jul 3, 2004

i'm loading an external .txt file into a text field and displaying it as html, works fine... but i when i include a link to display a *second* .txt file in place of the first one, it only works if i click on the link twice. i'm using 'asfunction' in the html link in the txt file. someone suggested replacing 'loadVariablesNum' in the root script with 'loadVars.sendAndLoad', but something isn't right

View 4 Replies

ActionScript 2.0 :: Text And Image With Asfunction?

Feb 20, 2005

I am trying to load text and image through a external .txt-file using the asfunction. So far I have managed to load the text but not the image. (The image is baseline so it should work).

View 1 Replies

ActionScript 2.0 :: Image Click From XML Content To Hit Function Using Asfunction?

Sep 14, 2010

I have had a look at this link:And this is exactly what I need to be able to click on an image wrapped in an <a> tag which comes from my XML content.I have added my image, added the <a> tag to the image and when I fire it up in AS2 and mouse over the image, the mouse cursor changes to the hand as is meant to.I've added my function, which when clicked on, should call a trace to check that it's working and it's not happening and no doubt it has something to do with the path of where my function sits. I have moved this around now to several places without any joy.If I test this on the root, in a simple scenario, it works. My page however sits on the 6th frame of the root timeline and this is where I believe things are going wrong.

View 6 Replies

ActionScript 2.0 :: Load Text And Image Through A External .txt-file Using The Asfunction?

Feb 20, 2005

I am trying to load text and image through a external .txt-file using the asfunction. So far I have managed to load the text but not the image.(The image is baseline so it should work).

View 1 Replies

ActionScript 2.0 :: ASFunction And IP Addresses

Oct 20, 2003

How would I use ASFunction with dynamic texts? Can someone gimme a example (code not .fla)...How would I display the IP address of a person with flash?Complicated:A person views my signature. It shows the IP Address of a person along with a input box for their name. They type in their name. How would I make it so that, after a name is typed in and a button is pressed, both the name and the IP address are sent to a file? Only I can view the file. Well, the file could be called list.php or list.txt...and then I can CHMOD it so others can't view it...

View 4 Replies

ActionScript 2.0 :: Asfunction Parent Doesn't Work

Sep 29, 2009

[Code].....

Clicking on the html tag with asfunction doesn't work this way. I have to move the function part inside the myTextcontent.myMenu timeline to make it work. Instead of moving the function inside the movieclip which asfunction is targetting I would like to keep it all together. Is this possible? Perhaps some way to add a '_parent' code to ik looks for the function in the same layer as the asfunction line? Or some html back slashing so it moves up the 'tree' so it finds the function in the same timeline?

View 1 Replies

ActionScript 1/2 :: Contact To Appear As Bold Text Within ASFunction

Sep 10, 2010

<a href='asfunction:loadText,"+msgA[0]+",,"+msgA[0]+newline+msgA[1]+newl ine+msgA[2]+'Contact: '+msgA[3]+"'>"+msgA[0]+
How do I make "Contact" appear as Bold text?

View 11 Replies

ActionScript 2.0 :: Asfunction Breaking The Scroll Buttons?

Jun 15, 2005

when my asfunctions are called from text loaded in from xml, it stops my up and down scroll buttons working properly (when you click on the scroll button and then release it, you have to move the cursor by at least 1 pixel before the button will work again).

View 1 Replies

ActionScript 2.0 :: Use ASFunction With Dynamic Texts And IP Addresses?

Oct 20, 2003

How would I use ASFunction with dynamic texts? Can someone gimme a example (code not .fla)...How would I display the IP address of a person with flash?Complicated: A person views my signature. It shows the IP Address of a person along with a input box for their name. They type in their name. How would I make it so that, after a name is typed in and a button is pressed, both the name and the IP address are sent to a file? Only I can view the file. Well, the file could be called list.php or list.txt...and then I can CHMOD it so others can't view it...

View 4 Replies

ActionScript 2.0 :: Rollover TextField - NOT Button - Using Asfunction?

Mar 19, 2005

I got this:

Code:
X25 = "<a href="asfunction:myClick">Show Box</a>";
box._visible=false;
function myClick() {
box._visible=true;
}

Where X25 is the name of a dynamic text field variable (not instance name).

What I really need is for a rollOver action - you need to physically click the text box for it to work and I need that for another action

View 4 Replies

Actionscript 2.0 :: Asfunction Doenst Work With Dynamic String

Sep 22, 2009

I want the to use the 'edit_pizza' or the 'add_pizza' function whether i am editing or add a new order. So i am checking if "aktOrder" is set (or filled because it is an array) and setting 'clickFunction' the name of the function.Afterwards i put that in the string which will be added to "windowText.htmlText" at the end. By tracing 'clickFunction' i see that it is 'add_pizza' which is right. But in the string it doesn't work.

View 5 Replies

ActionScript 2.0 :: Where To Reference _root To Load A Swf Into An Empty Mc Using An Asfunction

Mar 21, 2006

I just need to know where to reference _root to load a swf into an empty mc using an asfunction. Canadian out with this previous question, and the trace seems to be working, however my clips aren't loading. There needs to be a reference to root somewhere right? Everywhere I try to add it yields the same lack of result. Here's Canadian's code:

[Code]...

View 1 Replies

ActionScript 2.0 :: HREF In External Text File With ASFUNCTION

Jun 22, 2006

I am a little confused with the ASFUNCTION. I understand how to use it to call a function from within the swf, but how can I embed a link in the external text file? Is this even with ASFUNCTION? When I use an <A HREF etc it doesn't work. I have searched all over the forums and can't find the answer to this really simple question. Also, one other thing. Is there a good character map somewhere for UTF-8 encodings? For example, I can't seem to get Trademark and bullet points to work.

View 9 Replies

ActionScript 2.0 :: Back Button Not Responding After Asfunction Called From XML?

Dec 31, 2006

The back button in my flash project becomes unresponsive untill I move the mousecursor only a pixel in any direction. Strangely enough it works fine for links that are in the flash file like the navigation buttons on the left side, but becomes unresponsive as soon as I call an asfunction from within the XML file.Its quite complicated to explain. Maybe its just best that I show the flash file and let you see for yourself.

[code]...

This is what you need to do in order to reproduce the problem.Open the swf named "hometestback.swf "in the swf folder.Click on "sitemap" button at the top (the XML data page is loaded into the textpane) Click in the textpane on the "partner benefits" link (its the first link under "company title") The new XML data is loaded. Now hit the back button (the little arrow next to the company ::partner benefits title) And the page will go back to the previous "sitemap" page. However If I click on the backbutton again without moving the mouse nothing happens. (it should move back to the first page)Well you can see the overstate of the button but the button functionality is never started.

In the debugger I can't reproduce the problem, but when playing the movie as a test its still there.I tried making different buttons. So they would load a different instance of the button and the swf would be forced to load a new button on every page it landed.I tried onPress, onMouseDown, onRelease none of it works.I tried creating movieclips with the functionality of a button.I tried mouse event listeners. So the back button would at least detect a new mouseclick.I even tried starting from scratch and recreated the entire site all over again.However no click of the mouse seems to be noticed by the flash player untill I've moved the mousecursor just a little bit.

From within the XML the only thing I call is a function inside the swf.The back button works by inserting the last page the user was on into an array and when pressed the back button moves back to the last page (framelabel) in the array.

View 8 Replies

ActionScript 2.0 :: Dynamic Text+links - Asfunction - Accede To A Specific Label Of An External Swf?

Oct 13, 2004

I am doing a dynamical menu they are scroll, with links, I am using asfunction. If I call an external swf:

[Code]....

But, How I do to accede to a specific label of an external swf?? I want that it loads the animation and begin to it turns from the label that I indicate.

View 2 Replies

Add A Link On An Image?

Apr 14, 2010

I am trying to add a link to an image using ActionScript. I do not see the link no matter what. [code]...

View 1 Replies

Use Flash As A Link Image?

Mar 8, 2011

I 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 Replies

ActionScript 3.0 :: Put A Link In An Image In Flash CS4?

Jan 21, 2009

How to put a link in a image in Flash CS4?

View 3 Replies

Professional :: Inserting Link To Big Image In FLA

May 31, 2010

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 Replies

ActionScript 3.0 :: Insert Link Over An Image In XML

Nov 10, 2010

I 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]...

View 3 Replies

ActionScript 1/2 :: Image Link To Different Scene?

Nov 13, 2011

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].....

View 1 Replies

ActionScript 3.0 :: Cannot Link Image In MovieClip

Dec 15, 2009

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()

View 6 Replies

ActionScript 3.0 :: Adding Link To Image

Jan 23, 2010

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]

View 9 Replies

ActionScript 2.0 :: Link Xml Loaded Image To Url

Mar 22, 2010

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.

View 9 Replies

ActionScript 2.0 :: Trying To Add Image To 'Read More' Link

Apr 21, 2010

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 Replies

ActionScript 3.0 :: Gallery - Link At The Big Image?

Oct 26, 2010

i 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]...

View 1 Replies

ActionScript 2.0 :: Link From XML For Image Button?

Oct 12, 2011

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 Replies

ActionScript 2.0 :: XML Load Image And Link

Nov 2, 2005

Any easy way to load an image with xml and also have give that image a link?

View 2 Replies

ActionScript 3.0 :: Loading Image Link To Swf?

May 25, 2009

im 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 Replies







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