Hello,
I am trying to reference a Shockwave Flash Object on a vb code behind page
in an ASP.NET project and I receive the following error:
Guid should contain 32 digits with 4 dashes
(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
On the aspx page I have the object tag as follows:
<object id="FlashObj" name="FlashObj" runat="server"
classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0" width="550" height="400" VIEWASTEXT>
<param name="movie" value="formatTe st.swf">
<param name="quality" value="high">
<embed src="formatTest .swf" quality="high"
pluginspage="ht tp://www.macromedia. com/go/getflashplayer"
type="applicati on/x-shockwave-flash" width="550"
height="400"></embed></object>
On the code behind page I have:
Protected WithEvents FlashObj As ShockwaveFlashO bjects.Shockwav eFlashClass
and then try to use the obeject in the following manner (on page load):
FlashObj.SetVar iable("_root.te stVar", "testvalue" )
Any suggestions on what I'm doing wrong, or a better way to 'talk' back and
forth between .NET and Flash?
Thank you very much for your time.
Sincerely,
Keith 9 8594
If you are only attempting to add <param> tags within the object tag, then there is no need to use a Flash object in the code
behind. Just use an HtmlGeneric control and add the <param> tags as sub controls of type LiteralControl.
GL
--
Dave Sexton dave@www..jwaon line..com
-----------------------------------------------------------------------
"Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message news:1C******** *************** ***********@mic rosoft.com... Hello,
I am trying to reference a Shockwave Flash Object on a vb code behind page in an ASP.NET project and I receive the following error:
Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
On the aspx page I have the object tag as follows:
<object id="FlashObj" name="FlashObj" runat="server" classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0" width="550" height="400" VIEWASTEXT> <param name="movie" value="formatTe st.swf"> <param name="quality" value="high"> <embed src="formatTest .swf" quality="high" pluginspage="ht tp://www.macromedia. com/go/getflashplayer" type="applicati on/x-shockwave-flash" width="550" height="400"></embed></object>
On the code behind page I have:
Protected WithEvents FlashObj As ShockwaveFlashO bjects.Shockwav eFlashClass
and then try to use the obeject in the following manner (on page load):
FlashObj.SetVar iable("_root.te stVar", "testvalue" )
Any suggestions on what I'm doing wrong, or a better way to 'talk' back and forth between .NET and Flash?
Thank you very much for your time.
Sincerely,
Keith
Dave,
Thanks for your reply.
I actually need to access the functions and methods of the ShockWave Object
in the code behind. I, at some point had declared in the code behind the
object as a generic html control, however I could not cast it to the
ShockWaveObj (it was a compile error). Do you have any other suggestions?
Again, thanks for your help.
-Keith
"Dave" wrote: If you are only attempting to add <param> tags within the object tag, then there is no need to use a Flash object in the code behind. Just use an HtmlGeneric control and add the <param> tags as sub controls of type LiteralControl.
GL
-- Dave Sexton dave@www..jwaon line..com ----------------------------------------------------------------------- "Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message news:1C******** *************** ***********@mic rosoft.com... Hello,
I am trying to reference a Shockwave Flash Object on a vb code behind page in an ASP.NET project and I receive the following error:
Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
On the aspx page I have the object tag as follows:
<object id="FlashObj" name="FlashObj" runat="server" classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0" width="550" height="400" VIEWASTEXT> <param name="movie" value="formatTe st.swf"> <param name="quality" value="high"> <embed src="formatTest .swf" quality="high" pluginspage="ht tp://www.macromedia. com/go/getflashplayer" type="applicati on/x-shockwave-flash" width="550" height="400"></embed></object>
On the code behind page I have:
Protected WithEvents FlashObj As ShockwaveFlashO bjects.Shockwav eFlashClass
and then try to use the obeject in the following manner (on page load):
FlashObj.SetVar iable("_root.te stVar", "testvalue" )
Any suggestions on what I'm doing wrong, or a better way to 'talk' back and forth between .NET and Flash?
Thank you very much for your time.
Sincerely,
Keith
> [i] declared in the code behind the object as a generic html control, however I could not cast it to the ShockWaveObj (it was a compile error).
This is because ShockWaveObj does not derive from HtmlGenericCont rol. Also, you won't be able to create an instance of Flash on the
server using the <object> tag because it doesn't derive from System.Web.UI.C ontrol.
Are you attempting to interface with the Flash object on the web page?
If you need to invoke methods on the client instance of the Flash object (on the web page), then use scripting.
ActiveX uses <param> tags as a means for setting properties declaratively for runtime on the client without having to use COM.
Scripting will allow you to invoke methods on the Flash COM object after it is loaded into a web page. Just set the ID property of
the object, and use it in scripting as if it is the ShockWaveObj you speak of.
If you invoke methods on the Flash object in server-side code it is going to occur on the server. I just want to make sure that you
understand the difference. I'm not sure that invoking methods on the server would affect the client runtime environment of a Flash
object in the way that you expect it to.
I hope it helps :)
--
Dave Sexton dave@www..jwaon line..com
-----------------------------------------------------------------------
"Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message news:93******** *************** ***********@mic rosoft.com... Dave,
Thanks for your reply.
I actually need to access the functions and methods of the ShockWave Object in the code behind. I, at some point had declared in the code behind the object as a generic html control, however I could not cast it to the ShockWaveObj (it was a compile error). Do you have any other suggestions?
Again, thanks for your help.
-Keith
"Dave" wrote:
If you are only attempting to add <param> tags within the object tag, then there is no need to use a Flash object in the code behind. Just use an HtmlGeneric control and add the <param> tags as sub controls of type LiteralControl.
GL
-- Dave Sexton dave@www..jwaon line..com ----------------------------------------------------------------------- "Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message news:1C******** *************** ***********@mic rosoft.com... > Hello, > > I am trying to reference a Shockwave Flash Object on a vb code behind page > in an ASP.NET project and I receive the following error: > > Guid should contain 32 digits with 4 dashes > (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). > > On the aspx page I have the object tag as follows: > > <object id="FlashObj" name="FlashObj" runat="server" > classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" > codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0" width="550" height="400" > VIEWASTEXT> > <param name="movie" value="formatTe st.swf"> > <param name="quality" value="high"> > <embed src="formatTest .swf" quality="high" > pluginspage="ht tp://www.macromedia. com/go/getflashplayer" > type="applicati on/x-shockwave-flash" width="550" > height="400"></embed></object> > > On the code behind page I have: > > Protected WithEvents FlashObj As ShockwaveFlashO bjects.Shockwav eFlashClass > > and then try to use the obeject in the following manner (on page load): > > FlashObj.SetVar iable("_root.te stVar", "testvalue" ) > > Any suggestions on what I'm doing wrong, or a better way to 'talk' back and > forth between .NET and Flash? > > Thank you very much for your time. > > Sincerely, > > Keith > > > >
Dave,
What I ultimately want to do is set a param value or pass a value into this
shockwave object on page load. The value is dynamic. Do you have
suggestions on an alternate approach?
Thanks for all your help with this.
-Keith
"Dave" wrote: [i] declared in the code behind the object as a generic html control, however I could not cast it to the ShockWaveObj (it was a compile error).
This is because ShockWaveObj does not derive from HtmlGenericCont rol. Also, you won't be able to create an instance of Flash on the server using the <object> tag because it doesn't derive from System.Web.UI.C ontrol.
Are you attempting to interface with the Flash object on the web page?
If you need to invoke methods on the client instance of the Flash object (on the web page), then use scripting. ActiveX uses <param> tags as a means for setting properties declaratively for runtime on the client without having to use COM. Scripting will allow you to invoke methods on the Flash COM object after it is loaded into a web page. Just set the ID property of the object, and use it in scripting as if it is the ShockWaveObj you speak of.
If you invoke methods on the Flash object in server-side code it is going to occur on the server. I just want to make sure that you understand the difference. I'm not sure that invoking methods on the server would affect the client runtime environment of a Flash object in the way that you expect it to.
I hope it helps :)
-- Dave Sexton dave@www..jwaon line..com ----------------------------------------------------------------------- "Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message news:93******** *************** ***********@mic rosoft.com... Dave,
Thanks for your reply.
I actually need to access the functions and methods of the ShockWave Object in the code behind. I, at some point had declared in the code behind the object as a generic html control, however I could not cast it to the ShockWaveObj (it was a compile error). Do you have any other suggestions?
Again, thanks for your help.
-Keith
"Dave" wrote:
If you are only attempting to add <param> tags within the object tag, then there is no need to use a Flash object in the code behind. Just use an HtmlGeneric control and add the <param> tags as sub controls of type LiteralControl.
GL
-- Dave Sexton dave@www..jwaon line..com ----------------------------------------------------------------------- "Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message news:1C******** *************** ***********@mic rosoft.com... > Hello, > > I am trying to reference a Shockwave Flash Object on a vb code behind page > in an ASP.NET project and I receive the following error: > > Guid should contain 32 digits with 4 dashes > (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). > > On the aspx page I have the object tag as follows: > > <object id="FlashObj" name="FlashObj" runat="server" > classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" > codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0" width="550" height="400" > VIEWASTEXT> > <param name="movie" value="formatTe st.swf"> > <param name="quality" value="high"> > <embed src="formatTest .swf" quality="high" > pluginspage="ht tp://www.macromedia. com/go/getflashplayer" > type="applicati on/x-shockwave-flash" width="550" > height="400"></embed></object> > > On the code behind page I have: > > Protected WithEvents FlashObj As ShockwaveFlashO bjects.Shockwav eFlashClass > > and then try to use the obeject in the following manner (on page load): > > FlashObj.SetVar iable("_root.te stVar", "testvalue" ) > > Any suggestions on what I'm doing wrong, or a better way to 'talk' back and > forth between .NET and Flash? > > Thank you very much for your time. > > Sincerely, > > Keith > > > >
Review my original post which I believe addresses your need.
I will add to my original post by saying that the value you pass in may be dynamic, since it can be calculated on the server side
and emitted as HTML using the basic control implementation:
Having the following HTML...
<object id="FlashObj" name="FlashObj" runat="server"
classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0"
width="550" height="400" >
<param name="movie" value="formatTe st.swf">
<param name="quality" value="high">
</object>
....switch to Design View and VS.NET will add a property in the code behind for you. It will probably be Typed as
HtmlGenericCont rol:
private void System.Web.UI.H tmlControls.Htm lGenericControl FlashObj;
Now, you can do the following in the code-behind:
protected virtual void OnLoad(EventArg s e)
{
base.OnLoad(e);
HtmlGenericCont rol param = new HtmlGenericCont rol("PARAM");
FlashObj.Contro ls.Add(param);
param.Attribute s["name"] = "dynamic_pr op";
param.Attribute s["value"] = "the value!";
}
When you compile this code and view it in a browser, if you click "View Source" you should see something close to the following at
the position in the page where you have the object HTML:
<object id="FlashObj" name="FlashObj" runat="server"
classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0"
width="550" height="400" >
<param name="movie" value="formatTe st.swf">
<param name="quality" value="high">
<param name="dynamic_p rop" value="the value!"></object>
--
Dave Sexton dave@www..jwaon line..com
-----------------------------------------------------------------------
"Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message news:3F******** *************** ***********@mic rosoft.com... Dave,
What I ultimately want to do is set a param value or pass a value into this shockwave object on page load. The value is dynamic. Do you have suggestions on an alternate approach?
Thanks for all your help with this.
-Keith
"Dave" wrote:
> [i] declared in the code behind the > object as a generic html control, however I could not cast it to the > ShockWaveObj (it was a compile error).
This is because ShockWaveObj does not derive from HtmlGenericCont rol. Also, you won't be able to create an instance of Flash on the server using the <object> tag because it doesn't derive from System.Web.UI.C ontrol.
Are you attempting to interface with the Flash object on the web page?
If you need to invoke methods on the client instance of the Flash object (on the web page), then use scripting. ActiveX uses <param> tags as a means for setting properties declaratively for runtime on the client without having to use COM. Scripting will allow you to invoke methods on the Flash COM object after it is loaded into a web page. Just set the ID property of the object, and use it in scripting as if it is the ShockWaveObj you speak of.
If you invoke methods on the Flash object in server-side code it is going to occur on the server. I just want to make sure that you understand the difference. I'm not sure that invoking methods on the server would affect the client runtime environment of a Flash object in the way that you expect it to.
I hope it helps :)
-- Dave Sexton dave@www..jwaon line..com ----------------------------------------------------------------------- "Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message news:93******** *************** ***********@mic rosoft.com... > Dave, > > Thanks for your reply. > > I actually need to access the functions and methods of the ShockWave Object > in the code behind. I, at some point had declared in the code behind the > object as a generic html control, however I could not cast it to the > ShockWaveObj (it was a compile error). Do you have any other suggestions? > > Again, thanks for your help. > > -Keith > > > "Dave" wrote: > >> If you are only attempting to add <param> tags within the object tag, then there is no need to use a Flash object in the code >> behind. Just use an HtmlGeneric control and add the <param> tags as sub controls of type LiteralControl. >> >> GL >> >> -- >> Dave Sexton >> dave@www..jwaon line..com >> ----------------------------------------------------------------------- >> "Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message news:1C******** *************** ***********@mic rosoft.com... >> > Hello, >> > >> > I am trying to reference a Shockwave Flash Object on a vb code behind page >> > in an ASP.NET project and I receive the following error: >> > >> > Guid should contain 32 digits with 4 dashes >> > (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). >> > >> > On the aspx page I have the object tag as follows: >> > >> > <object id="FlashObj" name="FlashObj" runat="server" >> > classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" >> > codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0" width="550" height="400" >> > VIEWASTEXT> >> > <param name="movie" value="formatTe st.swf"> >> > <param name="quality" value="high"> >> > <embed src="formatTest .swf" quality="high" >> > pluginspage="ht tp://www.macromedia. com/go/getflashplayer" >> > type="applicati on/x-shockwave-flash" width="550" >> > height="400"></embed></object> >> > >> > On the code behind page I have: >> > >> > Protected WithEvents FlashObj As ShockwaveFlashO bjects.Shockwav eFlashClass >> > >> > and then try to use the obeject in the following manner (on page load): >> > >> > FlashObj.SetVar iable("_root.te stVar", "testvalue" ) >> > >> > Any suggestions on what I'm doing wrong, or a better way to 'talk' back and >> > forth between .NET and Flash? >> > >> > Thank you very much for your time. >> > >> > Sincerely, >> > >> > Keith >> > >> > >> > >> > >> >> >>
Dave,
That solution makes sense to me, however, I still receive the GUID error
anytime I try to put the runat='server' tag on the object. If I take that
tag off, then I get a object reference not set to an instance of an object
(as one would expect trying to a reference an object on the codebhind that
does not have a runat='server' tag). Do you have any ideas on what causes
the guid error?
-Keith
"Dave" wrote: Review my original post which I believe addresses your need.
I will add to my original post by saying that the value you pass in may be dynamic, since it can be calculated on the server side and emitted as HTML using the basic control implementation:
Having the following HTML...
<object id="FlashObj" name="FlashObj" runat="server" classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0" width="550" height="400" > <param name="movie" value="formatTe st.swf"> <param name="quality" value="high"> </object>
....switch to Design View and VS.NET will add a property in the code behind for you. It will probably be Typed as HtmlGenericCont rol:
private void System.Web.UI.H tmlControls.Htm lGenericControl FlashObj;
Now, you can do the following in the code-behind:
protected virtual void OnLoad(EventArg s e) { base.OnLoad(e);
HtmlGenericCont rol param = new HtmlGenericCont rol("PARAM"); FlashObj.Contro ls.Add(param);
param.Attribute s["name"] = "dynamic_pr op"; param.Attribute s["value"] = "the value!"; }
When you compile this code and view it in a browser, if you click "View Source" you should see something close to the following at the position in the page where you have the object HTML:
<object id="FlashObj" name="FlashObj" runat="server" classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0" width="550" height="400" > <param name="movie" value="formatTe st.swf"> <param name="quality" value="high"> <param name="dynamic_p rop" value="the value!"></object>
-- Dave Sexton dave@www..jwaon line..com ----------------------------------------------------------------------- "Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message news:3F******** *************** ***********@mic rosoft.com... Dave,
What I ultimately want to do is set a param value or pass a value into this shockwave object on page load. The value is dynamic. Do you have suggestions on an alternate approach?
Thanks for all your help with this.
-Keith
"Dave" wrote:
> [i] declared in the code behind the > object as a generic html control, however I could not cast it to the > ShockWaveObj (it was a compile error).
This is because ShockWaveObj does not derive from HtmlGenericCont rol. Also, you won't be able to create an instance of Flash on the server using the <object> tag because it doesn't derive from System.Web.UI.C ontrol.
Are you attempting to interface with the Flash object on the web page?
If you need to invoke methods on the client instance of the Flash object (on the web page), then use scripting. ActiveX uses <param> tags as a means for setting properties declaratively for runtime on the client without having to use COM. Scripting will allow you to invoke methods on the Flash COM object after it is loaded into a web page. Just set the ID property of the object, and use it in scripting as if it is the ShockWaveObj you speak of.
If you invoke methods on the Flash object in server-side code it is going to occur on the server. I just want to make sure that you understand the difference. I'm not sure that invoking methods on the server would affect the client runtime environment of a Flash object in the way that you expect it to.
I hope it helps :)
-- Dave Sexton dave@www..jwaon line..com ----------------------------------------------------------------------- "Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message news:93******** *************** ***********@mic rosoft.com... > Dave, > > Thanks for your reply. > > I actually need to access the functions and methods of the ShockWave Object > in the code behind. I, at some point had declared in the code behind the > object as a generic html control, however I could not cast it to the > ShockWaveObj (it was a compile error). Do you have any other suggestions? > > Again, thanks for your help. > > -Keith > > > "Dave" wrote: > >> If you are only attempting to add <param> tags within the object tag, then there is no need to use a Flash object in the code >> behind. Just use an HtmlGeneric control and add the <param> tags as sub controls of type LiteralControl. >> >> GL >> >> -- >> Dave Sexton >> dave@www..jwaon line..com >> ----------------------------------------------------------------------- >> "Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message news:1C******** *************** ***********@mic rosoft.com... >> > Hello, >> > >> > I am trying to reference a Shockwave Flash Object on a vb code behind page >> > in an ASP.NET project and I receive the following error: >> > >> > Guid should contain 32 digits with 4 dashes >> > (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). >> > >> > On the aspx page I have the object tag as follows: >> > >> > <object id="FlashObj" name="FlashObj" runat="server" >> > classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" >> > codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0" width="550" height="400" >> > VIEWASTEXT> >> > <param name="movie" value="formatTe st.swf"> >> > <param name="quality" value="high"> >> > <embed src="formatTest .swf" quality="high" >> > pluginspage="ht tp://www.macromedia. com/go/getflashplayer" >> > type="applicati on/x-shockwave-flash" width="550" >> > height="400"></embed></object> >> > >> > On the code behind page I have: >> > >> > Protected WithEvents FlashObj As ShockwaveFlashO bjects.Shockwav eFlashClass >> > >> > and then try to use the obeject in the following manner (on page load): >> > >> > FlashObj.SetVar iable("_root.te stVar", "testvalue" ) >> > >> > Any suggestions on what I'm doing wrong, or a better way to 'talk' back and >> > forth between .NET and Flash? >> > >> > Thank you very much for your time. >> > >> > Sincerely, >> > >> > Keith >> > >> > >> > >> > >> >> >>
I made a test web page to try out my solution and was supprised to find that I had the same error as you. To solve the GUID error,
you'll see the problem in the design view of the page that contains the object tag. Open it in design view, and check out the
properties window for the object itself. Notice the Clsid property in the window appears as:
clsid:clsid:D27 CDB6E-AE6D-11cf-96B8-444553540000
This is obviously invalid.
Apparrently since the designer shows objects at design time, the "object" tag is a special tag that is parsed immediately and cannot
be ran on the server as an object. This means you can't use runat="server". Here is a different solution, although sloppy it will
do the trick:
Instead of adding an object tag to the HTML, add the following:
<asp:PlaceHolde r Runat="server" ID="FlashObj" EnableViewState ="False"></asp:PlaceHolder >
Open the form in the designer so that it creates a declaration for the placeholder control in the code-behind, or enter it manually:
protected System.Web.UI.W ebControls.Plac eHolder FlashObj;
Add this code into your Page_Load event handler:
HtmlGenericCont rol flash = new HtmlGenericCont rol("OBJECT");
flash.Attribute s["clsid"] = "clsid:D27C DB6E-AE6D-11cf-96B8-444553540000";
flash.Attribute s["codebase"] = "http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0";
flash.Attribute s["width"] = "550";
flash.Attribute s["height"] = "400";
HtmlGenericCont rol param = new HtmlGenericCont rol("PARAM");
param.Attribute s["name"] = "movie";
param.Attribute s["value"] = "formatTest.swf ";
flash.Controls. Add(param);
param = new HtmlGenericCont rol("PARAM");
param.Attribute s["name"] = "quality";
param.Attribute s["value"] = "high";
flash.Controls. Add(param);
LiteralControl embed = new LiteralControl( @"
<embed src=""formatTes t.swf"" quality=""high" "
pluginspage=""h ttp://www.macromedia. com/go/getflashplayer" "
type=""applicat ion/x-shockwave-flash"" width=""550""
height=""400""> </embed>
");
flash.Controls. Add(embed);
FlashObj.Contro ls.Add(flash);
As you can see, you may now add as many parameters as you would like to, and the designer will not change the state of your HTML. I
tested this implementation and it worked for me.
--
Dave Sexton dave@www..jwaon line..com
-----------------------------------------------------------------------
"Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message news:5F******** *************** ***********@mic rosoft.com... Dave,
That solution makes sense to me, however, I still receive the GUID error anytime I try to put the runat='server' tag on the object. If I take that tag off, then I get a object reference not set to an instance of an object (as one would expect trying to a reference an object on the codebhind that does not have a runat='server' tag). Do you have any ideas on what causes the guid error?
-Keith
"Dave" wrote:
Review my original post which I believe addresses your need.
I will add to my original post by saying that the value you pass in may be dynamic, since it can be calculated on the server side and emitted as HTML using the basic control implementation:
Having the following HTML...
<object id="FlashObj" name="FlashObj" runat="server" classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0" width="550" height="400" > <param name="movie" value="formatTe st.swf"> <param name="quality" value="high"> </object>
....switch to Design View and VS.NET will add a property in the code behind for you. It will probably be Typed as HtmlGenericCont rol:
private void System.Web.UI.H tmlControls.Htm lGenericControl FlashObj;
Now, you can do the following in the code-behind:
protected virtual void OnLoad(EventArg s e) { base.OnLoad(e);
HtmlGenericCont rol param = new HtmlGenericCont rol("PARAM"); FlashObj.Contro ls.Add(param);
param.Attribute s["name"] = "dynamic_pr op"; param.Attribute s["value"] = "the value!"; }
When you compile this code and view it in a browser, if you click "View Source" you should see something close to the following at the position in the page where you have the object HTML:
<object id="FlashObj" name="FlashObj" runat="server" classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0" width="550" height="400" > <param name="movie" value="formatTe st.swf"> <param name="quality" value="high"> <param name="dynamic_p rop" value="the value!"></object>
-- Dave Sexton dave@www..jwaon line..com ----------------------------------------------------------------------- "Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message news:3F******** *************** ***********@mic rosoft.com... > Dave, > > What I ultimately want to do is set a param value or pass a value into this > shockwave object on page load. The value is dynamic. Do you have > suggestions on an alternate approach? > > Thanks for all your help with this. > > -Keith > > "Dave" wrote: > >> > [i] declared in the code behind the >> > object as a generic html control, however I could not cast it to the >> > ShockWaveObj (it was a compile error). >> >> This is because ShockWaveObj does not derive from HtmlGenericCont rol. Also, you won't be able to create an instance of Flash >> on >> the >> server using the <object> tag because it doesn't derive from System.Web.UI.C ontrol. >> >> Are you attempting to interface with the Flash object on the web page? >> >> If you need to invoke methods on the client instance of the Flash object (on the web page), then use scripting. >> ActiveX uses <param> tags as a means for setting properties declaratively for runtime on the client without having to use COM. >> Scripting will allow you to invoke methods on the Flash COM object after it is loaded into a web page. Just set the ID >> property >> of >> the object, and use it in scripting as if it is the ShockWaveObj you speak of. >> >> If you invoke methods on the Flash object in server-side code it is going to occur on the server. I just want to make sure >> that >> you >> understand the difference. I'm not sure that invoking methods on the server would affect the client runtime environment of a >> Flash >> object in the way that you expect it to. >> >> >> I hope it helps :) >> >> >> -- >> Dave Sexton >> dave@www..jwaon line..com >> ----------------------------------------------------------------------- >> "Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message news:93******** *************** ***********@mic rosoft.com... >> > Dave, >> > >> > Thanks for your reply. >> > >> > I actually need to access the functions and methods of the ShockWave Object >> > in the code behind. I, at some point had declared in the code behind the >> > object as a generic html control, however I could not cast it to the >> > ShockWaveObj (it was a compile error). Do you have any other suggestions? >> > >> > Again, thanks for your help. >> > >> > -Keith >> > >> > >> > "Dave" wrote: >> > >> >> If you are only attempting to add <param> tags within the object tag, then there is no need to use a Flash object in the >> >> code >> >> behind. Just use an HtmlGeneric control and add the <param> tags as sub controls of type LiteralControl. >> >> >> >> GL >> >> >> >> -- >> >> Dave Sexton >> >> dave@www..jwaon line..com >> >> ----------------------------------------------------------------------- >> >> "Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message >> >> news:1C******** *************** ***********@mic rosoft.com... >> >> > Hello, >> >> > >> >> > I am trying to reference a Shockwave Flash Object on a vb code behind page >> >> > in an ASP.NET project and I receive the following error: >> >> > >> >> > Guid should contain 32 digits with 4 dashes >> >> > (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). >> >> > >> >> > On the aspx page I have the object tag as follows: >> >> > >> >> > <object id="FlashObj" name="FlashObj" runat="server" >> >> > classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" >> >> > codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0" width="550" height="400" >> >> > VIEWASTEXT> >> >> > <param name="movie" value="formatTe st.swf"> >> >> > <param name="quality" value="high"> >> >> > <embed src="formatTest .swf" quality="high" >> >> > pluginspage="ht tp://www.macromedia. com/go/getflashplayer" >> >> > type="applicati on/x-shockwave-flash" width="550" >> >> > height="400"></embed></object> >> >> > >> >> > On the code behind page I have: >> >> > >> >> > Protected WithEvents FlashObj As ShockwaveFlashO bjects.Shockwav eFlashClass >> >> > >> >> > and then try to use the obeject in the following manner (on page load): >> >> > >> >> > FlashObj.SetVar iable("_root.te stVar", "testvalue" ) >> >> > >> >> > Any suggestions on what I'm doing wrong, or a better way to 'talk' back and >> >> > forth between .NET and Flash? >> >> > >> >> > Thank you very much for your time. >> >> > >> >> > Sincerely, >> >> > >> >> > Keith >> >> > >> >> > >> >> > >> >> > >> >> >> >> >> >> >> >> >>
Dave,
That works just fine, thanks!
Now, the next level is, I need to be able to pass/set a variable to this
object when a user clicks a button. Is this possible? Rather, is it
possible to do this before the value the user entered in the flash object is
cleared out on the page reload?
-Keith
"Dave" wrote: I made a test web page to try out my solution and was supprised to find that I had the same error as you. To solve the GUID error, you'll see the problem in the design view of the page that contains the object tag. Open it in design view, and check out the properties window for the object itself. Notice the Clsid property in the window appears as:
clsid:clsid:D27 CDB6E-AE6D-11cf-96B8-444553540000
This is obviously invalid.
Apparrently since the designer shows objects at design time, the "object" tag is a special tag that is parsed immediately and cannot be ran on the server as an object. This means you can't use runat="server". Here is a different solution, although sloppy it will do the trick:
Instead of adding an object tag to the HTML, add the following:
<asp:PlaceHolde r Runat="server" ID="FlashObj" EnableViewState ="False"></asp:PlaceHolder >
Open the form in the designer so that it creates a declaration for the placeholder control in the code-behind, or enter it manually:
protected System.Web.UI.W ebControls.Plac eHolder FlashObj;
Add this code into your Page_Load event handler:
HtmlGenericCont rol flash = new HtmlGenericCont rol("OBJECT"); flash.Attribute s["clsid"] = "clsid:D27C DB6E-AE6D-11cf-96B8-444553540000"; flash.Attribute s["codebase"] = "http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0"; flash.Attribute s["width"] = "550"; flash.Attribute s["height"] = "400";
HtmlGenericCont rol param = new HtmlGenericCont rol("PARAM"); param.Attribute s["name"] = "movie"; param.Attribute s["value"] = "formatTest.swf "; flash.Controls. Add(param);
param = new HtmlGenericCont rol("PARAM"); param.Attribute s["name"] = "quality"; param.Attribute s["value"] = "high"; flash.Controls. Add(param);
LiteralControl embed = new LiteralControl( @" <embed src=""formatTes t.swf"" quality=""high" " pluginspage=""h ttp://www.macromedia. com/go/getflashplayer" " type=""applicat ion/x-shockwave-flash"" width=""550"" height=""400""> </embed> ");
flash.Controls. Add(embed);
FlashObj.Contro ls.Add(flash);
As you can see, you may now add as many parameters as you would like to, and the designer will not change the state of your HTML. I tested this implementation and it worked for me.
-- Dave Sexton dave@www..jwaon line..com ----------------------------------------------------------------------- "Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message news:5F******** *************** ***********@mic rosoft.com... Dave,
That solution makes sense to me, however, I still receive the GUID error anytime I try to put the runat='server' tag on the object. If I take that tag off, then I get a object reference not set to an instance of an object (as one would expect trying to a reference an object on the codebhind that does not have a runat='server' tag). Do you have any ideas on what causes the guid error?
-Keith
"Dave" wrote:
Review my original post which I believe addresses your need.
I will add to my original post by saying that the value you pass in may be dynamic, since it can be calculated on the server side and emitted as HTML using the basic control implementation:
Having the following HTML...
<object id="FlashObj" name="FlashObj" runat="server" classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0" width="550" height="400" > <param name="movie" value="formatTe st.swf"> <param name="quality" value="high"> </object>
....switch to Design View and VS.NET will add a property in the code behind for you. It will probably be Typed as HtmlGenericCont rol:
private void System.Web.UI.H tmlControls.Htm lGenericControl FlashObj;
Now, you can do the following in the code-behind:
protected virtual void OnLoad(EventArg s e) { base.OnLoad(e);
HtmlGenericCont rol param = new HtmlGenericCont rol("PARAM"); FlashObj.Contro ls.Add(param);
param.Attribute s["name"] = "dynamic_pr op"; param.Attribute s["value"] = "the value!"; }
When you compile this code and view it in a browser, if you click "View Source" you should see something close to the following at the position in the page where you have the object HTML:
<object id="FlashObj" name="FlashObj" runat="server" classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0" width="550" height="400" > <param name="movie" value="formatTe st.swf"> <param name="quality" value="high"> <param name="dynamic_p rop" value="the value!"></object>
-- Dave Sexton dave@www..jwaon line..com ----------------------------------------------------------------------- "Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message news:3F******** *************** ***********@mic rosoft.com... > Dave, > > What I ultimately want to do is set a param value or pass a value into this > shockwave object on page load. The value is dynamic. Do you have > suggestions on an alternate approach? > > Thanks for all your help with this. > > -Keith > > "Dave" wrote: > >> > [i] declared in the code behind the >> > object as a generic html control, however I could not cast it to the >> > ShockWaveObj (it was a compile error). >> >> This is because ShockWaveObj does not derive from HtmlGenericCont rol. Also, you won't be able to create an instance of Flash >> on >> the >> server using the <object> tag because it doesn't derive from System.Web.UI.C ontrol. >> >> Are you attempting to interface with the Flash object on the web page? >> >> If you need to invoke methods on the client instance of the Flash object (on the web page), then use scripting. >> ActiveX uses <param> tags as a means for setting properties declaratively for runtime on the client without having to use COM. >> Scripting will allow you to invoke methods on the Flash COM object after it is loaded into a web page. Just set the ID >> property >> of >> the object, and use it in scripting as if it is the ShockWaveObj you speak of. >> >> If you invoke methods on the Flash object in server-side code it is going to occur on the server. I just want to make sure >> that >> you >> understand the difference. I'm not sure that invoking methods on the server would affect the client runtime environment of a >> Flash >> object in the way that you expect it to. >> >> >> I hope it helps :) >> >> >> -- >> Dave Sexton >> dave@www..jwaon line..com >> ----------------------------------------------------------------------- >> "Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message news:93******** *************** ***********@mic rosoft.com... >> > Dave, >> > >> > Thanks for your reply. >> > >> > I actually need to access the functions and methods of the ShockWave Object >> > in the code behind. I, at some point had declared in the code behind the >> > object as a generic html control, however I could not cast it to the >> > ShockWaveObj (it was a compile error). Do you have any other suggestions? >> > >> > Again, thanks for your help. >> > >> > -Keith >> > >> > >> > "Dave" wrote: >> > >> >> If you are only attempting to add <param> tags within the object tag, then there is no need to use a Flash object in the >> >> code >> >> behind. Just use an HtmlGeneric control and add the <param> tags as sub controls of type LiteralControl. >> >> >> >> GL >> >> >> >> -- >> >> Dave Sexton >> >> dave@www..jwaon line..com >> >> ----------------------------------------------------------------------- >> >> "Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message >> >> news:1C******** *************** ***********@mic rosoft.com... >> >> > Hello, >> >> > >> >> > I am trying to reference a Shockwave Flash Object on a vb code behind page >> >> > in an ASP.NET project and I receive the following error: >> >> > >> >> > Guid should contain 32 digits with 4 dashes >> >> > (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). >> >> > >> >> > On the aspx page I have the object tag as follows: >> >> > >> >> > <object id="FlashObj" name="FlashObj" runat="server" >> >> > classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" >> >> > codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0" width="550" height="400" >> >> > VIEWASTEXT> >> >> > <param name="movie" value="formatTe st.swf"> >> >> > <param name="quality" value="high"> >> >> > <embed src="formatTest .swf" quality="high" >> >> > pluginspage="ht tp://www.macromedia. com/go/getflashplayer" >> >> > type="applicati on/x-shockwave-flash" width="550" >> >> > height="400"></embed></object> >> >> > >> >> > On the code behind page I have: >> >> > >> >> > Protected WithEvents FlashObj As ShockwaveFlashO bjects.Shockwav eFlashClass >> >> > >> >> > and then try to use the obeject in the following manner (on page load): >> >> > >> >> > FlashObj.SetVar iable("_root.te stVar", "testvalue" ) >> >> > >> >> > Any suggestions on what I'm doing wrong, or a better way to 'talk' back and >> >> > forth between .NET and Flash? >> >> > >> >> > Thank you very much for your time. >> >> > >> >> > Sincerely, >> >> > >> >> > Keith >> >> > >> >> > >> >> > >> >> > >> >> >> >> >> >> >> >> >>
I would recommend that you code against the flash object on the client (using scripting). You'll have to look into scripting
against the flash COM object... I'm sure it can be done using JavaScript or VBScript.
Handle the onclick event in the browser (no post-back) using scripting for the "button" you speak of and then "talk" to flash and do
what's required by your app. Again, you'll have to research how you can communicate with Flash via scripting.
--
Dave Sexton dave@www..jwaon line..com
-----------------------------------------------------------------------
"Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message news:D1******** *************** ***********@mic rosoft.com... Dave,
That works just fine, thanks!
Now, the next level is, I need to be able to pass/set a variable to this object when a user clicks a button. Is this possible? Rather, is it possible to do this before the value the user entered in the flash object is cleared out on the page reload?
-Keith
"Dave" wrote:
I made a test web page to try out my solution and was supprised to find that I had the same error as you. To solve the GUID error, you'll see the problem in the design view of the page that contains the object tag. Open it in design view, and check out the properties window for the object itself. Notice the Clsid property in the window appears as:
clsid:clsid:D27 CDB6E-AE6D-11cf-96B8-444553540000
This is obviously invalid.
Apparrently since the designer shows objects at design time, the "object" tag is a special tag that is parsed immediately and cannot be ran on the server as an object. This means you can't use runat="server". Here is a different solution, although sloppy it will do the trick:
Instead of adding an object tag to the HTML, add the following:
<asp:PlaceHolde r Runat="server" ID="FlashObj" EnableViewState ="False"></asp:PlaceHolder >
Open the form in the designer so that it creates a declaration for the placeholder control in the code-behind, or enter it manually:
protected System.Web.UI.W ebControls.Plac eHolder FlashObj;
Add this code into your Page_Load event handler:
HtmlGenericCont rol flash = new HtmlGenericCont rol("OBJECT"); flash.Attribute s["clsid"] = "clsid:D27C DB6E-AE6D-11cf-96B8-444553540000"; flash.Attribute s["codebase"] = "http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0"; flash.Attribute s["width"] = "550"; flash.Attribute s["height"] = "400";
HtmlGenericCont rol param = new HtmlGenericCont rol("PARAM"); param.Attribute s["name"] = "movie"; param.Attribute s["value"] = "formatTest.swf "; flash.Controls. Add(param);
param = new HtmlGenericCont rol("PARAM"); param.Attribute s["name"] = "quality"; param.Attribute s["value"] = "high"; flash.Controls. Add(param);
LiteralControl embed = new LiteralControl( @" <embed src=""formatTes t.swf"" quality=""high" " pluginspage=""h ttp://www.macromedia. com/go/getflashplayer" " type=""applicat ion/x-shockwave-flash"" width=""550"" height=""400""> </embed> ");
flash.Controls. Add(embed);
FlashObj.Contro ls.Add(flash);
As you can see, you may now add as many parameters as you would like to, and the designer will not change the state of your HTML. I tested this implementation and it worked for me.
-- Dave Sexton dave@www..jwaon line..com ----------------------------------------------------------------------- "Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message news:5F******** *************** ***********@mic rosoft.com... > Dave, > > That solution makes sense to me, however, I still receive the GUID error > anytime I try to put the runat='server' tag on the object. If I take that > tag off, then I get a object reference not set to an instance of an object > (as one would expect trying to a reference an object on the codebhind that > does not have a runat='server' tag). Do you have any ideas on what causes > the guid error? > > -Keith > > "Dave" wrote: > >> Review my original post which I believe addresses your need. >> >> I will add to my original post by saying that the value you pass in may be dynamic, since it can be calculated on the server >> side >> and emitted as HTML using the basic control implementation: >> >> Having the following HTML... >> >> <object id="FlashObj" name="FlashObj" runat="server" >> classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" >> codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0" >> width="550" height="400" > >> <param name="movie" value="formatTe st.swf"> >> <param name="quality" value="high"> >> </object> >> >> ....switch to Design View and VS.NET will add a property in the code behind for you. It will probably be Typed as >> HtmlGenericCont rol: >> >> private void System.Web.UI.H tmlControls.Htm lGenericControl FlashObj; >> >> Now, you can do the following in the code-behind: >> >> protected virtual void OnLoad(EventArg s e) >> { >> base.OnLoad(e); >> >> HtmlGenericCont rol param = new HtmlGenericCont rol("PARAM"); >> FlashObj.Contro ls.Add(param); >> >> param.Attribute s["name"] = "dynamic_pr op"; >> param.Attribute s["value"] = "the value!"; >> } >> >> >> When you compile this code and view it in a browser, if you click "View Source" you should see something close to the >> following >> at >> the position in the page where you have the object HTML: >> >> <object id="FlashObj" name="FlashObj" runat="server" >> classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" >> codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0" >> width="550" height="400" > >> <param name="movie" value="formatTe st.swf"> >> <param name="quality" value="high"> >> <param name="dynamic_p rop" value="the value!"></object> >> >> >> -- >> Dave Sexton >> dave@www..jwaon line..com >> ----------------------------------------------------------------------- >> "Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message news:3F******** *************** ***********@mic rosoft.com... >> > Dave, >> > >> > What I ultimately want to do is set a param value or pass a value into this >> > shockwave object on page load. The value is dynamic. Do you have >> > suggestions on an alternate approach? >> > >> > Thanks for all your help with this. >> > >> > -Keith >> > >> > "Dave" wrote: >> > >> >> > [i] declared in the code behind the >> >> > object as a generic html control, however I could not cast it to the >> >> > ShockWaveObj (it was a compile error). >> >> >> >> This is because ShockWaveObj does not derive from HtmlGenericCont rol. Also, you won't be able to create an instance of >> >> Flash >> >> on >> >> the >> >> server using the <object> tag because it doesn't derive from System.Web.UI.C ontrol. >> >> >> >> Are you attempting to interface with the Flash object on the web page? >> >> >> >> If you need to invoke methods on the client instance of the Flash object (on the web page), then use scripting. >> >> ActiveX uses <param> tags as a means for setting properties declaratively for runtime on the client without having to use >> >> COM. >> >> Scripting will allow you to invoke methods on the Flash COM object after it is loaded into a web page. Just set the ID >> >> property >> >> of >> >> the object, and use it in scripting as if it is the ShockWaveObj you speak of. >> >> >> >> If you invoke methods on the Flash object in server-side code it is going to occur on the server. I just want to make sure >> >> that >> >> you >> >> understand the difference. I'm not sure that invoking methods on the server would affect the client runtime environment of >> >> a >> >> Flash >> >> object in the way that you expect it to. >> >> >> >> >> >> I hope it helps :) >> >> >> >> >> >> -- >> >> Dave Sexton >> >> dave@www..jwaon line..com >> >> ----------------------------------------------------------------------- >> >> "Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message >> >> news:93******** *************** ***********@mic rosoft.com... >> >> > Dave, >> >> > >> >> > Thanks for your reply. >> >> > >> >> > I actually need to access the functions and methods of the ShockWave Object >> >> > in the code behind. I, at some point had declared in the code behind the >> >> > object as a generic html control, however I could not cast it to the >> >> > ShockWaveObj (it was a compile error). Do you have any other suggestions? >> >> > >> >> > Again, thanks for your help. >> >> > >> >> > -Keith >> >> > >> >> > >> >> > "Dave" wrote: >> >> > >> >> >> If you are only attempting to add <param> tags within the object tag, then there is no need to use a Flash object in the >> >> >> code >> >> >> behind. Just use an HtmlGeneric control and add the <param> tags as sub controls of type LiteralControl. >> >> >> >> >> >> GL >> >> >> >> >> >> -- >> >> >> Dave Sexton >> >> >> dave@www..jwaon line..com >> >> >> ----------------------------------------------------------------------- >> >> >> "Keith Rowe" <Ke*******@disc ussions.microso ft.com> wrote in message >> >> >> news:1C******** *************** ***********@mic rosoft.com... >> >> >> > Hello, >> >> >> > >> >> >> > I am trying to reference a Shockwave Flash Object on a vb code behind page >> >> >> > in an ASP.NET project and I receive the following error: >> >> >> > >> >> >> > Guid should contain 32 digits with 4 dashes >> >> >> > (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx). >> >> >> > >> >> >> > On the aspx page I have the object tag as follows: >> >> >> > >> >> >> > <object id="FlashObj" name="FlashObj" runat="server" >> >> >> > classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" >> >> >> > codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=6,0,29,0" width="550" >> >> >> > height="400" >> >> >> > VIEWASTEXT> >> >> >> > <param name="movie" value="formatTe st.swf"> >> >> >> > <param name="quality" value="high"> >> >> >> > <embed src="formatTest .swf" quality="high" >> >> >> > pluginspage="ht tp://www.macromedia. com/go/getflashplayer" >> >> >> > type="applicati on/x-shockwave-flash" width="550" >> >> >> > height="400"></embed></object> >> >> >> > >> >> >> > On the code behind page I have: >> >> >> > >> >> >> > Protected WithEvents FlashObj As ShockwaveFlashO bjects.Shockwav eFlashClass >> >> >> > >> >> >> > and then try to use the obeject in the following manner (on page load): >> >> >> > >> >> >> > FlashObj.SetVar iable("_root.te stVar", "testvalue" ) >> >> >> > >> >> >> > Any suggestions on what I'm doing wrong, or a better way to 'talk' back and >> >> >> > forth between .NET and Flash? >> >> >> > >> >> >> > Thank you very much for your time. >> >> >> > >> >> >> > Sincerely, >> >> >> > >> >> >> > Keith >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Maansi Sanghi |
last post by:
Hi everyone,
Please excuse this basic question.
(1) I have created a Setup and Deployment project and one of the dialog
boxes uses a shockwave flash object
(2) I am using Visual Studio .NET 7.1
Problem : The "Movie" property of the ShockWaveFlash object only accepts an
absolute path like "C:\somefile.swf".
|
by: Darren |
last post by:
Hi Groups,
Simple Task: Embed flash/shockwave swf into an aspx page.
Problem: Visual Studio does not recognize attributes: pluginspage,
quality, or type.
Generates msg: Could not find any attribute 'pluginspage' of element
'embed'.
|
by: news.microsoft.com |
last post by:
Using::
VB .Net 2002
I keep getting errors when running a compiled form with a shockwaveflash
object on it (works fine when I run it within the development environment.
I was using the ActiveX component that came with Flash MX. I now notice that
when I try to put a flash object even in a Word doc, I also get an error.
|
by: Keith Rowe |
last post by:
Hello,
I am trying to reference a Shockwave Flash Object on a vb code behind page
in an ASP.NET project and I receive the following error:
Guid should contain 32 digits with 4 dashes
(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
On the aspx page I have the object tag as follows:
|
by: rwakelan |
last post by:
I am having a strange problem with the shockwave flash object (look at
rwakelan.googlepages.com/flash.html to find out how to get it in a
project). The easiest way to recreate the error is to:
1. Create a new project.
2. Add a custom control.
2a. Inside that custom control add a tab control.
2b. Add the shockwave object to the tab page.
2c. Set up the shockwave object with a movie. It will work fine
here.
| |
by: UJ |
last post by:
I have a program that uses the Shockwave Flash Objects
(ShockwaveFlashObjects) to display a SWF. Everything works fine. When IE7 is
installed on the machine, suddenly we get an 'Invalid char line 2, char 1'
error on the SWF file. If we load the SWF file in IE it works fine. If we
uninstall IE7 and go back to 6, it works fine.
Any thoughts?
TIA - Jeff.
|
by: wbosw |
last post by:
Shockwave Flash Object Com Component
--------------------------------------------------------------------------------
I'm trying to import the Shockwave Flash Object from the Com Component Toolbox items. I have placed the Shockwave Flash Object and the Shockwave ActiveX Control into the toolbox, but when I place it on the Windows form I receive a messagebox stating:
failed to import the ActiveX control. Please ensure it is properly...
|
by: kimiraikkonen |
last post by:
Hi,
First i faced that bug in VB.NET 2005 then saw the "same" in Visual
C# .NET 2005. If you try to insert a "shockwave flash object" to your
project you get error message. The shortest solution is to rebuild
project although error exists. Then it MUST go away, at least it
worked in VB.NET 05.
I'm trying to apply the same solution for VC# .net 2005, i manage the
insert object without error (after rebuilded) but i cannot compile &
run...
|
by: dream party |
last post by:
Inserting a Flash (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the template. However, I did not understand some parameters totally in the HTML tag. These days when I was surfing the Internet I have found some comprehensive introduction to these two tags. I read it and conclude it with my own words; I think it will be useful to us, so I...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |