Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Pass Image Name And Path To Flash From Html



Hello Flash Forum,I would like to use Flash to display a larger image in an HTML page that opens on top of a window with thumbnail images. The thumbnail page will be a php page. If the user clicks the thumbnail, I would like to open a swf that diplays the larger image. I would like to pass the path and name of the image to display to my swf. It would open a browser page (or just a swf file) over the thumbnail page. The use could then close the larger image display, and click another thumbnail, etc.How could I do this? I have a swf file that will display the image, but I would like to pass the image name from outside the swf file.Thanks for any tips,eholz1



Adobe > ActionScript 3
Posted on: 09/23/2008 11:18:10 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

How To Pass Flash VAR To Html
It is probably the basics, but I need help.

I have a VAR in my movie that displays a numerical value. I need to put this value into a form field on the same page. How do i do that?

How To Pass A Flash Variable To HTML?
Could someone please tell me the syntax to pass a flash variable to an html page? Thanks.

Pass Flash Variable To Html
i have a map i'd like someone to click on
a couple locations and have those show up
as html. any ideas? i just need a kick in the head here?

Pass Urls From Html To Flash
hi everyone,
what is the easiest way to have the urls on the html page passed on to the flash movie?
thank you.

How To Pass Parameter From Flash To Html
Hie everyone......

I have created a website in flash which has a shopping cart. When user clicks Add to cart button he is redirected to htm page. Here i need to pass the parameter from flash to htm. I am using Micromedia flash 8 ver.

the AS that i have used is:

on (release) {
_root.holder_mc.getURL("test.html?abc=123");
}

I have tried my best to explain things.......... please forgive me if there is any mistake

Thank U

Pass Varaible Value From Html To Flash
Hi All,

I need to pass a variable to flash from html using query string method. However only the varaible name is getting dispplayed in the flash file and not the value in the variable.

The requirement is such that the value in the variable dynamically changes. Accordingly the text field in the swf should get updated.

I have attached the file along with this thread.

Can somebody please help?

Pass Variables From Html To Flash ?
i was wondering if there's any way you can pass variables from html to a flash image ?

in other words: i want a script that takes a variable it is given from outside the flash movie and changes the link accordingly.

I hope this is possible and if someone wants to help me with this

Thx in advance

Greets

How To Pass A Variable From HTML To Flash
I have built my flash ad banner in Flash 9 and now want the HTML code to pass the url over to the flash movie that it should jump to when clicked.

The info in the help file seems out of date for the latest HTML template as it uses mainly JavaScript to get round IE's dreadful embeding issue. So my problem is, how do I pass a variable from the HTML to the actionScript specified int he Help file (running on a full screen button) as shown below?

myButton_btn.onRelease = function() {
if (clickTAG.substr(0, 5) == "http:") {
getURL(clickTAG);
}
};

via the html code now used by Flash 9 which is like this:

<!-- saved from url=(0013)about:internet -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Advert_long</title>
<script language="javascript"> AC_FL_RunContent = 0; </script>
<script language="javascript"> DetectFlashVer = 0; </script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
<script language="JavaScript" type="text/javascript">
<!--
// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 9;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Revision of Flash required
var requiredRevision = 115;
// -----------------------------------------------------------------------------
// -->
</script>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<!--
Coping
with
Growing
Audio
Series
Theraputic stories
for children aged
4 to 9
-->
<script language="JavaScript" type="text/javascript">
<!--
if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) { // if we've detected an acceptable version
// embed the flash movie
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0',
'width', '120',
'height', '600',
'src', 'Advert_long',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'Advert_long',
'bgcolor', '#ffffff',
'name', 'Advert_long',
'menu', 'true',
'allowScriptAccess','sameDomain',
'allowFullScreen','false',
'movie', 'Advert_long',
'salign', ''
); //end AC code
} else { // flash is too old or we can't detect the plugin
var alternateContent = 'Alternate HTML content should be placed here.'
+ 'This content requires the Adobe Flash Player.'
+ '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
document.write(alternateContent); // insert non-flash content
}
}
// -->
</script>
<noscript>
// Provide alternate content for browsers that do not support scripting
// or for those that have scripting disabled.
Alternate HTML content should be placed here. This content requires the Adobe Flash Player.
<a href="

CDATA To Pass HTML Via XML Into Flash
My apologies if this has already been answered, but its driving my up the wall how HARD it still is for flash to even import data. It's amazingly annoying trying to convert data into XML and than be readble by flash, why can't macromedia be 'normal' and have some connector that can directly connect to a SQL database, how annoying!!

Anyway enough about my rant...

I have a WYSIWYG html editor on my website that generates flash readable HTML code and we use PHP to store the information that is generated as a .xml file to be readable by our flash file. The data is passed via XML but trying to get the HTML tags through without the XML parser thinking its XML and interfering, and I've managed to research find the CDATA tag to pass information in (please note, i dont know much XML, just basics to get it to work) but it doesn;t work!!

When I try to HTML code that is wrapped in the CDATA than it just shows as "null" on my flash file, but if i remove the CDATA tag and put in simple text it seems to work ok! even if i put in


Code:
<b>you better work, damn you!</b> this part is not bold, but doesnt show anyway
than the part in bold shows as bold but anything after that has disappeared

Any ideas how I can effeciently put HTML into flash and get flash to successfully render it as HTML?!? Please note I've already used a .txt file unsucessfully and it seems to have LOTS of issues with special characters

Any working examples? Can i get source code?

Pass Variable From Flash To HTML And Back?
OK I have a HTML page with a swf(created in Flash MX) on it. The user can choose between 2 buttons (basically to show text or to hide text). I need to somehow keep their option (hidden or shown text) the same on the next HTML page which has a different swf. I'm thinking I need to set a variable (ie 1 for turn on text, 2 for turn off text) and then send that variable to the HTML page where it somehow sends it to the next HTML page that is opened where the new swf reads the variable (1 or 2) and responds accordingly....

Can anyone help me work this issue out???? I'll probably need help in setting up both the swfs and the HTML code to make it all happen. I have limited experience in javascript for the HTML and more, but not much, experience with actionscript.
I'd greatly appreciate any help I can get on this. Thanks in advance.

Pass Vars From HTML To Flash NOT WORKING
Hi there!

Hi have an HTML file (actually is a php file) similar do the following code (I have to mess out some code or it won't show in the post. No opening tags):

Code:
//START CODE
OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="780" HEIGHT="440" id="index2.swf" ALIGN="">
PARAM NAME="FlashVars" value="area=<?=$area?>">
PARAM NAME="movie" VALUE="index2.swf?area=<?=$area?>"> <PARAM NAME=loop VALUE=false> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF>
EMBED src="index2.swf?area=<?=$area?>" FlashVars="area=<?=$area?>" loop=false menu=false quality=high bgcolor=#FFFFFF WIDTH="780" HEIGHT="440" NAME="index2.swf" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
//END CODE


Note all the area=<?=area?> tags. This is where I have tried to pass the var area to index2.swf. All code came from books or posts from this and other actionscript foruns.

Following is the code inside the fla file to the index2.swf. The code that should "process" the var area is in the first frame.


Code:
//STARTING CODE TO ANALYSE AREA VAR
switch (area) {
case "1" :
_root.ilustra.gotoAndPlay ("galinha");
_root.gotoAndPlay("menu1");
area = "";
break;
case "4" :
_root.ilustra.gotoAndPlay ("galinha");
_root.gotoAndPlay("menu4");
area = "";
break;
case "2" :
_root.ilustra.gotoAndPlay ("galinha");
_root.gotoAndPlay("menu2");
area = "";
break;
case "7" :
_root.ilustra.gotoAndPlay ("galinha");
_root.gotoAndStop("menu7");
area = "";
break;
case "3" :
_root.ilustra.gotoAndPlay ("galinha");
_root.gotoAndPlay("menu3");
area = "";
break;
case "5" :
_root.ilustra.gotoAndPlay ("galinha");
_root.gotoAndPlay("menu5");
area = "";
break;
default:
loadMovieNum("destaque.swf", 1);
_root.ilustra.gotoAndPlay ("ilus");
_root.gotoAndStop("inicio");
area = "";
break;
}
//END CODE TO ANALYSE AREA VAR


When I run the swf all goes well, every button works, every MC works, etc... When I try to jump to a certain frame uusing the var area. It does not work at all.

I need urgent help on this one! Any ideas?

Ways To Pass Values From Html To Flash
Hi, I am working on a project with a flash menu in html pages, I want to keep the files down so I do not want to make more than the one menu. The flash menu has 8 to 10 options that once you click on it it will load a new html page, I need the flash menu to then stay on the button that you clicked. The only way I can figure to work is to put a local connection swf in each html page and tell the menu where to go, but there has to be other ways to do this, maybe a query string but I dont know how to make it read those. Please any help is greatly appriecated. Thanks

Pass Variable From Flash To HTML Password?
Hello, i need to be pointed in the right direction for this. I am trying to make a client login page.

What i currently have:

An swf is embedded into 'login.html'. The user inputs their user and pass into the input text fields. The result of this username and password will trigger the approprate 'getURL' command to jump to 'clientPage1.html' etc.

This is just fine, however it is not truly password protected as anyone can just go to 'clientPage1.html' and view the content.

What i need to do:

I need to have the 'clientPage1.html' password protected, but have the variables from the swf on 'login.html' passed to 'clientPage1.html' so that they user doesn't have to enter the information twice. I am somewhat proficient in action script, but not as familiar with how this would work in combination with the html. thanks alot for any help. I am hoping one of you out there have seen a similar problem before
Thanks!
q

Ways To Pass Values From Html To Flash
Hi, I am working on a project with a flash menu in html pages, I want to keep the files down so I do not want to make more than the one menu. The flash menu has 8 to 10 options that once you click on it it will load a new html page, I need the flash menu to then stay on the button that you clicked. The only way I can figure to work is to put a local connection swf in each html page and tell the menu where to go, but there has to be other ways to do this. Please any help is greatly appriecated. Thanks

Dynamically Pass A Document Path To An Xmlconnector.URl
files xmlconnect.zip

I was wondering if anyone could help me with my menubar xmlconnector.url issue i have attached all the files are in xmlconnect.zip linked above

My actionscripting is limited but i am trying to dynamically pass a document path menuList_obj.attributes.instanceName to an xmlconnector.URl (profiles_con) a dataset (profiles_ds) and then update the info in a datagrid (profiles_dg).

I have managed to get menuList_obj.attributes.instanceName to show the path to the xml document in a dynamic textbox var (xmlload)

But my actionscript knowledge is more for design and tutorials for this kind of data binding are hard to find.

I alsio cannot seem to call on (change) ) event from what i have read I think would be the right way to go? but when i go to publish the .swf Flash 8 crashes and due to this I am at a loss as to how to update the xmlconnector.url and subsequently the dataset and datagrid via menubar component and its .xml.

i would be most gratefull for any help anyone can offer me?

dan@vectorscopedesignagency.com

Pass A Variable From Flash With Java To Html Page?
I know this is possible without ASP or anything.

Basically I want the user to enter their name into a text field in a flash movie, click a button and this opens up an html page with the message "hello [NAME]". Thats basically it, I can do it with ASP but this needs to work locally so I guess Java is the way to go.

Ta.

How To Pass Variable From Flash Movie To Html Browser
How to pass variable from flash movie to html browser Can any body guide me to do :
1. How can we pass variable from flash movie to html browser.
2. Between two flash movies or SWF files.

Help, Trying To Pass Variables From A Flash Movie To Html Using GetURL
here's an example of the code i am using (it's for a banner that lets you select a few dropdown options):

//concatenates the variables in my movie to the url
_root.urlvar=("http://www.examplesite.com/page.html?var1="+_root.variable1+"var2="+_root.var iable2);
//opens the url in a new browser window
getURL (_root.urlvar, "_blank");


The problem i am having is that IE and Firefox block this. Is there a way of getting around the security without changing browser settings?

Pass Variable From Flash To Html Form Field
Just curious...Anyone know if it is possible to pass a variable from flash to an html form field on the same page and have it update automatically?

For examply, I'm making a color picker in flash for my CMS, I want the user to be able to scub around and pick a color. Once they get the color they want, they can push a button and the RGB hex would be passed to an html form field below the flash file and automatically show up in the field (no need for page refresh).

I assume this can be done (I assume JS would be needed), but I'm not sure.

Pass An Email (constant) From My Flash Page To Someone Elses HTML Site
Ive tried having a look for this but had trouble coming up with keyowrds so i hope it hasnt been asked before.

On my flash site, i have a page describing how a user can send us a file using www.yousendit.com. This is something where someone can send big files to an email address, which the recipeint can then download later.

Currently, i have a button that opens a new browser page on top of the site that simply links to yousendit. The user then has to copy type my email address into the box, from the flash site. I would like to cut this bit out and hence was wondering if i could somehow pass the yousendit page my email so it automatically loads in the send to box on the youesndit page, just to avoid making the user copy the email.
Im using MX professh.
That was difficult to explain! Thanks alot for any help

Flash Menu 4 HTML Pages - Pass Variables On Page Refresh
So the subject is a hint as to how hard it is to search on this simple idea.

Will be very greatful for some help today!


PROBLEM DETAILS:
I am building a swf menu for an HTML site. It has the following buttons:

SectionA

SectionB

SectionC

What I want to do is modify the text when the HTML page for the correspoding section is loaded. So, if I click on "SectionB", SectionB.html loads. Now I want that button "SectionB" in the swf to have a background glow.

Of course the catch is, that each time a new HTML page loads, it reloads the swf menu (No Frames please!). So, naturally I know I can just tell the swf menu to go to a certain place in the timeline where there is the glow graphic behind "SectionB". But the swf needs a variable saying it is on a Section B HTML page. (of course I could build a seperate swf for each section - but that seems stupid.)

THUS....


MY QUESTION:
How do I pass a variable from a swf on one HTML page (that is being replaced by a new HTML page!), to a swf on a new HTML page.

Can I do this with a GET/POST or something?

Thanks!
-AB

HTML Target Path In Flash
Okay, this is it, I have a website. It has frames. There is a flash navigation bar in one frame and a the content in the other. So I want the Flash buttons in the navbar to target the other frame so i want to use this code: certainpage.html target="showframe". I labeled the other frame "showframe" if ya didn't know. But the script doesn't work when i use the target="showframe" command, it irks me!!! I guess I could just skip the flash and do it all with JavaScript and rollovers, but if you would help me it would save a LOT of programming! Thanks to ANYONE who replies to this. -kevin If you have any questions just email me: kevin@bsanimation.com, thnx

Path Back To A Flash/html File Not Working
I have a html file called index.html and a folder called content.  The index.html file contains a index.swf which has a button with the following script
on(release){
getURL("./content/publishedwork.htm");
}
The folder content contains publishedwork.htm, this html file contains the flash file publishedwork.swf which has a button that should take you back out of the content folder to the index page.  The script I have on this is
on(release){
getURL("index.htm");
}
My problem is that the button works from the index.htm file to the publishedwork.htm but it does not work back from the publishedwork.htm to index.htm  Would be grateful if anyone could tell me what is wrong with the actionscript on the second button that is preventing this?

Flash Menu With Multiple HTML Pages - How To Pass Variable To Menu On Refresh?
please note this topic is also posted at AS under this title:
Flash Menu 4 HTML pages - pass variables on page refresh
-----------------------------------------------------------------------

So the subject is a hint as to how hard it is to search on this simple idea.

Will be very greatful for some help today!


PROBLEM DETAILS:
I am building a swf menu for an HTML site. It has the following buttons:

SectionA

SectionB

SectionC

What I want to do is modify the text when the HTML page for the correspoding section is loaded. So, if I click on "SectionB", SectionB.html loads. Now I want that button "SectionB" in the swf to have a background glow.

Of course the catch is, that each time a new HTML page loads, it reloads the swf menu (No Frames please!). So, naturally I know I can just tell the swf menu to go to a certain place in the timeline where there is the glow graphic behind "SectionB". But the swf needs a variable saying it is on a Section B HTML page. (of course I could build a seperate swf for each section - but that seems stupid.)

THUS....


MY QUESTION:
How do I pass a variable from a swf on one HTML page (that is being replaced by a new HTML page!), to a swf on a new HTML page.

Can I do this with a GET/POST or something?

Thanks!
-AB
Birdsong is online now Edit/Delete Message

Pass Image Id
Hello,
I'm trying to create a e-cards application with Flash and ColdFusion. I want to pass all data to the database and this working fine, except for the image.

What I have done is this:
- insert image in flash
- create a inputtextfield with the idnumber of the image and put it on the image.

When you press the button to send the e-card, I want to send the active image ID to the next screen/database. What happens now is all image id's are passed to the nextscreen, and not the active one.

Pass Out Image?
I'm creating a drawing program with Flash (sounds kinda redundant, now that I think about it) to be used over the web that allows the user to save the finished product as an image. Thing is, I just plain-old don't know how to make a Flash program that outputs an image. I want it to appear in an separate window so the user can right-click on it. I figure that'd be easier on their part than having them use the Print Screen button.

So, how do I do that?

Load Image From Folder Without Image Path?
I'm trying to get flash to load an image from inside a folder. The problem is that the image name as well as the format (gif/jpg/png) are unknown. Basically I want to tell it "go look inside that folder and load the image that's there". Is this possible somehow?

Pass Variable Form HTML Form To Flash
Hi,

I'm trying to figure out how to send what the user selects from a HTML drop-down menu to the Flash movie.

In this scenario, the user picks an email address from a drop-down list and this is sent to flash as a variable called 'eaddress' which is eventually used in the flash movie to send a message to this address.

Any help is much appreciated!

Glenn

How Pass Image As Variable?
I know how to pass text into Flash using LoadVars, but how do I pass an image? I'm assuming I would just set the variable to the image path and file. But, the image control I was given to work with in Flash doesn't have a variable field lile a dynamic text field does.

Thanks for any help!

Ron Cook
Boulder, CO

Pass Variable From HTML
I want to pass a variable from an HTML page to an SWF file that lives in a different HTML page.

Can anyone help me with this?

Thanks.

Pass Word And Html Help
Hi i got this from the tutorials, how would i add more users?
on (release) {

if (user add pass eq "admin" add "password") {

gotoAndPlay("Success", 1);

} else {

gotoAndPlay("failure", 1);

}

}
also how would i make it so if it was correct make it go to another html page outside of flash?

How To Pass Variables From HTML Into Swf
Hi,

I can not find information anywhere, on how to read variables passed in from HTML to swf file, using actionscript 3.0.

I have read that variables can be passed in either via

1. myprog.swf?var1=value1, or
2. with SWFObjects methods: so.addVariable("var1", "value1"), or
3. with Object <param .. > tag.

But how is that data picked up in actionscript 3.0? I've read that it is available as _root.var1, but I'm guessing that is actionscript 2.0, because _root is not recognized.

What's more, how can you set the variables in Flash 9 authoring tool when debuging?

Thank you for help.
David in New York.

Pass Var From Html To Component
Hi,
I know a bit about flash, but not components. I need to pass an ID to a component in an swf.

my html looks something like

Code:

<param name="movie" value="testmov.swf?someId=65" />

then in testmov.fla I have a component with an instance name of 'comp'. To pass the 'someId' variable to the component, on the first frame of the swf I have:

Code:

comp.someCompParameter = _root.someId;

where 'someCompParameter' is a parameter that is passed to the component.

The Problem
The above does work, but it works too late. The component loads and requests the 'someCompParameter' before it is passed on the first frame.

This parameter is actually an XML file url - the result is the file doesn't load.

Can anyone help me out with passing the 'someId' from the html file to the component? The original developer has disappeared off the face of the planet (assuming he was ever on it!).

Pass Var From SWF To SWF In A Different HTML Page?
I have a Flash nav shared by 50 html pages. When I click the nav I'd like to keep track of a variable to use in the next html page (which uses the same Flash nav.)

Sounds like localConnect can do it but haven't seen a sample sharing info between the same SWF in different HTML pages.

I'm not using Frames, so the same nav SWF gets loaded each page.

Can I Pass Variables When I Load A New Swf In Html?
Hello everybody.

I can´t find a solution if I can pass a value for a variable when I load a SWF-File in an HTML-Document.

Is it possible or do I have to use Javascript or Actionscript to load an external value?

I need a quick answer please!

Thanx

Christian

How To Pass Variables From HTML To FLASH4?
I wonder if anyone can help with this real pain of a problem...

I have a HTML page of tourist attractions. Simple, but I want the user to be able to click on an attraction and have my Flash Map open and go to the correct co-ordinates.

I sort of understand that a form & submit button could be added to the tourism attractions HTML page, but how do I get Flash to receive that information?

Help!

Pass An Action From Frame In Html To Another One
Hi all,

I have a problem. I have a HTML page with have two FRAMES, left and right. One movie in left FRAME and another in right frame.

I want to pass an action from the movie on the left FRAME to de right one, but I don´t Know how.

¿Could anybody help me, please?

Thank you.

Pass Variables To SWF From HTML Link?
Is it possible to pass a variable to a Flash movie from a HTML hyperlink? This variable could come from 1 of 50 or more different hyperlinks so I don't think I can use getURL with a specific URL to get variable.

What I have is an opening Flash movie that has multiple expanding menus. Each of these menu category items links to a standard HTML page. I would like to make a link in the HTML page that lets the user go back to the Flash menu and have the Flash menu open up/expand to where he/she had originally navigated.

This would be easy to do in Flash with a simple variable. If variable=levelA then goto and play "expanded" of such-and-such nested "levelA" movie clip. I just need to send a variable to tell Flash what to do based on where the user is coming from.

So how can I send these variables to Flash from a html hyperlink?

Thanks!

Pass Actionscript From Html Menu ?
Is it possible to pass actionscript from a html menu (driven by .Net) to a flash movie.

Basically what I am doing is moving an object by setproperty which is called from a menu when clicked. The menu is in html.

Would I use javascript ?

Regards


Richard

Pass Variable From 1 Swf To Another Swf On The Same Html Page? Help
I have 2 swf. I do not want B.swf to load until A.swf get the the certain point. They both are on the same html page.

Is there a way I could pass the variable (say if I send a _global in A.swf) from one swf to another if they are on the same html page?

thank you so much!

Pass Html Variable Without AC_RunActiveContent.js
Well I have had no luck trying to pass a variable from an html page to my swf.

Here is what I have tried
html code

Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="550" height="400" id="compass" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="compass.swf?mX=90" />
<param name="flashvars" value="something=somethingelse&apples=oranges" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="compass.swf?mX=90" quality="high" bgcolor="#ffffff" width="550" height="400" flashvars="something=somethingelse&apples=oranges" name="compass" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>


And here is what I have in the document class

PHP Code:




var tf:TextField = new TextField();
            addChild(tf);
            tf.autoSize = TextFieldAutoSize.LEFT;
            tf.border = true;

            tf.appendText("params:" + "
");
            try {
                var keyStr:String;
                var valueStr:String;
                var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
                for (keyStr in paramObj) {
                    valueStr = String(paramObj[keyStr]);
                    tf.appendText(" " + keyStr + ": " + valueStr + "
");
                }
            } catch (error:Error) {
                tf.appendText(error.toString());
            }







What am I doing wrong, any ideas? This was so easy before AS3

Pass Html Variable Without AC_RunActiveContent.js
Well I have had no luck trying to pass a variable from an html page to my swf.

Here is what I have tried
html code

Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="550" height="400" id="compass" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="compass.swf?mX=90" />
<param name="flashvars" value="something=somethingelse&apples=oranges" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="compass.swf?mX=90" quality="high" bgcolor="#ffffff" width="550" height="400" flashvars="something=somethingelse&apples=oranges" name="compass" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
And here is what I have in the document class

PHP Code:



var tf:TextField = new TextField();
            addChild(tf);
            tf.autoSize = TextFieldAutoSize.LEFT;
            tf.border = true;

            tf.appendText("params:" + "
");
            try {
                var keyStr:String;
                var valueStr:String;
                var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
                for (keyStr in paramObj) {
                    valueStr = String(paramObj[keyStr]);
                    tf.appendText(" " + keyStr + ": " + valueStr + "
");
                }
            } catch (error:Error) {
                tf.appendText(error.toString());
            } 




What am I doing wrong, any ideas? This was so easy before AS3

Please Help Can I Pass A Variable Between 2 Swf's That Are On Different Html Pages?
Hey,

Does anyone know how to pass a variable (string) from one swf to another if there in separate html pages?

I assume I’d have to send the variable from the first page and load it into the second but I don’t know what functions or code I should be using. Any suggestions would be a HUGE help.
Thanks

If it helps: I’m creating a log in and sign up sheet that can be accessed from several sites. I’d like to record which site the user has come from when they signup.

Thanks

Load Image To MC From Pass-protected Server
Hello
I would like to know how to load an image into a movie clip from a server that need user/pass. I can get to the image with getURL but then I cant get it into the movieclip. Please help.

Animation When Users Pass Mouse Over Image.How?
Hi!
I have a MC that is an image.I want to do exactly like the ultrashock image on top of this page.Whenever the user passes the mouse over that MC an animation starts to play.

how would I do this?

HTML/JavaScript/ActionScript/variables/pass
Trying to take a variable from the html doc using a JavaScript to put it into the flash movie...having problems & I can't seem to get the job done. I am sure it can be done!!

ID & NAME are in OBJECT/EMBED(passFlash) & swLiveconnect=true and the function is described...
function getIt(){
var message=document.test.song.value;
window.document.passFlash.SetVariable("output", message);
}

donc, I get an error which says "passFlash" is not an object but in fact it is the NAME/ID???

"output" is the name of the textField in the movie.

What's going on here? If anyone out there can HELP, I'd appreciate the input...been racking my brain for two days now on this!! You can also directly e-mail.

thanks____________________________________________ _________
Stephen Koch . " °
14, rue Aristide Briand ° '. .°oO
92130 Issy les Moulineaux . 0
01.47.36.95.82 .°Oo. ° . -
[mail]stephen.koch@libertysurf.fr[/mail] . - ° o
________________________________[]_______________[]____

Run Time: Pass Link Var [html Format] To Txt Box
Greetings,

I have a text box with var equal to "link"
I have a push buttom with click handler "link01"

When the push buttom is clicked, "linko01" handles as follows:


Code:
//link #01
link01 = function()
{
links = "<br><b>VB.Net Developers Resource Centre</b>" +newLine+ "http://www.mvps.org/vbnet/" +newLine+ "<br>VBnet provides Intermediate and Advanced Win32 API code for VB developers. Comprehensive Code, FAQ, Developers Resources, News, alphabetical API/Type/Constant/Method Index, along with the largest Visual Basic-related links list on the net."
}
The problem is, however, that i cannot get the URL to appear as a link that opens...opens on a second page.

If i try the traditional html formatting, <a href=>, the link is not displayed, nor does it function correctly.

Could anyone please help me with the syntax?

Thank you

Pass Variables Between Two Swf's In Seperate Html Pages
Hi,

Is it possible to set a variable in swf1 that is embedded in 01.htm, then use get url to open 02.htm with swf2 inside it, and then use the value of the variable declared in swf1?

Kind regards,

wouter

How To Pass Data Across Swf Which Are Called Thru Different Html Files
Urgent:

Does anyone know how to pass data across swf which are called thru different html files?

For examlpe: There is file called "Interface.swf" which have a variable called userName. There is a button in Interface which opens a file called "Help.htm" which inturns calls a file "Help.swf". I need the variable userName from Interface.swf to Help.swf. I have tried global variable but its not being passed as these are called thru two different html.

So, does anyone know the solution to solve this problem?

thanks in advance...

Copyright © 2005-08 www.BigResource.com, All rights reserved