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








Button Fails In Test Mode


My buttons are simple rollovers. They seem to work fine on the stage and the "goTo" actions also work on the stage when the buttons are enabled, however when the movie is tested the buttons are not recognized by the cursor nor do they execute their goTo actions?
I know it must be something simple and I'm going nuts trying to find it.
Could it be there is no "hit" area recognized since they are text only? but they are outlined(boxed) in blue on the stage and rollover fine?

This is the Output window in Test Mode:

Level #0: Frame=50
Button: Target="_level0.goto45"
Shape:
Movie Clip: Frame=14 Target="_level0.instance18"
Text: Value = "<"
Text: Value = "<"
Button: Target="_level0.goto58"
Movie Clip: Frame=0 Target="_level0.goto58.instance19"
Text: Value = "A"
Text:
Button: Target="_level0.goto64"
Movie Clip: Frame=0 Target="_level0.goto64.instance20"
Text: Value = "P"
Text:
Button: Target="_level0.goto70"
Movie Clip: Frame=0 Target="_level0.goto70.instance21"
Text: Value = "A"
Text:


Thanks for any ideas.




FlashKit > Flash Help > Flash MX
Posted on: 12-31-2002, 02:17 PM


View Complete Forum Thread with Replies

Sponsored Links:

(Authoring Mode-test Scene-test Movie )Different Results WHY?
(Authoring mode-test scene-test movie )Different results WHY?I will get mad working on a quiz for a month plz help: im working on quiz game -frame by frame- its 15 scenes each scene contain about 70 frames with 70 action script :go to and stop - go to and play - stop every thing is fine till scene No. 11 in the authoring mode when choose from control menue enable simple buttons - enable simple frame action : its working fine scripts executed fine but when going to test movie mode some scripts doesnt work WHY? what mistakes i have done? what should i do ? how can a void such a problem ? any suggestions PLZ??? Thanks in advanced

View Replies !    View Related
LoadVars Test Is Ok IE Fails
Hello,

I have a Flash movie that has a number of data entry Scenes and my idea is that as the user moves from Scene to Scene by pressing a button and I load up the properties of my LoadVars object with values from text boxes on each Scene.

Simply put:

Scene 1
======
_global.myHandler = new LoadVars();

Scene 2
======
stop();
field1.text = "goty";
myHandler.field2= "tuky";
field2.text = myHandler.field2;

Now when I play the swf in a browser, field1 contains "goty" as would be expected but field2 is empty. When I test using the Flash Test Movie function field1 and field2 both contain the values as expected.

Can anyone explain this?

Thanks
Roland

View Replies !    View Related
Pop Up Window-works In A Test Fails In To Site
hello
i tried to make this effect you can see here -
http://www.kirupa.com/developer/mx/centered_popup.htm
and even download that file and changed things in it so it would fit me.

still it works when i try it on my computer but after i've unploaded it to my site it's not working. can any one treats me as a complete idiot and tells me exactly what do i need to do

View Replies !    View Related
Tab In Test Movie Mode
Is it possible to check things like tab order and onSetFocus events in test movie mode? Or is a browser the only way?

View Replies !    View Related
Preloader Help..works In Test Mode Only...
ok heres the deal..i made a preloader that works fine when i test the movie in flash but when i play the swf it doesnt work. i also uploaded online to see if it would work, it doesnt work there either. the 1st frame has this code on it:

allBytes=_root.getBytesTotal();
getBytes=_root.getBytesLoaded();
percent=Math.round((getBytes/allBytes)*100);
digits.text=percent
if (Percent==100) {
gotoAndPlay(3);
}

the 2nd line has this code on it:

gotoAndPlay(1);

none of the graphics start until the third frame, please help me
thanks

View Replies !    View Related
Movie Pausing In Test Mode
Another strange one to me....

The movie is pausing when I test the movie after a few frames. This has not happened to me before..

Any suggestions...

PS- I do not have a stop(); action placed in the frame.

View Replies !    View Related
Exported Swf Not Same As In Test-movie Mode In Flash
Hi ,
I am not an expert flash user but have been making Flash movies and exporting them and placing them in Dreamweaver html pages, and previewing them succesfully for a long time with no problems.

Today i thought it was time to preview my latest work in Dreamweaver and not just under 'test movie' mode in Flash, just to check up on myself. For some reason, not all actions that work in test movie mode in Flash are working in preview mode in Dreamweaver.....ggrrrrrr

I wonder why this is. Could it be something to do with the fact that the actions that dont work are all related to variables. I am just getting the hang of variables and i've managed to acheive a lot of my goals, (even though im a long way off understanding how i exactly managed it) , but the thing is.....everything works perfectly and as i expected in Flash 'test movie' mode...............so shouldnt they all work then in Dreamweaver after being exported.

this is such a brick wall and i cant continue till i find out what im doing wrong, for fear of creating what i feel is a beautiful site that ends up being useless.
Thanks in advance of any ideas or solutions.

Cesca

PS. i am going to post this message under Flash discussion, i hope this isnt terrible nettiquette but im desperate......

View Replies !    View Related
Works In Test Mode (Ctrl + Enter) And Not In IE?
I have this swf that works in test mode (CTRL + Enter) but it doesn't work in Internet Explorer or in flash player.

I do have the latest version of flash player installed in my browser.

Any Ideas?

Thanks in advance,

Justin

View Replies !    View Related
Procedure Only Works Test Movie Mode
Hello;

I have this procedure which executes fine in test mode, but when I publish it does not play. No errors are generated, just does not play.

Can someone help me.

import flash.display.Loader;
import flash.display.LoaderInfo;
import flash.net.URLRequest;
import flash.events.Event;

var myLoader:Loader = new Loader();
var myUrlReq:URLRequest = new URLRequest("Prius.swf");
myLoader.load(myUrlReq);
myLoader.contentLoaderInfo.addEventListener(Event. COMPLETE, onLoaded);

function onLoaded(event:Event):void
{

holder_mc.x = 0;
holder_mc.y = 120;
holder_mc.addChild(myLoader.content);
play();
}

View Replies !    View Related
Works In Test Mode, Player Is Blank
I've just started a project in AS3 that displays properly in Test Mode, but when the .swf is run, the window is blank.
Here's the sequence of events in the main .as file:

1. Load an external XML file.
2. Populate an array with the XML data, randomize the array, then split it in two.
3. Call a function in another .as file to draw a triangle, put the Shape into a Sprite, add the Sprite to the Stage, and put a handler on the Sprite.
4. Call a function to create a TextField instance, and add it to the Stage.
5. Do some trace stuff with the Sprite handler (MOUSE_DOWN) for checking.

Grateful for any help with this. Code below.
-------------------------------------------------
package {
import flash.display.*;
import flash.events.*;
import flash.net.*;
import flash.utils.*;
import flash.text.*;
import RenderStage;
import NavButtons;

public class LoadWordList extends Sprite {

private var _wordsLoaded:XML;
private var _arrCount:int = -1;
private var _wordListArray:Array = new Array();
private var _btmHalfList:Array = new Array();
private var _topHalfList:Array = new Array();
private var _nextTri:Shape = new Shape();
private var s:Sprite = new Sprite();
private var _listPtr:int = 0;
private var _wordHolder:TextField;


// load the xml word list and call listener on completion
public function LoadWordList() {
var listLoader:URLLoader = new URLLoader();
listLoader.dataFormat = URLLoaderDataFormat.TEXT;
listLoader.addEventListener( Event.COMPLETE, populateWordListArray );
listLoader.load( new URLRequest( "wordlist.xml") );
}
// if load successful, populate array with loader data, then call function to split list
private function populateWordListArray( event:Event ):void {
try {
var wordList:XML = new XML( event.target.data );
for (var i:uint = 0; i < wordList.word.length(); i++) {
_wordListArray[i] = wordList.word[i];
}
randomSortthenSplitList();

} catch (e:TypeError) {
trace( "Check wordlist.xml for syntax" );
trace( e.message );
}
}
// randomize the word list
private function randomSort(a,b):Number {
return Math.round(Math.random() * 2) - 1;
}
// split the randomized list into two halves
private function randomSortthenSplitList() {
_wordListArray.sort(randomSort);
_btmHalfList = _wordListArray.slice(0, (Math.round(_wordListArray.length/2)));
_topHalfList = _wordListArray.slice(Math.round(_wordListArray.len gth/2), _wordListArray.length);
setNav();
}

//instantiate navigation button, register listener
private function setNav() {
var placeNextBtn:RenderStage = new RenderStage();
placeNextBtn.drawTri();
var nextTri = placeNextBtn.triangle;
//wordHolder.x = stage.stageWidth/2;
s.addChild(nextTri);
s.x = stage.stageWidth - _nextTri.width/2;
s.y = stage.stageHeight - _nextTri.height/2;
addChild(s);
s.addEventListener(MouseEvent.MOUSE_DOWN, nextTriClick);

// TEMP: text field to display image name
placeNextBtn.makeWordHolder();
_wordHolder = placeNextBtn.wordHolder;
_wordHolder.x = stage.stageWidth/2;
_wordHolder.y = 0;
addChild(_wordHolder);
}
// TODO: check for end of array and switch to second if reached
// call image display function
// call sound player function
internal function nextTriClick(e:MouseEvent):void {
_wordHolder.text = _btmHalfList[_listPtr];
var imgName:String = _btmHalfList[_listPtr] + ".gif";
trace(imgName);
// TODO: insert array length test here
_listPtr += 1;

}
}
}

View Replies !    View Related
Average Bit Rate For Cable/Dsl And T1 In Test Movie Mode
I would like to see the streaming for cable connection and a t1 line for when I test movies. I know you can customize the bit rate in flash in bytes per second but I do not know what it is for cable or a T1

If you know could you give me the average bit rate for each....
Thanks in Advance
Dave

