Go full screen and reading files in order, not randomly

Hey guys,.

I'm working on a file AS 3, but I can't make it go full screen.
The other problem is that he plays a list of youtube video,
but I want it to loop just the list, not to play them at random.

Can anyone help? The script is below.
If someone could help me, it would be great!

Thank you!

Raoul


package
{
import flash.display. *;
import flash.display.MovieClip;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
import flash.events.MouseEvent;
flash.filters import. *;
import flash.system.Security;
Import itaynoy.filters.pixelate.Pixelate;
Import youtube.youtubePlayer;
import flash.events.MouseEvent;
import flash.ui.Mouse;
import flash.display.StageDisplayState;
Mouse.Hide ();
/**
* ...
Itay * @author Noy
*/
public class stageMain extends MovieClip
{
var n1 = 75;
instance of YouTube Player
private var m_youtubePlayer:youtubePlayer;

button to go to videos
private var m_stageBT:MovieClip;

black background for the player
private var m_BG:MovieClip;

The pixel bender filter object
private var m_Filter:Pixelate;

An array of ID's youtube videos
private var movies_arr:Array;

the width of the drive
private var playerW:int = 600;

the height of the player
private var playerH:int = 480;

Player x
private var playerX:int = 20;

position the player y
private var playerY: int = 20;

public void stageMain()
{

If {(stage)
init();
} else {}
addEventListener (Event.ADDED_TO_STAGE, init);
}

}

private void init (e: * = null) {}

Maybe I'm chekcing someone wanted his youtube videos and send their ID in the flashvars
If {(loaderInfo.parameters.movies_arr)
movies_arr = String (loaderInfo.parameters.movies_arr).split("|");
} else {}
movies_arr = String ("LhOl6BT18RU |") QNik8pOFAmo | V6deTsUYk5E | a2jKgExxf9I | 4yj29Eo61u0 | PQ3FnD6PhZM | ZC Xo1yHvavR | b4r86C4agtc | 4fDwjO - rD 5, 4. QWG-Cg44Zu4 | zJFdF8Wqz7Q | 3ZSspsY0l-U | UKh8wPdkISc | Z-7cJMXUI | Slide 6cLL-i-o | tUZ944WWrws | yF3Dq4I5WS4 | YF-xLB4wTlA | 4rsWY_CpyrU | mKInjxOH3yA | e1b55B0u0P | E6Dm6Tr4cO I | kxv-DDtQ8n0 | ujwQtM43guk | gOgTQCAUOCY | 8ndVF18OKeQ | fuu9jDIvCvs | eZ4XUPku7Sg | 0I7Lw6RMUUs | xoEt xEdgsJk | jnRzZeD2ysw | IinsiPUMkvE | GVV6OcAgwm4 | 9GcDdr5auts | IY1YlLgsg-4 | FGAnBQDJDVY | rRWbCZ6bcg Y | tp0CxA_zsow | cysJEh2jnK0 | 1BMPUPX6myU | fuDrL2yBSWw | KaYXNaBr_2E | rjQ_BTbCmSk | rJhBVy6DBr8 | x7RU x2ucqv8 | _4ID6-e0-PY | n7frx-2P8cQ | McDnwiJaSA4 | WWB816SHtBc | 3YZ8zpY52ww | P_cKWpdKVBY | bVhM-ODIU6 I | bsUgrUcEoII | NeBN6YNSnc0 | mc8uNO4-E8M | BBFDUBJeSiI | CNov_UG71bA | OJsdA91Lu18 | hHboJXGXEWg | aIZo n7owttQ | aIZon7owttQ | IzVwmwdqE-i | bsAlSmLaZVE | 7flXwSv9aQ0 | 7lx5FRBQGK0 | RUNV4m2heI8 | kYFh9A-LLG U | L13OGjEpgy8 | xrMDmU4fVnk | cN81qP8-3-4 | f7qtq93CXX4 | UpZxVyLCm1I | edxU1SQCZQU | 5rq-B1VRwuk | 2fKT fGc3f6k | rclpehNOIUg | iv5xWixtoI0 | 86ViV0PX2jo | XvTOnp3q6ac |-yI84Ts nkjS | nRIZUN9flHk | S8o_RPFM-7 Q | shJPAcqmVew | x9ZP5AYYYqk | VZLX7BBuZGQ | kkESRqpthRE | zYvcmJiWGmU | xceq-68zJak | Dwox35cQ1vY | GCBp 7XjPyvs | »). Split("|");
}
Describe the stage align and resize mode
setStage();

creat black background for the player (design purpose only)
m_BG = new MovieClip();
m_BG. Graphics.beginFill (0 x 000000, 1);
m_BG. Graphics.drawRect (0, 0, playerW, playerH);

create the youtube player we use in this demo
m_youtubePlayer = new youtubePlayer();
m_youtubePlayer.addEventListener (youtubePlayer.PLAYER_READY, playerReadyHandler);
m_youtubePlayer.addEventListener (youtubePlayer.STATE, playerStateHandler);

create a button to put the videos randomly
m_stageBT = new MovieClip();
m_stageBT.buttonMode = true;
m_stageBT.Graphics.beginFill (0xFF0000, 0);
m_stageBT.Graphics.drawRect (0, 0, stage.stageWidth, stage.stageHeight);
m_stageBT.addEventListener (MouseEvent.CLICK, loadRandomVid);

Add all of the assets of the scene
addChild (m_BG);
addChild (m_youtubePlayer);
addChild (m_stageBT);
addChild (control);

init the youtube player
m_youtubePlayer.init ();

stageResizeElements();

}

private void playerReadyHandler (e: Event = null) {}

YouTube Player is ready for action
m_youtubePlayer.player.setPlaybackQuality ("large");
m_youtubePlayer.setSize (playerW, playerH);
I take jeuvideode to the player (first one of the range of film in this case)
m_youtubePlayer.loadVideo(movies_arr[0]);

This is where the magic happens
Create a new instance of the filter and set the target movieclip (i.e. m_youtubePlayer)
m_Filter = new Pixelate (m_youtubePlayer);

Then, I create a loop to set the filter settings
addEventListener (Event.ENTER_FRAME, applyFilterParams);

}

private void playerStateHandler(e:Event) {}
trace ("player state chAnged to", e.target.state);
If (e.target.state is 3)
stageResizeElements();
If (e.target.state == 0) {}
Status 0 means that the film finished, so load us a new random vid
loadRandomVid();
}
}

private void loadRandomVid (E: * = null) {}
var i: Number = Math.floor ((Math.random () * movies_arr.length));
m_youtubePlayer.loadVideo (movies_arr [i]);
}
private void downHandler(event:MouseEvent):void {}
trace ("downHandler");
N1 = 1;
}
private void upHandler(event:MouseEvent):void {}
trace ("upHandler");
N1 = 75;
}

private void applyFilterParams (e: * = null) {}
Get the values of my control, in this case, it's the cursor on stage
m_stageBT.addEventListener (MouseEvent.MOUSE_DOWN, downHandler);
m_stageBT.addEventListener (MouseEvent.MOUSE_UP, upHandler);
var n1 = control.mc_slider_noise1.value;
//     var n1                     = 75;
make their values to a textfields (of course, this is only for demonstration purposes)
Control.txt1.text = n1 + "px";
trace (control.txt1.text, n1);

/*
apply to all the values that I have collected in the filter
() m_Filter.ApplyFilter
N1:number = size in pixels
);
*/

m_Filter.ApplyFilter (N1);

}

private void setStage() {}

stage.scaleMode = StageScaleMode.SHOW_ALL
internship. Align = StageAlign.TOP_LEFT;

}

private void stageResizeElements() {}

set the width of the player, the height and position

m_BG.x = playerX;
m_BG.y = playerY;
m_BG. Width = playerW;
m_BG. Height = playerH;

m_youtubePlayer.width = playerW;
m_youtubePlayer.height = playerH;
m_youtubePlayer.x = playerX;
m_youtubePlayer.y = playerY;

m_stageBT.x = playerX;
m_stageBT.y = playerY;
m_stageBT.width = playerW;
m_stageBT.height = playerH;

}

}

}

I see no code to get your app full screen so I assume you are using a component flvplayback skin that contains a button with full screen.  If so, make sure you're editing html that allows full screen.  IE, check your publish settings/html-template and select flash only - grants full-screen.

to read videos non-random way change loadRandom() to

private void loadRandomVid (E: * = null) {}
var i: Number = Math.floor ((Math.random () * movies_arr.length));
m_youtubePlayer.loadVideo (movies_arr [index]);

index = (index + 1) %movies_arr.length;
}

and initialization of index with your other variables of the class:

private var int index = 0;

Tags: Adobe Animate

Similar Questions

  • Trying to get rid of the annoying pop up, I chose deny full screen and "remember" in You Tube and cannot get full screen anywhere or change it back. How?

    I tried to get rid of the annoying pop up on You Tube and in frustration, I chose the refusal full screen and "remember" and now cannot get full screen anywhere or change it back. How do I do that? I read the thread here with the same problem and the solution included hit ' command + I "and so on. How do I do that? What is 'Order' and the letter 'i' or 'L' or the number "!"?

    You can control and manage permissions for the domain in the tab currently selected through these steps:

    • Click the address bar onthe Site identity button"(globe/lock)
    • Click on 'More information' to open ' tools > Page Info "with the Security tab is selected
    • Go to the permissions tab (Tools > Page Info > permissions) to check the permissions for the domain in the currently selected tab
  • How can I stop full screen and disable the sidebar in CD player?

    I've got Adobe Acrobat Reader, version 2015, Version 2015.009.20079 DC.

    I work on a PC with a large screen (resolution of 3840 x 2160).

    Whenever I open a PDF file, it goes full screen with the sidebar on the right open (export, Create, Edit, comment, fill and sign, sent for Signature, send & Track).

    There seems not to be a setting anywhere to have Reader * NOT * open full screen, and I can't find a way to DISABLE this sidebar.

    If I was using a phone, interested the reader to be full screen, but I'm not. I'm on a desktop computer with a lot of real estate on the screen to display a complete document.

    After clicking on the window control to drive to return to a normal window, now the PDF is all distorted because of this stupid Sidebar.

    More than 99% of the time, I opened a PDF, it's just to watch the news or print a specific page. The sidebar is useless for me. As long as these features are buried deep in a menu and I can get to them if necessary, that's all that I care.

    Is it possible to disable the option to open full screen and disable the sidebar or keep it reduced?

    If I can't do it in Reader, and then let me know if I can uninstall it and start using another PDF reader.

    Hi jp2code,.

    Yes, you are right.

    Open the CD player, go to the Help menu and repair the installation.

    Make sure that drive is updated to the latest version known issues | Adobe Acrobat DC, DC drive.

    Apply the settings provided in the previous comment, restart your system and then try to reproduce the problem.

    Kind regards
    Nicos

  • Firefox opens in full screen and I can't do anything at all except Ctrl-alt-delete and closing of Firefox!

    Hello. I made a stupid mistake and installed an add-on or extension (do not know which) that I was hoping would allow me to display YouTube videos in full screen. Unfortunately I don't remember the name of the add-on/extension.

    The problem is, now everytime I open Firefox, it opens in the mode "full screen" and ANYTHING (including F11) will allow me to access the taskbar, the address bar or an other controls Firefox. I can nothing at all, but display the homepage fullscreen! The only option I have is to hit CTRL-alt-del and close Firefox.

    I tried to uninstall and reinstall Firefox and this does not solve the problem. Help, please. Thank you!

    P.S. I write this in Internet Explorer as I can't currently use Firefox.

    Try to rename (or delete) the file xulstore.json in the Firefox profile folder.

    You can check if you can start Firefox in Safe Mode by holding down the shift/Options key.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • I accidentally clicked on full screen and have a lot how I recover the toolbar

    I clicked on full screen and have lost the toolbar and bookmarks etc. How can I get that back please.

    Press F11.

  • Win Media Player: Video goes full screen and cannot access controls

    All videos play automatically goes to full screen and I can't access controls by the keyboard or mouse. Sometimes crashes mode full screen.

    I tried setting the options of WMPlayer nothing helps.

    Any suggestions?

    Hello

    When the video begins to make double click in the middle of full screen and it should bring back the standard window. You can also try using the ALT + F4 key combination.

  • When I opened an e-mail it doesn't open full screen and will not allow me to drag to the top or to the right

    Because someone else was using my computer I'm unable to open full screen of emails. The top edge is 2 "from the top of the screen and when I try to drag it to the top it let me only to drag down and to the left. I then need to maximize, but I didn't do it before. Is there a solution?

    Do not forget to include a detailed description of what happens when you try to resize the window.

    c.f.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_other-networking/opened-e-mails-are-not-full-screen-and-cant-lift/eefbc23d-730F-44E2-b6ad-05731b26aa5a?page=2

    ---

  • Stretching from full screen and setting the update hack?

    Hey, we have a screen that currently extends to full screen and passes a delegate from Manager custom in the constructor. It seems that tests on some devices do not focus to the first element in the domain manager. After a few I found that the substitution of the onUiEngineAttached method and explicitly debug calling setFocus, it seems to do the trick (it sets the focus on the first field). But I'm worried it's maybe a 'hack' for something else that can't be done directly in the interface. Everyone knows this? When I call super.onUiEngineAttached and enter in the method it seems to be a no - op (it simply returns.)

    Thank you

    arkadyz, thanks again for the helpful answers. Finally, I created a small sample to get to the bottom of this issue and it turns out that the onFocus method is called onDisplay. In our class, the onDisplay was substituted and only called super.onDisplay for 4.2.1 and 4.3.0 4.5.0. Devices etc. 4.6.0 4.7.0 and 5.0.0 the super.onDisplay never been called, and therefore onFocus was never called. After calling super.onDisplay on 4.6/7.0 and 5.0.0 the onFocus now seems to be called correctly.

    If I made anything, please let me know.

    Thanks again.

  • Now when I open my email in Outlook Express, it opens in full screen and will not restore down on a smaller size. How can I reset that?

    Already when I opened my email open in small size.  Now when I open my email in Outlook Express, it opens in full screen and will not restore down on a smaller size.  How can I reset that?

    Then, you need to ask in this forum I posted above. I have not used it myself and can be useful.
     

     
     
  • I am very new to PS obtained only 3 days ago, I put a picture in full screen and now all the small icons on the left side are not there, I tried several thin g\\

    Hi, I put a picture in full screen and all the small icons on the left side have disappeared and I can't understand how the back there at - it a button reset or something I've missed? Please help me - I'd really like to understand this.

    Thanks in advance

    Yes.

    Pressing the Tab key usually strives to restore the panels.  F cycles through the modes of the screen.

    If this fails, click on the workspace name in the upper right. Essentials - for example. A drop down menu opens. Select "Reset Essentials".

    Reset works when you make a mess of the space working wonders and want everything back in place.

    Gene

  • The reference must be closed on a reading-file error or not?

    Dear users,

    When I read a file, a reference is created one should close, when no longer used, should I? Here is a minimal example to my next serious question: should I close the benchmark on reading-file error or not? Is there a created in the case of "the file does not exist"?

     

    See you soon,.

    No, when used in this way, the references created by the file read and write functions should not be closed - thought that he would have no negative effect if you did.

    In addition, you do not want or need the structure case around a reference close the function.

    Mike...

  • All My Documents, pictures, videos and music files are does not

    All My Documents, pictures, videos and music files are does not and I can't access the files and I did nothing to them but when I try and click on it, it says "music.library - ms no longer works, the library can be removed safely from your computer.» Records that have been added will not be affected. I understand that they won't be affected, but how am I supposed to recover all my files?

    Hey Kwame,

    I understand that you receive an error saying music.library - ms no longer works.

    Please answer:

    (1) did you do changes on the computer before the show?

    In the libraries folder, you will notice that the icons of the folders have changed to something else. This clearly indicates that Windows 8 libraries are no more work and corrupted.

    To resolve this issue, follow these steps:

    (a) press Windows + E to open Windows Explorer, and then click library.

    (b), select all the libraries with which you are faced with a question and select Delete.

    (c) click Yes to confirm.

    (d) after the deletion, right-click on the icon libraries in the left navigation pane and click on restore default libraries.

    (e) in the first attempt, default icons have been restored but if you are unable to access the libraries of Windows 8, delete and restore again to go back to work.

    Note: Deleting of a library does not delete the contents of the included folders. However, you need to add or include your folders manually, if necessary.

    Kind regards

  • Full screen Adobe Reader XI now leave the title bar on Mac

    Has anyone experience this problem? I installed Adobe Reader X (for Mac) reader XI. When I go to view full screen or open a document full screen, a title bar ends up with the title of the document and the buttons on the left above. It didn't happen in versions IX or X; kinda defeats the purpose of the mode full screen for presentations. Is this a bug? Or a 'new '? I'm still under Snow Leopard and haven't tried in 10.7 or 10.8.

    Thanks for the suggestion, Paolo. Unfortunately, my institution distributes full-screen files PDF of a magazine for all end users would have to do what is not practical. What I hope is that this discussion has alerted the Adobe technical gurus to this question and strive hard.

    UPDATE: looks like the 11.0.01 fixes this problem.

  • Mode full screen and the options bar help? Using Cintiq hybrid

    So I've just updated to El Capitan on my macbook pro 2012. I use a hybrid of companion Cintiq drawing and turn Photoshop CS6. Whenever I goes into full screen mode, my options bar appears down, blocking my screen.

    I can't drag or move

    It is technically at the top, but it is obviously at the bottom. (Aka every time that it seeds I can see at the top where it's supposed to be).

    I've updated the drivers for the wacom tablet.

    I messed with the windows > > Workspace and reset everything and it still appears at the bottom.

    It does seem that it's on my cintiq screen and NOT my computer screen.

    No one knows what might contribute to this? Please help me it's extremely frustrating and everything was fine until I upgraded to stupid El Capitan.

    Screen Shot 2016-01-06 at 7.33.58 PM.png

    Screen Shot 2016-01-06 at 7.34.55 PM.png

    Thank you!!!

    I'm out of ideas besides a Cintiq.

    So see if Wacom forums can offer something. Apple and Mac rumors: Apple Mac iOS rumors and News you care of as well as Wacom user forums.

    I don't know if you want, but the trial on Photoshop CC 2015.  CS6 is old enough and work well with the new OSX and Cintiq.

    I would recommend what I call a 'clean' uninstall/reinstall

    Uninstall the CS6 or remove preferences if requested.

    Use the cleanup tool to remove the remaining files that are not part of the uninstall. Use of the Adobe Creative Cloud cleaning tool to solve installation problems

    Reinstall all updates.

  • Forcing the full screen and playback of slideshows Powerpoint [subject edited by Moderator]

    I need the code for the function full screen on any device I choose... computer screen, ipad or phone and how to play the slide shows, powerpoint on the page of the site without opening in powerpoint or other video application?

    In fact, you can export a Powerpoint slideshow to a file HTML (together), but the last time I looked, that exported the images slide show used (an approach long obsolete and generally terrible on the web).

Maybe you are looking for