Load Swf's Depending On URL Parameters?

Jul 16, 2009

I need to load a SWF depending on a parameter in the URL ... how do I do in order to make flash recognize the RUL parameters? For example, I want that: [URL] load the index.php with an animation for utah, [URL] load the index.php with an animation for texas, and so on... how do i achieve this?

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Making A Normal LoadVars.load Load Url Depending On A Variable

Jun 7, 2005

Is there a way of making a normal loadVars.load load a url depending on a variable you set in the swf?

var reciever = new LoadVars();
loadurl = "test_onload_3.cfm?propertyID="+MY_VARIABLE_GOES_HERE;
reciever.load(loadurl);

so that I can set my variable and then load the variables with the propertyID that I choose in the swf??

View 4 Replies

ActionScript 2.0 :: Load Swf Depending Of The Hours Of The Day?

Oct 18, 2005

i want to have an swf loaded between 8am and 6pm and another one between 6pm and 8am. How can i do that? i guess it's not very hard but i don't get it. i suppose i need a variable with the hours. then do a if statment that check if the current hours is between 8am and 6pm. then if it's between this time do this if not do that..

View 8 Replies

ActionScript 2.0 :: Load Xml Data Depending On Instance Name?

Nov 7, 2011

I have a MC which when user presses a button slides onto the screen. Within this MC is a number of buttons, with names like 'btn1', 'btn2' etc.I have already searched around and found a tutorial which shows me how to load images from an XML file.What I'd like to do is for each button in the MC, find the corresponding XML element and then load those images, then move onto the next button, until they are all done.So I'd imagine the XML would be something like:

Code:
<images>
<btn1>

[code].....

View 14 Replies

ActionScript 3.0 :: Load Different Swf Files Depending On Button?

Apr 13, 2009

im starting to get the hang of 3.0 now.. but i have a little problem loading different swf files related to witch button i click..
 
everything works just fine. when clicking on a button the movie plays and its listening for the end of each video playing.. but i cant get it to load different swfs depending on witch button is clicked. is it possible to do this using the same loader as i do now?
 
heres my code:
 
var compact:String = "axesse_mc.swf";var compactreq:URLRequest = new URLRequest("axesse_mc.swf"); 
var loader:Loader = new Loader();loader.load(compactreq);

[Code].....

View 3 Replies

ActionScript 2.0 :: Load An Xml Data Depending On Which Buttons Are Selected?

Apr 4, 2011

Preloader hanging / freezing with "hiccups"I'm trying to do the following. I have a menu with 11 buttons and a xml. The user can select multiple buttons and depending on which buttons are selected it will be loaded images of the xml corresponding to the selected buttons.

The menu have to works as follows, for example, if I select the button 1, will be loaded X images, if I select the button 1 and 5, will be loaded X + Y images, if I select the button 1, 5 and 9 it will be loaded X + Y + Z images.

View 2 Replies

Actionscript 2.0 :: Load A Xml Data Depending On Which Buttons Are Selected?

Apr 4, 2011

I'm trying to do the following. I have a menu with 11 buttons and a xml. The user can select multiple buttons and depending on which buttons are selected it will be loaded images of the xml corresponding to the selected buttons.

The menu have to works as follows, for example, if I select the button 1, will be loaded X images, if I select the button 1 and 5, will be loaded X + Y images, if I select the button 1, 5 and 9 it will be loaded X + Y + Z images.

View 1 Replies

ActionScript 2.0 :: Load Order Varies Depending On Bandwidth?

Aug 11, 2006

I have a small gallery that loads thumbnails and the links they represent from an xml file. When I test it gallery on my computer everything works fine. However, when I simulate a download or when I upload to an actual site things start going wrong.[URL]I modified what i needed too and reused the rest. Everything works fine except for that the load order of the thumbnails is reversed. I haven't really changed any part of the code that would cause this, or at least I don't think I have.

The real problem, however, is that when i simulate a downloaded version or when upload them to my test site, the position of the thumbnails are swapped. A thumbnail i expected to load in a certain place and order has now taken the place of another one. When clicking a thumbnail it displays the picture of the thumbnail that should actually have been there, so the links still load in the correct order.When i change the simulated bandwidth while testing the movie, the position alter. At one bandwidth they show up in a certain order and when then trying out another bandwidth the order changes.

The XML load function:

