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 July 17th, 2008, 09:25 PM
lokisapocalypse lokisapocalypse is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 474 lokisapocalypse User rank is Second Lieutenant (5000 - 10000 Reputation Level)lokisapocalypse User rank is Second Lieutenant (5000 - 10000 Reputation Level)lokisapocalypse User rank is Second Lieutenant (5000 - 10000 Reputation Level)lokisapocalypse User rank is Second Lieutenant (5000 - 10000 Reputation Level)lokisapocalypse User rank is Second Lieutenant (5000 - 10000 Reputation Level)lokisapocalypse User rank is Second Lieutenant (5000 - 10000 Reputation Level)lokisapocalypse User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 20 h 54 m 39 sec
Reputation Power: 92
ActionScript 3 - Getting URL Parameters

This is probably a very simplistic question but my brain is fried and I must not be searching the right thing on Google because I can't seem to find the answer.

I have a SWF on a web page that is called like so:

HTML Code:
Original - HTML Code
    <object type="application/x-shockwave-flash data="c.swf?path=movie.swf&myvar=myval" width="400" height="300"> <param name="movie" value="c.swf?path=movie.swf&myvar=myval" /> <img src="noflash.gif" width="200" height="100" alt="" /> </object>


Using the above HTML, how can I access the value of myvar (myval) inside the Flash file.

I know this is a very noobish question but I am very new to Flash.

Reply With Quote
  #2  
Old July 18th, 2008, 01:27 AM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,715 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 11109 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 1 Day 11 h 50 m 46 sec
Reputation Power: 580
Facebook MySpace
Heya, try this:
Code:
import flash.display.LoaderInfo;
trace("Path: " + root.loaderInfo.parameters.path);
trace("Myvar: " + root.loaderInfo.parameters.myvar);
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > ActionScript 3 - Getting URL Parameters


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 1 hosted by Hostway
Stay green...Green IT