Linking SWF files
Hello,
I made a flash button for my web site which I am making in
Dreamweaver. I am trying to make the button have a link however
when I try and select the button in Flash it says that this
selection can not have action script added to it.
When I test the button everything works fine except for the
actual link. I have tried everything to give that button a link
both within Flash and Dreamweaver and nothing will work.
What do you think?
Thanks,
Bernie
you can't attach code to a true button (and you shouldn't
attach code to a movieclip).
give your button an instance name and use that name to assign
a mouse handler. for example:
Similar Messages
-
Linking .swf file to Dreamweaver
Thank you soooooooo much it worked smoothly and the way I
want .
Cheersnot sure of the total scope of what you are trying to do or
have done so
far...
instead of linking to the .swf file, link to an html page
with the .swf
placed IN it.
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/ -
Continued/ linking .swf file to Dreamweaver
Hi ,
All I need is to link my swf file to a link in my HTML page,
the swf file has its own control buttons created in Captivate that
I need them to be shown in the swf file ratherthan new ones! and I
need all this to be shown as a smaller window in the middle of the
screen where the user can maximise and minimise the way he wants?
so
I have linked my link to HTML ( which is called Harmony.htm)
file atht has the published .swf file in it but I have these
problems:-
1- Once I click on the link the new HTML page is opened but
with this warning:
" Adobe Flash player has stopped a potentially unsafe
operation, the following local application on your computer or
network :
C:\..........\ Harmony_skin.swf is trying to communicate
withthis internet enabled location
c:\.......\Harmony.htm
to let this press ok ..."
I don't want this warning to appear for my users? how to get
rid of it ? or it is normal to have it on the internet I don't
know?
2- the Harmony_skin.swf is the actual movie I have implement
in Captivate which has the control buttons and the colsed
captioning in the middle bottom of the window which I want them to
appear, but when I publish it with the html file (Harmony.html)
they don't appear and for other swf files they appear slightly how
to make them appear? does thim mean I have to control the position
of the swf file in the HTML file ? how to do that?
3- I have seen this link sent to me by steve
http://javascript.about.com/library/blpopup10.htm
But I was not able to understand very well o to do that, I
mean how to control the position of the html window as I am very
new to HTMl and I am not very well practised can you help me in
that pleas?
Attached is my code and when you see the comment <!--here
please--> it is the link I am talking about.
Appreciate your helpSo you want your custom HTML page to open the Captivate movie
in a new window that's centered with the normal browser buttons?
If so, the "centered" part is a bit tricky. There's no way to
determine the exact height of the screen since the browser does not
know how the user's Windows Taskbar is displaying (hidden, one row
high, two rows high, etc). I always take an arbitrary 64 pixels off
the height just in case it's set to 2 rows high.
A suggestion would be to start with the example shown at
bottom, using the following as a reference for what each parameter
in the window.open() method does:
window.open()
Reference at MSDN
Also, you should NOT use spaces in any of your file and
folder names... that can be a problem in some cases.
Cheers,
John -
What is the best way to Place/Embed/Link swf files to play in my Muse website?
I have some older swf files that I created and would love to have them play on my webpage in my Muse website. As soon as I use the place command to put them on a page, Muse crashes when I try and preview that page or publish the site. I'm new to Muse so maybe I should be using an alternate method of bringing those swf files in.
Also, I would like to use some of the Reallusion programs to create a "talking head" that introduces my website when visitors enter. But Crazy Talk 7 only seems to want to create avi files. What is the best way to get avi's to play in Muse? I have posted this question in the Flash forum also.
Is there a program in the Creative Suite package that would be better to use to create this talking head or a workflow that will make these videos usable on the pages of Muse?Hi Jeanette,
Please refer to the following forum post : http://forums.adobe.com/message/5122837#5122837
Cheers!
Aish -
Link .swf files to Flash Player
Hello,
I have recently noticed that my .swf files are not opening with flash player. I installed flash and it does not open .swf by default.
I also tried to open these files with the .dll file that runs the Flash Player but it does not work.
Is there someone that could help me to open by default .swf files with Flash Player?
Thank you,
OlonWhat operating system are you using?
-
Linking SWF file in another SWF file
Hi All,
I need to open a SWF file by clicking a a button in another SWF file(both SWF files are in the same folder). Can I use URL button(in Xcelsius 2008) for getting this done?It is possible to use the URL button to open another SWF file. The SWF file would need to be hosted with an http address.
-
Linking swf-file to webbrowser
are there any options to edit a swf-file (flipbook) in order to automatically open it with any webbrowser installed on a computer (swf-export from indesign cs4)? the idea is to allow offline use of the file for customers who might not have flashplayer installed... thx!
the idea is to allow offline use of the file for customers who might not have flashplayer installed... thx!
If you want the swf to play offline then browser plugin availability isn't really an issue because you are wishing for something that will run outside of a browser.
You can load an exported InDesign swf into a new Flash document and publish it as an AIR application.
Here's an example of a stand alone AIR application built from an InDesign exported swf:
http://www.zenodesign.com/forum/AirExample.zip
And here are the complete Flash files that I used to compile the application:
http://www.zenodesign.com/forum/AirTest.zip
You would also have the option of compiling the same Flash file as an iOS or Android app.
The loading code is only a few lines and the publishing setup is fairly easy. -
Using linked flv content in swf file -for deployment on Breeze server
Can anyone tell me the procedure for creating swf and linked
flv file with Sorenson Squeeze for deployment on the Breeze server
or in Breeze Presenter? All Adobe will share is the how to this
with Flash. I feel certain this can be done but all my attempts
have failed to have the swf show the referred flv link. To
interpret the Flash procedure, it seems that all one has to do is
add /output "file name" to the swf player flve linked url, but the
published flv file only shows a white screen. It does not seem to
load the linked flv file - even if I have allowed public viewing of
the flv content.The procedure may be the same - I'm pretty familiar wit h
that by now - but the results are not. I think the key difference
is that the linked file url addendum "/output/filename" required
from Breeze when creating the linked flv url call-out from the swf
file, does not work is advertised in Sorenson Squeeze. Before
attempting to insert this linked swf file in Presenter, I have
attempted to elicit the same interactivity just by uploading the
fwo files to the Breeze server. Sorenson does not seem to be able
to recognize that additional linked url with the additional "output
/ file name" addendum that Breeze requires. I have replicated that
same procedure in Flash 8 and the results work perfectly. I just
don't like being forced to use a 900 lb gorilla like Flash 8 to
create this simple task when a less costly program like Sorenson is
squeeze should work correctly. Frankly, I think a lot of other
Breeze authors, who are not as adept with this video encoding
process, or who want to be using a developer tool like Flash to
create their video clips. My experience with our users is that that
most shy away from using video in Breeze because it is way too
cumbersome. - Something Adobe should consider before more prospects
move over to another similar authoring program that has actually
dedicated itself to advancing their authoring software
capabilities. -
Hey all,
so i've just finished creating a flash advertisment for a
college project, although i originally thought i would be linking
file url's in order for the buttons within each swf to link to one
another. however now i'm facing problems what i wish to do is link
swf files to one another so they will open in the same window or
"_self" e.g. "index.swf" links to "gallery.swf" through the
gallery.mc or btn. can anyone help me out here. many thank:)(that's assuming that statement is on the main timeline of
the current swf. otherwise, use
_level0.loadMovie("gallery.swf"); -
Can't export simple swf file.
Hi, I just started working with after effects so im rly new at this and looking for some help with it.
I made simple animation text and 2 png files as background. When I try to export it, after 2 frames program stops and I get saved file but i cant open it ( so i guess its broken )
Please help me with that.Ok, i fixed it. Changed to interlaced RGB 8bit files and thats ok.
BUT
Now exporting stops at 43frame... Here is my exported banner
http://gubex.pl/grafika/tanita_bannerr.htm
Now im getting
Name - Unsupported Feature
0:00:00:00
1: Shape Layer 1 - Shape Layer
Every 1 seccond...
Any idea what's wrong ?
edit:
Well, i deleted Shape 1, and now we're back to the start, again export crashes at 2nd frame...
If u could help me with next question, that would be very helpful.
How can i link swf file as webbanner?
Thank's in advence. -
good day to you all in this great forum
my name is james and i want to see if i can find help here in the forum for my problem.
I'm building a site for my friend. (the site is in hebrew so sorry....)
for the site building I'm using the software iweb - on mac.
the site is almost complete but i have 1 big problem.
this is the link to the site - [URL="http://www.skip-up.com"]skip-up[/URL]
I'm using a head menu in flash
i have this flash from some template i downloaded from the internet and all i had to do is change the buttons names and to change the links of the buttons to point to my html pages.
and now to the problem :
to get to the problem in general - the flash head links don't work
if i press it in the site on godaddy nothing happens i just don't see the flash head and instead i dee a page that says something like "the page can not be found"
if i go to my desktop to my site directory and press the links the only thing that happened is that the button is changing the color like I'm in the right page but I'm still in the original page.
and the strange thing is that by if i only open up the SWF file and press the links are working
and it's open up my browser and to the right page
1. you can see the structure of the site here in this page :
[IMG]http://farm4.static.flickr.com/3442/3962332346_432d004df2.jpg[/IMG]
what i have is the master index.html and 2 directories : - the first one
called flash and have 1 flash file (this file is o.k with no problem)
and the other directory had all my site files
2. like i said i got the original FLA file and all i did is changing the buttons
names and changing the links of the buttons
the links i changed in the actions menu - i just searched for the original
url and change the names to much my website html pages names
3. here is the original FLA actions menu - you can see that I'm standing on
one of the links :
[IMG]http://farm4.static.flickr.com/3483/3961893129_2b8fc4ecd9.jpg[/IMG]
and here is my fla after the changes - as you can see i just changed the
name:
[IMG]http://farm3.static.flickr.com/2544/3962668872_8693f399ba.jpg[/IMG]
4. i uploaded all my site (it's small zip file) if someone wants to see more
i tried to describe everything in details because it's very important for
me to find a solution [URL="http://rapidshare.com/files/286059228/skipupsite.zip.html"]skip-up site download[/URL]
I'm really hopping there's somebody that will be kind to help me out
thank you very muchHi. It looks like your code is not finding the mp3. At least,
I can reproduce your error code by removing the mp3 from the
directory, or renaming it.
Btw, if you test with FF instead of IE, you'd see the error:
Error #2044: Unhandled IOErrorEvent:. text=Error #2032:
Stream Error.
at KZFlash_fla::Sound_2/KZFlash_fla::frame1()
Hope that helps. -
Open a URL link in the same window as SWF file in indesign CS5
Hello,
I am trying to create a SWF file using indesign CS5. I have created buttons and placed in URL links but they always open another window. I would like to know if there is a way to have the URL open in the same window that the SWF file has been created. I tried, putting "_self" to target it in the URL bar, but nothing works.
Thanks in advance
TKOkay, I found the code but I can't get it to work locally. If you have a web server maybe you can upload the files (swf and html) after you Publish them:
import flash.net.URLRequest;
import flash.events.MouseEvent;
var myURL:URLRequest = new URLRequest ("http://www.google.com");
testlink.addEventListener(MouseEvent.CLICK, clickText);
function clickText(myevent:MouseEvent):void {
navigateToURL(myURL, "_self");
you have to have on the stage a link element called "testlink" (see the code above) which would be a Movie Clip with the label testlink. It can be anything from InDesign: a button, a rectangle, a circle, a graphic, you get the idea. Just select that object in Flash and label it testlink or anything you choose but if you change the name from testlink also change the name in the code snippet where the line "addEventListener" is. -
Can I create more than one URL link in a single Flash (SWF) file?
I created a simple SWF slideshow in Flash with 5 slides. I was able to link one URL to the whole file by adding an alpha button.
What I can't figure out is how to add a URL link to each slide. The SWF file i sused on a website and I would like to be able to click on a particular slide as it is playing to go the a site or page that applies to that slide.
Is there a way or code I can use to do this??
This is the code I am currently using for the button now.
ja_btn.addEventListener(MouseEvent.CLICK,mouseClick);
function mouseClick(event:MouseEvent):void
var request = new URLRequest("http://www.jakeandamos.com/");
navigateToURL (request,"_blank");
I am just learning this stuff so I can use your help, Thanks!You cannot duplicate instance names or function names, so you'll need to create unique names for each one that behaves differently. So you can only have one function named "mouseClick"... if you want to have another function to link somewhere else you need to create a new name for that function ("mouseClick2" would work)
There are alternate approaches, but for now this will be the easiest for you to deal with. -
I have a setup where i am trying to make a hyperlink on a page that is to a youtube swf video load in an iframe on the same page. It is working successfully in firefox, but in IE it just gives an option to download the file and doesn't load it in the iframe.....i am wondering if there is any quick fix to this...or is there a way to make it where the hyperlink i have on the page, instead of going directly to the swf file, loads the embed code that is listed on youtube in the iframe...basically can you hyperlink to a youtube embed code
Post a link to the page so we can see it.
-
How to attach a Callto Link to a swf-file?
Hi,
I'm currently working on an animated skype button (swf-file) which I included into my website and I'd like to attach the following command to it:
Callto://myskypeid
It would be perfect, if - when hovering on it - it shows that it contains an active link (showing the "hand") and when clicking on it, it calls the user's skype app. to phone me on skype
So, in the adobe tutorials I found the following code for inserting a "hyperlink" to a button.
import flash.events.MouseEvent;
function gotoAdobeSite(event:MouseEvent):void
var adobeURL:URLRequest = new URLRequest("http://www.adobe.com/");
navigateToURL(adobeURL);
linkButton.addEventListener(MouseEvent.CLICK, gotoAdobeSite);
I customised the code:
import flash.events.MouseEvent;
function openskype(event:MouseEvent):void
var Skype:URLRequest = new URLRequest("Callto://myskypeId");
navigateToURL(Skype);
linkButton.addEventListener(MouseEvent.CLICK, openskype);
But the problem is that there occur "linkbutton not defined property or method" errors when running the code.
My swf or rsp. my fla file contains 10 movieclips which run one after another on the timescale, all in different layouts so that the colour changes during the "run".
I tried it with the first movieclip - layer1 - and named its instance "linkButton".
Didnt work.
Then I tried to insert another layer and attached another picture with alpha=0, converted it into a button and gave its Instance the name "LinkButton", but also didnt work.
Can someone please help me here? I suppose its just a "small" mistake and I couldn't be "so far away" from succeeding...
That would be great! Thanks for the help in advance!!Hi Ned and all the others,
ok ...the problem isn't really fixed so far.
But the first step is done! :-) with the following code:
import flash.events.MouseEvent;
function openskype(event:MouseEvent):void
var Skype:URLRequest = new URLRequest("Callto://myskypeId");
navigateToURL(Skype);
linkButton.addEventListener(MouseEvent.CLICK, openskype);
I replaced the "Callto://myskypeId" with "skype:myskypeId?call" as the first syntax shows a wrong Skypname resp. the name will be shown with a "/" in the end.
But now i'm faced with the problem, that
1st: there's no "hand" shown, when hovering the button on the website.
2nd: I have to doubleclick on it to open the skype application.
3rd: after i doubleclicked on the button there opens up always an additional blank page shown in the browser. And now I try to fix that - I tried it with navigateToURL(Skype, "_self"); or "_parent" and so on...but didnt work.
Meanwhile I think the because of not all of the pictures - MCs - are attached to the instance of "linkButton" that there's the missing "hand" when hovering with the mouse the button. On testing i found out that some of the pics are still bitmaps although i converted them all in the beginning to MCs (??dont know what i did there...).
Think the "missing hand" problem will be fixed more easily.
The bigger problem is, how to avoid the additional blank page in the browser when clicking on the swf on the website?
It seems to me, that on the one hand, I'd like to have an "active" link on that swf (or button) that shows the "hand" in the mousepointer - but on the other hand, it's not really a website which I'd like to open up then but just an application. So maybe here's the main problem.
Alternatively I thought about replacing the sequence with the URL request in the code by something rather appropriate for lauching applications e.g. FS Command or something like that. (read that somewhere).
If someone knows/had similar problems/could help me again - or at least to the next step that would be perfect!
Thanks again, Ned for your helping advice (I learned something!!!) - maybe you could help me with the above probs?
Best regards
steff
Maybe you are looking for
-
My iPhone 4 sometimes goes into Facetime in the middle of a voice call. I don't have a screen protector that might block the proximity sensor. I have done a full reboot and am on the latest iOS. Any ideas what is wrong?
-
HT1725 How do I fix, "Download error." when downloading a movie to my iPad?
I started to downloaded a movie but now get and error when trying to resume. On ITunes it says "downloading" when it clearly isn't. I am also unable to delete the download in the download tab on ITunes. Please help.
-
T code for service contract pending balance
Hi , I want to see the amount balance in a service contract . what t code or report to use to see the actual cost remianing in the service order
-
Startub disk is full?! I dont get it...
Hi everyone!! I've had my macbook 10.4.11. for about 2 years. I have a 1 GB 667 MHz or something memory. I've been trying to download music to my itunes folder but it says "the startup disk is full," and I've tried to update my software programs but
-
Scalability of Temporary Destinations
Hi, I read a few posts in this newsgroup on temporary queues, and found that although the creation of those queues is not very performance-friendly it is probably a better idea than have multiple selectors on a