|
RizieN posted:I've got another quick question. Since it's nested Flash is confused as to WHAT you want to gotoAndStop. Since you want the main timeline to do it you need to specify _root code:
|
| # ¿ May 10, 2007 15:34 |
|
|
| # ¿ May 24, 2013 11:08 |
|
First off, I'm terrible novice when in comes to actionscript. I'm more of an html/css/litte javascript/php person. I'm trying to make a custom video player (yes make, not using jwplayer). The kind where you can pass in the source of the mp4 video file in html through flashvars. However i have no idea how to accomplish this and days of searching have either not answered my question or done so while answering 700 other questions in the same tutorial so I can't make sense of the code.
|
| # ¿ Sep 21, 2010 14:54 |
|
5TonsOfFlax posted:Where are you getting stuck? And are you using AS2 or AS3? In AS3, flashvars are available from loaderInfo.parameters. Like I said not too familiar with flash. I know in HTML I can have it say code:
|
| # ¿ Sep 21, 2010 19:12 |
|
5TonsOfFlax posted:In the document class or main timeline, this will get you the value of file:
|
| # ¿ Sep 22, 2010 18:01 |
|
nolen posted:1. Give the FLVPlayback component an instance name Now on to making a custom skin, which I believe has much better documentation. EDIT: Okay maybe it didn't I get code:code:It did work before, maybe it still is and i can't see changes because of our stupid server caching? Even still, I shouldn't have all those errors The Merkinman fucked around with this message at Sep 22, 2010 around 20:12 |
| # ¿ Sep 22, 2010 19:25 |
|
I've got my basic movie player coded! It passes the location of the mp4 as well as the color of the play/pause button through flashvars. If, in HTML, I set the size of the SWF, the mp4 scales proportionally, leaving letterbox if it's not the right ratio. This is perfectly fine and what I want. However, the play/pause movie clips also understandable scale. I don't want that. Is there a way either in flash or, preferably via flashvars, to set the play and pause movie clips to be a set pixel size regardless of how big the swf is?
|
| # ¿ Oct 6, 2010 13:09 |
|
iopred posted:Two ways to do it, either you set stage.scaleMode to StageScaleMode.NO_SCALE. If you do this you have to position your buttons correctly based on stage.stageWidth and stage.stageHeight, and scale your video in the same way. It's all ratios? There's no way to tell the play/pause to be exactly 50px in both width and height regardless of the scaled swf without doing math and manually putting in a scale percentage?
|
| # ¿ Oct 6, 2010 15:03 |
|
iopred posted:Sorry to be the bearer of bad news
|
| # ¿ Oct 7, 2010 12:48 |
|
iopred posted:They set the stage to NO_SCALE and may or may not re-position everything in a CHANGED event. The only thing that needs to be scaled at that point is the video.
|
| # ¿ Oct 7, 2010 20:09 |
|
iopred posted:Heres an example, contains everything you need to know. EDIT: Made a few changes to the code, but it all works now, thanks! The play pause buttons can have their size and color changed via flashvars and the video source is the same way. Now we can use this swf for a variety of sites and never have to edit it directly! The Merkinman fucked around with this message at Oct 8, 2010 around 20:17 |
| # ¿ Oct 8, 2010 18:10 |
|
I made that simple play pause player and it works great. I'd like to re-purpose and basically just change it to play automatically. I can't for the life of me figure out how to do it. I've tried making autoPlay true for the flv component called my_FLVPlybk in the component inspector I've tried adding autoplay=true in the html file under flashvars I've tried code:
|
| # ¿ Oct 26, 2010 14:28 |
|
Here's all the code if it helpscode:
|
| # ¿ Oct 27, 2010 13:02 |
|
lostatsea posted:From the looks of your code, your video is an mp4? Have you tried a simple flv/f4v? I've had problems with mp4's in the past and they wouldn't play until they were completely loaded. I hope I don't have to change it to flv as the flash is a fallback for a larger HTML5 based video player. The mp4 can either be served directly in Safari/Chrome or via Flash for other browsers no need to have multiple encodings. I'll try it with an flv when I'm back at work on Monday though. EDIT: That doesn't seem to be the problem videoforeverybody autoplays its mp4 file in Flash (Use IE 6 - 8 for it to load the Flash version) EDIT 2: Figured it out, I think I was looking at the wrong swf The Merkinman fucked around with this message at Nov 2, 2010 around 14:19 |
| # ¿ Oct 30, 2010 21:37 |
|
I am not a Flash developerI made a video player that uses flashvars to dynamically pull in a movie through HTML rather than embedding it into the swf itself. What do I have to do in order to take advantage of the new Stage Video optimizations? Also I only have CS4, though a copy of CS5 is available if need be.
|
| # ¿ Feb 16, 2011 21:21 |
|
Not sure if this is the correct thread or not: I have two flash files in the same html page, but it's stacking them in the wrong order. $foo appears below $bar when I want it the other way around. I have the z-index for $foo at 9998 and $bar at 2, both are set to transparent, but Flash just doesn't care
|
| # ¿ Jul 13, 2011 20:38 |
|
willemw posted:Do you have a page up somewhere with the code (or can you post the code for the html here)? <style> #main{ width:990px; margin:auto; background-color:#fff; position:relative; margin-bottom:100px; } #header{ height:<?php echo $headerheight; ?>px; background-repeat:no-repeat; } #sitebody{ position:relative; background-color:#fff; } #bodyimage{ background-image:url(<?php echo $bodyimage; ?>); height:<?php echo $bodyheight; ?>px; background-color:#fff; } #ad300250{ width:300px; height:250px; z-index:2; position:absolute; left:684px; top:16px; } #ad72890{ width:728px; height:90px; margin:18px auto; } </style> <body> <div id="main"> <div id="overlayDisplayAd" style="display:none;position:absolute;top:165px;left:410px;z-index:9998;"> <!-- flash element I want on the complete top goes here --> </div> <div id="header"> </div> <div id="sitebody"> <div id="bodyimage"> </div> <div id="ad300250"> <!-- flash element I want UNDERNEATH the previous one goes here --> </div> <img src="../pushdown/images/footer.png"/> </div> </div> </body>
|
| # ¿ Jul 14, 2011 16:18 |
|
willemw posted:I tested that code and it seems to work for me (using some standard <embed> code). The 'display: none' on the top flash is a bit strange though. Are you using javascript to show that div? Yeah it automatically comes in after 5sec. One of those full screen ad things.
|
| # ¿ Jul 14, 2011 19:18 |
|
I hosted a version here. The 300x250 is put in via swfobject, the overlay is output via a much bigger mess of document.write (that's what the company used long before I showed up). It seems to work on the live sites, but not in this little mockup demo I've made, and I'm trying to figure out why.
|
| # ¿ Jul 15, 2011 13:09 |
|
lostatsea posted:Looks fine to me. Is there a specific browser scenario where it's not working? EDIT: Works in the default browser for Android 2.2 as well. EDIT2: Windows 7 - Works in IE (any version) and Safari, does not work in Chrome (12), Opera (11.50), or Firefox (5) The Merkinman fucked around with this message at Jul 18, 2011 around 15:09 |
| # ¿ Jul 16, 2011 12:32 |
|
Freelancepolice posted:What's the general consensus from Flash pro's about the oncoming march of HTML 5? I'm no AS3 expert but I've been playing with flixel for a few months and I'm curious as to people's thoughts. Depends on your audience and what you're going to make. If it's simple enough that it could be done in javascript, then do that. If it would require deciding between Flash and HTML5, then which market is more important, Internet Explorer (6-8) users, or iOS users?
|
| # ¿ Aug 6, 2011 17:10 |
|
Back trying to do video in Flash. I don't know flash, but people are work just oh oh hey The Merkinman is the front end web developer so he'll just do it. Anyway, really simple, just want a video to automatically play and be mute. I started an AS3 file and dragged in teh FLVplayback component (instance name myvideo), muteButton (muteBtn) and PlayPauseButton (playBtn). Under properties for myvideo I have autoPlay checked and volume at 0. My Action Script code in the first frame consists of: code:Also how the heck do you do getURL in AS3? I put the following: (clilckTagBtn is the instance name of the button) code:
|
| # ¿ Sep 20, 2011 16:03 |
|
5TonsOfFlax posted:Sounds like something threw an error. What was the error? No I didn't what is that? Ignoring the clicktag stuff for now, if I comment all that out so my code is simply code:
|
| # ¿ Sep 21, 2011 12:41 |
|
nolen posted:Post your FLA and one of us can take a look. The Merkinman fucked around with this message at Sep 21, 2011 around 14:13 |
| # ¿ Sep 21, 2011 14:06 |
|
nolen posted:Can't open it, probably because it's a CS5 or higher FLA. You can try saving as an older version if you're up for it. I got code from somewhere else using netstream that does what I need, but here is the file from before in a CS4 format so I can at least learn what I did wrong http://www.mediafire.com/?0e73nxfdn5377u1
|
| # ¿ Sep 23, 2011 15:59 |
|
|
| # ¿ May 24, 2013 11:08 |
|
We started doing video ads for clients. The type where it plays automatically but silent. The swf file pulls the .flv from the Akamai server and it works properly. The problem is previewing. Now I can save it somewhere and in the standalone flash player settings tell it to be a trusted location. However, what is a good way to be able to preview the file for people that either don't have the standalone player or anything short of "CLICK HERE" is too complex of instructions?
|
| # ¿ Jan 23, 2012 16:47 |





You can set the height/width of the buttons to be 50px, but that still gets scaled, so you need to do 50 * ratio
I am not a Flash developer