Working Off Of A PRAYSTATION Source File
Praystation has a source file called "Basic Scrollbar with Content". It's basically an inertia horizontal scroll bar.
What Im trying to do is shorten the length of the horizontal scrollbar. Right now it starts at (Left:333) and (Right:700). I want to change the right to 500 so I can have my scroller shorten in length but still scroll the long content.
Here's the code in the content actions:
scrollpos = getProperty("/scrollbar", _x); postoset = Number((scrollpos*-2))+665; setProperty ("/content_w_mask/content", _x, postoset);
I guess the "Number((scrollpos*-2))+665" needs to be changed to make t his work..I just dont know what to put. Any suggestions?
FlashKit > Flash Help > Flash ActionScript
Posted on: 05-11-2001, 02:36 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
LoadVariables Working From Remote Source -but I Don't Want It To
People usually ask the opposite question, which is: "How do I get loadvariables to work with files on other servers?"
Well, I want to prevent that. I have read:
"When playing a Flash document in a Web browser, you can load data into the document only from a file that is on a server in the same subdomain. This prevents Flash documents from being able to download information from other people's servers. "
I was glad to hear this. But I tried running a .swf file from my computer, which access a php file from my website and returns a variable. It worked. I looked into making a crossdomain.xml file(although I didn't know why I had to create one, if access should be denied anyways). I made the file with no access, hoping that might work. I could still get the variable to return to my computer.
How do I prevent that?
Here's an example of why I ask: Say you have a game on your site, which submits the user's score into a database at the end. The user could save the .swf file from their cache, decompile it, and edit the actionscript to submit whatever score they want.
What am I doing wrong?
Problem Working From Source Uploading Script
Here is the source I am using:
http://www.saschawenning.de/labor/flash8/fileUpload/
now the messed up thing is, I uploaded this to my server as is - no mods - and it seemed to work fine. but then when I checked in the dir for the files I uploaded, they weren't there.......can anyone tell me whats up with this?
I have been beating my head against the wall for 2 days now - please please some one help me out lol
FILE UPLOAD Check It Out Source File Too
upload anything stupid an I'll have to pull it...
http://actualpixel.com/demo/upload.swf
what do ya think? still a work in progress...
keen for feedback
additions
etc...
luigie PIRATE!
How Do I Load My Movie From It's External Source...My Code Isn't Working Help?
If anyone can clarify this for me I could really use the help..I have been trying to get better at this but it seems so overwhelming...I can't seem to Connect via NetStream to a Video in my Custom Video Player on Stage?
I am trying to Write an XML parser in Actionscript 2.0 for playlist.xml that will:
Play the FLV using a video object and Netstream class.
Here is my code......
myConn_nc.connect(null);
//
var netCon_nc:NetConnection = new NetConnection();
netCon_nc.connect(null);
var myStream_ns:NetStream = new NetStream(netCon_nc);
//
var myConn_nc:NetConnection = new NetConnection();
myConn_nc.connect(null);
//
var myStream_ns:NetStream = new NetStream(myConn_nc);
myStream_ns.onStatus = function(infoObject){
status.txt.text=infoObject.code;
myVideo_video.attachVideo(myStream_ns);
}
myStream_ns.SetBufferTime(5);
var played:Boolean = false;
var clickListen:Object = new Object();
clickListen.click = function(){
if(!played){
myStream_ns.play("http://a1426.g.akamai.net/7/1426/14721/7/cartvstream.download.akamai.com/14721/video/c/co_0036_e_h.flv");
played = true;
play_butn.label = "Pause";
}else{
if(play_butn.label == "Play"){
play_butn.label = "Pause";
}else{
play_butn.label = "Play";
}
myStream_ns.pause();
}
}
play_butn.addEventListener("click, clickListen");
Any Help would be greatly appreciated???
Thanks,
Praystation
Praystation on Ebay
Praystation Hard Drive
by Joshua Davis
In a joint venture with IdN, Flash master Joshua Davis has released his own hard drive on CD-ROM. It's filled with the Flash projects and experiments that formed Praystation Year 2. It's all here: original source files, art, text, accidents, epiphanies, all as they appear in Davis' own hard drive. "Nothing was altered", Davis writes in the full-color booklet and catalog that accompanies the CD.
This collection provides an invaluable resource for serious Flash animators and programmers. The exquisitely-packaged, limited edition includes a full-color catalog, CD, and a custom case.
397 folders, 3637 files, 462 Meg of raw data: a snapshot of the studio of a major new media artist, frozen and time and delivered to you for exploration, study, inspiration, and for use in your own work.
http://cgi.ebay.com/ws/eBayISAPI.dl...item=7154546755
Looking for a good home.
Praystation Scrollbar
I downloaded this scroll bar from the "flash to the core" book website by Joshua Davis. The file is great, but I can't seem to convert it so that it works vertically instead of horizontally.
Here's the code:
Code:
// set up content_mc info
contentRight = _root.content_mc._x;
contentLeft = 715-_root.content_mc._width;
// set up gutter info
gutterLeft = _root.scrollbarGutter_mc._x+1;
gutterRight = ((_root.scrollbarGutter_mc._x+_root.scrollbarGutter_mc._width)-this._width)-1;
// don't use the hand icon
this.useHandCursor = false;
// handle press event
this.onPress = function() {
this.startDrag(false, gutterLeft, this._y, gutterRight, this._y);
dragging = true;
this.onMouseMove = function() {
updateAfterEvent();
};
};
// handle release event
this.onRelease = this.onReleaseOutside = function() {
this.onMouseMove = undefined;
this.stopDrag();
dragging = false;
xSpeed = (newxpos-oldxpos)*RATIO;
};
// set initial variables
FRICTION = .9;
RATIO = .5;
dragging = false;
// handle onEnterFrame event
this.onEnterFrame = function() {
if (!dragging) {
oldxpos = this._x;
newxpos = oldxpos+xSpeed;
xSpeed *= FRICTION;
if (newxpos>gutterRight || newxpos<gutterLeft) {
xSpeed *= -FRICTION;
newxpos = oldxpos;
}
this._x = newxpos;
// always move content_mc whether dragging or not
var percent = (this._x-gutterLeft)/(gutterRight-gutterLeft);
this._parent.content_mc._x = percent*(contentLeft-contentRight)+contentRight;
} else {
oldxpos = newxpos;
newxpos = this._x;
// always move content_mc whether dragging or not
var percent = (this._x-gutterLeft)/(gutterRight-gutterLeft);
this._parent.content_mc._x = percent*(contentLeft-contentRight)+contentRight;
}
};
I've tried changing all the _y coordinates to _x, but that's not working. I'm not doing something right. Can someone please look at it?
Here's the actual file: http://www.earph.com/chapter_14a.fla
Thanks ahead of time!
Praystation Menu
I love the vertical scrolling menu here: www.praystation.com . I was wondering if any knew how they did that. I've seen other examples out there, but nothing that works as smooth as this. Plus, the text stays crisp no matter where you stop scrolling.
Any advice would be great. Thanks!
Praystation Play
Hi,
I've recently started learning ActionScript, and have been playing around with some flash files I got from Mr Davis here at Flash to the core. I've changed the chapter 10 example so that all the code is on one frame, and the number of boxes is generated with a for loop. I just wanted to post it up here and see what you guys thought, and if there was any way of improving on what I've got.
the original and my fla are attached.
Aaron
Praystation Menu
I love the vertical scrolling menu here: www.praystation.com . I was wondering if any knew how they did that. I've seen other examples out there, but nothing that works as smooth as this. Plus, the text stays crisp no matter where you stop scrolling.
Any advice would be great. Thanks!
KillFocus (anyone Remember This From Praystation?)
I'm creating a form and instead of using field labels I'd like to have the field name display in the field itself. When the user clicks in the field I want the label to go away.
For a brief period Josh had an example of this on Praystation but I didn't download it and now wish I had. I remember it said something about kill Focus but I can't find mention of that anywhere in any documentation.
Anyone know if this is an undocumented feature? Know where I can find an example or know the code?
Thanks in advance,
Danny
Adding Content To A Praystation FLA HELP
need some flash help !
hi- I am working off a template from praystation -
you can see it here-
http://www.home.no/magenta/test/story_timeline.html
basically I need to know how to add the content- and change the section to year- or even just take that off..
so far it is exactly the same scripting wise as the praystation version, i just addeda few other sections (amazing that I figured that out!)
any help would be rad!
http://www.home.no/magenta/test/magentacode.txt
is the script
http://www.home.no/magenta/test/story_timeline.html
Creating Praystation-like Dot Animation
I'm trying to generate a similar effect with a 7000+ homes for sale
recordset, based on the longitude and latitude.
I've figured out how to display the dots, but I can't figure out how to make them animate on one at a time. What I'm trying to do is accomplish a dot animation similar to the one on Praystation.
So I basically need to have the recordset be loaded, and instead of being parsed all at once, parse one record, duplicate the dot and then go onto the next.
Any ideas?
Praystation's New Site... How? Scale?
Davis finally used one of his interface prototypes. it"s here:
http://www.trollback.com/
it's cool.. although a damn long load time.
Anyhow, my question is this:
There is a top menu and scroll bar at the top. It scales the entire width of the browser. When you change the width of the browser it scales with it (nothing else does). And it only scales width wise, not height.
How is this done?
I tried playing with _xscale on some movie clips but was unable to get it to work.
anyone know?
thanks
ty
Praystation Menu System
By now you all know http://www.praystation.com
I am building a site that has a very similar menu system.
I cannot figure out how to get each of the different frames to communicate with each other like http://www.joshuadavis.com.
For example, if a user clicked on "print" button in left menu, how does that load all the relevant print.swf file (the corresponding sub-nav to the right). Further more, how does that load the first print selection in the main window - in what appears to be another SWF sitting in its own HTML frame?
In www.joshuadavis.com it looks like the left nav, the sub nav and the main content viewing area are all three separate SWFs sitting on 3 different HTML pages...each one apparently referencing the other.
I dont know man.
Thoughts?
Kelly
Seattle WA
Praystation Menu System
By now you all know http://www.praystation.com
I am building a site that has a very similar menu system.
I cannot figure out how to get each of the different frames to communicate with each other like http://www.joshuadavis.com.
For example, if a user clicked on "print" button in left menu, how does that load all the relevant print.swf file (the corresponding sub-nav to the right). Further more, how does that load the first print selection in the main window - in what appears to be another SWF sitting in its own HTML frame?
In www.joshuadavis.com it looks like the left nav, the sub nav and the main content viewing area are all three separate SWFs sitting on 3 different HTML pages...each one apparently referencing the other.
I dont know man.
Thoughts?
Kelly
Seattle WA
Creating Praystation-like Dot Animation. Help.
I'm trying to generate a similar effect with a 7000+ homes for sale
recordset, based on the longitude and latitude.
I've figured out how to display the dots, but I can't figure out how to make them animate on one at a time. What I'm trying to do is accomplish a dot animation similar to the one on Praystation.
So I basically need to have the recordset be loaded, and instead of being
parsed all at once, parse one record, duplicate the dot and then go onto the next.
Any ideas? Thanks.
Help Looking For A Source File.......
Hi guys this is my first post, and i hope i make sense in what im looking for.
Here goes....... ok basically i want an image slider (not sure if that the correct name) Imagine you have a strip of 10 images and a masc so only a few at a time show, when you move the mouse left the picture strip scrolls left and the same with right.
Ive found a few but id like one with buttons, so that rather than moving mouse to the left you have to mouse over the left arrow so that the pictures scroll. As the ones ive seen without buttons just scroll uncontrolably with every mouse movement.
I hope you can help, and if you need any clarification in what im looking for please ask!
Superb site by the way guys!
Help Looking For A Source File......
Hi guys this is my first post, and i hope i make sense in what im looking for.
Here goes....... ok basically i want an image slider (not sure if that the correct name) Imagine you have a strip of 10 images and a masc so only a few at a time show, when you move the mouse left the picture strip scrolls left and the same with right.
Ive found a few but id like one with buttons, so that rather than moving mouse to the left you have to mouse over the left arrow so that the pictures scroll. As the ones ive seen without buttons just scroll uncontrolably with every mouse movement.
I hope you can help, and if you need any clarification in what im looking for please ask!
Superb site by the way guys!
Help With A Source File
Can anyone tell me why this effect does not work when publish settings are set up for flash player 8? im looking over the code and just cant find why it wont work. Any help would be amazing
http://www.flashkit.com/movies/Effec...6578/index.php
Fla Source File
Hi! I wonder is there any fla source file which I can find from the internet. I hope I can learn from fla source file to create special effect. I will happy to hear from everyone. Thanks.
yann
Fla Source File
Hi! I wonder is there any fla source file which I can find from the internet. I hope I can learn from fla source file to create special effect. I will happy to hear from everyone. Thanks.
yann
Fla Source File
Hi! I wonder is there any fla source file which I can find from the internet. I hope I can learn from fla source file to create special effect. I am happy to hear from everyone. Thanks
Yann
My PrayStation Flash MX Book Is Off To The Printer
yahoo!!! my Macromedia Flash MX book has finally gone off to the printer.
Should be in stores around the 1st of August - although you can pre-order this bad boy.
check http://www.praystation.com for details
I'll also get the sub domain website with downloadable tutorials up very soon.
some people have mailed me about book contents :
here ya go :
http://www.joshuadavis.com/loves_you...f_contents.pdf
Loading Flash Content (praystation)
I bought the book "Flash to the Core" as some of you suggested, I havenŽt read through the whole book because, well I am in a big time pinch. Anyways, Im working on flash timeline project - like the one that Josh Davis made at
http://www.motown.com/classicmotown/frameset_2.html
My only problem now is figuring out how to load content into each section/year, or each instance. Do I need to create separate instances of the content-mc for each section/year?
I thought that pages 246-250 would address that, or chapter 13 where there is a basic scroller, but I cant find it. IŽll start reading, but in the meantime if anyone can help me out. Id really appreciate it.
Source File Problem Please Help
Hi all
Problem with source file, that i made graphic adjustments, i have changed the layout and made the buttons smaller and made them closer together, because the space available to me is limited the only changes i made to the actionscript was to change the text from (german - i think to english).....the source file that i changed is
Calender- andreas- 6136 - it is a kind of schedule calender in the movies section
Problem is that in making changes to the layout the alligment of the date buttons with the days is now all skew wiff ( not in allignment) .......i cannot seem to find how to fix this, i found the mcs in the library, and made changes to teh button - primarily to make it smaller .......what i cannot find though is how to fix the alligment to what i have now got...
can anyone out there help me pleasee..........
I don't know whether it is a hidden clip of some sort or actionscript related
Please help
Thanks
J
The Price Of A Source File?
He people!
I've got a sticky situation here.
I have customer, who I have previously done work for (Flash presentations), who have just asked me for the source files of the work so they can send them to another company that specialises in Voice-Overs to go in the files.
However, there was never an agreement that I would release the source files ever.
This Voice-Over company is also a design agency - so I'm sure yuo can imagine my dilemma - don't want to annoy my customer and loose any possible future work, but also don't want my source files going to another design agency, when I could put the sound files in myself.
But....
What if the customer was to ask to buy the source files?
What kind of a percentage on the original price do I charge him?
Cheers
Deadhands
Source File List
Hi All,
I am trying to find a thread that contains a list of game resoucre site (open files etc) there used to be one on here somewhere but I can't find it anywhere and I've run out of search options as far as keywords go!
I know this is a shot in the dark - but hopefully one of you will know the thread I mean!
FLA Source File Website HELP
OK calling all people interested in being part of a website dedicated to fla's!
What we want to do is start up a web site with a huge stock pile of fla's all under dedicated descriptions for example Pre-Loaders, Tweening, Action Script ect ect ect.
Anybody interested in helping with the design of the site or donating some fla's please post here.
Please Help Me Unpack This Source File
Hello,
I have downloaded this .fla file as I would like to create a similar effect. However, I'm a bit confused as to what exactly is going on.
I'd be really grateful if someone could just explain the basic principles and I'll take it from there.
Many thanks
How Do I Link A Txt File As A Source
say i have a fla, and in that i want one scene to have a block of text that is displayed based on a seperate txt file, from notepad or simpletext or whatever.
how do i go about making something like this?
Source .fla File For An Mp3 Player?
I've been using a primative player in past versions of my site, but I'd like to have a player that has a loading indicator before a song begins to stream, and also << and >> buttons. A text field displaying the current track would be good too. And a list to choose from.
Uhh, sounds like a lot, but I've frustrated myself for two days working on one, so I decided to ask here if there was an fla I could examine...
Basically what I want is a player similar to 2A's. (http://2advanced.com)
Any help is greatly appreciated.
[MX04] Looking For A Source File
Hiya,
I've seen an effect used on a few different sites where an image is placed underneath a masked area and when a button is selected the image moves UNDERNEATH the masked area to the selected part of the picture. Its a nice but simple effect and i used to have a source file for this but i can't seem to find it anywhere in the movies section of flashkit since i don't know what to search under...
I've seen it used within menus for websites or even image galleries...
anyone have any ideas where i can find this... or what to search for it as?!
Thanks in advance
Help I Can't Open My .fla Source File.
Hi,
For some reason i cannot open my source file! Gulp!
Can someone please try and open it for me?
On my PC or Mac Flash 8 just freezes.........
The file can be downloaded from:
http://www.gqtestsite.co.uk/Andy/warley_plans_final.zip
Andy
Using A Loaded SWF For Which I Don't Have The Source File
Hi everyone,
Hopefully this is an easy one for you... I have a loaded SWF that plays through and stops at the end. Once it ends, I'd like the main timeline to proceed to the next scene, to continue with the demo.
Is there a way to do this without having to have access to the FLA for the loaded movie?
Thanks!
I Cant Get The Source File To Work
Here is a source file i got from this site
http://www.senocular.com/flash/source.php?id=0.107
i have tried to recreate it by copying everyting in it, it still isn't working
if anyone can look at this and help me out that would be great!
My File
Save My Source File
The swf files download to temporary internet folder before showing up. I want to know is there any way , a script or technique in flash that the swf file does not download into the temproray internet folder so that my source file is safe from any person using decompilers.
Swf Resolution Is 3/4 Than In The Fla Source File
say if I use milimeters as unit, and draw a line 4cm long, and export, then in the swf , the size will be only 3 cm if you measure it on the screen with a ruler.
Is there any way, you can make the swf play as the same size in fla design interface?
Source AS File For NetConnection?
I've been reading the source code for the Flash Remoting classes. Connection.as extends NetConnection.as which appears to be a class native to Flash. I can't find the source for it. I searched my entire hard drive and found two classes that appear to be just interfaces -- they don't do anything (see below). Where is the source for the NetConnection class?
I also found a file called NetConnection.aso which appears to be some kind of compiled binary file. I'm guessing the functionality is inside it.
Attach Code
// C:Program FilesMacromediaFlash MX 2004enFirst RunClassesNetConnection.as
intrinsic class NetConnection extends Object {
var isConnected:Boolean;
var uri:String;
function getDebugConfig( id ):NetDebugConfig;
function getDebugID();
function getService( serviceAddress, responder ):Object;
function setCredentials( principal:String, password: String ):Void;
function setDebugID( id ):Void;
function trace( obj ):Void;
function connect(targetURI:String):Boolean;
function close():Void;
function call(remoteMethod:String, resultObject:Object):Void;
function addHeader();
function onStatus(infoObject:Object):Void;
function onResult(infoObject:Object):Void;
}
//C:Documents and SettingsJaitheLocal SettingsApplication DataMacromediaFlash MX 2004enConfigurationClassesNetConnection.as
//****************************************************************************
// ActionScript Standard Library
// NetConnection object
//****************************************************************************
dynamic intrinsic class NetConnection
{
var isConnected:Boolean;
var uri:String;
function NetConnection();
function addHeader();
function call(remoteMethod:String, resultObject:Object):Void;
function close():Void;
function connect(targetURI:String):Boolean;
function onResult(infoObject:Object):Void;
function onStatus(infoObject:Object):Void;
}
Videoplayer.swf Source Fla File?
Hi,
Is it possible to get hold of the .FLA source file of the videoplayer.swf in FMS 3.5 please?
I would like to be able to theme the colors for our players to the corporate themes if possible.
How To Modify Swf Without Source File?
I will append a button to a Swf file,but the button wasnt inside the SWF file and I wasn't have the SWF file's source file?
Please tell me which software can do it ?
List the name or URL,Thankyou!
-----
Sorry,I have a little English.
Source File Instructions?
Sorry, new guy... Are there instructions on how to use (customize) the downloadable fla source files?
Weeds Fla Source File
i was wondering if someone could explain a few things about the code in this fla. it's found under the experimental actionscript, last page of the fla source files section.
i've been studying it for a couple days nows and i still cannot figure out how the position of the weeds are being set. i've been trying to change it so that the line_x is at the top of the stage and the weeds point downward, but i'm having no such luck.
i'm guessing the position has maybe something to do with this section of code:
ActionScript Code:
_root.attachMovie("line", "line" + _root.level, _root.level);
myLine = _root["line" + _root.level];
_root.level++;
var line_x = random(_root.myBounds.xMax - _root.myBounds.xMin);
if someone could just break it down what's happening that'd be great! it's been driving me crazy that i'm not figuring it out.
here is the code on the 1st frame:
ActionScript Code:
fscommand ("allowscale", false);
var total_num = 12;
var level = total_num+1;
var myBounds = boundbox.getBounds(_root);
for (i=0; i<=total_num; i++) {
attachMovie("dot", "dot"+i, i);
myDot = _root["dot"+i];
myDot._x = random(myBounds.xMax-myBounds.xMin-50)+26;
myDot._y = random((myBounds.yMax-myBounds.yMin)-60)+31;
}
stop ();
and this is the rest on the dot:
ActionScript Code:
onClipEvent (load) {
var follow = false;
var min_dist = 10;
var max_move = 20;
var force = 1.4;
var a = 3;
var d = 1.6;
var newX = _parent._x;
var newY = _parent._y;
var myXspeed = 0;
var myYspeed = 0;
_root.attachMovie("line", "line"+_root.level, _root.level);
myLine = _root["line"+_root.level];
_root.level++;
var line_x = random(_root.myBounds.xMax - _root.myBounds.xMin);
}
onClipEvent (enterFrame) {
myXspeed = ((_parent._x-newX)/a+myXspeed)/d;
myYspeed = ((_parent._y-newY)/a+myYspeed)/d;
// check mouse distance
if (Math.abs(_parent._x-_root._xmouse)<min_dist && Math.abs(_parent._y-_root._ymouse)<min_dist) {
follow = true;
this.gotoAndStop(2);
} else if (Math.abs(_parent._x-newX)>max_move || Math.abs(_parent._y-newY)>max_move) {
follow = false;
this.gotoAndStop(1);
}
if (follow) {
myXSpeed += (_parent._x-_root._xmouse)/force;
myYSpeed += (_parent._y-_root._ymouse)/force;
}
_parent._x -= myXspeed;
_parent._y -= myYspeed;
// adjust line
myLine._x = _parent._x;
myLine._y = _parent._y;
myLine._xscale = line_x - _parent._x;
myLine._yscale = (_root.myBounds.yMax-_root.myBounds.yMin)-_parent._y;
myLine._alpha = 20;
}
onClipEvent(mouseDown) {
newX = random(_root.myBounds.xMax-_root.myBounds.xMin-50)+26;
newY = random(_root.myBounds.yMax-_root.myBounds.yMin-60)+31;
}
Text File As Source..prob
I have a text file which contains the data as &textfield1="......"
&textfield2="...L&T...."
In the textfield2 after "&" the text is not appearing.
Help me out with this prob friends...
Thanks
Do You Want The System Of Exchanging Source File
Anyone who is eager to learn about web-tools(mainly flash)
just visit at http://www.ywd.cc and leave your message in the common forum.
Then, you'll get a FTP approach authority through your Email.
I pay for the web-space. you pay nothing.
As for as I know. the web-space support PHP and mySQL.
Do you have any doubt why do I do this?
I want to learn about flash and so forth.
So I thought I need to have a system of free exchanging source file, analyzing a webpages. helping each other.
We have only 200 MEGA for this.
So the limitation of members is essential.
We can believe someone who we don't know.
That is the reason we can share our FTP approach.
We want someone who want to exhange source files
and exhanage opinions eagerly.
Text File To Load From An Outside Source
I am trying to get Flash to display a text file from another source in Flash.
Basically, i want to make it that this content, say it's 'About Us' where the client talks about what their business is, i want to make the flash file look for a text file and display the text file, so the client can change the descriptive text, but without having to get me to add it in manually each time.
Is there a way I can achieve this?
Thanks
|