Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Helpusing Flash Variables In The Object Embed Tag



I'm having an issue with passing variables to a flash file with Windows IE. This page:
http://planznow.com/new/video_whenVideo.php

...loads videos just fine in all browsers (with Flash 7 plugin) except for Windows IE. Can anyone on a PC figure out why?

The variable in question is the ".flv" file I"m trying to load. Again, it works in all browsers but Windows IE. Could this by a doctype issue?

The object/embed code looks like:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="320" height="253" id="video_template" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="video_template.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="video_template.swf" quality="high" bgcolor="#ffffff" width="320" height="253" name="video_template2" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"

FlashVars="theVideoFile=video/When_Video1_300k.flv&theVideoEndTime=97&theVideoBufferTime=15"
/>
</object>



Ultrashock Forums > Flash > Flash Professional
Posted on: 2005-07-11


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Help Using Flash Variables In The Object Embed Tag
I'm having an issue with passing variables to a flash file with Windows IE. This page:
http://planznow.com/new/video_whenVideo.php

...loads videos just fine in all browsers (with Flash 7 plugin) except for Windows IE. Can anyone on a PC figure out why?

The variable in question is the ".flv" file I"m trying to load. Again, it works in all browsers but Windows IE. Could this by a doctype issue?

The object/embed code looks like:

HTML Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="320" height="253" id="video_template" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="video_template.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="video_template.swf" quality="high" bgcolor="#ffffff" width="320" height="253" name="video_template2" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"

FlashVars="theVideoFile=video/When_Video1_300k.flv&theVideoEndTime=97&theVideoBufferTime=15"
/>
</object>

Pass Variables To Flash Through Embed Object Param
Hello!

I was wondering if you can pass variables to flash this way:

<object>
...
<param name = "pageid" value="10">
...
</object>


instead of passing them as part of the embed src property:

<object>
...
<embed src ="myflash.swf?pageid=10"></embed>
</object>

Thanks.
B.

Passing Variables From Object & Embed HELP
Help me please.

I'm trying to pass variables in ojbect and embed tags. eg. <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="600" height="380">
<param name="movie" value="m2w_west.swf?name=michael kaufman&awardtext=You've Won 200 Marriott Points

the "name" and "award text" variables work fine, ie. text goes in the right places. I need to also set a variable to load a swf (one of 8)

I tried adding the following after "Marriott Points" &game=somevalue

Then in maintimeline have action

if (game==m2w_100) {
loadMovie("m2w_100.swf", "/empty1");
}
Why isn't this working??????????????????????????????????????????? ????/

[CS3] Passing Variables From Embed/Object/Actionscript In AS3
Hello everyone,

Apologies if this has already been asked - I'm at the end of my tether with searching help files/forums/tutorials.

I'm making a basic mp3 player for a website and I basically need to be able to pass different strings of URLs pointing to mp3 files to the player.

How do you do this in AS3? I get the feeling that the object code is just <param name="mp3" value="mymp3.mp3" /> but then what do I add to the Actions script to be able to read that parameter?

Thanks
Edd

How To Get Flash's OBJECT/EMBED ID?
Is there a way for a SWF to know the ID(s) that was used to OBJECT/EMBED it into the HTML page?

Embed Flash With Swf Object Help Needed
This is classic embed code and it works fine:

<div id="topmenu">
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="776" height="243">
<param name="movie" value="swf/menu.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<param name="FlashVars" value="<?php echo $mainmenu ?>" />
<embed src="swf/menu.swf" width="776" height="243" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" flashvars="<?php echo $mainmenu ?>"></embed>
</object>
</div>

and i tried to convert it with SWFObject 1.44 to this :

<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("swf/menu.swf", "subtopmenu", "776", "243", "7", "#FF6600");
so.addVariable("FlashVars", " <?php echo $mainmenu ?> ");
so.addParam("quality", "high");
so.addParam("wmode", "transparent");
so.write("topmenu");
// ]]>
</script>

but it does not pass variables to flash, can anyone help please

Detect Object/embed Tag From Flash
Hi All,

Am not sure whether this is possible or has already been done.

I was wondering if we can detect the Object/emebed tag's ID value from within Flash. It probably can be done through ExternalInterface or something like that but am unaware of how to do it. If someone has some insights into this can you let me know.

- Bala K J

Active X / Embed/Object And Flash
Hi all,

I am having a hell of a time getting around the new IE flash/embeded content protocols. I have tried using various
formats, like using <noscript> tags outside of the <object> tags. All that results in is the entire flash content disappearing. I've tired using this external JavaScript file:

var flashContainer = document.getElementById("FlashMovie");
var flashMovie = document.createElement("div");
flashMovie.innerHTML = decode(flashContainer.innerHTML);
flashContainer.parentNode.insertBefore(flashMovie, flashContainer);
function decode(input)
{
var output = input;
output = output.replace(/</g, "<"); output = output.replace(/>/g, ">");
return output;
}

Along with this string before each <object> tag for each instance:
<noscript id="ActiveContent">
<object attributes...etc>
<embed attributes...etc>
</object>
</noscript>

As found on this forum : http://geekycodestuff.blogspot.com/2006/05/removing-flash-border-in-ie-activex.html
I also tried the Adobe JavaScript fix files and article (http://www.adobe.com/devnet/activecontent/articles/devletter.html) and similar techniques but all it seems to result in is disappearing content.

I am not very familiar with JavaScript at all, can someone help me untangle this big mess?
Jess

Passing URL Vars To Flash After Embed Object Fix?
Hey Guys,


I have a Mambo site with a flash nav, I wwas passing the item ID to flash so I could hightlight the currrent page but after applying the adobe fix, it no longer works and I can;t figure out how to pass the item id to flash now.

My old solution before the fix was

PHP Code:



<script language="JavaScript" type="text/javascript">
    movieURL = document.location.toString();
    movieURL = movieURL.split("?");
    movieURL = 'templates/common_files/images/menu.swf?' + movieURL[1];
    document.write('<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="914" height="42">');
    document.write('<param name="movie" value="' + movieURL + '">');
    document.write('<param name="quality" value="high">');
    document.write('<param name="wmode" value="transparent">');
    document.write('<embed src="' + movieURL + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="914" height="42" wmode="transparent">');
    document.write('</embed></object>');
    </script> 



which allowed me to get the ID from the url and use case statments to highlight the correct button highlight.

Anyone knwo of a way to encorporate this with the Adobe embed solution.

Cheers

Passing Variable From Html To Flash Without Object Embed
I have a site that uses a header/navigation bar into which images are loading dynamically via xml.
What I need is to send a variable to flash from an html so depending on the variable that is passed from my html to the header/navigation bar it will load a certain group of images.
I have about 10 html pages and I want to use the same header/navigation bar for all 10 pages, what I want to do is declare a different variable in each of the html pages so when it is passed to the header/navigation bar it will know which group of images to load.
Any ideas?

For any help you may provide thanks.

Xhtml Validated Flash Insert (object/embed)
Does anyone know of a way to code your flash into a page in a way that is XHTML Strict or Transitional compliant? The test is available at http://validator.w3.org/

Any ideas would be great!

Cheers,

John

Passing Variables To A Flash Movie, Without Embed Tag.
Can someone help me? I would like to pass a variable to a flash movie. Back in the day using the embed tag you could pass a variable to a movie easily (relativily) eg:

<OBJECT classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase=""http://macromedia.com/cabs/swflash.cab#version=6,0,0,0""
WIDTH="250" HEIGHT="250" id="flaMovie1" ALIGN="CENTER">
<PARAM NAME=movie VALUE="flaMovie1.swf">
<PARAM NAME=FlashVars VALUE="imageFilename=image.jpg">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<embed src="flaMovie1.swf" FlashVars="imageFilename=image.jpg"
quality="high" bgcolor="#FFFFFF" WIDTH="600" HEIGHT="800"
NAME="flaMovie1" ALIGN TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</OBJECT>

Unfortuantly i can't use that any more because IE will block it as "Dangerous Active X content --- Danger Will Robinson DANGER!"

Fortunatly Kirupa, and his wonderfull web site were able to lend a hand (http://www.kirupa.com/developer/flash8/flash_fix.htm)

producing the following code:

<script type="text/javascript" src="flashobject.js"></script>
<div id="flashcontent" style="width: 800px; height: 600px"></div>
<script type="text/javascript">
var fo = new FlashObject("/flash/ImageHolder.swf", "animationName", "800", "600", "8", "#FFFFFF");
fo.addParam("allowScriptAccess", "sameDomain");
fo.addParam("quality", "high");
fo.addParam("scale", "noscale");
fo.addParam("loop", "false");
fo.write("flashcontent");
</script>

How in the name of chunky cheese am i meant to pass a variable to a move clip in that? can anyone help me?

Reading In Variables From The Code Used To Embed Flash In A Webpage
Hi all

Is it possible to read in variables from the code used to embed a flash movie in a webpage?

here's some example code:


Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="550" height="450" id="multimediaGraphV1.0" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="multimediaGraphV1.0.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
Is there a way to write a couple of variables somewhere here so that the flash movie can read them in?

thanks for any ideas

Object And Embed Or Maybe Just Embed?
Can you solve the mystery for me. For years now I have put Flash objects into html pages by using the OBJECT tag and EMBED tag. I have placed the EMBED tag inside the OBJECT tag to make sure every browser sees the flash as recomended.

I am working on a Content Management System which allows the user to insert flash objects to the pages being managed.

As some of you may hae experienced the MSHTML editor (often used in WYSIWYG online editors like editworkspro.com) actually rewrites the object code which causes problems.

I have found one solution. The code is not rewritten if you only insert the embed tag - so skip the object tag surrounding it.

For some reason that works and IE (version 6 at least) can see the flash object. I thought the object tag was required!!

Now can someone tell me why the object tag is not required! And if It would be safe for me to skip it from now on.

Regards,
Sambo



This code works for an example in IE 6.


Code:

<*EMBED
pluginspage=http://www.macromedia.com/go/getflashplayer
src=flashfile.swf
width=295
height=328
type=application/x-shockwave-flash
quality="high"
bgcolor="#F2F4EE"
MENU="false">
<*/EMBED>
The * is just so that the board doesn't try to render the flash

Assigning "href" To Flash Object Embed
hey guys,

this is a strange question, but is it possible to assign an <a href> to the flash object embed in html? in other words, to assign a link to the swf from outside of the swf itself?

(i know the usual way to assign a link to flash is to create a button and use getURL.)

thx,

XML Object Embed - Whats Up With This?
Adding the XML Class to another Object Class. Then Loading and XML Object into the Parent Object.

This works fine if you store within a variable of the Object but not direct to the Object itself. The File Loads but the data is nowhere to be seen. I have had problems with Object Scope before so i could be blinded by my own ignorance so any help would be appreciated, and its been a while since i devled into XML so i could be barking up the wrong tree

The code is below with a sample XML file attached as .txt

SiteManager.prototype=new XML()

function SiteManager ()
{
this.load("menus.xml")
this.onLoad=function(success)
{
if(success)
{
trace("loaded")
trace("show childNodes=="+this.childNodes)
}else{
trace("not loaded")
}
}
}

myManager=new SiteManager()




thanks for any help

Help With Vaiables From Object/embed
It's a game where the winning value variable (p1)is sent from the object/embed line.

I have this code in a frame, inside a movie clip. Does it have to be on the main timeline to read from the object/embed code? The mc "win" is inside this "scratcher1" movie clip.. i don't need "/win" do I?

basically, if x=p1, the text variable (winamount) will read $5.00, otherwise the value is nothing and random money amounts will be shown by going to a random frame in a movie clip. Make sense?

if (x==p1) {
winamount = "$5.00";
} else {
winamount = "";
frame = Number(random(9))+2;
tellTarget ("win") {
gotoAndStop(/:frame);
}
}

Object/embed And New ActiveX
"In short, pages using APPLET, EMBED, or OBJECT elements will work differently. Instead of loading and running automatically, the UI for each element will not appear until activated by the users via a mouse click or pressing space/enter if the object is in focus. Developers may need to modify how their pages load ActiveX controls, but aside from the extra mouse click or key press, users will see little difference. All new copies of Windows XP, Windows Server 2003, and Windows Vista will ship with the modified Internet Explorer, and current users will likely have their copies of IE updated via Windows Update."

Full Story from Ars Technica

Don't know if I'm late to the game on this one, but I hadn't heard anything about having to change the function of how flash objects will be handled by the browser. I'm just trying to wrap my brain around how much of a pain this could be to go back and make my flash files compatible.

Anyway, sorry if old news and/or wrong forum, but was wondering what peoples thoughts on this development are.

Embed Browser Object
I am new to flash. Do we have an option to embed browser objects inside flash. We do have these options in .net. Kindly let me know whether we can invoke browser objects from flash. If this is possible, please show me some sample codes.

Thanks,
Vijay

Embed Object Question
I know this question may be unworthy of the high sitepoint standards

I´ve been trying to put a flash games on one of my sites that is one folder beneath my .html file

I just changed the link to the .swf in the object embed like this


Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="400" height="400">
<param name="movie" value="warriorwm.swf">
<param name="quality" value="high">
<embed src="../warriorwm.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="400" height="400"></embed>
</object>
needless to say that didn´t have the desired effect. Does the flash file always have to be in the same folder or can I link to other folders as well and how would this be done?

Cheers!

Object And Embed Question
Sorry if this is in the wrong place but I thought it would be ok here as it's Flash related.

My question is about the <object> and <embed> tags which are used to embed Flash into HTML and which browsers use what. I know that Internet Explorer uses the <object> tag and Netscape uses the <embed> tag but I'm not sure about other browsers.

If you use a browser other than IE and NS could you drop a quick reply onto this thread and let me know which tag your browser uses


Thanks in advanced you lovely lovely people you

Object And Embed Tags
Are they both neccessery for flash to work? Will it work if i put only object tag when embeding flash? i see it doesn't work in mozzila then, so i need both of them all the time right?

EMBED AND OBJECT Tags
I've done a search in the forums and couldn't come up wih any good information. I was wondering if someone could point me towards any good discussions or resources about setting/sending vars to a Flash movie through it's EMBED / OBJECT tags...

thanks

The IE Embed, Object Problem...
Code:


<HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<TITLE></TITLE>
</HEAD>

<style type="text/css">
p
{font:bold smaller;
color:#999999;
}
</style>

<BODY>
<center>
<table align="center" width="420" height="520" border="0" cellpadding="10">
<tr>
<td align="center" valign="bottom">

<OBJECT
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="320"
HEIGHT="150"
id="resistance"
ALIGN=""
>
<PARAM NAME=movie VALUE=".swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#000000>

<EMBED src=".swf"
quality=high bgcolor=#000000
WIDTH="400" HEIGHT="500"
NAME="name"
ALIGN="center"
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"
>
</EMBED>
</OBJECT>

</td>
</tr>

</center>
</BODY>
</HTML>



i dont know exactly what im doing wrong but it wont show up in IE like it shows up in mozilla... and i know it has something to do with with embed tags or something that IE needs in order to read the swf

any ideas?
thanks

[F8] Grabbing Variables From Asp To Flash Object
Im trying to pull this variable from my asp page to import it into my flash movie. What am i doing wrong how do I get that myid variable into my flash object code?



Code:
embed src="casestudy.swf?links=<%Myid%>"
Flash object Code

Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="640" height="480" id="casestudy" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="casestudy.swf?links=<%Myid%>" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="casestudy.swf?links=<%Myid%>" quality="high" bgcolor="#ffffff" width="640" height="480" name="casestudy" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
Full asp Page Code

Code:
<%

Myid = request.QueryString("objectid")
response.write(Myid) ' It grabs the value just fine
%>

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="640" height="480" id="casestudy" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="casestudy.swf?links=<%Myid%>" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="casestudy.swf?links=<%Myid%>" quality="high" bgcolor="#ffffff" width="640" height="480" name="casestudy" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

Loading Variables From Swf Object Into Flash
Loading variables from swf object into flash

I cant seem to read the var bbgame in my flash file. When I trace the data on complete... I get the entire html file.

Heres is my class:
ActionScript Code:
public function WhosPlaying(mainTL:MovieClip, sucColor:Number, errColor1:Number) {
            _mainTL = mainTL;
            _errorColor1 = errColor1;
            _mainTL.addChild(_container_mc);
           
            _results_txt = new TextField;
            _results_txt.autoSize=TextFieldAutoSize.LEFT;
            _results_txt.selectable=false;
            _results_txt.text ="hi";
            _container_mc.addChild(_results_txt);
           
           
            //trace(_container_mc);
            _errorColor1 = errColor1;
            _successColor = sucColor;
            var requestMe:URLRequest = new URLRequest();
            var sendMail_lv:URLVariables = new URLVariables();
            // create a URLLoader to send/recieve the data
            var eLoader:URLLoader = new URLLoader();
            // when response is back use this event handler
            eLoader.addEventListener(Event.COMPLETE, handleResponse);
            eLoader.addEventListener(IOErrorEvent.IO_ERROR, onError);
            // return URL-encoded vars
            eLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
            requestMe.method = URLRequestMethod.POST;
            requestMe.url = _sendConfirmEmailFile;

            requestMe.data = sendMail_lv;
            // send/load data in the URLRequest to the server
            // nothing sent in this case
            eLoader.load(requestMe);
            //trace('SENDING = ' + requestMe.data);
           
        }
        private function onError(e:IOErrorEvent) {
            trace("Something wrong!: " + e);
        }
       
        private function handleResponse(event:Event):void {
            var completeLder:URLLoader = URLLoader(event.target);
            //trace('RECEIVING = ' + completeLder.data);
            if (completeLder.data.flint =="varContent") {
                _results_txt.text = 'RECEIVING = ' + completeLder.data;
            } else {
                _results_txt.text = "problem";
            }
        }
this swfObject code in index.html which contains my flash vars.... and embeds my swf:
HTML Code:
<script type="text/javascript">
/*(swfUrl, id, width, height, version, expressInstallSwfurl, flashvars, params, attributes)*/
swfobject.embedSWF("myFile.swf", "myCont", "824", "724", "9.0.0", "expressInstall.swf", {flint:"varContent"} , {wmode: "transparent"});
</script>

Textfield Object, Embed Fonts
This is the code I used to place textfields on the stage. When I don't embed the font outlines, the text shows, otherwise there is nothing. I need the font outlines to embed because this swf will be masked. Am I doing anything wrong? It doesn't seem to work no matter what font I use.


Code:
stop();
bx = 10;
by = 60;
q = 0;
r = 0;
for (i=0; i<ca.length; i++) {
if (r == 12) {
r = 0;
q++;
}
w = 193;
h = 16;
x = bx+(w*q);
y = by+(h*r);
this.createTextField("client"+i, i, x, y, w, h);
mytext = this["client"+i];
mytext.multiline = true;
mytext.wordWrap = true;
mytext.border = false;
mytext.selectable = false;
myformat = new TextFormat();
myformat.color = 0xffffff;
myformat.font = "FFF Harmony";
myformat.size = 8;
myformat.bullet = false;
mytext.text = ca[i];
mytext.setTextFormat(myformat);
r++;
}

Embed Issue When Using Matrix Object In AS
For some reason, a certain swf won't display if it only has an Embed
tag in IE, but I have always only used the Embed tag and it always
worked in IE. I think since I am using a special library I may need
something extra.

Please check out:


http://www.darrenhaas.com/temp/

Grabbing The Embed/object Id Of The Swf Movie
Is it possible to use ActionScript during runtime to get the id of the swf movie that is set it the html?

Specifically I want to access the object id or embed name attribute that is set like so in the html:


Code:
<object width="100%" height="100%" … id="idThatIWant">
<param … >
<embed src="swf.src"

name="idThatIWant"
/>
</object>

New IE Browser And Object Embed Tags
Has anyone heard anything about the new IE browser not supporting the html object embed tags anymore? a friend of mine told me about it . . . it kinda seems crazy. is it true or is this just some rumour?

<object><embed> BASE Question
I needed to put up my provider's swf files. I put them in different folders that is not a sub-folder to the ASP file that embed the flash. I try many ways to load the flash (swf) up but fail except 2 times.

I could load the flash in 2 case:
1) put the HTM file in the same folder
2) use HTML tag <BASE> to change to the folder that contains the swf file, but this cause my ASP doesn't work. After I load the flash the search form in the page fail.

Is there any tag or attribute in <OBJECT> or <EMBED> to make the current folder to be changed. I did try the following but fail:
1) <object ....>
<param name="base" value="

<object/embed> Preventing LoadMovie
hello;

when I use the object/embed tags to run a .swf, the loadMovie command does not execute;

if I instead run the swf from a <iframe src="my.swf"> the loadMovie works fine;

any thoughts?

thanks
dsdsdsdsd

Grabbin Variables From Asp To Flash Object Code
Is it possible to pass variables to a flash obect threw the url and how would the url look?

something like this?
http://critcore.wisc-online.org/crit...l?Objectid=183

then I would request the objectid in flash using send and load? Or how would I retrieve that?

Thanks for your help I appreciate it

How Do You Pull The Movie Name From The Object/embed Code?
How do you pull the movie name from the object/embed code?

chilled

Movie Not Playing With Object/embed Tags
I'm setting up a Flash movie and it has the following rules for display:

If JavaScript is enabled, use the AC_FL_RunContent () function.

If JavaScript is disabled, use the 'old school' Object/Embed tag method.

The trigger to detect Flash is nearly done (thanks for the delay in development, Internet Explorer!) but in cases where the browser doesn't have JavaScript enabled, the Object/Embed tags are loading the movie correctly but the Embed tag is not actually playing the movie in all the browsers I'm testing with.

Any ideas?

Embed HTML Object Onto A Specific Frame
Hello,

I have a Flash website that has four main sections. I am trying to embed the following "web button" on my Contact Page (which is found on the main timeline, in its own frame):

