Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Image Flood Fill (Using getPixel and setPixel)
cXtraStringGrid
Making Stage fill screen or not
Wait for DirectMedia Xtra Sprite v. 2.0
Correct entry
Create a Shortcut on desktop
Send E-mail using Buddy API
Outline Text - Imaging Lingo
Using ActiveX
myScreen
MediaMacros Xtras Mall
 

 

 

Behavior Open URL

Added on 6/12/2000

 

Compatibilities:
behavior D7 D8 PC

Required Xtras:
Buddy API

This item has not yet been rated

Author: KumarK

Open URL

---- written for Director 8 ---
---- Kumar.K kumark@icode.com ----

-- custom properties --
property state,whereto,urlname

------ Get Behavior Description List ------
on getPropertyDescriptionList me
  set description = [:]
  statelist=["Normal","Maximized","Minimized","Hidden"]
  addProp description, #urlname, [#format:#String, #comment: "Open Which URL ?", #default:"Enter Your URlName here"]
  addProp description, #state, [#format:#String, #comment: "Open with which Window State? ", #range:statelist, #default:statelist[1]]
  if the currentspritenum = 0 then
    addProp description, #WhereTo, [#comment: "Where To Attach ?" ,#format:#String,
    #range:["On EnterFrame","On ExitFrame"],#default:"On EnterFrame"]
  else
    addProp description, #WhereTo, [#comment: "Where To Attach ?" ,#format:#String,
    #range:["On MouseUp","On MouseDown","On MouseEnter","On MouseLeave"],#default:"On MouseUp"]    
  end if    
  return description
end getPropertyDescriptionList
------ Get Behavior Description List ------

-- Get Behavior description --
on getBehaviorDescription
  return "This Behavior opens the specified URL in Default browser. " & RETURN &
"the website can be in internet or local disk also" & RETURN & RETURN &
  "This Behavior needs Buddy API Xtra to work, so please ensure You Have Buddy API Xtra." & RETURN & RETURN &
  "Parameters" & RETURN &
  "* Url Name." & RETURN &
  "* Window State." & RETURN &
  "* Where to attach this Script"
end
-- Get Behavior description --

-- Events --
on EnterFrame me
  if WhereTo = "On EnterFrame" then
    OpenUrl
  end if
end EnterFrame

on ExitFrame me
  if WhereTo = "On EnterFrame" then
    OpenUrl
  end if
end ExitFrame

on MouseUp
  if WhereTo = "On MouseUp" then
    OpenUrl
  end if
end MouseUp

on MouseDown
  if WhereTo = "On MouseDown" then
    openfile
  end if
end MouseDown

on MouseEnter
  if WhereTo = "On MouseEnter" then
    OpenUrl
  end if
end MouseEnter

on MouseLeave
  if WhereTo = "On MouseLeave" then
    OpenUrl
  end if
end MouseLeave
------ Events ------

---open file ---
on OpenUrl
set OK = baOpenURL( urlname , state )
end
---open file ---

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail