Current location: Hot Scripts Forums » General Community » The Lounge » flash..?


flash..?

Reply
  #1 (permalink)  
Old 06-17-04, 06:02 AM
dcmk dcmk is offline
New Member
 
Join Date: Jun 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Question flash..?

wey -first post..hello all.

um..right i think im posting this wrong place, but still should be okay yea?

i was wanting some advice on doing this flash script, rite i done a 'very rough' draft of the script..

basically it loads up the flash screen, whereby if u click the images on the left hand side it would display the image, but i want the image to be displayed just to the right of the text.

http://www.dcmk.netfirms.com/dcmk_gallery.htm

so in the empty area it should show up the picture, but i have no idea on how to do this.

so your help will be most welcome
Reply With Quote
  #2 (permalink)  
Old 06-17-04, 02:22 PM
cshark's Avatar
cshark cshark is offline
Wannabe Coder
 
Join Date: Jan 2004
Location: Indianapolis
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by dcmk
wey -first post..hello all.

um..right i think im posting this wrong place, but still should be okay yea?

i was wanting some advice on doing this flash script, rite i done a 'very rough' draft of the script..

basically it loads up the flash screen, whereby if u click the images on the left hand side it would display the image, but i want the image to be displayed just to the right of the text.

http://www.dcmk.netfirms.com/dcmk_gallery.htm

so in the empty area it should show up the picture, but i have no idea on how to do this.

so your help will be most welcome
I'm not sure I understnad your question.
That's an awfully big download you have there. Might want to try optimizing your bitmap a little more before putting it into your movie.

I may be way off base, but it sounds like you should try experimenting with movie clips inside buttons. Create your movie clip, and build your button around it. F8 your selection, and it will give you the option of what kind of object to create.

Flash is one of the most powerful platforms you can use on the client side. It's an incredible tool, and will make your life easier if you use it properly. Try to avoid the temptation to use it only as an animation tool. Just my two cents. What do I know anyway?
__________________
Later
Cshark

Try <a href="http://shorthand.org">Shorthand</a>, an exciting new language for web applications.
Reply With Quote
  #3 (permalink)  
Old 06-17-04, 02:35 PM
dcmk dcmk is offline
New Member
 
Join Date: Jun 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
um...not sure i want to go down the movie route

if i can just describe what i want to do...im fairly new to flash anyhow so...here it goes better.

right upon pressing the buttons down the left hand side, i want it to be able to show the .jpg within the big section to the side of it. so their being no need to open up another window to display anything.

thanks for your help tho, mayb you can help me with this tho.
Reply With Quote
  #4 (permalink)  
Old 06-17-04, 04:34 PM
cshark's Avatar
cshark cshark is offline
Wannabe Coder
 
Join Date: Jan 2004
Location: Indianapolis
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
Movie and Movie clip are flash terminology.
They are absolutely essential to almost anything you do with flash.
Creating "movies" is the only way to go in flash because the system does not let you create anything else. I can't help it. I wasn't the one who made it up. Although, lately, I've been calling flash movies "applets."

Well, there's the old fashioned way to what you're talking about, and there's the new easier actionscripty way of doing it. Let's focus on the latter.

In this example:
http://www.sammoses.com/Work/Desktop.zip

I used the flash loadmovie function to load a jpeg image into a movie clip. Take a look at the actionscript I assigned to the button.

Code:
on (press) {
	ifile.loadMovie("test.jpg");
}

In this case, ifile is your target. You want to use your button to load an image there. ifile itself is a movie clip with a square in it. When you press the button, the square is replaced by the image you choose to load. You can change the position of an image by adjusting the x/y properties of the image on that line after you load the button.

So say, you want to load the image inside your square, but you want to keep the original movie clip in the background. In that case, all you have to do it create another blank movie clip inside your existing movie clip, and address it like this. Let's call the second instance of the movie clip X

Code:
on (press) {
	ifile.X.loadMovie("test.jpg");
}
Don't forget to name your instances of your movie clip objects.

Make sure not to use gif files when you do this. It doesn't work with them. Don't know why, but it's super frustrating when you don't know what's going on.

That said, you could also write a function if you wanted to. Just take this and place it in the frame actions.

Code:
function xchange(inputter) {
	ifile.loadMovie(inputter);
}
Functions are handy, and save you the time of calling the built in function and target every time you want to do something.

To call this particular function,
Just assign this script to your button:


Code:
on (press) {
	xchange("test.jpg");
}
See how much easier that is?

Anyway, you're not going to understand any of this without going through the introduction to flash tutorial included in the program. It'll cover the basics. Things like, what is a movie clip? What is a graphic? What is a Bitmap? What is an instance? What is nesting? It's super easy.

Hope that helped.

-Sam
__________________
Later
Cshark

Try <a href="http://shorthand.org">Shorthand</a>, an exciting new language for web applications.
Reply With Quote
  #5 (permalink)  
Old 06-18-04, 07:25 AM
dcmk dcmk is offline
New Member
 
Join Date: Jun 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
thanks very much for that..appreciate it very much, just one thing tho...

on creation of the movie clip, you do create it from new symbol if i am correct, as doing this following what you explained isn't working but im sure i must of done it wrong..

i was going to new symbol - movie clip and calling it ifile and then inserting a rectangle..lol thats probably completely wrong.

but thanks again
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
showing flash or .gif..please help webon Script Requests 0 03-25-04 04:28 PM
javascript object hidden by flash object morlack JavaScript 1 03-09-04 05:36 AM
Fast growing RPG site seeks PHP or Flash programmars lanzer Job Offers & Assistance 7 03-06-04 05:00 PM
Low budget looking for flash work. Doc Job Offers & Assistance 3 01-05-04 07:49 AM
Register your flash related site in azflash.com dcarrero Traffic Exchange 0 10-05-03 08:41 AM


All times are GMT -5. The time now is 01:42 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.