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




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...



FlashKit > Flash Help > Flash MX
Posted on: 03-07-2005, 11:15 PM


View Complete Forum Thread with Replies

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

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...

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...

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...

Pass Frame Variable Via Query String Bettween 2 Swf In 2 Different Html Files
Hello, I have an swf movie embedded in an HTML. One of the links calls to another HTML with a different SWF embedded. I need to link back to the original HTML/SWF but to a certain frame within that SWF using HTTP query. I understand that I can do this with Javascript and by parsing the HTTP query. Can anyone direct me to a tutorial or give me some help?

Thank you

maknenoiz

Question About Called In .swf Files
Hi everyone thanks for you help in advance - I have a movie that calls
in swf files from a txt file it is reading so my client can make
changes to the images without having flash. I have it working but if
he puts in an image larger than it is supposed to be than it will mess
up the design(if you put a 200 pixel wide picture eventhough the flash
file is only 100 wide it will still put the entire picture in the file
overlapping whatever underneath) and I dont want to take that chance -
so is there a way besides putting a mask over it to keep it the size of
its movie. Thanks again

How To Pass Data From One Swf To Another
hi,
I have an external .swf file that has a button (really a movie clip) on it. I'm loading it into a scrollpane component in my main swf file. When i click on the button i need to load something into my main swf and that works fine. However, when i click the button (in my external swf file), i also want to pass data to the main. In addition, i need to be able to capture that each time i click the button (the data that the button will pass will change over time).
Any ideas? Thanks.

By Pass Data To SWF
Hello everybody ,

I have this script http://www.tufat.com/script132.htm, i want to by pass this

{$flvdourl}/{$vinfo[0].flvdoname}
to swf
// flvdourl is the url / filename
// {$flvdourl}/{$vinfo[0].flvdoname} in a php template
// the template converts this
// {$flvdourl}/{$vinfo[0].flvdoname}
//to http://www.somewhere.com/video.flv

use flash_vars when displaying in html

Can any body help ?

Thanks for your help!

Pass Data From URL Into Swf
Hello, I have a basic HTML page with link options to another HTML SWF loader page.
When a use chooses one option, I want a variable passed to the SWF loader page that will load that respective SWF.
When the user chooses the other option, the other respective SWF will load.

I simply appended a ? character to the end of the URL and passed the values. I defined a string within the SWF loader page to receive these values, and a set of "If Else statments to test which value was received.
It is not working, is there an example or tutorial of this sort of thing out there I can look at ?

thanks for any help.

By Pass Data To SWF
Hello everybody ,

I have this script http://www.tufat.com/script132.htm, i want to by pass this

{$flvdourl}/{$vinfo[0].flvdoname}
to swf
// flvdourl is the url / filename
// {$flvdourl}/{$vinfo[0].flvdoname} in a php template
// the template converts this
// {$flvdourl}/{$vinfo[0].flvdoname}
//to http://www.somewhere.com/video.flv

use flash_vars when displaying in html

Can any body help ?

thanks for your help!

Pass Data To A New SWF
I have one swf replacing another. The first SWF doesnt load the second one into it`s display list, is uses navigateToUrl (_self) to open the new swf instead of itself ( in the same window). I`d like the first SWF that calls the second SWF to pass to it a single variable, based on the choise of the surfer ( meaning it is dynamic). What would be the best way of doing that with AS3 ?

Basically what I did try was to pass this var to the query string of the new SWF. I succsedeed doing that, but I fail retrieving it from the query string within the new SWF. This is the code I used to pass the var :

Code:
this.addEventListener(MouseEvent.CLICK, onClick);
function onClick(myEvent:Event):void {
var req:URLRequest = new URLRequest("newPage.html");
var Variable:URLVariables = new URLVariables();
Variable.varA = "A";
req.data = Variable ;
req.method = URLRequestMethod.GET
navigateToURL(req, "_self");
}
The Url I get for the new swf, using this code is :
http://www.mySite.com/newPage.html?varA=A
and the code I`ve tried using for retrieving this query string data in the new swf is :

Code:
myTextField.text = this.root.loaderInfo.parameters["varA"];}
or:
Code:
myTextField.text = this.root.loaderInfo.parameters.varA;}
or:
Code:
myTextField.text = root.loaderInfo.parameters["varA"];}
or:
Code:
myTextField.text = root.loaderInfo.parameters.varA;
But, it doesnt work.
If anyone has any idea what`s wrong in this code or of another way of doing the whoe thing, I`d be very grateful.

Preload Problems With Jpg Files Called From Xml
Hi,
Im having a little problem with a preloader, it will jump from 0-100.
The script im using or making loads jpg's from xml, the images load when the loader gets to 100 but i can't work out why it jumps.
any help would be welcome

yours agent_ toto

Uploading - OnProgress Only Called If Files Are Big Enough
flash help states this about the onProgress listener

Quote:




In some cases, onProgress listeners are not invoked; for example, if the file being transmitted is very small, or if the upload or download happens very quickly.




I update a progress bar in my onProgress listener.... so if I download files that are too small, my progress bar never changes.


Code:
listener.onProgress = function(file:FileReference, bytesLoaded:Number, bytesTotal:Number):Void {
progress.mode = "manual";
progress.setProgress(bytesLoaded, bytesTotal);
trace("bytesLoaded: " + bytesLoaded + " bytesTotal: " + bytesTotal);
}
How could I fix this?

Pass Data Then Close
I've created a form (movieclip) that is spawned from an asp page. Info is entered, you click the submit button, and the info populates the related fields in the mother page. My problem is is when this action occurs, The spawned page only minimizes and it opens a new mother page with the information in it. Can someone give me ideas on how to have the data sent to the original page and close the spawned page?

Can't Pass Form Data
i made a test form, one 'page' and when the user filled in the info then clicked SUBMIT, the info was passed to a java servlet and an e-mail was generated.
noW, i expanded on this: made 10 questions, each on their own 'page' (user clicks CONTINUE to go to the next question).
The final page had the same ActionScript on the button as the original test form:

on (release) {
name = nametxt.text;
ext = exttxt.text;
dept = deptcb.getValue();
//one = promo.getValue();
//two = darth.getValue();
//three = food.getValue();
//four = sun.getValue();
//five = menu.getValue();
//six = apple.getValue();
//seven = tele.getValue();
//eight = fax.getValue();
//nine = homer.getValue();
//ten = friends.getValue();
getURL("http://wegweb/servlet/FlashTest.class", "_self", "GET");
}

I commented out the extra code cause i tried submitting with just the user info (still didn't work).

Is there a way I have to store all the answers, then submit?
the only diff. between this and my test form are the multiple 'pages'.
I am not using ColdFusion, just submitting the data to a servlet.
If anyone caN HELP, I'd greatly appreciate it!
THANKS!

Still A Problem To Pass Data To Php
Hallo,

After searching for the problem in this category I recognized that there are a lot of people here with the same problem. I want to pass a variable from Flash to PHP with: (inside my button is an input field with the instance-name "name")

on (keyPress "<Enter>") {
getURL("script/matrix.php", "_self", "GET");
}

the code in my php script is:

<p>Welcome to the Matrix, <?php echo $_GET['name']; ?></p>

and this is what i get from my browser (the querystring is empty!)

Welcome to the Matrix,
Notice: Undefined index: name in c:inetpubwwwrootflashscriptmatrix.php on line 1

please help.

Pass Data To Listener.
I use MovieClipLoader to load some images. How can I send data to the listener ?

Pass Data Between Objects
I have a main class, with a child object. I want to pass data from the child object up to the parent main class.

What is the best strategy to do this ?
ie. via a custom event that holds data ?

Thanks for any help.

Pass Data To Listener ?
I have 2 kinds of images that I want to load into flash. I am using MovieClipLoader class. Is there a way to pass some data to the listener so that when I am loading one kind of the 2, the listener will know and in 'onLoadComplete' it will act in a certain way depending on what type of the 2 it is ?
Something like this:

Code:
loadDataListener.onLoadComplete = function(type:Number):Void {
if(type == 1) {
// some behaviours
} else {
// other behaviours
}
}

Pass Data In And Out Of Flash/JSP
Anyone know how to pass data from flash into jsp pages? I have tried to use the getURL method, and it did not work.

Thanks

Fscommand; How Much Data Can I Pass?
OK, I'm just getting into the integration of flash and Visual Basic, thing is, I am using flash to manipulate some XML files that can get quite big, and I will be using VB to write them to an XML file on the machine...

So I have the dillemma, Do I attempt to pass the file/data to VB using fscommand, OR do I use VB to reach in and take the variable..?

Anyone with experience in this manner would be of great help!

Restrict Access To Files Called By SWF Movie
I have this Flash object embedded on a page - you click on it to stream an MP3 file:

Code:
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='82' height='19'>
<param name='movie' value='/images/mp3player.swf'>
<param name='wmode' value='transparent'>
<param name='quality' value='high'>
<param name='FlashVars' value='soundToPlay=/play/01_soundfile/'>
<embed src='/images/mp3player.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='82' height='19' wmode='transparent' FlashVars='soundToPlay=/play/01_soundfile/'>
</embed>
</object>
This works perfectly by itself but what I am having problems with is restricting access to the soundfile directory with htaccess since the SWF file does not send the referer. I only want people to be able to listen to the file when the MP3 is embedded on the page, I do not want them to be able to look at the source code and type the filename into their browser and download the file, or to hotlink to the MP3 file directly. Any ideas on how to do this with htaccess or actionscript??

Pass Data From One Flash To All On Network
Hi everyone,

What I'm trying to do is set up a 'broadcaster' on my computer and 'listeners' on every computer within my network. Then, I submit a message to the broadcast (also from my computer) and it is received and displayed on all machines within that network. I've tried localconnect but of course it's not a local connection. I'm thinking maybe I need to pass the data to a xml/php/asp/etc script that blasts it to all of the network and each of them pick it up from that. Any suggestions? Anyone else done something like this?

Thanks!

Varibles To Pass Data With A Print Out
Hi,

I am adding on to a site that i built with MX, The client wants a system so the customer can buy a gift certificate online and type in any amount specified.


This will also have a certificate serial number that has to be random each time a gift certificate is downloaded.
Now the tricky part.

They are using pay pal and i know with pay pal you can redirect the customer to a certain page when the order is complete. This would be the page so they can print out the gift certif. online. can you use paypal with the flash or HTML , what ever i build this system with, keep track of the amount typed in and a random serial number for each certificate.

I am not any good with mySql, I want to use PHP and text files to make it easy as pie.


so to break it down.

Giftcertificate will have dynamic text box, so the price that is enterted will appear on the the certificate when the user prints it out


Gift certif. will have a random serial number so the client can keep track of them.

I would also like to protect the folder which will have the certif. so you can't access it directly with URL, only when payment has been made you can download and print the file. Is this possible with pay pal

I really need a start on this, I don't have any ideas on how to do it yet.

thanks again
i can use HTML and PHP only if that would make it easier



how would i use text files with php to fill in the name, amount when the user buys a certificate online.


__________________

What Variable To Use To Pass Data From External Swf
The MAIN flash site I am making uses a lot of external .swf movie clips (MAIN flash movie loads the external .swf files into empty movieClip holder, plays and then unloads them).
I wonder if there is a way to set some variable in the external .swf file and pass its data *or its contexts* to the MAIN flash movie (the MAIN web site that called that external .swf movie clip).
Let's say if an user clicks "Close" botton which is a part of external .SWF file, then actionScript code attached to this CLOSE button of the external .swf file declares some varibale and assings some value to it, lets say "33". Then CLOSE button executes followed by command such as gotoAndPlay(2), which makes MAIN flash movie to leave external MovieClip holder and proceed to the MAIN timeline of the website itself.
There, on frame # 2 the value "33" will be assinged to another variable or is being used somewhere else by the MAIN movie.
I tried Global variables, but they seem to be invisiable to the MAIN flash movie if their declaration or value assignment happened in the external .swf file.
Any help will be appreciated.

Pass Quiz Data To An ASP Application
I am using action script to pass quiz data to an ASP application that will save the data to a database. The problem that I am experiencing is that when the action script calls the ASP app it inserts a blank record than it will insert my data...."I am pulling my hair out"

I have included the Actionscript and the asp file that it is calling...any suggestions anyone.

************************************************** ***************************

ACTION SCRIPT

ActionScript Code:
userScore=(numOfQuestionsAnsweredCorrectly*100)/
 (numOfQuestionsAnsweredIncorrectly+numOfQuestionsAnsweredCorrectly)



myDate = new Date();
dateTextField = (mydate.getMonth() + "/" + myDate.getDate() + "/" + mydate.getFullYear());



    quiztitle = "FACTS 101"

    myData.final=userScore
    myData.date = dateTextField
            myData.quiz = quiztitle
    myData.studentname = username
              myData.sendAndLoad("http://www.mysite.com/SaveFlash.asp", myData, "POST")
     
           myData = new LoadVars()
            myData.onLoad = function(){       
                   if(this.writing=="Ok") {
                            gotoAndStop(65)
                        status.text = "Submited data was saved"
                   } else status.text = "Error in saving submitted data"
                trace(this.writing)
            trace(dateTextField)
            }
         stop();
################################################## #################

SAVEFLASH.ASP SCRIPT


<%@Language="VBScript"%>
<%
'Option Explicit
Dim oRS, oConn ' Recordset and connection objects

Set oConn = Server.CreateObject("ADODB.Connection")
oConn.ConnectionString = "Driver={Microsoft Access Driver (*.mdb)};" & _
"DBQ=" & Server.MapPath("students.mdb")
oConn.Open

Set oRS = Server.CreateObject("ADODB.Recordset")
oRS.Open "SELECT * FROM scores", oConn, 2, 3

oRS.AddNew
oRS("Quiz")=Request("quiz")
oRS("Score")=Request("final")
oRS("quizdate")=Request("date")
oRS("user")=Request("studentname")
oRS.Update
Response.Write "writing=Ok&"


' Clean up and say goodbye.
oRS.Close
Set oRS = Nothing
oConn.Close
Set oConn = Nothing

%>

How To Pass Flash With Data From Mysql?
Hi all . i have small flash .swf that i use it as mp3 player. I did not make it but i have .fla file since it is open source. When i run the main html it reads a .text fiile which has song path and song title and starts play the song(s). i stored song path and song title in mysql db and i want to use data from mysql and feed it to flash to start work without using .text file. I do not know how flash is made and how i can pass those information to flash from mysql. I hope an expert experienced with flash tell me how i can achive this using php and if i need to look at flash where in flash should i see info about data type and stuff... Thanks

main html:
CODE<html>
<head>
<title> MP3 Player Music and Videos</title>
</head>
<body>

    &nbsp;</td>
        <td align="center" width="60%">

          <object type="application/x-shockwave-flash" data="mp3player.swf?playlist=1139873882.txt" width="280" height="280" wmode="transparent">
              <param name="movie" value="mp3player.swf?playlist=playlist.txt" />
              <param name="wmode" value="transparent" />
          </object>
           
        </td>
         
</body>
</html>

Pass Data Into Swf From Parent Document
I am using Flex (basically just another way to design flash applications) and I'm trying to pass in some GET data from the parent document (a PHP file) into the embedded SWF.  Is there a simple way to either retrieve the data from within Flash, or to pass it in and then use it within the Flash application?

eg. the URL in the browser would be:
http://www.somewhere.com/myFile.php?search=title&query=Patriot

Then within myFile.php would be embedded the main flash application: testing.swf

I want to retrieve the search and query values from the URL and use them inside the swf file.  Any easy solution?

Thanks
  ND

Pass Data To/from Mc On Window Component?
Could someone please tell me how to pass info to and from elements attached to a window component?

Here's the project.
I'm building a portfolio player to show samples of my work. Along with each sample is a description which is displayed in a floating window.
The way I've implemented the window is to attach a movie clip containing a TextArea component to a Window component.
I haven't been able to figure out how to pass data to and from the TextArea and other objects in the movieClip.

The code to create the window (named <i>infoWindow</i>) and attach the </i> movieClip (named <i>projectInfo</i>) is:
Code:

// Create window:
var infoWindow:MovieClip = mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window, false, {closeButton:true});

//The [i]projectInfo[/i] movieClip is attached using a function, but basically the code is:

infoWindow.attachMovie("ProjectInfo", "projectInfo_mc", 0, {_x:textAreaXPos, _y:textAreaYPos}); //Uses linkage to take ProjectInfo from library

The current state of the application is here.

If you look at it, you will see that the window has some functionality, but I there are several functions which I can't figure out how to implement.
For example, one function that works is using button clicks to navigate within <i>projectInfo.</i> So if you click on the dog button (instance name <i>minMaxDog</i>), it wll move to F2 of <i>projectInfo</i>, which causes the info box to disappear. However, if I add ns.pause() to the button click, it won't start the video (which exists on the main timeline and has been paused with ns.pause):
Code:

minMaxDog.onRelease = function() {
   gotoAndStop (2); // Hide window but leave "show window" button. This works.
   ns.pause();//This fails
}
I also attempted using eventListener code to control the video, but Flash doesn't even register the button click. When the start button (instanceName <i>startBtn</i>) at the bottom of the InfoWindow is clicked, I would like the InfoWindow to fade away and then have the current video start playing, but no go. I'm not too experienced using Listeners, but when I used the following code on the <i>projectInfo</i> timeline, nothing happens (not even the <b>trace function</b>) when <i>startBtn</i> is clicked:
Code:

// Define Listener
var btnEvent:Object = new Object();
//Create Event Listener
//Assoc event we want to listen for to the object.  In this case it's button click on the button.
btnEvent.click = function(evt:Object):Void {
      trace ("I've been clicked!");
   ns.pause(); //a play/pause toggle
}
}
//  Register Listener Object to button component.
startBtn.addEventListener("click",btnEvent);

Any help would be greatly appreciated.

Thanks.

Mitch

Preloader That Takes Care Of Externally Called Files?
Hello,

1.How do i write a preloader which would also take into account the contents of any swf being loaded from outside.
To be more precise say, my main movie is 200kb and somewhere in this main movie i am loading an external image(or swf) of 100kb. then what code would go into my main preloader which would take this 100kb also into consideration.

2. Also suppose i have a movie clip containing three loader components recieving three .jpg files stored externally, how do i write preloader for this movie clip?

Please flash gurus , bail me out!!!
Thanks in advance!

Linking From Html To Swf Called From Another Swf
I understand how you can link from html to a swf file but my problem is that I need it to go to specific place which is another swf file called from the "container" swf file.

What would be the easiest way to do this?

Is XML The Only Way You Can Pass External Data To Flash In An Array?
Is XML the only way you can pass external data to flash in an array?
Or is there another way?

How Do I Pass Data From Combobox To A Text Feild?
Title just about sums it up really.

I have an instance of the combo box component, and i want to transfer the selected value to a dynamic text feild. (this is for a summary page on a form). I've seen this done, but i can't find out how to do it!!!

Help Please

Import External File To Then Pass Data?
I want to import a .txt or .xml file (so it's real text) that has a form on it. I also want to style the text on this form (will this real text be affected by the html's css or do I have to state it in flash? I also want to pass that form information to another scene, at which point the user will add their email and name and *then* click "submit".

Any good advice?
I do this all the time outside of flash but this is the first time I've done it in flash.
Any links/tutorials/advice is appreciated!

Pass Data In Custom Event Dispatch
I have a custom event I made and it works great.

my listener knows exactly when my custom even is dispatched,

but I need to know some other data, how can I pass some data to the eventHandler??

for instance:


ActionScript Code:
chose = "optionA";
dispatchEvent(new ChooseEvent(ChooseEvent.CHOOSE)); // here I know which one was chose

//different class
chooseStone.addEventListener(ChooseEvent.CHOOSE,onStoneChoose);
function onStoneChoose(e) {
            trace("CHOOSE!!!!!"+e);
// I know one was chose but I dont know which??
        }


THANKS!

How Do I Pass A Multiple Select List Of Data From AS3 To PHP?
Hello,

I'm developing a Flash interface that needs to pass a multi-select list to PHP from AS3. I have a similar interface programmed in HTML and JavaScript, and due to the quirks of PHP I use a series of like-named hidden fields to store the data. The fields are named, for example, "my_option_text[]". The use of the square brackets in the name somehow identifies to PHP that this is an array and it treats it as such. I've had no problem using this method to send data to my PHP processing page and have been able to save it correctly.

Now I'm trying to use the same PHP save page to process the data from Flash. Unfortunately, I can't figure out how to configure my URLVariables class properties to appropriately pass an array that will be identified as such by PHP. I've tried simply assigning an array to an appropriately named property of the URLVariables class, but the PHP only recognizes one item, not all items. I've tried using the same naming convention as that I use in HTML/JavaScript, but the square brackets aren't appreciated by AS3.

I can't believe that I'm the first person to encounter this issue. If anyone can point me in the right direction on how to resolve this I'd appreciate it. I did try searching these forums but only found one case discussing PHP arrays, and that was sending data into Flash, not from Flash to PHP.

Thanks in advance for any help you can provide.

Question On Using Setvariable To Pass Data To Flash
Hi,

I have a question on using setvariable. A friend of mine asked me if I could help him. He asked me to use JavaScript to pass a variable to JavaScript. Basically when the page loads, he wants me to pass a "bookmark" to the flash movie so that the particular movie that is bookmarked is loaded. Don't ask me why, but he wants it done specifically this way.

I have the JavaScript written out so that when the page loads, it will pass the bookmark:

(Let's say I want to load a movie called "TheBookmark.swf")


<html><head>
<SCRIPT LANGUAGE="JavaScript">
<!--
// set the variable in the SWF
function changetext(str){
if(window.sample) window.document["sample"].SetVariable("myText", str);
if(document.sample) document.sample.SetVariable("myText", str);
}
//-->
</SCRIPT>
</head><body onload="changetext('The Bookmark.swf')">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="" ID="sample" WIDTH=400 HEIGHT=80>
<PARAM NAME="movie" VALUE="sample.swf">
<EMBED play="false" swliveconnect="true" name="sample" src="sample.swf" quality="high" bgcolor="#FFFFFF" WIDTH=400 HEIGHT=80 TYPE="application/x-shockwave-flash"></EMBED>
</OBJECT>


</body>
</html>

My question is, once I pass the text to flash , how do I assign the data to a variable in flash?

This is what I tried:
var myBookMark:String = myText; // pass variable from JavaScript to flash?

var mcLoader:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
mcLoader.addListener(myListener);

mcLoader.loadClip(myBookMark,myLoader);

Thanks in advance for any advice.

.mp3 Files Playing At Super High Speeds -- Called With Loadsound
Hello,

I have taken the juke box component supplied on the macromedia cd as a basis for a song player. My problem is that the songs are being played super high speed. The .mp3 files play normally if called directly from an explorer call (local or on the internet) but as soon as they are called by the juke box it is chipmunk central. Has anyone had a similar experience? Any troubleshooting ideas?

The link is www.spektralmotion.com -- The juke box is currently playing .swf files instead of .mp3 files becuase of the "chipmunk" problem.

The juke box is doing a simple loadSound command for a .mp3 file.

Also another related question. The juke box that is currently posted at www.spektralmotion.com works except for switching songs automatically. I need to detect when the external .swf file is done playing then switch to the next .swf file. Any ideas? I was using onSoundComplete when the juke box was configured as a .mp3 files -- but now that doesn't work becuase it's configure with .swf files to try and bypass the "chipmunk" fast audio.


Thanks,
My client is flipping out because the deadline was two days ago. And I don't understand what problems flash is having with calling simple .mp3 files.

Oh and the controls at the bottom of the juke box don't work -- ignore them.

Joshua Lomelino
anomaly@anomalystudios.com

Popup Called From Flash Vs Html
Hi Forum

It appears that popups called from within html with a onClick event in the anchor tag are less likely to be blocked by most browser popup blockers (safari, mozilla). A popup called from within an swf movie however will trigger the popup alert. That just seems kinda unfair. no ? :)

I'm using flash 8 and getURL()

Is there some sort of acceptable workaround or alternative? Even if it's just a temporary one which will be fixed in the next versions of popup blockers.

Any opinions on this?

Thanks

stephank

Window Attributes With Url Being Called From Html
I have a movie clip with the following script:

onClipEvent(load) {
loadMovie(_root.url + "_portfolio1.jpg", this.cont);
url=_root.url7;
}

The movie clip contains a button with this script:

on (release) {
trace('1 - ' + url);
getURL(url, "_blank");
}

In an html page I have this:

url7=http://www.blahblahblah.com

All this together opens a new window with the new site. But..I want to have a fixed window size with no scrolling...etc..

What do, and how do, I add this to the getURL(url, "_blank"); since I am using "url" and not http//www.blahblahblah.com?

Any help would be a world of help. Thanks

Swf Works On Its Own, But Only Flashes When Called From Html
Hi all,

I'm not new to flash, but I haven't done much passing of parameters between flash and php. What I'm trying to do is create a flash file that will load swfs that are randomly chosen from a directory full of swfs. The random choosing is done by a php script.

When I call the swf directly, it functions properly but opens a new window, which I don't want. When I run the html page generated by flash (I'm using v8), the loaded swf is embedded, which is what I want, but it just flashes and leaves me looking at a blank page.

The swf is at http://www.teryg.net/test/SwfOnly.swf.
The html is at http://www.teryg.net/test/SwfOnly.html.
The php code is at http://www.teryg.net/test/image/RandomSwf.php.

The actionscript in the master flash file is:

/* first create a new instance of the LoadVars object */
myVars = new LoadVars();
// call the load method to load my php page
myVars.load("http://www.teryg.net/test/image/RandomSwf.php");
// once vars have been loaded, we will have these variables:
myVars.swfToLoad    // URL of swf
yVars.onLoad = function( success ){
    if(success){
        trace("variables loaded");
        for( var  prop in this ) {
            loadMovie (this[prop],"photo_clip");
        }
     } else {
        trace("Error loading page");
    }
}
stop() ;

I've been messing with this for hours, so I know it must be something obvious . . .

TIA,
JadeG

Mx.data.components - Unable To Declare Data Component Types In External Class Files
Hi all,

FlashMX 2004, v7.2:

I am trying to declare instances of data-components (DataSet and DataHolder) in external classfiles, but Flash can't find the sourcefiles for any of the data component classes in the classpath.

According to the help-files, the classname for the DataHolder component is:

Code:
mx.data.components.DataHolder


Similarly, the classname for the ComboBox component is:
mx.controls.ComboBox

Code:
mx.data.components.DataHolder


In the following, the ComboBox gets declared, and the DataHolder generates a "Class can't be loaded" error:


Code:
class my_class extends MovieClip {

var my_cbox:mx.controls.ComboBox;
var my_data:mx.data.components.DataHolder;

function my_class() {
// constructor function
}

}


Sure, it fails because there is no "components" folder in the mx.data folder (at least on my system), and I have been unable to find any DataHolder.as file anywhere either, even though the documentation gives examples that reference the mx.data.components-folder for various data components. I even tried re-installing to make sure I had not accidentally deleted any classfiles, but still no luck.

Am I missing something really obvious here? Does anyone know how to successfully import, declare or otherwise make use of data-components in external class files? Any help greatly appreciated.

How To Pass The Data Submitted In A Form To An Email Address
I have created an online form that contains text fields, drop boxes for Months, Days, and Years, radio buttons (Yes or No). Once the submit button is pressed, the data should be sent to an email address. However, the data is not sent, and I am not sure what is wrong???

Do I need a mail.php3 file save in the same web site folder? Is there something wrong with the code below?
<?php
mail("aaa@yahoo.com", $name, "hotel reservation", $TextField5, $TextField6, $TextField7, $TextField8, $TextField9, $TextField10, $TextField11, $TextField12, "From: $email
Reply-To: $email
X-Mailer: PHP/" . phpversion());
?>

Please help!!!
Thanks,
..Snoopy88

Javascript Not Being Called In Html TextField In Safari
I have a dynamic text field where I create an html link based on a couple of pieces of data.

Here's an example of the code for the link:

PHP Code:



var aTag:String = "<p class = 'landing'><a href="javascript:openVidPlayer('/vidplayer.html?video="+sel.v_id+"&category="+sel.cat+"');" target = '_parent'>"+sel.ttl+"</a></p>"; 




My problem is that the popup works fine in Windows IE, Mac/Win Firefox just fine. It won't work in Safari. It shows as link, but when you click, nothing happens. Can anyone think of a reason why this wouldn't work?

It Is Possible To Pass A Value To Other .swf Files
Good day...

Any body help me...im stuck.

I have photo gallery i used one of the kirupa sample...

My problem is it s possible to pass a value to other .swf files?

Scenario is...

I have a group of pictures when i choose one of the pictures then click OK it will go to the other .SWF file.

How i will do that? that the pic that i click will be seen in the other .swf files?

Any tutorials, links or suggestion that can help me..

Your Help is greatly appreciated

Use Form To Query MySQL DB, Then Pass Data To Flash File?
Say I have a form (form.html) that asks for a login name and password.
It then queries a mysql db via php (login.php) and if there's a match, then the user is taken to a page (welcome.php) with an embedded flash file (hello.swf) in which it says Hello [username].

If I could get just that far, it would be great. I'm getting confused on a number of things but most notably what kind of text box I'd use in the flash file (dynamic or input) and what method to use pass the variable. I mean if I were doing this as a regular php page (Hello [username]) then I know how to print the name in the new page but I'm clueless when flash comes into play

Any Component To Generate PDF File From HTML Called From Flash?
I know about a few ASP components that have to be installed as .DLL in IIS.

Can any Flash componemt do the same?

I need to call a page with HTML code in the background (using loadvars) and generate a PDF file from the HTML in the called page.


Thanks

How To Make An Application Full Screen For Mac OS X That Are Called Through Html?
I made an application in flash MX 2004 which is called through an htm. I want to know, how to make an application full screen for Mac OS X. I had already tried fscommand("fullscreen", true); but doesn't seem to work on Mac.

So, what should be done to make the application full screen for Mac OS X that are called through an html? Hope someone could give me some idea.

Thanks in advance.

Pass Variable Between Swf Files
Hi there,

I know there are quite a few thread regarding this kind of issue. However, I couldn't figure it out how I accomplish the goal. So, here is what I need.

I have a main swf file called main.swf. I have an external child swf file called child swf. Those two swf files are all written in flash 9 and as3.

If a user click a button, child.swf will load. Until this part, I got it to work.
However, I have to pass variables from main.swf to child.swf. So, how do I pass variable from one swf to another swf and also how to receive those passing variables?

FYI: I want to pass variables through swfs not javascript or html.


Thanks for your input.

- port

How Can I Pass " Or ' Form Xml Files
hey i have a xml file that has " in the string.

but when i pass the string i'm lossing the ".

what can do to make sure that the " are displayed?

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