| Author |
Flash Buttons and iFrames
|
|
| SilentStorm 2004-02-11, 8:32 pm |
| Hi Im a beginner/intermediate user and also new to this forum
I really need your expert advice on how to link from a flash button to an
iFrame. Usually I can define the target as (my iFrame name by deleting the
defaults found under the target tab) but it doesnt give me the same option when
it comes to flash buttons!!!
I have seen websites use this feature and feel as though knowing this would
help me build a better website
What can I do?
I dont even know if im doing it the right way. i would really appreciate your
help!!!
Thanks in advance
| |
|
| hi silentstorm,
i've been dealing with too. give your iframe a name
<iframe src="stuff.htm" name="content" width="100" height="150"
frameborder="0"></iframe>
then in your flash button use this actions:
on (release) {
getURL ("stuff2.htm", "content");
}
"content" which is your iframe is what your telling your flash button to
target.
hope that helps.
t
"Mick White" <mwhite13@bogusrochester.rr.com> wrote in message
news:402AC92B.3010804@bogusrochester.rr.com...
> Is this a DW generated flash button?
> Mick
>
> SilentStorm wrote:
an[color=blue]
the[color=blue]
option when[color=blue]
would[color=blue]
appreciate your[color=blue]
>
| |
| SilentStorm 2004-02-12, 12:31 pm |
| Well I am actually trying to use a dreamweaver created flash button and a button that I have created in Flash. Is there any difference?
| |
| SilentStorm 2004-02-12, 12:31 pm |
| Hi T
Do I apply the script in Dreamweaver or Flash?
| |
| Alan Ames 2004-02-12, 12:31 pm |
| older posts here:
http://groups.google.com/groups?q=d...on+iframe&ie=IS
O-8859-1&hl=en
The problem is that the dialog box to create or edit the Flash Text or Flash
Button only gives a choice of target attribute based on what it sees for
frames in the open frameset document.
It doesn't "see" iframes. So the iframe's name doesn't appear in the target
pulldown. There's no way to hand type in a target. Thus my suggestion to
make a dummy set of regular frame pages, just to create a Flash Text button
with the correct target.
So- a proposed work-around. Make a dummy frameset that holds the pages as
regular frames, and create or edit the Flash Buttons in this frameset file
so Dw can "see" the frame name.
Lets say you have outsidepage.html, which is the outside page that contains
the iframe. You have the iframe in it, which is myiframe.html
{substitute the filename and frame names you are using.....}
Make a new regular frameset page (2 frames)- save it with any name you want,
to the same folder level as outsidepage.html is in.
Open the new frameset page for editing.
Open the Frames window- Dw menu-->Window-->Other-->Frames.
click in the top frame in the little frames window- and in the properties
inspector, change the frame SRC to outsidepage.html
Repeat for the other frame, and change it's source to myiframe.html
Also at this point, with the lower frame selected, change the NAME of in in
the far left of Prop. Insp. to exactly match the name of your iframe
Now- double click on your Flash Text, and in the Flash Text Dialog box that
opens, Is the TARGET pulldown now showing the correct name of the
iframe/lowerframe as a possible choice??
Now open your outsidepage.html alone- and preview or upload it (and the
changed Flash Text .swf files) Does it work?
There's another way to do this- using javascript to set a target in the
link you type into the flash text dialog box's url box. But i don't have
the code handy.
Another alternative- if you'll be doing this often- would be to modify the
Dw configuration files for the Flash Text and Flash Button dialog box. Sort
out what's in there, and change the code that makes the Target Attribute
Pulldown to to a plain text entry box... then you could just type the
correct target in...
The files are in the Config folder for you as a User-->Commands-->Flash
Text.htm and .js The function to populate the pulldown is in there- but i
haven't done the modification.
> Hi Im a beginner/intermediate user and also new to this forum
> I really need your expert advice on how to link from a flash button to an
> iFrame. Usually I can define the target as (my iFrame name by deleting the
> defaults found under the target tab) but it doesnt give me the same option
> when
> it comes to flash buttons!!!
>
> I have seen websites use this feature and feel as though knowing this would
> help me build a better website
>
> What can I do?
>
> I dont even know if im doing it the right way. i would really appreciate your
> help!!!
>
> Thanks in advance
>
| |
| stephen 2004-02-12, 1:29 pm |
| Alan Ames wrote:
>
http://groups.google.com/groups?q=d...on+iframe&ie=IS
> O-8859-1&hl=en
Seems overly complicated.
How about :
- open the page that contains your named iFrame and where you are going to
create/insert dw flash buttons
- insert a top frame
- click on the Frames Panel and use the Frame Property Inspector to give it
the Frame Name of your iFrame
- click in the frame (mainFrame) that contains your original page (not the
newly created topFrame)
- insert dw flash buttons
- now the name of your iFrame will appear in the target list offered in the
flash button creation menu
- make all your buttons targeted to named iFrame
- then drag the Top Frame off the page so that the page is not a frameset
any longer
(don't preview before you trag the top frame off the page so
you won't be prompted to save)
- now save the page and all of these flash buttons will target the iFrame
| |
| Alan Ames 2004-02-12, 2:29 pm |
| yes- that does it in the existing page without making a dummy one.
> - open the page that contains your named iFrame and where you are going to
> create/insert dw flash buttons
> - insert a top frame
> - click on the Frames Panel and use the Frame Property Inspector to give it
> the Frame Name of your iFrame
> - click in the frame (mainFrame) that contains your original page (not the
> newly created topFrame)
> - insert dw flash buttons
> - now the name of your iFrame will appear in the target list offered in the
> flash button creation menu
> - make all your buttons targeted to named iFrame
> - then drag the Top Frame off the page so that the page is not a frameset
> any longer
> (don't preview before you trag the top frame off the page so
> you won't be prompted to save)
> - now save the page and all of these flash buttons will target the iFrame
| |
| SilentStorm 2004-02-12, 6:29 pm |
| Hi Guys thank you very much for the information
I am now able to target the iFrame with a custom button in DW. But I cant do
the same for buttons created in Flash and then brought in. It doesnt let me
edit the parameters in DW, it takes me straight to Flash to do it there.
Its not even displaying the "target" tab when I bring in a Flash button
Please help, Im half way there with the information you have provided
Thanks again, you've been very helpful
| |
| Alan Ames 2004-02-12, 6:29 pm |
|
> I am now able to target the iFrame with a custom button in DW. But I cant do
> the same for buttons created in Flash and then brought in.
the button you made yourself in Flash-
go back to Flash.
Open the .fla
make your link in flash, and set the target. I'm not familiar w/Flash, but
there must be some mechanism to make a clickable link that opens in a
specific frame
then export it to get the .swf you need.
somebody had once posted a way to make a generic link action when creating a
flash file, and and add the specific page and target by editing the
Parameters in dreamweaver, but i haven't found it again searching
groups.google.com
| |
| stephen 2004-02-12, 6:30 pm |
| [color=blue]
Tony posted information about how to do this earlier in this thread.
|
|
|
|
| Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |