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




Secondary Menu Not Functioning...



I have a movie clip that consists of 5 buttons at the start of the time line. If one of the buttons is hovered over it does at gotoAndPlay to active 3 more buttons.

The code below has been striped to show only the Processes button for simplicity. When I hover over processes, it does display the Processes submenu in the timeline, but none of the Sub Menu events seem to fire off.

The hand cursor does not show up when you go over the submenu items.

You can see the actual swf "Not Work" at acuform.johnswidorski.com.

Thanks, John


Code:
stop();

// trace("-" + _root.NextMenu + "-" + _root.CurrentMenu + "-");


btnProcesses.onRelease = function()
{
_root.CurrentMenu = "Processes";
_root.NextMenu = "";
_root.gotoAndPlay('Processes');
}
btnProcesses.onRollOut = function() {
_root.NextMenu = "";
gotoAndPlay('Processes');
};
btnProcesses.onRollOver = function() {
if (_root.CurrentMenu != "Processes") {
_root.NextMenu = "Processes";
gotoAndPlay('Processess');
}
};


//=================================
// Processes SubMenu Events
//=================================
btnSpinning.onRelease = function() {
_root.CurrentMenu = "Spinning";
_root.NextMenu = "";
_root.gotoAndPlay('Spinning')
};
btnMachining.onRelease = function(){
_root.CurrentMenu = "Machining";
_root.NextMenu = "";
_root.gotoAndPlay('Machining');
};
btnRoundBlanks.onRelease = function(){
_root.CurrentMenu = "Round Blank Production";
_root.NextMenu = "";
_root.gotoAndPlay('Blanks');
};

btnSpinning.onRollOut = function() {
_root.NextMenu = "";
};
btnMachining.onRollOut = function() {
_root.NextMenu = "";
};
btnRoundBlanks.onRollOut = function() {
_root.NextMenu = "";
};

btnSpinning.onRollOver = function() {
if (_root.CurrentMenu != "Spinning") {
_root.NextMenu = "Spinning";
}
};
btnMachining.onRollOver = function() {
if (_root.CurrentMenu != "Machining") {
_root.NextMenu = "Machining";
}
};
btnRoundBlanks.onRollOver = function() {
if (_root.CurrentMenu != "Round Blank Production") {
_root.NextMenu = "Round Blank Production";
}
};



FlashKit > Flash Help > Flash Newbies
Posted on: 08-27-2007, 02:31 PM


View Complete Forum Thread with Replies

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

Secondary Menu?
Hey, I am still new to Flash and ran into this problem...

I created a menu of interactive buttons (they have character names on them)
Then, I wanted to make a button titled (women) which would pull up the female character list along side it when the user rolls over the (women) button. I did this using the Up,Over,Down, and Hit states.
Of course, when you scroll over to this "secondary menu" it disappears being it is not part of the "Hit" state. I noticed if you hold the mouse down, you can scroll over the "secondary menu" but it is not working or interactive.
I feel as though I am missing something that is not that difficult to do, but I am stuck nevertheless. Can anyone help?

Secondary Menu For 3D Carousel
Hi,

I am trying to make a second static menu for the 3D carousel. The menu will contain the same links that the carousel does.

I want to be able to click on the menu links and then the carousel will act as if i have clicked the carousel graphic.

I have been trying to make it work but i am have problems.

Any help would be awesome!

Thanks
Hamo

Flash Secondary Button Menu
Hi!

Does anybody know how to edit or add a mesage to the menu that is display when you make click with the secondary button(ctrl+click in Mac) over a flash movie?

Just like the one here:
http://www.gafmediastudio.com/

as you can see when you click with the secondary button a different menu appear, you can even have the option of sending an email.

Thanks, I really appreciate any help!!!

Secondary Menu In Movie Clip Not Working
I have a movie clip that displays a menu of 5 options.  If you mouseover one of the options, it goes to another label on the mc timeline and displays 3 more menu options.  These menu options do not seem to be working at all.  The cursor does not change into a hand and they are not clickable.  The functionality can be seen at http://acuform.johnswidorski.com when you put your cursor over the "Processes" menu option.

I can make the fla available if necessary.

Thanks in Advance, John


Slide Menu Script Not Functioning
I've got a basic sliding menu set up in which I have another version that works, but after I lengthened the size of my panel and made the proper changes to the x coordinates, it does not work.

Maybe I miscalculated the x but I don't think so.

The .fla is on my website at a link at http://www.timothydahl.com

If anyone has any ideas I'd appreciate the assistance.

ww

Non-functioning Preloader For Scrolling Menu
Hey thanks a bunch for checking out my problem.

Well the problem is that when these (player icons) appear they take a long time to show up, especially when its their first time loading.

THESE ARE THE ICONS:[IMG]http://www.webinkgraphics.com/root/redi2play.jpg{/IMG]


What I want to do is add a loader to it, so that before you see the icons you get a loading bar or something. I don't care even if its just a percent loaded dynamic text box. N e way it could be done would be great.

THIS IS THE EXTERNAL ACTIONSCRIPT FILE:
[code]

//---------------------------------------------------------------------------------------------
// parsing the XML of the scrolling menu item players
//---------------------------------------------------------------------------------------------
var xml:XML = new XML();
xml.ignoreWhite = true;


////////* I TRIED USING THIS PEICE OF CODE TO DO IT BUT NOTHING HAPPENS EXCEPT WHAT HAPPENS THE OLD WAY //// NOT WHAT I WANTED *//////////


var profile_xml:XML = new XML();
profile_xml.ignoreWhite=true;
xmlpercent = (profile_xml.getBytesLoaded())/(profile_xml.getBytesTotal())*100
profile_xml.onLoad = function(success){
if (success){
trace("Yup, it loads")
} else {
trace("Error loading XML file")
}
}
xml.load("icons.xml");


xml.onLoad = function()
{
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;



for(var i=0;i<numOfItems;i++)
{
toolText[i] = nodes[i].attributes.tooltip;
playlist[i] = nodes[i].attributes.playlist;
descTitle[i] = nodes[i].attributes.descTitle;
description[i] = nodes[i].attributes.description;
image[i] = nodes[i].attributes.image;
}
_level0.play();
}

//xml.load("icons.xml");

//------------ ON ROLLOVER
function over()
{
var t:MovieClip = this._parent;
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,100,.5, true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,100,.5, true);
var tiptext = this._parent.toolText;
//tooltip function
expand(tiptext);
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height;
home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
home.tooltip._alpha = 100;
}
//------------ ON ROLLOUT
function out()
{
var t:MovieClip = this._parent;
var tw:Tween = new Tween(t,"_xscale",Bounce.easeOut,t._xscale,75,1,tr ue);
var tw2:Tween = new Tween(t,"_yscale",Bounce.easeOut,t._yscale,75,1,tr ue);
//tooltip function
disappear();
delete home.tooltip.onEnterFrame;
home.tooltip._alpha = 0;
}

