ActionScript 2.0 :: Create A Button In Flash With A GetURL?
Feb 10, 2010I would like to create a button in Flash with a getURL that can be easily edited by using an XML source.
View 1 RepliesI would like to create a button in Flash with a getURL that can be easily edited by using an XML source.
View 1 RepliesWhat 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?
if i wanted a flash button when clicked on to open a html page in a i-frame how would this be done? what would the script be for this particulare action?
View 6 RepliesI am creating a movie, and need to create alink to open a web page. My movie exists in a folder ("Flash") and I need to move up a level(out of that folder), and into another folder, (HTML) where the page I need to open resides. What would the path name need to be ie: ..HTML/default.html?
View 5 RepliesI have modified simple photo gallery tutorial through XML at [URL] click on a thumb and an image scrolls in. Now I'm trying to add a link to the image - but can't get the url from the xml to the image.
Here's the XML-file (pics.xml)
[XML]
<?xml version="1.0" encoding="utf-8"?>
<images><image>
<pics>pics/utrechtmedia.jpg</pics>
<sites>sites/utrechtmedia.jpg</sites>
[Code] .....
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)
So I made a sliding menu bar by following a tutorial, and the author of the tutorial didn't include how to add a MouseEvent.CLICK to getURL.[code]...
View 1 RepliesHow to write the GetURL function to a button in AS3?
View 6 RepliesI try to create a flash menu; where every button on the screen operates as a simple getUrl() link. Because of this, I have taken the following steps:- Create new document.- Create a symbol on the canvas.- convert is into a button Symbol- Double Click the button and adding events for up, down, over by clicking F6 on each frame.- back in scene one, I right click the button and open the Action panel- Adding the Script: "on release { getUrl('index.html'}- Press ctrl + enter to test the move ! ( index.html exists in the same folder as the flash file.)
View 1 RepliesI'm working with some XML-supplied data, with a variable number of elements. I'm using a loop to add instances of a symbol for each element via attachMovie. But something is preventing my URL action from getting properly assigned.
When I do this:
ActionScript Code:
itemY = 0;
urls = [];
[Code].....
They have been made following a tut from Flash_db.I have not been able to test the PHP script yet so no probs with that , but the problem lies in my Flash movie.
The submit button uses a getURL action, but Flash cannot seem to find the PHP file, even though they are in the same folder.
How can I make this button wait 10 seconds before it does the getUrl?
Code:
process.onRelease = function(){
getURL("/our-process/brand-building","_self");
[code].....
I am trying to make a getURL() that doesn't utilize a button, at a certain frame in the timeline (after a movieclip). I understand that getURL() no longer exists in Actionscript 3 but if anyone can explain to me how to write an action that will allow me to open a URL in its _parent frame after a certain amount of time
without clicking.
How can I make this button wait 10 seconds before it does the getUrl?[code]...
View 6 RepliesI'm having a strange problem with getURL. in my flash file, i have two buttons one for an email link and another one for a site link here is the code
[Code]...
when i test it in flash (Ctr+enter) only the button linking to the site works, but the email button doesn't work. And when i preview it in html, only the the email button works, but the site button doesn't work.
I've been trying to get a bit of control over the "getURL" action. I want the window that pops up to be a particular size, centered and have the maximize button accessible (it always seems to be greyed-out).
heres the code I've been using:
on (release) {
getURL("javascript:openNewWindow('http://www.google.com','thewin','height=600,width=400,max imize=yes,toolbar=no,sc
[Code].....
I've tried a few of the components that are supposed to make this easy but, I haven't found one that works properly yet.
I have been searching Google trying to find a solution to my problem with no joy, so I thought I would post in here to try my luck.I have created a small movie which can be found here, [URL], the problem I have lays with the button at the top of the movie titled "Click Here to Create Your Canvas". I have 'Publish Previewed' in Flash and the button works fine - changing on mouseover and opening link, however when viewed in HTML the button changes as intended but the link does not open on release.
the Action code used is as follows:
[Code]...
I need to have a button load it's GetURL() deal from an external file. XML? Txt?
View 2 RepliesI have a .swf file containing a navigation bar and also an animation. I was going to use getURL on the nav buttons so that a different html page would launch onRelease. The animation in the swf file that contains the nav buttons plays as soon as the swf is loaded and there's also a movie clip in the file which continues its animation even after the file has loaded and played. As each of the nav buttons are pressed and the correct html page loads, I don't want the entire swf file to reload and therefore play the entire animation again as it did on the home page, but instead I just want it to appear as though it's already loaded but I do want the separate movie clip in the swf file to continue to play. Is there any way to make this happen?
Also, I wondered what code I'd need to make the current page nav button appear in a different state to all the other buttons to make a "you are here" effect.
am i publishing the movie incorrectly? It works great when I preview the flash file (cntrl+enter), but after I publish it and insert it into the html (in dreamweaver), the file shows up and animates perfectly, but when clicked, no link... It doesn't do anything
View 3 RepliesI'm running macromedia flash mx, and I'm trying to make a linkable swf by following this procedure: I select the object and then convert it to symbol. Then I choose " button " Right click at the object---> actions ---->[+]--->browser/network ----> getURL. I type my url and choose 'self" target.
When I test movie the hand symbol appears at first, but when clicked it turns to arrow. Exactly the same happends when I appload the swf and of course there's no link ...
I am in need of creating a search button for my flash project. I have created a single .fla file and from that I publish a single executable file. Within this project are various amounts of information on diffferent frames. How can i create a search box on my maing frame that when inputted into it will search my project for the text entered?
View 2 Repliescreating an AS3 Facebook share button? I need to be able to customize the title, description and picture.
View 3 Repliesit possible to create a button in flash that when clicked the flash interface extends to fit fullbrowser?
View 4 RepliesI'm looking to create a flash based popup window when a button is pressed within the flash movie. Not a javascript based html window or html browser window, but a window that is in the flash movie that is entirely flash based. I looked all over the internet and can't seem to find anything on this, and can't find anything on this board either. I am new to flash and actionscripting in general. I would also like to use the Tweener external class, or the flash tween class would work too.
View 1 RepliesIs it possible to create a button in flash and use it in a php form? or even an html form? if yes, how???
View 2 RepliesI have a borderless video that is going to be on a website I'm designing. I can add the play, pause, stop buttons but I need to add an exit video button. The video is going to auto play when a user goes to the website. The video is placed directly over a form, so I need the user to be able to click the exit video and have the video disappear allowing users to use the text fields in the form. I have tried many methods, but to no avail.
View 3 RepliesI'm using Flash CS4 and Flex 3.4.0. I'd like to create a vector-graphic button in Flash and use it in Flex.I'd tried to install the Flex Component Kit, but it won't add me the 2 commands I need for the conversion as stated here.
View 2 RepliesI'm trying to make the code below reusable. I need multiple toggle buttons in my flash project. Right now the code below works on one button. If I continue and create more buttons, and follow the format below, I would need to create separate functions for each button.
I would like to put the reusable code in a separate ActionScript file and not in the FLA file. I am trying to put the rolloverToggle, rolloverToggle, and toggleClick in a class that I'm making.[code]...
I would like to create a button that makes my flash fullscreen.But this line:
stage.displayState = StageDisplayState.FULL_SCREEN;
does not work. Why?(I'm opening my swf directly in Chrome.)
Edit: There seem to be consensus that I should embed in HTML.