473,587 Members | 2,321 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

on(release) jump current frame with programming

Fary4u
273 Contributor
Hi

hope anybody sort this problem i've got
-> progress bar which control with the coding & it's jumps into time line.
what i would like to do
-> on the same time it's jump into the particular frame too

Expand|Select|Wrap|Line Numbers
  1. if assume 
  2.  -> 30 Sec = 750 frames
  3.  -> 1 Sec = 25 frame
  4.  -> current time display ( var totalTimeText )
  5.  
progress bar coding

Expand|Select|Wrap|Line Numbers
  1. mc_progress.mc_buff.onPress = function() {
  2.     xpos = mc_progress._xmouse;
  3.     percent = Math.round(xpos/mc_progress._width*100);
  4.     seekTime = percent/100*FLVduration;
  5.     seekTime = Math.round(seekTime*100)/100;
  6.     stream_ns.seek(seekTime);
  7. //    gotoAndPlay(_currentframe(totalTimeText*25);
  8. };
only problem with last code which seems to jump into 25 frame
after checking time ?
Aug 26 '09 #1
1 2631
Fary4u
273 Contributor
right solution is

gotoAndPlay(_cu rrentframe+Numb er(totalTimeTex t)*25 );

: )
Aug 27 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
3141
by: Jun | last post by:
How can I catch onMouseDown event on a frame/frameset? When I right mouse click at the border area of a frame, I can still get the Window's standard popup menu. How can I catch the mouse click to pop up my own menu when use click at the border? thanks
10
2683
by: Ruben Hoste | last post by:
Hello, I'm currently looking for more information on Genetic Algorithms and more specifficaly on how to program them in Java or C++. This is all concerning my thesis. A lot of general information about GA's, what they are and how they generally work I already found on the web, but I'm looking for some more information on how to actually...
1
1583
by: matthewemiclea | last post by:
I have a subform, where in the "on current" event, I display code that is supposed to recognize which record I am pointing to, and then display more specific info in another subform based on that one record that I have highlighted. Example.... you point to ID Number: 1111 in the top subform.... all specific info for ID Number: 1111 will...
10
2692
by: Brian Conway | last post by:
I have no idea what is going on. I have a Login screen where someone types in their login information and this populates a datagrid based off of the login. Works great in debug and test through VS, however, when I change to release and put it out on the web it fails giving me the following error message The underlying connection was...
3
2751
by: RR | last post by:
I have a button on a form (form A) that opens another form. The form that opens (form B) has a listbox that is populated with a call to a function in the "on current" event. When form B with the listbox has a query listed as the data source, it works fine. In this case, the button on form A sets the record source for form B to one of...
5
6976
by: christianlott1 | last post by:
I admit my form is pretty complex and may need a total overhaul - I have two subforms synchronized on a form through an unbound text box. When I enter a new record in the second subform it used to complain about nulls and then about 'can't repeat an index'. To solve this I wrote code on the main form's subform enter event (I'm surprised I...
1
3216
by: Harry2007 | last post by:
Could somebody help to rectify why my subform, even though has successfully acquired focus while being called from the main form but does not invoke the On-Current (sub-form's) event. This is because I have created a code to populate data as well as to re-assign unbound option groups. What I have done: I have set subform's control's GotFocus...
0
991
by: Kiran | last post by:
All, I am currently in SOA based platform Services developement team. Could any one of you lead me into books on "Programming C++ (Design/Coding) for high performance systems." Many Thanks in advance, Regards, kiran
0
1580
by: Nariban Barkan | last post by:
Hi All, In my c# project, i use Microsoft.MSHTML.Dll as reference. It works perfectly fine on the development machine, but on the release machines that are in production use we gets error when user try to load a windows form that uses this reference. the error message is: ****************** System.Reflection.TargetInvocationException:...
0
7918
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8206
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8340
jinu1996
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...
1
7967
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...
0
6621
agi2029
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...
0
5392
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...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3875
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1185
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.