Code:
function loadXML(loaded) {
if (loaded) {
var xnRootNode:XMLNode = this;
//trace( xnRootNode );

[code]....

View 3 Replies

ActionScript 3.0 :: Load An Image Or Clip To Stage Depending A Variable?

Jun 11, 2010

Is it possbile to make 'bumblebee' a variable?
 
var mybee:bumblebee = new bumblebee();

View 5 Replies

PHP :: Load SWF Into Another And Retain URL Parameters?

Mar 11, 2011

I am using php to read a file (specified by a cookie on the users machine) with the function readfile(). The file I am reading is an actionscript 3 flash file that depends on a configuration file appended to the url to function properly. Ex: [URL]. When I use readfile - the headers are set properly and the swf is returned to the browser which then runs it. I have discovered that using this method the config file (CONFIG_URL) has to be appended to the php file's url to be read properly by the swf - as the swf considers the path to the php file it's own. This is fine when these are the only two elements involved - but when loading the php>read(swf) combination into another swf - the 'read' swf returns a url that is null (using this.root.loaderInfo.url) and therefore fails to execute properly as there is no config file (CONFIG_URL). How can I load in a swf file from a php page (using readfile, fopen, whatever) and pass in $get parameters?

View 1 Replies

ActionScript 2.0 :: Load Movie - Set The Parameters Of A Smaller Mc To Be Placed On Top Of A Larger Mc

Jul 20, 2002

How can I set the parameters of a smaller mc, to be placed on top of a larger mc, and not have the active ingredients (such as some random floating objects) roam outside of the smaller mc? The problem I am having at the moment, is my objects will not stay inside the smaller mc, but instead, roam all over the larger mc below it. So I'm thinking I need to set up some solid parameters for the smaller mc. I was up late, late last night on all sorts of actionscript boards, and still haven't found the answer. I am using flash 5, and the small mc is, once again, on TOP of a larger mc.

View 3 Replies

Actionscript 2.0 :: Load External .swf Using LoadClip Method With Additional Parameters?

Apr 26, 2009

can anyone tell me how to load external .swf using loadClip method with additional parameters?[code]

View 3 Replies

ActionScript 3.0 :: FLVPlayback Source With Query Strings (parameters) Doesn't Load

Aug 31, 2010

I'm currently trying to use the FLVPlayback component and pass a source FLV that's living on a cloudfront webserver. The problem is that the cloudfront requires authentication in the form of query strings in the source FLV. For example:[code]It adds on "&FLVPlaybackVersion= 2.1" to the end.I saw a different article that said I should add a dummy variable at the end like "&dummy=.flv" because I was told that Flash is basically looking for an .flv extension at the end and you can trick it, but it doesn't work because they add on additional code.

View 9 Replies

Flash To Detect User's Bandwidth / Depending Size Of Bandwidth / Stop Loading / Continue With Load?

Nov 24, 2009

Is there a way for flash to detect a user's bandwidth, and depending the size of bandwidth, stop loading, or continue with the load? Now that I'm thinking about it, this would probably be a javascript detection script and if the bandwidth is high, load .swf, if not load a .jpg?

View 3 Replies

Animation Scroll Up And Down Depending On YMouse

Jun 9, 2009

I am currently using the code below on a scroll that can go up and down depending on the ymouse. The problem I am having is that when the movie loads through html it will not scroll until you mouse over it. It's like the movie is paused. If I remove the onEnterFrame it scrolls fine without issue but the rest is broken and it basically does nothing but scroll. I do not have it checked to pause at start. It does preview fine within a flash preview.

_root.onEnterFrame = function() {
if (_root._ymouse<50) {
scroll.prevFrame();
scroll.prevFrame();
scroll.prevFrame();
scroll.prevFrame();
[Code] .....

View 10 Replies

ActionScript 2.0 :: Components Depending On The Value Of Certain Info

Oct 13, 2010

what is the best way to conditionally display a component? I have a dropList providing info to other parts of my code but i would like to display certain components depending on the value of certain info

View 1 Replies

Professional :: Play One Video Or Another Depending On OS?

May 21, 2010

I don't know how you solve the Gamma issues for users using PC and Mac. The thing is I have a video with the flvplayback component. Is it possible to, depending on the OS (the only way that I think of knowing if that person is using PC or Mac), have it pick a video or another (which would be the same but with different Gamma.

View 1 Replies

ActionScript 3.0 :: Play One Video Or Another Depending On OS?

May 21, 2010

I don't know how you solve the  Gamma issues for users using PC and Mac. The thing is I have a video  with the flvplayback component. Is it possible to, depending on the OS  (the only way that I think of knowing if that person is using PC or  Mac), have it pick a video or another (which would be the same but with  different Gamma.

View 16 Replies

Django :: Manipulate My Flash Depending On A URL?

Nov 8, 2009

I have a flash map of the UK which is divided up into the counties, a user clicks on a county and is then directed to a new url, eg. [url].... The flash map remains on that new page in case they wish to select a new region.

What I want to know: is it possible to manipulate the flash so that if the [url]...then london remains highlighted on the flash map. I presume I will have to use some AS which is fine as long as it is AS3.

View 2 Replies

Flash Loading A Slide Depending

Feb 2, 2011

Is there any way to show a certain slide in flash CS5 depending on what day of the week it is? Say for example its Monday the flash file on load will show a slide designed for Monday.

View 1 Replies

ActionScript 3.0 :: Call Override Depending On What Value A Var Has?

Nov 11, 2009

Is there any way to call the override depending on what value a var has?[code]...

View 4 Replies

ActionScript 2.0 :: Fade In/ Out Depending On Location?

Mar 2, 2010

I am looking for a way to fade in and out a movieclip when you are at the location of the container (where the external swf is loaded) or around the container (margin) but i cant get it to work as i would like to.example of my goal is:if location _x = 1600 (with a marging of 200px) and location_y = 0 (with margin of 200px) container.about is tween alpha 20 to alpha 100else container.about = alpha 20i have a simple script that i can put in every container mc but this worksonly within the size of the movieclip and works on de position of the mouse on the screen, so actually not what i want. Here it is:

Code:
onClipEvent(enterFrame){
if ( this.hitTest(_root._xmouse,_root._ymouse,false)){

[code].....

View 3 Replies

ActionScript 2.0 :: Show Different Content Depending On Day?

Mar 31, 2012

I am setting up a small community, online based Radio Station where it shows a section for the schedule. I would like this schedule to show different listings, depending on what day of the week it is.

I am fairly new to ActionScript, therefore I do not yet understand the syntax properly and understand ActionScript 3.0 would be easier for myself to learn first, however my movie is quite big as it is and unless I can convert it to ActionScript 2.0 I'll need to learn how to do this.

View 8 Replies

ActionScript 2.0 :: Images Depending On Time?

Feb 7, 2004

what i want to do is create a site that knows what the time is in your area via your pc clock hopefully and depending on the time puts a different background image up e.g. night time = night picture daytime = sunny daytime pic

View 8 Replies

ActionScript 2.0 :: Change Sky Depending On Time?

Aug 24, 2006

changing a colour of something depending on the time on the system of the user?

View 14 Replies

ActionScript 2.0 :: Resizing A Mc Depending On _y Position?

Oct 25, 2006

I've used the random motion tutorial, and got that working. Now i'd like things to resize themselves depending on where they are on the screen.. For example, if its at the very top, its 75% and if its at the bottom, 125%.

Code:
minsize = 75;
maxsize = 125;
dancerSize = _y;

[Code].....

View 4 Replies

ActionScript 2.0 :: Enabling A Movieclip Depending On It's Name?

Nov 28, 2006

I'm creating a christmas calendar in flash, where naturally the movieclips representing days should be activated based on the day of the month.

I'm successfully passing the variable to flash in PHP ( I know because I used a textfield to see if the variable existed.) Then, in a external .as that is loaded after the variable is accepted I have the following code.

Code:
for(var i:Number =1; i< dagens; i++){
aLuker[i] = eval("nummer"+i);
aLuker[i].onRelease = function():Void {

[Code]....

This code is supposed to enable the clips "nummer1, nummer2, ... nummer24". I know that the aLuker[i] = eval("nummer"+i) assignment of the movieclips is correct, as I use the same method earlier in my script to set the text in a textfield inside the movieclip.

What actually happens is that although the variable exists in Flash (as a _global even) flash ignores it and enables all the movieclips.

View 1 Replies

ActionScript 2.0 :: Pointing To A Scene Depending On URL?

Apr 7, 2008

I've developed a quick video player that pre-loads, auto-plays and then finishes with a frame at the end that allows the user to play the video again, but a recent discovery is that the video reloads as a user browses through a few fields on the site (represent via string at the end of the URL).

What I'd like is that if you arive at index.aspx it starts the video at the preloader, but if you then move onto index.aspx?ID=1234 it goes straight to the scene with the replay function. The AS I'm using at the moment in the first scene is:

if (_url == "http://www.mydomain.com/index.aspx") {
gotoAndPlay("Preloader", 1)
} else {
gotoAndPlay("Replay", 1)
}

but I'm getting nothing from it.

View 3 Replies

IDE :: Clips Movements Depending On Another Clip

Jan 24, 2009

I am working on an interactive guide with some sort of different maps that are supposed to move together depending on where you are if that makes any sense...well no it doesn't. ok the main clip pans side ways on mouse move using a tutorial from this website. And when this clip slides along x up to a certain point, I need to get two other clips to also slide to a precise point depending on the first one position, one only along x and the other one on both x and y. OF course i also have to set several key position on the mainclip to mave the two clip at a different place each time the main clip reaches a different point. For now I have been trying things using mc_tween2 like that:

[Code]...

View 2 Replies

ActionScript 2.0 :: Different Frame Numbers Depending On The Variable?

Mar 25, 2009

I am having problems with this if else statement. I have a variable (frame number 30) passing into my swf from another swf. This I know is working correctly.

But - I need to be able to direct to different frame numbers depending on the variable, this is working.

But when I place this code:

[Code]...

View 2 Replies







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