View Replies !    View Related
Exported Swf Isnt Same As In Test-movie Mode In Flash :(
Hi ,
I am not an expert flash user but have been making Flash movies and exporting them and placing them in Dreamweaver html pages, and previewing them succesfully for a long time with no problems.
Today i thought it was time to preview my latest work in Dreamweaver and not just under 'test movie' mode in Flash, just to check up on myself. For some reason, not all actions that work in test movie mode in Flash are working in preview mode in Dreamweaver.....ggrrrrrr

I wonder why this is. Could it be something to do with the fact that the actions that dont work are all related to variables. I am just getting the hang of variables and i've managed to acheive a lot of my goals, (even though im a long way off understanding how i exactly managed it) , but the thing is.....everything works perfectly and as i expected in Flash 'test movie' mode...............so shouldnt they all work then in Dreamweaver after being exported.

this is such a brick wall and i cant continue till i find out what im doing wrong, for fear of creating what i feel is a beautiful site that ends up being useless.

Thanks in advance of any ideas or solutions.



Cesca

PS - i am also going to post this problem in Actionscript discussion, i hope this isnt against the forum rules but im desperate for some help........

View Replies !    View Related
Masks Work In Preview, Not In Test Movie Mode
Does anyone know a reason why a mask would work when i run the timeline (by hitting the enter button) but if i "test movie" the mask does not work?

is there a switch or something? i can't figure this out...

View Replies !    View Related
Flash CS3 Does Not Send Cookies In Test Movie Mode
I've posted this on the documents page but wanted post it here as well:

quote:Flash CS3 on Windows and Mac fails to pass along any cookies with requests when using "Test Movie" (LoadVars, LoadMovie, etc). Flash 8 on Windows would send cookies from Internet Explorer for a given domain.

This makes it next to impossible to debug swf files that pull dynamic data from a remote server which requires a cookie for authentication. Flashbug is the next best option but is still much less efficient than being able to run Test Movie.

Anyone else run into this problem or have a fix?

Livedocs Comment

Thanks!

Jaisen

View Replies !    View Related
Can You Tell Me What Code To Include..please Note In Test-mode Email Comes .
http://flashmove.com/forum/showthread.php?p=109861#post109861

same threat as above link....

Flash MX 2004
flash form go to confirm but email do not delivered ? This is online , In contrast in "test mode" flash form go to confirm but email get delivered successfully .... well ?

http://www.polis-index.com.cy/flash-lc/form-written2actionscript_content.html
go support > email form

stop();
var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();
sender.onRelease = function() {
senderLoad.theSubject = theSubject.text;
senderLoad.theEmail = theEmail.text;
senderLoad.theMessage = theMessage.text;
senderLoad.sendAndLoad("

View Replies !    View Related
Url's Not Opening In "test Movie" Mode.
Howdy, I installed Netscape (sloppily) for testing purposes and it hijacked a lot of my file extensions. I have since removed it, but now the "test movie" mode isn't opening Url's (from a button, for example) in a default browser, or anywhere.

Anyone know where I should be looking to get that working again?

(Flash MX 2004 pro)

View Replies !    View Related
Button Fails In Flash 8
I have created a booking form in Flash8.
The SUBMIT button has the following action script


on (release){

submitAttendees();

}


It calls a function "submitattendees" defined in an actionscript file booking.as which follows

The SUBMIT button fails to work however. Can anyone advise ?

My calendar doesn't work either but that's another story.

















Attach Code

var startDate : Date = new Date(2007, 6, 16);
var now_date:Date = new Date();
if (startDate < now_date) {
startDate = now_date;
}

var summaryArray:Array = [];
var dateArray: Array = [];
var allowAdd : Boolean = true;
var noSportMsg : String = "You haven't selected any sports or dates from the calenders! Please add at least one date for at least one sport and then try again.";
var noNameMsg : String = "You must enter all the details for the child before you can continue. Please add the information and try again."
this.allowAdd = true;
_global.attendeeCount = 0;

// define loaders
var bookingParamsR:LoadVars = new LoadVars();
var bookingParamsC:LoadVars = new LoadVars();
var bookingParamsF:LoadVars = new LoadVars();
var submitBooking:LoadVars = new LoadVars();
calCricket.onDateClick = function(mc,eobj,robj){
//trace(_global.mServerURL + "?sysFlashAction=getTotalPerDay,getCricketersPerDay&queryDates=" + this.formatDate(mc.date, "YYYY-mm-dd"));
trace("day state=" + eobj.state);
if(eobj.state=="booked"){
theInfo="This date has been booked for another sport!"
return;
}
if(eobj.state=="full"){
theInfo="This date is fully booked!";
return;
}
if(eobj.value=="selected"){

if(getDayCount()>_global.mMaxNumberOfDays){

eobj.value="default";
eobj.setDayValue(mc.date, "");
theInfo = "You have booked the maximum number of days per child.";
return;
}
disableDate("football", mc.date);
disableDate("rugby", mc.date);
}
else{
enableDate("football", mc.date);
enableDate("rugby", mc.date);
}
bookingParamsC.load(_global.mServerURL + "?sysFlashAction=getTotalPerDay,getCricketersPerDay&queryDates=" + this.formatDate(mc.date, "YYYY-mm-dd"), this);
}

//rugby calander

calRugby.onDateClick = function(mc,eobj,robj){
//trace(_global.mServerURL + "?sysFlashAction=getTotalPerDay,getCricketersPerDay&queryDates=" + this.formatDate(mc.date, "YYYY-mm-dd"));
trace("day state=" + eobj.state);
if(eobj.state=="booked"){
theInfo="This date has been booked for another sport!"
return;
}
if(eobj.state=="full"){
theInfo="This date is fully booked!";
return;
}
if(eobj.value=="selected"){

if(getDayCount()>_global.mMaxNumberOfDays){

eobj.value="default";
eobj.setDayValue(mc.date, "");
theInfo = "You have booked the maximum number of days per child.";
return;
}
disableDate("cricket", mc.date);
disableDate("football", mc.date);
}
else{
enableDate("cricket", mc.date);
enableDate("football", mc.date);
}
trace(_global.mServerURL + "?sysFlashAction=getTotalPerDay,getRugbyPerDay&queryDates=" + this.formatDate(mc.date, "YYYY-mm-dd"));
bookingParamsR.load(_global.mServerURL + "?sysFlashAction=getTotalPerDay,getRugbyPerDay&queryDates=" + this.formatDate(mc.date, "YYYY-mm-dd"), this);
}
// football caladner
calFootball.onDateClick = function(mc,eobj,robj){
//trace(_global.mServerURL + "?sysFlashAction=getTotalPerDay,getCricketersPerDay&queryDates=" + this.formatDate(mc.date, "YYYY-mm-dd"));
trace("football day state=" + eobj.state);
if(eobj.state=="booked"){
theInfo="This date has been booked for another sport!"
return;
}
if(eobj.state=="full"){
theInfo="This date is fully booked!";
return;
}
if(eobj.value=="selected"){

if(getDayCount()>_global.mMaxNumberOfDays){

eobj.value="default";
eobj.setDayValue(mc.date, "");
theInfo = "You have booked the maximum number of days per child.";
return;
}
disableDate("cricket", mc.date);
disableDate("rugby", mc.date);
}
else{
enableDate("cricket", mc.date);
enableDate("rugby", mc.date);
}
bookingParamsF.load(_global.mServerURL + "?sysFlashAction=getTotalPerDay,getFootballersPerDay&queryDates=" + this.formatDate(mc.date, "YYYY-mm-dd"), this);
}


bookingParamsC.onLoad = function(success:Boolean) {
if (success) {

if (this.refresh) {
//calCricket.setXML("CBookingDates.xml");
}
if(this.totals<_global.mChildrenPerDay+1){
// not over subscribed so date ok

}
else{
disableDate("all", this.selectedDate);
}
trace((this.countCricket<_global.mCricketersPerDay+1));
if (this.countCricket<_global.mCricketersPerDay+1){
// ok add to attendee.
_global.currentAttendee.sportDetail = addSportSummary();
_global.currentAttendee.sportData = addSportData();
if(_global.currentAttendee.sportData){
allowAdd = true;
}
}
else{
disableDate("cricket", this.selectedDate);
}
}
else {
trace("Error loading/parsing LoadVars.");
}
};

bookingParamsF.onLoad = function(success:Boolean) {
if (success) {

if (this.refresh) {
//calFootball.setXML("FBookingDates.xml");
}
if(this.totals<_global.mChildrenPerDay+1){
// not over subscribed so date ok

}
else{
disableDate("all", this.selectedDate);
}
trace((this.countFootball<_global.mFootballersPerDay+1));
if (this.countFootball<_global.mFootballersPerDay+1){
// ok add to attendee.
_global.currentAttendee.sportDetail = addSportSummary();
_global.currentAttendee.sportData = addSportData();
if(_global.currentAttendee.sportData){
allowAdd = true;
}
}
else{
disableDate("football", this.selectedDate);
}
}
else {
trace("Error loading/parsing LoadVars.");
}
};

bookingParamsR.onLoad = function(success:Boolean) {
if (success) {
trace("rugby loaded " + success);
if (this.refresh) {
//calRugby.setXML("RBookingDates.xml");
}
if(this.totals<_global.mChildrenPerDay+1){
// not over subscribed so date ok

}
else{
disableDate("all", this.selectedDate);
}
trace((this.countRugby<_global.mRugbyPersPerDay+1));
if (this.countRugby<_global.mRugbyPerDay+1){
// ok add to attendee.
_global.currentAttendee.sportDetail = addSportSummary();
_global.currentAttendee.sportData = addSportData();
if(_global.currentAttendee.sportData){
allowAdd = true;
}
}
else{
disableDate("rugby", this.selectedDate);
}
}
else {
trace("Error loading/parsing LoadVars.");
}
};

// init calanders

bookingParamsC.load(_global.mServerURL + "?sysFlashAction=loadxml&ctype=C", this);
bookingParamsF.load(_global.mServerURL + "?sysFlashAction=loadxml&ctype=F", this);
bookingParamsR.load(_global.mServerURL + "?sysFlashAction=loadxml&ctype=R", this);
// functions



function getNiceDate(theDate:Date):String {
return theDate.getDate() + "-" + getMonthAsString(theDate.getMonth()) + "-" + theDate.getFullYear();
}

function getMonthAsString(month:Number):String {
var monthNames_array:Array = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
return monthNames_array[month];
}

disableDate = function(theType, theDate){
trace("disbableDate");
if(theType=="all"){
calCricket.setDayState(theDate, "booked");
calFootball.setDayState(theDate, "booked");
calRugby.setDayState(theDate, "booked");
}
if(theType=="cricket"){

trace(calCricket.setDayState(theDate, "booked"));

}
if(theType=="football"){

calFootball.setDayState(theDate, "booked");
}
if(theType=="rugby"){
calRugby.setDayState(theDate, "booked");
}
}
enableDate = function(theType, theDate){

var cricketEvents = calCricket.getEvent(theDate);
var rugbyEvents = calRugby.getEvent(theDate);
var footballEvents = calFootball.getEvent(theDate);
trace("football state=" + footballEvents.state);

if(theType=="all"){
calCricket.setDayState(theDate, "");
calFootball.setDayState(theDate, "");
calRugby.setDayState(theDate, "");
}
if(theType=="cricket"){
calCricket.setDayState(theDate, "");
}
if(theType=="football"){
calFootball.setDayState(theDate, "");
}
if(theType=="rugby"){
calRugby.setDayState(theDate, "");
}
}
addSportSummary = function(){
var s = "";

if (calCricket.getSelected().length>0){
s = "Cricket - " + calCricket.getSelected("dd/mm").join(", ") + "
";
}
if (calRugby.getSelected().length){
s = s + "Rugby - " + calRugby.getSelected("dd/mm").join(", ")+ "
";
}
if (calFootball.getSelected().length){
s = s + "Football - " + calFootball.getSelected("dd/mm").join(", ")+ "
";
}
return s;
}
getDayCount = function(){
trace("getDayCount");
trace(calCricket.getSelected().length + calRugby.getSelected().length + calFootball.getSelected().length);
return calCricket.getSelected().length + calRugby.getSelected().length + calFootball.getSelected().length;

}
addSportData = function(){
var s = "";

if (calCricket.getSelected().length>0){
s = "Cricket:" + calCricket.getSelected("YYYY-mm-dd").join(",") + ";" ;
}
if (calRugby.getSelected().length){
s = s + "Rugby:" + calRugby.getSelected("YYYY-mm-dd").join(",") + ";" ;
}
if (calFootball.getSelected().length){
s = s + "Football:" + calFootball.getSelected("YYYY-mm-dd").join(",") + ";" ;
}
return s;
}

addNewAttendee=function(){

// clear fields
//this.currentAttendee = eval("this.summaryPanel.attendee" + _global.attendeeCount );
//_global.attendeeCount++
//return
if(_global.attendee.length==_global.mMaxChildrenPerBooking){
theInfo = "You have reached the maximum number of children for this booking."
allowAdd = false;
btnAddChild._visible=false;
return;
}

tblAttendee_FirstName.text ="" ;
tblAttendee_Surname.text ="";
tblAttendee_Age.selectedIndex=0;
tblAttendee_Gender.selectedIndex=0;
calFootball.setXML("Fbookingdates.xml");
calCricket.setXML("Cbookingdates.xml");
calRugby.setXML("Rbookingdates.xml");

summary = this.summaryPanel.attachMovie("movAttendee", "summary" + _global.attendeeCount, this.summaryPanel.getNextHighestDepth(),{firstName:"", Surname:"", Age:"", Gender:"",editing:true,index:_global.attendeeCount})
summary.attendeeDetail = summary.firstName + " " + summary.Surname;
summary.click=function(){
trace(this);
this.editing=true;
this.borderColor=0xCC3333;
}
if(_global.attendeeCount ==0 ){
//summary.btnDelete._visible=false;
}
summary._x = this.summaryPanel._x;
summary._y = _global.attendee.length * summary._height ;
//summary.sportDetail = this.addSportSummary();
_global.attendee.push(summary);
trace("add new and now attendee is " + _global.attendee.length);
_global.currentAttendee=summary;

_global.attendeeCount++

allowAdd = true;
}
makeEditable=function(obj){
trace (obj);
}
setAttendeeDetail = function(){

return tblAttendee_FirstName.text + " " + tblAttendee_Surname.text;

}
reposSummary = function(){
trace("respositioning");
for(var i=0;i<_global.attendee.length;i++){
trace("move " + _global.attendee[i] + " to " + (i * _global.attendee[i]._height) );
_global.attendee[i]._y = i * _global.attendee[i]._height ;
}
}
isComplete = function(){
for(i=0;i<_global.attendee.length;i++){
trace(i + "firstname=" + _global.attendee[i].Age);
if((_global.attendee[i].firstName!="") && (_global.attendee[i].Surname!="") && (_global.attendee[i].Age!="") && (_global.attendee[i].Gender!="") && (_global.attendee[i].sportData) ){

}
else{
trace(i + " is not complete");
return false;
}
}
return true;
}
getBookingData = function(){
var s = '';
for(i=0;i<_global.attendee.length;i++){
if(_global.attendee[i].sportData){
s = s + "FirstName:" + _global.attendee[i].firstName + ";Surname:" + _global.attendee[i].Surname + ";Age:" + _global.attendee[i].Age + ";Gender:" + _global.attendee[i].Gender + ";" + _global.attendee[i].sportData + "|";
}
}
return s;
}
submitAttendees = function(){
if(chkTOC.selected){
if (isComplete()){
/// submit dates
trace(getBookingData() );
submitBooking.load(_global.mServerURL + "?sysFlashAction=commitbookings&sysID=" + _global.parentId + "&thedata=" + getBookingData(), this);
}
else{
theInfo = "Please make sure all the attendee details are correct."
}
}
else{
theInfo = "Please aggree to the Terms and Conditions by ticking the box."
chkTOC.setFocus();
}

}

submitBooking.onLoad = function(success:Boolean) {
if (success) {
trace("rstatus " + this.rstatus);
if(this.rstatus && this.cstatus && this.fstatus){
_parent.gotoAndPlay("book_stage4");
theInfo = "Order Complete Booking Ref = BSC" + _global.parentId
}
}
else {
trace("Error loading/parsing LoadVars.");
}
};

























Edited: 06/25/2007 at 06:50:23 AM by GOBIMONEY

View Replies !    View Related
Button With Three Actions On Fails One Of Them
button with three actions on fails one of them
__________________________________________________ _
on (rollOver) {
setProperty ("_root.carfurnbusmc", _alpha, "40");
}
on (rollOut) {
setProperty ("_root.carfurnbusmc", _alpha, "100");
}
on (release) {
tellTarget ("_root.infomovieclip") {
gotoAndPlay (101);
}
}

__________________________________________________ _
A button is assigned with code above ;
it happens sometimes the condition on release fails ; that means
with only one click it does not cause the gotoAndPlay condition but
the two setProperty conditions works perfectly ;
I think too many actions on a button is not healthy ;
Is there a way to improve the code to perform safely the same actions ??

MMKT
nov 11th 2002




<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="250" height="50">
<param name=movie value="http://sites.uol.com.br/vazzola/mmktxtdance.swf">
<param name=quality value=high>
<embed src="http://sites.uol.com.br/vazzola/mmktxtdance.swf"
quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="250" height="50">
</embed>
</object>

View Replies !    View Related
Button Fails To Trigger The Get URL Action
hi,

i have done a horizontal menu. thoug hter other links trigger the get url action the link that has the submenu wont trigge rthe action...

can some one help me why is it so?

i have attached the file

thanks
Arie

View Replies !    View Related
GetURL Fails On Runtime Library Button
After years of estrangement, I'm embracing Flash once again. I have a little project I'm working on, but have faltered right out of the gate...

I created a shared library with a single, relatively simple button with a clip in the over frame. For the button symbol, in Linkage I chose:
Export for runtime sharing
Export in first frame
URL: shared_lib.swf

I published the library, then closed the .fla. I created a new test.fla and chose "Open External Library" and surfed to the shared_lib.swf.

The shared library opened as it should, with my simple button available. I dragged the button to the stage of the new test.fla, then checked its properties. Sure enough, "import for runtime sharing" was selected. I tested the movie, and the button (and its rollover clip) worked perfectly.

Here's where it fails. I assigned an action to the button
on (release) {
getURL("

View Replies !    View Related
Button Fails To Function Yet I Recieve No Error Messages... Wtf?
So I made a puzzle game and everything works completely all the way down until you get to the simple button that is supposed to start the movie back off at frame 1. It rolls over, it clicks, the actionscript is correct, it's in the right place but when you run the game and try to click the final button to play again, nothing happens. I'm guessing it has something to do with removing a child or something. At any rate it's silly for sure. I have thought about writing code that would just reboot the whole animation on the mouse click but I wouldn't know how to do that.

The eventlistener for the play again button is on my DragGame.as class at the bottom and I commented it. If you could help me out that would be amazing! All of the files are loaded in this zip that's on my own personal server space. Thanks.

http://basementsunrise.com/it/port/PuzzleGame.zip

View Replies !    View Related
Button Mode
hello !!
I have bit issue with Button mood!
I have 2 MovieClip : "main" and "sub";
"main" ' s ButtonMode was true !
and sub is child of main !
I want the sub wont be Button !! (when the mouse rollOver that , nothing happen !! );

thanks ;
kiarash :)

View Replies !    View Related
Question: How Do I Go From Expert Mode To Normal Mode And Visa Versa
in the Actionscript pane? I own Flash MX 2004 Professional. Thanks for your time!

View Replies !    View Related
Normal Mode Vs. Expert Mode? And Actionscript In General.
If anyone can help, please do because I'm going crazy and I've been losing sleep and going through some mild depression. I know it sounds ridiculous, but actionscript is not my friend right now. I'm a designer, not a programmer and I'm just NOT getting actionscript. I've purchased 3 books on the subject and I'm still confused. One book will tell me to start off using "Normal Mode" so I can just select the actions on the left side of the "actions window". Another book will tell that I should immediately switch to "Expert Mode" because that's the best way to learn actionscript.
I'd rather learn how to type in the code instead of clicking on pre-made actions. I was wondering if you guys actually type all of your code in manually or do you occasionally use the given commands on the left side. I need to know so I can decide on how to approach actionscript.
Another thing, does anyone know a good on-line site where I could get the basics of actionscript. To be honest, what I need actionscript to do for me right now is to build a simple horizontal sliding menu. I've plenty of these on several "tutorial" sites but I want to make my own but I need the basic knowledge to do so. What should I start to learn right off the bat? Variables, properties...? Oh, and when I want to set a variable do I type var = x; or do I type Set variable = x. I'm confused. Please help.

View Replies !    View Related
-MX04 Actionscript Normal Mode&expert Mode?
I have just starting Flash MX 2004 and cannot figure out to switch in the actionscript between between normal mode and expert mode.

Does anybody know how?

View Replies !    View Related
Action Script - Normal Mode Vs Expert Mode
Hi I am still using flash MX as when I upgraded to flash MX 2004 profesional have found it really difficult to actionscript since I never found the way how to switch to the normal mode available in Flash MX does it exist or has it been completly removed ?

Does flash 8 has the same feature missing ?


silv

View Replies !    View Related
Cant Assign Button Mode To Specific MC
I've duplicate a series of MC, but the thing is i can't traced the position of the MC. Every position of x,y,z is 0
And I can't seems to assign a buttonMode to it. It will somehow assign the buttonMode to teverything on stage rather than a specific 1.


Code:
private function xmlLoaded(event:Event):void {
xml=XML(event.target.data);
xmlList=xml.children();
var picList:XMLList=xml.pic;//list for pic
for (var i:Number=0; i < picList.length(); i++) {
cube=new Cube(materials,40,5,42,10,10,10);
cube.name="cube" + i;// set instance name
trace(cube);
cube.x=Math.random() * 960 - 460;
cube.y=Math.random() * 710 - 330;
cube.z=-40;
cube.rotationZ=Math.random() * 360;
scene.addChild(cube);
}
addEventListener(MouseEvent.CLICK,objectPress);
}

View Replies !    View Related
Cant Assign Button Mode To Specific MC
I've duplicate a series of MC, but the thing is i can't traced the position of the MC. Every position of x,y,z is 0
And I can't seems to assign a buttonMode to it. It will somehow assign the buttonMode to the MCs and a Plane i created.


ActionScript Code:
private function xmlLoaded(event:Event):void {
         xml=XML(event.target.data);
         xmlList=xml.children();

         var picList:XMLList=xml.pic;//list for pic
         for (var i:Number=0; i < picList.length(); i++) {
           
            cube=new Cube(materials,40,5,42,10,10,10);
            cube.name="cube" + i;// set instance name

            trace(cube);
            cube.x=Math.random() * 960 - 460;
            cube.y=Math.random() * 710 - 330;
            cube.z=-40;
            cube.rotationZ=Math.random() * 360;

            scene.addChild(cube);
         }
         addEventListener(MouseEvent.CLICK,objectPress);
      }

View Replies !    View Related
Toggle Button For Fullscreen Mode...
How do I toggle between two different buttons, one that activates fullscreen mode and another one that deactivates it?

This is all I could find:

ActionScript Code:
import flash.events.FullScreenEvent;

function fullScreenRedraw(event:FullScreenEvent):void
{
    if (event.fullScreen)
    {
        // Remove input text fields.
        // Add a button that closes full-screen mode.
    }
    else
    {
        // Re-add input text fields.
        // Remove the button that closes full-screen mode.
    }
}

mySprite.stage.addEventListener(FullScreenEvent.FULL_SCREEN, fullScreenRedraw);

A step by step tutorial would be helpful.

Thank you.

View Replies !    View Related
Normal Mode And Expert Mode-Not To Be Found In MX.?
The two modes Normal and expert modes, that were of great use is not to be seen in MX 2004. How is it?

View Replies !    View Related
Simple Mode And Advanced Mode In Flash
This is something i've been putting up with so long now, i'm far from fluent in actionscript even the basics I tend to forget if I haven't used flash for a while but in other releases of flash their has always been too modes for actionscripting - advanced mode and simple mode. With flash mx (2004 pro) I have looked and looked and scoured google and i've never been able to find out how to change it to simple mode. I prefer being able to just choose from a dropdown or a list or whatever it is what actions I want rather than typing it all in myself. I'm even thinking of going back a few versions of flash to get this feature back. I haven't used flash for a good 7/8 months now and i'm struggling to do simple things like rollovers leading to different scenes.

this is what it looks like in previous versions of flash:



but in mx it isn't their now and i've looede through all the preferences:





cheers
sam

View Replies !    View Related
Toggling Between Expert Mode And Normal Mode?
toggling between expert mode and normal mode?

I just switched from MX to MX 2004. BIG improvement but as you all know when you switch programs there is a learning curve. Is there a way to switch back and forth between normal mode and expert mode in you r action script panel? It seems to only have expert mode and I by no means am an expert scripter.

Any help?

thanks

View Replies !    View Related
Quick Question - Button In _down Mode
I have a main menu in my website. Clicking on a mc button takes you to the portfolio section. There is a secondary menu using tab-like mc buttons. I would like to have tab#1 in the down state because that is the active subsection. I have used the code in my actions layer.

workNav1.onEnterFrame = function() {
workNav1.gotoAndStop("_down", 1);
delete this.onEnterFrame;
};

The mc button is depressed as I wanted it to be. But when I click to other tabbed subsections, tab#1 is still depressed as well. I'm not sure if I am using the wrong code (onEnterFrame) where it is or if I need some code to deselect tab#1 when other tabs are selected. If there is code I am missing or need to be corrected. Please let me know. I appreciate any help and advice.

Thank you very much,

T

View Replies !    View Related
On Stage Pressin Button..works, Test Movie, Press Button Dosent Work
i really need some help on that, it's really annoying me, on the stage i enable simple button and simple frame actions, then i click and it goes to the specified frame, but when i go and test the movie and click on the button, it just sits there, i've tried everything, any ideas?

View Replies !    View Related
[F8] Enabling Button Mode For Movie Clip Symbols?
Hi kids. Simple question. In flash 8, I want my movie clip to have the lil hand appear over my movie clip symbols, as they'll be my buttons (since buttons suck and dont work lol).

So, how can I make this happen? And any necessary code would be GREATLY appreciated, since I understand actionscript about as much as I understand German... maybe a bit less.

Thanks!

View Replies !    View Related
Is It Possible? Full Screen Button/mode For Player Even If It Is Not Embeded?
Hi everyone,

You got a great forum.
Any help will be greatly appreciated.

I need to get the full screen button on my flashplayer that I created in CS3 to work, but I do not know how to integrate the AC_FL_RunContent() function to enable fullscreen mode into my html page if the flash player is not embeded. Or do I need to change the actionscript in my player skin in flash?

I created the player in flash cs3 with custom skin.
The player works great.

I am swapping the swf files through a setFlash(xxx.swf) function.
Please see js function below:


Code:


function setFlash( loc )
{
var so = new SWFObject(loc, "pullContent", "425", "350", "8", "#ffffff");
so.addParam("wmode", "transparent");
so.write("player");
}



function call is through onclick event on images:


Code:

<img src=".xxx.gif" onclick="setFlash('http://xxx.swf');



Thanks in advance.

ns

View Replies !    View Related
Action Mode In Advanced Mode
Hi!
I got flash mx 2004 and since I am a newbie I want the Action mode in "newbie-mode". this was possible in the earlier version of flash.

so is something like this possible in flas mx 2004?

/thanx for answering, SanTiago_99

View Replies !    View Related
Expert Mode > Normal Mode
I have flash professional 2004, i was just wondering if there is an option to get it back into normal mode, besides expert mode???

View Replies !    View Related
Expert Mode > Normal Mode
I have flash professional 2004, i was just wondering if there is an option to get it back into normal mode, besides expert mode???

View Replies !    View Related
Click A Button And Play The Target Movie In Full Screen Mode(help Required)
hi.....i'm doing a presentation, in which there r 4 buttonz and a target movice clip....the first three buttonz r associated to different movies....pressing on each button loadz the associated movie load in to the target movie clip.......and i want some help with the 4th button.

clicking on the 4th button the movie which is playing in the target movie clip at that moment(it could be any movie....mov1....mov2...or mov3) should play in the full screen mode..so plz help me scripting the fourth button....and remember its a presentation(projector .exe format.)

thanks

urs sincerely
shekar.

View Replies !    View Related
Making The Swf Movie To Play In 100% Mode Rather In "show All" Mode
Hi ...at present i am creating a demo with innumerous bitmaps taken from a screen cam....the quality is really good...my problem is..when i export the movie and play the swf in a flash it plays in the "show all" mode and hence the quality of the images is distorted....


Can there be a way to make all swf's play in the 100 % mode by default....

thank you in advance...and please help as this is an urgent project....

View Replies !    View Related
Making The Swf Movie To Play In 100% Mode Rather In "show All" Mode
Hi ...at present i am creating a demo with innumerous bitmaps taken from a screen cam....the quality is really good...my problem is..when i export the movie and play the swf in a flash it plays in the "show all" mode and hence the quality of the images is distorted....


Can there be a way to make all swf's play in the 100 % mode by default....

thank you in advance...and please help as this is an urgent project....

View Replies !    View Related
Button Test
Greetings,

Been experimenting with AS3 here. I've created a project with a
Document Class named "Main" and only a single MC in it named "Button_MC"
and linkage. Inside that Button_MC, I have a timeline with a couple of
stop()'s for some animation.

Here's my code (Main.as):
package {

import flash.display.MovieClip;
import flash.events.*;

public class Main extends MovieClip {

// put main vars here

// Constructor
public function Main() {

// put add on stage stuff here
var button1:QuickButton = new QuickButton("Click Me");
addChild(button1);
button1.x = 100;
button1.y = 100;
button1.addEventListener(MouseEvent.CLICK, onClick);
button1.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver);
}

private function onClick(e:Event):void {
trace("hi");
}
private function onMouseOver(e:Event):void {
//button1.play();
}
}
}



Also here's my (QuickButton.as) too:
package {

import flash.display.*;
import flash.events.*;
import flash.text.*;

public class QuickButton extends MovieClip {

public function QuickButton(myText:String):void {

// put in the button
var btn:Button_MC = new Button_MC();
btn.buttonMode = true;
//btn.useHandCursor = true;
addChild(btn);
// put in the text feild
var tf:TextField = new TextField();
var format:TextFormat = new TextFormat();
format.font = "Verdana";
format.color = 0x000000;
format.size = 12;
format.align = "center";
tf.defaultTextFormat = format;
tf.selectable = false;
tf.text = myText;
tf.width = 100;
btn.addChild(tf);
}
}
}

So my AS3 places a single instance of "button1" on my stage. How do I
access this to play it's animation?

button1.gotoAndPlay(2) will not work?

thanks

-richard

View Replies !    View Related
Button W/ If Test Help...
ok, i have a movie with two buttons and movie clip called square,

the script for the first button is

on (release) {
if (x!=1) {
_root.square.gotoAndPlay(2);
x=1;}
}

the script for the second button is
on (release) {
if(x=1){
_root.square.gotoAndPlay(31);
x=0;}
}

the first frame on the main timeline sets x=0.

What i want to happen is the first button starts the mask then stops and the second button closes it. The problem is that i want to hit the second button to close it only if the mask is open (after pushing the first button). I provided the .fla for more info.

Thanks always

View Replies !    View Related
Hit Test Or Something? Just Not A Button.
Alright. It's been a while since i've touched flash, so here i go.

Theres one part onthe site im making where i when the mouse rolls over it, it plays a movie clip makes the "Sign up for the newsletter" box. The way i have it now, its a button that has the movie clip on the "over" frame. It works perfectly, but the cursor changes to the hover cursor. Is there anyway to get rid of that?

this is a screen shot of the thinger...



the blue is where the rollover part would be

thanks for any help
-Naaman

View Replies !    View Related
Button W/ If Test Help...
ok, i have a movie with two buttons and movie clip called square,

the script for the first button is

on (release) {
if (x!=1) {
_root.square.gotoAndPlay(2);
x=1;}
}

the script for the second button is
on (release) {
if(x=1){
_root.square.gotoAndPlay(31);
x=0;}
}

the first frame on the main timeline sets x=0.

What i want to happen is the first button starts the mask then stops and the second button closes it. The problem is that i want to hit the second button to close it only if the mask is open (after pushing the first button). I provided the .fla for more info.

Thanks always

View Replies !    View Related
Test For Mouse Button Still Down
how would i test to see if a mouse button was released before i stop my function?
thanks in advance
jeff

View Replies !    View Related
Button Conditional Test
I'll bet this is easy...but I've looked through the posts and couldn't quite find the right code...

2 buttons...audon audoff...on top of each other...when sound on is clicked sound off is set to invisible...and vice versa...

I'm using the buttons to control several different sounds...what I need to do is know when it's been turned off so that when a new sound is attached it won't automatically play...

bg=new Sound("sound1.swf");...etc...


button code: sound off...

on (press, release) {
bg.setVolume(0);

audoff._visible=1;
audon._visible=0;
}

and....sound on...

on (press, release) {
bg.setVolume(100);

audoff._visible=0;
audon._visible=01

this works great...both buttons are movies...
so I think I need something that tests if the sound has been turned off...so when I load a new sound....

attachMovie("sound2.swf",10);
bg=new Sound("sound2.swf");

if (audoff._visible=1) {
bg.setVolume(0);
}

or what???...do I need to create a varible to make the conditional work...?

I know that's not the right syntax...but I hope it conveys what I'm trying to accomplish...again I'm just an unworthy designer begging for help...

Thanks!

View Replies !    View Related
Hit Test Or Invisible Button.
Hit Test or Invisible button.

Hi all,

I'm looking for best way to hide and show the nav on my site when the mouse is within a certain area.

I want the nav to be hidden until the mouse scrolls near the nav and then I want to nav to become visible then invisible again when you scroll away. Is it possible to use the Hit Test Movie Clip method to do this or is it best to use and invisible button and then say something like

code:
invisBtn_btn.onRollover = function(){
nav_mc._visible = true

}


I can't really think how I would do this without using onEnterFrame to test if the mouse was in a certain area, but them onEnterFrame would be running all the time and that's not a good idea is it.

View Replies !    View Related
Hit Test Problem When Using It As A Button
I have a button (actually a mc) that uses hittest to get a nice smooth fading effect. I want to use this button to jump to a frame inside a "content" movie clip. It's kind of hard to explain, but I have attached the fla. I'm stumped on this one...if anyone can help, I'd appreciate it. Thanks!

View Replies !    View Related
Just Need To Run A Test To See Which Button Was Pressed How?
I have a menu with 6 buttons. I have set up a variable called button pressed that tracks which button was pressed through numbers (if button 1 pressed, value of buttonPressed becomes 1 etc..) I want to test for which button was pressed as little as possible. If I say onClipEvent(mouseDown) it tells me that this can only be used for movie clips. How can i run a simple test to see which button was pressed?

thanks
k

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved