Problem With Buttons In Flash

free web hosting
Open Discussion > CONTRIBUTE > Computers > Software

Problem With Buttons In Flash

Nani Cheri
I have made a couple of buttons in Flash, but not with the button symbols, but as a movieclip.

QUOTE
b1.onRollOver = over;
b1.onRollOut = out;
b1.buttText.buttonText.text = "HOME"

b2.onRollOver = over;
b2.onRollOut = out;
b2.buttText.buttonText.text = "ABOUT ME"

b3.onRollOver = over;
b3.onRollOut = out;
b3.buttText.buttonText.text = "PORTFOLIO"

b4.onRollOver = over;
b4.onRollOut = out;
b4.buttText.buttonText.text = "NAIL-ART GALLERY"

b5.onRollOver = over;
b5.onRollOut = out;
b5.buttText.buttonText.text = "LINKS"

b6.onRollOver = over;
b6.onRollOut = out;
b6.buttText.buttonText.text = "CONTACT ME"


function over() {
this.gotoAndPlay(2);
}

function out() {
this.gotoAndPlay(7);
}


But the problem is that I can't seem to find a way to put this code to those (movieclip)buttons!
This code links to external text that will load after clicking on the buttons.

QUOTE
on(release) {
unloadMovie(_root.content);
loadMovie("home.swf",_root.content);
}


I made those buttons with a tutorial from gotoandlearn.com, but it is not explained how to put a function like above to them. So what I'd like to do, is when I click on one of those buttons I made, I want the movieclip 'content' to go away and replaced by another (swf)movie!

Does anyone understand what I mean, and if you do can you help me? Please reply. Thank you


You can see the buttons on my site! http://www.nanicheri.trap17.com/Flash/n3.htm

 

 

 


Reply

spy_charly
hi buddy! well your code:

on(release) {
unloadMovie(_root.content);
loadMovie("home.swf",_root.content);
}

tells to flash to load the "home.swf" INSIDE the MC so what you need to do is to write either _parent or _root so you can load, make or move OUTSIDE the MC you are actually pressing....
if you have still doubts visit my board www.asb-labs.com/board and post your questions I guarantee to answer :-)

Reply

Nani Cheri
HI!
I found out what to do to get the result what I wanted with this:

QUOTE

b1.onRollOver = over;
b1.onRollOut = out;
b1.onRelease = home1;
b1.buttText.buttonText.text = "HOME"

function home1() {
unloadMovie(_parent.content);
loadMovie("home1.swf",_parent.content);
}

b2.onRollOver = over;
b2.onRollOut = out;
b2.onRelease = about;
b2.buttText.buttonText.text = "ABOUT ME"

function about() {
unloadMovie(_parent.content);
loadMovie("about.swf",_parent.content);
}

b3.onRollOver = over;
b3.onRollOut = out;
b3.onRelease = portfolio;
b3.buttText.buttonText.text = "PORTFOLIO"

function portfolio() {
unloadMovie(_parent.content);
loadMovie("portfolio.swf",_parent.content);
}

b4.onRollOver = over;
b4.onRollOut = out;
b4.onRelease = nail;
b4.buttText.buttonText.text = "NAIL-ART GALLERY"

function nail() {
unloadMovie(_parent.content);
loadMovie("nail.swf",_parent.content);
}

b5.onRollOver = over;
b5.onRollOut = out;
b5.onRelease = links;
b5.buttText.buttonText.text = "LINKS"

function links() {
unloadMovie(_parent.content);
loadMovie("links.swf",_parent.content);
}

b6.onRollOver = over;
b6.onRollOut = out;
b6.onRelease = contact;
b6.buttText.buttonText.text = "CONTACT ME"

function contact() {
unloadMovie(_parent.content);
loadMovie("contact.swf",_parent.content);
}


function over() {
this.gotoAndPlay(2);
}

function out() {
this.gotoAndPlay(7);
}



I just tried something, and then it worked! But I did something different what you said earlier,spy_charly, about _parent!! that was necesary 2! in stead of _root.content, I put _parent.content
But I have another problem with the content! The dynamic text shows, but the buttons to scroll I made are not. And when Im in the movie where I put the dyynamic content, it does show! you can see it at the site:

CLICK HERE for my site

hahahaha or maybe I can send my fla file to you? Only if you got time ofcourse, and if other people think they can help me, please reply..

 

 

 


Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. onrollover does not fire loadmovie flash - 274.33 hr back. (1)
  2. unloadmovie firefox problem - 448.05 hr back. (1)
  3. unloadmovie problem in firefox - 1120.99 hr back. (2)
Similar Topics

Keywords : problem, buttons, flash

  1. Free (legal) Flash Editor? Anyone?
    (9)
  2. Conversion Tool:flash2video
    Flash2Video is an easy-to-use flash to video conversion tool (1)
    Flash2Video Flash2Video is an easy-to-use flash to video conversion tool, which supports the
    conversion of Macromedia Flash SWF files into AVI (uncompressed/compressed using any available codec
    including DivX and Xvid), and VCD, SVCD, and DVD compatible MPEG files. This program also supports
    personalized dimensions for exported videos. Since no manual operation in the conversion process,
    Flash2Video may have the fastest conversion speed in the world. Well, you will also get the movie
    formats you want with fine image and sound quality. Quite popular! Why not have a ....
  3. Save Flash 3
    (0)
    Save Flash 3 Small tools to save any flash in any site it's appear on the toolbar of IE When
    there is no flash in web site When there is flash in he site u can click the right click in any
    flash and SAVE BY SAVE FLASH Download Full Package From Here ....
  4. What Software Is Best For Flash?
    (7)
    I've been makeing websites for a good while and I want to start useing flash. What software
    works best for this? I've looked at some like Adobe but it's really to expensive so if you
    know cheaper software I would appreciate it?....
  5. A Good Flash Editor
    easy and possibly free? (10)
    I just got inspired to work with flash and I know nothing at all about it. What is a good editor for
    making flash websites? Possibly free but if not then I can work with whatever you can throw at me.
    ....
  6. How Do I Stream Videos On My Site With Macromedia Flash 8?
    (2)
    Okay, I have the program Marcomedia 8 which is pretty cool, but is still very confusing for me. I
    don't know much on it at all and I was wondering how to create a flash player like sites such as
    Youtube, Google, Spikedhumor, and etc. Basicly I want a way where I can stream my videos on my site
    with my own player, that doesn't have the name Youtube, and such on it. Also, if I change it,
    the school will be able to view it since its not blocked. I want my flash player to have play,
    pause, volume, durations, etc. I tried playing around with Marcomedia Flash 8 and it....
  7. Adding Sounds With Macromedia Flash 8
    (1)
    I already know how to put sound. But i encounter a problem which i forgot how to solve. When i test
    movie the song starts again when it hits the keyframe so lots of sounds. Then in the properties i
    put stop on the keyframe and it stops. /smile.gif" style="vertical-align:middle" emoid=":)"
    border="0" alt="smile.gif" /> but then when i test movie it stops, and plays again. So basically
    What can i do when i add sound so it stops where i like it to and no Loops or reapeating Hope you
    get what im saying /wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt....
  8. The Free Flash Creater Software
    Visit Now (1)
    Here is a software which is very good for the new flash creater It Also provide the library imagines
    for you Now Download At website KoolMoves .....
  9. Flash Mx 8 Pro
    (3)
    Ok well I bought flash 8 pro thinking I could make a cool game that I could alow people to play on.
    Well I started up the program and I go crazy just from seeing the interface. How the heck do you use
    this thing? Can you please suggest a free tutorial site or something? Thanks


    ....
  10. Formating Usb Flash Drive
    (14)
    Hi, I have a problem with my USB flash drive. When I insert it to my computer it gets detected and
    I get a drive letter for it. When I click the drive letter in Explorer it says 'Insert a medium
    in drive X:' I can't format it in Windows XP also. Does anyone know how to format this
    drive so I can use it again ? ....
  11. New Flash Player Sometime Bevieaor Not Expected !
    (0)
    Just ten minutes ago. I have installed the new flash player ( 8.0r24 )on my system. This is a
    ActiveX Control for IE. But what it said was "failed to register component flash.ocx". What's
    wrong? After a search of www.adobe.com. A tech. note tell the true what's happen. There are some
    issue with new flash player that will fail the installation. You have to download a flash player
    uninstaller to fixed this problem. go here to check if you face the same problem. Don't worry
    if the topic not the same. I also don't face with the same thing. It works too. /....
  12. What Firefox Extensions Should I Install To Get My Firefox Mimic Opera?
    It's only because i use linux and opera hasn't sound in flash (4)
    Ok, hey guys first, i use linux and i have opera, konqueror and firefox installed and i didn't
    managed to get sound in flash websites in the first 2. So i could swich to firefox but i badly need
    autosave sessions on close, and mouse gestures -how can one live without them. Any other good
    extension for firefox that u know and it's of great use? And how does extensions install?....
  13. Macromedia Flash Player 8
    Help installing it... (6)
    Four days ago I formatted my computer and have been installing all of my applications. I went to the
    Macromedia site and installed flash player, and the movie is shown saying that it has installed
    succesfully. However, if I go to a website that hosts flash player 8 content, It usually does not
    display correctly and it tells me to go download the new player. No matter how many times I
    re-install the player through the Macromedia website it does not "take". Any Ideas? Is there
    anywhere I can get Flash Player 8 from as a .exe I can run and install? Thanks in advance.....
  14. Password Protecting A Flash Drive
    AKA A USB Memory Drive (6)
    Ok, well i bought this Flash Disk and it is basicly a portable memory stick that you can plug into
    the USB Drives of computers, and i have stuff on there i want protectd, and i waswondering if anyone
    knows of any software that i can put on there to pasword protect EVERYTHING that is in the drive,
    for example when i open the drive it required me to type a password in, any help would be much
    appreciated thanx! i have not been able to find one and i have been searching for a while....
  15. Problem From Flash 8 To Mx 2004 Pro
    (6)
    Hey everyone! I switched from Flash 8 to Flash MX 2004 pro today... Before I made a little
    website in Flash 8, and I thought I could open it in Flash MX 2004, but I think I've got a huge
    problem. When I try to open the .fla file I made in FL8, FL MX gives an error which says:
    Unexpected file format. He can't open all the files I made in FL
    8!!!!!!!! I hope I have not lost them or anything, What can I do to
    make FL MX open them ???????? I hope there is something to do about it; anyone knows what to do?....
  16. Flash Media Not 64-bit Compatible
    64-bit XP and Linux OS's won't run Flash (0)
    I got a new AMD Turion 64 laptop for Christmas. I installed Ubuntu Linux (64-bit version) and
    started browsing with Firefox. When I got to a flash enabled site, I downloaded the plugin and as I
    tried to install it, a dialog box popped up stating that flash does not support 64-bit operating
    systems or something like that. Has anyone else had that problem? Is Macromedia going to make a
    64-bit version?....
  17. What Is Flash?
    (12)
    What is flash, and where can I learn flash? Also, where can I get flash program? Please read the
    pinned information regarding the 'What Is' topic. There should be an answer here. Please
    post questions elsewhere. Moving. ....
  18. Inm V12 Database
    the first db for flash (3)
    i dont know you but when you burn a cd with your files and you say "oh my god where is my
    grandma's pic" that's the exact time to use this almost new product that is just about to be
    released, its a database completely made for flash that will help you to have the files's list
    in every cd, dvd and web based applications, so what do i exactly mean?... i mean that you wont have
    to use mysql or even an access db to store the cd's data anymore, now you could build your
    catalog with no inconvinience... check out the site and its FAQs if you have questions INM ....
  19. Ie And Firefox Crash
    Flash & Download problems (5)
    I have problems with both IE and Firefox. IE always crashes or freezes on me all the time. When I
    can actually use it, it never displays flash. Like if somone has a flash animation in their banner
    it just shows a still picture. I went into the internet options and enabled flahs and stuff and it
    doesn't show the animation. I even got the newest version of Flash. Firefox doesn't crash as
    much as IE but it does from time to time. I have ran spyware and virus software and nothing comes
    up. I dunno what the problem is. Also, whenever I download something on IE or Fire....
  20. Free Image Editing Software
    need free software to edit some buttons (9)
    Hi, A freind of mine has given me a bunch og .gif images. They have text in them (they're
    being used for buttons) that I'd like to change. Does anyone know of a good, free program for
    doing this? Thanks, Jim Please add a topic description in your next topic. Topic title edited
    and description added. ....
  21. Flash Programs
    Recommendations? (11)
    I was wondering if any of y'all could give me recommendations on a fairly easy to use flash
    software out there...I kinda need/want it but I really don't know where to start. I've never
    used it before but I hear using flash can be fun sometimes.. Can any of you recommend a
    program/software and where to download/get it? I'd really appreciate it, thanks.....
  22. Macromedia Flash Player Sites
    How do you create one? (1)
    Here's a few prime examples of sites using Macromedia Flash Player 7: - http://www.fotf.net/
    - http://www.starwars.com/ - http://www.lucasarts.com/products/jediacademy/ Any idea which
    program, or programs you need in order to make a custom webpage like the ones above? I wish to make
    one, but I don't know what to get. Any help would be appriciated.....
  23. Os Flash Edittors
    (3)
    Hey I've never been very involved in the whole flash world (as you may be able to tell), but I
    was wondering, are there any open source (e.g. free) flash edittors, or is the flash format too
    restrictive? Any URLS to point me in the right direction would be great.....
  24. Flash Mx
    (7)
    I'm currently trying to learn how to use Flash. The help files that come with the program are
    long and dull, and go through every tiny feature the program has. Does anyone know of a tutorial
    that covers all the stuff you need to know to get started making Flash movies? Thanks. I know how
    to do all those simple stuff like making a ball move, but I don't understand how to make a good
    animation of someone walking. (Or stuff like that)....
  25. How Do U Enable Flash In Firefox?
    (3)
    Can some one help me? Every time I open flash sites the quick time plugin is used instead of the
    flash plug in can some one tell me how to change this? Thanks....
  26. Free And Online - Flash Site Builder
    try it. it's free. (0)
    here it is: CODE http://www.hooverwebdesign.com/sitebuilder/ It's not very good,
    only good, the sitebuilder is evoluting. i made today a website and it was realy not bad. Try it
    after registering. Doesn't require an activation link. Carpe diem.....
  27. swishmax or flash mx?
    Which do you use? (26)
    I use swish for simple projects, but flash mx is better for me with the advanced features.....

    1. Looking for problem, buttons, flash

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for problem, buttons, flash

*MORE FROM TRAP17.COM*
advertisement



Problem With Buttons In Flash



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE