XML flash Menu
Hello Guys,
I am stuck with a xml flash menu which contains quite a few great options to manipulate the text, url, button and even change the color to the menu externally from xml. The only thing missing here (which I massively need it) is the option resizing the buttons from the xml file itself. The buttons need to be resized so that they fit each text length. I have the feeling that someone that is good at XML and deal with ActionScript would be able to easily add this option.
Thanks for commiting your time on this and I would be happy to help anyone in return who tackles this requirement I am after now.
Please download the file attached and you can own it as well.
Looking forward to hearing from you soon.
Respectfully yours,
Beko
Ok, here we go:
ACTION SCRIPT CODE:
_parent._visible = false;
// xml processing
menu_cfg_xml = new XML();
menu_cfg_xml.load(String(_url.slice(0, (_url.length-3)))+"xml");
menu_cfg_xml.ignoreWhite = 1;
menu_cfg_xml.onLoad = function(ok) {
// create main menu after successful loading of XML
if (ok) {
create_menu();
} else {
trace("XML not loaded");
counter = 1;
function create_menu() {
while (counter<menu_cfg_xml.firstChild.childNodes.length) {
attachMovie("button_type", "btn"+counter, counter);
set("btn"+counter+"._x", counter*80-100);
btn1._y = 0;
// set the buttons text
set("btn"+counter+".the_text", menu_cfg_xml.firstChild.childNodes[counter].attributes.text);
set("btn"+counter+".the_url", menu_cfg_xml.firstChild.childNodes[counter].attributes.url);
set("btn"+counter+".the_target", menu_cfg_xml.firstChild.childNodes[counter].attributes.target);
this["btn"+counter].onRollOver = this["btn"+counter].onDragOver=function () {
this.effect.gotoAndPlay(2);
this.textul1.textColor = "0x"+menu_cfg_xml.firstChild.childNodes[0].attributes.text_color2;
this["btn"+counter].onRollOut = this["btn"+counter].onDragOut=function () {
this.textul1.textColor = "0x"+menu_cfg_xml.firstChild.childNodes[0].attributes.text_color1;
this.effect.gotoAndPlay(9);
this["btn"+counter].onRelease = function() {
if (this.the_url != undefined and this.the_url != "") {
getURL(this.the_url, this.the_target);
//set buttons color
this["button_color"+counter] = new Color("btn"+counter+".btn_color");
this["button_color"+counter].setRGB("0x"+menu_cfg_xml.firstChild.childNodes[0].attributes .button_color);
//set button effect color
this["effect_color"+counter] = new Color("btn"+counter+".effect");
this["effect_color"+counter].setRGB("0x"+menu_cfg_xml.firstChild.childNodes[0].attributes .effect_color);
//set button text color
this["btn"+counter].textul1.textColor = "0x"+menu_cfg_xml.firstChild.childNodes[0].attributes.text_color1;
counter++;
_parent._visible = true;
info_clip._visible = false;
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
XML CODE:
<?xml version="1.0" encoding= "UTF-8" ?>
<!-- Menu created by www.adrianTNT.com -->
<menu>
<options button_color="000066" effect_color="87A10C" text_color1="87A10C" text_color2="FFFFFF">
</options>
<button text="Task force" url="http://www.google.com" target="_parent">width="250" height="136"</button>
<button text="Service og turisme" url="http://www.google.com" target="_parent"></button>
<button text="Fodbold" url="http://www.google.com" target="_parent"></button>
<button text="Idraet" url="http://www.google.com" target="_parent"></button>
<button text="Kunst and Design" url="http://www.google.com" target="_parent"></button>
<button text="Teknisk/praktisk linje" url="http://www.google.com" target="_parent"></button>
<button text="Gastronomi" url="http://www.google.com" target="_parent"></button>
<button text="Laekker mad" url="http://www.google.com" target="_parent"></button>
<button text="Musik" url="http://www.google.com" target="_parent"></button>
<button text="Turbo-boglig" url="http://www.google.com" target="_parent"></button>
</menu>
Similar Messages
-
Adding a trademark symbol in xml flash menu
Hi, I am a front end web designer/developer and
analyst...struggling with putting an accordian flash xml menu
together. I have it done except I need to add a simple trademark
symbol circle with r. I am struggling with how to do this since I
am not savvy in actioncript. I assume the best way is to add it is
with a CDATA child node, but do not know how or whatever is the
best way to get this done since am on a tight deadline. I need
someone to explain step by step what I have to do to get this
simple addition resolved. Attached are the links to home page and
code for the xml file. The left navigation is the asset that I need
to add the trademark symbol under about, about ADHERE. Thanks so
much in advance!!!!!!
index
pageOkay, test files are up in the following directory:
www.saffronthread.com/test
You can guess which ones are for you. I didn't deal with the
whole IE stupidness, so you my need to click on the page. But I've
got several different text fields some runtime some author
environment and sample text. Works for me on Mac and on the PC I
checked. Let me know what you find out.
As for System.useCodePage it is very seldom an actual
solution to the problem. It is a solution for when you want to be
sure that the user's Flash Plugin uses the computer's code page for
text rendering. Read the help entry for it and you will see that it
is not a solution for making sure that the most people possible
will correctly receive my text. It is more a solution for, I want
to make sure that those with Chinese operating systems are able to
correctly see the Chinese text I have encode with my special
encoding.
Most questions that get a "Oh, you must use
System.useCodePage answer" are more like, "I want to make sure that
everybody on every type of system can see my special characters."
The answer for that tends toward proper use of UTF-8 and that is my
guess for your problem. That your XML file is not being saved as
UTF-8. If System.useCodePage is helping you that tells me that your
XML editor is saving to some odd (maybe very popular, but not
UTF-8) encoding. -
Flash menu reloads and therefore collapses
I have a site prototype at
http://www.olsonzaltman.com/prototype.
The menu is one I've customized using the coding brainwork of Ian
Kelleigh of www.freehandsource.com. Many thanks to him. My problem
is that shy of using frames, I can't get the menu to NOT reload
each time a link is clicked. The beauty of the menu is that it
stays open to aid in user-orientation. Is there a simply way around
this or does the solution involve major coding and a completely
flash-based site? Thanks. JohnThe elements on the page will reload on each page view, that
will restart the timeline of your flash menu. You can pass
variables back to the flash movie, but that is not an easy fix.
I'm not sure, but the folks at JumpEye may have a menu
component that could help. Check them out:
http://www.jumpeyecomponents.com/
2 easiest options:
Load content into iFrames.
(downside: not the best coding structure you could be using
and there is a good chance you could hurt their SEO)
Make menu files for each section. Load individual menus for
each section.
(downaide: pain the the ___ to update unless you use XML)
My vote would be to consider Javascript for this menu. There
are many accordion menu options that could be retooled and resemble
what you have here. It would also remove the iFrames, SEO and other
issues. I'm not a Flash snob, but there are compelling reasons not
to use it for menus.
cheers,
Ken -
I have spent way too long building a dynamic drop-down Flash
menu. Now it is time to publish but if I use wmode to remove the bg
my mouse events get all screwed up, plus from what I have read on
the forums I really don't want to use wmode if I can help it. Is
there any workaround here? The menu works great with the default
background covering up half of my web page but this is not a
workable solution from a design standpoint.
I am really hoping I did not just waste sooooo much time. Any
help is greatly appreciated.Hi Speedee, I found this post that explains a floating flash
nav:
http://www.merhl.com/webdevblog/index.php?itemid=8&catid=3
Here is a sample of the nav idea:
http://www.merhl.com/samples/floatFlash.htm
The idea is to nest the embedding swf file into two divs.
Then give it a z-index. At the bottom of the page that explains it
at merhl.com is a script to put it onto a different z-index. This
may help.
I'm trying to build a flash menu that is populated with an
external xml file. I used the menuBar component. In doing so I am
looking for a way to use a 'Rollout' event like your menu rather
then the user having to click to hide the menu. Any ideas?
Peace and Good Luck. -
Problem with Flash Menu in iWeb...need help please.
Ok, I designed a flash menu in iWeb and successfully placed it at the top of the site. I then used the "transparent shape" method to make the hyperlinks work properly. I made sure the flash menu was in the back and the transparent shape hyperlinks were in the front. The menu works just fine for me and anyone else using Safari or Mac computers. However, people on Windows using Firefox, IE or Chrome are unsuccessful in clicking the links. They do not work for them.
Here's my website's homepage link. Keep in mind, if you look there on Safari, it will work but it does not when on a Windows computer. Any help is greatly appreciated.
http://www.platinumsportspicks.com/Index/Home/Home.html
It is clearly the problem that the flash menu is opening in front of the hyperlinked shapes but I'm not sure how to make sure they stay on front.
Message was edited by: kwgroomsI don't know the answer to that one but you can use the Mouse Over and Click method I have described on this page....
http://www.iwebformusicians.com/Tricks/MouseOver.html
It works in IE.
Its just a question of making up two different buttons with text for each link, taking a screenshot and cropping them and adding the JPEGs to your upload folder.
You can make up the buttons on an iWeb page and then delete them when you have taken the screenshots. I usually do this sort of thing in Keynote so that I can save them in case I need to modify them. -
I don't want my flash menu to reload on every page
Hi everyone,
I have a website that I am working on where I have a menu
made in flash, the menu expands when you select a category item and
executes a hyperlink when you click on a particular item within the
category.
This hyperlink load a new page and reloads the flash menu
which causes the option pre-selected to get lost and you have to
select again the category item and item over an over again.
It is good to mention that I want to stay away from Frameset.
Is there a way to load a particular part of the site instead
of the while site, so my menu selection stays the same?
I read about <DIV ID=", BASE, REL and REV and they don't
seem to work for me. Is there a sample code that I can look at to
have better understanding of it?
Thank you in advance.A good way to make it so it does not reload on every page is
to make a IFrame and make the target link of the flash buttons go
to the Iframe ("
http://staggdesigns.com" ,
"_TARGETFRAME") that will work -
Need help with installing Yahoo style flash menu CS5
I downloaded the Yahoo style menu bar from the the available widgets. I got the menu bar to show in Dreamweaver, but need help:
I have trouble understanding how to use the f-source flash editor to edit the links.
I don't seem to be able to drop the f-source.com button from the menu bar.
The bar shows up as a tiny bar in IE8, not as I had programmed it in the widget programmer.
I was instructed to Insert ==> f-source menus ==> Edit menu in Dreamweaver. Doing this leads to the following message: "Install at least one f-source menu'. I did install the f-source-UI G file in the Adobe Extension Manager CS5. What else needs to be installed?
My OS is Windows7 and I am working with Dreamweaver CS5. Please help.
Thanks,
Tony UythovenFlash menus (Flash navigation, period) is a terrible thing from a functional standpoint. It looks really nice, but the honeymoon ends there. As far as SEO goes, your entire site, beyond the landing page, is invisible. A search robot will only see an embeded Flash object.
You have to ask yourself a basic question.
1. What is the purpose of building a website and putting it online?
If it's for your own personal enjoyment and nothing more, then a Flash menu may be for you. If it's for a business or band, or a political group or social group, and you want people to be able to find it in Google, Yahoo, Bing, etc. then you want as many indexible links as possible on your landing page so they will show up in related searches like schedules, articles, galleries, etc. -
Installed latest sec update and have flashing menu bar - cannot login
I also just installed the latest security update running 10.3.9 with a original 1ghz 17" powerbook.
Trying to boot afterwards I end up with a flashing menu bar and no disk icon on the desktop - obviously I can't login (set to single user)
Trying to repair permissions with a CD boot results in an "internal error" with the disk utility. Disk repair reports no problems. The program then cannot continue, and I have to hold the power button to get it to shut down.
Any ideas???
This is the LAST time I use the auto update!!!
17" powerbook 1ghz Mac OS X (10.3.9)
Mac OS X (10.4.2)Hey. I am having almost the exact same problem my menu bar is flashing and no HardDrive icon on the desktop!?
-
Flash Menu in a Template?
I can’t get my flash menu I created to show up in the
.dwt Template. It shows up in the editable region fine. When I
preview just the template it shows up fine. But it won’t show
up on pages based on the template. Hope that makes sense. Any
ideas?If you want to use Flash for navigation, consider this -
1. Some people don't have Flash installed - what do they do?
2. Search engines don't parse Flash links - your site will
not be spidered
3. Screen assistive devices don't parse Flash links - what
will those users
do?
4. DW cannot maintain links within a Flash movie, so if you
move or rename
a linked file, your navigation will break - what will you do?
It's usually a very bad idea for these reasons...
In general, because of the EOLAS fix to how IE handles Flash,
and the
subsequent changes in DW, links to Flash elements WILL NOT BE
MANAGED BY
DREAMWEAVER. To work around this, you must make all such
links ROOT
RELATIVE, not document relative.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"JakeAllen" <[email protected]> wrote in
message
news:feog58$h5d$[email protected]..
>I can?t get my flash menu I created to show up in the
.dwt Template. It
>shows
> up in the editable region fine. When I preview just the
template it shows
> up
> fine. But it won?t show up on pages based on the
template. Hope that
> makes
> sense. Any ideas?
> -
Next and Previous slide from Flash Menu
We are currently tasked with updating SAP training that was
created with OnDemand software. The current simulations have a
Javascript menu on each screen which provides various functions
including moving from current slide to next or previous slides.
When the existing movie is played and captured, we lose the
javascript menu functionality.
I have created a Flash Menu and have imported it to the newly
captured Captivate movie. All links on the menu work except Next
Slide and Previous slide.
The script I use for the button for the Next slide is as
follows:
this.next_btn.onRelease =function(){
this._parent._parent..nextFrame();
Also I have tried substituting for nextFrame "play" and for
the target path "_root" for the first "_parent."
The variables "rdcmndNextFrame" and "rdcmndPrevious" do not
work unless you are using a playback bar, which detracts from the
simulation.
Has anyone ever created this type of functionality? It seems
that it would be straight forward. It is most likely a target path
issue. The captivate movie is the container for the flash menu. To
access the captivate movie timeline and move to the next or
previous slide is what I really need.
Help!I resolved the issue by selecting to use a playback bar and
then in the Flash file setting the visibility of the playback bar
to "0". -
Flash menu in DW, how do I link the buttons?
Hi there!
I have a problem, i'm creating a site in dreamweaver with a
lot of flash objects. For examlpe I'm making a flash menu, wich is
the hole problem! I'm importing the flash file to the left frame in
dreamweaver and i'm trying to link the buttons (on the menu) to ex.
"home" or "about me", though it doesn't work! I can't link the
buttons because they're in this flash object. I know i'm doing it
wrong with trying to link the buttons on the flash object but I
don't know what else to do. And the thing is that i don't wanna use
the buttons already existing in DW, i've made my own ones. The
buttons are moving so there is one more problem, they're coming in
from the right side (in the left frame) and bounces once, and then
they stop. And that's when I wan't them clickable. So how do I make
the buttons linking to the pages??
Would really appreciate an awnser!
Thanks !Flash links are made in Flash, not DW.
I trust these links are not important, as search engines
can't see them
"Sabyonei" <[email protected]> wrote in
message
news:f1ktus$ct9$[email protected]..
> Hi there!
> I have a problem, i'm creating a site in dreamweaver
with a lot of flash
> objects. For examlpe I'm making a flash menu, wich is
the hole problem!
> I'm
> importing the flash file to the left frame in
dreamweaver and i'm trying
> to
> link the buttons (on the menu) to ex. "home" or "about
me", though it
> doesn't
> work! I can't link the buttons because they're in this
flash object. I
> know i'm
> doing it wrong with trying to link the buttons on the
flash object but I
> don't
> know what else to do. And the thing is that i don't
wanna use the buttons
> already existing in DW, i've made my own ones. The
buttons are moving so
> there
> is one more problem, they're coming in from the right
side (in the left
> frame)
> and bounces once, and then they stop. And that's when I
wan't them
> clickable.
> So how do I make the buttons linking to the pages??
> Would really appreciate an awnser!
>
> Thanks !
> -
I need to build a flash based menu and want to learn how to
do the same cool functionality that I see on the
http://grandcentral.com website.
Notice on the "features" menu how when you click on an item
the arrow will scroll down to that menu item. I'd like to learn how
to make a pointer move across multiple other items to get to the
one that is being clicked on like that. I hope it is easy enough
that I can do it!
Any help is most appreciated as I have a project I'm doing
right now that would really benefit from this.
Thanks in advance!
I work on a mac running osx and flash 8 pro.Flash menus (Flash navigation, period) is a terrible thing from a functional standpoint. It looks really nice, but the honeymoon ends there. As far as SEO goes, your entire site, beyond the landing page, is invisible. A search robot will only see an embeded Flash object.
You have to ask yourself a basic question.
1. What is the purpose of building a website and putting it online?
If it's for your own personal enjoyment and nothing more, then a Flash menu may be for you. If it's for a business or band, or a political group or social group, and you want people to be able to find it in Google, Yahoo, Bing, etc. then you want as many indexible links as possible on your landing page so they will show up in related searches like schedules, articles, galleries, etc. -
Well because I am only a year old to flash I bought a program
called Flash Menu Labs which helps me create a horizontal menu with
many branches. I have figured out how to import this into my
project using the loader component but i have some other questions.
I can add links to my menu items within Flash menu labs using
the open method and _self, _blank, _top, _parent but not sure which
one to use or how to get it to gotoandplay or how to open another
swf within my current project. So when I click one of my menu items
it will actually open or goto a frame in the project that i put the
menu.
Hope that makes some sense. I have enclosed some pictures to
help make some sense of this. The first picture shows the Flash
Menu Labs menu i created and you can see it works using the loader
component. The second picture shows the actual Flash Menu labs
layout screen.
Picture 1
picture
2mikeoffy69 wrote:
> Well because I am only a year old to flash I bought a
program called Flash Menu
> Labs which helps me create a horizontal menu with many
branches. I have figured
> out how to import this into my project using the loader
component but i have
> some other questions.
>
> I can add links to my menu items within Flash menu labs
using the open method
> and _self, _blank, _top, _parent but not sure which one
to use or how to get it
> to gotoandplay or how to open another swf within my
current project. So when I
> click one of my menu items it will actually open or goto
a frame in the project
> that i put the menu.
>
>
> Hope that makes some sense. I have enclosed some
pictures to help make some
> sense of this. The first picture shows the Flash Menu
Labs menu i created and
> you can see it works using the loader component. The
second picture shows the
> actual Flash Menu labs layout screen.
>
This is not fully featured Flash application but tool
designated to crate just menus
and out put them into SWF format - Flash Player compatible .
You don't have the freedom
to add on your own action script, except the getURL requests.
You need actual Adobe Flash
authoring program to create Fla/SWF files and be able to use
action script at will.
I don't believe you will be able to even work on "Flash Menu
Labs" files. Beside export
to SWF, this tool has nothing to do with Adobe Flash. Using
Flash you will need to make
your menus entirely from scratch.
Best Regards
Urami
"Never play Leap-Frog with a Unicorn."
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Okay well for my site I want to make a flash menu that goes
on the bottom frame and effects the top frame! A good tutorial
would be nice! Because im also new to making flash menus. So please
help!you are not thinking right - you can't really "effect" frames
- rather you can target what *in* a
frame or frames - preferrably a Movie Clip symbol. I'm afraid
a lot more information is needed -
hard to tell what your skill level is and what you are trying
to specifically.
--> Adobe Certified Expert (ACE)
--> www.mudbubble.com :: www.keyframer.com
-->
http://flashmx2004.com/forums/index.php?
-->
http://www.macromedia.com/devnet/flash/articles/animation_guide.html
-->
http://groups.google.com/advanced_group_search?q=group:*flash*&hl=en&lr=&ie=UTF-8&oe=UTF-8
Kirkius wrote:
> Okay well for my site I want to make a flash menu that
goes on the bottom frame and effects the top frame! A good tutorial
would be nice! Because im also new to making flash menus. So please
help! -
Loading Flash Menu in Background?
I've inherited a website with a huge (2.5MB) flash menu system and would like to know if there is an elegant way to load it in the background from maybe an intro page that redirects to the home page after a certain amount of time - or possible when the menu is done loading. Thanks in advance.
var mcl:MovieClipLoader=new MovieClipLoader();
var lo:Object={};
lo.onLoadInit=function(target){
// loading is complete. remove intro display
target.play();
mcl.addListener(lo);
this.createEmptyMovieClip("targetMC",this.getNextHighestDepth());
mcl.loadClip("yourmainswf.swf",targetMC); // put an empty keyframe at frame 1 of yourmainswf.swf and add a stop();
Maybe you are looking for
-
How can I benefit of Apple's international warranty with my American iPhone in Italy?
Since I was in USA I bought an iPhone5 with a Verizon conctract and they assure me that, apart from the LTE frequencies, it had to work without any problem with an Italian carrier. Indeed it worked well for 3 months but, after updating to iOs 6.1.3,
-
Image rollovers with Spry fade possible?
Does anyone know of a way to implement the Spry Fade effect so that the result is an image that will fade onmouseover and fade out onmouseout? Ideally I would use .hover, but this is not available, so I have to use onmouseover and onmouseout. The pro
-
PSE 6- Error: Could not load style because of a program error.
I have PSE 6 on Vista. My program has always run fine until a few days ago when it started up a small white window pops up with a red X that says Could not load the styles because of a program error. I hit ok and the box keeps coming back. I can't do
-
Allow only English characters in ESS
Hi All, We have a requirement to allow only english characters in ESS input , what should be the correct way to achieve this. Do we need to do this by implementing the Enhancement - HRPAD00INFTYUI Method INPUT_CONVERSION. Thanks Amol
-
Hi, I'm a newbie on DVDSP 3 trying to use stills for a project. There's one issue regarding this that I can't solve: I am trying to make the menu (background) go from black (a black image or DVDSP's option for black frames) via a slow dissolve transi