<embed src="http://embed.grandcentral.com/webcall/fc22ef6d5191deb8985deab0f3ea9b47" width="227" height="93" wmode="transparent"/>

Is there anyway to take this HTML code and add to the specific frame which refers to the Contact Page? I've searched around and googled, but haven't found anything.

If there's no way around this, any ideas on tweaking the main website so that I can put this HTML code into the Contact Page?

Thanks in advance!

Object/embed Seems To Prevent LoadMovie Command In Swf
hello;

when I use the object/embed tags to run a .swf, the loadMovie command does not execute;

if I instead run the swf from a <iframe src="my.swf"> the loadMovie works fine;

any thoughts?

thanks
dsdsdsdsd

LoaderInfo Get Values From EMBED And OBject Tag (not FlashVars)
hi
i try get values from object and embed tags like bgColor and allowFullScreen
but i cant find how i can it
loaderInfo.parameters return only flashVars
if some body know it please help
thank you

Sonettic Cinema Project





























Edited: 01/09/2008 at 03:42:08 AM by Roman Bambura

How To Replace <embed> With <object> Without Losing Pluginspage
Hello,

I have a Flash user interface embedded in an XHTML 1.0 Strict page and it works, but validators don't like the embed tag:


HTML Code:
<embed width="350" height="300"
name="SearchOrganiser"
src="../Flash/SearchOrganiser.swf"
quality="high"
bgcolor="#ffffff"
align="middle"
allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
The thing works if I replace "embed" with "object" like so:


