Flash 8 getURL Buttons
I have a site with navigation buttons in some of the Flash
(Flash 8) movies. The navigation buttons within Flash are
programmed to load a new html file in _Self. All of the html pages
are within the same directory. Here is the code:
on (release) {
getURL("operation-03.html", "_self");
When I upload the site to my Web site, the buttons work
perfectly. However, when I load the site onto a CD, only the
Dreamweaver navigation buttons work. The navigation buttons within
the SWF files do not work. Nothing happens when they are clicked.
I have 'Allow active content from CDs to run on my computer'
checked in the Security section of my browser.
Is there something else I have to do to make these navigation
buttons work when the site is run from a CD?
TIA
Thanks Urami! This worked. However, there is still one set of
buttons that still don’t work. These buttons are programmed
to open a new window that is a specific size and has all the
toolbars and menu bars turned off. The html page that opens in the
window contains an swf file that runs a video.
Again, it works perfectly over the Internet or when I test
the html page from Dreamweaver on my PC, but the window will not
open when the button is pressed if the program is running from a
CD.
This program was originally created with Studio MX 2004 with
Flash Professional. With that version, the CD worked on Windows
2000 PCs but not Windows XP. We re-published the entire program
with Flash Professional 8. Once I fixed the file names as you
suggested, everything works except the buttons that open a child
window. Now these buttons in the Version 8 program don’t work
on a CD running on Windows 2000 either.
Here is the code that I have in Flash movie for the button:
on (release) {
getURL("javascript:newWindow('videowin_turnassist.html')");
Here is the code that I have in the html document:
function newWindow(bookgif) {
bookWindow = window.open(bookgif, 'bookWin',
'toolbar=no,location=no,menubar=no,scrollbars=no,resizable=no,width=400,height=425')
bookWindow.focus()
I got this html code out of a reference book several years
ago and we use it all the time to open child windows from parent
windows.
I tried other code that I got out of an ActionScript book and
from the Help files, but I can’t get any of it to work at all
(not even from Dreamweaver).
Do you have any other suggestions for opening a specifically
sized child window that will run a Flash movie?
TIA
Diane
Similar Messages
-
Are Flash Professional Buttons broken in Flash Builder 4.7/AIR 3.4?
Moved my ActionScript Mobile Project game from Flash Builder 4.6 / AIR 3.2 yesterday to the new release of 4.7 / AIR 3.4. I immediately ran into a problem with Flash Professional Button's working incorrectly. The buttons have linkages in a SWC exported from Flash Professional CS6, which the project has linked. The content of the buttons doesn't seem to matter. It seems to break in different ways visually depending on it's composition (sometimes it loads unreleated bitmap data or displays with a strange transformation). Has anyone else seen this behaviour so far?
I don't have the time to create a unique project for adobe bug database. So many are having the same issue, I'm shocked that Adobe doesn't know about this already. This discussion that I'm writing in right now was started in december, almost 7 months ago.
Joseph Labrecque says in his blog that adobe does know of this issue and is working on it, he said that 6 months ago. Is he incorrect?
Joseph LabrecqueJanuary 4, 2013 at 6:21 pmGood news that Adobe is actively working on a fix for this issue.
http://inflagrantedelicto.memoryspiral.com/2012/12/flash-builder-4-7-useflashsdk/ -
Issue: Flash radio buttons & Php form
I have a flash form which all of the fields are sending
correctly
through the php code. The flash radio buttons I added with
the
groupname == topic, doesnt send with the rest of the
information that is being sent to the email. My question is
how do I get
the flash radio button info to submit with the rest of the
form.
The code for the send button on my flash file:
on (release) {
// send variables in form movieclip (the textfields)
// to email PHP page which will send the mail
form.loadVariables("form.php", "POST");
===============================================
===============================================
Form.php:
<?php
$to = "[email protected]";
$subject = "Contact Page Information for Today";
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] . ">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-Path: " . $_POST["email"];
$message .= "\n\n";
$message .= "Subject: " . $_POST["topic"] . "\r\n";
$message .= "Email: " . $_POST["email"] . "\r\n";
$message .= "Name: " . $_POST["name"] . "\r\n";
$message .= "Address: " . $_POST["address"] . "\r\n";
$message .= "City: " . $_POST["city"] . "\r\n";
$message .= "State: " . $_POST["state"] . "\r\n";
$message .= "Zip Code: " . $_POST["zip"] . "\r\n";
$message .= "Phone: " . $_POST["phone"] . "\r\n\n";
$message .= "Message: " . $_POST["message"] . "\r\n";
mail($to, $subject, $message, $headers);
?>
TextDo you mean like this:
<?php
var topic;
var listenerObject:Object = new Object();
listenerObject.click = function(eventObj:Object) {
topic = eventObj.target.data;
trace(topic)
groupTopic1_rb.addEventListener("click", listenerObject);
groupTopic2_rb.addEventListener("click", listenerObject);
groupTopic3_rb.addEventListener("click", listenerObject);
groupTopic4_rb.addEventListener("click", listenerObject);
groupTopic5_rb.addEventListener("click", listenerObject);
groupTopic6_rb.addEventListener("click", listenerObject);
groupTopic7_rb.addEventListener("click", listenerObject);
groupTopic8_rb.addEventListener("click", listenerObject);
groupTopic9_rb.addEventListener("click", listenerObject);
groupTopic10_rb.addEventListener("click", listenerObject);
groupTopic11_rb.addEventListener("click", listenerObject);
groupTopic12_rb.addEventListener("click", listenerObject);
groupTopic13_rb.addEventListener("click", listenerObject);
groupTopic14_rb.addEventListener("click", listenerObject);
$to = "[email protected]";
$subject = "Contact Page Information for Hope Today";
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] . ">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-Path: " . $_POST["email"];
$message .= "\n\n";
$message .= "Subject: " . $_POST["topic"] . "\r\n";
$message .= "Email: " . $_POST["email"] . "\r\n";
$message .= "Name: " . $_POST["name"] . "\r\n";
$message .= "Address: " . $_POST["address"] . "\r\n";
$message .= "City: " . $_POST["city"] . "\r\n";
$message .= "State: " . $_POST["state"] . "\r\n";
$message .= "Zip Code: " . $_POST["zip"] . "\r\n";
$message .= "Phone: " . $_POST["phone"] . "\r\n\n";
$message .= "Message: " . $_POST["message"] . "\r\n";
mail($to, $subject, $message, $headers);
?> -
Form from hell (Flash Radio Buttons)
Does anyone have a bead out there on a behavior that you can
use with the native Flash radio button groups in Director MX 2004.
I am going freakin' bonkers trying to write a behavior for
these things.The Flash Components are not documented in Director, though
they are
documented in Flash. If you can parse the dense and difficult
to
understand Flash Help file (and yes, you would need to have
Flash to get
it), then you can see all the docs for those components.
Before I go much further, I should say that in my experience,
using
#flashComponents is a painful and tedious business. I do not
recommend
it. It will probably be MUCH easier on you in the long run if
you write
your own script from scratch.
But, for the sake or archival completeness, this is a script
that will
do what you want with the checkbox/radio button
#flashComponents:
1) Go into the Property Inspector and on the FlashComponent
tab for each
member, make sure that the eventPassMode is set to
#passAlways
2) Put this code onto the buttons:
on mouseUp me
if sprite(me.spriteNum).selected then
sendAllSprites(#deselect,me.spriteNum)
end if
end
on deselect me, vExcept
if me.spriteNum<>vExcept then
sprite(me.spriteNum).selected=0
end if
end -
Need help with Flash CS4 buttons/can't get buttons to control anything
Hello,
I need help with Flash CS4. I am making a banner with an animation (Image change into movie clip "3D Spiral") and added buttons but I cannot get the buttons to control the animation. Please help I am frustrated! If someone could help I would be most appreciated.Thank you.
Regards,
Michael J. Sheehan allelois
Date: Mon, 17 Aug 2009 18:48:09 -0600
From: [email protected]
To: [email protected]
Subject: Need help with Flash CS4 buttons/can't get buttons to control anything
Hi there
I'm not sure how you wound up where you did. But you wound up in the Adobe Captivate forums. Please stand by as I move your thread to the Flash forums.
Cheers... Rick
> -
How to access the flash player button controls from FLEX?
Hi,
I'm creating one application in that i hav created a presentation in Adobe Presenter and i played in flex, now i want to control the flash player buttons from flex 3.
Can anyone tell how to solve this, i need the solution for this very urgent, please help.
Thanks in Advance.Hi,
I'm creating one application in that i hav created a presentation in Adobe Presenter and i played in flex, now i want to control the flash player buttons from flex 3.
Can anyone tell how to solve this, i need the solution for this very urgent, please help.
Thanks in Advance. -
Saving flash play button to use in dreamweaver
let me start off first by saying i am creating a music web
page and this is my first time using flash or dreamweaver so stick
with me please...i have downloaded a flash play button and have got
the actions the way i want them...what i need to know is how to
save this to where i can open it in adobe dreamweaver and also how
do i go about opening it in dreamweaver
thanks alotanyone have any suggestions as to what i should do
-
How to open an swf in its own window outside flash using button
how do I open an swf in its own window outside the flash using button?
Hi,
Try this code:
import mx.containers.Window;
var my_button:mx.controls.Button;
var buttonListener:Object = new Object();
buttonListener.click = function(evt_obj:Object) {
var my_win:MovieClip = mx.managers.PopUpManager.createPopUp(evt_obj.target, Window, true, {title:"Sample Image", contentPath:"uganda_animation_Scene 1.swf"});
my_win.setSize(320, 240);
my_button.addEventListener("click", buttonListener);
You must drag the window default component and place in to the library.
Saransoft -
So, I was out mowing the lawn. When I came back in, my Mac had shut itself down. Strange, it hasn't done that before except after a power cut. Which, as far as I am aware, there wasn't today.
When I booted it up again, there was a strangely different monotone straight away and then the power button flashed quickly a number of times... then it seemed to start up ok.
It's working now, but do I have a problem? I've searched the discussion site for flashing power buttons but with no success. Any help would be much appreciated.
G4 500DP Mac OS X (10.4.7)Hi, John -
Welcome to Apple's Discussions.
Your G4/500DP machine is a Gigabit Ethernet model. This Apple KBase article addresses that condition for that model -
Article #58442 - Power On Self-Test Pt. 2
You will need to note the number of flashes to determine which item is being reported. -
Flash Component Button click not working
I've gone back to an old project to change some logos around,
and my flash component buttons no longer work. They appear on
stage, but the click event is not happening. I authored on XP, now
on Vista. Director 10.1. Any idea what is happening?If you are adding those buttons now, check for each button
the Flash
component tab in the property inspector and make sure the
eventPassMode
(lowest option) is set to #passAllways.
HTH
Manno
khomel wrote:
> I've gone back to an old project to change some logos
around, and my flash
> component buttons no longer work. They appear on stage,
but the click event is
> not happening. I authored on XP, now on Vista. Director
10.1. Any idea what is
> happening?
>
Manno Bult
http://www.aloft.nl -
Do Flash getURL links work when SWF is embedded in Director?
I’ve got a simple test rig that says no, the links
won’t work. Anybody get this to work?
My test rig has two buttons in Flash, one gets a pdf from a
remote server, the other opens a local PDF on my hard drive.
When played from the Flash player the local link works fine,
the remote link looks like it would work if I were willing to
change my security settings and restart.
When embedded in Director both links are inactive.
And, although this is not terribly relevant, when the SWF is
played remotely through a browser, the remote link worksYour Flash .swf is expecting to be housed in an HTML doc, and
so a getURL function is trying to reach out to the browser. When
you import your .swf into a Director movie, that Director movie is
taking the place of the browser window. So your function fails to
reach a browser. This is compounded if you are playing the .swf
from a Director projector as there's no browser immediately
available.
There is a simple solution. You can use the on getURL
me,string function in Director to intercept the url.
So, if your Flash movie has something like this:
myButton.onRelease = function() {
getURL("www.disney.com",_blank);
Then in your Director movie, write a behavior something like
this:
property thisSprite
on beginSprite me
thisSprite = me.spriteNum
end
on getURL me,link,target
gotoNetPage link,target
end
Then attach that behavior to the Flash sprite. -
Flash link(button) problem via xml link (Flash popup error)
hi...
I'm getting a problem when i run a swf file from HTML/Outside(i mean to say from folder) and click on the button (button calling xml file which has link in it), i get a adobe flash popup error/msg. As shown below....
my codes are as follows
XML CODE:
<?xml version="1.0" encoding="utf-8"?>
<tree>
<link>
<port>http://www.marcomanie.com</port>
<news>http://www.asdfmanie.com</news>
<gallery>http://www.wesdmanie.com</gallery>
</link>
</tree>
My flash codes are as follows
LOADING AS
function loadXML(loaded) {
if (loaded) {
_root.port = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
_root.news = this.firstChild.childNodes[0].childNodes[2].firstChild.nodeValue;
_root.gallery = this.firstChild.childNodes[0].childNodes[3].firstChild.nodeValue;
port.text = _root.port;
news.text = _root.news;
gallery.text = _root.gallery;
} else {
trace("file not loaded!");
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("linker.xml");
BUTTON AS
on (release) {
getURL(_root.port, "_self");
Pls let me know what i have to do, to get away with that error
im very much new to these kind of errors, any fast help will be appreciated.
thank u
sunderfix your security settings to trust that swf:
http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.htm l -
Flash MX - button link to iframe?
I have an HTML page with a navigation bar created in Flash
MX. I would like to make the buttons open a URL in an iframe on the
same page. The iframe is called simply, 'iframe'.
I have read many forums and tried a dozen suggested action
scripts, but none work. A few examples below. Can anyone please
help me make the button open a url in an iframe?
Examples that don't work::
on (release) {
getURL("
http://www.whatever-target-page.htm",
"iframe ");
ANOTHER::
on (release) {
getURL("
http://www.whatever-target-page.htm",
"_iframe ");
ANOTHER::
ANOTHER::
on (release) {
getURL("
http://www.whatever-target-page.htm",
target="iframe ");
ANOTHER::
on (release) {
butoninstancename.onRelease = function() {
getURL("
http://www.whatever-target-page.htm",
"iframe");
It is now 1.12am and I have been at this since this
afternoon. Some forums offer suggestions that don't work and two
said it was not possible. It must be possible, isn't it? Can
someone rescue my sanity?
Thanks
JonathanJonathan,
> I have an HTML page with a navigation bar created in
> Flash MX. I would like to make the buttons open a
> URL in an iframe on the same page. The iframe is
> called simply, 'iframe'.
Fair enough. :) It probably makes better sense to name that
iframe
something more descriptive, like nav, or siteNav, but iframe
is a valid
name. When you say this iframe is "called" 'iframe,' what do
you mean by
"called"? What HTML are you using?
> Examples that don't work::
>
> on (release) {
> getURL("
http://www.whatever-target-page.htm",
"iframe ");
> }
The on() function is Flash 5-era code. It still works just
fine, but it
must be attached directly to an object (such as a button) in
order to work.
Nowadays, it's more customary to put code into keyframes. But
assuming
you've used on() correctly, the above code will look for a
frame named
"iframe " <-- note the space character after the letter
"e".
> on (release) {
> getURL("
http://www.whatever-target-page.htm",
target="iframe ");
> }
Here, you still have that space after the "e", but you're
including
something outside the quotation marks in the second
parameter. The getURL()
function accepts up to three parameters, separated by commas,
and all of
them must be strings. The second parameter *is* your target
-- this works
very much like the anchor tag in HTML -- so you don't have to
use the word
"target" here.
> ANOTHER::
>
> on (release) {
> butoninstancename.onRelease = function() {
> getURL("
http://www.whatever-target-page.htm",
"iframe");
> };
> }
Here, you're using both the on() function and the newer
(since Flash MX)
way to handle events, which isn't going to work. Because of
the on()
function, this button doesn't need an instance name --
because it's clear
which button is intended to receive these instructions -- so
... I suppose
one might say you're mixing metaphors here. ;)
That said, your getURL() parameters are spot on in this last
sample, so
revise your work to this:
on (release) {
getURL("
http://www.whatever-target-page.htm",
"iframe");
... and that should do it.
For a bit more detail on the on() function, see this:
http://www.quip.net/blog/2006/flash/museum-pieces-on-and-onclipevent
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/
"Luck is the residue of good design." -
I am a new user of Flash and have run into a problem I can't
seem to solve after hours of trying. What I thought would be quite
simple...creating a button that when published and then opened in
IE7 would, when clicked, cause IE7 to link to another web page. My
tutorial book mentions just applying a "Go to web page" Behaviour
to it, but while that works fine in "Test Movie", nothing happens
in IE7. I have also read some previous posts here on the subject,
done what was recommended and still no luck. What the heck am I
doing wrong and where? Here's a simple run through of what one
might do.
1. Open a new Flash file and call it Button_Test, create a
new Button symbol called btn_test, create the Up, Over and Down
states, and return to the Stage.
2. Move the button to Frame 1 of the first layer on the
stage, click the button, and name the "instance" in Properties
my_btn
3. Click on frame 1 of the button layer, open Actions (F9),
then as recommended here to others, I tried the following action
scripts:
my_btn.onRelease=function(){
getURL("
http://www.adobe.com");
and later I tried:
my_btn.onPress=function()
getURL("
http://www.adobe.com","_self");
Both of these worked fine in Control>Test Movie. IE7
opened and a link was established to Adobe. So the next step was to
publish the button in .html as one would do with a completed Flash
project one wanted to use as a web page. Here's maybe where
something is going wrong?? For that I clicked on File>Publish
Settings, used all the defaults except for the HTML tab where I
selected "Active Content Update-HTTP" beside the template title,
and unchecked "Loop". Clicked "Publish", and published
"Button_Test.html". Then I clicked on Commands>Apply Active
Content Update, and added that file to the directory containing
Button_Test.html.
Finally I closed Flash, and in Windows Explorer, I went to
the Button Test directory and double clicked on Button_Test.html.
IE7 opened, and there was my button......the Up, Over and Down
states working perfectly, but no mouse clicking on it in any manner
did a thing. The button just sits there, no link is established,
and no Adobe web site opens. So what is wrong here? If I can get
one simple button to work, I can then return to a very large
project I'm working on and get several buttons there working.
What's really strange is that the main project contains buttons
that open Outlook Express from IE7 (after publication etc) and
place an address in it, and they work fine. In fact everything in
the main project including embedded movies etc. is working
beautifully in IE7 after publishing except for the darn web link
buttons. Any help or clues anyone could offer would be greatly
appreciated. If my IE7 is the problem, exactly what settings should
be changed there?...................frankOkay, here's an update....A fresh install of IE7 with default
settings, Flash buttons with links to a URL that work in Test
Movie, but won't link in IE7 after button is published with mostly
default settings (see first post) to .html. Looked at .html code
for button (see below) and tried changing all "AllowScriptAccess"
places to "always" , but still no change in IE7. I've tried every
single thing I know to solve this and still no luck. I am now at
the complete mercy of this community :) and am hoping someone,
somewhere can see what is wrong. Thanks to all...........frank
Button's html code:
<html xmlns="
http://www.w3.org/1999/xhtml"
xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Button Test</title>
<script language="javascript">AC_FL_RunContent =
0;</script>
<script src="AC_RunActiveContent.js"
language="javascript"></script>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js. In Flash,
run \"Apply Active Content Update\" in the Commands menu to copy
AC_RunActiveContent.js to the HTML output folder.");
} else {
AC_FL_RunContent(
'codebase', '
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
'width', '550',
'height', '400',
'src', 'Button Test',
'quality', 'high',
'pluginspage', '
http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'false',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'Button Test',
'bgcolor', '#ffffff',
'name', 'Button Test',
'menu', 'true',
'allowScriptAccess','sameDomain',
'movie', 'Button Test',
'salign', ''
); //end AC code
</script>
<noscript>
<object
classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="550" height="400" id="Button Test" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="Button Test.swf"
/><param name="loop" value="false" /><param
name="quality" value="high" /><param name="bgcolor"
value="#ffffff" /> <embed src="Button Test.swf" loop="false"
quality="high" bgcolor="#ffffff" width="550" height="400"
name="Button Test" align="middle" allowScriptAccess="sameDomain"
type="application/x-shockwave-flash" pluginspage="
http://www.macromedia.com/go/getflashplayer"
/>
</object>
</noscript>
</body>
</html> -
Creating a simple Flash Website - Button Problems
I am totally new to this. Please be as detailed as possible.
I do not know anything.
I'm building a website using this basic model (
http://www.oman3d.com/tutorials/flash/simple_website/).
I tested the tutorial to become familiar with it.
However, I want to use custom buttons that I made in
Photoshop as links to the other pages in the website. The tutorial
I'm using only demonstrates the use of components and parameters.
How would I go about doing the same thing but with my own buttons?
I've imported them as TIFF. Is that correct? Do I need to make them
into symbols? And even then, how do I link them to the pages?
Can you please help me or direct me to an useful tutorial
that can better explain the process?
Thanks so much!
I hope I was detailed enough...let me know what info you
need.Which version of Flash/actionscript are you using? Since you
are just starting out, you should read one of Adobe's tutorials on
the matter. Either use Flash Help to find examples on how to use
Flash or go to their website. Here is a great tutorial for someone
just starting out. Make sure you read all three tutorials in "Using
Flash for the first time".
http://www.adobe.com/devnet/flash/getting_started.html
Maybe you are looking for
-
As my MSDN subscription is connected to this liveID, I repost my question in the hope to get a faster answer: After I installed Service Pack 1 on my Windows 7 x64 Ultimate my applications which use MDAC 2.8 COM components for database access do not w
-
Itunes has encountered a problem and must close
Ive been trying to open my itunes for the past week and keep getting the same message " Itunes has encountered a problem and must close". Ive tried everything uninstalling and reinstalling numerous amounts of times. I've tried to uninstall quicktime
-
How to query a sql database table from webdynpro?
Hi All, Can someone tell me the steps involved in accessing a sql server database table and retrieving the record set from a webdynpro application. Thanks in advance. Best regards, Divya
-
Re : Condition table missing: Access Y003 10 (Output Inventory Management)
Hi While doing migo using movement type 501 the following error is coming. "Condition table missing: Access Y003 10 (Output Inventory Management)" How to solve this. Thanks Anto
-
Use of Shipping calender while populating schedule ship date
Hi Experts, I have done following setup in system in order to use shipping calender, a) Define an item, enable ATP. Now we are having ATP based on ASCP plan output. b) Define calender where Friday is only working day. This is our shipping calender. c