XML Menu Not Working In 2004
Hi all, I am trying to develop an XML Collapsible Menu. I have downloaded some sample tutorials and files and they all work in Flash MX. But when I try to run them with Flash MX 2004 with Player 7 and actionscript 2 (I need these cause Im using Flash Video componenet on the same page) they don't work. Any Advice??
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 09-01-2004, 11:59 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
XML Menu Not Working In 2004
Hi all, I am trying to develop an XML Collapsible Menu. I have downloaded some sample tutorials and files and they all work in Flash MX. But when I try to run them with Flash MX 2004 with Player 7 and actionscript 2 (I need these cause Im using Flash Video componenet on the same page) they don't work.
Any Advice??
XML Collapsible Menu Not Working In 2004
Hi all, I am trying to develop an XML Collapsible Menu. I have downloaded some sample tutorials and files and they all work in Flash MX. But when I try to run them with Flash MX 2004 with Player 7 and actionscript 2 (I need these cause Im using Flash Video componenet on the same page) they don't work.
Any Advice??
XML Collapsible Menu Not Working In 2004
Hi all, I am trying to develop an XML Collapsible Menu. I have downloaded some sample tutorials and files and they all work in Flash MX. But when I try to run them with Flash MX 2004 with Player 7 and actionscript 2 (I need these cause Im using Flash Video componenet on the same page) they don't work.
Any Advice??
Masking Not Working In 2004
I have an movieclip animation that I made in Flash5, and then brought into Flash7
It has a mask layer that works and shows up fine in the Flash authoring file in Flash5 and Flash7.
PROBELEM: In the FlashPlayer7 the mask does not work unless I export it as a flash5.
Is there something that changed from Flash5 to MX that would cause this problem?
note: the movieclip is being duplicated.
ParseInt Not Working Pls Help Me In Mx 2004
Hi everybody,
pls help me i can't understand y parseInt is not working
I'm having 1 array which contains the value from a user input, only numbers. when i supposed to sum all the values using parseInt i won't get result the result is only Nan. pls anybody have the solution for it.
here is the code :
(Note I'm Using Mx 2004 Professional)
[i] input = "25,15,10,30,20";
myArray = input.split(",");
for (i =0; i<myArray.length;i++){
val = (parseInt(myArray));
sum += val;
}
trace(sum)
the output only comes as Nan . pls help me
Thanks in advance.
Working With CSS In Flash MX 2004
Hi guys n gals,!
I have just started working with CSS in flash mx 2004 and i wanted to know if it is possible to apply a scrollbar that would scroll text from a loaded .txt file into a dynamic text field.
I have checked the web and i have not seen any examples of this done without using a flash mx 2004 component.
Cheers,
Ryan
KeyPress Not Working In Flash MX 2004
Anyone know why I can't get keyPress "<enter>" to work in the Flash MX 2004? I had it working fine in Flash 5.
Here's my old code:
code:
on(release,keyPress "<Enter>") {
---- code snipped ----
}
Release works fine, but pressing "Enter" doesn't any longer.
Intīl Accentuation Not Working In Flash 2004
Intīl accentuation not working in Flash 2004
Hi everybody,
For some reason that I donīt know International accentuation commonly used for languages like spanish is not working in Flash 2004.
take a look :
ActionScript:
------------------------------------------------------------------
system.useCodepage =true; // <--- enable code page support
// loads ext. txt
loadVarsText = new LoadVars();
loadVarsText.load("text6.txt");
loadVarsText.onLoad = function(success) {
if (success) {
box.html = true;
box.htmlText = this.news;
}
};
stop();
------------------------------------------------------------------
this piece of code used to work perfectly in Flash MX, now in Flash 2OO4 it does not show accentuation correctly anymore. What has changed ?any new tricks ? does anybody else have this problem ?
Anyone please test my code and let me know. Thanks !
.Flash 2004 pro
.Flash Player v. 7
.Windows XP pro
.IE 6.0.2
Selection.getFocus() Not Working In MX/2004
The script below works fine in Flash5, but not in MX and MX 2004 - does anyone know how to clear a textfield when it is selected?
Old script:
if (Selection.getFocus() == "_root.name") {
_root.name = "";
}
Thank you,
:: serviator
Working With Screens In Flash 2004 Pro
I'm working on a mini-site using screens in Flash 2004 Pro.
On each screen I have a little "intro" movie playing whenever the screen is revealed.
For some reason, the movies within each screen play even if the screen is not visible, so when I click on the link (which reveals the the particular screen) the movie had already played and stopped.
Is there a way to tell Flash to wait till the particular screen is revealed to start playing the movies within that screen?
Thanks in advance.
zee
Working With Screens In Flash 2004 Pro
I'm working on a mini-site using screens (forms) in Flash 2004 Pro.
On each screen I have a little "intro" movie playing whenever the screen is revealed.
For some reason, the movies within each screen play even if the screen is not visible, so when I click on the link (which reveals the the particular screen) the movie had already played and stopped.
How do I tell Flash to wait till the particular screen is revealed to start playing the movies within that screen?
Thanks in advance.
zee
Buttons Not Working In Flash MX 2004 Pro
Hi,
The buttons aren't working in Flash MX 2004 Professional. It all seems fine at first, but, when I export the .swf file (and put it on the Web site also), it doesn't display ANY text at all on the buttons. Does anybody know how to solve this problem?
Smooth Preloader Not Working On MX 2004?
http://actionscript.org/tutorials/be...er/index.shtml
Can anyone tell me why this preloader doesn't work in Flash MX 2004? I thought actionscript was backwards-compatible?
JavaScript That Worked In MX Isn't Working In MX 2004
I have a project that I originally did a few years back in Flash MX. I'm redoing it to include in a portfolio I'm putting together and without thinking about the consequences, I saved it as MX 2004 instead of the legacy save. Then I proceeded to do about 8 - 10 hours of work on redesigning the site. Everything seemed to be working fine on the new site, but there's a section that uses JavaScript to open some new windows. In the new window, there are links where you can click to play (an MP3) or right click to download. The original site works just fine but in the new site, the JavaScript doesn't open the new windows. I don't know if the links on the new window would work or not because I can't get to them. I'm worried that it may be a difference between MX and MX 2004 which would mean my 8 - 10 hours are down the drain and I'd have to start all over with a legacy save (at least I still have a copy of the original). However, I'm also wondering if it's just a targeting issue or some other issue with the ActionScript and/or the JavaScript.
The part I'm talking about is here. On the left nav, click on "Music" and then on the "Downloads" page, click on any of the links to the Suites. This is the original version so the windows should open. Anyone have any idea why the windows wouldn't be opening in the new version? The HTML is like this:
Code:
<HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<TITLE>The French Suites of J.S. Bach</TITLE>
<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
</script>
</HEAD>
<BODY bgcolor="#660000">
<div align="center"><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="740" HEIGHT="540" id="index" ALIGN="">
<PARAM NAME=movie VALUE="index.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#660000> <EMBED src="index.swf" quality=high bgcolor=#660000 WIDTH="740" HEIGHT="540" NAME="index" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT></div>
</BODY>
</HTML>
And a sample of the pertinent ActionScript is here:
Code:
_root.music_mc.frste1.onRelease = function() {
getURL("javascript:openNewWindow('http://www.anopenspace.com/school/audio/frsuite1.html','thewin','width=320, height=330, toolbar=no,scrollbars=no')");
};
You have no idea how much I'm REALLY hoping someone can figure out what's wrong and tell me that I don't have to start all over. For sure. Help?
JavaScript That Worked In MX Isn't Working In MX 2004
I have a project that I originally did a few years back in Flash MX. I'm redoing it to include in a portfolio I'm putting together and without thinking about the consequences, I saved it as MX 2004 instead of the legacy save. Then I proceeded to do about 8 - 10 hours of work on redesigning the site. Everything seemed to be working fine on the new site, but there's a section that uses JavaScript to open some new windows. In the new window, there are links where you can click to play (an MP3) or right click to download. The original site works just fine but in the new site, the JavaScript doesn't open the new windows. I don't know if the links on the new window would work or not because I can't get to them. I'm worried that it may be a difference between MX and MX 2004 which would mean my 8 - 10 hours are down the drain and I'd have to start all over with a legacy save (at least I still have a copy of the original). However, I'm also wondering if it's just a targeting issue or some other issue with the ActionScript and/or the JavaScript.
The part I'm talking about is here. On the left nav, click on "Music" and then on the "Downloads" page, click on any of the links to the Suites. This is the original version so the windows should open. Anyone have any idea why the windows wouldn't be opening in the new version? The HTML is like this:
HTML Code:
<HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<TITLE>The French Suites of J.S. Bach</TITLE>
<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
</script>
</HEAD>
<BODY bgcolor="#660000">
<div align="center"><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="740" HEIGHT="540" id="index" ALIGN="">
<PARAM NAME=movie VALUE="index.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#660000> <EMBED src="index.swf" quality=high bgcolor=#660000 WIDTH="740" HEIGHT="540" NAME="index" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT></div>
</BODY>
</HTML>
And the pertinent ActionScript is here:
Code:
_root.music_mc.frste1.onRelease = function() {getURL("javascript:openNewWindow('http://www.anopenspace.com/school/audio/frsuite1.html','thewin','width=320, height=330, toolbar=no,scrollbars=no')");
};
_root.music_mc.frste2.onRelease = function() {getURL("javascript:openNewWindow('http://www.anopenspace.com/school/audio/frsuite2.html','thewin','width=320,height=330, toolbar=no,scrollbars=no')");
};
_root.music_mc.frste3.onRelease = function() {getURL("javascript:openNewWindow('http://www.anopenspace.com/school/audio/frsuite3.html','thewin','width=320,height=330, toolbar=no,scrollbars=no')");
};
_root.music_mc.frste4.onRelease = function() {getURL("javascript:openNewWindow('http://www.anopenspace.com/school/audio/frsuite4.html','thewin','width=320,height=330, toolbar=no,scrollbars=no')");
};
_root.music_mc.frste5.onRelease = function() {getURL("javascript:openNewWindow('http://www.anopenspace.com/school/audio/frsuite5.html','thewin','width=320,height=330, toolbar=no,scrollbars=no')");
};
_root.music_mc.frste6.onRelease = function() {getURL("javascript:openNewWindow('http://www.anopenspace.com/school/audio/frsuite6.html','thewin','width=316,height=320, toolbar=no,scrollbars=no')");
};
You don't know HOW much I'm REALLY hoping someone can figure out what's wrong and tell me that I don't have to start all over. Really. Help?
Flash MX 2004 Has Stopped Working
hi
if I start my Flash MX 2004 under Vista prof. and try to work, I get the following error:
Flash MX 2004 has stopped working !
what's wrong and howto solve this problem ?
Solve Cache Not Working In MX 2004
Well i use to use this in Flash MX. But now when i've installed MX 2004, this trick doesn't seem to work anymore. Is there a new way to solve this problem? Btw I'm referring to this trick:
http://www.kirupa.com/developer/acti...icks/cache.htm
Thanks
Flash MX 2004 Combo Box Not Working
hi ,
I use Flash MX 2004 combobox, when i test and run from the same file its working fine. But i need to load a swf into a movieclip. Means the swf which is having the combobox is loaded into a movieclip of another swf. There its not working. When i click the combox it even not dropdown. Please anybody help me.
Advance thanks to everybody.
Matrix Effect Not Working In MX 2004
****Update****** I partially figured out what was causing this not to working MX 2004. See code changes below. Flash 7 did not know how to handle the undefined variables (+this.dep, this.dep++) or (+i,i++) in the createEmptyMovieClip. Had to change then to this.getNextHighestDepth(). However this is causing the color change routine not to work since there is no true depth number assigned. Setting up a trace to view color change the color change returns undefined. The script does not seem to know which instance of the MC to apply the color change to since there are multiple dynamic MC’s
If someone knows how to correct this it would be a big help!!
*******
I have been playing with the different examples of the Matrix code effect when I found the one created by Ilyas USAL (pom) who I see posts to this forum in the past. So I am hoping POM sees this or someone who know POM will let him or her know I could use some advice on how to get this to work with MX 2004.
Here is the original code:
Layer 1 Frame 1
// To make it run smoother
_quality = "MEDIUM";
// String containing all the characters available in the font
letters_str = "abcdefghijkl1234567890,;:!?./$" ;
length_num = letters_str.length ;
Layer 2 Frame 1
/*** Functions ***/
// fade out and remove clip when _alpha inferior to 10 - no parameters
function fadeToBlack(){
this._alpha -= 5;
if (this._alpha < 10){
delete this.onEnterFrame;
this.removeMovieClip();
}
};
// color fade from white to the original color
function whiteToGreen(){
this._alpha -= 3;
if (this.rb < 2 && this.gb < 2 && this.bb < 2){
this.rb = this.gb = this.bb = 0;
delete this.onEnterFrame;
}
else {
this.rb *= .9;
this.gb *= .9;
this.bb *= .9;
}
var trans = {rb:this.rb , gb:this.gb , bb:this.bb};
this.col.setTransform(trans);
};
// Create a new clip with a letter in it
// x: _x position ; y: _y position ; size: size of the letter
MovieClip.prototype.createLetter = function (x,y,size){
// Create and position the new clip
//var mc = this.createEmptyMovieClip("letter"+this.dep,this.d ep++); old code
var mc = this.createEmptyMovieClip("letter",this.getNextHig hestDepth()); New code
mc._x = x;
mc._y = y;
// Create a new TextField in the clip
mc.createTextField("t",0,0,0,size,size);
// Choose a random letter
var myChar = letters_str.charAt(random(length_num));
mc.t.text = myChar;
// Create the TextFormat, format the text and embed the font
var tf = new TextFormat();
tf.size = size;
tf.font = "Katakana";
tf.selectable = false;
tf.color = "0x00ff00";
mc.t.setTextFormat(tf);
mc.t.embedFonts = true;
// Letter goes from white to green
mc.rb = mc.gb = mc.bb = 255;
mc.col = new Color (mc) ;
mc.col.setTransform({rb:255 , gb:255 , bb:255});
mc.onEnterFrame = whiteToGreen;
};
// Create a trail of letters
function createTrail(){
// Create new clip and position it randomly
//var clip = this.createEmptyMovieClip("trail"+i,i++); old code
var clip = this.createEmptyMovieClip("trail"this.getNextHighe stDepth()); new code
clip._x = Math.round(random(Stage.width)/10)*10;
clip._y = clip.y = -10;
// Choose a random size for the letters, and set the spacing
var size = random(10)+15;
clip.spacing = size ;
// onEnterFrame, create a new letter that will wade out.
// if we're at the bottom of the screen, fade out the whole trail
clip.onEnterFrame = function(){
this.y += this.spacing;
this.createLetter(0,this.y,size);
if (this.y > Stage.height) this.onEnterFrame = fadeToBlack;
};
};
Layer 3 Frame 1
// Create a new trail every 100 milliseconds
setInterval(this,"createTrail",100);
I like the simplicity of the code and I have a good understanding of how it is working. I have even made changes to get different effects and have embedded it in other flash movies I have played with to see if I could.
The problem is as follows. If I set my publish environment to Flash player 6 and actionscript 1.0 everything works fine. If I change the publish environment to Flash player 7 and actionscript 1.0 or 2.0 then the effect no longer functions correctly. There appears to be some variable or element that needs to be change. The Flash 7 compiler does not seem to parse the code in the same way the Flash 6 compiler is.
I get random single characters but no trailing characters. I slowed the timing down so I could see what was happening and everything but the colored characters is appearing. Stepping through the code revealed that the function whiteToGreen() does not appear to be working correctly or being called correctly.
Looking for someone with more knowledge in this than me. Hopefully the author will see this and know how to correct it.
Thanks
Fishman9
MX 2004 ListBox Component Not Working
Working off the the tutorial here: http://www.kirupa.com/developer/mx/listbox.htm, I'm unable to get the onchangehandler working for the list component in MX 2004.
I have just the basics and its still not working. I have a listbox named photolist, and I can fill it just fine but the onchangehandler isn't working.
Below is the basic code that I have that isn't even tracing for the onchangehandler.
Code:
function displayDetails(c){
trace("Working");
//trace(c.getSelectedItem().data);
}
_root.photolist.addItem("asdsad",22);
_root.photolist.addItem("444",66);
_root.photolist.setChangeHandler("displayDetails");
stop();
Solve Cache Not Working In MX 2004
Well i use to use this in Flash MX. But now when i've installed MX 2004, this trick doesn't seem to work anymore. Is there a new way to solve this problem? Btw I'm referring to this trick:
http://www.kirupa.com/developer/acti...icks/cache.htm
Thanks
Flash MX 2004 Combo Box Not Working
hi ,
I use Flash MX 2004 combobox, when i test and run from the same file its working fine. But i need to load a swf into a movieclip. Means the swf which is having the combobox is loaded into a movieclip of another swf. There its not working. When i click the combox it even not dropdown. Please anybody help me.
Advance thanks to everybody.
FlashMX 2004 Debugger Not Working
I am trying to debug my MovieClips but the debugger is not responce!
I click to debug but in the var window and properties nothing appears?
Any sugestions? Why this can happen?try to re-install the software but again nothing happens!?
Intīl Accentuation Not Working In Flash 2004
Hi everybody,
For some reason that I donīt know International accentuation commonly used for languages like spanish is not working in Flash 2004.
take a look :
ActionScript Code:
system.useCodepage =true; // <--- enable code page support
// loads ext. txt
loadVarsText = new LoadVars();
loadVarsText.load("text6.txt");
loadVarsText.onLoad = function(success) {
if (success) {
box.html = true;
box.htmlText = this.news;
}
};
stop();
this piece of code used to work perfectly in Flash MX, now in Flash 2OO4 it does not show accentuation correctly anymore. What has changed ?any new tricks ? does anybody else have this problem ?
Anyone please test my code and let me know. Thanks !
.Flash 2004 pro
.Flash Player v. 7
.Windows MX pro
.IE 6.0.2
Passing Instance Name Into Function Not Working (MX 2004)
I am trying to pass an instance name into a function and its not working properly.
here's the call:
UpdateGraphicStatus("MIM", "mim1", "fault");
here's the function definition:
function UpdateGraphicStatus(objectType, objectIdentifier, state){
here's the reference in the function:
[objectIdentifier].gotoAndPlay("fault");
I've tried it with and without the (.) after the brackets, and with and without the (_root)reference before the bracket notation.
I'm at the end of my rope with this one.
Mx 2004: Custom Function W/ Variables Not Working - Help?
code:
// function to automate the hit tests
function hitClip (aCPlaceNum, loopNum, loopName, aCButtonNum) {
aCPlaceNum.gotoAndStop(5);
loopNum.attachSound(loopName);
loopName.gotoAndStop(5);
aCButtonNum = loopName;
}
ambPho.onRelease = function () {
if ( ambPho.hitTest(aCPlace01) == true ) {
hitClip ("aCPlace01", "loop01", "ambientPhotek", "aCButton01");
}
}
Can you please tell me why this isn't working? It takes me 10 minutes to test the movie every time and it's taking me forever to fix things.
Do I have to do something else with the variable names I'm using or something?
Thanks for your help.
Percentage Preloader In FlashMX 2004 Not Working
Ave,
I have been using a percentage preloader in my FlashMX movies which had been working fine.
I switched over to FlashMX 2004 and now my percentage preloader script isn't working.
I have the following code on Frame 1 of my movie:
Code:
stop();
fscommand ("fullscreen", "true");
fscommand ("showmenu", "false");
fscommand ("allowscale", "false");
setProperty ("_root.Bar", _yscale, 0);
_level0.load = "Loading ShockWave Data...";
And this script on a action-clip:
Code:
onClipEvent (load) {total = int(_root.getBytesTotal());}
onClipEvent (enterFrame) {
StatusColor = new Color(_root.Bar);
Loaded = int(_root.getBytesLoaded());
Percent = int(loaded/total*100);
if (percent>20) {
_level0.load = "Loading Interface";
StatusColor.setRGB( 0xf6f6f6 );
}
if (percent>40) {
_level0.load = "Loading Digital Components";
StatusColor.setRGB( 0xf6f6f6 );
}
if (percent>60) {
_level0.load = "Loading Digital Motion";
StatusColor.setRGB( 0xf6f6f6 );
}
if (percent>80) {
_level0.load = "Loading Digital Graphics";
StatusColor.setRGB( 0xf6f6f6 );
}
if (percent==90) {
_level0.load = "Unlocking Media.... ";
StatusColor.setRGB( 0xFFFFFF );
}
_root.Percent = Percent + " %";
setProperty ("_root.Bar", _yscale, Percent);
if (Percent >= 100) {tellTarget ("_root") {gotoAndPlay("Movie",1);
}}
}
Basically niether does the percentage bar move, nor does the text change, nor does the percentage appears. It just remains static. Doesn't even go the next Scene "Movie".
Any clues?
Scroll Pane Not Working Flash MX 2004
Hi Folks
I have an existing movie but now I want to add a Scroll Pane. I tried Importing several premade scrolls to my library [one at a time] but when I drag it to the place I want it in my movie [frame location] it don't work.
I see the up/down arrow and all the components but clicking don't do anything.
I even created one myself using a few tutorials but only see a white space and no scrolling text information.
I even tried to type in an existing swf file in the content path as well as use the full path location to where my text file or swf file is on my hard drive but in either case the movie never shows.
Any help appreciated.
Thanks
Dave
Macromedia Flash MX 2004 Wasn't Working
Hi all
I'm another rookie for macromedia flash mx 2004 ver 7.2 and updated to licensing 4.0.0.32. When I start the program, it pop up and initializing fonts..etc..then disappeared..nothing came up. I'm just wondering how can I use flash mx 2004?
Custom Class Not Working In Flash Mx 2004
Hello,
I made a class that runs fine when used in a movie published from flash 8 on a PC WinXP, but when i try to use it in mx2004 Mac OSX, i get the error:
Code:
**Error** xxxxx:Archive 02 WIP:test:PicSwitch.as: Line 42: There is no property with the name 'onMotionFinished'.
tweenIn.onMotionFinished = function() {
**Error** xxxxx:Archive 02 WIP:test:PicSwitch.as: Line 48: There is no property with the name 'onMotionFinished'.
tweenOut.onMotionFinished = function() {
In my class on the first line i use:
import mx.transitions.Tween
... so that i can use the Tween class in my class. I'm guessing the problem is in there somewhere.
Any thoughts?
Menu Fades In On Rollover, But Buttons In Menu Not Working.
Hi,
My menuMC fades in to 100% when rollover the transparent button and fades outs upon rollout the transparent button.
However, the buttons in my menuMC is not working. Logically speaking, with the transparent button on top of my menu bar, it sorta blocked out my menu buttons. Any suggestions/other way around it ?
this script goes to my transparent button
ActionScript Code:
on(rollOver)
{
_root.menuMC.fade = "in";
}
on(rollOut)
{
_root.menuMC.fade = "out";
}
this script goes to my menuMc with buttons inside
ActionScript Code:
onClipEvent(load)
{
this._alpha = 0;
fade = 0;
}
onClipEvent(enterFrame)
{
if(fade == "out")
{
if(this._alpha > 0)
{
this._alpha -= 5;
}
else
{
fade = 0;
}
}
else if(fade == "in")
{
if(this._alpha < 100)
{
this._alpha += 5;
}
else
{
fade = 0;
}
}
}
Appreciate what helps i get.
Menu Fades In On Rollover, But Buttons In Menu Not Working.
Hi,
My menuMC fades in to 100% when rollover the transparent button and fades outs upon rollout the transparent button.
However, the buttons in my menuMC is not working. Logically speaking, with the transparent button on top of my menu bar, it sorta blocked out my menu buttons. Any suggestions/other way around it :confused: ?
this script goes to my transparent button
ActionScript Code:
on(rollOver){_root.menuMC.fade = "in";} on(rollOut){_root.menuMC.fade = "out";}
this script goes to my menuMc with buttons inside
ActionScript Code:
onClipEvent(load){this._alpha = 0;fade = 0;} onClipEvent(enterFrame){if(fade == "out"){if(this._alpha > 0){this._alpha -= 5;}else{fade = 0;}}else if(fade == "in"){if(this._alpha < 100){this._alpha += 5;}else{fade = 0;}}}
Appreciate your help. Thanks
Help Guys Code On Flash Mx Not Working Anymore On Mx 2004
Hi Guys, i think i need your help ok i have a button in flash when i click that button a pop up window will appear containing an animation, and that window should be the same size as the animation, i have a code before that i use, but now its not working on flash mx 2004.
heres the code i use before:
on (release) {
unloadMovieNum(3);
getURL("javascript:launchwin('teaser2.html' , 'newwindow' , 'height=400,width=550,left='+((screen.width-550)/2)+',top='+((screen.height-400)/2)+'')");
}
hope someone could fix this code for me, or maybe you have a more tighter code that i could use.
thanks in advance guys!! cheers!!!
Flash Mx 2004 - Form Components Working Problem
I am very knew to flash and AS and helped by Kirupas's tutorials I managed to create a form using input text and components. I get the email (via asp mail) with "undefined" in the components' related fields but get the information from the input text ok. Something is wrong with my code which is below. I will also like to know how to reset the DateField, CheckBox and Radio Button
components as this doesn't work either. I will be greatfull if anyone can give me some advice. Thank you!
//Booking From DateField component
function DateFieldDisplay (component) {
from = component.getValue();
trace (From);
}
bookingFrom.setChangeHandler ("DateFieldDisplay");
//Booking Till DateField component
function DateFieldDisplay (component) {
Till = component.getValue();
trace (Till);
}
bookingTill.setChangeHandler ("DateFieldDisplay");
//Number of Adults Combo Box
function comboDisplay (component) {
adults = component.getSelectedItem().label;
}
n_adults.setChangeHandler ("comboDisplay");
//Number of Children Combo Box
function comboDisplay (component) {
children = component.getSelectedItem().label;
}
n_children.setChangeHandler ("comboDisplay");
//Spanish writen/spoken Check box
myCheck = [spanishWriten,spanishSpoken];
function checkDisplay (component) {
var j,s;
for(j in myCheck){
if(myCheck[j].getValue()) s+=myCheck[j].getLabel()+"
";
}
spanish_Lessons = + ((s.length) ? s: "Nothing");
}
for (i=0;i<myCheck.length;i++) {
myCheck[i].setChangeHandler ("checkDisplay");
}
//Spanish Level ComboBox
function comboDisplay (component) {
spanish_Level = component.getSelectedItem().label;
}
spanishLevel.setChangeHandler ("comboDisplay");
//Webdesign software radio buttons
function radioDisplay (component) {
webdesign_Lessons = component.getValue();
}
webdesign.setChangeHandler ("radioDisplay");
//Webdesign Level ComboBox
function comboDisplay (component) {
webdesign_Level = component.getSelectedItem().label;
}
webdesignLevel.setChangeHandler ("comboDisplay");
function onReset() {
fname.text ="";
lname.text ="";
address1.text ="";
address2.text ="";
address3.text ="";
countyTown.text ="";
postcode.text ="";
email.text ="";
message_txt.text = "";
response_txt.text ="";
bookingFrom.setValue(false);
bookingTill.setValue(false);
n_adults.setSelectedIndex(0);
n_children.setSelectedIndex(0);
var j;
for (j in myCheck) {
myCheck[j].setValue(false);
}
spanishLevel.setSelectedIndex(0);
FrontPage.setValue(false);
Dreamweaver.setValue(false);
webdesignLevel.setSelectedIndex(0);
submit_btn.enabled = true;
}
function onSubmit() {
response_txt.text = "Submiting booking order, please wait...";
//Creates new LoadVars instance for the booking data
formData = new LoadVars();
//Gather the booking information into a LoadVars intance
formData.fname = fname.getValue();
formData.lname = lname.getValue();
formData.address1 = address1.getValue();
formData.address2 = address2.getValue();
formData.address3 = address3.getValue();
formData.countyTown = countyTown.getValue();
formData.postcode = postcode.getValue();
formData.email = email.getValue();
formData.message_txt = message_txt.getValue();
formData.bookingFrom = From.getValue();
formData.bookingTill = Till.getValue();
formData.n_adults = adults.getSelectedItem().label;
formData.n_children = children.getSelectedItem().label;
formData.spanishLessons = spanish_lessons.getValue;
formData.spanishLevel = spanish_level.getSelectedItem().label;
formData.webdesign_p = webdesign.getValue;
formData.webdesignLevel = webdesign_Level.getSelectedItem().label;
formData.onLoad = function(success) {
if (success) {
response_txt.text = "Thank you, your booking request has been sent.";
} else {
response_txt.text = "Your booking request could not be sent.";
}
}
formData.sendAndLoad("reservationsmail.asp", formData, "POST");
}
Help Guys Code On Flash Mx Not Working Anymore On Mx 2004
Hi Guys, i think i need your help ok i have a button in flash when i click that button a pop up window will appear containing an animation, and that window should be the same size as the animation, i have a code before that i use, but now its not working on flash mx 2004.
heres the code i use before:
on (release) {
unloadMovieNum(3);
getURL("javascript:launchwin('teaser2.html' , 'newwindow' , 'height=400,width=550,left='+((screen.width-550)/2)+',top='+((screen.height-400)/2)+'')");
}
hope someone could fix this code for me, or maybe you have a more tighter code that i could use.
thanks in advance guys!! cheers!!!
MX Vs MX 2004 Menu Problem
Can someone explain to me why the menu rollovers only work when I export it as a FLASH MX .swf but they dont work when I export it as a FLASH MX 2004 .swf?
Menu In Flash Mx 2004
Hello!
Does anyone know, how to make a LINK to a nother site in this vrsion of flash. I'm trying to make a menu for a html site. I've created buttons (pressing F8 ... ).
What do I have to do know, to make it work. I tryed GET URL in the actionscripts, but it does not work
Please help!
Thank you!
MX 2004> Prob With Menu?
I am trying to build a menu that bounce's in when you hit and the will bounce out when another button is hit. You can see it here. I think that I need to-do it with a array? I am using tweening prototypes
I just want the same motion on the out as the in on the buttons??
I hope this make sense
MX 2004> Prob With Menu?
I am trying to build a menu that bounce's in when you hit and the will bounce out when another button is hit. You can see it here. I think that I need to-do it with a array? I am using tweening prototypes
I just want the same motion on the out as the in on the buttons??
I hope this make sense
MX 2004 Menu Bar Component
Hi, I am extremely new to Flash and need some assistance with creating a menu bar with drop down menus. I am using Flash MX2004 pro and so using the MenuBar component from the âComponentsâ window. I have dragged the menu bar onto the page and added the following code:
menu = myMenuBar.addMenu("Modules");
menu.addMenuItem({label:"Buffering", instanceName:"BufferingInstance"});
menu.addMenuItem({label:"Spatial Analysis", instanceName:"SAInstance"});
menu.addMenuItem({label:"Interpolation", instanceName:"InterpolationInstance"});
menu = myMenuBar.addMenu("Questionnaire");
menu = myMenuBar.addMenu("Chatroom");
However, I have now tried numerous bits of code to activate the buttons when selected but to no avail. For example, when the âQuestionnaireâ button is selected, I would like to go to another flash movie.
Any help would be much appreciated
rich
Menu Componet...2004 Pro Version
I have this a/s:
v = new LoadVars();
v.load("omg.php");
v.onLoad = function(ok)
{
if (ok)
{
var menu = new XML();
menu.addMenuItem({instanceName:"first1"});
menu.addMenuItem({instanceName:"second"});
menu.addMenuItem({instanceName:"third"});
menu.addMenuItem({type:"separator"});
menu.addMenuItem(instanceName:"fourth"});
var myMenu = mx.controls.Menu.createMenu(myParentClip, menu);
myMenu.show(100, 20);
menu.first1.label = v.user1;
menu.second.label = v.user2;
menu.third.label = v.user3;
menu.fourth.label = v.user4;
}
}
I have a php script that looks like this:
PHP Code:
$x = 1;
mysql_connect("localhost:2082","username","password") or die (mysql_error());
mysql_select_db("db");
$t = mysql_query("SELECT username FROM users");
while (list($user) = mysql_fetch_row($t))
{
echo "user".$x."=".$user."&";
$x++;
}
I want to make a menu in Flash that consists of every user in my database, but I think I'm doing something wrong
I think it is my PHP because the loadVars isn't going through (the variables). How can I fix my PHP code?
Zooming Text Menu Help In MX 2004
Hi,
I'm just getting started with flash and have only skimmed the surface of action script. I went out and got a few books but am still stumped since I don't know where to begin.
I want a side menu with text, when the mouse goes over an item it grows shifting the rest of the text below it down to accomidate it. when the mouse moves off it shrinks back to normal.
Now the only way I can think to do this is to have a script on each menu item which will be individual symbols that will grow itself and shrink any others that are above their base height.
Am I going in the right direction or is there an easier way than duplicating the code to each symbol?
Thanks
PHP/Flash MX 2004 Pro Navigation Menu
Alright...
I've got the following items:
Product Database
Navigation Menu
The "main buttons" of the navigation menu are static and I have three that on rollover I'd like to have display a submenu. They are:
Hardware | Software | Services
These submenus are coming from a database column subCat.
I have created buttons - and have the Up Over Down Hit state all defined.
I've been monkeying with the XMLConnector, DataSet components in Flash MX 2004 Pro - but I'm not doing something right.
Does anyone know an excellent tutorial that will step me through accomplishing a Dynamically Populated Flash Navigation Menu using XML and PHP???
I've searched tirelessly with no results. I want to strangle this client!! :-)~
Thanks,
Rich
Sliding Menu Help (flash Mx 2004)
Hello, I'm trying to make a slide menu that moves left/right depending on the mouse position. the problem I've found are that the buttons don't stop where it ends and get out of the screen, so I need to stop the slide movement but don't know how, this is the script I've use:
mouseX = int(getProperty("/mtrack", _x)-385)*-1;
mouseX = mouseX/6;
// This area creates the flow of the menubar itself, by determining the mouse location.
bar1X = getProperty("bar1", _x);
if (-385<Number(bar1X)<-385)
setProperty("bar1", _x, Number(getProperty("bar1", _x))-Number(mouseX));
if (110>Number(bar1X)>-100)
setProperty("bar1", _x, Number(getProperty("bar1", _x))+Number(mouseX));
//
here's the fla!
other problem I've found is that the buttons doesn't work as they're inside a movie clip.
Please help!
Panchoskywalker
Sliding Menu Flash MX 2004
Hi Guys,
I'm new to Actionscripting with Flash!
I came across the tutorial for sliding menus in the Flash 5 section of this site.
I was just wondering if I follow the version 5 tutorial in MX 2004 am I doing more steps than needed in the newer version? Is there now a faster way?
I know MX 2004 has the Scroll Pane Component, but doesn't seem to be all that customizable.
Any info or other tuts appreciated.
Thanks, Shawn
FMX 2004 Menu Interaction With Mouse
hey there kirupas!
i was wondering, how can i create a menu that interacts with mouse position? the idea is to create a menu with some waving, i mean, when i rollover one button it will go up, and the ones around it will only do half the way...
any ideas or helpfull tutorials? (checked all the kirupa tutorials but found nothing...)
thanks in advance!
HELP Drop Down Menu Flash MX 2004
hey guys hope all is well,
ive just made a drop down menu following Syko's tutorial(link below)
http://www.kirupa.com/developer/mx/dropdownmenu.htm
the problem im having is linking the buttons that appear in the menu to anything. the idea is that they go to other frames in the timeline. if it makes any difference the buttons in the menu are supposed to link to individual frames with pics of my work on.
cheers
?egg
Flash Mx 2004 Accordion Menu
Hi All,
I found a great Flash 2004 Accordion Menu, it is easy to skin, and the transition is really smooth. One problem though I can't figure out how to make it Load external swf's it was designed for jumping to links withing the site.
If anyone wants to look at a copy, and explain to me how to modify it I would appreciate it.
|