Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Flash (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #11 (permalink)  
Old May 17th, 2004, 05:10 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Q. How do I make a movie that gets a value from a web page and displays it in a textfield?

A. The easiest way I have found to do this is below:

1) Create a dynamic text field. In the Property Inspector, assign a variable name to the field, i.e. title.

2) Save, Publish, etc.

3) Refer to the movie by typing the path (i.e. ../banner.swf) and adding a '?' to the end. After the '?' type the name of your variable and then an equals sign ('=') and then the value you want to display.

So if you called your variable title your path would be something like this:

../flashmovies/banner.swf?title=Welcome

The value of the textfield would then be 'Welcome'.

IMPORTANT NOTE: this technique applies primarily to Flash MX 2004. This technique or similar techniques may work for other versions.

Snib

<><
Reply With Quote
  #12 (permalink)  
Old July 11th, 2004, 11:21 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Madison, Wisconsin, USA.
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

Q: I have a Flash movie where certain sections are updated frequently but I don't want to have to always modify the Flash movie directly and re-publish it all the time. Is there an easier way to update certain sections of a Flash movie?

A: Yes. You'll need to have a text box in your Flash movie as well as a text file that contains the information you want in your movie. The link below explains it in more detail.

http://www.flashkit.com/board/showth...hreadid=568415

Ben Horne
Madison Area Technical College - Truax
3550 Anderson Street
Madison, Wisconsin 53704-2599


-------------------------
http://community.webshots.com/user/valerian114

"There are two kinds of people in the world: Those who claim to be Flash junkies and those who actually are Flash junkies"
Reply With Quote
  #13 (permalink)  
Old August 26th, 2004, 08:47 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Madison, Wisconsin, USA.
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

Q: How can I insert a Flash movie from within Dreamweaver?

A: First off, you should have the web page you want your Flash movie to be in open.  From there, you can go to Insert, Media and click on Flash.  Make sure that you only select a Flash movie.  Other files won't be accepted.



Ben Horne
Madison Area Technical College - Truax
3550 Anderson Street
Madison, Wisconsin 53704-2599


-------------------------
http://www.acidplanet.com/artist.asp?AID=290705

"There are two kinds of people in the world: Those who claim to be Flash junkies and those who actually are Flash junkies"
Reply With Quote
  #14 (permalink)  
Old August 31st, 2004, 07:17 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Madison, Wisconsin, USA.
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

Q: How can I force a link to open in a new window when a button is clicked?

[A:][/b]  First off, make sure that you have the button that you want to work with is selected.  From there, make sure the the Behaviors Panel is open.  Click on the little plus sign to show the list of available events.  The one you want is labeled Web.  In the sub-menu that appears, select Go to web page.  When a dialog box pops up, enter the URL you want to open when the button is clicked and select "_blank" in the Open in field.  

When you are all set, your ActionScript code should look like this


on (release) {
 getURL("http://www.someurl.com","_blank");(replace "someurl.com" with a real web address)

}



Explanation of the code:  The "_blank" instruction tells Flash to open a web page in a new window when a button is clicked.  This is extremely useful since a lot of the time, you don't want the user to go away from the current web page they are on when they open another page.

Ben Horne
Madison Area Technical College - Truax
3550 Anderson Street
Madison, Wisconsin 53704-2599


-------------------------
http://www.acidplanet.com/artist.asp?AID=290705

"There are two kinds of people in the world: Those who claim to be Flash junkies and those who actually are Flash junkies"
Reply With Quote
  #15 (permalink)  
Old September 29th, 2004, 02:15 PM
Friend of Wrox
 
Join Date: Sep 2003
Location: Madison, Wisconsin, USA.
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

Q:  I would like some functionality in my Flash interface that allows users to download FLA files.  How do I go about doing this?

A:   In the Actions Panel (make sure you have the button selected that you want to download the FLA), type in the AS code below

Code:
ActionScript

on (release) {
  getURL("somefile.fla")
Replace "somefile.fla" with the name of your FLA file.  You need to be absolutely sure that you include your interface file on the same server as your FLA files or the FLA download functionality won't work. You can use this same technique for other files that the browser can't open.

Ben Horne
LDS Test And Measurement, Inc



-------------------------
http://www.geocities.com/valerian5200/index.html

"There are two kinds of people in the world: Those who claim to be Flash junkies and those who actually are Flash junkies"
Reply With Quote
  #16 (permalink)  
Old May 3rd, 2006, 06:45 AM
Authorized User
 
Join Date: Apr 2006
Location: bikaner, raj, India.
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to chayanvinayak
Default

i have developed a page for user authentication , if userid and password is correct it goes to admin.html(using getURL("admin.html","_self") )

but i want to hide this link so that no one can go to this page with out authentication by just typing the link (such as http://www.xxx.com/admin.html)


chayan vinayak goswami
Reply With Quote
Reply


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 Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
excel FAQ vinod.vkumar Excel VBA 8 November 23rd, 2005 07:11 AM
Flash FAQ Ben Horne Flash (all versions) 30 April 7th, 2004 10:35 PM
Topic FAQ richard.york Forum and Wrox.com Feedback 5 March 29th, 2004 04:14 PM
Bad links in FAQ. nikolai Forum and Wrox.com Feedback 1 September 22nd, 2003 03:38 PM
"FAQ forums" vknowles Forum and Wrox.com Feedback 0 June 3rd, 2003 11:09 PM



All times are GMT -4. The time now is 12:28 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.