Script adding on to my flash on html page
errors in page. this script is getting into my html page with
the flash im adding into. my page does not show in the internet
after upload. www.aurorabiomed.html/flashretreat.html. everytime i
add a flash file into my webpage this script is added and my page
has errors. it was not happening before i reformatted my harddrive
and reinstalled dw8
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Untitled Document</title>
<script src="../Scripts/AC_RunActiveContent.js"
type="text/javascript"></script>
</head>
<body>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','wid th','120','height','600','src','assets/retreat07','quality','high','pluginspage','http://w ww.macromedia.com/go/getflashplayer','movie','assets/retreat07'
); //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=7,0,19,0"
width="120" height="600">
<param name="movie" value="assets/retreat07.swf" />
<param name="quality" value="high" />
<embed src="assets/retreat07.swf" quality="high"
pluginspage="
http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="120"
height="600"></embed>
</object></noscript>
</body>
</html>
What is the location of this page in the folder structure you
show?
> is there something wrong with the source
> path of the script?
If you are getting the wrong path to the linked file, then
your local site
is not properly defined.
> - mainwebsite_html folder
> + assets folder
> flashretreat.html
> - scripts folder
> - templates
If the page you show below is in fact flashretreat.html, then
the link that
DW adds is correct - you have to go up one folder level, find
the Scripts
folder (I'm assuming you made a type in showing lower case
above) and then
find the required script in that folder -
<script src="../Scripts/AC_RunActiveContent.js"
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
==================
"web_rookie" <[email protected]> wrote in
message
news:[email protected]...
> in the preferences window, under code rewriting i
disabled active content
> for
> 1. insert using browser safe scripts &
> 2. convert tags to scripts on file open.
>
> my page works fine now. if i enable this options and the
scripts folder is
> also uploaded my page has errors. is there something
wrong with the
> source
> path of the script? i tried transfering the folder
inside my webpage
> folder
> together with the html pages and assets folder rather
than at the root
> folder
> but still gives me the same error.
>
> - Site - Biomed (C:Biomed)
> - mainwebsite_html folder
> + assets folder
> flashretreat.html
> - scripts folder
> - templates
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
> "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="
http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
> <title>Untitled Document</title>
> <script src="../Scripts/AC_RunActiveContent.js"
> type="text/javascript"></script>
> </head>
>
> <body>
> <script type="text/javascript">
> AC_FL_RunContent(
> 'codebase','
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
>
version=7,0,19,0','width','120','height','600','src','assets/retreat07','quality
> ','high','pluginspage','
http://www.macromedia.com/go/getflashplayer','movie','as
> sets/retreat07' ); //end AC code
> </script><noscript><object
> classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
> rsion=7,0,19,0" width="120" height="600">
> <param name="movie" value="assets/retreat07.swf"
/>
> <param name="quality" value="high" />
> <embed src="assets/retreat07.swf" quality="high"
> pluginspage="
http://www.macromedia.com/go/getflashplayer"
> type="application/x-shockwave-flash" width="120"
height="600"></embed>
> </object></noscript>
> </body>
> </html>
>
Text
Text
>
Similar Messages
-
Post Author: stella
CA Forum: Xcelsius and Live Office
Hi,
Recently I had upgrade my Flash8 in Adobe so that I can publish the Flash into HTML page without a keyline around the Flash Movie. Also I have to download a AC_RunActiveContent.js and put it together with the html output folder to make it work well.
As Xcelsius is export using Flash function, please let me know how can I upgrade your software so that I can get the same good effect in export the file into html page.
The success one created by Flash8 :
http://www.aonmastertrust.com.au/benguide/guide.html
Not success one created by Xcelsius:
http://www.aonmastertrust.com.au/calculator/insurance_calculator.html
Please let me know the answer. Thanks for your help.Post Author: stella
CA Forum: Xcelsius and Live Office
Sorry the linking should be:
http://www.aonmastertrust.com.au/calculator/insurance_calculator.html -
Problem with embedding Flash Text/HTML Code
Hey all, im new to DW and just created a html page with a
black background and a picture. I also added a flash text called
"Enter Forum" by using "Insert>Media>Flash Text"
When i copy and paste the code that is generated in the
"Code" section/tab on to my server in the index/html and go to view
my site it is not there. I uploaded the .swf file to my server
also, i have played around with the coding a bit to see if i was
doing anythng wrong but nothing works. Below is the code DW renders
to me. I simply copy and paste this code that DW renders and paste
it in to my server's index.html (Main Page) file. I checked the emd
src and all thats correct.
HTML Code that DW generates me:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
body {
background-color: #000000;
body,td,th {
color: #FFFFFF;
font-size: xx-large;
.style2 {
color: #FF0000;
font-weight: bold;
.style3 {
color: #FF0000
.style4 {
color: #FFFFFF;
font-family: "Courier New", Courier, monospace;
.style5 {
color: #FFFFFF;
font-family: "Courier New", Courier, monospace;
font-size: small;
.style6 {font-size: x-small}
-->
</style>
<script src="Scripts/AC_RunActiveContent.js"
type="text/javascript"></script>
</head>
<body>
<p> </p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"><img src="
http://www.nohornetsfanjc.com/1376.gif"
alt="Jason Vorhees" width="400" height="400" vspace="0"
/></p>
<p align="center">nohornetsfanjc.com is temporarily
offline.</p>
<p align="center" class="style2">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0','widt h','329','height','59','src','text1','quality','high','pluginspage','http://www.adobe.com/ shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','bgcolor','#000000','movie ','text1'
); //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=5,0,0,0"
width="329" height="59">
<param name="movie" value="text1.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<embed src="text1.swf" quality="high" pluginspage="
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="329" height="59"
bgcolor="#000000"></embed>
</object></noscript>
</p>
<p align="center" class="style4"> </p>
<p align="center" class="style5">All Rights Reserved.
© 2005</p>
<p align="center" class="style6"> </p>
<p align="center"> </p>
<p align="center"> </p>
</body>
</html>
As i stated this is exactly what i paste into my index.html
file on my server. Im using no subfolders. Is there something im
doing wrong? Im completely new to this, so any and all help will be
appreciated very much!
Thanks
ShaneCan you post the url to show us the page on your server? If
you copied
everything, it could be you have too many doc types, headers
and body tags
in your index.html page.
--Nancy O.
Alt-Web Design & Publishing
www.alt-web.com
"videoeditor15" <[email protected]> wrote in
message
news:[email protected]...
> Hey all, im new to DW and just created a html page with
a black background
and
> a picture. I also added a flash text called "Enter
Forum" by using
> "Insert>Media>Flash Text"
>
> When i copy and paste the code that is generated in the
"Code"
section/tab on
> to my server in the index/html and go to view my site it
is not there. I
> uploaded the .swf file to my server also, i have played
around with the
coding
> a bit to see if i was doing anythng wrong but nothing
works. Below is the
code
> DW renders to me. I simply copy and paste this code that
DW renders and
paste
> it in to my server's index.html (Main Page) file. I
checked the emd src
and all
> thats correct.
>
> HTML Code that DW generates me:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
> "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="
http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
> <title>Untitled Document</title>
> <style type="text/css">
> <!--
> body {
> background-color: #000000;
> }
> body,td,th {
> color: #FFFFFF;
> font-size: xx-large;
> }
> .style2 {
> color: #FF0000;
> font-weight: bold;
> }
> .style3 {
> color: #FF0000
> }
> .style4 {
> color: #FFFFFF;
> font-family: "Courier New", Courier, monospace;
> }
> .style5 {
> color: #FFFFFF;
> font-family: "Courier New", Courier, monospace;
> font-size: small;
> }
> .style6 {font-size: x-small}
> -->
> </style>
> <script src="Scripts/AC_RunActiveContent.js"
type="text/javascript"></script>
> </head>
>
> <body>
> <p> </p>
> <p align="center"> </p>
> <p align="center"> </p>
> <p align="center"><img src="
http://www.nohornetsfanjc.com/1376.gif"
> alt="Jason Vorhees" width="400" height="400" vspace="0"
/></p>
> <p align="center">nohornetsfanjc.com is
temporarily offline.</p>
> <p align="center" class="style2">
> <script type="text/javascript">
> AC_FL_RunContent(
>
'codebase','
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.
cab#
>
version=5,0,0,0','width','329','height','59','src','text1','quality','high',
'plu
>
ginspage','
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Vers
ion=
> ShockwaveFlash','bgcolor','#000000','movie','text1' );
//end AC code
> </script><noscript><object
> classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
>
codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca
b#ve
> rsion=5,0,0,0" width="329" height="59">
> <param name="movie" value="text1.swf" />
> <param name="quality" value="high" />
> <param name="bgcolor" value="#000000" />
> <embed src="text1.swf" quality="high"
>
pluginspage="
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Ve
rsio
> n=ShockwaveFlash" type="application/x-shockwave-flash"
width="329"
height="59"
> bgcolor="#000000"></embed>
> </object></noscript>
> </p>
> <p align="center"
class="style4"> </p>
> <p align="center" class="style5">All Rights
Reserved. ?? 2005</p>
> <p align="center"
class="style6"> </p>
> <p align="center"> </p>
> <p align="center"> </p>
> </body>
> </html>
>
>
>
> As i stated this is exactly what i paste into my
index.html file on my
server.
> Im using no subfolders. Is there something im doing
wrong? Im completely
new to
> this, so any and all help will be appreciated very much!
>
> Thanks
>
> Shane
>
>
> -
Flash animation not showing up on HTML page
I just created a test page for my flash animation, but all I
get is a blank white page. Check it out here:
http://www.inspired-evolution.com/Flash/test.html
I am adding the flash via dreamweaver CS3 under
insert>>media>>flash
the code being produced is this:
<script type="text/javascript">
AC_FL_RunContent( 'codebase','
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','720','height','73','title','IE
Intro','src','IE_intro','quality','high','pluginspage','
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','IE_intro'
); //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=9,0,28,0"
width="720" height="73" title="IE Intro">
<param name="movie" value="IE_intro.swf" />
<param name="quality" value="high" />
<embed src="IE_intro.swf" quality="high" pluginspage="
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="720"
height="73"></embed>
</object></noscript>
and the html file and swf are in the same directory and both
uploaded on the server.hello, i haven't' any idea why isn't show
tip:
read this -
Flash in HTML not Working on C: DRive
OK, I have never seen this so I hope someone can help me with
this. I have created a basic navigation bar with flash. I have
added it to an HTML page and when you click one of the icons it
loads another HTML page with a flash file on it. This is very basic
stuff an has never been a problem in the past. My issue is that it
works off my server when I go to my website, but if I run it off my
C: Drive it will not run the action script to open the other HTML
page. Has anyone seen this issue or have an idea why it works on
the server and not off my c:drive.Some added toolbar and anti-virus add-ons are known to cause
Firefox issues. '''Disable All of them.'''
Many site issues can be caused by corrupt cookies or cache.
* Clear the Cache and
* Remove Cookies '''''Warning ! ! '' This will log you out of sites you're logged in to.'''
Type '''about:preferences'''<Enter> in the address bar.
* '''Cookies;''' Select '''Privacy.''' Under '''History,''' select Firefox will '''Use Custom Settings.''' Press the button on the right side called '''Show Cookies.''' Use the search bar to look for the site. Note; There may be more than one entry. Remove '''All''' of them.
* '''Cache;''' Select '''Advanced > Network.''' Across from '''Cached Web Content,''' Press '''Clear Now.'''
If there is still a problem,
'''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
While you are in safe mode;
Type '''about:preferences'''<Enter> in the address bar
Select '''Advanced > General.'''
Look for and turn off '''Use Hardware Acceleration'''.
Poke around safe web sites. Are there any problems?
Then restart. -
Adding PayPal code to Flash button
I want to use my own .swf button for PayPal payments with a "hidden format", but when adding the generated PayPal Website code to my html page, only a red X and the alt PayPal text is showing where the button should be. I have changed all Active X controls to Enable.
Every time I contact PayPal I get a different reply. The last one was that I have to add a "static" image, but I really want to use my own button.
I would rather find a way to paste the PayPal code into my buttons action script and then I only have to paste the Flash button to the html, but don't know how to manipulate that because the only code generated by PayPal is a "form" in html format. I am also adding text fields and guess that's why I don't get an generated email code from PayPal which I get if I don't add text fields.
Any ideas how I can transform the code generated by PayPal to my action script are welcomed. I have about 150 buttons to add!
This is my link: http://www.astondenwoodjewellery.co.uk/Jewellery%20html/Gold%20Rings/GR02_button_test.htmI will definitely mark when I have managed to do this, thank you. Still can't get it to work and I don't know where I'm going wrong, but shall continue trying...
I have added the form in my html, but deleted the button which appeared as an X. Instead I've added my button with the code you gave me in AS.
I don't know what I am doing wrong, but I keep receiving action script error messages:
**Error** Scene=Scene 1, layer=glas, frame=1:Line 1: Statement must appear within on handler
var sendLV:LoadVars=new LoadVars();
**Error** Scene=Scene 1, layer=glas, frame=1:Line 2: Statement must appear within on handler
var receiveLV:LoadVars=new LoadVars();
**Error** Scene=Scene 1, layer=glas, frame=1:Line 3: Statement must appear within on handler
receiveLV.onData=function(src){
**Error** Scene=Scene 1, layer=glas, frame=1:Line 10: Operator '=' must be followed by an operand
sendLV.on0= ;// use selected option for man/woman
**Error** Scene=Scene 1, layer=glas, frame=1:Line 11: Operator '=' must be followed by an operand
sendLV.on1= ;// use selected option for size
**Error** Scene=Scene 1, layer=glas, frame=1:Line 8: Statement must appear within on handler
GR02_test.onRelease=function(){
Total ActionScript Errors: 6 Reported Errors: 6 -
Embedding Flash in HTML using Dreamweaver - stopped working
Hi all, not really sure what's going on, but I've done this many times before and it's worked fine.
I've previously embedding Flash videos I've created in Premiere and/or converted using other software. I simply drag and drop the Flash file where I want it and then adjust layout using code/design etc and that's it, job done. It's always played back fine.
Now for some reason I've tried doing it again this morning and can't figure it out. When I preview the file it doesn't even show the video, but instead displays all the icons for the controls at once in a grid where the video is meant to be. I've tried in IE, Firefox and Chrome, updated drivers, windows, Adobe, Flash etc all to no avail.
I've even tried doing it in a blank HTML page in case some of the template I might have been using was interfering for some strange reason; still no luck. What's even stranger is that a site I created last year is also now not displaying Flash (FLV) content locally, but is working fine on the server.
Does anyone have any ideas?
(CS5 Dw:V11 build 4993, Win7 64bit SP1)
I've pasted the code from the blank HTML page. It's probably something really simple that I've not noticed:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>
<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="640" height="360" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=biblical_small _flash/Welcome&autoPlay=false&autoRewind=false" />
<param name="swfversion" value="8,0,0,0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="FLVPlayer_Progressive.swf" width="640" height="360">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=biblical_small _flash/Welcome&autoPlay=false&autoRewind=false" />
<param name="swfversion" value="8,0,0,0" />
<param name="expressinstall" value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
<script type="text/javascript">
swfobject.registerObject("FLVPlayer");
</script>
</body>
</html>Im' having a VERY similar problem with a few estra 'happy' moments. I have a blog (WP). On this simple and VERY basic blog (with almost NO plug ins) I have attempted to embed FLV videos with CS$ Dreamweaver code.
(This code is different in CS$ than it was in earlier versions as it now calls to the FLVPlayer_Progressive.swf as the player and uses Flashvars to pass the value of the FLV. PReviously, it was four simple lines of code that pointed directly to the SWF)
Here was my process - I encoded the files with AE and Media Encoder to end up with Transparent FLV's. These, I then setup in Dreamweaver so I could copy the embed code. On my first attempt, it worked PERFECTLY. I was testing one particular flv, got the code and inserted it into the blog page with some special CSS to position it.
The movie played perfectly.
Then things got weird.
I was excited I had a solution, so I went to put another video on another page. No luck. The second page was playing the video from the first page. As if I had copied the same code, but I hadn't. I copied code that was 'pointing' to the new file, but for whatever reason, the new file would not play.
I did EVERYTHING. I deleted all the pages and strted fresh. I deleted the FLV's and reuploaded them. I created different folders and put each flv in it and created index.html files for each (assuming possibly there was a hardcoded element in the FLVPlayer_Progressive.swf). I copied and pasted back and forth for nearly 6 hours.
Nothing. Each time I would copy and paste code into a blog page, it would simply pull the original video.
THEN....things got worse.
I pulled one video off of the server, and now NONE work. I can't get ANY videos to play. Worse, I still have the 'express install' link showing.
Ok, so here is what I am trying to figure out;
Does the NEW DW CS4 code somehow have control over the file that is called? Further, HOW can I get more than one FLV to play across a whole blog site.
Here is a link to one of the pages that HAS code but is calling NOTHING. And please know that I have left copies of the necessary files ALL over the server. So they are in the root, in the 'files' folder, in the talent folder and everywhere.
Is there a conflict flash hits when there are multiple FLV's being called? Is there a way to do this? Please help....
Thank you -
How to show a MPEG4/H.264 video in Flash in an HTML page?
Maybe my title isn't clear. I am hoping someone can shed some
light on the h264 use in flash.
Instead of displaying a progressive download .FLV video , I
am trying to have an MPEG4 /h.264 approx. - a 30meg video display
in flash in an .html page. Quicktime is easy to do, but Flash is my
goal.
I read several articles on h264 and flash 9, including this
adobe
H264 article but was hoping there might be an easier and maybe
quicker solution. I did try renaming the .mp4 extension to .flv in
dreamweaver but it did not display the video. (...unless it was
downloading the video completely before displaying...not sure)
There is a ton of sites, blogs and articles on h.264 and how
flash 9 will display it...but when it comes to how one might
actually have h.264 in flash on their own site...I am finding it
difficult to figure out.
Forgive my lack of action script and Flash knowledge...any
direction is appreciated.
Erick...well I did follow that article on playing an h264/mpeg4
video in flash. It works well, but how would you add playback
controls?
FLVPlayback component only allows you to source an FLV video
not h264/mpeg4.
This is probably a simple as3 answer...but I am not
knowledgeable on as3 to know what code to add.
Any suggests or direction that I should look would be great.
In the meantime I am researching actionscript 3 to find and anwer.
E. -
How to call html page with in the flash
I am new to action script, can some one guide me how to call html page with in the flash. lets say i have movie clip having instance name as "news_feed", I need to disply the html page in this news_feed. kindly help me, thanks alot
some one tell me, weather it is possible or not ??
-
Calling a function in flash on an HTML page
Hi,
I need help regarding how to call a flash function from an HTML page. The idea is to have a link on my page (HTML link) that once clicked displays a movieclip in flash. I know i have to use the asfunction in HTML. So far I have just created my swf file with a function called showInfo. I've embedded the flash into an HTML page. I have then added a link on the HTML page as follows:
<a href="asfunction:showInfo">Link name</a>
but when I click it says:
"Firefox doesn't know how to open this address, because the protocol (asfunction) isn't associated with any program."
is there a piece of code I need to write in flash for this to work?
Thanks
Eugenehave your html link call a javascript function and use the externalinterface class in flash to communicate between javascript and actionscript.
-
Need to embed a Flash animation over top of a html page!
Hello,
I've created an animation in Flash with a transparent
background which needs to be embedded into a html page with lots of
div tags. I didn't create the html page and now I need to place the
animation into that page somehow, overlapping with some text and
graphics. Every where I place the animation, it will sit before or
after the text and elements in the page and not over top of them.
Hope I am clear enought to explain what my problem is. Does anybody
know what I should do? I truly appreciate your help.
PS. I am not a technical person so if any body wants to help
me and needed the sources please email me at:
Many thanks in advance.
Mojan
MojanTreat Flash as any other content and place it within its own
containing div. Position the div in the normal flow of the document
allowing the div to 'stack' with the other divs above and below it.
If you want to place the Flash such that it 'covers' existing
content you can use CSS positioning techniques. Options include
absolute positioning the containing div with the Flash swf within
it (this removes the div from the normal flow of the document) and
placing it over the existing content. Us position: absolute; and
top and left, with px values to place the div where you need it.
You can find tutorials on absolute positioning in the developer
center or www.communitymx.com
You can use the float property and negative margins to pull
containing divs (or other elements) around the document, too.
Experimenting with floats can be fun but you need to read up on
their specific behavior as you can end up pulling your hair out.
Again, there are plenty of CSS tutorials on positioning and a
Google search should throw-up some options.
Outside of CSS you can use DOM Scripting and JavaScript to
also position and hide various content depending on your
requirements. If you get stuck come back on this forum and ask for
more help but provide specific code to help us. -
Novice desperately seeking help with seeming inability to get
SWF movie to loop or not autoplay. HTML page generated using Flash
CS3. No matter what settings are tried, the behaviour is the same:
the movie starts immediately the page is viewed and plays only
once. I'd like to be able to either loop the movie or load the page
and not play the movie automatically. Would be great to know what
has been done wrong. I've included the HTML code below:
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', '
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '480',
'height', '424',
'src', 'VidInAction',
'quality', 'high',
'pluginspage', '
http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'false',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'VidInAction',
'bgcolor', '#ffffff',
'name', 'VidInAction',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'VidInAction',
'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=9,0,0,0"
width="480" height="424" id="VidInAction" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="VidInAction.swf"
/><param name="play" value="false" /><param
name="quality" value="high" /><param name="bgcolor"
value="#ffffff" /> <embed src="VidInAction.swf" play="false"
quality="high" bgcolor="#ffffff" width="480" height="424"
name="VidInAction" align="middle" allowScriptAccess="sameDomain"
allowFullScreen="false" type="application/x-shockwave-flash"
pluginspage="
http://www.macromedia.com/go/getflashplayer"
/>
</object>
</noscript>If I'm reading you correctly, I think that what you want is a lightbox type of effect where the Flash movie appears from out of nowhere above a dimmed page. If this is the case then you need to use Javascript to create this dynamic html effect. I use mediabox advanced. It works with Mootools. You can find more info here: http://code.google.com/mediabox/
-
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 -
Hi there,
I've gotten a question actually and I haven't found any
answer yet.
How can I put a Flash element (swf) like a "loop" for example
and make it separate from the rest of HTML pages, so this "loop"
can be played continuously while the visitor and browsing the pages
and the Loop don't stop or change and doesn't effect by moving from
one page to another?!
I've tried many scripts and tried to make a layer above the
tables but nothing changed, the loop started every time by clicking
a new page!
Please help me.
thanks for your time.
Mo!You would have to use a frame.
-
Hi
I'm creating a site that has a news page displaying xml
content in flash - i'm using this so it can be updated externally.
I need to create a second news page that the user is redirected to
if they do not have a flash plug-in - this will be a html page. Is
it possible that the same xml files are imported into this page and
formatted with the same css so i don't have to create and update
two files ? or am I going about this the wrong way ?
taYou can use JavaScript or PHP/ASP/JSP/ColdFusion (ie most
server side scripting languages). A server side script is usually
better as it doesn't rely on the client having JavaScript, but you
are probably using JavaScript for Flash detection anyway. I would
still recommend using a server side script, if you can on your
hosting server.
If you have Dreamweaver and you decide to use server side
scripting - it will do all of the scripting for you!
James
Maybe you are looking for
-
Mac Mini won't boot it just beeps once
I have a MacMini 1.25 GHZ. When I try to start it, it just beeps loudly once and thats it. Nothing appears on the screen. Before, this computer just showed a folder with a question mark. I tried resetting the PRAM and other normal procedures and noth
-
Moving music from old PC to new Macbook
Just got a new home PC, so all my music was deleted from it. I also just got a new MacBook. All my music is on my ipod, is there anyway I can transfer the music from my ipod to my mac, bearing in mind it is formatted for a PC?
-
Assigning of Classes to superior classes Using SXDA_Tools...Urgent
Hi All, I have a requirement in which i have to create classes(Material classes, CL01) and subclasses for them. In the second step i will have to assign the created sub classes to their respective superior classes. I could create classes using batch
-
Opening .png image through Bridge
Could not open .png image through Bridge CS-6Beta. Message said there was a missing application. Can open same file directly in Photoshop CS-6Beta. Windows7.
-
Hi all, I am unable to upload photo via Personal Information in ESS. we are using NWBC. What configurations I had to do..? Please guide me. Regards, Namsheed.