Skip to content

Instantly share code, notes, and snippets.

package app
{
import actionlib.common.logging.Logger;
import flash.events.IOErrorEvent;
import flash.filesystem.File;
import flash.media.Sound;
import flash.media.SoundChannel;
import flash.media.SoundTransform;
import flash.net.URLRequest;
@canab
canab / main.as
Last active March 31, 2016 13:47
package app.ui
{
import airlib.display.FrameObject;
import app.App;
import starling.display.DisplayObject;
import starling.display.DisplayObjectContainer;
public class SoundButton extends AppButton
framework_roots = [
"../flashtml",
"../../flashtml",
"../../../flashtml",
]
task :up do
update_items = [
[ "lib", "actionlib", "air/lib/actionlib" ],
[ "lib", "airlib", "air/lib/airlib" ],
task :up do
update_items = [
[ "src", "fl", "engine/src/fl" ],
[ "tools", "FlashExporter*.air", "exporter/distrib/*.air" ],
[ "html/js", "pixi", "engine/html/js/pixi" ],
[ "typings", "pixi.js", "engine/typings/pixi.js" ],
]
src_list = [
"../flashtml",
using System;
using ActionLib.Common.Events;
using ActionLib.Display;
using ActionLib.Display.Utils;
using Lightomania.Bundles;
using Microsoft.Xna.Framework;
namespace Lightomania.UserInterface.ScrollBar
{
public class DragController
using System;
namespace ActionLib.Display
{
internal class TextFitAutoScale
{
private readonly TextBase _field;
private bool _defaultValuesSet = false;
private float _defaultFontScale;
apboyle
Oct 12, 2015 5:26 PM (in response to rrackleff)
The problem seems to be that a script in the page is referring to a non-public hostname idmsauth-stable.corp.apple.com. I was able to workaround this issue by manually modifying the script in Chrome Developer Tools and re-executing the code in the Developer Console.
1) Open the activation URL in Chrome
2) Open Chrome Developer Tools (Cmd-Alt-I on OS X, Ctrl-Shift-I on Windows)
Shader "Flunity/Default"
{
Properties
{
_MainTex ("Particle Texture", 2D) = "white" {}
}
Category
{
Tags
tell application "System Events"
set _process to first application process whose frontmost is true
tell _process
tell menu 1 of (menu item 1 where its name contains "Recent") of menu "File" of menu bar 1
set menuitems to name of (menu items where name is not "")
tell _process
set _result to choose from list menuitems
set frontmost to true
end tell
if _result is false then return
private void UpdateTexture(ref Rect textureRect, ref Vector2 textureSize, TextureFlip flip)
{
var lt = new Vector2(textureRect.x / textureSize.x, textureRect.y / textureSize.y);
var rb = new Vector2(textureRect.xMax / textureSize.x, textureRect.yMax / textureSize.y);
if ((flip & TextureFlip.HORIZONTAL) != 0)
{
var temp = rb.x;
rb.x = lt.x;
lt.x = temp;