//------------ ON RELEASED
function released(dropDownSelection)
{
tooltip._alpha = 0;
home.titleHolder.unloadMovie("title.swf"); // ( BMCC*81 )
unloadMovie("_level5");

// sets the mp3SelectedOut var to true
mp3SelectedIn = true;
trace("mp3SelectedIn : " + mp3SelectedIn);

//creates a new var with the selection done with the dropdown Menu
var dDown = dropDownSelection;
trace("dDown = "+dDown);

//---- stops the scroll of the mp3 players menu
delete home.menuHolder.onEnterFrame;

for(var i=0;i<numOfItems;i++)
{
var t:MovieClip = home.menuHolder["item"+i];

//recording the_x and _y positions for each player
t.xPos = t._x;
t.yPos = t._y;

//setting the_x and _y "selected" coordinates for each player
if(Stage.width < 800)
{
t.destX = ((Stage.width/2 - 301)- (20*(Stage.width/2 - 345)/100) -(home.menuHolder._x));
}
else
{
t.destX = ((Stage.width/2 - 301) - 44.4 -(home.menuHolder._x));
}

//recording _xscale for each player
t.theScale = t._xscale;

//disable all mp3 player item buttons to be clicked
delete t.icon.onRollOver;
delete t.icon.onRollOut;
delete t.icon.onRelease;

if(t != this._parent && t!= dDown)
{
var tw3:Tween = new Tween(t.icon.brightness,"_alpha",Strong.easeOut,0, 50,1.5,true);
var tw4:Tween = new Tween(t.r.brightness,"_alpha",Strong.easeOut,0,50, 1.5,true);
var tw5:Tween = new Tween(lightOut,"_alpha",Strong.easeOut,0,50,1.5,tr ue);
}
else
{
if(dDown != undefined)
{
selectedItem = dDown;
trace("selectedItem = DropDown selection: "+selectedItem._name);
}
else
{
selectedItem = t;
trace("selectedItem = MP3 Menu selection: "+selectedItem._name);
}

//defines which playlist to load
myPlaylist = t.playlist;

//parse the playlist xml and load myPlaylist inside the flv player
loadPlaylist();

//load and set all the details about the selected player
inPlayerDetail();

myIndic = i;
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,100,1,t rue);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,100,1,t rue);
var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,t.destX,1,true);
var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,150,1,true);

var s:Object = this;

tw4.onMotionStopped = function()
{
s.onRelease = unReleased;

mp3SelectedIn = false;
trace("mp3SelectedIn = "+mp3SelectedIn);

// sets the mp3PlayerLoaded var to true
mp3PlayerLoaded = true;
trace("mp3PlayerLoaded : " + mp3PlayerLoaded);

invBrowseBack._visible = true;
}
}//end else
}// end for
};

function inPlayerDetail()
{
//---- tooltip is set to transparent
tip._alpha = 0;

// slides in the "view tracks"
if(Stage.width < 800){
var destViewTracks =(Stage.width/2 - 191) - 20*(Stage.width/2 - 345)/100;
}
else
{
var destViewTracks = Stage.width/2 - (191 + 44.4);
}

viewTracks.tween("_x",destViewTracks,.5,"easeInQua d");
viewTracks.alphaTo(100,.5,"easeOutQuad");

theTitle.text = selectedItem.descTitle;
theText.text = selectedItem.description;

theTitle.alphaTo(100,.5,"easeOutQuad");
theText.alphaTo(100,.5,"easeOutQuad");
}

//------------ ON UNRELEASED
function unReleased(whichPlayer)
{
// de-activate the invisible browseBack button
invBrowseBack._visible = false;

// sets the mp3SelectedOut var to true
mp3SelectedOut = true;
trace("mp3SelectedOut : " + mp3SelectedOut);

// delete the onRelease action that was set to call unReleased()
delete this.onRelease;

//unloads all the infos about the mp3 player
outPlayerDetail();

//----- determines which player do we unload
if(whichPlayer == undefined){
whichPlayer = this._parent;
} else {
whichPlayer = home.menuHolder["item"+myIndic];
}

//----- brings all the players back to the scrolling position
for(var i=0;i<numOfItems;i++)
{
var t:MovieClip = home.menuHolder["item"+i];
if(t != whichPlayer)
{
t.icon.brightness.alphaTo(0,1.5,"easeOutQuad");
t.r.brightness.alphaTo(0,1.5,"easeOutQuad");
lightOut.alphaTo(0,1.5,"easeOutQuad");
home.titleHolder.unloadMovie("title.swf"); // ( BMCC*81 )


}
else
{
t.tween("_xscale",75,1.5,"easeOutQuad");
t.tween("_yscale",75,1.5,"easeOutQuad");
t.tween("_x",t.xPos,1.5,"easeOutQuad");
t.tween("_y",t.yPos,1.5,"easeOutQuad",0,unReleased End);
home.titleHolder.loadMovie("title.swf", "_level10"); // ( BMCC*81 )
}
}
}

function unReleasedEnd()
{
trace("reactivating actions for the button after UNRELEASED");
for(var j = 0; j < numOfItems; j++)
{
var t:MovieClip = home.menuHolder["item"+j];
home.titleHolder.loadMovie("title.swf"); // ( BMCC*81 )
t.icon.onRollOver = Delegate.create(t.icon,over);
t.icon.onRollOut = Delegate.create(t.icon,out);
t.icon.onRelease = Delegate.create(t.icon,released);
}

home.menuHolder.onEnterFrame = mover;

// sets the mp3PlayerLoaded var to false
mp3PlayerLoaded = false;
trace("mp3PlayerLoaded : " + mp3PlayerLoaded);

// sets the mp3SelectedOut var to true
mp3SelectedOut = false;
trace("mp3SelectedOut : " + mp3SelectedOut);

// sets the selectedItem var to undefined
selectedItem = undefined;
trace ("selectedItem = "+selectedItem);
}

function outPlayerDetail()
{
//------- hides buttons for the playlist management
viewTracks.tween("_x",-300,.5,"easeInQuad");
viewTracks.alphaTo(0,.5,"easeOutQuad");

hideTracks.tween("_x",-300,.5,"easeInQuad");
hideTracks.alphaTo(0,.5,"easeOutQuad");

//--------- unloads the playlist swf
plLoader.unloadMovie();

//---- stops any playing sound
playerLoader.ns.pause(true);
playerLoader.ns.seek(0);

//---- switch off the mp3 player
playerLoader.gotoAndStop(39);

//---- makes the Title and Text of the player disappear
theTitle.alphaTo(0,.5,"easeOutQuad");
theText.alphaTo(0,.5,"easeOutQuad");
}

//------------ Moving the tooltip
function moveTip()
{
tooltip._x = _root._xmouse; //this._parent._x;
tooltip._y = 355;
}


//--------------------------------------------------------------------------------------
// FUNCTION TO MAKE THE MP3 MENU SCROLL
//--------------------------------------------------------------------------------------
function mover()
{
if(_ymouse > 250 && _ymouse < 365)
{
var xdist = _xmouse - Stage.width/2;
this._x -= xdist / 25;
}
else
{
if(_xmouse > centerX)
{
this._x -= speed;
}
else
{
this._x += speed;
}
}

if (this._x>= -600)
{
this._x = -1500;
}

if (this._x<= -1501)
{
this._x = -601;
}
//trace("my POsition = "+home.menuHolder._x);
}

//--------------------------------------------------------------------------------------
// FUNCTION TO MAKE THE MP3 MENU DISAPPEAR
//--------------------------------------------------------------------------------------
function explode()
{
// sets the mp3Exploding var to true
mp3Exploding = true;
trace("mp3Exploding : " + mp3Exploding);

//------------------------------------------------------------
//---------- if the menu of mp3 players is visible
if(playerVisible)
{
//stop the scrolling of the menu
// --- if the selectedItem is defined, we are currently viewing a player

if(mp3PlayerLoaded = true && selectedItem!= undefined)
{
// call the function that brings the player back in the menu
unReleased(selectedItem);

this.onEnterFrame = function()
{
trace("----- waiting for the selected player to unload before EXPLOSION ");
if(selectedItem == undefined){
// we are now ready to make all the menu disappear
explosion();
delete this.onEnterFrame;
}
}
}
// --- else the selectedItem is not defined, we are browsing the menu list
else
{
// we are now ready to make all the menu disappear
explosion();
}
}
//------------------------------------------------------------
//---------- else the menu of mp3 players is not visible
else
{
trace("menu of mp3 players is not visible, no explosion necessary !");

// sets the mp3Exploding var to false
mp3Exploding = false;
trace("mp3Exploding : " + mp3Exploding);
}
}

//--------------------------------------------------------------------------------------
// FUNCTION TO REMOVE THE MP3 MENU
//--------------------------------------------------------------------------------------
function explosion()
{
// initalize the counter of MP3
mp3count = 0;

trace("---- deactivating actions for the button while EXPLOSION ------");
for(var i=0;i<numOfItems;i++)
{
var t:MovieClip = home.menuHolder["item"+i];

//deactivate the buttons
delete t.icon.onRollOver;
delete t.icon.onRollOut;
delete t.icon.onRelease;

// we store the x and y position for each of the items of the menu
// to be able to bring back all the elements in place when needed.
t.xPos = t._x;
t.yPos = t._y;

// random target position
var tempNB:Number = randRange(0,1);
if(tempNB>0)
{
t.yBoom = tempNB * 1000;
}
else
{ tempNB = -1;
t.yBoom = tempNB * 1000;
}

// tweening all the players to their respective random target
t.tween("_y", t.yBoom, 0.5, "easeOutQuad", 0.05*i);
t.alphaTo(0,0.5,"easeOutExpo", 0.05*i,endExplosion);
}
}

function endExplosion()
{
mp3count++;

// if mp3count = numOfItems, all the players are out of the scene and unvisible,
if(mp3count >= numOfItems)
{
// sets the mp3Exploding var to false
mp3Exploding = false;

//sets the property of the menu to false
playerVisible = false;

trace("player visible : " + playerVisible);
trace("mp3Exploding : " + mp3Exploding);
trace("mp3 items are out of the scene and de-activated");
}
}

//-------- function to randomly choose a NB between 0 and 1
function randRange(min:Number, max:Number):Number {
var randomNum:Number = Math.floor(Math.random() * (max - min + 1)) + min;
return randomNum;
}

//--------------------------------------------------------------------------------------
// FUNCTION TO BRING BACK THE MP3 SCROLLING MENU
//--------------------------------------------------------------------------------------
function implode()
{
// sets the mp3Imploding var to true
mp3Imploding = true;
trace("mp3Imploding : " + mp3Imploding);

// initalize the counter of MP3
mp3count = 0;

//---------- if the menu of mp3 players is not visible
if(!playerVisible)
{
// brings back the mp3items at their initial state : _y = 0 , _alpha = 100;

for(var i=0;i<numOfItems;i++)
{
var t:MovieClip = home.menuHolder["item"+i];

t.tween("_y", 0, 0.5, "easeInQuad", 0.05*i);
t.alphaTo(100,0.5,"easeInQuad", 0.05*i,mp3ScrollBack);
}
}

//---------- else the menu of mp3 players is already visible
else
{
trace("menu of mp3 players is already visible, no implosion necessary !");

// sets the mp3Imploding var to false;
mp3Imploding = false;
trace("mp3Imploding : " + mp3Imploding);
}
}

function mp3ScrollBack()
{
mp3count++;

// if mp3count = numOfItems, all the players are back on the scene and visible,
if(mp3count >= numOfItems)
{
trace("---- reactivating actions for the button after IMPLOSION ------");

for(var i=0;i<numOfItems;i++)
{
// re-activating all the clicks state on the mp3 items
var t:MovieClip = home.menuHolder["item"+i];

t.icon.onRollOver = Delegate.create(t.icon,over);
t.icon.onRollOut = Delegate.create(t.icon,out);
t.icon.onRelease = Delegate.create(t.icon,released);
}
//sets the property of mp3Imploding to false
mp3Imploding = false;

//sets the property of the menu back to visible
playerVisible = true;

//re-activate the scrolling of the mp3 menu
menuHolder.onEnterFrame = mover;

trace("player visible : " + playerVisible);
trace("mp3Imploding : " + mp3Imploding);
trace("mp3 items are scrolling");
}
}

[CODE/]

Thanking you in advanced

Ugh... Secondary Nav
This is a little issue that is irritating me to say the least.

I have a main navigation that when you rollOver it, the secondary nav window alpha's in on top and then has various buttons within that. Each way that I've coded it, either I can only access the main navigation as a button, but not the secondary. So, I put the secondary nav within the main nav button not realizing that the button function for me main nav would take priority over any buttons within the secondary nav. How can I resolve this?



secondary (with mutiple button within)
----------------
main (when rolled over, it alpha's in the secondary above)
_______________


???

Run An .exe On Secondary Display
I am trying to run a projector file on a pc running windows xp with dual monitors attached. I want to run the projector on both diplays at the same time. Is it possible to do this? Is this something I have to script in the projector file? I do a fullscreen fs command, but is there a secondary screen command or anything??

thanks

XML From Secondary Site
I am having trouble getting my file to display this data from the location I am pulling the XML. It works fine locally but when I upload the file it does not load the XML. Does anyone know a way to have this date pull from the other server and display w/o it having to be a local machine flash file?

Running file locally on machine: Works perfect

Running file in browser while it is on the server: Fails miserably.

If this doen't make sense let me know I will try to clarify.


Code:
strTextLoad = "Loading XML Data..."
function boop(success){
TotalByte = xmlDoc.getBytesTotal();
ByteLoad = xmlDoc.getBytesLoaded;
rootXML = xmlDoc.childNodes[0].childNodes[0];
LengthXML = xmlDoc.childNodes[0].childNodes[0].childNodes.length - 8;
//strText = LengthXML;

for (i=8; i<=LengthXML; i++) {
nodes = rootXML.childNodes[i];
LengthNode = nodes.childNodes.length
for (j=0; j<=LengthNode; j++){

if (nodes.childNodes[j].nodeName == "title"){
nodeTitle = nodes.childNodes[j].firstChild.nodeValue
} else if (nodes.childNodes[j].nodeName == "link"){
nodeLink = nodes.childNodes[j].firstChild.nodeValue
} else if (nodes.childNodes[j].nodeName == "pubDate"){
nodePubDate = nodes.childNodes[j].firstChild.nodeValue
}

}
strTextLoad = ""
strText += "<a href='" + nodeLink + "' target='_blank'>" + nodeTitle + "</a><br>";
strText += " <font color='#cccccc'>(" + nodePubDate + ")</font><br><br>";
}
//strText = nodes.nodeType

}


xmlDoc = new XML();
xmlDoc.ignoreWhite = true;
xmlDoc.onLoad = boop
xmlDoc.load("http://64.4.59.143:80/stats/halo2rss.ashx?i=280350&k=1762491432");
stop();

Simple Prelaoder And Secondary SWF
Hi, I am pretty new to Flash (week 2 of my trial period) and have run up against a wall.

I have 2 SWFs: Main & Loaded. I want the main SWF to run a simple preloader whilst loading the second (loaded) SWF into level 1. This I have

done by inserting:
a stop action in frame 1 of the main SWF timeline
a simple MC ("loading....") into Frame 1 of the main SWF
a loadMovieNum (loaded.swf", 1); action into also into frame 1 of the main SWF

result: preloader plays whilst loaded movie is loaded, So far so good.
(the loaded movie has a stop action in frame 1 of its timeline so that even when loaded it does not play until instructed.)


What I then want to happen, and what I am having problems with, is for loaded SWF to begin playing and the Main SWF to gotoandplay frame 2 of the main SWF timeline (-root) only when the loaded.swf has fully loaded.

I have read through all the tutorials about simple and even complex preloaders but they all test root SWF and not external or secondary SWFs to see if they have loaded. I kind of figure there must be a way of doing this using ifFrameLoaded or _framesloaded >= _totalframes or even using getBytesTotal but I cant work out how.

The current site I have publshed without any of the above is at http://www.aparicio.dircon.co.uk/bulletin2/ and just has "loading ...." repeat itself 7 times whilst the second SWF downloads which is not really satisfactory in the long term.

Can anyone help?



[Edited by musicaltone on 02-21-2002 at 11:07 PM]

Secondary Projector Windows
I have created five seperate flash movies(large file sizes about 80MB) and exported them all as projectors. Each of them were intended to play by themselves as standalones. Now the client has requested I build a flash projector with an interface that will allow a user to access any of the other five projectors in order to put it on a cd-rom.

I need to launch a new projector from a running one how can I achieve this? I would appriciate any advice. Thank you.

SECONDARY LOADING In General
can someone help me out, still getting my head around flash mx (flash altogether realy...)

basically is it quicker to load the entire movie at start or should i load each pic (static) only when user prompts to view? ( i would prefer the latter but is it a headache?)

AND!

how do i go about it! with a percentage loader bar.
this is kinda a big ask ...
i also need to upload files for d/l ing, is that easy in flash?

i do wana learn this, but i do need help as no books or tut's on here go into all that and im willing to compensate for time (im in Sydney area)

example of what i mean, that i saw on this site: http://www.kleft.com

Secondary Animation Question
I am working in Flash CS3. I have a Flash animation question concerning secondary animation: I want to animate the body of a bird as well as the secondary motion of the the wings. The body is translated in straight line across the screen. However, his wings will be flapping independently but appear to be securely attached to the body. If I animate the wings in separate layers from the body I have to move and rotate each of the wings at each key. I am used to Maya where children can be parented to another moving object. Is there a Flash equivalent? What is the best way to set this up if I hope to do a “motion tween” to create smooth motion?
Thanks

Scroller Nav And Secondary Nav Issue
Both navs are working but when you roll over the mouse scroller panel and then back to the seconda navigation the panel x and y coords are not accurate.

when I rollOver the nav.b1, nav.b2 and so on the are about 40 _x to the right

here is my code.











Attach Code

import com.dragslidefade.Slide

var s: Slide = new Slide (panel, 1)

///////////////////////////////////////
///// Secondary Navigation
///////////////////////////////////////
nav.b1.onRollOver = function() {
s.moveClipTo(210, 8, 6);
nav.gotoAndStop(1);
gotoAndPlay(1);


};
nav.b2.onRollOver = function() {
s.moveClipTo(110, 8, 6);
nav.gotoAndStop(3);
gotoAndStop(3);


};
nav.b3.onRollOver = function() {
s.moveClipTo(0, 8, 6);
nav.gotoAndStop(5);
gotoAndStop(5);


};
nav.b4.onRollOver = function() {
s.moveClipTo(-100, 8, 6);
nav.gotoAndStop(7);
gotoAndStop(7);


};
nav.b5.onRollOver = function() {
s.moveClipTo(-190, 8, 6);
nav.gotoAndStop(9);
gotoAndStop(9);


};
nav.b6.onRollOver = function() {
s.moveClipTo(-310, 8,6);
nav.gotoAndStop(11);
gotoAndStop(11);

};




///////////////////////////////////////
///// Panel Scroller
///////////////////////////////////////
panel.onRollOver = panelOver1;
function panelOver1() {
panel.onEnterFrame = scrollPanel1;
delete panel.onRollOver;
updateAfterEvent();
}
var b = stroke.getBounds(_root);
function scrollPanel1() {
if (_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
delete panel.onEnterFrame;
panel.onRollOver = panelOver1;
updateAfterEvent();
}
if (panel._x>=200) {
panel._x = 200;
}
if (panel._x<=-306) {
panel._x = -306;
}
var xdist = _xmouse-416;
panel._x += -xdist/12;
}

























Edited: 03/22/2007 at 10:19:52 AM by breez11

Rollover Secondary Effect
I'm trying to replicate this effect here: http://www.bambu.ca/location/index.html
(Click on Restaurants and Cafes, then rollover one of the listings).

The rollover effect on the text is simple obviously, but the secondary effect on the map itself is stumping me. Any tutorials that would explain this?

Set Secondary Broser? [renamed]
Is there anyway you can create a customized second browser window using flash and be able to test it not being on a server. I'm having a really difficult time. I'm an animator and the technicla part is really getting me.

Secondary Mouse Click Detectors?
Hello,

I was reading through O'Reilly's Actionscript book and couldn't come across a mouse listener that detects secondary (right) click events.

Is there any that could do that?

Kevin

Secondary Browser Window Size
hello. I am using buttons in a base (navigation) .swf to open up photos (also swf's) in secondary browser windows. how can i get the size of the secondary browser window to match the size of the swf inside of it...?
also,
is there anyway to get rid of the menu options in the secondary browser window..?

** i am making .htm files in dreamweaver from the .swf's.. should i put this code in flash or dreamweaver?? ***

thank you! -ryan

www.landslideinteractive.com (samples / photo)

Secondary Browser Window Size
secondary browser window size
hello. I am using buttons in a base (navigation) .swf to open up photos (also swf's) in secondary browser windows. how can i get the size of the secondary browser window to match the size of the swf inside of it...?
also,
is there anyway to get rid of the menu options in the secondary browser window..?

** i am making .htm files in dreamweaver from the .swf's.. should i put this code in flash or dreamweaver?? ***

thank you! -ryan

www.landslideinteractive.com (samples / photo)

Secondary Browser Window Size
secondary browser window size
hello. I am using buttons in a base (navigation) .swf to open up photos (also swf's) in secondary browser windows. how can i get the size of the secondary browser window to match the size of the swf inside of it...?
also,
is there anyway to get rid of the menu options in the secondary browser window..?

** i am making .htm files in dreamweaver from the .swf's.. should i put this code in flash or dreamweaver?? ***

thank you! -ryan

www.landslideinteractive.com (samples / photo)

[CS3] Retrieving Secondary Monitor Resolution?
Hello All,

I'm trying to develop a Flash demo that will dynamically scale according to the user's monitor resolution. I realize I can use System.capabilities.screenResolution (X and Y) to retrieve the resolution of the primary monitor [the monitor where the taskbar is on Windows and the Dock on OSX], but I have not found a way to get that information for a secondary monitor.

Many of my clients are beginning to connect their laptops to plasma TVs (which are of differing resolutions) to show their demos. Is there any way I can get the res for the external monitor without having my clients change their system prefs to set the external monitor as the primary?

I'm exporting as .exe and Mac Projector formats; not swf's within a browser.
I'm using AS2 currently, and would rather not have to re-program the whole thing in AS3. But I would definitely consider it if there's no other option.

Any/all help greatly appreciated

Thanks ahead for you time!

Trying To Create Secondary Back Button
All I am trying to do is create a flash button that will act as a secondary Back Button like the one in the browser. How do I retrieve the previous htm page that the browser was on and display it upon clicking the button (MX 2004)?

I apologize if this question is a no brainer. Everytime I try to search for a tutorial on the subject I keep coming back to the Robert Penner model. While it is very impressive, I am not looking to enable my back button to remember flash pages.

Thank you for your time.

Thumbnail Scroller W/ Secondary Navigation
I have this code that scrolls my thubnails depending on the location of my mouse. The issue is it is suppose to disable when I rollOut of the hit area. I have a second navigation I want to controll the thumbnail also located on the left. How can completely disable the scroll script once I have rolled out and enable it agian once I am over it. Here is my code.









Attach Code

///////////////////////////////////////
///// Panel Scroller
///////////////////////////////////////
panel.onRollOver = panelOver1;
function panelOver1() {
this.onEnterFrame = scrollPanel1;
delete this.onRollOver;
updateAfterEvent();
}
var b = stroke.getBounds(_root);

function scrollPanel1() {
if (_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
this.onRollOver = panelOver1;
delete this.onEnterFrame;
updateAfterEvent();
}
if (panel._x>=200) {
panel._x = 200;
}
if (panel._x<=-306) {
panel._x = -306;
}
var xdist = _xmouse-416;
panel._x += -xdist/12;
}

Primary / Secondary Colour Picker
Hi,

I am trying to create a small program where you can change the colours of a static characters t-shirt on the fly.

Ideally I would like there to be 2 sections of editable colour, primary and secondary (e.g the sleeves of the shirt secondary colour, main area of shirt primary) and both to be changed using some sort of colour picker. I am absolutely lost as to how I would go about this, any help would be much appreciated,

Thanks

-David

Preventing Secondary Browser Window Popup
I have discovered a curious problem with using the following code to launch a popup window from my FLASH movie, which I have converted to a PC wallpaper using SWF Desktop. Perhaps someone has a suggestion for a solution.

Here's the code in question:

on (press) {

storynum = _root.newsWin.storyid;

storyURL = 'http://000.000.000.000/flash/flash_printNews.cfm?storyid=' + storynum,
getURL("javascript:window.open('"+storyURL+"','',' toolbar=no,location=no,directories=no,status=yes,m enubar=no,scrollbars=yes,resizable=no,width=600,he ight=400,left=200,top=25');void(0);")

}

When I click the "Print Story" button on the wallpaper, Flash launches two browser windows. The top window is sized to the parameters defined by the window.open action. But beneath this is a standard browser window with the word [object].

I thought that by adding the void(0) function, this would prevent the second window from launching, but in this case, it doesn't.

Incidentally, the above code does display the selected news story. I just need to figure out how to prevent the second window from opening.

Suggestions?

Help With Secondary Actions When The User Clicks On A Button
my problem is this... i have 3 nav buttons in an array... basically which ever button i click on becomes the curBtn. its in the curBtn.onRelease = function() { where i want other things to happen, for example.. which ever button you click on, i want a second nav to update to that buttons name..

basically i just want to make other actions happen when the new curBtn is selected..

the 3 if statements near the end of my code is another example of what i want to happen if the new curBtn is selected..

heres my code...

function initNavBar(obj:MovieClip) {

obj.navBar.gotoAndPlay("build");

obj.navBar.pinkArrow.gotoAndPlay("buildArrowPink") ;

obj.navBar.brownArrow.gotoAndPlay("buildArrowBrown ");


var lastClicked:MovieClip;
var lastClickedBrownArrow:MovieClip;

var navArray:Array = new Array();

navArray.push("introButton");
navArray.push("blueCollarButton");
navArray.push("questionButton");

// Loop through nav button array & initialize handlers
for (var i = 0; i < navArray.length; i++){

var curBtn:MovieClip = obj.navBar[navArray[i]];

var brownArrow:MovieClip = obj.navBar.brownArrow;

// Set default button
if (i == 0) {
curBtn.select = true;
lastClicked = curBtn;
lastClickedBrownArrow = brownArrow;
curBtn.gotoAndStop("released");


} else {
curBtn.over = false;
curBtn.select = false;
}

curBtn.onRollOver = function() {
if (this.over) {
this.over = false;
} else {
this.over = true;
}
if (!this.select) {
this.gotoAndPlay("rollOver");

}
}

curBtn.onRollOut = curBtn.onReleaseOutside = function() {
if (this.over) {
this.over = false;
} else {
this.over = true;
}
if (!this.select) {
this.gotoAndPlay("rollOut");
}
}

curBtn.onRelease = function() {
if (!this.select) {
this.select = true;
this.gotoAndStop("released");
lastClicked.gotoAndPlay("rollOut");
lastClicked.select = false;
lastClicked = this;

if (curBtn = obj.navBar[navArray[0]]) {
brownArrow = _level0.moveBrownArrow(-20);
}

if (curBtn = obj.navBar[navArray[1]]) {
brownArrow = _level0.moveBrownArrow(65);
}

if (curBtn = obj.navBar[navArray[2]]) {
brownArrow = _level0.moveBrownArrow(230);
}



}
}
}
}

Background/primary Swf Auto-loading Secondary/foreground Swf On Site Access?
ok i am building a website in Flash MX. my index.html loads up home.swf automatically (which is the background of my site with a navigation), but i want home.swf to load news.swf automatically when someone enters the site.

---
for example:

when i enter my website home.swf is running in the background while news.swf is running on top of it. then when someone clicks another section news.swf goes away and othersection.swf is on top of home.swf

basically home.swf is always in the background but i want news.swf to load up automatically on the foreground when someone enters my site

Functioning Grid
I posted this before, but got no answer. Maybe some more info is in order.

I've been unable to find any tutorials or info regarding the use of a grid. I want to define a grid not unlike one in a chess game. I want to be able to move pieces around (and ultimately save their position). However, I have no idea how to define such a grid in Actionscript. The best example I have is a connect four game I d/led as an example. The following code defines the game grid...

// connect4 jim burton mar 2002 j.b@dynamitechicken.com
// initialise the array of places on the board
// Define 2D array object of the form places[row][column]
// with properties
// x: positions x pos
// y: place's y pos
// state: (empty, red, yellow) the status of each
places = new Array(7);
for (var r = 0; r<7; r++) {
// new row
places[r] = new Array(7)
for (var k = 0; k<7; k++) {
// new column
places[r][k] = new Object()
places[r][k].x = 65+(k*50)
places[r][k].y = 85+(r*50)
places[r][k].state = "empty"
}
}
emptySpaces = 49


its pretty apparent how the Array and For loops work to create the the rows and columns. What part confuses me is "places [r][k] = 65+(k*50)" and the other line below it. Exactly what does this do?

If anyone can explain this to me, or show me a better way to establish a grid, I'd be most grateful.

Flash Not Functioning On The Mac
Pardon me if this has been explained before, but I have a site that's been tested in IE and NN down to the 4.0 level and works fine on the PC. However, on the Mac it seems to work only erratically. Some can use it with IE5, others can't.

I'm using a preloader and a passive sniffer to detect a flash 5.0 player. The site does use flash 6.0 (need a sniffer for that)

The URL is http://www.minneapolisroads.com

If anyone has an idea of what's going on please do give me a shout.

This.onLoad = Functioning?
I just discovered, and really like putting

this.onEnterFrame = function(){
MakeMagic("now");
}

on the 1st frame of a MC. Much better than onClipEvent(enterFrame){ on the outside of the MC when you have lots of duplicates of the MC, and want to make changes to all of them. yeah.

but, this.onLoad = function(){ isn't working for me like an onClipEvent(load){ should. waa.

?

[CS3] Functions Not Functioning
Can any one tell me why this don't work?

function buttonAction(buttonName:MovieClip, buttonMove:String) {
buttnName.gotoAndStop(buttonMove);
}

aboutButton.onRollOver = function() {
buttonAction(aboutButton, over);
};


Thanks

RSB

NetDebug Not Functioning
I'm trying to get one of the packaged tutorials running on our FLASH COMM SERVER, "tutorial_hello".

Initially, when testing I couldn't get anything to function because I received an error message due to the inclusion of the "#include netDebug.as". I received an error indicating the script could not be found (using V8 Pro).

I decided to comment out the include request to see how the swf would behave...well...I can connect to the server ("Net Connection success") but do not receive anything back from the server.

So, now I'm back to debugging. After reading a number of threads from others who have experienced what I'm currently going through, I found info suggesting the download of the newest version of the "FLASH REMOTING COMPONENTS". After doing so, I still get the error message. On a fluke, I decided to see if the components installed - no luck.

I've since found a Macradobia tech note explaining that V8 does not install with these tools for some reason. As a work around I have decompiled the exe containing these scripts and attempted to place them mannually in the proper directory. Still no success

ANYONE HAVE A CLUE HOW TO GET THESE TOOLS TO FUNCTION?

THANKS!

AttachMovie Not Functioning?
I am trying to write a script that attaches a loading bar when the clipListener does onLoadInit. For some reason the attachMovie action I have added does not work but the code looks correct to me.

Is there some kind of error with my code here?


Code:
Stage.align = "LT"
Stage.scaleMode = "noScale"

var clipListener:Object = new Object();
var clipLoader:MovieClipLoader = new MovieClipLoader();

clipLoader.loadClip("port.swf", this.contentMC)
clipLoader.addListener(clipListener)

clipListener.onLoadInit = function(target_mc:MovieClip){
var loadingmc:MovieClip = this.createEmptyMovieClip("loadingmc", this.getNextHighestDepth())
loadingmc.attachMovie("loader", "loadermc", 1)
loadingmc._x = 425
loadingmc._y = 325
}

clipListener.onLoadProgress = function(imageClip:MovieClip, loaded:Number, total:Number){
percent = (loaded/total)*100
var percentText:Number = Math.round(percent)
//trace(percent)
}

clipListener.onLoadComplete = function(imageClip:MovieClip){
//removeMovieClip(loadingmc)
}

Functioning .swf And No .html
I've just completed writing a sizeable program in Flash. When I publish it, I end up with an .swf file that's pretty much perfect - and an .html file that does virtually nothing at all.

The program uses a simple graphical interface to display text loaded in as xml data to the user.

If I publish using the default settings, I end up with the graphical interface visible - but none of the xml loads. If I override the default with a manually coded <param name="base"> tag to specify the absolute filepath, I end up with a file and xml which is visible on my home computer, but which disappears entirely (including the graphical interface) when I attempt to view it over the web.

I know this sounds like a security problem - but the xml files are actually stored in the same folder as the .swf and .html files themselves, so it's not a question of cross-domain problems...

Has anyone run into anything like this?

Frames Not Functioning On A Mac.
Hey guys,

so, really basic layout; been done a million times; top frame = flash navigation, bottom frame = html content.

I understand the basic concept of:


ActionScript Code:
on (release) {
    getURL("home.html", "dynamic");
}


"dynamic" being the name of my lower frame. All is great on a PC, but when tested on a Mac, all of the links are dead.

Any ideas? I've browsed the site forever and have come close to answers, but not quite there yet. Any suggestions would be amazing.

http://www.audioproinc.com/dev

Combo Box Not Functioning
Hello. I'm loading a flash movie (2.swf) into a main flash container movie(main.swf). 2.swf has a combo box component that works fine independently, but when loaded into the main.swf the combo box is not functional. Is this normal combo box behavior or is there a glitch within flash? I need this combo box to work being loaded into the main.swf movie.
Thanks!

Swf Functioning Very Very Very Slow
Hi
i`m building a site that loads external swf. after i built it i started to work on the external swf. after one was finished i managed to load it, and all seem well.
a week and a half has past and i wanted to load other swfs i created. but (before i did anything) the site it self is functioning very very slowly.
i checked the size: 52.0 KB.

does anybody has any idea? or had the same problem? the only difference is the passing time, but this is aging on drugs:)

best regards

ron

Buttons Not Functioning~
I had the buttoms working but as soon as i converted them into movie clips to spice them up they don't seem to excecute the button anymore, im using the code from voetsjoba tutorial transitions between external swf's

can anyone help me out with this???

the links is www.a2-media.cjb.net

Thanks!

Site Not Functioning In IE?
I need some help!

I built this site about a year ago for a photographer. I am on a Mac, and she just recently started complaining that the site doesnt work on her PC. She says that after the home page, and page that she goes to gives her an error message? I dont have a PC to look at. Could it be something with IE7 and my Flash detection script? Any help would be GREATLY appreciated.

Cameron

http://duluthphotographer.com/

http://duluthphotographer.com/weddings.html

For Loops Not Functioning How I Want It - Help Plz
ActionScript Code:
var cityArray:Array = new Array();cityArray[0] = "southland";cityArray[1] = "otago";cityArray[2] = "westland";cityArray[3] = "sthCanterbury";cityArray[4] = "nthCanterbury";cityArray[5] = "buller";cityArray[6] = "marlborough";cityArray[7] = "nelson";cityArray[8] = "wellington";cityArray[9] = "manawatu";cityArray[10] = "hawkesbay";cityArray[11] = "taranaki";cityArray[12] = "eastCoast";cityArray[13] = "centralNorth";cityArray[14] = "bop";cityArray[15] = "waikato";cityArray[16] = "auckland";cityArray[17] = "northland";var startNumber:Number = 0;for (var createLinks:Number = 0; createLinks<cityArray.length; createLinks++) {    _root.nzmap_mc[cityArray[createLinks]+"_mc"].onRelease = function() {        var thisNumber:Number = _root.startNumber;        trace(thisNumber);        //Play Animation        //_root.nthCanterbury.play();        //Disable Map        //mapEnable(false);        //Fade Map        //fadeOut(nzmap_mc);    };    _root.startNumber++;}


What have I done wrong? I'm trying to give each mc it's own number based on the name position in the array etc etc - It returns 18 for all of them when I click them one at a time.

Please Help

RemoveMovieClip Not Functioning
I am have problems with the removeMovieClip() function;

I have tried several methods to get the function to work. see below


Code:

newThis.removeMovieClip();
newThis.unloadMovie();
unloadMovie(newThis);
newThis.unloadMovie;
removeMovieClip(newThis._parent["bullet_mc"+nStoredLocation]);
none of them seemed even remotely effective.
I created the movieclip dynamically so the removeMovieClip function should work.

Below is the code for my Movie Clip


Code:
//seperates this movieclip from the parent from which it is duplicated from (now bRequestRotation)
//var bBulletActive:Boolean = new Boolean(false);
//dynamically changes the bullet velocity.(not in use)
//var nBulletVelocity:Number = new Number(5);
//a number that is set by the parent mc.
var nBulletAngle:Number;
//starting value for the timer
var nTimer:Number = new Number(0);
//timer function based on 12fps about a sec.
var nTimerMax:Number = new Number(15);
var newThis = this;
//stores the movieclips number which is also the clip's depth
var nStoredLocation;
//boolean which is activated by a parent movieclip
var bRequestRotation;

function fRequestRotation()
{
//trace("fRequestRotation Running")
//trace("Bullet: "+ newThis);
if(bRequestRotation == true)
{
//mathematical function run for the duration(AKA, the bullets movement)
if(nTimer<nTimerMax)
{ //converts degrees to radians which is handled by flash
nBulletRadian =(nBulletAngle/180)*Math.PI;
//calculates the speed
dy=(15*Math.sin(nBulletRadian));
dx=(15*Math.cos(nBulletRadian));

//pointer to this clip; moves it horizontally and vertically
newThis._x+=dx;
newThis._y+=dy;

//["bullet_mc"+nStoredLocation]
//trace("dx: "+dx +" Loaction X: "+this._x);
//trace("dy: "+dy+" Loaction Y: "+this._y);
//progresses the timer variable
nTimer++;
}

if(nTimer>nTimerMax)
{
//removes this interval
clearInterval(iRequestRotation);

//removes movieclip
newThis.removeMovieClip();
newThis.unloadMovie();
unloadMovie(newThis);
newThis.unloadMovie;
//trace("Location: "+newThis._parent["bullet_mc"+nStoredLocation])
removeMovieClip(newThis._parent["bullet_mc"+nStoredLocation]);

//setTimeout an undocument Function calls the function once after a time delay
//setTimeout(fUnloader,1000);

trace("Movie Unloaded");
}
trace(newThis);
}
}
//sets an interval that is activated on startup
var iRequestRotation = setInterval(fRequestRotation, 1000 / 12);
i've tried everything i can think of any help at all would be greatly appreciated.

[AS 2.0] RemoveMovieClip Not Functioning
I am have problems with the removeMovieClip() function;

I have tried several methods to get the function to work. see below


Code:
newThis.removeMovieClip();
newThis.unloadMovie();
unloadMovie(newThis);
newThis.unloadMovie;
removeMovieClip(newThis._parent["bullet_mc"+nStoredLocation]);
none of them seemed even remotely effective.
I created the movieclip dynamically so the removeMovieClip function should work.

Below is the code for my Movie Clip

**THERE WAS A BUG I EDITED THIS CODE POST**

Code:
//seperates this movieclip from the parent from which it is duplicated from (now bRequestRotation)
//var bBulletActive:Boolean = new Boolean(false);
//dynamically changes the bullet velocity.(not in use)
//var nBulletVelocity:Number = new Number(5);
//a number that is set by the parent mc.
var nBulletAngle : Number;
//starting value for the timer
var nTimer : Number = new Number (0);
//timer function based on 12fps about a sec.
var nTimerMax : Number = new Number (15);
var newThis = this;
//stores the movieclips number which is also the clip's depth
var nStoredLocation;
//boolean which is activated by a parent movieclip
var bRequestRotation;
function fRequestRotation ()
{
//trace("fRequestRotation Running")
//trace("Bullet: "+ newThis);
if (bRequestRotation == true)
{
//mathematical function run for the duration(AKA, the bullets movement)
if (nTimer < nTimerMax)
{
//converts degrees to radians which is handled by flash
nBulletRadian = (nBulletAngle / 180) * Math.PI;
//calculates the speed
dy = (15 * Math.sin (nBulletRadian));
dx = (15 * Math.cos (nBulletRadian));
//pointer to this clip; moves it horizontally and vertically
newThis._x += dx;
newThis._y += dy;
//["bullet_mc"+nStoredLocation]
//trace("dx: "+dx +" Loaction X: "+this._x);
//trace("dy: "+dy+" Loaction Y: "+this._y);
//progresses the timer variable
nTimer ++;


if(nTimer>nTimerMax)
{ //removes this interval
clearInterval(iRequestRotation);

//removes movieclip
newThis.removeMovieClip();
newThis.unloadMovie();
unloadMovie(newThis);
newThis.unloadMovie;
//trace("Location: "+newThis._parent["bullet_mc"+nStoredLocation])
removeMovieClip(newThis._parent["bullet_mc"+nStoredLocation]);

//setTimeout an undocument Function calls the function once after a time delay
//setTimeout(fUnloader,1000);

trace("Movie Unloaded");
}
trace(newThis);
}
}
//sets an interval that is activated on startup
var iRequestRotation = setInterval(fRequestRotation, 1000 / 12);
i've tried everything i can think of any help at all would be greatly appreciated.

AS Not Functioning In Buttons
I'm following this tutorial link . I got to about page 5 when the codes provided stopped working for me. If you look at the finished site, there's an animation for each button and the animation is detailed in the actionscript. However, I only get the "opening" animation, where all of the buttons fly into the center so that they are clickable. None of the other buttons seem to work. If you can offer any advice on how to get those navigation animations working, I'd be wonderfully pleased. I have all of the given codes in the proper places, so I'm not sure what could cause the issue. I can provide any other information that you need, as well as my .fla files. Thank you for helping with my first flash site.

Buttons Not Functioning~
I had the buttoms working but as soon as i converted them into movie clips to spice them up they don't seem to excecute the button anymore, im using the code from voetsjoba tutorial transitions between external swf's

can anyone help me out with this???

the links is www.a2-media.cjb.net

Thanks!

Function() Not Functioning
Hi,
When I try to call function from MC by using on(release) it doesn't work. Why?

Ex:
function navi(){
trace(_currentframe);
}

//========Calling from MC======
on(release){
navi();
}
//=======doesn't work=========


//========Calling from button object======
on(release){
navi();
}
//======it work=====================


WHY?

Calculation Not Functioning
Hey. . I am trying to get a simple calculation going in flash....

I have created an input text box (variable name: ageVAR) and a dynamic text box (variable name: LuckyNumVAR) on the first frame of the same layer. Also there I have put a button and in the 'action button' section my code is:


Actionscript Code:
on (release) {    LuckyNumVAR = Number (ageVAR) + 2;}

however when I test the movie, rather than doing the calculation it reads
Quote:




NaN




in the dynamic text box. I cannot figure out why - does anyone have any ideas>?

OnLoad Not Functioning
i've got a tween that is supposed to occur right when the movie clip loads. If i call it with an onRelase it works...but when i call it with onLoad it just sits there...what am i doing wrong?

ActionScript Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
box_mc.onLoad = function(){
myMoving(box_mc)}
myMoving = function (anything) {
    var myMove:Tween = new Tween(what, "_x", Strong.easeIn, 320, 100, .8, true);
};

My Button Is Not Functioning .. What's Wrong With Me ..?
ok here's the situation ..

i have a mainpage.swf with several other files links to it ..
every files have its own BACK button to allow the user to go back to the mainpage.swf ..
on the mainpage.swf, i embedded a looping sound to play continuously ..

my problem is ..
my BACK button is not functioning everytime i click it to go back to the mainpage.swf ..
does it because of the level i used on the actionscript ..

fyi, on the mainpage.swf .. i used this :

on (release) {
loadMovieNum("one.swf", 0);
}

to link the mainpage.swf to one.swf file ..


on the BACK button, i used :

on (release) {
loadMovieNum("mainpage.swf", 4);
}


for the sound played, i called it from external swf which is :

on (release) {
loadMovieNum("soundtrack.swf", 20);
}

pls help to clarufy my problem ..

Preloader Not Functioning As Expexted
Hi again,

already posted this but the replies didn't work out for me. I've tried numerous approaches but none did the job.

Thingy is, I got a big swf file with lots of symbols(which are ALWAYS loaded in the first frame), so I can't put the preloader into the first two frames of my swf since it just doesn't load before the main movie. Same with different scenes within one movie.

Therefore I tried flashbax approach.
Created a separate preloader.swf with two frames. Within these two frames some small movies are displayed to show the connection is still downloading.

Actionscript for first frame:

_root.createEmptyMovieClip("wachstum", 1);
_root.wachstum.loadMovie("wachstum.swf");

if (_root.wachstum.getBytesLoaded() >= _root.wachstum.getBytesTotal());
{
_root.loadMovie("wachstum.swf");
}

Actionscript second frame:

gotoAndPlay(1);

Problems: Everytime I upload this on the server and load the site via web, there is just blank white space and the "wachstum.swf" doesn't load as expected.
If I trace _root.wachstum.getBytesLoaded() and _root.wachstum.getBytesTotal()) Flash MX returns 0 for both, which can't be true, at least for the second one.

If anyone can provide a working fla sample file I would be grateful
. I have been laborating with this bugger for two weeks now. And please don't point me to one of those preloader tutorials, the ones I've seen are not oriented practically since none of these has as much symbols as the average real life file.

Thanks for reading.

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