HTML Code:
<object width="350" height="300"
name="SearchOrganiser"
data="../Flash/SearchOrganiser.swf"
type="application/x-shockwave-flash"
align="middle" />
Unfortunately, the user then loses the benefit of the pluginspage.

Does anyone know how to do it properly?

Problem With SWF Object (embed In Internet Explorer)
I've got my flash file embeded using the swfobject java script, and the file works fine but when I exit out of Internet Explorer I get a message:-

iexplore.exe application error

The instruction at "0x00fe5be" referenced memory at "0x00fe5be". The memory could not be read. Click OK to terminate the program.

The file works fine with Firefox, if I go into a page on my site that doesn't have embeded flash this stops it.

Does anyone have any ideas? It seems like its something in my swf that it doesn't like as I've used this method before and its worked fine.

My temp page can be seen at:-
http://www.jaybe.co.uk/the_site/BedProductPage.htm

Btw you have to interact with the flash elements first for this to occur.

Thanks

Ricky55

Embed Variables?
Hey!

I'm doing a small mp3player of sorts, which uses a variable in the embed tag to decide what mp3-file to play - but when I try it in action, the swf file just shows up blank. The linkage is set up properly - and it works if you predefine the variable "s" in the flash code - but it doesn't seem to be able to get it from the embed tag...

<embed src="minmp3hb.swf?s=shazaam.mp3", etc.

This is my code, thanful for your help!


Code:
/*
The 'load'-frame

Kom ihåg att 'linkage' för filerna i library måste sättas till export actionscript
(högerklick på mcPlay och mcStop i library-menyn -> linkage) för att det ska fungera.

playFirst används bara en gång då ljudfilen inte kan/behöver laddas fler gånger
*/

// var s = "/static/contentsourcing/ringtones/fergie_biggirlsdontcry_97_444718.mp3";



stop();
var url = "";
url = s;
if (url.indexOf("http") > -1)
{
}
else {url = "http://halebop.cellus.se" + url}

var soundReq:URLRequest = new URLRequest(url);
var sound:Sound = new Sound();
var soundControl:SoundChannel = new SoundChannel();

var play_btn = new mcPlay();
var stop_btn = new mcStop();

addChild(play_btn);
play_btn.x = 0;
play_btn.y = 0;

play_btn.addEventListener(MouseEvent.CLICK, playFirst);

function playFirst(event:MouseEvent):void
{
sound.load(soundReq);
soundControl = sound.play();
removeChild(play_btn);
addChild(stop_btn);
stop_btn.x = 0;
stop_btn.y = 0;
stop_btn.addEventListener(MouseEvent.CLICK, stopSound);
play_btn.removeEventListener(MouseEvent.CLICK, playFirst);
}
function stopSound(event:MouseEvent):void
{
soundControl.stop();
removeChild(stop_btn);
addChild(play_btn);
play_btn.x = 0;
play_btn.x = 0;
play_btn.addEventListener(MouseEvent.CLICK, playSound);
stop_btn.removeEventListener(MouseEvent.CLICK, stopSound);

}
function playSound(event:MouseEvent):void
{
soundControl = sound.play();
removeChild(play_btn);
addChild(stop_btn);
stop_btn.x = 0;
stop_btn.y = 0;
stop_btn.addEventListener(MouseEvent.CLICK, stopSound);
play_btn.removeEventListener(MouseEvent.CLICK, playSound);
}

Variables Between Embed SWF
I have a flex application and a little SWF file I would like to embed within the flex application.
Everything is fine, but how would I be able to communicate between those SWF's ?
Does the SWF file just have to be embeded with [embed] or another way?
But most importantly, how can I have a dynamic variable in the embeded SWF and be able to read that same variable within my flex application ?

Michael

[MX04] Valid XHTML With EMBED & OBJECT Tags?... Possible?...
Is it possible to pass validation (http://validator.w3.org/) for transitional XHTML if you use the OBJECT and EMBED tags to embed your swf file?... No matter what i do... I can't make my page valid.

There also seems to be a lot of trouble with my flash detection passing validation.. if it helps... i'll include player detection script
Code:
<head>

<script language="javascript" type="text/javascript">

var requiredMajorVersion = 7;
var requiredMinorVersion = 0;
var requiredRevision = 19;
var jsVersion = 1.0;

</script>

<script language="vbscript" type="text/vbscript">

Function VBGetSwfVer(i)
on error resume next
Dim swControl, swVersion
swVersion = 0

set swControl = CreateObject("ShockwaveFlash.ShockwaveFlash." + CStr(i))
if (IsObject(swControl)) then
swVersion = swControl.GetVariable("$version")
end if
VBGetSwfVer = swVersion
End Function

</script>

<script language="javascript1.1" type="text/javascript">

var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;

var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;

jsVersion = 1.1;

function JSGetSwfVer(i){
if (navigator.plugins != null && navigator.plugins.length > 0) {
if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
descArray = flashDescription.split(" ");
tempArrayMajor = descArray[2].split(".");
versionMajor = tempArrayMajor[0];
versionMinor = tempArrayMajor[1];
if ( descArray[3] != "" ) {
tempArrayMinor = descArray[3].split("r");
} else {
tempArrayMinor = descArray[4].split("r");
}
versionRevision = tempArrayMinor[1] > 0 ? tempArrayMinor[1] : 0;
flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
} else {
flashVer = -1;
}
}
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2
else {

flashVer = -1;
}
return flashVer;
}

function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
{
reqVer = parseFloat(reqMajorVer + "." + reqRevision);

for (i=25;i>0;i--) {
if (isIE && isWin && !isOpera) {
versionStr = VBGetSwfVer(i);
} else {
versionStr = JSGetSwfVer(i);
}
if (versionStr == -1 ) {
return false;
} else if (versionStr != 0) {
if(isIE && isWin && !isOpera) {
tempArray = versionStr.split(" ");
tempString = tempArray[1];
versionArray = tempString .split(",");
} else {
versionArray = versionStr.split(".");
}
versionMajor = versionArray[0];
versionMinor = versionArray[1];
versionRevision = versionArray[2];

versionString = versionMajor + "." + versionRevision; // 7.0r24 == 7.24
versionNum = parseFloat(versionString);
if ( (versionMajor > reqMajorVer) && (versionNum >= reqVer) ) {
return true;
} else {
return ((versionNum >= reqVer && versionMinor >= reqMinorVer) ? true : false );
}
}
}
}

</script>

</head>


<body>
<div align="center">

<script language="JavaScript" type="text/javascript">

var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if (hasReqestedVersion) {

var oeTags = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"'
+ 'width="100%" height="100%"'
+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" >'
+ '<param name="movie" value="movie.swf" /><param name="menu" value="false" /><param name="scale" value="noscale" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#FFFFFF" /><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" />'
+ '<embed src="movie.swf" quality="high" bgcolor="#FFFFFF"'
+ 'width="100%" height="100%" name="movie" aligh="middle"'
+ 'play="true"'
+ 'loop="false"'
+ 'wmode="transparent"'
+ 'quality="high"'
+ 'allowScriptAccess="sameDomain"'
+ 'type="application/x-shockwave-flash"'
+ 'pluginspage="http://www.macromedia.com/go/getflashplayer" />'
+ '</embed>'
+ '</object>';
document.write(oeTags);
} else {

var alternateContent = 'This site requires the Flash Player plugin. Download the latest version now...'
+ '<br /><br />'
+ '<a href="http://www.macromedia.com/go/getflash/" target="_blank"><img src="upgrade_flash/images/get_flashplayer_88_31.gif" alt="Get Flash Player" />'
+ '<br />GET FLASH</a>';
document.write(alternateContent);
}

</script>

<noscript>
This site requires a JavaScript enabled browser and the Flash Player plugin. Download the latest version now...
<br /><br />
<a href="http://www.macromedia.com/go/getflash/" target="_blank"> <img src="upgrade_flash/images/get_flashplayer_88_31.gif" alt="Get Flash Player" />GET FLASH</a>

</noscript>

</div>

</body>

I get 10 errors total... most are for every instance that the '&' is used... the others relate to the object and embed tags.... take a look.

Warning Line 71 column 31: character "&" is the first character of a delimiter but occurred as data.
if (navigator.plugins != null && navigator.plugins.length > 0) {

Warning Line 129 column 34: character "&" is the first character of a delimiter but occurred as data.
return ((versionNum >= reqVer && versionMinor >= reqMinorVer) ? true : false


Error Line 147 column 78: an attribute specification must start with a name or name token.
...d:d27cdb6e-ae6d-11cf-96b8-444553540000"'

Error Line 147 column 78: document type does not allow element "object" here.
...d:d27cdb6e-ae6d-11cf-96b8-444553540000"'
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

Error Line 151 column 18: there is no attribute "src".
+ '<embed src="movie.swf" quality="high" bgcolor="#FFFFFF"'

Passing Variables To An Embed SWF. Help
Hi!

I have a .swf movie (movie1) in a html file and I'd like to open another .swf movie (movie2) in a blank window, but passing a variable (myVar) to it from movie1.
This movie2 is embed in the html page.

Can somebody tell how can I do it or make me a sample? :S

Please help!!

Rachel

How To Include Variables In The EMBED Tag?
Hello!

I'd like to include a variable to my EMBED tag, which would tell the SWF file which language version to use.

So depending on which language the user chooses in the pre-flash HTML page, the Flash file would use the corresponding language version.

I would like to add the variable in HTML so I wouldn't have to have a separate SWF file for each language.. you get the point, right?

Any ideas?

Embed Code Variables In AS3.0?
Hello,

I am trying to embed variables in my embed code and retrieve them in Flash, but it does not seem to be working.

I need to do this without using any Javascript, so it will look something like this:

<embed src="embedTest.swf?hat1=6&hat2=6&head1=6&head2=6" quality="high" wmode="opaque" width="780" height="390" name="embedTest" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />

I know in AS2.0 the variables are there already, but it doesn't seem to be finding them now that I am using 3.0.

How do I get Flash to recognize these variables?

Cant Read Embed Variables ?
Hi,

I'm having a weird problem trying to read embedded variables.

The parameters in my html page look like this


ActionScript Code:
<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="550" height="400" id="testRquest" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="testRquest.swf" /><param name="quality" value="high" /><param name="trackids" value="1,2,3,4,5,6,7,8,9,10"/><param name="bgcolor" value="#ffffff" /> <embed src="testRquest.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="testRquest" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
</noscript>

I want to be able to read the parameter value of "trackids"

The code that I'm using to try and do this is as follows but when I run it the text field that should hold the parameter displays nothing?


ActionScript Code:
var paramObj = LoaderInfo(this.root.loaderInfo).parameters;
test.text=paramObj.trackids;

As far I know this is how you read embedded variables. Can anyone see why I cant get at my variables?

Loading Variables From The Embed Tag (after The ?)
Hi, I'm develloping a little image loading application for a client.
the same swf has to be reused over and over to load the files.
They are passing me the image location in the embed tag but they are not using the usual

flash.swf?path=folderpath&img1=image1.jpg&img2=ima ge2.jpg&img3=image3.jpg

instead they are using this format :

flash.swf?/folderpath/::SPLIT::image1.jpg::SPLIT::image2.jpg::SPLIT::ima ge3.jpg
do you know how I can read those variables into my flash file ?

any help would be greatly appreciated.

Thank you.

Loading Variables With Embed
i am bringing in variables through an embed code
the typeof the imported variable is "undefined"
i need it to be a string or something that will cocantenate with this path

_root.movieToLoad=_root.reldir+"/swf/"+_root.currentIndex+".swf";

_root.reldir is the var that is loaded

String(reldir); doesn't seem to work

any suggestions?


cheers

Copyright © 2005-08 www.BigResource.com, All rights reserved