ActionScript 2.0 :: On Release GetURL Not Working With Animation?
Dec 22, 2009
I am a Noob to ActionScripting and am having problems getting some movieclips to link to different URLs on release. I am able to get them to animate, and I am able to get them to link to an html page in the same folder, but I can�t get both functionalities to work at the same time and it is driving me crazy!! I've tried putting the actionscript in the instance object, in the action layer, and other things and nothing seems to work!?I believe that the actionscripting needs to be done in the "baners" movieclip, but it could also be the "Symbol 3" movieclip
Here is also a link to the . See, if you mouse over the first two clips, they animate, but they do not go to the HTML page if you click on them. The third clip will go to the page success1.html in the same folder if you click on it, but it does not animate on mouse over.I'm using Flash CS3 as my editor and I'm using ActionScript 2.0 for the scripting
I am new to Flash/Actionscript and am having problems getting some movieclips to link to different URLs on release. I am able to get them to animate, and I am able to get them to link to an html page in the same folder, but I can't get both functionalities to work at the same time. I've tried putting the actionscript in the instance object, in the action layer, and other things and nothing seems to work!?
Here is the link to the source file: [URL] believe that the actionscripting needs to be done in the "banners" movieclip, but it could also be the "Symbol 3" movieclip. Here is also a link to the .swf [URL]. See, if you mouse over the first two clips, they animate, but they do not go to the HTML page if you click on them [URL]. The third clip will go to the page success1.html in the same folder if you click on it, but it does not animate on mouse over.
i have a problem with a rollover animation stopping at it's 'on' state on release. i have a movie clip that fades text up from 0% at keyframe 1 to 100% at keyframe 10 and back down to 0% at keyframe 19. i have an invisible button above this with the following:
[Code]...
the visible bit is to turn off the invisible button on release. the problem is that with the following code, all that happens is the movie plays out from 11 on release. i want it to stop at keyframe 10 (where it is).
i have a menu and links to internal pages like "index.html", "contacts.html" and so on.Before load those pages i need to end animation with objects desappearing.I found this code tell me if it's right because it doesn't work. i get this error message.
"ReferenceError: Error #1065: Undefined Url Variable" or something like that (i'm translating it from italian)
i have 6 links i applied code to one link only but i should apply it to all of them.
On parent timeline i have an animation and at the end of it i put this code:
I created a simple animation that needs to have a button on one segment of the animation. I created a button with a action of getURL in AS3, the problem I am having is that every time the animation loops from the first frame it triggers the button and the new page I requested pops up.
I've made 2 swf's. One is navigation with a movieclip named "connn" where another swf of content being loaded into it. The second swf is the content consists of a scrollable bar of thumbnails at the bottom, loading particular content on the stage. For the contents swf, I've this script on each of the thumbnail
PHP Code:
on(release){ _root.gotoAndPlay("framename"); }
which framename is marked on the top level of the flash, with a movie clip of a couple of images swaping. And this work perfectly. [URL]
PHP Code:
loadMovie("services_web.swf",this.connn);
which load the content into the movie clip named "connn". It got no problem loading the swf in but I discover that after it is loaded, the thumbnail script of the content failed to work. (please see: http://mr-otto.com/wd/services.html under WEB/INTERACTIVE > websites)
I guess that is the problem of the _root. thing and perhaps changing this I can have it work as perfect as it can be even being called in another swf.
I'm doing a little project where I have a movie clip with 2 frames, the second frame has a video in it that's a movie clip, I have a on(release) on the movie clip, but it's not doing anything when I click is the outer movie clip stealing clicks from the one inside or something? oh, also the outer movie clip is being used as a button as well because it zooms in or out when you click it, so that might be another problem
I developed a portable video player thats similar to YouTube's video player where you pass a video's info and the video loads and plays. The player can also be embedded on your own personal site using the embed tags. My problem is this, everything with playing / loading the video works fine. But I've got a link on the Flash thats hard coded to a url and links off using getUrl like so:
getUrl('http://www.site.com', '_self')
Now this works if the HTML and SWF are in the same location (ie both local, or both on the hosting server) but for some reason it doesn't work in the embed mode when the player swf is located on one server and the HTML that's loading the SWF is on another server. XML loads fine, videos load, images load, but the gerUrl does not work...doesn't go anywhere. Also, I've got my crossdomain xml file setup to accept all domains using the * option.
I have an _Xslide gallery that I need to make each photo link to an absolute URL. Works fine on IE but FireFox dosnt function at all. I can get it to work if I "_blank" but then it is applied to both browsers. The requirement is that the gallery function in the same window for all browsers.This swf is hosted in an "included" html file...where the swf does not live in the same directory...although I have tried that also but to no avail.
Ive also tried "_top", "_parent", "_self" heres the AS... one_mc.onRelease=function(){
I'm building a website using actionscript 3 with an animated intro and it has 8 movie clip buttons called Tab1, Tab2,etc. which when clicked navigate to different URL's. I would like play an exit animation (frame 300) on my main time line when a button is click and then goto the url page.
I've a flex application which has actionscript file, images. When i run this in adobe flash builder, everything works. When i export it as a release build and run in other file, swf does not show images and interactivity of flex components is also lost.Is there a specific way to embed images?Here is image code,
im trying to make a button that will open a new mail form from whatever software the user may have, this goes on a Usb Stick, im using this code: on (release) [URL] It works on a Mac, but not on a pc with Outlook, it only opens the new mail, and fills the mail adress, no subject, text1 is a var, it wont load it either.
So iv been flash designing for about a year now, and i thought i was pretty good, however having never usd the geturl script before i am stumped whats going on. my AS is
Actionscript Code: on (release) { getURL("index.html", "_self");} which works fine when playing the movie in the flash preview (pressing ctrl+enter) but as soon as i publish the movie and view it embbeded in an HTML document it doesnt work. this should indicate its my browser settings? however iv tried disabling my pop-up blocker and still nothing.
Been banging my head against this forever. Running a SWF banner running AS2.0. If you view the banner's page with www before it, it works fine. If you visit the url WITHOUT the www the geturl script doesnt work at all.URL...I've tried changing the allow access setting from domain only to always and I changed the actionscript to be document relative instead of a full link and none of that has fixed the problem.
I've got the very old infinite menu posted on Kirupa's site. I haven't done anything but switch it to a vertical menu, but the problem is that I put a button in the menu, the 2nd grey box, with a getURL that just goes to google. Problem is, it won't load the url. I had wanted to put buttons in this menu to get new URLs or do things it flash, but it won't respond.
I developped a simple flash photoalbum, but since the project has gone live the links on the buttons are not working anymore.The swf is located at http:[url].... and if we test it like this it works fine. But if we go to http:[url]... it goes wrong. The dynamic xml is loaded fine, images and text as well, but only the getURL stops working.
why a getURL isn't working on a movieclip? The exact same code works fine when on a normal button but not on a MovieClip. Both were on the top timeline and were not embedded within anything. Actionscripting 1 in Flash CS3.
Code: on (release) { getURL(clickTag, "_blank"); }
Ok so my swf on my homepage is calling in the main.swf which then has movieclips and coded like this on the Actions layer which I made
button1.onRelease = function (){ button1.getURL("http://scholarscanada.com/wordpress/education/programs/reading-readiness/"); }
Here is the site so you guys can see, I believe it has to be something with calling the main.swf into the movieclip because I've never encountered this issue before...
[URL]
If you click on the LEARN MORE for the first image it doesnt go to the page which I ask it for.
I tried to built a project with AS3 only in Flex. When I run the project in flex, everything looks fine,but when I export the release build, the images that are supposed to be added are gone.
I recently formatted my disk and installed WindowsVista Ultimate. Now, I find that this simple piece of code is not working. But earlier when I was using Windows XP, this code would open a new browser window (in firefox) and automatically prompt me to log into Gmail account, and after I log into gmail I will have this 'userEmail' successfully inserted in the "To:" field (inside gmail)
Code: var userEmail="myemail@gmail.com" getURL("mailto:"+userEmail); Can't figure out why this is not working in my new OS.
I have a simple getURL on a movieclip. Looks like this:
Actionscript Code: var galURL:URLRequest=new URLRequest("gallery.html");nav.gal.addEventListener(MouseEvent.CLICK, onClickGal);function onClickGal(evt:MouseEvent):void { navigateToURL(galURL, "_self");}
there seams to be some problem with the getURL functionality when it is not on the top level. how to address this? I did a search for the topic but the spinny applet just keeps spinning and spinning when I hit search.
I can't get my getURL to work. It works when I use "_blank" but not when I use "_self" or "_parent" or "_top" or leave it empty. I've got it right off the main timeline. I've also tried putting it within an onRelease function.
So, this doesn't work: Code: getURL("images/aboutus.jpg", "_self"); But this does: Code: getURL("images/aboutus.jpg", "_blank");
I'm modifying an mp3 player by flabell, and try to get some buttons to work. However, I can't seem to get the getURL to work, even though it works in other parts of the script. This is my code: mc.rate1.onRelease = function() { trace(this.ID); getURL("[URL]","_blank"); };
The trace goes through fine. Here is the code that works: Code: private function downloadRelease(mc : MovieClip) : Void { var title : String = mc._name; var index : Number = Number(title.substring(title.lastIndexOf("n")+1,title.length)); getURL(songsSource[index], Main.getInstance().mcAlbums.linksTarget); } I'm on a mac with firefox.
I have a series of as2 button instances which are intended to navigate an HTML site with simple getURL commands, but no matter what I do they only load the index.php file and I can't get them to open the page in the _self window. Here's the code:
I'm trying to use getURL to open a new window that will have a specified size.I downloaded Macromedia's own tutorial/sample code for how to do this using javascript and cannot get it to work.
Here's their code:
on (release) { getURL("javascript:openNewWindow('http://www.macromedia.com','thewin','height=400,width=400 ,toolbar=no,scr ollbars=yes') "); }
[URL]
Nothing happens when I click their button. I tried changing the target, still nothing. I also tried it in Safari and in Firefox with FF's popup blocker turned off. Nothing.
and test it within Firefox (0.9.2) then it loads within the same tab which isn't what I want obviously. In IE it loads a new window without problems. This used to work but I after reinstalling winXP with SP2 it doesn't work anymore
I am trying to use the getURL function to open a new window with a variable URL, but it doesn't seem to be doing what I want it to. Here is the code i am using:
on (release) { getURL("popup.htm?/projects/"+_root.foldername+"/"+_root.projname+"_1highres.jpg", "_blank") }
The problem appears to be the question mark. If I remove the question mark it works fine.. but I need to use the question mark because the rest of the info is just information I am having popup.htm interpret