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




It Doubts With Xml As To Rescue To A Sub Sub Menu



that such friends

they can help me to resolve a dilemma with xml

I have already created a menu xml flash and with submenus and all. This walks of wonder, but now I have another problem, that al submenu be added him another submenu that is to say a subsubmenu.

then where it says
<submenu id="SUBMENU" link=""></submenu>

add
<submenu id="SUBMENU01" link="">
<subsubmenu id="subsubmenu01" link=""></subsubmenu>
</submenu>

But from flash not itself as to call it so that this hidden one the SUBSUBMENU and that al to pressure (onpress) my SUBMENU unfold the SUBSUBMENU

it helps friends

reference this in
http://www.betriebsraum.de/
download treemenu

The serious idea as that menu but the contrary thing that this closed the submenu and that al to pressure believes my subsubmenu.

PD:
my xml is called: menu.xml

***************
<?xml version="1.0" encoding="UTF-8"?>
<XMLmenu>

<encabezado id="MENU01" link="">
<submenu id="SUBMENU01" link=""></submenu>
<submenu id="SUBMENU02" link="">
<subsubmenu id="subsubmenu01" link=""></subsubmenu>
<subsubmenu id="subsubmenu02" link=""></subsubmenu>
<subsubmenu id="subsubmenu03" link=""></subsubmenu>
</submenu>
<submenu id="SUBMENU03" link=""></submenu>
<submenu id="SUBMENU04" link=""></submenu>

</encabezado>

<encabezado id="MENU02" link="">
<submenu id="SUBMENU05" link=""></submenu>

</encabezado>

<encabezado id="MENU03" link="">
<submenu id="SUBMENU06" link=""></submenu>

</encabezado>

<encabezado id="MENU04"link=""></encabezado>

<encabezado id="MENU05"link="">
<submenu id="SUBMENU07" link=""></submenu>

</encabezado>

<encabezado id="MENU06"link=""></encabezado>

<encabezado id="MENU07"link=""></encabezado>

<encabezado id="MENU08"link=""></encabezado>

<encabezado id="MENU09"link=""></encabezado>

<encabezado id="MENU010"link=""></encabezado>

<encabezado id="MENU011"link=""></encabezado>

</XMLmenu>
**************************************************

INCLUDING FLASH

It HELPS!! master



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 02-23-2007, 09:20 PM


View Complete Forum Thread with Replies

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

Two Basic Doubts Doubts FLASH
I have two doubts related with "loadMovie" action and fscommand("quit");.

1. I have created a flash file with 600 Pixels W x 400 Pixels H. If I want to load a very small sized MC (say small.swf with 300 Pixels W x 200 Pixels) in the MAIN MOVIE'S EXACT CENTRE, what code I have to include? If jsut give the loadMovie action to it, the target .swf file will appear in the top right side of the main movie's stage.

2. Another doubt is in FlashMX the action "fscommand("quit");" does not work. But in Flash 5 it works smoothly. Can anybody explain it why?saintthomas@rediffmail.com

Someone To The Rescue Please
hi i was wondering if someone could help me with code?

i have buttons on the main stage which i want to control the loading of a movie clip in to a container movie clip on the stage. however, i want to fade in (alpha 0>100) each clip on press of one of the buttons, and fade out the current movie clip in the container (100>0).


Code:
b1.buttText.buttonText.text = "ABOUT US";
b1.onPress = function() {
function which loads clip "x" on fade + unloads current clip "y" with fade out
};
i have the buttons "nested" within a container movie clip on the stage as there are some transitions applied to the buttons, not sure how this would affect the potential code.

hope someone can help!

Oldnewbie To The Rescue?
I use a datefield component in MX2004,

for some reason, when i have a main MC load an external MC containing the datefield, the popup chooser shows no dates what so ever to choose from,,just the curser where the mouse hits, then if u click on the chooser,, the date shows up in the box.

When I use the datefield in the MAIN MC, it works fine,,, so there has to be a problem when its being loaded in via an ext MC.... any help here?

Thanks

I'm A Newb, Someone Come To My Rescue?
Hey folks, I know this is prolly a really stupid question, but I've never used Flash MX before. I am trying to insert a hyperlink into a button. What happens is, when I preview it, the link will work, however, when I put it on my site, it won’t work. The link is there, the button just wont work. Also, the graphic messes up slightly. Could someone please tell me the proper way to go about inserting a hyperlink?

thanx in advance for anyone who chooses to gimme a hand.

Oldnewbie To The Rescue....
Hey those links were great, but sparked up a few questions.

This is my page...
http://www.expertappeal.com/indexFlash.html

what I want is when they click on portfolio, then photography, a blue page will fade in and cover everthing with the same blue as the background (but 85% opacity) and then thumbnails and all that stuff. That swf file needs to be 1024x768 and enbeded into a new HTML page where the properties are set correct?

Then from the my current menu it would just be open a new window right?

Thanks

Need AS Rescue Team
I need your help..... I am a graphic artist trying to be a web designer and it's not working! I am constructing a website where I have a navigation menu nested within a movieclip. On each button click I want the current content to fade out and the new content to fade in. Content consists of new imagery and text. Now since I have these buttons nested within a MC I realize I'm unable to simply use simple gotoAndPlay because it will not be referencing the main timeline. Forgive my AS ignorance, can someone please lend some knowledge?

Currently I am using loadmovie to bring in fresh content, but I know this is unnecessary and also inefficient being that I have embedded fonts in each swf!

thank you.

Need AS Rescue Team
I need your help..... I am a graphic artist trying to be a web designer and it's not working! I am constructing a website where I have a navigation menu nested within a movieclip. On each button click I want the current content to fade out and the new content to fade in. Content consists of new imagery and text. Now since I have these buttons nested within a MC I realize I'm unable to simply use simple gotoAndPlay because it will not be referencing the main timeline. Forgive my AS ignorance, can someone please lend some knowledge?

Currently I am using loadmovie to bring in fresh content, but I know this is unnecessary and also inefficient being that I have embedded fonts in each swf!

thank you.

IS THIS POSSIBLE(Javascript Experts To The Rescue)
Can I have a text field in my movie and have an external javascript for the current date display in that text field..

Means that can I write an external javascript file which gives me the current system date and this date is to be displayed in my text field in my Flash movie...I think its possible but can someone help me how....I think this can be done by calling an external .js file or sumthing...not sure though

This is because I have to do this thing using Flash 4.0 only

Thanks in advance
Pranster

Hittest Problem, Someone Rescue Me
Okay so I have this code I rote for my flash game. A problem for you more advanced coders. It's confusing what I rote below but give it a shot and if anyone at all has any comments feel free to voice yourself. I shall also attach a SWF version of it in its current state.


Code:
onClipEvent (enterFrame) {
//BG movment
if (Key.isDown(Key.DOWN)) {
this._y -= 8;
for ( i = 1; i <= 95; i++) {
if(_root.feet.hitTest(this["a"+i]))
{_y += 8;}
}
}
if (Key.isDown(Key.UP)) {
this._y += 8;
for ( i = 1; i <= 95; i++) {
if(_root.feet.hitTest(this["a"+i]))
{_y -= 8;}
}
}
if (Key.isDown(Key.RIGHT)) {
this._x -= 8;
for ( i = 1; i <= 95; i++) {
if(_root.feet.hitTest(this["a"+i]))
{_x += 8;}
}
}
if (Key.isDown(Key.LEFT)) {
this._x += 8;
for ( i = 1; i <= 95; i++) {
if(_root.feet.hitTest(this["a"+i]))
{_x -= 8;}
}
}
}

onClipEvent (enterFrame) {
//mask movment
if (Key.isDown(Key.DOWN)) {
_root.MASK._y -= 8;
for ( i = 1; i <= 95; i++) {
if(_root.feet.hitTest(this["a"+i]))
{_root.MASK._y += 8;}
}
}
if (Key.isDown(Key.UP)) {
_root.MASK._y += 8;
for ( i = 1; i <= 95; i++) {
if(_root.feet.hitTest(this["a"+i]))
{_root.MASK._y -= 8;}
}
}
if (Key.isDown(Key.RIGHT)) {
_root.MASK._x -= 8;
for ( i = 1; i <= 95; i++) {
if(_root.feet.hitTest(this["a"+i]))
{_root.MASK._x += 8;}
}
}
if (Key.isDown(Key.LEFT)) {
_root.MASK._x += 8;
trace("inital movement");
for ( i = 1; i <= 95; i++) {
if(_root.feet.hitTest(this["a"+i]))
{_root.MASK._x -= 8;trace("cease movement");}
}
}
}
The first part for the Background works fine, the principal is that this code is on the background movie clip and it controls the mask movie clip. _root.feet is a simple movie clip to test if the man is walking into a wall (“a”+I). The man is stationary and the background and mask move around him, when he hits a wall, they stop moving.

The layout:
_root.mask
feet (man layer, stationary layer)
bg

Reason for the mask? Its to make it appear as if the man is walking behind something in background movie clip (the mask masks the "man" layer). Almost a way of cutting but without the polygons.


Code:
if (Key.isDown(Key.LEFT)) {
_root.MASK._x += 8;
trace("initial movement");
for ( i = 1; i <= 95; i++) {
if(_root.feet.hitTest(this["a"+i]))
{_root.MASK._x -= 8;trace("cease movement");}
}
}
At current, when hitting a wall, the background clip will stop, but the mask will continue, I cant figure out why the hittest isn’t working, it seems to be the last part here.

Code:
for ( i = 1; i <= 95; i++) {
if(_root.feet.hitTest(this["a"+i]))
{_root.MASK._x -= 8;}
I put the traces in to test what was working, "initial movement" traced fine, but other never appeared. Someone please help me, I’ve been trying to figure this out for a minimum of a month now.

Thanks

Master Of Recursion - Come To My Rescue
Ok,
So I understand recursion.. Sort of ...

I have an object.

It has 3 variables.

menuID
parentID
title

(following code will generte object for example)


Code:
myTree = new Object();
// Make Fake Content
myTree[0] = new Object();
myTree[1] = new Object();
myTree[2] = new Object();
myTree[3] = new Object();
myTree[4] = new Object();
//Branch 0
myTree[0].menuID = 1;
myTree[0].parentID = 0;
myTree[0].title = "Grandpa";
//Branch 1
myTree[1].menuID = 2;
myTree[1].parentID = 1;
myTree[1].title = "Father";
//Branch 2
myTree[2].menuID = 3;
myTree[2].parentID = 2;
myTree[2].title = "Me";
//Branch 3
myTree[3].menuID = 4;
myTree[3].parentID = 2;
myTree[3].title = "Brother";
//Branch 4
myTree[4].menuID = 5;
myTree[4].parentID = 1;
myTree[4].title = "Uncle";
I need a function that loops through the "myTree"
and turns the structure into ....

compiledTree.Grandpa
compiledTree.Grandpa.Father
compiledTree.Grandpa.Father.Me
compiledTree.Grandpa.Brother
compiledTree.Grandpa.Uncle

So far... my brain can only go one level deep with this.
Any help is much appreciated.

Actionscript Hell Please Rescue Me
I am trying to put together a store in Flash, for the final "buy" button it will go to a page at an online retailer.....depending on the info entered.

Here's where I need the help. One of the products is a shirt that comes in 3 different colors and 3 different sizes. Now I have added the combo box for the user to select color and size and I'm pretty sure I have to do an "if" statement in the actionscript of the "buy now" button. But it doesn't seem to be wroking. Here's the AS I have attached to the "buy now" button:


Code:
on (release) {
if (m1color==1){
getURL("http://www.yahoo.com", "_blank");
}
}
m1color is the instance name for one of the combo boxes. I hope this is enough for someone to help me get in the right direction.

I would really appreciate any help. I have been pulling my hair out on this one. I'm not too polished up on my coding

Thanks in advance

Pixel Thief

Flash & Frames: Cookies To The Rescue?
I understand that there are some fundemental difficulties in inter-frame communication of flash movies when they are embedded in HTML framesets. These problems stem from browser incompatibilities with the FScommand, among others.

These issues can serve to negate the cross platform, "author once, run anywhere" nature of using Flash.

Could the new sharedObject available in FlashMX be the answer to this problem.

For example, if you have a movie in HTML frame "A" that determines what flash frame that the movie in HTML frame "B" should move to. You could use the sharedObject to communicate between the movies, right???

Off-Topic: Kama Sutra Rescue Disk
I'm apparantly one of the few people in the world that got hit with the Kama Sutra worm.

Nasty bugger, won't let me boot the computer in safe mode.

Was wondering if anybody out there could point me to a place where I could get help in making a rescue CD.

Many Thanks,

Some Actionscript Doubts
can u please explain if there are any diferences between some flah4 terminology and flash5?
for example:

Are these the same on both?

End If

Loop While

End Loop

End On

(how would be this expression in flash 5 actionscript?)
Set Variable: TargetRub&"_"&z&":Label" = eval ("LabelRub"&n&"_Subrub"&z)

thanks

Couple Of Doubts
Hi flashers, I´ve been making a couple of flash games, and I´d like them to work fine, so there it goes...
The first one is a puzzle, so simple, you drag a movieclip and when rising other, droptarget, but how can I make a mc that it´s already place not to appear above the one you´re dragging?
Hope u can help me...if can I´d send .fla, thank you all.

Initial Doubts
Hi all.
I’m just starting with flash and before I get the wrong ways I have some initial doubts to clear. This is a general question about websites built in flash. There we have menus, dropdown menus, animations everywhere, and so on. How are they structured? Can it be a one file with everything in it, several separated files that are loaded when requested… I see several preloaders in some websites and for now I don’t see how to load several files in a file… do you guys know of any tutorial about this?

Thx averyone.

Beginner Doubts...
ActionScript is the language behind flash. Right ?

Is it possible to make things that cs3 does, just using lines of code (without using cs3) ? Things like moving a picture, creating shadings, making a word become bigger and smaller and things like that ?

I know just a little bit of HTML/CSS and I do like coding. I do would like to get away of using Flash cs3 (or another) and just use lines of code instead. Is it possible ?

I got Flex_SDK running on my (now) Debian box, compiled some simple .as files, put them in an HTML 4.01 DTD, validated, and everything went OK. I got the same results using Eclipse with ASDT.

Now this doubt remains. Is it possible to get rid of Adobe Flash ?

Doubts About Database
hi everyone

i've been planing a project wich uses a database, i haven't decided yet if i'll use SQL or MYSQL ,my doubt is this.

i've seen several ways to connect flash to a database which are:

-Flash Remoting
-Using Webservices
-Using PHP or .Net as the middleware language
-Using Coldfusion

My doubt is this, i saw flash remoting is one of the best way to do what i want because of large datasets i wil get, but i can't find any good hosting service with flash remoting, can anyone tell me one?

Other thing, can anyone tell if there is a better way ?
thanks

Doubts In Flash
I have some doubts in flash. if anyone knows, let me know that.

1. what is the difference between movieclip, button and graphic?
2. what is shared libaray?
3. Need some details for SCORM with flash.

Thanx in advance

-r. srinivasan

Text Files Doubts
To all flash gurus out there...

Does anyone knows how i am able to save a text file using flash mx? And to save the file into any directory/path the user likes to???

And also, how am i able to delte text files in the directory using flash mx?

Remove Clip Doubts?
Hi,
I've a problem.... let me show the code.....

PHP Code:




mc_bau.attachMovie("mc_videos", "menu_video",this.getNextHighestDepth());
mc_bau.removeMovieClip()







The problem is that I can't remove the clip (mc_bau) from the stage. Can Someone explain how remove clip works? and the direfence of removeClipMovie("xxxx") ????????

Tks
William

Shared Object Doubts
Dear gurus,

I have more number of shared object stored in my computer.. for a single movie (swf)

say 1.sol, 2.sol, 3.sol.

I want to know is there any way to know what are the sol files saved in my computer for the current movie through action script?


exciting to get the answer .....!::->

Thanks in advance,
Nalini.V

[F8] General Doubts In Flash
I have a few general doubts and queries about Flash that I would like to be cleared at the earliest.

1. Does making additional layers increase the swf size?
2. Does clearing out your library decrease the swf size?
3. Which movie format (currently I am using .wmv) is best to import to flash for minimum size and decent quality?
4. Does the flash swf size depend on the quality of imported video? (resolution)

Thanks in advance.

Text Files Doubts
I by chance get to know to use the MMSave function in the forums. My question is that can i specify where i like to store the .txt file? It seems to only able to reside in the default path under the configuration folder.

And also, can i too specify where i want to store my .sol created when using the shared objects? It too seems to be able to work online and not in authoring.

Lastly, do any knows how to do dialog box that directs user to which particular he/she wants to select? This feature is definitely not in flash.

I won't be using any server scripts as i'm not told to do so by my supervisor...

Doubts: Linking From HTML
Hi everyone

I have a lot of doubts because I'm very New in flash ...

I bought a Template and it have a section that is for the Clients,

every image have this script:


Code:
onClipEvent(load) {
loadMovie(_root.url + "_clients1.jpg", this.cont);
url=_root.url3;
}
the statement url=_root.url3; I thought was the one I must add to the HTML Variables like:



Code:
&url3=http:www.example.com
But nothing happen (so that prove that I'm Noobie)


second


I have a button:


Code:
on(rollOver) {
gotoAndPlay("s1");
}

on(rollOut) {
gotoAndPlay("s2");
}

on(release) {
getURL(URL);
}
And I would like to link this button to a part of the Flash website. How can a do that?


May be this Could be a little bit annoying for the experts, but , Where else can I get help .

Hope can Help me..

Thanks


PD: Sorry about the english

Anybody Help Me 2 Basic Flash Doubts
I have two doubts related with "loadMovie" action and fscommand("quit");.

1. I have created a flash file with 600 Pixels W x 400 Pixels H. If I want to load a very small sized MC (say small.swf with 300 Pixels W x 200 Pixels) in the MAIN MOVIE'S EXACT CENTRE, what code I have to include? If jsut give the loadMovie action to it, the target .swf file will appear in the top right side of the main movie's stage.

2. Another doubt is in FlashMX the action "fscommand("quit");" does not work. But in Flash 5 it works smoothly. Can anybody explain it why?saintthomas@rediffmail.com

Paint Book Application - Two Doubts
Hello all,
I am pretty new to Actionscript 3.0.
I built a paintbook application using AS3 and while it is done for the most part, it has some really annoying bugs. This is how the app works. There are two modes to it, i.e. the "Fill mode" and the "Scribble mode".
When the user clicks the "Fill Mode" a BitmapData is grabbed from the library. I used the FloodFill() method to fill the BitmapData with colors.
When the user click the "Scribble mode", the bitmapData becomes invisible (bitmapData.visible = false) and I use a 'Shape' to let the users scribble on the canvas.

1) The problem I have is, when I toggle the visibility of the bitmapData and Shape, whatever coloring I do, in say, the "Scribble Mode" also takes place in the "Fill mode". i.e. If I scribble and then toggle to the "Fill mode", there is floodfill() operation that has taken place in the bitmapData in the places I scribbled. Is there any way I can avoid this? Something that locks on layer while the other layer is active?

2) This is my 2nd problem. Is there a way I can "Erase all" the floodfill operations I did? I.e the user has filled the colors in the bitmapData and wants to revert back to the 'original' state (thus removing all the floodfilled colors).

I would really appreciate any help I get!!
Thanks in advance!!

~Air

XML And Components, Passing Data Doubts
HI!

My old library in as2, was structured like this:

Main class that loads:
- library.swf
- all xml files(language, data, and other)

All my components wait data from main class to start:

slideShow.data = imagesXml.firstChild;
menu.data = langXml.firstChild.firstChild; //this is the case tha i would ask on.

langXml is:


Code:
<?xml version="1.0" encoding="UTF-8" ?>
<lang>
<menu>
<item label="word1" id="word1" />
<item label="word2" id="word2" />
<item label="word3" id="word3" />
</menu>
<section1>
...
</section1>
<section2>
...
</section2>
<section3>
...
</section3>
</lang>
I was passing only menu node to menu component...
Now in as3 i'm very happy to use E4X standard, but all methods in my XML object returns me a XMLList object...

then... in my components can i use xml data or i need to structure them to use xmllist data? (some solution for create a XML from XMLList?)

Picture Gallery And Thumbnail Doubts
Here's the situation: I'm making a script that will dynamically load JPG's from a file and will eventually display each JPG's thumbnail them side by side. I've got the code going and would like to know any suggestions for corrections.

ActionScript Code:
<b>// Importing  Images    p = 0;x = 20;y = 20;    for(i=0;i<4;i++){                 _root.createEmptyMovieClip("clip"+i, i+1)                 loadMovie("pic"+i+'.jpg',_root["clip"+i]);     _root["clip"+i]._x = x;     _root["clip"+i]._y = y;                     //attempt to change position for next image                 x = +100;     y = +100;        }    _root.onEnterFrame = function(){                _root["pic"+p+'.jpg'].swapDepths(_root);                                              //attempt to create thumbnails                             if(this._width>768){        this._width = 150;                                this._height = 113;                 }                 else {        this._width = 150;                                this._height = 200;                 }                p++;    }</b>

Right now I'm having troubles with the resizing of images: the if statement doesn't seem to work (or maybe resizing in flash distorts the images). Any tips or suggestions for the code?

Thanks!!

Picture Gallery And Thumbnail Doubts
Here's the situation: I'm making a script that will dynamically load JPG's from a file and will eventually display each JPG's thumbnail them side by side. I've got the code going and would like to know any suggestions for corrections.

ActionScript Code:
<b>// Importing  Images    p = 0;x = 20;y = 20;    for(i=0;i<4;i++){                 _root.createEmptyMovieClip("clip"+i, i+1)                 loadMovie("pic"+i+'.jpg',_root["clip"+i]);     _root["clip"+i]._x = x;     _root["clip"+i]._y = y;                     //attempt to change position for next image                 x = +100;     y = +100;        }    _root.onEnterFrame = function(){                _root["pic"+p+'.jpg'].swapDepths(_root);                                              //attempt to create thumbnails                             if(this._width>768){        this._width = 150;                                this._height = 113;                 }                 else {        this._width = 150;                                this._height = 200;                 }                p++;    }</b>

Right now I'm having troubles with the resizing of images: the if statement doesn't seem to work (or maybe resizing in flash distorts the images). Any tips or suggestions for the code?

Thanks!!

Virtual Student Yrbook: Variables>Arrays>Variables? SOMEBODY RESCUE ME
Hello, All.

I am totally stumped. I am creating a student virtual yearbook, which displays students names with pictures. I cant find a totally understandable tutorial that teaches me how to extract variables from an array. So I created an asp file that writes out all of the student records to different variable names, and load them using loadvariablesnum(). Using this ASP file works, but once I click the exit button to take me back to the front page, it is as if all of my other variables are erased.

I dont completely understand levels when it comes to loading variables, so everything is loaded like this

loadVariablesNum("http://10.0.1.2/tp/tpod/processGet_studentInfo.asp", 0, "GET"); --- "POST" gives me the same results...

To view the pictures you would click a button on SCENE 4, and it takes you to "VIEW STUDENTS PICTURES" - SCENE 11. 'EXIT' sends you back up to Scene 4, which runs an ASP file which simply grabs a message that is updated every 30 minutes. What Level would I use here??? I have tried many.

Everything works beautifully until I exit the VIEW STUDENTS PICTURES page from Scene11

I've written a pretty sizeable file that uses lots of variables.

I am pretty sure that the problem is with the ASP file: "processGet_studentInfo.asp" - because when I comment it out, the application works fine.

::::::::::::SUPPORTING INFO BELOW:::::::::::::::

Here are the variables that "processGet_studentInfo.asp" creates:
&varStudent1=Crystal&varImagePath1=http%3A%2F%2F10 %2E0%2E1%2E2%2Ftp%2Ftschool%2Fimages%2FCrystal%2Ej pg&varStudent2=Brandy&varImagePath2=http%3A%2F%2F1 0%2E0%2E1%2E2%2Ftp%2Ftschool%2Fimages%2FBrandy%2Ej pg&varStudent3=Angel&varImagePath3=http%3A%2F%2F10 %2E0%2E1%2E2%2Ftp%2Ftschool%2Fimages%2FAngel%2Ejpg &varStudent4=Cathy&varImagePath4=http%3A%2F%2F10%2 E0%2E1%2E2%2Ftp%2Ftschool%2Fimages%2FCathy%2Ejpg&v arStudent5=Destiny&varImagePath5=http%3A%2F%2F10%2 E0%2E1%2E2%2Ftp%2Ftschool%2Fimages%2FDestiny%2Ejpg &varStudent6=Amber&varImagePath6=http%3A%2F%2F10%2 E0%2E1%2E2%2Ftp%2Ftschool%2Fimages%2FAmber%2Ejpg&v arStudent7=lester&varImagePath7=http%3A%2F%2F10%2E 0%2E1%2E2%2Ftp%2Ftschool%2Fimages%2Flester%2Ejpg&v arStudent8=paul&varImagePath8=http%3A%2F%2F10%2E0% 2E1%2E2%2Ftp%2Ftschool%2Fimages%2Fpaul%2Ejpg&varSt udent9=Ginger&varImagePath9=http%3A%2F%2F10%2E0%2E 1%2E2%2Ftp%2Ftschool%2Fimages%2FGinger%2Ejpg&varSt udent10=Brittany&varImagePath10=http%3A%2F%2F10%2E 0%2E1%2E2%2Ftp%2Ftschool%2Fimages%2FBrittany%2Ejpg &varStudent11=chad&varImagePath11=http%3A%2F%2F10% 2E0%2E1%2E2%2Ftp%2Ftschool%2Fimages%2Fchad%2Ejpg&v arStudent12=jaden&varImagePath12=http%3A%2F%2F10%2 E0%2E1%2E2%2Ftp%2Ftschool%2Fimages%2Fjaden%2Ejpg&v arStudent13=Jami+Lynn&varImagePath13=http%3A%2F%2F 10%2E0%2E1%2E2%2Ftp%2Ftschool%2Fimages%2FJami+Lynn %2Ejpg&varStudent14=kara&varImagePath14=http%3A%2F %2F10%2E0%2E1%2E2%2Ftp%2Ftschool%2Fimages%2Fkara%2 Ejpg&varStudent15=Cody&varImagePath15=http%3A%2F%2 F10%2E0%2E1%2E2%2Ftp%2Ftschool%2Fimages%2FCody%2Ej pg&varStudent16=darla&varImagePath16=http%3A%2F%2F 10%2E0%2E1%2E2%2Ftp%2Ftschool%2Fimages%2Fdarla%2Ej pg&varStudent17=Jenna&varImagePath17=http%3A%2F%2F 10%2E0%2E1%2E2%2Ftp%2Ftschool%2Fimages%2FJenna%2Ej pg&varStudentCount=17&varENDER=1

-----------------------------------------------------------

Here is the meat & potatoes of the ASP file that created this:
oRS.Open "SELECT * FROM STUDENTS", oConn, 2, 3

' Move to the first record
oRS.MoveFirst

'Loop to output all the query results to the document
do while not oRS.eof

' counter to give each record a sequential listing
counter=counter+1

Response.Write "&varstudentname" & counter & "=" & Server.URLEncode(oRS("studentname"))& "&varImagePath"& counter & "=" & Server.URLEncode(oRS("ImagePath"))

' move to the next record
oRS.movenext
loop

'LET FLASH KNOW THAT WE ARE DONE RETRIEVING
Response.Write "&varStudentCount=" & counter
Response.Write "&varENDER=finished"
:::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::

Please help.

Doubts Over Using "local Connection"
can a movie clip from another swf can be controlled and used using local connection class?
kindly help

Flash Menu With Multiple HTML Pages - How To Pass Variable To Menu On Refresh?
please note this topic is also posted at AS under this title:
Flash Menu 4 HTML pages - pass variables on page refresh
-----------------------------------------------------------------------

So the subject is a hint as to how hard it is to search on this simple idea.

Will be very greatful for some help today!


PROBLEM DETAILS:
I am building a swf menu for an HTML site. It has the following buttons:

SectionA

SectionB

SectionC

What I want to do is modify the text when the HTML page for the correspoding section is loaded. So, if I click on "SectionB", SectionB.html loads. Now I want that button "SectionB" in the swf to have a background glow.

Of course the catch is, that each time a new HTML page loads, it reloads the swf menu (No Frames please!). So, naturally I know I can just tell the swf menu to go to a certain place in the timeline where there is the glow graphic behind "SectionB". But the swf needs a variable saying it is on a Section B HTML page. (of course I could build a seperate swf for each section - but that seems stupid.)

THUS....


MY QUESTION:
How do I pass a variable from a swf on one HTML page (that is being replaced by a new HTML page!), to a swf on a new HTML page.

Can I do this with a GET/POST or something?

Thanks!
-AB
Birdsong is online now Edit/Delete Message

Drop Down Menu PROBLEM-Down State For Sub-menu Item Linked To External SWFs?
Hi nice to meet everyone. The drop down menu I'm referring to is located in the main movie. The menu is a movie clip with the buttons inside and I have each button as 'track as menu item' in the properties. The buttons are linked to external swfs that load in the empty movie clip on the main movie stage. Everything loads perfectly no problem. I can't seem to figure out the right code to put on the sub-menu items/buttons in the drop down menu to show the 'down' state when the corresponding movie is loaded (i.e., about-main button, philosphy(menu item). When the 'philosphy' swf loads how do I get the 'philosphy' button that is in the main movie to show the 'down' state until another button is pressed on the menu? I hope I explained myself clear enough without confusing anyone!

Below is a sample of the code that I currently have on the the regular buttons that DO NOT sub-menu items:

on (release) {
gotoAndStop("home");
_root.contents.loadMovie("home.swf");
}

And here is the code that I currently have on the main buttons that have sub-menu items:

on (release) {
_root.contents.loadMovie("philosphy2.swf");
setProperty("_root.home", _visible, "0");
}

I have searched everywhere on the net, tutorials and still can't find the answer, I've been working on this for almost a week now and I just can't get it right.

Thanks again your help is greatly appreciated!

Dynamic Menu AS2.0/XML - Seperating Main Menu Title MC From Dropdown Item's MC
Hi everyone, this is my first post in this forum, I appreciate all the help

I've got a dynamic menu using AS2.0 that's being populated by an XML file, it's quite complete and is working fine, the only thing I'm having trouble with is assigning a new MC to the Titles so the visual design (Text and background) can be different from the rest of the dropdown menu.

What would have to be done to capture the menuNodes and isolate them form the rest. Below is the XML that I’m using, the highlighted (red, bold, italic) text below is what I’d like to capture and seperate from the rest of the submenus for the menu title in my flash project.

XML
----------------------------------------------
<?xml version="1.0"?>
<menu name="Atletas">
<menu name="Clubes">
<submenu name=""></submenu>
<submenu name="Botafogo">
<entry name="Player 1"/>
<entry name="Player 2"/>
<entry name="Player 3"/>
</submenu>
<submenu name="Flamengo">
<entry name="Player 1"/>
<entry name="Player 2"/>
<entry name="Player 3"/>
</submenu>
<submenu name="Flamengo">
<entry name="Player 1"/>
<entry name="Player 2"/>
<entry name="Player 3"/>
</submenu>
</menu>
<menu name="Atletas">
<submenu name="Gilberto"></submenu>
<submenu name="Jose"></submenu>
<submenu name="Joao"></submenu>
</menu>
<menu name="Posicoes">
<submenu name="Atacante">
<entry name="Gilberto"/>
</submenu>
<submenu name="Meio">
<entry name="Jose"/>
</submenu>
<submenu name="Zagueiro">
<entry name="Joao"/>
</submenu>
</menu>
</menu>
----------------------------------------------------------

attached is the screencapture of my flash design to understand what I'm talking about a little better.

Thanks for all the help

Drop Down Menu-Down State For Sub-menu Item Linked To External SWFs?
Hi nice to meet everyone. The drop down menu I'm referring to is located in the main movie. The menu is a movie clip with the buttons inside and I have each button as 'track as menu item' in the properties. The buttons are linked to external swfs that load in the empty movie clip on the main movie stage. Everything loads perfectly no problem. I can't seem to figure out the right code to put on the sub-menu items/buttons in the drop down menu to show the 'down' state when the corresponding movie is loaded (i.e., about-main button, philosphy(menu item). When the 'philosphy' swf loads how do I get the 'philosphy' button that is in the main movie to show the 'down' state until another button is pressed on the menu? I hope I explained myself clear enough without confusing anyone!

Below is a sample of the code that I currently have on the the regular buttons that DO NOT sub-menu items:


ActionScript Code:
on (release) {
    gotoAndStop("home");
    _root.contents.loadMovie("home.swf");
}

And here is the code that I currently have on the main buttons that have sub-menu items:


ActionScript Code:
on (release) {
    _root.contents.loadMovie("philosphy2.swf");
    setProperty("_root.home", _visible, "0");
}

I have searched everywhere on the net, tutorials and still can't find the answer, I've been working on this for almost a week now and I just can't get it right.

Thanks again your help is greatly appreciated!

Highlighting Menu Option On Flash Menu In HTML Page
Hi Folks,

I have created a Flash menu to work with an HTML based site (the menu is the object in all the pages), but I would like the menu option to stay highlighted when clicked. I've created a series of buttons that highlight when they are scrolled over, but when they are clicked, the button returns to its normal state, as it should. I did come up with a not-so-nice solution, by loading a new movie whenever the user clicks on the option, and the new movie has the menu selection highlighted. Is there a way for the user to click on the menu option and have it stay highlighted until a new menu selection is clicked without having to create mutliple movies?

Docking Flash Menu/Menu That Stays On The Bottom Of The Screen
i have a site designed but im attempting to get the navigation to stay docked on the bottom of the screen.
i've spent hours searching the web trying to come up with the solution but haven't succeeded
what im trying to do can be seen on the following site: http://www.mcbd.co.uk/

i want the nav to stay on the bottom of the screen when the page is resized.

if anyone can point me in the right direction it would be greatly appreciated.

thanks

Flash Sliding Menu / Horizontal Dynamic Picture Menu
Hello,

I am quite fascinated by the effect used to scroll a variety of pictures left and right with the ability to halt on a particular picture to click and navigate to another area of a site. Could anyone point me to a tutorial on how this is done? An good example of the effect may be seen on this site:

http://www.calatrava.com (click on the "slide show" link)

Would appreciate any pointers. Thanks!

Is There Anyway To Disable The Flash Player Dropdown Menu (not The Context Menu)
Greetings,
I am aware of how to reset the right-click context menu to just "settings", but when the file is opened in Flash Player directly from a computer instead of on the web, the drop-down menu in the player is still available. You can even press ctrl+enter to play. My searches just come up with solutions to the right-click menu, and I have a client who wants me to get rid of this menu for a game I've already made.

If you don't think there's even a way to do this, could you just tell me that so I can inform my client?

Thank you either way

[Using MX 2004 if it matters]

Help With Pop Up Menu (Sub Menu Buttons) Linking To Frame On Main Timeline
Hi,
I really need help with my flash project. I've created a pop up menu by having 4 buttons on the main timeline which I made into a movie clip which has an instance name of menu_mc. Inside that movie clip I have my sub menu created and the menu works great. My only problem is that I can't seem to link the submenu buttons to the frames created on the main timeline. I've tried all the action script I can think of. One example I am using is

menu_mc.contact_btn.onfiltered= function() {
gotoAndStop("Scene 1", "contact");
}

This is where I am trying to link the Contact Button (which is a submenu button of the About button) to the contact frame which is located on the main timeline. Please help me if you can. Thanks.

Flash Sliding Menu / Horizontal Dynamic Picture Menu
Hello,

I am quite fascinated by the effect used to scroll a variety of pictures left and right with the ability to halt on a particular picture to click and navigate to another area of a site. Could anyone point me to a tutorial on how this is done? An good example of the effect may be seen on this site:

http://www.calatrava.com (click on the "slide show" link)

Would appreciate any pointers. Thanks!

Tightest Menu Structure - Switch/case? BEST MENU
I'm looking to start building a new menu. I want to script it as tight as possible. There will be 7 buttons. When one is pressed, I want it to stay "pressed" until another is pressed.

What is the tightest way to structure this? I want to keep all script off of the buttons themselves. I was wondering if using a switch/case type structure would be best.

I searched a bit for what i was looking for, but could not find it. Does anyone have a example/thread they could throw my way?

thx.

How To Highlight An Active Menu Item In A Flash Menu
Hi,

I have a flash menu and I want each menu item to be highlighted according to which page it is on (e.g. Highlight the 'about us' link when the user is in the about us section) to save having to create more than one swf. At the moment I have all the highlights made invisible like this:

highlightOne._visible = false;

But have no idea how to make the swf know what page it is on or how to make a highlight visible accordingly.

Can anyone help me out?

Flash Menu Transparent Over A Static Html Menu, Can It Be Done?
To ensure I have noticeable menu items (if user does not have flash installed)acting as a menu that, in principle, is part of the background.

I have made a nice little flash menu and would like it to mimic the menu text underneath it. So, transparent flash over a static html menu, can it be done?

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.

Help Finding A Vertical Colapsable Dropdown Menu With Sub-menu's Within
Hey there.
Can anyone point me in the right direction. Im looking for some open source
files with sort of a vertically based colapseable menu. Something with say for example
5-6 main buttons and then your able to open them- to view sub menu buttons within them...

Thanks very much!

How To: Create A Drop Down Menu With XML Data For Menu Items
Can anyone help by showing me or pointing me in the right direction of how I'd go about creating a drop down menu and populating the menu items from an XML file?

I'm creating a tour sort of thing and I have it pulling in the slides of the tour from an XML file and all the next/prev buttons are working fine. I wanted to add a drop down menu from the top that has the menu items pulling in from elements from the XML file. Possible? Ideas?

Thx

Menu Vs. Submenu Appearance : XML-Driven Drop-Down Menu Help
I love Senocular's XML-Driven Drop-Down Tutorial. But I can't seem to get it to make the menu headers look different from the submenus.

Any help?

See the tutorial

Much appreciated.

(and if anyone is interested, i've turned it into a horizonal menu... reply and i'll post the code. better yet, help me fix the GUI issue and i'll post it )

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