Flash :: Use A Question Mark In Actionscript 2.0 With GetURL Function?
Feb 20, 2012
Actionsctipt code:
on(press)
{
getURL(escape("address.html?0"));
}
This works absolutely fine in Internet Explorer but in Chrome in the question mark is obviously made into "%3F". how I can stop this from happening and still keep it compatible with IE and other popular browsers?
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
I am trying to user getURL with a question mark in it... ie getURL("default.html?something_here=1"); but it ignores everything after the question mark.
I have a flash gallery in side my movie I have a next button and a prev button that works just fine. The issue I am having is when you click next and then go back the getURL function no longer works. It might be easier to view the issue. here is the link [URL]
I've messed around with XML+FLASH menu systems (downloaded from various Flash resource sites) on a novice level . As in, I know how to modify the XML file to have the content I want and where to rename the XML file in the FLA if need be. But I've never had to actually manually modify any functions within the FLA before. I'm really green when it comes down to diggin' within the Flash coding. Anywho, I came upon this really nice horizontal/glide menu from a way talented flash guru who was nice enough to share his source files with me...
I'm trying to add a simple getURL script to a simple text button-- should be really simple, right? But when I select the instance of the button on the stage it says the current selection cannot have actions applied to it. This, despite the fact that I am able to open an old .fla that has the same type of button and it does have a getURL action applied. What gives? Flash version 9.0 (CS3 Professional)
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 Flash button with the following script attached:
on (release) { getURL("http://URL/sample.pdf", "_new"); }
And I've also tried this:
[Code]...
my client (Who uses Firefox, on a PC) has to click on the button twice to view the PDF. The first time they click on the button, they have to close the blank window that pops up and then click on the Flash button again to view the PDF. It opens fine the second time. Is this just a PC problem? On my Mac (Safari) it works fine, but (Firefox) seems to want to save the document before I can view it.
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.
how to add a variable to a getURL Javascript function. I have; ActionScript Code: getURL("javascript:JavascriptFunctionNAme(ASVariableName?);"); It works fine when I replace ASVariableName with "1" or some other plain text.
i have that header for my navigation here: [url] However I cannot get the getURL command to function properly. You can test it out by clicking on a key meta word (right hand side) than clicking on "home" to take you back.As you will see it does not work.The site is built around Joomla—it's pretty basic and I didn't care for any of the navigational options so I built a flash menu.
edit I can get this to work when I "cmd-return" out of flash and test the .swf - but online it's a no go.
I have a button with some transition/easing on it...and a geturl function. However there is something weird happening, when the button is clicked, it sees the geturl alright, and the browser opens...but cant seem to get any further than that! [code]...
I have a file upload application I built that uses FLASH as a means to transfer file to/from users directories on a server. Once the file transfer has completed I fire a function that includes a call to a javascript function within my page that executes an AJAX refresh of one of the "div's" on my page.
And my JS is: Code: function handOff() { new Ajax.Updater('manage_user_info', '/fileTransfer/manage_user.php?client=' + $('users_to_manage').getValue(), { method: 'get' }); }
This works flawlessly in IE6/IE7/IE8/FF3.6/Opera/Chrome/Safari on Windows Machines but for users on MAC's there seems to be an issue. Any particular reason this wouldn't be working in a MAC environment?
I am using a php mp3 handler script that I use as a parameter,but it seems to mess everything up just because there is a question mark after .php for my get variables. If I remove the question mark (mp3_handler.php?), the player appears, but with the question mark, it shows up as a text box. The first player works fine. The second just appears as a textbox in IE.The second however works in every other browser!!!
UPDATE: IT SEEMS TO BE THE second QUESTION MARK, but I do not see a way around this.. Oddly enough, the first question mark does not make a difference
I am creating a gallery type site, I am loading xml data externally creating duplicate movie clips and it all works fine, my only problem is I want them to go to a URL, I have one of the nodes with the URL and in my actionscript I am calling a function to getURL on press, the problem is on each separate movieclip it links to the URL of the last movieclip in the stack.
When I use: on (release){ this.stop(); getURL("page.html", "_blank"); } Why is it that when that new page window is loaded the background flash window then runs my on (rollOut){ this.play(); } function? I am trying to pause the timeline I am clicking from in Flash. If I take this line out (this.play() it pauses, but if I were to go that way how would I start getting my MC to play again when the user gets back to the flash window?
I have an XML file which contains some texts, let's say testimonials or something like that. It contains characters like commas, inverted commas, question marks, periods etc. But it does have exclamation marks too.. I think exclamation mark is an invalid character in XML. Anyway, how to display this exclamation mark in dynamic text in AS3? The XML is modifying by a third person. So it will be difficult if we say type this pattern to replace it for exclamation mark....
I am working on a game and would like to put code for different levels on the same timeline layer, mark the frames with labels (level1, level2...) and add different action script to it. Can this be done, and are there some limits. It is a small tetris like game, and each code would be mainly adding children to a stage, from an array and checking for a collision with objects added on a different layer on the same frame as the label. Also it would change score and so on.
I am working in an Articulate program that is flash based. I don't get much control over the way parts of it function, so I have added a lot of extras to it via flash movies I inserted.
There is one thing I am trying to figure out. I want to add an object that tells the LMS to mark the course complete. I don't need it to check if the score has been submitted or anything like that, by the time a student gets to this object, the test should be done. I just need a flash movie object I guess with the script that writes the completed status to the LMS.
When the movies performs the getURL action, I want the music to continue playing, but the getURL function seems to stop the music at frame 152 (where the getURL action is placed), when I wanted the music to continue to frame 257 (the end of the movie). I hope I've explained this clearly
I have an array that basically calls out numbers for a gotoAndStop action. We have external swfs that get loaded in. Each slide is its own frame in the external swf and they want the flexibility to remove slides at the last minute so my array looks like this:
There are going to be a lot of sections with a varied number of slides and I am looking for a simple code I can attach to the navigation that basically says:
Code: on (release) { if (you have not reached the end of the array);{ ++i; gotoAndStop(myDocs[i]);} }
Is there a code out there that doesn't require you to put specific number values in? like "if (i<22)"?