ActionScript 3.0 :: Php Variables - Call From The Player To The Xml File For Whichever Member Page Is Being Viewed

Jun 5, 2011

I have a flash mp3 player that lives in the root on my server, I have members on my site that each have their own folders which have an xml file in them for their uploaded mp3 files, my question is, how do I get as3 to call from the player to the xml file for whichever member page is being viewed, for example, if you were viewing members/profile.php?id=1, the player which is on the profile.php page calls to the playlist.xml file in the id folder '1' I know I can use the xml load function but how would I get the members/$id in there

View 4 Replies


Similar Posts:


IDE :: Write A Call To An Asp Page With Variables In The Url?

Jan 28, 2009

I'm working on my first flash ASP project and have a question about passing variables from flash to an asp page. Can I write a call to an asp page with variables in the url?

Code:
saveEntry_lv.sendAndLoad("save_student.asp?student_id="+userID+"&login_name="+loginName+"&password=&user_name="+friendlyName, saveEntry_lv, "POST");

It's not working and I don't know if it's because I've got something big wrong here or if the syntax is bad.

View 2 Replies

Actionscript 3 :: Get All Member Variables In Flash?

Apr 15, 2010

I am trying grab all the member variables in AS3, and then foreach one i would like to process it in various ways. I would need the name and then if it is a collection of some type I would like to loop through that collection as well. I am attempting to essentially serialize in a somewhat custom fashion.

View 2 Replies

Actionscript 3 :: Flex : Add Member Variables To Objects At Runtime?

Jul 7, 2010

I have an object of type sprite. I would like to add a new field in the sprite object without deriving the class.I tried to do

object.newField = 'value';

but it's not working.I need it because the Api expect that field in the sprite class.

View 2 Replies

ActionScript 2.0 :: Go To Previously Viewed Page?

Apr 14, 2010

I am creating an ebrochure, where in my timeline i have three layers: top bar (for my glossary and help buttons), nav bar (with my prev and next buttons) and the pages of the brochure.

The pages consist of each frame having a movieclip for that page, so frame one has page one movieclip, etc... and are all individual frames.

The top bar layer spans the entire set of page frames (14) as does the nav bar, but I have the glossary and help on frames after the pages end. What I am trying to do is that when someone clicks to go to the glossary from where ever they currently are, the prev button on the nav bar that is over the glossary page can take me back to the last page I was on. So, if on page 4 and click to go to glossary, prev takes me back to page 4. But if i am on page 7, prev takes me back to page 7.

View 2 Replies

ActionScript 3.0 :: Track Time A Page Is Viewed?

Jan 11, 2011

Is there a way in which to track the time a Flash page is viewed? For instance, once the page loads, a timer begins. When the user moves to a different page, the timer is stopped?

View 2 Replies

ActionScript 3.0 :: MP3 Player - Getting Error When Not Viewed Locally

Apr 6, 2010

I am a as3 nub but basically when I view locally I have no issues... When I view over a network I get an error like:
TypeError: Error #1009: Cannot access a property or method of a null object reference.

I am calling this mp3 player from inside another movie...
PHP Code:
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.addEventListener(Event.COMPLETE, showXML);
xmlLoader.load(new URLRequest("playlist.xml"));
var trackList:Array = [];
var bandList:Array = [];
var fileList:Array = [];
var MusicLoading:URLRequest;//File Request
[Code] .....

View 2 Replies

Navigate Already Viewed Page Only Shows Last Frame Of Slide?

Sep 26, 2006

I am creating a website using the slide presentation template. However, when I navigate to a page I have already viewed, it only shows the last frame of the slide rather than starting from frame 1 of the slide. Is there I way I can tell button to go to a slide and play from frame 1 regarless of how many times the slide has been viewed?

View 6 Replies

Actionscript 3.0 :: External Swfs Won't Load When Viewed From Html Page

Nov 20, 2009

I have a html page with a flash element. The flash element loads in an external swf. This works fine when I'm testing from the swf, but when I test from my HTML page the external swf doesn't seem to load into my main swf.

I have all my swf's in a folder called "swf". The HTML document is at the root level. In my main swf the actionscript for loading the external swf is:

[Code].....

Some how the path to the external swf gets lost. I've tried new URLRequest("soundComponent.swf"); as well. And like I said, this all works from the swf, just not when viewing from an HTML page.

View 1 Replies

SendAndLoad (Text File) To Call PHP Page With Flash?

Apr 13, 2009

How can I use sendAndLoad to call a php page with flash, and have that page create a user download box, to save a txt file? I have the php code that outputs a text file:

Code:
Header('Content-Type: application/octet-stream');
Header('Content-Disposition: attachment; filename=test.txt');
// Print the text to be sent
echo "hi";

That would force a download box if you ran the php page but the send and load will not get it to work.

View 3 Replies

Retrieve / Call Html Page From .swf Flash File?

Jun 20, 2009

above.the .swf is already embedded in html page. and i have couple of buttons from .swf file and how do i call call the html page with the button inside .swf file

View 7 Replies

Javascript :: Call A Function In An External File From The Main Page?

May 15, 2010

I'm loading from my main page an external js file, with a function.

I have a flash file in the main page invoking the javascript function.

Everything worked very well until when the javascript code was in the main file, but when I moved javascript to an external file the function seems not called anymore.

So... there is no way to move the javascript code to an external file ? Or any other solution ?

[Code]...

View 3 Replies

ActionScript 3.0 :: Call A Javascript Function From Within An Embeded Swf File In A Html Page?

Mar 1, 2010

i want to call a javascript function from within an embeded swf file in a html page and i'm using the ExternalInterface class. i know this function must be defined in a <script> tag in the html page. however, i want to have all my javascript code in an external file, but it doesn't work. my trial file just can't find the function, although i have my external js file linked in the header.

View 3 Replies

ActionScript 2.0 :: Add Creating Custom Player And To Use Flashvars In File And Call It Dynamically In PHP

Oct 9, 2009

I m passing variable/ file name in html/ php like this

[Code]...

I m creating custom player and want to use flashvars in AS2 in my file and call it dynamically in PHP. this is how i m calling the mp3 file

[Code]...

View 0 Replies

ActionScript 3.0 :: Call Root Level Function And Variables From External Loaded Swf File?

Jul 15, 2010

I have small issue in as3.  I am load "mainmenu.swf" file into "main.swf". through loader class. so now "main.swf" is parent "mainmenu.swf" file children how can call "main.swf " variable & function from "mainmenu.swf" .

View 2 Replies

ActionScript 2.0 :: Make A Player(i Call It Professor) Class Held In An External .as File?

Oct 6, 2003

I'm building a game in which I have different player objects which will behave differently. I want to make a player(i call it professor) class held in an external .as file. I need to be able to assign onEnterFrame attributes in for this class in the external .as file and I'm encountering some difficulties. here is my .as file

//professor constructor
_global.Professor = function ( skin, thrust, decay, maxSpeed )
{
this.skin = skin;

[code]...

The constructor is working fine, along witht he getSkin function, but I can't get the onEnterFrame function to work. It is my understanding that once I instantiate an instance of the Professor class that the onEnterFrame function should kick over and start sending my trace statement to the debugger at the current frame rate.

ps. here is the code in my .fla

#include "Professor.as"
playerOne = new Professor("mathews");
playerOne.getSkin();

View 1 Replies

Actionscript 3.0 :: Dispatched By The Member Of An Object - Access The Object Containing That Member?

Jun 22, 2010

I'm trying to set up a menu. Because this menu can have a varying number of entries, I'm generating it instead of hard-coding it. The Menu object contains an Array of MenuEntry objects, and each MenuEntry has a framework.Button object which contains the text and box that actually gets drawn to the screen. I can add a MouseEvent.Click event to the Button, but not the MenuEntry. If I do it that way, though, I'm unable to access the data in the MenuEntry object that contains the button, so I don't know which MenuEntry was clicked.

The only solution I can think of involves checking the mouse position against the position of each MenuEntry, depending on the number of Menu Entries. This does not seem like the right way to do it, though, as it is not scalable. I tried having the MenuEntry class extend the Button class, so theoretically, the MenuEntry itself could dispatch mouse click events, but that didn't work.

View 1 Replies

ActionScript 3.0 :: Target The Parent Container Of Whichever Object Receives An Event?

Sep 28, 2010

how I can target the parent container of whichever object receives an event?

Code:
Parent1.btnA.addEventListener(MouseEvent.CLICK, doSomething);
Parent2.btnA.addEventListener(MouseEvent.CLICK, doSomething);
Parent3.btnA.addEventListener(MouseEvent.CLICK, doSomething);

[Code].....

View 1 Replies

ActionScript 3.0 :: Call Cleanup Function On Reload Of Page / Relode Of Swf Or Change Of Page

Nov 15, 2011

I have an swf loaded in a browswer (fire fox) and i use log on console using [code]I have initialized my swf in the document class on the Event.Added to stage.and i have a clean up function performing all the clean up/exit process in the code on the event [code]Now Doubt that this is being called/ activated/trigered as i am not able to log the start and end of the function to the console.The console log is of firebug.What exactly am i missing here? I would like to call the cleanup function on reload of page or relode of swf or change of page.How do i trigger and log it properly

View 1 Replies

ActionScript 1/2 :: Track Scenes Viewed And Display Image A Or Image B Based On Scenes Viewed

Feb 26, 2011

I have an interactive story divided into scenes. At the end of each scene a button appears. This occurs on a frame on the timeline.
 
There are two different buttons that might appear based on whether a prior scene has been viewed or not.
 
For example, there are Scene_1 and Scene_2. At the end of Scene_2 one of two buttons will appear. The buttons will be either "Go see Scene_1" or "Return to Main Menu".
 
If the user has already seen Scene_1, Flash will know that and automatically go to the frame in Scene_2 that contains the button "Return to Main Menu".
 
Conversely, if the user has not seen Scene_1, Flash will know and automatically go to the frame in Scene_2 that contains the button "Go see Scene_1".
 
I imagine there would be an action frame at the end of Scene_2 that will contain the as2 code to enable this action.
 
Perhaps something like, but probably not at all like the following:
 
if ("Scene_1", last frame == true){gotoAndPlay("frame#");}else{gotoAndPlay("frame#");}

View 1 Replies

ActionScript 2.0 :: Load A Different Page For The Flash Player To Scroll Up All The Way To The Top Of The Page Itself?

Apr 25, 2007

Im working on a website for school, and im doing it through flash. The server ive been given is being taken up by thousands of pages, so its slow. Instead of loading each page through HTML, ive decided i could do a seperate frame for each page. However, to reach the menu at the bottom, you have to scroll down. Is there any way to make it so that when you click a button to load a different page for the flash player to scroll up all the way to the top of the page itself?

View 1 Replies

Actionscript 3 :: Pass Variables From One Page To Another Page?

Dec 8, 2010

How to pass variables from one page to another page in ActionScript? I got some solution that this can be done using CustomEvents in ActionScript, but i couldn't found understandable and easy solution. explain how to pass variables with a small example?

View 3 Replies

ActionScript 2.0 :: Import Some Variables From A Txt File And Treat Them Like Normal Variables In Fla File?

Oct 27, 2009

How can I import some variables from a txt file and treat them like normal variables in fla file? something like in txt file

Code:

&variable1=2&
&variable2=8&

[code]...

View 2 Replies

AS3 :: Call Php Page With Javascript In It?

Mar 16, 2012

I'm trying to call a php script/page that has some javascript calls in it, from AS3.
I'm using the regular

var varSend:URLRequest=new URLRequest("http://my_www/script.php");
varSend.method=URLRequestMethod.POST;(...)

My php page has some javascript. The php passes some variables obtained in POST to my JS script, which connect to a 3rd party app. Now my problem is, i can call the script from AS3 without any problem, but when i do so, it seems like the JS is never running. My question is, if you call a php script/page in POST from flash, is the JS embed in that page running ??

View 1 Replies

ActionScript 2.0 :: Call Different Mc's Through Variables?

Oct 17, 2002

I have a function that works great. All excep the inefficient way I have to do if checks just to change a movieclip name.

People = function(num) {
if (num ==1) {
Person1._x = lft_rght;
}

[Code].....

View 3 Replies

Professional :: Call A Page From An Added One?

Oct 22, 2010

I'm creating a website, on the stage I've got a menu and a movieclip which I use to show my pages, the movieclip's name is pagecontainer_mc.Each page is an exported class for AS3.When I click on a button on the menu, with removeChildAt() and addChild() I remove the current page and show the requested one.Everything ok with this.The problem comes when I need to call a page not from the menu, but from a button inside another page.I've tried writing this code on the main timeline:
 
var contacts:contatti = new contatti;
pagecontainer_mc.contacts_btn.addEventListener(MouseEvent.CLICK,showCo ntacts);
function showContacts(e:MouseEvent):void {        pagecontainer_mc.removeChildAt(1);    pagecontainer_mc.addChild(contacts);    }

[code]....
 
If I put the code inside the page's timeline I can't access to pagecontainer_mc (or at least I'm not able to do that).

View 3 Replies

ActionScript 3.0 :: How To Call Parent Variables

Jul 13, 2010

var some="someone" some main.swf. mc:MovieClip.mc in main.swf. Iam load a mainMenu.swf file into mc. how can call some variable in mainmenu.

View 1 Replies

ActionScript 2.0 :: Call Variables From PHP To Flash?

Apr 30, 2010

This game I'm working on, requires Flash to call variables from PHP. The thing is, each PHP file is generated so that it has a unique ID. How do I tell flash to call these variables, each time a new PHP file is created (which carries the same information)?

View 1 Replies

Jquery :: Call A Page Inside A Div With Flash?

Feb 18, 2011

I need to call a page inside a div, but with flash. I have this script on my page:

$('#bt_aoptica').click(function () {
$('#my_site_content').load("aoptica.html");
$("#menu ul li a").not(this).removeClass("currentMenu");[code]....

and this works perfectly with my menu.How i call this with actionscript 2??

View 1 Replies

ActionScript 3.0 :: Call A HTML Page Into A Movieclip?

Sep 20, 2009

I have a html form of google docs. I collect information using it and google docs is great for me. Gives me excel output and this is what I need..

By the way, I need to use that form on my swf file in a movieclip. is it possible or not?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved