HTML link talking to flash
Hi,
I have a small task to create a map and a list of cities,
when I click on the map I need a small red dot or spot come up on
the map.
I have searched for Javascript and Ajax scripts that do this,
I cant find anything.
So I thought a full flash file can do this. But there is no
space left for text.
I would like to know if there is a way I can do this with an
image file or with two flash files, one holding the city names and
the other holding the map.
Can someone point me in the right direction?
Not good with Flash at all :'(
Hi guys,
I have figured out a way of creating the map effect but not
as nice as the site above.
Using Javascript I am loading the image on rollover state:
Heres my code:
<script type="text/javascript">
function mouseOver()
document.map.src ="images/map7.jpg";
function mouseOut()
document.map.src ="images/map.jpg";
</script>
<td><a href="search_by_location.php"
onMouseOver="mouseOver()"
onMouseOut="mouseOut()">mouse</a> </td>
<td><div align="right"><img
src="images/map.jpg" border="0" usemap="#Map" id="map"
name="map"/></div></td>
But the problem I have is how do I add the correct map when
the user clicks on the town/city name?
The town/city name will be taken from the database and setup
as a link to go to search_by_location.php which will have SQL to
show all for specific location(town/city)
Im sure someone once told me you cant add php to javascript
:-s is this correct?
Similar Messages
-
HTML link to a Flash file frame
> This message is in MIME format. Since your mail reader
does not understand
this format, some or all of this message may not be legible.
--B_3299492325_1333456
Content-type: text/plain;
charset="US-ASCII"
Content-transfer-encoding: 7bit
Hi
I've got a client who has a HTML site on a laptop for a
presentation and
within this site he's wants a link that attaches to a AS2
.swf that I've
developed.
The thing is it he wants it to link to specific area of the
file and not to
play it all. How would I do this as he's just asked for the
specific address
of the area it needs to jump to.
Any help would be much appreciated bearing in mind my
ActionScript is pure
novice so a step by step would be handy.
thanks
--B_3299492325_1333456
Content-type: text/html;
charset="US-ASCII"
Content-transfer-encoding: quoted-printable
<HTML>
<HEAD>
<TITLE>HTML link to a Flash file frame</TITLE>
</HEAD>
<BODY>
<FONT FACE=3D"Calibri, Verdana, Helvetica,
Arial"><SPAN STYLE=3D'font-size:11pt=
'>Hi<BR>
I've got a client who has a HTML site on a laptop for a
presentation and wi=
thin this site he's wants a link that attaches to a AS2 .swf
that I've devel=
oped.<BR>
<BR>
The thing is it he wants it to link to specific area of the
file and not to=
play it all. How would I do this as he's just asked for the
specific addres=
s of the area it needs to jump to.<BR>
<BR>
Any help would be much appreciated bearing in mind my
ActionScript is pure =
novice so a step by step would be handy.<BR>
<BR>
thanks</SPAN></FONT>
</BODY>
</HTML>
--B_3299492325_1333456--What do you mean about opening a flash file? Do you want the
.fla file
to open in flash? Or is it a swf that you imported into
Director? Or
is it an exe that was published from flash? Or a website that
was
created with Flash?
If you are opening a .exe and you know the path to it, then
you can use
Director's built-in open command
open the moviePath&"flashFile.exe"
for most other things, I would use BuddyAPI. To open an exe,
baRunProgram(). To open a fla or swf, baOpenFile.
To make Director open a swf on the stage, import it and
simply tell the
button to go to that frame. -
How Do I Make HTML Links Open in Same Window?
Hi
How on earth do I get the HTML links inside a flash movie open up in the same browser window where said movie is embedded in (As opposed to opening up as a new pop-up windows)? Here is the code I have inside each of the buttons I have inside my flash movie:
var link7:URLRequest=new URLRequest("videos/december.html");
videos_btn.addEventListener(MouseEvent.CLICK, buttonClicked7);
function buttonClicked7(event:MouseEvent):void
navigateToURL(link7);Thank you thank you thank you!!!
-
...can HTML call out a Flash element? (swf)
Greetings!
Haven't had success so far in finding an answer to this -
huge thanks in advance if you can help ...
Here's where things are:
1) I've created 5 swf Flash movies that loop (at a particular
size so they can play inside of an html table cell)
2) I've created 5 html buttons in another cell
What I'm trying to do:
... Like an image swap file in HTML (where you click a button
and an image changes elsewhere on the page, click another button,
and a different image swaps places with it) I want to have a flash
movie
automatically play on a click of a button, click another
button, and a different flash movie swaps places with it and starts
to play automatically.
Can this be done?? If yes, please how do I do it ???
The challenge seems to be the interaction between Dreamweaver
and Flash and getting HTML to talk to Flash - and when a movie
loads
that it's active.
Thanks again.Best bet will probably be to do the whole thing in Flash.
"kingjeremy02" <[email protected]> wrote in
message
news:fglmst$867$[email protected]..
> Greetings!
>
> Haven't had success so far in finding an answer to this
- huge thanks in
> advance if you can help ...
>
> Here's where things are:
> 1) I've created 5 swf Flash movies that loop (at a
particular size so they
> can
> play inside of an html table cell)
> 2) I've created 5 html buttons in another cell
>
> What I'm trying to do:
> ... Like an image swap file in HTML (where you click a
button and an image
> changes elsewhere on the page, click another button, and
a different image
> swaps places with it) I want to have a flash movie
automatically play
> on a
> click of a button, click another button, and a
different flash movie
> swaps
> places with it and starts to play automatically.
>
> Can this be done?? If yes, please how do I do it ???
>
> The challenge seems to be the interaction between
Dreamweaver and Flash
> and
> getting HTML to talk to Flash - and when a movie loads
that it's
> active.
>
> Thanks again.
> -
HOW CAN PUT A LINK ON A FLASH ANIMATION
I NEED TO PUT A LINK IN A FLASH ANIMATION, I CREATE THE
ANIMATION IN FLASH.
AND I INSERT THIS ANIMATION ON DREAMWEBER, BUT.. I CAN'T
INSERT A LINK IN THAT ANIMATION
(NOT NEED AN URL) I NEED A SIMPLE LINK FOR EXAMPLE:< A
HREF="HELLO.HTM"></A>
THANKSYou cannot put an HTML link on a Flash object. You would have
to do that in
Flash.
By the way, your keyboard is stuck in caps.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"YAMAZAKY17" <[email protected]> wrote in
message
news:f44ig7$l8b$[email protected]..
>I NEED TO PUT A LINK IN A FLASH ANIMATION, I CREATE THE
ANIMATION IN FLASH.
> AND I INSERT THIS ANIMATION ON DREAMWEBER, BUT.. I CAN'T
INSERT A LINK IN
> THAT
> ANIMATION
> (NOT NEED AN URL) I NEED A SIMPLE LINK FOR EXAMPLE:<
A
> HREF="HELLO.HTM"></A>
> THANKS
> -
Flash hijacking HTML links while images are loading
I've designed a slide show player using Flash and Actionscript 3.0 which loads several external images. While the images are loading, the HTML links on my page (outside of the Flash movie) don't work. As soon as all the images are loaded, the links start working again. It seems like the Flash player is hijacking the browser while the images are loading which can take the better part of a minute depending on my connection speed. I can click an HTML link once during the loading time and as soon as the images have loaded, the browser loads the new page (the one the HTML links to). Once all the images are in my Temporary Internet Files folder, this problem ceases to exist (since the images no longer need to be downloaded). It's only first-time viewers that will have this problem, but it's a pretty major problem.
To see what I'm talking about, go to:
http://www.ericlindberg.com/indexTemp.html
Click the Images button after the "Loading..." animation disappears but before all the images are loaded. As the images load the thumbnails at the bottom of the Flash player go from 50% to 100% opaque. If you click the "Images" button before all the thumbnails are 100% opaque, nothing happens. However, once they are all loaded and the thumbnails are all 100% opaque, the "Images" page loads. You can do the same thing with any of the subpages in the Images section of the site and get the same results.
Any advice would be greatly appreciated.
JoeI have something similar on my site.
http://alt-web.com/gallery.shtml
You might try using CSS rollovers instead of MM (javascript) rollovers. Straight HTML links load fast and work immediately.
http://alt-web.com/DEMOS/CSS-Sprites-II.shtml
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb -
How do I add an html link/banner to a page in my flash website?
I purchased a flash website template and am in the process of editing my main.fla file. In order to get listed on an advertising website with a higher rating, I have to place a reciprocal link to them on my site. However, I cannot figure out how to place an html link/banner on my site for other businesses. If I paste the html code in a text box, all that shows up is the html code rather than the image and link it is meant to generate. Please help!
Flash only supports a small amount of html in text areas. If what you re trying to include is within what it supports, then you assign the text to the textfield using the htmlText property of the TextField...
tfield.htmlText = "<a href="...">link</a>"; // will display "link" as a link -
Send variable to Flash from HTML link
Does anyone know if it's possible to include a variable in an
html link <a> tag that can set a variable in Flash. I have
used JavaScript to do this in the past but would prefer not to on
this site. I also would prefer not have to use a server side script
or xml, as all I want to do is set multiple links on one html page
to open the same Flash movie on another html page, but make it go
to a particular frame or load a particular external swf based on
the link that was clicked. Thanks, JDYou need to use them in the object and embed tags.
Dan Mode
--> Adobe Community Expert
*Flash Helps*
http://www.smithmediafusion.com/blog/?cat=11
*THE online Radio*
http://www.tornadostream.com
*Must Read*
http://www.smithmediafusion.com/blog
"JDRives" <[email protected]> wrote in
message
news:efcb61$rkb$[email protected]..
> Do I need to use Flash Vars in the object and embed code
to load them in
> or will they automatically be passed to the variable on
the _root level of
> the SWF file? Thanks for your quick reply, JD -
forgive my ignorance, i am new to all this...
i have made a flash movie that i want to be able to link to
from an external html file. i managed to get this to work by using
flash anchors - not as hard as i would have thought, hurrah! but
when i use the links, while it jumps to the correct spot in my
movie, the rest of the buttons in my flash movie stop working so i
can't navigate within it any longer.
i don't understand why this happens because the movie works
fine when i don't access it via the html links..
help!!!Thanks for response.
Yea you all are right I have the stand alone version. Looking through the different versions link -> http://store.businessobjects.com/store/bobjamer/en_US/DisplayCategoryProductListPage&CategoryID=55985400
What version would I need to enable flash compiling. At this point I can live with PPT compiling, but would like to know how much I would need to spend if I need the option.
Thanks,
Arun -
Target Flash Movieclip from HTML Link - Feasible?
Is it possible to target a specific movieclip within an swf
that's embedded on an external html page using an HTML link? Or is
this a stretch? It seems like this would be feasible but I've hit a
wall on this one.No. Google search for FLV grabbers.
--Nancy O.
Alt-Web Design & Publishing
www.alt-web.com
"martinpillot" <[email protected]> wrote in
message
news:g8ul80$c9j$[email protected]..
> Is it possible to target a specific movieclip within an
swf that's
embedded on
> an external html page using an HTML link? Or is this a
stretch? It seems
like
> this would be feasible but I've hit a wall on this one.
> -
Adding a html link to a carousel
i have followed a tutorial to build a flash craousel and have had no problems in building that. i wanted to add a html link to a section of the carousel but everything i have tried up to now has failed. All the information is passed through to the carousel from an xml file and everything works fine except for the link.
i have slightly modified the tutorial so i have an extra box on the information page which holds the web address for the site they are looking at in the portfolio. i have the address showing up but i cannot use the text as a link.
the box that i am putting it in is a dynamic text box which has been set up with the following settings
theLink.html = true;
theLink.htmlText = t.Link;
so as far as i know these are set to be able to handle html tags/code but they are not playing games.
i have tried to pass the link through to the swf file from the xml file with the following code but this just seem to break the whole application.
Link="<![CDATA[<a href='http://www.acmeart.co.uk/pip_new']]"
to view how i have the file working upto now please view the link below.
http://acmeart.co.uk/carousel
i feel the problem is not with the flash application but more with how i am trying to pass the html link over to the application from the xml file. i will attach the xml file to the post.What I had in mind was to place the link inline in your text. Something like this:
<item name="valley" full="assets/valley.png"
title='Book - CD ROM'
body='This product was a Shockwave holiday card. It began as a jigsaw puzzle. As the puzzle was solved, it opened and displayed the holiday greeting. <a href="http://www.amazon.com" >Purchase a copy.<a\>'>
</item>
The url is right in the text. The html markup is escaped as html entities. -
Mouse over HTML link causes single frame to display at top of page Netscape only
Having a wierd problem. When you run the mouse over HTML
links on the page a single frame of the flash movie apears at the
top center of the page. It only happens in netscape in firefox
mode. IE, Opera, and Firefox do not have the problem.
Problem site
Thanks in Advance,
VorschThe problem goes away if i modify my .css file by removing
the
border: 1px solid #999999;
line from the "a:hover" style.
I ran my css file thru the validator at w3c and its fine. The
Page also validates as xhtml transitional.
and just a note the same file version is on my public server
and my testing server.
Has anyone ever seen this before?? I have several sites with
a:hover effects and flass media and have never run across this
before. -
Embedding HTML Music-Player in Flash-Website?
Hello everyone!
I am a music composer and I'm working on a site to use as a sort of web-presence/portfolio. I'd love to be able to designate one of the "pages" in my animated site to my music, and the best way I can think of would be by using a scrolling pane and various instances of some flash player (I love the quicktime one's simplicity, but it allows you to download the music, and I'd prefer to just have my audience listen and not copy =). I like the google player best after the quicktime one for it's minimalistic look (and if you check out the site-in-progress, you'll see why I favor the sleek, grey players =)
That, or ditch the scrolling pane and have a static page with a player/playlist of my tracks. Either way, I'd like the listener to be able to select one song at a time. (I also do SFX work, and I'd like to have use a similar format to let the listeners hear the various sound effects.
Anyways, that's enough out of me... Is there any way to embed an HTML player into a flash movie clip or something? I'm really new to this stuff, you'll see in my little "blog" area under "profile" on the site that I just opened flash for the first time last weekend.
If HTML doesnt work in flash, what other options do I have? I'd love to be able to incorporate a streaming player!!
Thank you in advance!!
site:
http://hawkduncan.com/1index.html
**Please turn your speakers down, the site is still using the templates sound effects and they are kinda "crunchy" sounding for some reason**Thanks Ned!!!
Ok, I'm going to look into the Actionscript 2 music player options out there.
One question, incase I have a hard time finding what I need, would it be too difficult to have a text box open a new window, and in that window, have all the HTML music player? I found this site and I'd be OK with something like this:
http://digitalmedia.oreilly.com/2005/02/23/mp3_embed.html
My only criteria would be to not have a download file link and that it would stream. Just curious if this would be an option since I've had such terrible luck trying to figure this whole music thing out.
Thanks again, Ned!!! -
How to send an html snippet with swf flash under other layers in iWeb?
I like designing websites on iweb but face problems regarding flash.
When i embedd a swf in an HTML snippet...the snippet automatically postions itself at the topmost layer. Even if you send it behind lets say a box or any shape, or a link ..on publishing it , it comes right back up when seen on other browsers like firefox or chrome. But strangely on my mac browser - safari- it works just fine.
Links in a flash swf banner when placed in iWeb (inside an html snippet ) opens other linked pages within the frame of the html snippet itself...and not as a seperate page.
I'm not a programmer so i wouldnt understand complicated stuff... but i knw how to copy paste codes inside a snippet and edit the sizes.
I need help fast?
Thanks in Advance!!
AnshumanWhen i embedd a swf in an HTML snippet...the snippet automatically postions itself at the topmost layer. Even if you send it behind lets say a box or any shape, or a link ..on publishing it , it comes right back up when seen on other browsers like firefox or chrome. But strangely on my mac browser - safari- it works just fine.
That's how browsers behave.
Links in a flash swf banner when placed in iWeb (inside an html snippet ) opens other linked pages within the frame of the html snippet itself...and not as a seperate page.
Use the target attribute : target="_top" or target="_blank" in the <a href> element.
I'm not a programmer so i wouldnt understand complicated stuff... but i knw how to copy paste codes inside a snippet and edit the sizes.
Pasting custom code in a HTML Snippet and make it work is your responsibility. And if you're not a programmer, start learning and become one. Before you know you're the resident technology expert in this forum. -
I am reasonably new to Flash and would like to know if I can
create a html link to a cue point in a flash video file or to a
particular frame in a normal swf file. If so, what is the correct
syntax?Ok, I seemed to have succesfully linked to the cuepoints
using, for example, the code below.
[CODE]
programsa.addEventListener(MouseEvent.CLICK,programsaClick);
function programsaClick(event:MouseEvent):void {
movie1.seekToNavCuePoint("Programs");
[/CODE]
However, now I have another issue. The FLV is on frame 2 and
I want to navigate to it using buttons on frame 1. However when I
try the following:
[CODE]
programsa.addEventListener(MouseEvent.CLICK,programsaClick);
function programsaClick(event:MouseEvent):void {
gotoAndStop("movie");
movie1.seekToNavCuePoint("Programs");
[/CODE]
I get the error:
TypeError: Error #1009: Cannot access a property or method of
a null object reference.
at videobig_fla::MainTimeline/programsClick()
So, how can I tell a button to go to a cuepoint for a movie
that's on a different frame?
Maybe you are looking for
-
Computer randomly shuts down and refuses to boot
Hello all. A while back I installed Win 7 Pro on this (I think I had to install it on an SSD via another machine then used that SSD in the T610 and used win repair to fix the installation). It's been going smoothly generally and it is on mor or less
-
How do I get an app from my computer to my ipod without Wi-Fi?
How do I get an app from my computer to my ipod without Wi-Fi?
-
I've got system and a user on that system where all his file associations are whacked. Even if I right click on a file to associate it with a program the file association doesn't stick. Is there a way to reset all his file associations? For the most
-
Lightroom 5.3 on windows7 pro 64, 32gb ram Tried to restore from backup, but the plugins are still gone. That's plugins and setup for all my clients. Not cool. Tried to find a way to contact support, but no way I can find it on Adobes pages. There is
-
version 10G I am getting intermitant connections to the db. I have looked and looked at the network configuration. I do believe it is correct. After spending much time looking at the network settings I have noticed in udump I am getting (when the con