Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Buttons calling URL's (is there a bug?) 2

Status
Not open for further replies.

ISRN

Technical User
Apr 1, 2001
2
US
I use a command similar to:

on (release) {
getURL ( main);
}

on a simple button and it calls nothing, does nothing...just sits. I asked the "Flash" expert at work and he claims it's a bug within flash and the scripting does not communicate with HTML. Is this true? I just want to load a HTML page (within the same directory) into a target, using a buttion within my flash presentation.

It seems logical and easy to do, there are far more complicated things I have accomplished. Am I a dummy or is there something wrong here? Also, I checked the FAQ's, thier solution seems to be what I have done....?
 
hi

You currently have the URL and target set as an expression, when in fact they should be in inverted commas: " you also must make sure that your frame is named "main".

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
This should work no problem! Your friend is wrong!

From the help files:

Window specifies the window or HTML frame that the document should be loaded into. You can enter the name of a specific window or frame or enter an expression. You can also choose from the following reserved target names:
_self specifies the current frame in the current window.
_blank specifies a new window.
_parent specifies the parent of the current frame.
_top specifies the top-level frame in the current window.


On (Press)
Get URL (" window="mainsite")
End On

The above for example, will open Yahoo search in a frame called mainsite in a frameset.

;-)
 
There shouldn't be a ";" after the ...yahoo.com";, in the above.
It should be:
Code:
Get URL ("[URL unfurl="true"]http://www.yahoo.com",[/URL] window="mainsite")

... Posting on the forum adds that one!

;-)
 
hi old

ISRN: note that you don't need the "window=" in F5, only in F4 (just to avoid confusion).

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
Hi Dave!

You're right! You don't need it... But you can still use it and it will still work!(Just to clear a possible confusion).

;-)
 
Thanks folks..for some reason I got the notion to throw som extra junk in there. Upon inspection I had extra quotes too...HTML on the brain...doh! Works now...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top