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




"Debugging Permitted" Checked



I have a movie that I built that loads different office locations from an XML file, and places them on a map. When I publish the movie with "Debugging Permitted" checked in the "Publish Settings" dialog box, it works great. If I uncheck the box and publish the movie, however, the movie looks just crazy, like none of my XML was loaded, masks aren't showing up as masks, etc. Its really strange. Does anyone have any insight into this phenomenon?

Thanks...



DevShed > Flash Help
Posted on: August 6th, 2004, 04:24 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

"Debugging Permitted" Checked
I have a movie that I built that loads different office locations from an XML file, and places them on a map. When I publish the movie with "Debugging Permitted" checked in the "Publish Settings" dialog box, it works great. If I uncheck the box and publish the movie, however, the movie looks just crazy, like none of my XML was loaded, masks aren't showing up as masks, etc. Its really strange. Does anyone have any insight into this phenomenon?

Thanks...

"protect From Import" And "debugging Permitted"
I need clarification on these. When you select "protect from import" is this preventing people from opening file?
And "debugging permitted" it brings up a password field, asks for localhost or IP (what do I put here -- the web address or machine with what syntax ie www.web.com or machine path) ?

This Statement Is Not Permitted...
Anybody know why I get this error when I try to add a key listener to my class?

"This statement is not permitted in a class definition.
keyListener.onKeyDown = function() {"

Calling AS File....statement Not Permitted
can you set up an AS file for a button, with this.onRollOver = rollover?

its telling me statement not permitted. I know you have to extend then MovieClip class, but i guess there is something else?

Why Is This Statement Not Permitted In A Class Definition?
Hi,

Would someone be able to tell me why the following statement is not permitted in a class definition?


PHP Code:



class utils.LoaderListener
{
    _global.utils.LoaderListener = function ()
    {
    };
} // End of Class




Your help will be greatly appreciated.

Regards,

Blastbum

Clip Events Not Permitted To Buttons?
Hi,

I wanted to have my buttons to move to a certain pos. upon enter frame. However, when i have the following AS on the buttons, flash prmpted me that Clip events are permitted only for movie clip instances. Is there any other way out of this? appreciate it.



ActionScript Code:
onClipEvent (load) {
    speed = 7;
    endPos = -39.3;
}
onClipEvent (enterFrame) {
    x = endPos-_x;
    _x += x/speed;
}


[/as]

SendAndLoad Fails Even Though It Is Permitted (very Weird)
Hi!

I have to deal with a very weird XML.sendAndLoad error. Maybe some of you guys know an answer!

I implemented an AJAX adapter in Flash to allow crossdomain AJAX interaction - and it works fine in general! Except it is loaded from one special server, then it fails without any reason. I digged into this for hours but I was not able to find a reason.

To find the reason I added several traces and activated every logging option in mm.cfg. Here some data:

mm.cfg:
ErrorReportingEnable = 1
MaxWarnings = 500
TraceOutputFileEnable = 1
SecurityDialogReportingEnable = 1
PolicyFileLog=1
PolicyFileLogAppend=1

Traces when the adapter is loaded from http://www.dental.pitt.edu/informatics/contactmanagement-externals/ajaxflash/ajaxflash.swf (this is the server with the problems):

sendAjaxRequest: entered
sendAjaxRequest: request object created
sendAjaxRequest: response object created
sendAjaxRequest: request submitted
processAjaxResponse: entered
processAjaxResponse: request failed
_root.currentXmlRequestObject.contentType = text/xml
_root.currentXmlRequestObject.loaded =
_root.currentXmlRequestObject.status = 0
_root.currentXmlRequestObject = <request><ajax>...</ajax></request>
processAjaxResponse: javascript callback activated - error
processAjaxResponse: internal data resetted

policyfiles.txt log for the same server:
OK: Root-level SWF loaded: http://www.dental.pitt.edu/informatics/contactmanagement-externals/ajaxflash/ajaxflash.swf
OK: Searching for <allow-access-from> in policy files to authorize data loading from resource at http://cms.dentalinformatics.com/contactmanagement.v3.ajax/en/public?clientInstanceConfig[name by requestor from http://www.dental.pitt.edu/informatics/contactmanagement-externals/ajaxflash/ajaxflash.swf
OK: Policy file accepted: http://cms.dentalinformatics.com/crossdomain.xml
OK: Request for resource at http://cms.dentalinformatics.com/contactmanagement.v3.ajax/en/public?clientInstanceConfig[name by requestor from http://www.dental.pitt.edu/informatics/contactmanagement-externals/ajaxflash/ajaxflash.swf is permitted due to policy file at http://cms.dentalinformatics.com/crossdomain.xml

Traces when the adapter is loaded from http://www.chimos.de/cms-testbed/naos-external/ajaxflash/ajaxflash.swf (this a the server WITHOUT the problems):
sendAjaxRequest: entered
sendAjaxRequest: request object created
sendAjaxRequest: response object created
sendAjaxRequest: request submitted
processAjaxResponse: entered
processAjaxResponse: request succeeded
processAjaxResponse: javascript callback activated - ok
processAjaxResponse: internal data resetted

policyfiles.txt log for the same server:
OK: Root-level SWF loaded: http://www.chimos.de/cms-testbed/naos-external/ajaxflash/ajaxflash.swf
OK: Searching for <allow-access-from> in policy files to authorize data loading from resource at http://cms.dentalinformatics.com/contactmanagement.v3.ajax/en/public;main/default/core/public-interface/register-external?clientInstanceConfig[name by requestor from http://www.chimos.de/cms-testbed/naos-external/ajaxflash/ajaxflash.swf
OK: Policy file accepted: http://cms.dentalinformatics.com/crossdomain.xml
OK: Request for resource at http://cms.dentalinformatics.com/contactmanagement.v3.ajax/en/public;main/default/core/public-interface/register-external?clientInstanceConfig[name by requestor from http://www.chimos.de/cms-testbed/naos-external/ajaxflash/ajaxflash.swf is permitted due to policy file at http://cms.dentalinformatics.com/crossdomain.xml

This is the crossdomain.xml file (I know it allows everything, but I wanted to be sure ...)
http://cms.dentalinformatics.com/crossdomain.xml

I placed the fla file here http://www.chimos.de/ajaxflash.fla , which consists of 4 Key Frames for the interaction with Javascript.

Your help is highly appreciated!

Thank you!

Niklas

Local-with-filesystem SWF Not Permitted Use Sockets
I am new to Actionscript 3. I'm a systems level/back-end programmer. My main responsibility is the Java/C++ code on the server. But my server must talk to a Flash client. To test I am trying to open sockets to my server code. Typically I test this stuff all on localhost on my Mac. I get the following error when I try to instantiate a socket:
Local-with-filesystem SWF files are not permitted to use sockets

I don't get this error when I run my client inside Flash CS3, but when I have Flash publish an html file it gives that error. The funny thing is what I am trying to test right now is delivery of the policy file over port 843! Why doesn't it wait until it sees if it can retrieve the policy file before aborting my program? I am serving the policy file correctly (since the code works correctly when run in the browser).

Assuming this can't be corrected, what problems will I run into if I move the socket servers (policy and my other socket server) to another machine? After 25 years as a system programmer in C/C++ and assembly I am blown away that Flash has brought me to my knees!!!!

Help - Mouse Events Are Permitted Only For Button Instances
What does "Mouse events are permitted only for button instances" actually mean? How do I add script to a button that is dynamically added as part of a clip?

I have a movie (attached) where I'm dynamically creating movie clips that will be buttons which will update a value in the _root movie when clicked on.

How do I make these clips "clickable" - I daresay the method I've used in the movie is wrong.

Run the movie then click the (green) "Click this first" button, then add clips using the (blue) "then click this" button. Each new clip should be clickable and add it's id to the textbox containing "X". SHOULD but DOESN'T.

The "grey" dot in the movie is a different instancing test

Mouse Events Are Permitted Only For Button Instances
Need some help with this stupid message. Ive been trying to make a simple dropdown menu using CBT Cafe tutorial and I keep getting this message when trying to publish the menu. "Mouse events are permitted only for button instances" keeps coming up during the publish and I am sure that the item is a button and I changed to movie clip and didnt help. Ive posted the .fla for you to see. Thanks in advance. .

Mouse Events Permitted Only For Button Instances
im making a navigation system with several buttons. the graphics are converted to buttons, but when i test the movie, i still get this message:

Scene=Scene 1, Layer=t-left new, Frame=30: Line 1: Mouse events are permitted only for button instances
on (release) {

i have tried to make new layers and import images again to make sure they really are buttons, but i still get the same error. can anybody help me?

Flash Lite On Pocket PC Mobile 5 Permitted?
Dear Sirs

We have developed a Flash application that is perfect for the Pocket PC and will run under Flash Lite. However we are not clear on the distribution of Flash Lite with our application. I've looked all over the Adobe site and can't find this answer: I would like to know if its possible for us to include Flash Lite with our app OR point the customer to a page to get the player that doesn’t require filling out developer forms.

Thanks

Mitch
Mitch

Mouse Events Are Permitted Only For Button Instances
I have converted dynamic text to a button, and this is the message I get when I attempt to link it to something, where am i going wrong it puzzles me this does.

Trev

Mouse Events Are Permitted Only For Button Instances
I'm trying to add this action to a button so I can get openx to track this flash banner. Can anyone clue me into what this means. I must be tired-but I have looked at this everyway and don't see what I'm doing wrong.

Made a button-added keyframe to each poition, went back to the main time line inserted an instance of the button onto its own layer-added the following action

on (release) {
if (clickTAG.substr(0,5) == "http:") {
getURL(clickTAG, "_blank");
}
}

and it gives me the error message = Mouse events are permitted only for button instances

Please ???? Any ideas????

Ive attached a zip file incase that helps solve it

How To Set Buttons As Checked?
How do I set a button's state as having been clicked? I don't want to disable it, just show that it's been clicked for future reference.
I'm thinking of Authorware Attain's automatically checked button state. How can I replicate that effect in flash 4?
thanks,
ac

Help With Checked Box In Emailer
I am trying to build emailer with PHP. I have it working. Now I want to give the choices to check some boxes and pass the Vars to PHP. How do you add the Vars like when you can give text boxes?

I hope this make sense.


Thanks!!!!!

Checked ContextMenuItem
I have been trying to find how I might have a context menu with items that have check marks to the left of them. This functionality would be very much the same as the "100%" or "Show All" context menu items in terms of how they are displayed.

I don't see any sort of property for either the ContextMenu or ContextMenuItem classes.

ContextMenuItem--

caption:String
A string that specifies the menu item caption (text) displayed in the context menu.


enabled:Boolean
A Boolean value that indicates whether the specified menu item is enabled or disabled.


separatorBefore:Boolean
A Boolean value that indicates whether a separator bar should appear above the specified menu item.


visible:Boolean
A Boolean value that indicates whether the specified menu item is visible when the Flash Player context menu is displayed.
--------------------------------------- --------------------------------------- ---------------------------------------

ContextMenu--

builtInItems:Object
An object that has the following Boolean properties: zoom, quality, play, loop, rewind, forward_back, and print.


customItems:Array
An array of ContextMenuItem objects.
--------------------------------------- --------------------------------------- ---------------------------------------

Error: Mouse Events Are Permitted Only For Button Instances
have written the following code in the actions for a movie clip

on (keyPress "<Up>") {
this._rotation -= 90;
}
on (keyPress "<Left>") {
this._x -= 25;
}
on (keyPress "<Right>") {
this._x += 25;
}

It worked fine on one MX program and I brought it home and on my own MX prog it brought up the errors:

Scene=Scene 1, Layer=Layer 2, Frame=1: Line 1: Mouse events are permitted only for button instances
on (keyPress "<Up>") {

etc etc for each


can anyone explain why? thanks!

Error: Mouse Events Are Permitted Only For Button Instances
I was doing this tutorial: http://www.actionscript.org/tutorial...us/index.shtml

when I got to the end, and to the part where I was inputing the URL's, I got the aforementioned error message. When I test the movie, i can get to the url, but I get that message in the debug menu. I can not publish the movie with this error. Not sure why it will take me to the link and function, yet have the error message.

I can not change the movieclip to a button, because it will effect the overall workings of the menu. Is there something stupid that I am missing?

Determine If Checkbox Is Checked Or Not...
i realized what was happining, so i do not need help with this.
(couldn't find out how to delete the thread)

thx

Determine If Checkbox Is Checked Or Not...
i have a flash form, and i use java servlets to process it.

i keep getting 'null' for my checkbox value, i do not know how to get the value of it.

if anyone can shed some light on this, i'd really appreaciate it.

thanks!

LoadVars --> Is OnLoad Checked Only Once?
hi all,

i'm hoping for a little walkthrough the loadVars method

what i want to achieve is this: the movie that loads the variables should remain still UNTIL the data has been loaded, and only then resume play...

===============================

// FRAME 1

// stop at frame 1 and resume only when all data is loaded
stop();

// LOAD EXTERNAL DATA //

// event handler function
loadHandler = function(success){
if(success){
// if data loads, play movie...
play();
myTextBox.html = this.text;

}else{
gotoAndStop("error");
}
}

// create loadVars object
myData = new LoadVars();

// set event handler
myData.onLoad = loadHandler;

// load data
myData.load("myFile.txt");

===============================

now here's my question:

is the line 'myData.onLoad ...' checked only once? in other words, does this line do what i need or do i need to place some code on the movie's enterframe event? (something like:

onData{
play();
}

** the movie works locally but it failed to load the data when i tried it up in some webspace (i can't get to it right now, so i thought i'd try asking here)

thanks again

Collecting Checked Boxes
I have a group of CheckBox components I'm using for a form submit. I'd like to create an array of the checked boxes upon submit.

The reason is a user may check and un-check some of the boxes while they are making decisions. So there is no need to try and push() and delete array elements via a listener. I figure it's much simpler to just collect the ones that are left checked once they hit submit.

The problem is, there doesnt seem to be a way to read the 'selected' property of a CheckBox component.

Can anyone suggest an alternative or workaround?

[F8] As2 - Check If Checkboxes Are Checked
Hi is there a way to check if checkboxes are checked for all check boxes in the swf (all are on the same level) without know how many there are and without using the label. I looking for something like

foreach checkbox component created
check to see if all are unchecked


// i'm creating my chaeck boxes like cchItem = this.createClassObject(CheckBox, "cch|"+arrVal[1], depth++, param);

and i have a listener like:

var oListener:Object = new Object();
oListener.click = function(comp:Object){

How To Find Chkbox Is Checked Or Not
Hi,
I have a checkbox (the checkbox smartclip available in Flash5)
on a movieclip that is tehre in my main timeline. I want to trap teh event when the checkbox is checked .... and if it is checked want to call loadvariables function...

How do i trap the event??
i would appreciate any help.....
I tried some ways,... but no way...

thanks,
shilps

Deleting Checked One...any Flash Master Is There
Hai all

Here i am attaching my file here..open it and run it..after that give some input and click add button. u can see the rows are adding with checkboxs after checking the some (selecting the row) records and pressing the deleting button i want to delete the row and the all elements of the row from the array. and to show all sorted again...

possible i tried lot i am not getting. any master to do that....


Flashmani

Control Volume Of My MP3 In SWF (i Checked Tutorials)
I searched through the tutorials and found some pretty cool stuff. The problem is, either they were too complex for me to try to edit to my likings...or just didn't work in a way that would work for me.


I found one that used the Sound Edit feature that lowers the volume by a percentage. I tried to use this on my mp3 song...but doesn't seem to want to work. I think thats really just good for sound loops.

Is there a really simple, HORIZONTAL slider that can control the audio of my swf file?

I didn't want to post this as i know there are a lot of tutorials on them, but after about 2 days of trying to make it work with my stuff..i gave up.

Any help?
Thanks in advance.

AS2 Bug In Output - Double Checked Undocumented
Math.easeInCirc = function (t, b, c, d)
{
//HOW DO I FIX THIS!
//return(-c * (Math.sqrt(1 - t = t / d * t) - 1) + b);
return(-c * (Math.sqrt(1 - t = t / d * t) - 1) + b);
};

When I tun this I get

Left side of assignment operator must be variable or property.

Deleting Checked One...any Flash Master Is There
Hai all

Here i am attaching my file here..open it and run it..after that give some input and click add button. u can see the rows are adding with checkboxs after checking the some (selecting the row) records and pressing the deleting button i want to delete the row and the all elements of the row from the array. and to show all sorted again...

possible i tried lot i am not getting. any master to do that....


Flashmani

[FMX04] Need To Have If/else Statement Checked Continuously
Hey all,

I'm working on my first flash site and am real stuck. I'm new to flash and trying my best to learn.

I posted here a few days ago what I was trying to accomplish with my site and treaktor pointed me to lostinbeta's easeTo fla. I have used that as my framework for the site.

Here is the site so you can see what I have so far:
http://www.dannycerezo.com/master.html

This is where I am stuck. When I click on "Projects : 01", an embedded MC slides in (which is essentially another easeTo MC inside the top one). I need the "Projects : 01" button to disable. I have tried several things such as if/then statements, functions, etc and I can only get them to work once: the first time the scene loads. After that, if I click on "Projects : 01", thereby sliding the embedded mc to the left, it should disable the "Projects : 01" button, but it doesn't. It's as if the "if/else" statement is ignored.

That is to say, if I tell it "Hey if THIS exists, then do this" it only does it once. What I am using to check to see if "Projects : 01" should be on or off, is the position of a MC called "h_section2" (this is the mc that the embedded easeTO Mc is on).

Here is the code I have so far and what I added: BTW, "Projects : 01" is 'h_button2'.



Code:

//The bulk of this code courtesy of lostinbeta-----------
Stage.scaleMode = "noScale";
this.createEmptyMovieClip("centerPoint", depth++);
centerPoint._x = h_sectionContainer.h_section1._x;
centerPoint._y = h_sectionContainer.h_section1._y;
var paddingX = h_sectionContainer._x;
var paddingY = h_sectionContainer._y;
function easeTo(sectionNumber) {
var sX = h_sectionContainer[sectionNumber]._x;
var sY = h_sectionContainer[sectionNumber]._y;
var endX = centerPoint._x-sX+paddingX;
var endY = centerPoint._y-sY+paddingY;
h_sectionContainer.onEnterFrame = function() {
this._x += (endX-this._x)/2;
this._y += (endY-this._y)/2;
};
}

//not part of original lostinbeta code-----------------------------------
//this is what I added.
//h_sectionConatiner is contains 5 mc's: h_section1 thru h_section5
//what I thought I could do is check the x position of it...if it's at 1205,
//the start position, then leave "h_button2" which is the projects button
//enabled, but if its at 405 then disable.

if (h_sectionContainer._x = 1205) {
onProjects ();
} else if (h_sectionContainer._x = 405) {
offProjects ();
}

function offProjects () {
this.h_button2._visible = false;
}

function onProjects () {
this.h_button2._visible = true;
}
//end of the code I added-------------------------------------------


for (var i = 1; i<=9; i++) {
this["h_button"+i].goSection = "h_section"+i;
this["h_button"+i].onRelease = function() {
easeTo(this.goSection);
};
}
//End of lostinbeta code---------------------
What you'll see after checking the site is that when the embedded mc slides in (in effect moving the h_sectionContainer to the left at _x = 405) the "Projects : 01" button is still enabled.

Can someone help me out?

thanks,

deesee

P.S. Sorry for the long post.

Actions To Occur After OnLoadInit Is Checked
Hi there,

I have a problem with some code. Its in the else statement below. Essentially I am trying to make sure I can read in the mc._height value before I continue with the code, I use a listener to check that I can get the value which I can,however it seems to do all the code after the loadListner.onLoadInit function before this function. Any help would be greatly appreciated!!
function displayAll() {
var inBead:MovieClip;
currentPosition = composite_start_pos_x;
for (var i = 0; i<=beadsOnComposite; i++) {
inBead = _root.mySlider.attachMovie("inside_bead_object", stripX2(band[i][0])+i, i);
inBead.bead_name = band[i][0];
inBead.bead_price = band[i][1];
inBead.bead_loc = band[i][2];
inBead.bead_size = band[i][3];
inBead.bead_id = band[i][4];
inBead.bead_position = i;
if (inBead.bead_loc == undefined) {
removeMovieClip("_root.mySlider.undefined");
} else {
var loadListener:Object = new Object();
loadListener.onLoadInit = function(target_mc:MovieClip):Void {
trace("width"+mc._width);
trace("height"+mc._height);
};
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(loadListener);
var mc:MovieClip = _root.mySlider[stripX2(band[i][0])+i].createEmptyMovieClip("mc", this.getNextHighestDepth());
mcLoader.loadClip(inBead.bead_loc, mc);
inBead._x = currentPosition;
currentPosition = (currentPosition+Number(band[i][3]));
inBead._y = composite_start_pos_y+inBead._height/2;
}
}
_global.spaceTotal = currentPosition-composite_start_pos_x;
formatDecimals(total, digits);
total_price.text = ("Total Price Ł"+newTotal);
}

Deleting Checked One...any Flash Master Is There
Hai all

Here i am attaching my file here..open it and run it..after that give some input and click add button. u can see the rows are adding with checkboxs after checking the some (selecting the row) records and pressing the deleting button i want to delete the row and the all elements of the row from the array. and to show all sorted again...

possible i tried lot i am not getting. any master to do that....


Flashmani

Old User Still Has Files Checked Out In Dreamweaver
I am editing a site that somebody else edited a few weeks ago, and for whatever reason a lot of the files are still listed as being checked out by that user, even though they haven't worked on the site for a while. I get warning messages when I try to overwrite them, and they still have the red checkmarks next to them.

I'm not sure if the other user was using Dreamweaver themselves, but these messages are showing up for me in Dreamweaver.

Do you know any way to tell Dreamweaver that the file is no longer checked out by this other person?

This is Dreamweaver MX 2004.

(Also, is this information stored in a text file by Dreamweaver on the server or something? Because I suppose I could just edit the text file...)

Thanks....

All Buttons In All Files Are Now Showing Error: Mouse Events Are Permitted Only For Button Instances.
Somebody please help:
I've taught myself enough with Flash to customize a fully-Flash template for my wife's website, and two of the buttons didn't do what I wanted them to in Actionscript. They then began giving me the message:

**Error** Symbol=sub_butt1, layer=Layer 4, frame=1:Line 1: Mouse events are permitted only for button instances
on (rollOver) {

**Error** Symbol=sub_butt1, layer=Layer 4, frame=1:Line 4: Mouse events are permitted only for button instances
on (releaseOutside, rollOut) {

Total ActionScript Errors: 2 Reported Errors: 2

Not only do I not know how to fix this, the same message comes up for every single button in the entire fla I had saved, plus earlier versions where I hadn't even messed with the buttons yet.
Any suggestions?

PROS PLZ HELP --> Checkboxes That Subtract From A Total When Checked?
I AM STUCK!!

How would I make the following? :


I was making an 'Order Form'. I want to have a list of checkboxes that will change the Pre-Set "Total Amount" when they are checked.

The 'Total Amount' is a Dynamic Text Box.

PLEASE HELP IF YOU CAN!!
It would be much appreciated...

How To Make Parts Of Movie To Be Loaded Only If Checked?
Hi,
i'm doing a flash site where there is an audio mixer for live mixing, but this would make the preloading very long.
So my question is:
is it possible to make some parts of the movie (the audio mixer e.g.) to be loaded only if the visitor click on it?
Thanks

Keeping Track Of Number Of Checked(checkboxes)
i have an application that im trying to develop which involves the user choosing a number of brochures to be sent to their address.

The user can only choose three brochures out of a total of 15. the original idea is to warn or inform the user once they make more than three choices they cannot submit the form.

I know this involves keeping count of the number of buttons that are checked out of the 15.

So far ive been able to code the status of a button being enabled using a counter(i.e if checked counter= counter+1 if unchecked counter=counter-1)


Code:
onClipEvent (load){
var _count:Number=0;
}



on(press){
if (this._currentframe==1){
pressed = true;
this.gotoAndStop(2);
_count=_count+1;
trace (_count);

}

else if (this._currentframe==2) {
pressed = false;
this.gotoAndStop(1);
_count=_count-1;
trace (_count);

}
}

Each of the 15 buttons are an instance of one button_mc.

can i somewhat get a variable that stores the total number of buttons clicked? and if more than 3, it does the appropriate function.

Keeping Count Of The Number Of Buttons Checked
i have an application that im trying to develop which involves the user choosing a number of brochures to be sent to their address.

The user can only choose three brochures out of a total of 15. the original idea is to warn or inform the user once they make more than three choices they cannot submit the form.

I know this involves keeping count of the number of buttons that are checked out of the 15.

So far ive been able to code the status of a button being enabled using a counter(i.e if checked counter= counter+1 if unchecked counter=counter-1)


Code:
onClipEvent (load){
var _count:Number=0;
}



on(press){
if (this._currentframe==1){
pressed = true;
this.gotoAndStop(2);
_count=_count+1;
trace (_count);

}

else if (this._currentframe==2) {
pressed = false;
this.gotoAndStop(1);
_count=_count-1;
trace (_count);

}
}

Each of the 15 buttons are an instance of one button_mc.

can i somewhat get a variable that stores the total number of buttons clicked? and if more than 3, it does the appropriate function.

Checked And Selected States Help For Radio & Checkbuttons
hey all,

i have radio buttons and checkboxes and i want flash to recognise whether or not they have been selected or checked and to remember that if i go to another page and return to the page with the radio buttons to remeber if they are checked or not...

if any one has any ideas or tuts on it??

cheers

Radio Buttons/checkbox Disable One If Another Is Checked?
hi....

I am using the FFP Lightweight components set tickbox (this component is available at flashcomponents.net)

for YES and NO questions....

I want to put script in each tickbox to uncheck the other box next it if it gets chosen (so a user can't select yes and no)

I also want to add or subtract a value from a variable...

heres a sample of what i put on each tickbox instance... the syntax is definitely wrong:

on(release){

value = n14.getValue()

if value = (true)
(n14.setValue(false))
yellow -1;

else if value = (false)
(y14.setValue(true))
green++;
}

SOrry for my crappy actionscript.... thats why i need help!!

also i need help with a script calculating the top three of the variables of color after the quiz is completed...

-aleks

TextArea Component Blurred Fonts. Checked All Co-ords
Just when i get one problem sorted another comes along
http://www.thelettingdoctor.co.uk/main.html
If you click on About you wil see the blurred font. All mc's are on absolute inetger, nothing scaled apart from the textarea component it's self.

Anyone

thanks
Paul

Quick Help...checkbox From Unchecked To Checked When Text Is Entered In Another Textb
Hey all...

I just have a very quick question.

I would like to have my hidden checkbox go from unchecked to checked when the user types any text in the Input text text box.

I have no idea how to write the script, so if someone can help then I will love you forever and make you muffins!

Thanks

Jeff

Quick Help...checkbox From Unchecked To Checked When Text Is Entered In Another Textb
Hey all...

I just have a very quick question.

I would like to have my hidden checkbox go from unchecked to checked when the user types any text in the Input text text box.

I have no idea how to write the script, so if someone can help then I will love you forever and make you muffins!

Thanks

Jeff

How To Remove A Text Field?-I Checked The Help Section Of The Site- Still Not Working
Sorry, this is probably easy to do....but I just can't figure it out!!!! How do I remove a text field I created with the following code? I can make the words disappear, but I can't stop the movie clip from being rendered a text field and can't load anything that is clickable in it. Thanks!!!!!

function addConsultation(sLinkage:String):Void{
if(oOpenedConsultation[sLinkage]!=undefined) {
oOpenedConsultation[sLinkage].swapDepths(nTopDepth8);
return;

}
}

function loadConsultation():Void {
var nWidth:Number = mcDisplayBackground2._width;
var nHeight:Number = mcDisplayBackground2._height;
var nX:Number = mcDisplayBackground2._x;
var nY:Number = mcDisplayBackground2._y;
this.createTextField("tArticle", this.getNextHighestDepth(), nX, nY, nWidth, nHeight);
tArticle.multiline = true;
tArticle.wordWrap = true;
tArticle.textColor = 0x000000;
tArticle.html = true;
tArticle.condenseWhite = true;

}



function loadData8():Void {
var lvLinksContent:LoadVars = new LoadVars();
lvLinksContent.onData = function(sHTMLData:String):Void {
tArticle.htmlText = sHTMLData;
};
var cssStyles2:TextField.StyleSheet = new TextField.StyleSheet();
cssStyles2.onLoad = function():Void {
tLinks.styleSheet = this;
lvLinksContent.load("consultation.html");
};
cssStyles2.load("aof.css");
}



var nTopDepth8:Number;
var oOpenedLinks:Object = new Object();
mcConsultationButton.onRelease = function():Void {

loadData8();
gotoAndPlay(4);

};






























Edited: 05/18/2008 at 07:24:14 PM by VanessaR14

HAS ANYONE CHECKED OUT THE FLASH FILM FESTIVAL YET? AWSOME STUFF GUYS


http://www.flashforward2002.com/flash-nyc/index_flash.html

"A Successful man is one who can build a firm foundation with the bricks that others throw at him"



[MX04] Error: Clip Events Are Permitted Only For Movie Clip Instances
Hey all,

I have loaded a movieclip dynamically from my library using:


Code:
attachMovie('enter_button','enter_button',5)


This works fine. On the first frame of that loaded mc I have an onClipEvent(load) event and some commands inside it. When I run the .swf the following error appears:

**Error** : Clip events are permitted only for movie clip instances
onClipEvent(load)

Why is it trying to tell me this is not a movieclip? It's a movieclip in the library and I've set the linkage settings to export during the first frame. I'm not sure what to try next.

Thanks for your time,
Greenham.

Error...."Mouse Events Are Permitted Only For Button Instances"
I have written the following code in the actions for a movie clip

on (keyPress "<Up>") {
this._rotation -= 90;
}
on (keyPress "<Left>") {
this._x -= 25;
}
on (keyPress "<Right>") {
this._x += 25;
}

It worked fine on one MX program and I brought it home and on my own MX prog it brought up the errors:

Scene=Scene 1, Layer=Layer 2, Frame=1: Line 1: Mouse events are permitted only for button instances
on (keyPress "<Up>") {

etc etc for each


can anyone explain why? thanks!

"Mouse Events Are Permitted Only For Button Instances"
Hey guys, will someone check out my fla or assist me in this error... Everything works 100% but the error is annoying and keeps popping up whenever I run it...

"Mouse events are permitted only for button instances"
on (rollOver) {
and
on (releaseOutside, rollOut) {

I recieve the errors. I would be willing to provide you with the fla to assist my problem.

Thanks,
Greg

"permitted Only For Movie Clip Instances" Error
I don't see why I keep getting that error, im attaching the actionscript to a movie clip instance and its still doing it to me. I'm on http://www.kirupa.com/developer/acti...ogramming4.htm
and I'm pretty sure I followed it to the letter (as well as retrying it over and over again) so im not realy sure why it wouldn't work, there's a link on their for the source .fla and i thought I would be able to see the program and figure out what i was doing wrong but the link isn't working, does anyone know where I can download the source for it and if not why i might be having that problem with my onClipEvents? (Macromedia Flash Professional 8)

Copyright © 2005-08 www.BigResource.com, All rights reserved