ActionScript 2.0 :: Scripting HTML "asfunction" ?
Oct 5, 2005
I'm trying to use this generic function in an HTML-enabled dynamically loaded text box (.txt file):
Code:
<a href="asfunction:my_mc.loadMovie,file.swf">Load Movie!</a>
....to load a new .swf ("artist.swf") into this mc: "_root.content"
I used the kirupa tutorial to create a flash movie with transitions. So i have a transition mc and here's an example of the actionscript that I've been using on each navigation button (this example is on the button that leads to the releases section).
Code:
releasesbutton.onRelease = function() {
if (_root.section != "releases.swf") {
_root.section = "releases.swf";[code].....
View 8 Replies
Similar Posts:
Mar 3, 2011
I have an intro in flash to go to an html/css site. What I have right now is when the image is clicked on it jumps to a scene and plays the animation and that's it. What I don't know is the scripting afterward. I need to know what the script is to allow it automatically forward the visitor to the html site after the animation plays. The intro page is on its own page.Right now my code is on frame 1 and this is it:
Code:
stop();
import flash.events.MouseEvent;
[code]......
View 3 Replies
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
May 6, 2009
This is sooo anoying! I can't type anything properly! The longer a line gets, the further the blinking line thing intersects with what you typed, and punctuation obstructs the text
View 3 Replies
Oct 26, 2009
How to make an object or pic in a webpage slowly blur when mouse overed ?
View 21 Replies
May 7, 2004
I'm trying to create a simple top game. Except, the movement of toy tops isn't so simple.I've been able to get the top to trace out squashed loocking spirals. However, the motion isn't random and there's no object detection. I was thinking that some variation of a bouncing ball script might work. However, the movement would have to be confined to the appearance of a perspective plane (so that it looks like it is spinning on something flat)
View 11 Replies
Nov 26, 2006
I was wondering if there is a good editor I could use for scripting in actionscript 3. I dont want to use flash 9 alpha or flex builder 2. Are there any other ones just for actionscript that yall can recommend?
View 14 Replies
Jul 28, 2007
I'm going to have a bunch of questions as I progress through the tutorial.http:[url]....At the bottom of the page, sen writes this:Finally the function to make it all happen.This will base camera movement off of the arrow keys and use
clip._x += Math.cos(angle)*radius;
clip._y += Math.sin(angle)*radius;However in his code he writes this:cameraView.x += Math.sin(cameraView.rotation)*movement;
cameraView.z += Math.cos(cameraView.rotation)*movement;what happens is he switches the sin and cos methods from what he said. However, for displaying all the "figures" those far and including this example, cos was used for "x" and sin was used for "y" like so:
var x = Math.cos(angle)*this.radius;
var z = Math.sin(angle)*this.radius;
View 2 Replies
Dec 2, 2009
I'm using Flash CS3 with Actionscript 3, and I need to have a scripting language that the user can use. If they could type in their own actionscript and have it evaluated, that would be perfect. Another scripting language such as Lua would be fine too. I looked into lua alchemy, but it seems poorly supported so I'd rather not use that. The Eval command from actionscript 2 isn't available in as3, and some of the things I've heard indicate that it's functionality is pretty limited, although I've never used it before.
View 1 Replies
Nov 15, 2010
I have a sample fla file, but I can't find where to edit the scripting in it. Basically there are 2 buttons, each one going to a different URL. I can't figure out where to change the URLs they go to. I've looked literally everywhere in flash.
View 1 Replies
Sep 9, 2009
Am I correct in nesting packages as attached?I thought this scripting would allow me to actually draw after runtime?
[code]...
View 9 Replies
Nov 29, 2009
I have the animation performing ok in the file, but I am having trouble getting the movie clip to play on mouseover. could really use some advice on this. I've been through a number of tutorials, but cannot get this file to play nice.On mouseover, the menu should animate down (play the clip). This brings up another question, however How do I get the menu to receed (animate up) when the cursor leaves the button region?
View 2 Replies
Nov 15, 2010
I have a sample fla file, but I can't find where to edit the scripting in it. Basically there are 2 buttons, each one going to a different URL. I can't figure out where to change the URLs they go to. I've looked literally everywhere in flash.
View 1 Replies
Mar 12, 2012
For my Flash class, my professor is making us create a four room "adventure game" created entirely in an external class with ActionScript. I know how to get things set up,
View 1 Replies
Aug 11, 2010
Is there a way to not to use flash as a platform for mic recording based script?
View 1 Replies