|
ya i tried that but i want to show the second clip at the end of first clip. I am unable to find out how can I handle it? is there is any event occures at the end of clip or video?
-- modified at 5:08 Tuesday 24th July, 2007
Pravin
|
|
|
|
|
Well, the only way that I can think (off the top of my head) to do this would be to use javascript to play the next movie in a sequence after a period of time. Assume that you've given the Flash object an id of "mySecondMovie", you could do this to trigger the movie:
<SCRIPT LANGUAGE = "JavaScript">
<!--
var secs
var id = null
var isTimerRunning = false
var delay = 1000
function InitializeTimer()
{
secs = 15
StopTimer()
StartTimer()
}
function StopTimer()
{
if(isTimerRunning)
clearTimeout(id)
isTimerRunning = false
}
function StartTimer()
{
if (secs==0)
{
StopTimer()
playMySecondMovie()
}
else
{
self.status = secs
secs = secs - 1
isTimerRunning = true
id = self.setTimeout("StartTimer()", delay)
}
}
function playMySecondMovie()
{
if (document.mySecondMovie)
{
if (document.mySecondMovie.Play)
document.mySecondMovie.Play();
}
}
</SCRIPT> Then, in your body onload, you would call InitializeTimer .
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Thanks for it. but how can i calculate the length of the first movie. Is there any event occures at the end of Video clip? so that I can check it?
Pravin
|
|
|
|
|
Not that I'm aware of. Mind you, if you have the flash itself, you could always call the javascript to play the next movie using an ActionScript command:
getUrl("javascript:playNextPage();") Then, you would implement the playNextPage javascript in your page to play the next movie as outlined above.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Ok Thanks.
I hav one more doubt.
I hav created a object in html tags of my application. Now i want to access that object in my code behind page.
Can u plz tell me how can i access that object and properties of it in code behind page?
Pravin
|
|
|
|
|
Mark the object with runat="server" .
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Sorry but it didn't worked. I'll show u my code.
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="Video.WebForm1" %>
<title>WebForm1
<object id="Player" runat="server" width="425" height="350" viewastext=""><param name="movie" value="http://www.youtube.com/v/5Uahw5BU9N8" /><param name="wmode" value="transparent" /><embed src="http://www.youtube.com/v/5Uahw5BU9N8" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350" />
Now, Player is the object id of object i hav created in Html tags. I want this object to be accessed in Code behind, like Textbox or Label or Button etc objects can be accessed there.
Pravin
|
|
|
|
|
I'm not sure what you are trying to achieve here - the flash is a clientside object. What exactly do you hope to achieve?
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi,
Im hoping someone here can help...
I am involved in a project that needs to perform some image analysis on an image to interpret results. The functions I need are as follows: scaling image, image rotation and finally analysis at a pixel level. We are running on WinCE and coding with C#. I am able to find good image processing libraries for WinXP which unfortunately don't work on WinCE due to the cut down functionality in Compact Framework 2.0.
I haven't been able to find a WinCE compliant libraries. Maybe someone here knows of one? Any other suggestions? Or is my best bet writing something myself? I see a few posts on accessing pixels and image manipulation using unsafe methods.
Hoping for some leads...
Thanks.
Regards,
Myron
|
|
|
|
|
If you have access to unsafe code, try my image processing code as a starting point. If not, then you're stuck with the getpixel method, which is slower.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi..
Im using IFrame as my body in my aspx page to generate Emails. To edit IFrame i just wrote the following code in Javascript..
IFrame1.document.designMode="On";
After this line is executed the Iframe is editable and i can type any text inside iframe.
Now Im using VBScript to create a word application as an object for spell checking. In this case I need to pass the Text of the iframe as a parameter value to VBScript funtion i wrote.
The issue is i cant get the Value or text inside the IFrame using VBScript.
i wrote the above code in VBScript Function but it is not getting the text inside the iframe.
set Ctrl = document.getElementById("IFrame1")
MsgBox(Ctrl.innerText)
How to get the value or innertext of the iframe using vbscript or the other way is how can i create a word as an object and using that object how can i spell check in Javascript?
pl. help me in this issue. im working for this for the past 1 week. its urgent.
Thanks in advance
Selvaganesh.G
|
|
|
|
|
Does this have anything to do with C#?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Sorry to mail in the C# Forum. But unfortunately when i searched for Scripts Forum, i didnt get any. since my webpage code behind file is designed in c# i just posted my query in the c#. sorry again. call u pl help me in this above thing?
Thanks in advance..
Selvaganesh.G
|
|
|
|
|
SelvaGanesh G wrote: unfortunately when i searched for Scripts Forum
The web development forum maybe a better bet.
SelvaGanesh G wrote: help me in this above thing?
Sorry, VBScript isn't a strong point with me.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Hi,
Can anyone tell me wat will be the return type if i am returning a interface?
i.e. My code has a function which has to return an interface..so wat should be my return type for that function.
Thanx,
SRUJANA
|
|
|
|
|
I don't get the question. If you need to return an interface, then that interface is the return type. So, if you want to return an IDisposable, then IDisposable is your return type.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: I don't get the question.
You aren't the only one. I couldn't figure out exactly was being asked. Must be getting tired here
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
You can return an object which impelement interface.
marcin
|
|
|
|
|
The return type will be your interface, as already said. The underlying object should be one that implements your interface, directly or indirectly.
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
Hi,
Anyways thank u all. I guess my question was not clear. I found the solution to the problem.
Thank you,
SRUJANA
|
|
|
|
|
Hi Fellows:
I am facing an error of access voilation while running a piece of code with Unsafe Context...I am developing steganographic application.And I want to embedd DataImage into Cover image using LSB method with the help of Lockbits() and UnLockBits () methos..
But when I compile the code it is compiled & Build succesfully.But at run time the app. frozes and with the following error message for the statement.
<code>byte bb=ptr1[0] //where ptr1 is byte type pointer that points to Scan0 ,i.e 1st byte of locked image array. </code>
<b>Error :AccessVoilationUnhandelled exception</b>
Plateform :Visual C# Express edition VS.Net 2.0,Win XP
<b>Error Message:</b>
AcessVoilation: attempt to read or write protected memory.This is the oftenindication that other memeory is currupt.
also I am thanfull to Chorrina John...who write very helpful articles on Steganography...I request If she is there please help & Supervise me in my project.
Waiting for ur good response...
Thanks
I am getting B.S. degree in Computer Science.And want to enhance career in Software development.
pineer programmer
|
|
|
|
|
Most likely cause - you're looking past the bits that contain the image, or you're looking past an individual scanline, not taking the stride value into account. You can read my image processing articles to see how you should iterate over the bits of an image.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi guys,
I am new to file operation in .NET.I read few articles on FileStream class.I know seek() method.But guys how can i insert some text say "xyz" at
2nd line and at 5th index.Example
File1.txt
---------
hello
billgates
how r u?
---------
output :
hello
billgxyzates
how r u?
Solution wud be appreciated.
Thank u in advance
Regards
Chintan
www.visharadsoft.com
(Nothing is so purify as KNOWLEDGE)
|
|
|
|
|
You can't insert text. You need to read the whole file, insert the text in memory, and write it out again. There may be a helper method that does that, but under the hood, that's what it will do.
If there is a helper method, it will be a File. method ( static on the File class )
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
hi, anyone can advice me on how to add a new rectangle or other shapes on a custom control.
How to ensure that the shape selected(mayb using a button with the specified shape name) is added/drawn on the custom control AND that the shape can be treated individually. For example, only the selected shape can be resize.
Please note that, there can be more than one shape that can be added into in the custom control by using the button.
|
|
|
|