ActionScript 2.0 :: Flash 8 GetURL Bug With \ In String?
Nov 2, 2007
We've recently been stumped trying to get flash to successfully getURL. The getURL was well formed, with a target of "_blank". Changing the URL to something basic e.g. blah.html worked just fine.owever, anything which has the following character combination within the URL string chokes & won't trigger the getURL:Code:getURL("a\b", "_blank");Obviously the backslash character is very rare in URL's but does anyone know of a way to make this work? Or is it just a bug within Flash 8 Professional?The actual paramterized url we were trying to pull up had ?blah=somethingsomethingelseetc within it. Originally we just pasted the URL in but the backslash was interpreted by flash to be a special character cue, changing e.g. 200 -> Euro symbol. thus we put \ to ensure flash knew we wanted to use a literal backslash character in the string.
basically i have an array full of url's with query strings (page.html?var1=hi)
I'm doing a getURL(array[0]); and the result i get is just the page.html without the query string. it basically seems to be ignoring everything starting from the ?. I tried to url encode the ?
I am sending a string to asp from flash that looks like this;
[CODE].....
The problem is when asp (probably php too) reads this string, it reads it like this
[CODE]....
Now this sucks, is there a way to encrypt my flash string so asp will read the string corectly? I know asp is url encoding the flash string, but this bit of info does not seem to help.
I'm creating a CMS(Content Management System) tool so that users can change text and the changes be reflected in a text window in flash . The text that the user enters in the CMS tool will be stored in the database.
In flash I want to parse the string that I get from the database and look for URL strings that start with http "http://www.someurl.com" and parse out that substring.
For example the string could be "Please vist my site at http://www.site.com". I would want to parse out the http://www.site.com
If I find this url string I want to pre-pend the a href tag <a> and append the closing </a> tag to the string so that this link will be clickable from the textfield.
Does flash have an object that deals with Regular Expressions? I've looked at the String object in flash but not sure how to achieve this task
I'm creating a CMS(Content Management System) tool so that users can change text and the changes be reflected in a text window in flash . The text that the user enters in the CMS tool will be stored in the database.In flash I want to parse the string that I get from the database and look for URL strings that start with http "URL..." and parse out that substring. For example the string could be "Please vist my site at URL...". I would want to parse out the URL...If I find this url string I want to pre-pend the a href tag <a> and append the closing </a> tag to the string so that this link will be clickable from the textfield. Does flash have an object that deals with Regular Expressions?
I'm making a sort of portfolio movie using flash which I intended to use for directing to different locations in the Web concerning me; my already uploaded flash movies, sites, creations, projects, etc.
It quickly seems all my work till now might have been for nought: when I click on a link in my published flash so far, it displays this message:
"Adobe Flash Player has stopped a potentially unsafe operation.
The following local application:
(swf path)
has tried to communicate with this Internet-enabled location:
(link target)
To let this application communicate with the Internet, click Settings. You must restart the application after changing your settings."
As you can probably understand, I cannot expect visitors to my site to manually configure their player for every single of the tens of links I have in my movie. Is there any way I can convince Flash Player that my links are not potentially unsafe?? I am using Flash CS3 and AS2.
If I made a homepage with an embedded .swf which had buttons that linked to other html pages on my website using the getUrl() function, would those links be spiderable by google? Or should I also put in text links outside of the .swf (which would ruin the design a bit)?
I have 2 'getURL' functions on one keyframe, one a text (converted) button, the other an image. They are both next to one-another however only the text (converted) one works. The top bit of code is the text (converted) button:
bt_url.onRelease = function (){ getURL("[URL]","_blank");}; bt_ethicaltrading = function (){ getURL("[URL]","_blank"); };
The code for each is exactly the same, I have checked instance names, tried different url's and even created an invisible button for the image based one. I have also tried putting the buttons on the same layer.
What I want to do is take the value of $MyState in the php code below..
PHP Code:
<?php $MyState = $_GET['MyState']; ?>
[Code].....
I know that I need to do something with Loadvars, but all of the tutorials I've tried aren't working. how to get this php value into my flash file button's getURL?
I am just trying to pass some variables from flash to php with getURL getURL("CompSummary.php?url3=" + url3, "_self"); URL33 keeps coming back as undefined
However I printed out url3 using dynamic text in the flash movie just to check it and it does indeed exist, and is defined. I also tried creating a string and passing that to getURL var path = "CompSummary.php?url3=" + url3; getURL(path, "_self"); still no luck.
I'm using a template to redo my site, since im too lazy to redesign my own. What I would like is when the full size image is loaded, there is the ability to click on the image and it will open up a URL in a seperate window. Just not having luck with it.Anyway, here is the script that I would like to have Flash load the URL added from the XML file.The MC that the photo loads into is "flashmo_photo_area"
ActionScript Code: // Copyright flashmo.com // Developed by Min Thu
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.
I use getURL to trigger new page, it works in flash player 7 (publish setting -> flash player version 7) but not works in flash player 8 (publish setting -> flash player version 8). Here is the code :
I have the following problem trying to open a new window from flash:
getURL(url, new_window, "POST")
What happened was that the first time I clicked the button, it opens a new window; but subsequent clicks seem to do nothing... No "post" is done and that window doesn't get refreshed.
I wasn't quite sure where to put this. I created a banner for a friend in flash using actionscript 2 and the getURL command. When I go to embed it in HTML, the movie shows up and when you hover over it, it appears to link but when clicked it does not link. When I go directly to the .swf file it links, but not when I embed it. Is there anything special I have to add to my HTML to make the link work?
I'm stuck with defining a getURL function while loading an external XML file.
I have a Flash AS2.0 file and I've made it CMS driven. The content for everything in the SWF file is loaded from an XML file which resides on the same server. I've defined all other XML variables and I'm able to successfully parse them inside a holder MC I have in my Flash file. Some of the many variables I have are name, caption, thumbnail img, large img, etc... I've also defined the XML file with a 'Link' that points to a URL relative to each image it loads.
I'm unable to define the function in Flash to retrieve the URL from 'Link' parsing value stored in my XML file.
I tried defining a function called getLink in actions layer of my Flash file:
getLink = function () { getURL('Link[ID]','_blank'); };
The ID is loaded in the beginning of the Flash file - based on the number of values available in XML file. All other functions work, except this getURL function.
At the end of my movie I want to launch a URL that loads up another Flash movie. In the past I would use something like getURL("[URL]"); how to perform this task in Actionscript 3?
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 have an interesting (and rather embarrasing) error occuring only in Firefox on http://www.northwestu.edu/report/06/. If you watch the presentation in Explorer, this is the proper chain of events:[URL]..I oversee this site and unfortunately we did not find this bug until after linking up this content to our home page.
I have 2 buttons in a flash movie with the following codes. They open a new URL that also contains a flash movie and it sends the variable "nFrame" and a value.
Button1: Code: on (release) { getURL("goats.html?nFrame=1"); }
Button2: Code: on (release) { getURL("goats.html?nFrame=2"); }
When the new URL opens I want the flash movie to begin at a particular frame depending on what variable "nFrame" is equal to. I tried placing this code in the first frame to do it but it didn't work, the movie just loops and loops and doesn't stop at any frame.
The problem is, this works fine in google Chrome, but not in mozilla firefox or IE. So that eliminates the idea of it being a coding error on my part. Is there another way to do this that all three browsers will support?
I want to use getUrl to display a javascript alert. I've found an example that works perfectly, by using getUrl("javascript:alert('hello world')"); But that example is published for Flash Player 6, and the rest of my movie requires FP8. And if I go to publish settings, and select Flash Player 8 as target, the javascript is no longer executed.
It's not about the getUrl changes in Flash Player 9, I've also tested with Flash Player 8. If you want to try for yourself, the example I'm talking about is from [URL]..
Note: I rarely join forums or post threads, however, given the living hell i went through to figure this problem out I thought i would go ahead and post this for all others having my problem (in hope that you find this link and it solves your problem). Aim: using frames, I want to create a flash menu in the left frame, the buttons in the left frame should open up the target page into the (main) right frame. [in other words a normal frame based website that has a flash menu as the navigation for the site] Problem: When using getURL to open the page in the frame i.e. on (release) {