Major Problem....Menu Linking
Ok I bought this template for my company and i'm trying to fix the menu bar but I dunno how to link it to a new page its already linked just no way to change it what can I do..
NEED HELP ASAP
DevShed > Flash Help
Posted on: March 9th, 2005, 07:29 PM
View Complete Forum Thread with Replies
Sponsored Links:
Major Major Major Print Headache Pleeeeeeeease Help, Someone
hey peeps, harldy anyone knows much about printing from flash i have found so anyone who can come up with a solution is a complete genius and deserves to be knighted.
Ok, i have a giant flash movie (2250x2400) with about 30 draggable boxes which can also be made invisible as the user wishes.
what i want is to be able to set flash to print the whole thing over a series of pages, presumably 6 i would think. Im thinking this would be done somehow by setting a value for the maximum print area by using actionscript and set it to the size of a4?
ive tried using printing masks with the #b label but it prints everything as it was in its original state before anything has been moveed or made invisible so this is therefore not an option!
Any ideas??
ive tried looking into this but as i say there is very little information regarding detailed printing action, maybe someone in here can be a hero!!!
many thanks in advance
any pointers or guidance would also be appreciated!!
cheers
david
View Replies !
View Related
Major Major Major Problem With Folder? So Odd
i have all of my fla files in a folder,
with any of them if i open and publish nothing works (my test is to load a component on the stage and it goes a bit mental flashing all its properties).
so:
1. i make a new document and place a component on, publish it and it works fine
2. i save it in a folder somewhere else, publish, works fine
3. i save it in the folder with my fla documents, publish it, the flashing is there again..
doesn anybody have any idea what to do with something like this, i have never experienced anything like it in flash before!
thanks
Dan Hodkinson
View Replies !
View Related
Major Lag To Load My Template Because Of My .swf Menu
Hello everyone!
I'm new here!
I'm having a major problem that I think is being caused by my flash file.
I have a page designed, but my only problem right now is that my page doesn't load well. (It is still under construction)
Everything will load eventually, but the php include I have added, takes a little while to load.
The flash I believe causes the page to be stuck on the header only.
(This is where you'll see a menu of country icons)
And the rest of the page must wait till the php include is loaded.
It looks as though the page is stuck, and people may leave my page, because it takes a little while to load.
My page is currently located here:
http://profile-generator.hi5-world.com/homepage.php
Please take a look at it.
It seems to load a bit normal in FF.
But in IE, it has a major lag from the start!
The flash file is "menu.swf" located in line 561 of my code
My Flash version is 6 I think, but I do not see the option in these forums.
Please help me fix this problem soon!
Thanks,
-Andrew
View Replies !
View Related
[Major PROBLEM] Loadmovie Needs Refresh [/Major PR
peepz,
my website runs flawlesson my on HD, but if a place it online the swf's i load into the mainmovie won't work, only if i use a browser refresh....
i use the loadmovie command for loading swf's in my empty mc wich is in my mainmovie!
it so weird im getting CONFUSED...
peepz i need a good advice...!!!!!
thn for all your answers..!
View Replies !
View Related
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.
View Replies !
View Related
Linking Problems W/ Cool Menu FX Menu
Hi, I have a Flash site that I created a side menu for using Cool Menu FX and can be viewed at the link below:
http://www.graphicdesign-nh.com/fc2/fcflashsite.html
The menu loads externally in the Flash site using the LoadMovie command. I set up links for the side menu buttons using Cool Menu FX to go to specific frame labels specified as named anchors (ie., fcflashsite.html#howworks) in the Flash site file. If the menu file is opened in Macromedia Player, the buttons work in that they open the browser window and it goes to the correct anchor label in the Flash site file. However, when the menu is viewed in the site as in the above URL the buttons don't work at all. Any ideas what is wrong? It seems like something simple. Please let me know. I'd appreciate any help. Thanks!
View Replies !
View Related
LInking Problems W/ Cool Menu FX Menu
Hi, I have a Flash site that I created a side menu for using Cool Menu FX and can be viewed at the link below:
http://www.graphicdesign-nh.com/fc2/fcflashsite.html
The menu loads externally in the Flash site using the LoadMovie command. I set up links for the side menu buttons using Cool Menu FX to go to specific frame labels specified as named anchors (ie., fcflashsite.html#howworks) in the Flash site file. If the menu file is opened in Macromedia Player, the buttons work in that they open the browser window and it goes to the correct anchor label in the Flash site file. However, when the menu is viewed in the site as in the above URL the buttons don't work at all. Any ideas what is wrong? It seems like something simple. Please let me know. I'd appreciate any help. Thanks!
View Replies !
View Related
[Major PROBLEM] Loadmovie Needs Refresh [/Major PROBLEM]
peepz,
my website runs flawlesson my on HD, but if a place it online the swf's i load into the mainmovie won't work, only if i use a browser refresh....
i use the loadmovie command for loading swf's in my empty mc wich is in my mainmovie!
it so weird im getting CONFUSED...
peepz i need a good advice...!!!!!
thn for all your answers..!
View Replies !
View Related
[Major PROBLEM] Loadmovie Needs Refresh [/Major PROBLEM]
peepz,
my website runs flawlesson my on HD, but if a place it online the swf's i load into the mainmovie won't work, only if i use a browser refresh....
i use the loadmovie command for loading swf's in my empty mc wich is in my mainmovie!
it so weird im getting CONFUSED...
peepz i need a good advice...!!!!!
thn for all your answers..!
View Replies !
View Related
XML Menu Linking - HELP
Hello, everyone! I suppose there has been such a topic already, but I cannot find it. I have been doing some XML menu (I have covered all the XML tutorials here on kirupa.com) and the code is doing just fine. I am using this one:
Code:
item_spacing = 100;
item_count = 0;
function BuildMenu(menu_xml){
broj = menu_xml.firstChild.childNodes;
for(i=0;i<broj.length;i++){
if(broj[i].attributes.name == "menu"){
var labels = broj[i].firstChild;
var item_mc = menu_mc.attachMovie("button_mc", "button"+item_count+"_mc", item_count);
item_mc._x = item_count*item_spacing;
item_count++;
item_mc.menu_txt.text = labels.nodeValue;
}
}
}
var menu_xml = new XML();
menu_xml.ignoreWhite = true;
menu_xml.onLoad = function(success){
if(success){
BuildMenu(this);
}
else{
trace("Error");
}
}
menu_xml.load("menu.xml");
The "button_mc" I am attaching to the "menu_mc" consists of a dynamic text field and a rectangle which is transformed to a button using this code:
Code:
frame 1:
stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}
this.onRollOver = this.onDragOver = function(){
rewind = false;
play();
}
this.onRollOut = this.onDragOut = function(){
rewind = true;
}
frame 6:
stop();
The XML file looks something like this:
Code:
<menu>
<item name="menu" link="movie1.swf">HOME</item>
<item name="menu" link="movie2.swf">PROFILE</item>
.
.
.
</menu>
The menu builds without any problems. But, now comes the problematic part... I want to give those buttons in the menu the function to load .swf-s into the "loader_mc" which is on the main timeline. "loader_mc" is basically the place where I want my "movie1.swf" etc. to load into.
I have been trying to figure it out by myself for two days now and I gave up. I hope someone can help me with this. What can I do (what code to write) so that every button gets to load a different .swf into the "loader_mc"?
Thanks in advance!!!
View Replies !
View Related
Linking From A Draggable Menu
Hi everyone, I'm trying to make my first site on Flash MX, and so far jus' fiddling around with different navigation systems. I made a little draggable menu, and then got kinda stuck with making buttons within the Menu Clip link back to the main timeline and change the frame position.. (I'm REALLY new to Flash btw, especially Actionscript, it's my first day lol) So far I have this:
http://strangedaze.tripod.ca/Menu.swf
The design isn't final, I know it's ropey
I tried making the ":: Sketches" a movie clip and trying to attach goToAndStop but I think I may have just messed up the code.. would that work if I put the code in correctly?
then I tried making it a button and that didn't quite work either. Any help/comments much appreciated
View Replies !
View Related
Please Help Linking A Flash Menu
I've got a flash menu on my car club page and I'm having all sorts of problems linking the buttons to the pages. my main problem is that I cant scroll all the way to the end of the flash to be able to link the buttons. I am at the symbol that has the buttons loading up one after each other. I scrolled to the end and linked each button. but when I preview the flash all the buttons link to page of the first button. Here is a link to the .fla file. http://www.midstateimports.com/menu.fla . If anyone here can tell me how to link the buttons or even do it for me it would be greatly appreciated.
View Replies !
View Related
Problem Still With Linking Menu
Still my Problem is this i have a button inside a movieclip, inside a movie clip (no im not stuttering, its inside 2 movieclips) and i need to link it to a another scene in this movie.
if i try a basic "on release root.gotoandplay" it throws the mouse over away and doesnt work.
I need to link the Blue button of the guys shaking hands that is in the scroller to the following scene... "transition_ partners"
that is where i start to encounter a major problem... cause sometimes the mouseover effect goes away aswell.
Please.... i think it is impossible. if you dont get it right then i am gonna have to redo the entire menu system.
Attached is the version minus the grey test block and cut down to size.
View Replies !
View Related
Linking In A Flash Menu (help)
Hello!
I am currently making a website where the entire top part of the design, including the menu, is a flash. I have the menu, with all the different buttons with different names of sections on it that change when the mouse is over it. Unfortunately, since I did not design the flash (I bought it as a template with a html graphic design below it) this is my first day ever using the Macromedia Flash program and I don't know how to make links in the flash menu. When I click on it in the full html design, it does nothing and has no link.
Can anyone help me please?
Thank you!
View Replies !
View Related
Troulbe With Linking A Menu
i have a menu i created and im having problems links my submenu topics to html address and some will call in swf's i really have know idea how do this any help will be great i will attach the file since it is difficult for me to fully explain accurately again thanx to anyone trying help
View Replies !
View Related
Help In Linking Horizontal Menu Bar
i've been following the tutorial on the link below to create a dynamic horizontal menu bar but now i encounter a problem which i cant link the buttons to another scene?...anyone can help?
http://www.layoutgalaxy.com/html/htm...er49-page1.htm
Thanks in Advance
View Replies !
View Related
Linking Pop Menu To It Scenes
I need some ones expertise.
I have created a "test" pop up menu with its sub links as a movie clip(s) for a web site Im designing.
I would like for them is to link them to its scenes. for eg: profiles to scene 2 with its sub links showing, and also linking the sub menus to their own scenes
Im hoping some can help me, I'm in desperate need
You can email, so I can email the file, for some unknown reason, I can not attached the file
Cheers
View Replies !
View Related
Menu Buttons & Linking
Hello,
I am a very big newbie to the world of flash and I am taking a college course for it. What I did was create a menu with buttons that link to certain areas of my flash movie (for my assignment). I did this by labeling certain areas and then referring to the names on the buttons. The problem was I could not figure out how to do this in ActionScript 3, I could only do it in ActionScript 2. Now I have other things I have to do in Flash but the entire book I have is written for ActionScript 3. What I would like help with is changing the current ActionScript 2 commands over to ActionScript 3. The commands are such as:
Code:
on (rollOver) {
gotoAndPlay("Menu 1");
}
and
Code:
on (release) {
gotoAndPlay("Scene 1", "Inspired");
}
Any help with this would be greatly appreciated!! Thanks in advance!
View Replies !
View Related
Linking Up A Drop Down Menu
Hey, Just curious if someone can help-I am inserting a .swf drop down menu into a dreamweaverMX webpage -when I press on a specific field in a drop down menu-how can I get it to go to a specific area in my webpage? just curious where and what code I would put in to direct it to a page in my website.
View Replies !
View Related
Sub Menu Buttons Not Linking
Hello everyone;
I have an fla, 4 scenes. scene one is home. I have a movie on the stage that has several layers, first is actions, with stop on the first frame. I also have a button that has a rollover action to go to frame two where the sub menu buttons appear. I also have invisible buttons to close the sub menus by going to frame one. Everything is working great except for this. What I want is that when the user clicks on the sub menu button, it takes him to scene2. That is not happening, I have checked on the spelling of the scene names and everything. What is actually happening when the sub menu button is clicked, all the sub menu buttons dissappear instead. I also tried creating several new files and do the same thing with no solution.
Please see attached FLA.
Can anyone help plz.
Thanks
Raffi
View Replies !
View Related
Drop Down Menu-linking
hi,
newb question-but-when I press on a selection in the drop down menu-how do I get it to go to a certain page in my website-I have attached a drop down menu from this site-please help
thanks
View Replies !
View Related
Sub Menu Buttons Not Linking
Hello everyone;
I have an fla, 4 scenes. scene one is home. I have a movie on the stage that has several layers, first is actions, with stop on the first frame. I also have a button that has a rollover action to go to frame two where the sub menu buttons appear. I also have invisible buttons to close the sub menus by going to frame one. Everything is working great except for this. What I want is that when the user clicks on the sub menu button, it takes him to scene2. That is not happening, I have checked on the spelling of the scene names and everything. What is actually happening when the sub menu button is clicked, all the sub menu buttons dissappear instead. I also tried creating several new files and do the same thing with no solution.
Please see attached FLA.
Can anyone help plz.
Thanks
Raffi
View Replies !
View Related
Linking A Flash Menu
Hi,
I have got a site with frames. On the left frame I imported a flash menu and now I want to link the items in that flash menu to the right frame so when clicked the information appears in the right frame.
How do I do that????
check http://www.geocities.com/alien19802002/ to see what I mean
and this is what 1 have under the buttons for example:
on (release){
getURL ("http://www.meerevents.nl","rechts");
}
View Replies !
View Related
Drop Down Menu-linking
hi,
newb question-but-when I press on a selection in the drop down menu-how do I get it to go to a certain page in my website-I have attached a drop down menu from this site-please help
thanks
View Replies !
View Related
Linking From Carousel Menu
Hi,
I'm getting into the carousel menu, and its great. I'm at the end of tutorial two however I want to build a menu where i can just click on the menu items and go to a page on my website, like a normal link.
Can I do this with the XML file?
How do I create a new variable to do this?
View Replies !
View Related
Linking A Sub-menu Button To A Scene
Hi ..
I was wondering if someone could help me, I'm not sure if
I'm doing anything right !
I have a site with about 3 'flash 5 pages; all in the one
.swf with 3 scenes. Each scene is only one frame.
In the first scene I have a menu bar which contains a
popup menu. I want to link one of the sub-menu's buttons
inside the popup menu to go to and play scene 2 but I can't get it to work.
All my scenes have stop actions on the first frame, as
they are only one frame. I'm not sure if this is right
either, maybe this has something to do with it. But
if I don't have the stop action on each scene, when I
go to ctrl-testmovie in loops all the 3 scenes.
Can anyone please help me with this at all?
It would be soooooooooooooo much appreciated,
Thankyou,
torcha
View Replies !
View Related
Linking A Sub-menu Button To A Scene
Hi
I am trying to link a sub-menu button to scene 2 but it
doesn't seem to work. I have 3 scenes and I am using buttons to jump to scenes.
The button is inside two movies and i have attached
this bit of actionscript:
on (release) {
tellTarget ("/") {
gotoAndPlay ("scene 2", 1);
}
}
I've also tried gotoandstop but that doesn't work either.
Basically what ever scene I choose it just completely ignores it and jumps to the next scene ALWAYS which happens to be scene 2.
please can anyone help I've been stuck on this for over
3 days.
Thanks,
torcha
View Replies !
View Related
HELP - Tree Menu's & Arrays Linking
i am currently using a tree menu system which i have downloaded from the movie resources area in flashkit.
It is a tree menu which heavily relys on arrays.
The links used in the source within the links array use urls
e.g.
-------------------
links=new Array();
links[0]="http://digilander.iol.it/mywebhost/flash";
------------------------------------------------------
which is all well and good, however i wish to make these links flick to frames in a movie clip i have in my main scene named main_mc.
Is this possible?
Thanx in advance.
View Replies !
View Related
Linking Dynamic Menu Items?
Okay, i'm playing with tutorial 58 - Dynamic Menu with submenu, and I'm stumped on something that really shouldn't be that hard.
http://www.actionscript.org/tutorial...us/index.shtml
I've got the menu all done and now I am trying to use the submenu items to load dynamic jpgs into an empty MC. The tutorial explains how to link the buttons using getURL and I can do that fine, but of course the jpg just loads in a new browser window.
here is the generic AS on the submenu button using getURL:
code: on (release) {
myURL = eval("_root.urls"+choice);
if(myURL != null){
getURL(myURL);
}
}
Now, I thought I should just be able to use another command instead of getURL but I'm not sure what to use and everything I've tried goes kapuzt.
Here's what I've got:
code: on (release) {
subLink = eval("_root.slink"+choice);
if (subLink != null) {
GetURL(subLink);
}
}
the _root.slink value is this:
slink11 = "portjpgs/2003.01/01.jpg",pictMC,-20000;
So I guess two things
1) What comand should I use?
2) And how do I target the movie clip and depth? (I'm pretty sure I've got it wrong right now...)
Thanks for all your help,
Gabe
View Replies !
View Related
Linking External .swf's Into A Flash Menu
I'm am so frustrated at this point.....please HELP!
I have created a menu in flash to link several .swf files that were created in Macromedia Captivate. I just want the user to click on a button, then have the screen jump to the corresponding .swf, then return back to the menu when the movie is done playing. If I link the file to the text instead of the button, it works, kind of.
I would like the movies to play at about full screen size, same as the menu.
I have tried several different lines of code, none of which seem to work right. At this point, I am so confused, I have no idea what code is correct.
Also, even code that seems right is coming up with an error saying...
"Symbol=MenuDropDown, layer=Layer 1, frame=2:Line 1: ')' or ',' expected.
where am I supposed to be putting a , or ) ???
At this moment, the code attached to one of my buttons is..... (and I know this is not right, but just as an example...)
on (release) {(_root.loadMovie(file:///S:MCITHelp DeskCaptivateTracking SystemWork FilesNicoleBryans Movies"Open Service COnsole page.swf"
}
loadVariables("Open Service Console page.swf", 'thewin', 'thewin', 'height=748, width=1024, toolbar=no, scrollbar=no');
If anyone can guide me in the right direction, I would Love You! Please help me.
View Replies !
View Related
Scotty's Infinite/XML Menu Linking
I'm modifying one of Scotty's infinite menu's to my needs
http://www.kirupa.com/forum/showpost...68&postcount=2
the infinite_resize.zip is the one I'm modifying. Now I don't need it to load image instead I want it to open up a link. I've modified xml "image" attribute to contain some URLs instead. I just need to know how to modify this bit of code to load the URL instead of an image:
ActionScript Code:
item.onRelease = function() { containerMC.loadPic(this.id);};
I tried something as simple as getURL and it didn't like that, and if I run a trace it calls the node. I can trace the array and it shows me all the "image" values... but I just can't call them individually. Even tried creating new variables to link directly to them... but I'm not l33t in AS. So need less to say I'm stuck need help... hook it up
View Replies !
View Related
Menu Linking To Textbox And Pictures ?
Hello !
Im using Flash 8 at the moment, and im making a simple hompage.
I need to know how i can make a menu linking to an "under menu", the "under menu" i supose to link to a textbox that will show text thats in a txt document in the same folder as the page. What i also want is to have pictures in the textbox, and if its not possible, how can i make it happen without some extreme coding ?
Here is a sample i did so u can understand what im talking about:
The red text is the marked menu. so we are under pictures/cars, box contains pictures and text.
Can i make this happen without big coding ?
Thanx alot for your time.
View Replies !
View Related
Rollover Linking Menu To Image
Hi y'all, I've been working on a side project for my school, and am working on doing a campus map in flash for the school website.
I have a side menu, which lists all the building names, and all the buildings layed out and completed.
What I want to do, is set a button to each building/corresponding name, so that when either of them (building or name) have the mouse over them, a line appears between them.
So far, I've got two problems. one is, the line that is meant to appear after one of the objects is gone over with the mouse is being counted as part of the object, so as you're moving the mouse around the screen, lines will pop up between buildings and names when you go over them...
secondly, I can't make the line pop up when the mouse is moved over the button... only the building or the line Have I made sense? can anyone help?
Attached is a .swf of what I've got... at this stage, I am working on getting the 'administration' button working, so that's the only one with a line connecting.
I can't attach the .fla because it's too large and I have no webspace to upload to.
View Replies !
View Related
Linking Scenes With Drop Down Menu's
dunno if you can help in time but i suppose its always nice to know in the future (got to give it in by 1'oclock friday 15th)
i have created a drop-down menu from this tutorial that his forum does. (link is http://www.kirupa.com/developer/mx/dropdownmenu.htm )
but the only problem is that i cant seem to link it to any scenes. The script ive got for the buttons is;
on (release) {
gotoAndPlay("Homepage", 1);
}
but it dosent seem to work.
any suggestions would be lovely
View Replies !
View Related
Simple Linking From Flash Menu
Hi All, I've been having some trouble finishing off my (very basic really) website and the main reason is because i can't get the links to work from the flash menu that i have. I didn't write the flash, but managed to edit up everything else i needed except for this!
this is the website
http://www.martinmulholland.com/video.html
the menu i'm talking about is the one on the right
as you can see all the lights are on, and i've got HTML pages ready for those links to go to, but can't figure out how to script flash to make it work
here is the code from the SWF file, the rest is just play and stop commands, this is the meat of it, i'm using Flash CS3 but its older stuff (AS1 or 2 i think)
Quote:
on (rollOver) {
if (_root.link<>1) {
this.gotoAndPlay("s1");
}
}
on (releaseOutside, rollOut) {
if (_root.link<>1) {
this.gotoAndPlay("s2");
}
}
on (release) {
if (_root.link<>1) {
_root["item"+_root.link].gotoAndPlay("s2");
_root.link = 1;
}
}
View Replies !
View Related
Linking External .swf's Into A Flash Menu
I'm am so frustrated at this point.....please HELP!
I have created a menu in flash to link several .swf files that were created in Macromedia Captivate. I just want the user to click on a button, then have the screen jump to the corresponding .swf, then return back to the menu when the movie is done playing. If I link the file to the text instead of the button, it works, kind of.
I would like the movies to play at about full screen size, same as the menu.
I have tried several different lines of code, none of which seem to work right. At this point, I am so confused, I have no idea what code is correct.
Also, even code that seems right is coming up with an error saying...
"Symbol=MenuDropDown, layer=Layer 1, frame=2:Line 1: ')' or ',' expected.
where am I supposed to be putting a , or ) ???
At this moment, the code attached to one of my buttons is..... (and I know this is not right, but just as an example...)
on (release) {(_root.loadMovie(file:///S:MCITHelp DeskCaptivateTracking SystemWork FilesNicoleBryans Movies"Open Service COnsole page.swf"
}
loadVariables("Open Service Console page.swf", 'thewin', 'thewin', 'height=748, width=1024, toolbar=no, scrollbar=no');
If anyone can guide me in the right direction, I would Love You! Please help me.
View Replies !
View Related
Menu Linking To A Frame In A Movie Clip
I have a menu loading into an MC on my movie and the buttons are linked to certain frames in another MC.
e.g.
on (release) {
tellTarget ("pages") {
gotoAndPlay(1);
}
}
'Pages' is the name of the MC they should be linking to but when i click a link to go to it i get the error:
Target not found: Target="pages" Base="_level1"
What is it saying and how should i fix it?
View Replies !
View Related
Linking From Dropdown Menu In Movie Clip
Using Flash MX
Have a website with a dropdown menu held inside of a movie clip, accessing with tellTarget command.
What I need to do is link from inside that movie clip to a new scene....however I can't get it to work...
What I've got is...
on (release, releaseOutside) {
gotoAndPlay("hide");
}
on (release) {
_root.gotoAndPlay("gallery");
}
hide-frame label inside movieclip
gallery-scene name
All of the buttons are also grouped inside the movieclip if that has any effect on it (I wouldn't think it would)
Thanks
Justin W
View Replies !
View Related
[F8] Linking The Dropdown Menu With The Position Of The Gallery
:P I could finally get a photo gallery going with a drop down menu, but I'm having trouble essentially linking the dropdown menu with the position of the gallery. Is there anyway to make it so that when someone clicks a picture from a drop down menu it changes the position of the photo gallery?
stop();
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
//combobox, this is the drop down menu
combo_cb.addItem("0001", "manga/firstmanga/0001");
combo_cb.addItem("0002", "manga/firstmanga/0002");
combo_cb.swapDepths(2);
lo = new Object();
lo.change = function (evt) {
picture.loadMovie(evt.target.getValue() + ".jpg");
}
combo_cb.addEventListener("change", lo);
View Replies !
View Related
[F8] Problems With Linking Buttons On Drop Down Menu
Hi folks.
I've only been playing with flash a few days now, but I thought I was coming along well, until I find myseld repeatedly stumped by the same problem.
I have created a navbar with 5 buttons. 2 do not have drop downs (the home and contact buttons) and when I click on them I can make whatever I want to happen (in this case, change the .swf in the Loader), but the other three buttons do have drop downs... and I cannot get any of the buttons in the drop down to work in anyway. I have been trying the following code, which works for the home/contact buttons, but not the others as I said...
on (release) {
myLoader.contentPath = "weddings.swf";
}
Can anyone help? I'm sure it's something simple but life changing...
View Replies !
View Related
Help Linking Gallery Movie To Main Menu
Hello. I modified a file for a masked picture gallery found in flashkit (picture gallery 4) and it seems to work fine. I want the gallery to work for background pictures. Example: when I click the services button, I want the background to swap.
I took off the buttons in the main scene of this gallery file, but I don't know how to use the buttons in my menu instead. I made my gallery into a movie, and my menu into another movie. Both are located in Scene one.
My services button actionscript is like follows to go into the services section with no background picture:
on (release) {
_root.gotoAndStop("mergers");
}
The button in the gallery file is:
on (rollOver)
{ num = 2;
}
on (release) {
if (link != num)
{
pages.gotoAndStop(num);
mask.gotoAndPlay(1);
link = num;
_root.gotoAndStop("mergers");
}
I copied that into my button's actions but it is not working. How should I link it? The instance name of my menu movie is MCmenu. The instance name of my gallery movie is MCgallery.
Thanks guys! Here's the gallery file
View Replies !
View Related
1.Deep Linking, 2. Preloader, 3.menu, And 4. Unload Swf
Hi, Im almost finished my site - what an ordeal it was.
Im learning actionscript and flash as I go, I admit its not my forte - I like making things look pretty better....
Here is my sites link www.victorxavier.com/index2.html
Anyway Id really appreciate some help with
1. Deep Linking.
Id like the user to be able to use the browsers back button with my site. I currently have my site set up with many swfs coming into the main swf. To expand on what Im saying --
Level 0 - my main swf
Level 2 - my navigation
Level 1 - all other pages ( Identity, Design, Contact, Info, and Login )
2. Why does my preloader start at 99% on my identity, design, contact, and login page (which also happen to be pages which use components)..is it because of the components, how do I fix this problem
3. im using yugo menu. i dont like how if im on the homepage and i click on menu it reloads the homepage another example would be if im on the design index page and i click on design it reloads the design index page - how do i go about solving this
4. Im trying to make an animation it goes like this --
the menu will animate each part of the tab so that the user know that the slits are links to pages.
i was hoping to set it up that the swf animates and then unloads and brings in the next swf and so on
stop();
// add items to menu
ymenu_mc.addItem("", {text:"DESIGN", color:0x0000FF},'');
is the code on the first frame of the timeline
_global.printf = function() {
str = "";
for (var i = 0; i<arguments.length; i++) {
str += arguments[i]+", ";
}
trace(str);
};
function init() {
space = 1;
easingSpeed = 2;
minWidth = 10;
maxWidth = 233;
// waiting delay to start resizing
selectedItem = 0;
// item nad ktorym bola naposledy mys, ak je roll out tak ho vynuluje na clickedItem
clickedItem = 0;
// last clicked item
growingItem = null;
reducingItem = null;
// selectedItem after growTime frames
growDelay = 5;
// frames
growTime = 0;
//
// visual settings
items_arr = [];
this.createEmptyMovieClip("updater_mc",-2).onEnterFrame = update;
// ----------------
textanimTime = 0;
textanimDuration = 15;
this.createEmptyMovieClip("textanim_mc",-1)
}
function addItem(label, data, link) { // hier 'link' beigefügt
var i = items_arr.length;
if (i == 0) {
data.id = 0;
data.mc = item0_mc;
data.smalltext = label;
items_arr.push(data);
} else {
data.id = i;
data.mc = item0_mc.duplicateMovieClip("item"+i+"_mc", i);
data.smalltext = label;
items_arr.push(data);
}
data.mc.id = i;
data.mc.label = label;
data.mc.link=link; // hier ebenfalls beigefügt
//
totalWidth = ((items_arr.length-1)*minWidth)+maxWidth+(items_arr.length-1)*space;
}
function startTextAnimation(oldId,newId){
//duration = 20
//printf("//",newId,items_arr[newId].smallText);
items_arr[oldId].mc.label = items_arr[oldId].smallText
//items_arr[newId].mc.label = items_arr[newId].smallText +":"+ items_arr[newId].text
var strlen = items_arr[newId].text.length
textanim_mc.onEnterFrame = function(){
var rndstr = "";
//
if ((textanimDuration - textanimTime) < strlen){
rndstr += items_arr[newId].text.substr(0, strlen - (textanimDuration - textanimTime))
for (var i = 0; i<(textanimDuration - textanimTime); i++){
rndstr+= String.fromCharCode(random(50) + 20)
}
} else {
for (var i = 0; i<strlen; i++){
rndstr+= String.fromCharCode(random(50) + 20)
}
}
items_arr[newId].mc.label = items_arr[newId].smallText +""+ rndstr
//
if (textanimTime++ > textanimDuration){
items_arr[newId].mc.label = items_arr[newId].smallText +""+ items_arr[newId].text
textanimTime = 0
delete this.onEnterFrame
}
}
}
function selectItem(itemId) {
growTime = 0;
selectedItem = itemId;
//
totalWidth = maxWidth+(items_arr.length)*(minWidth+space)-space;
}
function deselectItem(itemId) {
growTime = 0;
selectedItem = clickedItem;
}
function clickItem(itemId){
clickedItem = itemId;
}
function update() {
// trace(growTime+"//"+growingItem+"//"+selectedItem);
// printf ("gi si ci",growingItem, selectedItem,clickedItem)
if (growTime++ == growDelay && growingItem != selectedItem ) {
//
textanimTime = 0
startTextAnimation( growingItem,selectedItem) ;
//
reducingItem = growingItem;
growingItem = selectedItem;
}
var grow_mc = items_arr[growingItem].mc;
var reducing_mc = items_arr[reducingItem].mc;
//
grow_mc.bg_mc._width += parseInt((maxWidth-grow_mc.bg_mc._width)/easingSpeed);
var restWidth = totalWidth-grow_mc.bg_mc._width-(items_arr.length-1)*(space+minWidth);
reducing_mc.bg_mc._width = restWidth;
var sumWidth = 0;
//printf(restWidth, reducing_mc, grow_mc);
for (var i = 0; i<items_arr.length; i++) {
var item = items_arr[i].mc;
item._x = sumWidth;
sumWidth += item.bg_mc._width+space;
}
}
init();
is the code embeded in the movieclip
When I add the
loadMovie("identitymenu.swf",0);
It doesnt give enough time for the animation to play. Hope this is making sense, due to my lack of actionscript language ability Im not able to articulate this well...
i feel like ive hit a brick wall - my brain is exhausted - ive tried searching for different tutorials - but none of them make sense to me.
if anyone knows of any tutorials which could help me out with my problems Id appreciate it.
Thanks in advance.
View Replies !
View Related
HELP With Linking Internal Pages To Drop Down-menu
Hi:
I have a flash document with 5 pages. I need to create a simple drop-menu that links to each of these 5 pages, but WITHIN THE SAME FLASH DOCUMENT.
So far, I have managed to create a drop-down using the UI components combo-box, and given each list a name. My Question is HOW DO I LINK THESE LABELS TO THE OTHER PAGES WITHIN THE SAME FLASH DOC. There are plenty of tuorials on linking buttons in Flash to .swf files etc. But this is just within the same doc.
PLEASE HELP!!!!!!
Thanks.
View Replies !
View Related
Linking XML Slide Show With Scrolling Menu
So I finished my slide show using xml.
- of course only one picture shows (loads) as my navigation is...the scrolling menu, so there is not click next button as in the xml slide show tutorial
I also finished, as you can see, the scrolling menu movie...i would not use the xml slide show technique with this as you would always have to manually go in and update blank boxes to load pics into as they are not overlapping in the same space...although you super coders can...im just not there...this is my first project with any coding, and im copy and paste man. :-)
So...how do i make it where my buttons in the scrolling menu call up the images from my xml document that created my slide show???????HELP!!!
:-) This is really beyond me
Here is my site:
http://www.dalen.co.uk
peace all
dalen
View Replies !
View Related
Problem Linking My Button Objects In My Flash Menu...
Hello all, I recently got back into flash after a 6 year hiatus.
I have CS3 and I have been trying endlessly to create a simple flash menu that has text links with a rollover effect.
I created a project and set up separate buttons with rollover effects, but if i try to put a URL link for any of the buttons in the button editing area it is always somewhat faulty... meaning when I publish and test it i have to literally click on the link 15-20 times with my mouse until it shoots me to the link.. its very odd.
I am guessing I am doing something completely wrong.
I uploaded the file in a zip. This file has my buttons WITHOUT any URLs input to see if anyone could add the proper code for one of them and I could apply it to the rest... or just tell me I am way off.
http://www.allergik.com/menutest.zip
Thanks.
Paul
View Replies !
View Related
|