ActionScript 3.0 :: Flash - MySpace And Opening Links
Jan 17, 2010
I'm having trouble making Flash open any links when embedded into my MySpace profile. I'm developing a MySpace profile layout that uses embedded SWF movies in custom created DIVs. Everything was going great. Things were loading into place and I managed to get my homemade Twitter widget to update perfectly using a crossdomain.xml.
The one problem I can't seem to address is the 'opening links' issue. Upon searching for the last couple of days, I came across some articles that claim MySpace blocks "navigateToURL" commands. Also found out a workaround that involves placing a transparent GIF over the area which is supposed to be clickable, but I still have hope that such a basic function as clicking a button within an embedded SWF in MySpace and opening said link can be achieved.
my links will not open in myspace anymore. read this article for further explanation. [URL] i dont understand what they mean. im just trying to get these buttons working... [URL]
I'm working on a site that's intended to display full screen. At present the initial HTML page has a "launch site" link which pops up a fullscreen window (via javascript window.open) with our Flash content.Once in the Flash site, all URLs that point at off-site destinations are set to open in a new window ("_blank" as the target - either an href in text, or via navigateToUrl). In Mac Firefox the new window opens BEHIND the full-screen Flash (as a new tab in my case). In Windows FF and IE, and Mac Safari, the new window pops in front of the fullscreen Flash.Is there a way to make the non-fullscreen window pop in front of the fullscreen Flash? I'm using swfobject 2.1 - perhaps I need to use an externalInterface call...thoughts?
I am currently building a XML gallery. The thumbnails are created inside the FLA file, and it's driven with a XML file. When a thumbnail is clicked, it will bring up the Detail movieclip. And inside the Detail movieclip, I've created some buttons with an external class of "DetailButtons". Inside the DetailButtons class, the buttons dispatch a custom event that the FLA is listening for. The problem is I can't figure out how to have one of the buttons open the corresponding url link in the XML file. I just keep getting the 1069 error.[code]
I'm relatively new and I've made a script on my banner for buttons to link internally to different pages on my webpage. The problem I'm having is every time I click on a link it directs me into a new window, it will redirect in the same window and new tabs wont keep poping up? The website is [URL] if you want to see the problem I'm having.
stop() road.addEventListener(MouseEvent.ROLL_OVER,play1); function play1(event:MouseEvent):void{ gotoAndStop("specroad");
[Code]....
I've tried a few things but I can't get anything to work. I shouldn't have any trouble fixing the rest of the script!
Each page has like the first page "Welcome" followed by a brief paragraph followed by a "read more..." link/button which opens to a small popup window with additional 3-4 paragraphs. So the main page has "WELCOME" > small paragraph > read more button.
Below that has "LATEST WORKS" > small paragraph > read more button
Both of those "read more..." lead to the same popup window but have their own title "Welcome" and "Latest works"(don't know where the mini title file is) but the paragraphs are the same which I don't want. I want each "read more..." to open to its own little popup.
Still learning script but is their anything in the script to change or something on stage? Or just redo everything somehow on (rollOver) { gotoAndPlay("p1"); } on (releaseOutside, rollOut) { gotoAndPlay("p2"); } on (release) { _root.popup.gotoAndStop(2); _root.popup.label.text = i;}
The links I have in my .swf keep opening in new windows/tabs rather than the same one, how can I make it open in the same tab? Here's my actionscript 3 script:
aquaheal.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_2); function fl_ClickToGoToWebPage_2(event:MouseEvent):void { navigateToURL( new URLRequest("http://www.mediwales.com/index.php?id=6&member=9"), "_self"); }
I'm working on a SWF that is a banner on a home page and the is opening links a new window despite my attaching the "_self" argument to the navigateToURL command.Like here is a snippet of code TO ME it looks right:
PHP Code: var link_001:URLRequest = new URLRequest("http://www.lcc.edu/schedule/");button_001_btn.addEventListener(MouseEvent.CLICK,
I'm having trouble getting Flash to work on Myspace. I'm running OS X 10.6.7 on an iMac, and using Firefox 4, Safari 5, and Opera 11 ... and nothing works. Myspace pages come up OK, but don't allow me to play songs on them. I've reinstalled the latest Flash ... am I missing some sort of additional plugin, or have I added some other plugin that's preventing it from working? and if I haven't provided enough info, I'm sorry, I'm a first-timer here.
I've been looking online for a while today to try to locate some information on how to pull information into flash (CS3) from Facebook and more so from Myspace. The reasoning for the myspace (I hate it as much as the next guy) is that I really want the look and feel to mimic the site I'm working on to keep the branding.Currently I have a theme from URL... placed in my theme at URL... and had used the myspaceID for allowing the application access to the account.
I made a quick flash document for my friend who posted it his MySpace. The document has 3 buttons, each with a URL attached to them. When I play the SWF file locally, the links work fine, however once it's published to MySpace, the links refuse to work. The hand icon comes up so it understands them at least as buttons, but it seems to do nothing when clicked in the web-browser. Also, I can open the SWF in my browser and it also works fine.
I'm using Flash CS5 and working in ActionScript 3.0.The three buttons are on one layer called "Buttons". I right click the button and click "Actions". From there, I click the "Code Snippets" and under the folder "Actions" there is an item called "Click to Go To Webpage". Here is the code it gives you by default:
button_2.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_6); function fl_ClickToGoToWebPage_6(event:MouseEvent):void { navigateToURL(new URLRequest("http://www.adobe.com"), "_blank"); }
I heard there was a problem with MySpace not allowing action scripts, and after checking the source code, the value is set to not allow action scripts. I don't think it's a browser issue, since it's working fine when I execute the SWF by itself, and when I load it into Firefox. It's just seems MySpace is having a problem with it.
I have a question for anybody that can answer this one... I have created a photo thing for myspace but when I put my swf file into my myspace it will not load the xml file that the photos are in. The swf works perfect on my server though.
Ok this isn't as much of a flash issue but I can't figure out why the page loads this way. For those that can't see the image when myspace loads it automatically has the typing indicator on the search bar so if one of my friends trys to use my cmd prompt he types something in it searches on mysace. The only way around this is to click in the grey area / off the search bar then click the input box to begin typing. I'm wondering if there is a way if you guys know the where my flash input box gets priority over the typing indicator blinky thing.
Is it possible to load in data of a myspace agenda as xml? Or is there a wsdl? I could not find an easy way to do this. I checked the myspace opensocial, but you use this only when you are building an application for the myspace site, right ?
i created an actionscript 3 swf file and put it on myspace. that swf file contains a pretty simple xml pic loader.my problem now is that the xml content doesnt work in myspace! if i try it straight on my server it works fluently.URL...
I am trying to find a way, if any,to pull show information from their myspace page to show in my flash app.Want to do this using php,but other than that not sure where to begin.
i created a flash slideshow with pictures of events and link each picture with its own event (ie. each pictures has its own links to the website). I created the fade in and fade out effect using the class motion tween. With the link, I created a layer with a button that has alpha= 0 (so the user don't see it) and then I used code snippet to make another layer with the action script "click to go to url."
When the slideshow goes to the last picture I made it fade out and the first picture of the slideshow would show up and then the slideshow would replay itself (by default?). My goal is to make a continuous slideshow.
When I tested the swf file, the first time it runs, everything is right. The urls and the pictures are in correct order. However when the slideshow replays itself automatically, I notice that the links are incorrect. In the first play, when I click the picture of the event it would open the url of that event.However when the sldieshow replays, clicking the pictures would only open the url of the first event picture. When I click on the 2nd, 3rd, 4th, etc.pictures the browser opens only the link of the first picture of the slideshow.
I've got a PHP script that searches for links in a block of text and converts them to HTML values. The $message variable is then entered into my database using a simple INSERT. So far, so good. Then I have Flash parse the message using XML:
ActionScript Code: function messStyling() { messCSS = new TextField.StyleSheet(); var messCSSURL = "include/links.css";
[Code].....
The problem, however, is that my links don't work. The rollover works from the CSS styling, but the links don't actually go anywhere. When I rollover the links, the hand cursor doesn't appear, and clicking only serves to change the color back to the non-hover value.
I'm writing some code in Flash MX 2004 and everything works fine except for the last button (4DSystemsProducts).According to the coding if none of the drop down buttons work it should go to products.php, but for some reason it goes to 4DSystemsProducts.php. All of the other menus are coded the same way and work fine, if I take out that button it works fine,or if I take out button 7 and switch 4DSystems to button 7 everything works.Here is the code to clear up this explanation. [code]....
I want to add links to 3 different external html pages in the place of th 3 my trial links(which are on the timeline) Here is code, this creates the three buttons listed in var catBtmmenu_label Array:
Code: Select all// Catalogue Bottom Button //stop(); //hide button on the stage[code]..........
I dont know how to assign links to dynamic created buttons.
Im having a little bit of a problem with a .flv file i want to put into a flash document for adding a play and pause button.
Im not sure why, but i get an error message every time i try to load the .flv
Ive tried same method with other .flv files i have to make sure - it is definitely just this one. I want to figure out whats up with it and have no clue about encoding, is it possible for anyone to just have a quick look to see if they can open it?
I just bought Flash CS5 for own computer. I already have CS4 on the computer at work. Unfortunately I get an error when I tried to open a CS5 project in the CS4 at work. My boss is unwilling to buy CS5. Is it truly so that you cannot open a CS5 project in CS4 or is there a way to adjust a project in both systems.
just recently upgraded to Leopard. Flash now crashes when opening certain fla's (that worked fine before). The files sometimes open, but then crash the app when I select something on the stage. In these cases I can actually edit the actionscripts.I'm not sure if the crashes are related to Leopard; don't remember if I tried opening one of the problem files since upgrading.I'm on a MacBook Pro 17 2.33, 2gb ram.I repaired permissions (several times), ran various Onyx processes, zapped pram, removed all the prefs files I could find, and reinstalled the whole suite (CS3 Master suite). Bridge won't even open; it crashes on opening.
I am trying to have multiple links off site but have hit a brick wall. If I have the code listed below, it opens the second link as soon as you open the links page, If I have the"function onLinkClick (evt)", above btn6_btn I end up with the duplicate error message. Is there a way to have multiple link buttons on a page. I have played with this for hours.