Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Large Project Issues

Explorer ,
May 25, 2013 May 25, 2013

Typically when I design something big, I make it over 1000x1000 in pixels. But that was at my school where the screen's were a bit bigger and I actually had dual monitors, so I could move things around and such so I had a great workspace. Now, I'm at home and all I got is a laptop. The screen is wider than tall.

Now, I know you can test it in browser, but the current project I'm using doesn't work right. It's something to with URLRequest on a local test. I can't explain it.

If I test it in flash pro, the image loads but I can't see the whole document. If I test it via web browser, I can see more of the document but the image doesn't load.

How Could I go about making it so I can see the entire project without cropping the size, and see the image via browser?

TOPICS
ActionScript
807
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 25, 2013 May 25, 2013

assuming whatever your loading fits your stage (otherwise, scale it to fit your stage), publish for 100%100% (file>publish settings>html).

Translate
Community Expert ,
May 25, 2013 May 25, 2013

assuming whatever your loading fits your stage (otherwise, scale it to fit your stage), publish for 100%100% (file>publish settings>html).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 25, 2013 May 25, 2013

I'll have to attempt that, but usually it takes ages for it to publish that way.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 25, 2013 May 25, 2013

what do you mean by that?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 25, 2013 May 25, 2013

The time for the swf to load is just a lot longer than when I run it in flash.

This doesn't solve my URLRequest error though.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 25, 2013 May 25, 2013

where are you seeing the problem?  when you test in flash?  when opening your html in a browser?  somewhere else?

and, are you resizing your loader (after loading is complete), so whatever is loaded fits your stage?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 26, 2013 May 26, 2013

I see the issue when the swf is opened locally (so that means it isn't on a website or anything just yet) and when it isn't in adobe flash. So yes, if I open the html page generated by flash it does cause this error.

It is supposed to be rezising, but doesn't seem to want to.

I've got these:


addChild(myLoader);

myLoader.width = 1000;

myLoader.height = 1000;

But no matter the size of the image, won't actually resize.

Edit:

Upon further searching, I've found the issue and solved it. I had the publish settings for my swf set to access local only, instead of access network only.

It now works in the browser

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 26, 2013 May 26, 2013
LATEST

you must use a listener to determine when loading is complete and THEN resize:

myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,loadCompleteF);

myLoader.load(new URLRequest("whatever.jpg"));

function loadCompleteF(e:Event):void{

myLoader.width=1000;

myLoader.height=1000;

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines