Cue Points In Parameter - External FLV
Hi, I have an external video streaming through the built in FLY playback component. I have put a cue point in using the parameters dialog in the property inspector of the component, but I can't figure out how to do anything with it.
Once I have put the cue point in, at say 5 seconds, how do I access it? None of the code I have seen referenced here, on Adobe, or anywhere else discussed how to use this built in feature of the component inspector. I don't want to add cue points to the actual videos, because I didn't create them and don't have access...I don't want to write crazy cue points in actionscript, when the component inspector clearly has a dialog box for the time and placement of cue points...so how do I just call an action when a cue point is triggered? i can't figure this one out, thanks! -
r
FlashKit > Flash Help > Flash ActionScript
Posted on: 09-28-2007, 10:16 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Load External Swf With Url Parameter?
I want to load this url "http://www.testing.com/testing.swf?user=testing&site=tester&type=compact" into another swf.
Tried this
on (release) {
loader.loadMovie("http://www.testing.com/testing.swf?user=testing&site=tester&type=compact" );
}
But not working...
Can anybody help?
How To Load External Swf With Url Parameter?
I want to load this url "http://www.testing.com/testing.swf?user=testing&site=tester&type=compact" into another swf.
I've tried this code but it is not working.
on (release) {
loader.loadMovie("http://www.testing.com/testing.swf?user=testing&site=tester&type=compact" );
}
Can anybody help me?
Controling The Timeline From External Parameter
I have a simple flash menu. It has 4 sections, and each section has a sub section. It is on one timeline. Is there away to put a parameter in the HTML code, so it will say, load the Flash Menu, and then goto and stop at a certain frame? One timeline, no movie clips are involved. Is this done by putting a the parameter in the URL?
Passing Parameter To .exe File (external)
Hello ever one, it's been a very long time. i'm glad to be back.
guys i have a question, if anyone could help i would be more than thankfull.
here it is:
I have a .exe file (it is a player) i need to pass a parameter to this player so it could play a specific file ( the parameter is the name of this specific file ).
now what i do in windows is
Start>run ( <full-path-to-.exe-file><space><parameter> )
now that works perfictly on windows.
what i need is to be able to start this application ( the player ) and pass the parameter to it, all through a flash button (from the flash player )
I think i made it as clear as possible. I need help in this guys, so please do...
thx
ExFuSiOn
Passing Parameter To .exe File (external)
Hello ever one, it's been a very long time. i'm glad to be back.
guys i have a question, if anyone could help i would be more than thankfull.
here it is:
I have a .exe file (it is a player) i need to pass a parameter to this player so it could play a specific file ( the parameter is the name of this specific file ).
now what i do in windows is
Start>run ( <full-path-to-.exe-file><space><parameter> )
now that works perfictly on windows.
what i need is to be able to start this application ( the player ) and pass the parameter to it, all through a flash button (from the flash player )
I think i made it as clear as possible. I need help in this guys, so please do...
thx
ExFuSiOn
Start A Movie With A External Parameter I Need This URGENT
Hey there,
I am desperated!
I need to know how to start a flash movie, passing a external parameter from a HTML code.
For example, imagine I have a movie and I need to start it with greetings to the user, using his name: "Hello, John Doe! How are you?"
I tried to pass the parameter using querystring, just like that
<PARAM NAME=movie VALUE="test.swf&name=JohnDoe">
but it did not work, because the movie stays opening for ever and ever and ever and... never starts! I think that's because the computer keeps trying to open a flash movie named test.swf&name=JohnDoe instead to open a movie named test.swf with a passed parameter name=JohnDoe.
I think it's weird because it would must work, wouldn't? Or not?
If anyone have any idea about how I can do that (call a flash movie and pass a parameter at the same time), I would apreciate a lot for this help.
THANK YOU VERY MUCH!!!!!!!!!!
Yan
Component Loader & External Swf : How Send Parameter ?
hello all,
I have a simple problem I have not been able to solve.
I use a compnent loader to load an external swf.
I need to pass a parameter to the swf to make it run properly, which I named 'url_xml' and in which I provide the name of an XML file.
the component loader is named 'diaporama'.
the following code works :
_root.diaporama.contentPath = "my_swfplayer.swf";
BUT I need to send a parameter, so I tried :
_root.diaporama.contentPath = "my_swfplayer.swf?url_xml=filexml.xml";
It does not work. It tries to load a file named my_swfplayer.swf?url_xml=filexml.xml
instead of loading my_swfplayer.swf with the param url_xml whose value is filexml.xml.
Can somebody help ?
Many thanks.
Loading External Image Based On Parameter
Hi,
I am a VB developer and maintain a intranet site for our HR department. The tutorials in this site are simple and elegant and effective. I learned a lot from this site. Now I want some thing which looks critical to me hence I though of taking help of the forum.
I have a "meet your colleague" page. HR wants to protect the photos. I am using the employee IDs to name the photos. I can restrict the right mouse click on the page. But a little tricky user can view the source and can get the path for the photo and image file name and take it away. Hence I though of using flash as it has been used in slideshow example.
I will pass the employee ID as parameter to the movie (e.g. photo.swf?E0001 if this is the right way). The movie will load the image from the predefine path. It should check for the extension like .jpg, .gif, .png, if there is an error loading the image file it should display “no photo yet” or similar message.
Please guide me how I can do it in kirupa way.
Thanking you,
Pranab
Loading External Image Based On Parameter
Hi,
I am a VB developer and maintain a intranet site for our HR department. The tutorials in this site are simple and elegant and effective. I learned a lot from this site. Now I want some thing which looks critical to me hence I though of taking help of the forum.
I have a "meet your colleague" page. HR wants to protect the photos. I am using the employee IDs to name the photos. I can restrict the right mouse click on the page. But a little tricky user can view the source and can get the path for the photo and image file name and take it away. Hence I though of using flash as it has been used in slideshow example.
I will pass the employee ID as parameter to the movie (e.g. photo.swf?E0001 if this is the right way). The movie will load the image from the predefine path. It should check for the extension like .jpg, .gif, .png, if there is an error loading the image file it should display “no photo yet” or similar message.
Please guide me how I can do it in kirupa way.
Thanking you,
Pranab
External Cue Points
Hi,
I was hoping that someone could help me out with this. I have a SWF that plays a FLV with actionscript cue points that when the cue point is reached the timeline plays. I need the cue points variables (the timecode) to be loaded from a text file because non Flash users will be adding content. The problem is that I can get it to work with putting the variables in the actionScript. But if I load the variables from the text file the playhead will not play with the cue point is reached. Below is the code that I am using.
Thanks in advance.
Attach Code
loadtextContent = new LoadVars();
// Load the text file into my movie
loadtextContent.load("cuePointList.txt");
loadtextContent.onLoad = function(success) {
if (success) {
cuePoint0 = this.cue1;
cuePoint1 = this.cue2;
cuePoint2 = this.cue3;
cuePoint3 = this.cue4;
cuePoint4 = this.cue5;
// Create cuePoint object.
var cuePt:Object = new Object();
cuePt.time = 0;
cuePt.name = "elapsed_time";
cuePt.type = "actionscript";
// Add AS cue point.
//myVideoPlayback.addASCuePoint(cuePt);
// Add Cue Points.
myVideoPlayback.addASCuePoint(cuePoint0, "elapsed_time0");
myVideoPlayback.addASCuePoint(cuePoint1, "elapsed_time1");
myVideoPlayback.addASCuePoint(cuePoint2, "elapsed_time2");
myVideoPlayback.addASCuePoint(cuePoint3, "elapsed_time3");
myVideoPlayback.addASCuePoint(cuePoint4, "elapsed_time4");
myVideoPlayback.addASCuePoint(cuePoint5, "elapsed_time5");
}}
// Display cue point information in text field.
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject) {
play();
};
myVideoPlayback.addEventListener("cuePoint",listenerObject);
Cue Points For External SWF (not FLV)
Hi.
I've been searching all over, but I can't find info anywhere, so I'm turning to you guys.
You may be familiar with the FLV-playback component and the cue point functionality. Cue points can be added through Actionscript using the addASCuePoint(). This is very useful when loading an XML-file with captions for the FLV-video.
Here is my problem; I don't have an FLV-video, but I have a SWF-clip. The SWF is loaded into a movieclip-placeholder. From a technical perspective, I don't understand that there can be any problem adding cue points to a SWF instead of an FLV. But this must be done in another way than the one mentioned above.
Do you have any suggestions on how to acheive this?
All thoughts will be greatly appreciated.
Cue Points Of External FLVs
Is it possible to listen for the Cue Points from an attached FLV video?
On the stage, I have a video object with a reference name myVideo. this object attaches external video files. Based on a tutorial on basic Flash video, I used the following code to load an external FLV:
Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
myVideo.attachVideo(ns);
This works great since I can load multiple video files without having to embed them to the main SWF.
However, each of the external FLVs have Cue Points that trigger events on the main SWF. The main SWF listens for these Cue Points using code based on Macromedia's online help:
Code:
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
trace("Elapsed time in seconds: " + myVideo.playheadTime);
trace("Cue point name is: " + eventObject.info.name);
trace("Cue point type is: " + eventObject.info.type);
}
myVideo.addEventListener("cuePoint", listenerObject);
This will also work IF myVideo were an embeded file. But in this instance, myVideo is only a placeholder that calls the other files.
How do I listen for the Cue Points of the loaded external files?
Thanks for any tips and ideas!
Cue Points And External Swf File
I have a project that involves a 3 minute video (avi) and a Flash quiz. Once the video is done playing, I need it to load/play my flash quiz without the user clicking a link.
I'm not doing a great job making this work. I created a new Flash 8 doc and imported my vid and set a cue point for the end of the movie. My idea is once the cue point hits the end of the movie, load quiz.swf.
The cue Points are:
Name Time Type
end 00:03:34.643 Event
Parameters for "end"
Name Value
quiz pass
The action script is:
var vidList:Object = new Object ();
vidList.cuePoint = function(cues) {
pass.loadmovieNum("quiz.swf", 0);
}
vid.addEventListener("cuepoint", vidList);
Am I way off base on this? I'm willing to credit a paypal account if you can make this work. Thank you.
Using External XML To Add And Set Parameters For AS Cue Points. - AS3
Hi there. I am trying to use external xml to set cue point times (for video), titles, and other parameters. I have everything set up, except getting the proper data from the xml file to set the parameters for my cue points. I am researching hard and learning quickly - at this point, I need help. Thanks!
Using External XML To Add And Set Parameters For AS Cue Points.
Hi there. I am trying to use external xml to set cue point times (for video), titles, and other parameters. I have everything set up, except getting the proper data from the xml file to set the parameters for my cue points. I am researching hard and learning quickly - at this point, I need help. Thanks!
Bullet Points, Using External Txt And Css
i was wondering if anyone out there knew how to create a bullet point using an external text file with the using css. i used this tut http://www.kirupa.com/developer/mx2004/cssfile.htm and now im stuck when trying to create a bullet point like this;
like
these
points
here
<---
thanks
Bullet Points, Using External Txt And Css
i was wondering if anyone out there knew how to create a bullet point using an external text file with the using css. i used this tut http://www.kirupa.com/developer/mx2004/cssfile.htm and now im stuck when trying to create a bullet point like this;
like
these
points
here
<---
thanks
External Flv With Embedded Cue Points
http://theflashblog.com/?p=78
I am wondering how he archived this?
--------------------------------------------------------
I tried the same;
I load in an external flv with embedded cuepoints.
I can read those cuepoint out with this script:
Now i am wondering how to tell flash when to launch an action on a cuepoint.
Somebody got some tips for me?
Thnx in advanced.
Code:
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
var stream_ns:NetStream = new NetStream(connection_nc);
stream_ns.onMetaData = function(metaProp:Object) {
//trace("The metadata:");
traceMeta(metaProp);
};
my_video.attachVideo(stream_ns);
stream_ns.play("myVideo.flv");
function traceMeta(metaProp:Object):Void {
var p:String;
for (p in metaProp) {
switch (p) {
case "cuePoints" :
trace("cuePoints: ");
//cycles through the cue points
var cuePointArr:Array = metaProp[p];
for (var j:Number = 0; j<cuePointArr.length; j++) {
//cycle through the current cue point parameters
trace(" cuePoints["+j+"]:");
var currentCuePoint:Object = metaProp[p][j];
var metaPropPJParams:Object = currentCuePoint.parameters;
trace(" name: "+currentCuePoint.name);
trace(" time: "+currentCuePoint.time);
trace(" type: "+currentCuePoint.type);
}
break;
default :
//trace(p+": "+metaProp[p]);
break;
}
}
}
Cue Points Of External FLVs
Is it possible to listen for the Cue Points from an attached FLV video?
On the stage, I have a video object with a reference name myVideo. this object attaches external video files. Based on Lee's tutorial on basic Flash video, I used the following code to load an external FLV:
Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
myVideo.attachVideo(ns);
This works great since I can load multiple video files without having to embed them to the main SWF.
However, each of the external FLVs have Cue Points that trigger events on the main SWF. The main SWF listens for these Cue Points using code based on Macromedia's online help:
Code:
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
trace("Elapsed time in seconds: " + myVideo.playheadTime);
trace("Cue point name is: " + eventObject.info.name);
trace("Cue point type is: " + eventObject.info.type);
}
myVideo.addEventListener("cuePoint", listenerObject);
This will also work IF myVideo were an embeded file. But in this instance, myVideo is only a placeholder that calls the other files.
How do I listen for the Cue Points of the loaded external files?
Thanks for any tips and ideas! :)
How Do I Use Cue Points Embedded In External Flv File
Ok first time working with cue points somethings i figured out:
Dont use soresen squeeze, I tried creating markers (keyframes) using squeeze 4.3 and for some reason it only picks up the first marker, not sure if im doing something wrong, if someone knows why please let me know? So i decided to use MM Flash 8 encoder, I added my cue points np, i also added parameters and gave it a name and a value im not sure if i need to do this but i thought i might need to call it in AS at somepoint and perform a if statement? Again if this is wrong please let me know?
2. Ok im using netstream so when i call my flv i just need to envoke ns.onCuePoint = function(infoObject:Object) (read in the forums here) I also learned that you dont use onMetaData because this will envoke all cuepoints at the beginning of the movie!!
3. Ok so i call this function above this is where im getting confused? I have 3 cue points in my video, i want to trigger a movie clip to play when that cue point is hit? How do i call this?
I want to be able to do something like this
Code:
if(flv has reached cuePT1) {
other_mc.gotoAndStop(2);
}
if(flv has reached cuePT2) {
other_mc.gotoAndStop(3);
}
Thanks
Cue Points + External Swf + Seek Function
What I have:
1. I have a working movie player that calls multiple .flv files
2. Within each .flv there are numerous navigational cue points set in order to trigger external .swf files to play in the background of my main timeline
Code:
if (eventObject.info.name == "e3") {
movLoader.loadClip("swfs/e3.swf", "mcMain");
}
What I need:
My problem lies in trying to add a seek function to both forward and back player controls that will fast forward/rewind and also posess the following functions:
1. listen for previous cue point - in order to target previously called .swf
2. calculate the relative frame position within each external .swf - to sync .swf timeline position to .flv respectively at any given point/time in the .flv
The ultimate goal would be to fast forward/rewind both the .flv and external .swf seamlessly. It would be ok if the external .swf had to reset everytime the user seeks to a given point on the external timeline. There may not be a way to scrub both an external .swf and .flv together at the same time. But I believe there has to be a way to restart the frame position of an external .swf relevant to the timing of the currently playing .flv on the parent level.
The forward and back controls currently function by jumping between markers set on the main timeline (not ideal).
External Flv's, Using Cue Points, And Pausing Video.
hey all,
I need some help with the combination of these things. I dont know that much actionscript so this is an even more daunting problem. ANY help I can get even if its just how to use cue points that would be much appreciated.
Ok, after about a day and a half of searching how to use cue points I still have a vague idea of how to use cue points. but first, I'll explain what i'm doing.
I have a FLA that I am loading an external movie into that I converted to a FLV. (easy enough) next I want the video to pause at a certain point (cue point). Then I want it to play again after you press a button.
I think using an actionscript cue point would be ok because I dont need it to stop "on a dime" but a general area of a few seconds. after a user presses a button, I want it to play again from either the same cue point or another one that I can create a little after the first. I have seen the "ns.onCuePoint = function(infoObject:Object)" function but I dont understand how to use it. Can anyone please help me?
so to re-itterate I have a few problems:
1. I need to create a/two actionscript cue point(s).
2. I need the video to pause at the first cue point.
3. I need it to play after the user presses a button at a the same cue point or a second cue point.
Currently this is the only code I have in to play the flv.
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
videoPlayer.attachVideo(ns);
ns.play("00_Site7.flv");
Thanks in advance!
wlw
Accessing External Swf @ Various Entry Points?
Hi everyone-- got a question about external swf capabilities. Never worked with external swfs before, so I'm learning by doing.
My project is comprised of several external swfs that will load into the stage mcHolder after the appropriate button is pressed. Each swf is also divided into 5 separate stories. I wonder if it's possible to provide different entry points into the swf according to which story the user wants to experience? I have first frame of each new story labelled in the original fla, but I wasn't sure if those frame names carried over into the swf and thus could call those up somehow when the button is pressed.
Sigh. This is unfortunately the first of many questions I'm sure to have... so thanks for your help
Is this just a super-obvious question that I should know the answer to? Or is everyone else just as clueless as I am?
How Do I Use Cue Points Embedded In External Flv File
Ok first time working with cue points somethings i figured out:
Dont use soresen squeeze, I tried creating markers (keyframes) using squeeze 4.3 and for some reason it only picks up the first marker, not sure if im doing something wrong, if someone knows why please let me know? So i decided to use MM Flash 8 encoder, I added my cue points np, i also added parameters and gave it a name and a value im not sure if i need to do this but i thought i might need to call it in AS at somepoint and perform a if statement? Again if this is wrong please let me know?
2. Ok im using netstream so when i call my flv i just need to envoke ns.onCuePoint = function(infoObject:Object) (read in the forums here) I also learned that you dont use onMetaData because this will envoke all cuepoints at the beginning of the movie!!
3. Ok so i call this function above this is where im getting confused? I have 3 cue points in my video, i want to trigger a movie clip to play when that cue point is hit? How do i call this?
I want to be able to do something like this
Code:
if(flv has reached cuePT1) {
other_mc.gotoAndStop(2);
}
if(flv has reached cuePT2) {
other_mc.gotoAndStop(3);
}
Thanks
Bullet Points External Text File
Hi, Im trying to get bullet points to work in an external text file into a dynamic text box. When I put a normal bullet point in using alt+8 I just get a random yen sign that looks like this ¥. And if I use & # 1 4 9 ; from html and I enable html in the dynamic text box it just doesnt work. I also read on some theads about using <ul> <li> </ul> as the list thing you would use in html but I cant get this to work either!!!!
Could someone please help me!
Thanks
Wallace
How To Make A Variable That Points To An External Textfile? (supernoob)
Hello.
A quick question here!
I have several external text files that load on click of their respective links into a text field .
I need to fade out the textfield onClick to then fade it in for the new coming text file. For that I need to make a variable that stores the current page. But the current page is a text file which cannot be tweened so I would need to tween the text field for a specific text file that has been loaded. Can this be done?
I'm puzzled, probably my question is puzzling too, but hope it makes some sense.
Thank you for your help.
Using Actionscript And The Drawing API To Animate A Line (2 Points) To 2 New Points
hi everybody - what is the best way to go about this?
at its most basic - i need to animate a line's beginning and end points using tweener to 2 new points somewhere else on the stage.
my first thought is to start with the excellent 3d spinning cube example that kirupa made on kirupa.com and backtrack from there.
http://www.kirupa.com/developer/acti...ces_depths.htm
but i'm hoping to find a much simpler and efficient way of accomplishing what i need.
the problem that i know i need to get around is this.... i have to find a way to have the Tweener class give me updated positions of the x and y of the two points which make up the lines. and somehow i have to use the drawing api to 'get inside of' tweener to update the stage accordingly - reason for this is that these lines will need to use the elastic tween and bounce around a bit.
i'd appreciate any help
cheers! - tom
Convert WMV File With Defined Cue Points To FLV And Keep Cue Points?
Hello, I need to know how to do this. I have wmv files with defined already cue points. I want to convert the video in to a FLV to play it over the net with flash, but I want to keep the cue points defined in the wmv. Is there a way to do this automaticaly or can I save the script lying under the WMV file defining the cue points in to a flv script. It is important that everything is done almost automaticaly because I have a lot of wmv files....
Help
thank you in advance
Finding Points Between Two Points
This seemed more likely to be answered here but if this belongs in Math and Physics please move it.
If I were given the following coordinates, how would I calculate the end points of the red segments? There's a 5 point gap between the endpoints and the corners.
EDIT: I've written the function, I just need the math.
Get Parameter
Please...anyone who know how can I capture a parameter from the browser? Exp : <param name = variable1 value = "testing
" >
[Edited by lms11 on 11-28-2001 at 09:25 PM]
Parameter
please, i'm new at flash developing and need some help.
i'm using f5 and want to pass a variable from one flash file to another and read this, checking its value. thanks anyway...
Parameter
Hello!
I've just started to work with flash (MX) and I wonder...
How is it with parameters in flash.
If I have four scenes: start,intro,pictures,and music.
When a new visitor enter the site for the first time then I want to have an intro on every page. I have declared a boolean "introfirst=true" ---> if(introfirst){I play my intro and then setting the introfirst-parameter to false, which means next time the visitor click on the link to current page s/he wont to have to se the intro again}
What I've done is at the beginning (my startscene) I declare/set attribute to all my booleans which controlls if the visitor have entered my 4 pages. And then I change their attribute when entering current page. E.g I enter music I see the intro and the parameter "musicfirst" is set false.
But that doesn't work.
To my question is it like in java that the parameters both can be global and local. Shall I print start.introfirst or what shall i print ????
I hope you understand what I mean.
Thanks for helping me /M8M8
Get Parameter From Url
my url is http://www.somesite.com/default.html?someparameter=x1
i need the parameter 'someparameter' from the url for my action-script.
how can i get the parameter?
thanks.
How Would I Pass A Parameter...
How would I pass a parameter (or any method) into a scrolling text box?
The parameter would come from a .jsp file. It would function exactly like an <iframe>
It would work like this.... (I run a affiliate program)
I send out an email to my clients with new links.
The problem is some 1000 of my clients have Yahoo and Hotmail accounts, and both services will replace my links with theres. So I will create a flash text box that will be independent of those meddlesome kids.
When the email is delivered it calls the flash file which in turn fills the text boxes with dyn. data. And my clients cut and paste the untouched code into there pages.
Parameter Passing
I have 2 swf's. Main.swf and Movie1.swf. MAIN will begin to play and then load external MOVIE1. Once MOVIE1 has played completely I would like to pass a parameter or variable to MAIN from MOVIE1. Is there a way to achieve this?
Parameter Passing
Hi,
I want to create a clock which will display the time at server side
for that i need to pass the time at server side as parameter to my flash file
Can i do that and how?
Waiting for response.
Thanks in Advance.
Bye
sonali
Parameter As Name Of A MivoeClip
I have a function that I pass parameter as a name of a movieClip in the first keyFrame.
function passname(moviename){
moviename._x+=10;
}
--
A movieClip name... girl
And another movieClip that I use to write action like this:
/*case 1.*/
onClipEvent(enterFrame){ passname(girl);}
But nothing happent. I dont know why it doent work.
If I assign Action for a button like this
/*case 2.*/
on(release){passname(girl);}
It works
Please tell me why it doesnt work in case 1?
Thanks !
Array In Parameter
how could i do this:
fileName_Section[0] = ["00010"]
fileName_Section[1] = ["01010", "01020"]
fileName_Section[2] = ["02010", "02020","02040", "02050"]
this is what i want:
fileNames = fileNames.concat(fileName_Section)
length = 3
fileNames = fileNames.concat(fileName_Section[0],fileName_Section[1],fileName_Section[2])
length=7
I want to find a way to make the first examples have a length of 7 also. I tried various approaches but not have worked as of yet.
The Play Parameter
Could someone tell me why the (param name="play" value="true" / ) causes my SWF to go crazy, and removing that line of code allows it to work?
If I set the value to False it runs fine too. Does that mean the default value for it is False? I am using the latest Flash player 6 release. Thanks
Passing Parameter To A Swf
Is there a way to pass parameters to a swf from the html that loads it?
and... if so, How do I get them from inside the swf?
I'm not into asking this "howto" type of questions, but my brain is to tired and time is running out for me. I have to deliver this site by tomorrow afternoon and I only need that code.
Thanks anyone who can help me...
Francisco
Using < And > As A Parameter In Function
I was wondering if there is a way to us the greater than and less than signs as a parameter in a function?
What I would like...
Code:
myfunction = function(equality){
if ( varX equality varY){
Do this;
}
}
and calling it...
Code:
button1.onMouseOver = function(){
myfunction(>);
}
Using_name As A Parameter
I trying to each this effect
function Do_This(Current_Movie)
{
Movie_Clip_Path.Current_Movie.gotoAndPlay("Close") ;
}
Do_This(this._name)
This seems really simple but it isn't working.
I am currently stuck doing this.
function do_This(Current_Movie)
{
if (Current_Movie == "something")
{
Movie_Clip_Path.Specific_Path.gotoAndPlay("Close") ;
}
if (Current_Movie == "something_else")
{
Movie_Clip_Path.Specific_Path2.gotoAndPlay("Close" );
}
}
Any Suggestions?
Open Asp URL With Parameter
I create an external textfile data.txt that i load
&productID0=1&image0=Master.jpg&productID1=2&image 1=Revolution.jpg&count=2&
images = new Loadvars();
images.load('data.txt');
images.onLoad = function() {
for (i=0; i<Number(images.count); i++) {
loadMovie(images['image'+i], "_root.mc"+[+i]);
}
};
I have two Movieclips called mc0 and mc1. Both they load an picture. What I want is when you click on the picture it opens an url
on (release) {
getURL("http://domain/Main.asp?ProductID="+ProductID[i], "_Blank");
}
It now gives
http://domain/Main.asp?ProductID=
It has to be
http://domain/Main.asp?ProductID=1 for the first picture and http://domain/Main.asp?ProductID=2 for the second picture
Please help me out
Parameter Of Function
Hi guys!!!!
I got a function like this:
function state (choice) {
_root.buttons.choice_mc.choice_selected._visible = true;
};
So, as you already have guessed, the "choice" in the setence inside the function is the parameter that enters the function. The problem is this doesn't work..i guess i have to "say" that the choise in the _root.bla bla bla is the var that enters the function!
How to do that?
Thanks a million!!!
StartDrag With Or Without Parameter
I wish to drag a MovieClip keeping the position of the MC (movieClip) relative to where I first clicked on it, and constrain it into a defined rectangle.
My understanding is to use the following cmd:
myMovieClip.startDrag([LOCK, [0, 0, 200, 200]]) where LOCK = 0 -- "locked to the point where the user first clicked on the movie clip (false)"
But when I click on the movieClip, the MC reposition under the mouse at its registration point. Toggling my LOCK parameter from 0 to 1 actually does not make any difference.
The only way I can start dragging - without the MC repositioning - is by using the "startDrag" method with no parameter at all:
myMovieClip.startDrag();
The problem of course, is that I now don't have any limits to where the mc can be dragged.
Any suggestion would be greatly appriciated.
Thanks in advance.
geraldine
Is This Possible? Action, Parameter
(Sorry bout the non-descript subject to this post)
Curious to know if this is possible:
function someFunc(var1, var2, act){
//do stuff here
--
//
if(stuff done){
act;
}
};
someFunc(100, 200, _root.gotoAndPlay(2));
The code above doesnt work (thats why i am here...), it simply runs the third parameter directly which i dont want it to, but i hope you're able to see what i'm trying to do. I want the third parameter to run when the code in the 'someFunc' is done.
I would greatly appreciate if anyone know of any solution to this problem and showed me how it done.
//edit:
I want to be able to run any sort of code in the, in this case, third parameter btw. In my real code i would for example have
this code: loadXML('xml/nyhetsbrev.xml', -4). Which is a call to another function to load an xml.
//edit
cheers
Björn
Transfer Any Parameter Between Two Swf?
hi developers..
i have a main.swf that where ii loadMovie Products.swf..my products.swf is full of my products pictures and all of them are buttons and have a ID..
i want to make a new swf for LoadMovie in main.swf, too that when anyone click this products.swf picture button my new swf take the ID number and call product's details which ID equal to this ID..i mean how can i transfer any parameter between two swf..
Passing Parameter
I have got 2 frames.
frame 1 is like this
stop()
var myScore = 0
var yourScore = 0
function makeLocalMove(myScore, yourScore){
myScore = 3
//return
trace("vv")
}
frame 2, I have got a button and set the script
on(release){
makeLocalMove(10, 5);
_root.myScore += 10
}
but there is no result coming out with the dynamic text myScore? Do anyone know where I do wrong?
|