Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 27th, 2001, 12:55 AM
alligatorTim alligatorTim is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 45 alligatorTim User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 51 m 37 sec
Reputation Power: 8
url strings to flash

can you pass variables to .swf files through a query string embedded in a URL when you embed the media in the html.? for example here's where i embed my .swf:

<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,
<param name=movie value="reloader.swf?topicId=3&foumId=2">
<param name=quality value=high><param name="LOOP" value="false">
<embed src="reloader.swf?topicId=3&foumId=2" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" ty...>
</embed>
</object>

as you can see i'm trying to pass topicId and forumId like this "reloader.swf?topicId=3&foumId=2"

this would be super cool. thanks
-alligator.

Reply With Quote
  #2  
Old December 27th, 2001, 05:46 AM
dang65 dang65 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: Wilmslow, Cheshire
Posts: 255 dang65 User rank is Corporal (100 - 500 Reputation Level)dang65 User rank is Corporal (100 - 500 Reputation Level)dang65 User rank is Corporal (100 - 500 Reputation Level)dang65 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
Yes, you certainly can. And it is indeed super cool. Just declare your variables in the flash movie and they will be loaded from the source URL as in your example.

Reply With Quote
  #3  
Old September 5th, 2003, 04:26 PM
kjnpf kjnpf is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: Cheshire, England
Posts: 27 kjnpf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I am having real trouble with this!!

I am designing a flash banner ad and the URL that a button opens needs to change for different affiliates.

I have the following HTML in a page to embed the banner and the clickTag variable is defined in the URL. My problem is setting the URL in Flash for the button.


<embed src="flash/no_code_468_60_flash_01.swf?clickTag=http://www.zencudo.co.uk" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="468" height="60"

The code I am using for the button is...

on (release) {
getURL(clickTag, "_blank");
}


Will this get the clickTag variable from the URL?? If not, how do I define the variable? I tried writing it as the following but didn't work either!!

on (release) {
clickTag;
getURL(clickTag, "_blank");
}

Any help would be much appreciated!! :-)

Reply With Quote
  #4  
Old September 8th, 2003, 04:30 AM
dang65 dang65 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: Wilmslow, Cheshire
Posts: 255 dang65 User rank is Corporal (100 - 500 Reputation Level)dang65 User rank is Corporal (100 - 500 Reputation Level)dang65 User rank is Corporal (100 - 500 Reputation Level)dang65 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 12
Looks like you've done it right? I've done a quick mock up of the sort of thing you're after here and that version all works ok anyway. Have a look at that one and see if it's any different from yours.

Cheers,

-Dan-

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > url strings to flash


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway