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();
Similar Messages
-
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,
BekoOk, 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> -
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 -
Everything with firefox works ok except Grooveshark. An error message appears saying: We had problems loading flash, you might have any blocker etc etc.
I don´t have any blocker and as a matter of fact i have the latest versions for both mozilla and flash. Neither version of flash test nor reinstallation process nor checking add ons or firewall settings solved my problem.
Thanks for the attention. RegardsTo double-check your Flash permissions for the site, you can click the globe or padlock icon to the left of the address, click More Information, then click the Permissions tab. The "Activate Plugins" section would be the one to check.
I understand you have checked your add-ons, but in case there is an unexpected interaction, could you test the page in Firefox's Safe Mode just to confirm that extensions are not the problem? That's a standard diagnostic tool to deactivate extensions and some advanced features of Firefox. More info: [[Troubleshoot Firefox issues using Safe Mode]].
You can restart Firefox in Safe Mode using either:
* "3-bar" menu button > "?" button > Restart with Add-ons Disabled
* Help menu > Restart with Add-ons Disabled
''Not all add-ons are disabled: Flash and other plugins still run''
After Firefox shuts down, a small dialog should appear. Click "Start in Safe Mode" (''not'' Reset).
Any difference? -
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> -
My slow loading flash site :(
I've recently notices that i'm loosing 70% of my visitors in the first 0-30 seconds. I thinking its to do with elements of my site loading too slowly.
I have an opening animation which I think loads pretty quickly. I think the problem is occurring when selecting a button on the menu bar. It can take up to 5 seconds to load the external text files. If a user is inpatient and selects the button again this slows the process again and again.
this is the site www.videoproductions.ie
I'm very new to flash and i've hashed and muddled my way to this point. when researching this problem I know i've done lots wrong.
for example my site is all flash....bad (or so i hear)
the images have high dpi
I've used transparency
In my menu i've used button instead of movie clips.
on the up side I have done a few things right
I have a master file where a menu swf loads into
with this menu bar I load all my other swf's and text files (which load into scrolling boxes)
Where i'm having the problem is with my external text file and embedded text
you would imagen that text files would load very quickly but this is not the case.
I've come so far with this only to hit a rock ....what is the problem with the text ..I've looked everywhere and no answers on any forums
any help would be greatly appreciated...I could be loosing allot of potential business because of thisI wonder if i could ask for some more help ........sorry to be a pain but I feel like flash is really beaten me. Been at it the last two day going round in circles
I've attached the menu file I have a master file which is an animation then into this loads my menu swf (which is attached) with in this I've been trying to get the pages to load up on different frames and its all working ok except for loading in my external txt files.
i'm assigning the following scrip to the relevant frames to load the text files
myData = new LoadVars();
myData.onLoad = function() {
textbox2.text = this.myNews;
myData.load("TEXT2.txt");
Its working on the Packages page but only on the first click. for example if you launch the swf and go straight to Packages you'll see the text load in but if click any where else it ceases to work. i'm using the same method throughout but none of the other text files load up at all.
any idea what i'm doing wrong?
My scroll bar is no longer working either but I'll figure that out some other time -
hi,
i had flash menu which i had put in iframe as i wanted to have fixed page size and menu items were long ,so i made product html page in which there is flash menu,then i call product html page in <iframe> in main page but event not working,i guess its something releated to target but i am not getting it.
Any help will be appreciate.Sending you copy of demo side.what i want to do is..
.when menu is clicked that page should loaded and the menu item is highlighted in menu which is in iframe.it used to work properly when i remove iframe but then the product list is long and i want to present in fixed webpage without scoller for which i am using iframe.if you have anyother idea for presenting scroller in flash please let me know. -
Hello everyone!
Is there any advanced tutorials showing how to create an advanced flash menu and header such as this one on the top:
http://images.osc3.template-help.com/wt_26184/index.html
I think my flash level is intermediat and I know how to design ordinary menu but this one here displays:
* Loading scene
* nice quickly animated objects in the movie introduction
also is there any Flash effects that I can include in Flash such as SwishMax effects, or do I have to create my own motion presets?I'd recommend that if you want to use fancy Flash navigation like shown in the link above, do so using swfobject
http://code.google.com/p/swfobject/
and a complete set of alternate navigation buttons for non-Flash devices. That way you can have the best of two worlds... Flash and regular HTML/CSS navigation. This has actually been a Flash "Best Practice" for some time now.
The best way to properly set this up is to first provide the alternate content (in this case the navigation) then only after you have that working, add the Flash part.
Best wishes,
Adninjastrator -
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 .swf files with closed captioning that are
incorporated into a flash mx menu. The closed captioning text does
not display (the bar displays) when played in the flash menu
(neither do the tool tips on the nav bar).
Any ideas/suggestions?You said...
quote:
The much bigger obstacle is that when I export a Captivate
project that incorporates full-motion recordings with static slides
displaying a text caption to Flash and then to .mov, I lose the
full-motion recordings: they are replaced with a blank white or
black screen (whatever the background color is set to be). The
audio is gone too. I don't know what is causing this, but I would
really appreciate any help you could lend me concerning this.
I don't have a solution -
maybe someone else here does - but would offer an
observation ...
Keeping in mind that I avoid monkeying with my own Captivate
projects in Flash because of the various inconsistencie, some of
which you have seen ... I am hopeful that the Captivate team does
something to address the handling of full-motion slides. We all
know that they are created as AVI clips which are then converted to
SWF as separate slides, so it seems logical to me that there must
be a way to offer the source, that is, the AVI or a FLA either of
which would then be handled separately inside Flash (for those who
like to do their tinkering in that environment).
In the meantime, you might try to change the timing of the
(errant) full-motion slide a bit. Like, perhaps add or subtract a
tenth of a second to it or otherwise change its properties so that
the import doesn't end up as a blank. Just thinking out loud in
trouble-shooting mode... come to think of it, when the project is
published to SWF/HTM, each full-motion slide is published as a
separate SWF file. Would it be possible to publish the project,
then try to bring that SWF back into Captivate as an animation?
It's late here and I'm getting into fuzzy-thinking time, so if that
doesn't make sense, it wouldn't surprise me. -
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. -
Flash menu doesn't work after opening an external link.
Hi,
I have this problem - I made a simple website with a flash menu, that opens internal links in an iframe. However, I have a few other (not included in the menu) external links, which open in the same iframe. And after I click on one of them and it loads in the iframe, the buttons on the menu stop working. I'm beginning to think it has something to do with the internet explorer, since it works on some computers. But I'm not sure... not very good at this.
I've been searching for an answer here and there, but still haven't found anything. Please, help.
Thank you!Here it is: http://kiss4eto.is.com/. Click on the Me button, for example. It should work. Then click on the "Addicted to Facebook" link on the right and after that try the Me button again. It doesn't work any more. At least on my computer.
Thanks, again. -
Hi,
i have made an animated web flash menu which consists of 1
preloader SWF
file, which displays a progress bar till my main movie is
being loaded.
while the main movie is loaded the animated web flash menu (+
images
+sounds) is played.
this is wonderful on my main PHP page, but now i would like
have this
animated web flash menu on each of my PHP page.
However, i do not want to play all animations, i just want to
display
the final result, to avoid end users to be bored with a
repeating animation.
so in fact, just to display the menu and animated pictures...
but
without sounds, and all others animation.
what is the best way ?
thanks a lot,
A.so please, send it to rafnews (at) gmail (dot) com
The Feldkircher wrote:
> Hi
>
> I am currently doing a sample MenuBar for another
Postee, when I've finished I
> can send it to you as well.
>
> Send me a contact email address so I can forward it to
you when its ready.
>
> Ciao For Now
> -
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. -
Unable to load Flash 9 on my Intel MacBook Pro
Unable to load Flash 9 on my Intel MacBook Pro but can on my
Intel iMac. I spoke with a Tech from the Mac Store service area and
was told that there in a thread on this issue but I can't find it.
The basic issue is that I am able to load Adobe Flash Player
9 on my Intel iMac but not on my Intel MacBook Pro and I'm unable
to determain why. I tryed uninstalling and reinstalling three times
and found no difference.
If someone could help me I'd be thankful.
DaveI bought the $29 version of Snow Leopard (not the kosher way of doing things, i know.
If you read the license agreement, there's actually no difference between what's allowed with the $29 copy and the $169 boxed set. The only difference is that the boxed set also includes iLife and iWork. There is also, despite what some will have you believe, nothing in the license agreement that requires Leopard to be pre-installed except in the case of the $10 disk purchased as part of the Up-to-Date program (for folks who bought a machine shortly before SL was released). So, you're not being bitten by some technical requirement for Leopard to be present.
I get a flashing folder with a question mark. My disk drive makes some crazy noises as well, and it seems to start running fast, then slowing down. I think it may have caused a minor scratch on the disk as well.
Sounds like it's possible the drive could be failing, though that's impossible to say for sure remotely. One man's crazy noises are another man's normal state of operations. Do other DVDs work in your drive?
I'll also need to do an "Archive & Install" since there are tons of important files on this machine.
*DO NOT* attempt to install a system update on this machine unless you have good backups! If something goes wrong, you're screwed if you didn't have a backup. Hopefully, you have not reached that point already... I'm unclear on whether your machine is no longer able to boot, or if it's only having trouble when you try to boot from the SL disk.
If your machine is still functional, your first priority before doing *+anything else+* should be to make at least two backups. See my [Mac Backup Guide|http://www.reedcorner.net/thomas/guides/backups> for assistance with this.
If your machine can't boot anymore, let us know and we'll offer some troubleshooting tips. And don't try to do anything else with it until you've consulted with some expert, whether here or at an Apple Store or somewhere else.
Maybe you are looking for
-
How can i Display my images in cover flow view in Keynote?
I am working on a project .I am on Mavericks . I need to make a presentation of my project ideas . My project involves showing some images in cover flow view . So, is there any way i can show my images in cover flow view in keynote or pages app or by
-
Indesign (CS4) no longer launches
Hi folks, I posted this on the CS forum, but it may be better here.... I'm having trouble with a couple of the CS 4 programs (indesign and photoshop). Neither program will now launch, the PC in question is about 10 days old, so everything should be c
-
Hello, I have a audigy 2 ZS, connected to a Creative 5500 Digital speaker systemI dont use the Digital Decoder so the 3 3.5mm jacks go from the back of the soundcard into the Sub bass unit where the speakers are connected?I can use CMSS and CMSS 2 to
-
My Bose QuietComfort 2 do not funtion with my Ipod. Do I require an adapter for the Jack?
-
Generating multiple recordset names
Hi All, I am doing a scenario which is File to IDOC. I am reading a file which is of variable structure , so in FCC i have used the RecordSet Sequence : Variable after reading the file i have the structure as example: - <RecordSet> - <W6> <WE601 />