Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-24-2009, 08:17 AM
Member
 
Join Date: Nov 2009
Posts: 4
Rep Power: 0
xclaim is on a distinguished road
Default how to stop/exit the mediabox JAVAFX
hi
may i know how to exit the mediabox?
for example i create a group inside that is the mediabox
but when i click the close button(custom button) it will go to the other group
and thus exit the mediabox.
current situation is that when i click the close button,
it will continue playing. or it will pause when i code it mediabox.paused();

this is my code
var btnCloseDetail: CustomButton = CustomButton {
btnNormal:"{_DIR_}closedetail.png"
fitWidth: 78
x: (Screen.primary.visualBounds.width - 80) as Integer;
y: (Screen.primary.visualBounds.width - (Screen.primary.visualBounds.width - 30)) as Integer;
visible:false

onMousePressed: function(e: MouseEvent) {
detailWind.opacity = 0;
exitAppsBtn.visible=true;
btnCloseDetail.visible = false;

mediaBox.pause();
delete mediaBox from detailPage.content;

navBtnGrp.disable = false;
detailWindTransition.play();
pageNode = Constant.RESULT_PAGE;
}
}

var mediaBox:MediaBox;
function playVideo(){
delete detailPage.content;
insert btnCloseDetail into detailPage.content;


var media = "file:///C:/A.flv";
mediaBox = MediaBox {
// your media(video/audio) source and information
// Only mediaSource is the required variable. All others are optional.
mediaSource: media
mediaTitle: "Big Buck Bunny"
mediaDescription: "A well-tempered rabbit finds his day..."

// controls the visibility of mediaTitle/mediaDescription
showMediaInfo: true

// the position and size of the media on screen
translateX: 300
translateY: 300
width: 640
height: 360

// make the movie play as soon as it's loaded
autoPlay: true

// media controlbar height at the bottom of the media view
mediaControlBarHeight: 25

// some examples of function variables to interact with outside
onEndOfMedia: function() {

}
onMouseClicked: function(me) {
}
}
insert mediaBox into detailPage.content;
}
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 11-25-2009, 07:01 PM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,523
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
For me this is not a Java code, this is a JavaScript code. This is not a JS forum. It's better to ask your question in JS forum.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 11-26-2009, 03:33 AM
Member
 
Join Date: Nov 2009
Posts: 4
Rep Power: 0
xclaim is on a distinguished road
Default
this is a javafx coding
by the way i have solve it already
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
JavaFX not able to read images ajeeb NetBeans 4 02-16-2010 04:16 PM
JavaFX Script and JavaFX Mobile levent Java Announcements 1 01-27-2010 05:48 PM
[SOLVED] How to exit the program by typing "exit"? Laythe New To Java 6 08-19-2009 09:32 PM
Indentation Size Reset While Coding JavaFX JDCAce NetBeans 0 10-06-2008 10:28 PM
Lobo Browser 0.98 - Now With JavaFX Support lobochief Java Announcements 0 03-10-2008 04:00 PM


All times are GMT +2. The time now is 10:28 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org