This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > April 2004 > alternative to using frames in flash





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author alternative to using frames in flash
azcummins

2004-03-14, 6:28 pm

I know flash doesn't support frames, and I don't want to use them in my HTML,
but I can't figure out another way to do this:

I've got a flash movie that has a header graphic, a text box (calls a .txt
files) and a space for a large picture. What I need for a link in the text box
to be able to load a picture in the picture space when someone clicks on the
text. Obviously, this could be done using HTML frames, but I don't want to use
them. Should I have the text link load a certain frame inside a separate flash
movie (contained the main flash movie) containing the pictures?

This link is very similar to what I want to do:
[L=Example]http://www.hbs.edu/mba/experience/live/adayinthelife/A_Introduction.h
tml[/L]

flasziraj

2004-03-15, 8:28 am

hi,
You could do that in flash. This can be done with what is called as Targets.
Its similar to the frame target that you use it in HTML. On a single keyframe
put the text box and the picture frame. Assign a stop action to that keyframe.
Now have the picture frame as Movie Clip instance and assign a instance name to
it, say "picture". Have the text on the text box linked to the picture that you
want to load and with a target named "picture". Thatz it . Once the user clicks
the text in the text box the corresponding image file is loaded on to the
picure frame named "picture".
So your code should be,
onRelease(){
getURL("mypicture.jpg","_root.picture")
}
Do good

Raj

flasziraj

2004-03-15, 10:29 am

hi,
You could also do this. Create a movie clip with the photos and their
contexts. Leave the first frame blank or place some info saying that " Click
the links on the left side to see a profile here ", something like this. Put a
stop action to that frame. Now put this movieclip on the stage and give it a
instance name say "profile". Now on the left side type the required text as
shown in your example site. NOTE : Remember the text on the right side is not
loaded from a .txt file. It should be typed in flash itself and u have to place
invisible buttons over them so that they show up a hand cursor when the user
moves the curosor over them. Now for those invisble buttons (those placed over
the word that you want to link to), do this script :
on (release) {
tellTarget ('/profile') {
gotoAndStop(2);
}
NOTE : profile is the instance name that you have given for the movieclip
containing the contents for the right frame.
on the frame2 of the profile movie clip you will have the photo and its
content that has to be shown when clicked on a text in the left frame.
Hope you got this idea. Try it.

Raj


azcummins

2004-04-25, 5:30 pm

Raj-
i see where you are going, but I'm not sure how to code the .txt file so
that text shows up as a button. I know I can use the <a href> tag, but the
example you showed me was Flash ActionScript Code. Is there a way to make
flash read the .txt file buttons to be actionscripts?

azcummins

2004-04-25, 10:29 pm

I dunno what happened to the rest of the other message, but here it is:

I know I can use HTML code within the .txt file, but how would I put Flash
ActionScript code into the .txt file? If I can figure that part out, I think
I'm good to go....any ideas?

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews